import { BinderMap, DefaultConfig } from "../types/utils/istorage.type"; /** * @class */ export class iStorage { public defaultConfig: DefaultConfig = { accessoryVisible: true, virtualScroll: true, accessoryStyle: "top", multiple: false, minWidth: "50px", width: "0px", offsetWidth: null, minHeight: "30px", height: "30px", panelHeight: "220px", panelMinHeight: "100px", disabled: false, readonly: false, selectall: true, keepSelected: true, placeholder: "Select value", altMask: "", autoclose: false, autoscroll: true, autofocus: true, searchable: true, loadingfield: true, preload: false, visible: true, skipError: false, customDelimiter: ",", textLoading: "Processing...", textNoData: "No data available", textNotFound: "Not found", textSelectAll: "Select all", textDeselectAll: "Deselect all", textAccessoryDeselect: "Deselect: ", animationtime: 200, // milliseconds delaysearchtime: 200, // milliseconds allowHtml: false, maxSelected: 0, labelHalign: "left", labelValign: "center", imageMode: false, imageWidth: "60px", imageHeight: "60px", imageBorderRadius: "4px", imagePosition: "right", ajax: null, on: { load: [], beforeShow: [], show: [], beforeChange: [], change: [], beforeClose: [], close: [], }, }; /** Bound instance map (keyed by select element). */ public bindedMap: Map = new Map(); /** Unbind cache map (keyed by select element). */ public unbindedMap: Map = new Map(); /** List of bound selectors/commands. */ public bindedCommand: string[] = []; }