@danielgindi/selectbox 2.0.56 → 2.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,497 @@
1
+ import DropList from './DropList';
2
+ import type { SelectBoxOptions, ItemBase, DropListOptions } from './types.js';
3
+ export declare const DefaultOptions: SelectBoxOptions;
4
+ declare class SelectBox {
5
+ /**
6
+ * @param {SelectBox.Options} options
7
+ */
8
+ constructor(options: SelectBoxOptions);
9
+ destroy(): void;
10
+ get el(): HTMLElement | null;
11
+ get droplistInstance(): DropList | undefined;
12
+ /**
13
+ * Returns true if other is an inclusive descendant of droplist node, false otherwise, and undefined if the droplist is not initiated.
14
+ * @param {Node} other
15
+ * @param {boolean} [considerSubmenus=true]
16
+ * @returns {boolean|undefined}
17
+ */
18
+ droplistElContains(other: any, considerSubmenus?: boolean): boolean | undefined;
19
+ /**
20
+ * Enables the control
21
+ * @param {boolean=true} enabled Should the control be enabled?
22
+ * @returns {SelectBox}
23
+ */
24
+ enable(enabled?: boolean): this;
25
+ /**
26
+ * Is the control enabled?
27
+ * @returns {boolean}
28
+ */
29
+ isEnabled(): boolean;
30
+ /**
31
+ * Disables the control
32
+ * @param {boolean=true} disabled Should the control be disabled?
33
+ * @returns {SelectBox}
34
+ */
35
+ disable(disabled?: boolean): this;
36
+ /**
37
+ * Is the control disabled?
38
+ * @returns {boolean}
39
+ */
40
+ isDisabled(): boolean;
41
+ /**
42
+ * Sets read only mode
43
+ * @param {boolean=true} readOnly Should the control be read only?
44
+ * @returns {SelectBox}
45
+ */
46
+ setReadOnly(readOnly?: boolean): this;
47
+ /**
48
+ * Is the control enabled?
49
+ * @returns {boolean}
50
+ */
51
+ isReadOnly(): boolean;
52
+ /**
53
+ * @param {string|string[]} classes
54
+ * @returns {SelectBox}
55
+ */
56
+ setAdditionalClasses(classes: string | string[]): this;
57
+ /**
58
+ *
59
+ * @param {DropList.ItemBase[]} [items]
60
+ * @param {boolean} [resetValues=true] should reset values to current values (essentially refresh the data based on items & values). If set to false, use setValue to set a fresh value
61
+ * @returns {SelectBox}
62
+ */
63
+ setItems(items?: ItemBase[], resetValues?: boolean): this;
64
+ getFilteredItemCount(): number;
65
+ isFilterPending(): boolean;
66
+ updateItemByValue(value: any, newItem: ItemBase): void;
67
+ /**
68
+ * @returns {DropList.ItemBase[]|*}
69
+ */
70
+ getItems(): ItemBase[];
71
+ /**
72
+ * @param {boolean} clearable
73
+ * @returns {SelectBox}
74
+ */
75
+ setClearable(clearable: boolean): this;
76
+ /**
77
+ * @returns {boolean}
78
+ */
79
+ getClearable(): boolean;
80
+ /**
81
+ * @param {boolean} enabled
82
+ * @returns {SelectBox}
83
+ */
84
+ setHasOpenIndicator(enabled: boolean): this;
85
+ /**
86
+ * @returns {boolean}
87
+ */
88
+ getHasOpenIndicator(): boolean;
89
+ /**
90
+ * @param {string} placeholder
91
+ * @returns {SelectBox}
92
+ */
93
+ setPlaceholder(placeholder: string): this;
94
+ /**
95
+ * @returns {string}
96
+ */
97
+ getPlaceHolder(): string;
98
+ /**
99
+ * @param {string} term
100
+ * @param {boolean} [performSearch=false] should actually perform the search, or just set the input's text?
101
+ * @returns {SelectBox}
102
+ */
103
+ setSearchTerm(term: string, performSearch?: boolean): this;
104
+ /**
105
+ * @returns {string}
106
+ */
107
+ getSearchTerm(): string;
108
+ invokeRefilter(): this;
109
+ /**
110
+ * @param {boolean} sortSelectedItems
111
+ * @returns {SelectBox}
112
+ */
113
+ setSortSelectedItems(sortSelectedItems: boolean): this;
114
+ /**
115
+ * @returns {boolean}
116
+ */
117
+ isSortSelectedItemsEnabled(): boolean;
118
+ /**
119
+ * @param {boolean} sortListItems
120
+ * @returns {SelectBox}
121
+ */
122
+ setSortListItems(sortListItems: boolean): this;
123
+ /**
124
+ * @returns {boolean}
125
+ */
126
+ isSortListItemsEnabled(): boolean;
127
+ /**
128
+ * @param {boolean} sortListCheckedFirst
129
+ * @returns {SelectBox}
130
+ */
131
+ setSortListCheckedFirst(sortListCheckedFirst: boolean): this;
132
+ /**
133
+ * @returns {boolean}
134
+ */
135
+ isSortListCheckedFirstEnabled(): boolean;
136
+ /**
137
+ * @param {*[]} values
138
+ * @returns {SelectBox}
139
+ */
140
+ setStickyValues(values: any[]): this;
141
+ /**
142
+ * @returns {*[]}
143
+ */
144
+ getStickyValues(): any[];
145
+ /**
146
+ * @param {function(a: DropList.ItemBase, b: DropList.ItemBase):number} comparator
147
+ * @returns {SelectBox}
148
+ */
149
+ setSortItemComparator(comparator: SelectBoxOptions['sortItemComparator']): this;
150
+ /**
151
+ * @returns {function(a: DropList.ItemBase, b: DropList.ItemBase):number}
152
+ */
153
+ getSortItemComparator(): (a: ItemBase, b: ItemBase) => number;
154
+ /**
155
+ * @param {boolean} treatGroupSelectionAsItems
156
+ * @returns {SelectBox}
157
+ */
158
+ setTreatGroupSelectionAsItems(treatGroupSelectionAsItems: boolean): this;
159
+ /**
160
+ * @returns {boolean}
161
+ */
162
+ isTreatGroupSelectionAsItemsEnabled(): boolean;
163
+ /**
164
+ * @param {boolean} splitListCheckedGroups
165
+ * @returns {SelectBox}
166
+ */
167
+ setSplitListCheckedGroups(splitListCheckedGroups: boolean): this;
168
+ /**
169
+ * @returns {boolean}
170
+ */
171
+ isSplitListCheckedGroupsEnabled(): boolean;
172
+ /**
173
+ * @param {boolean} showSelection
174
+ * @returns {SelectBox}
175
+ */
176
+ setShowSelection(showSelection: boolean): this;
177
+ /**
178
+ * @returns {boolean}
179
+ */
180
+ isShowSelectionEnabled(): boolean;
181
+ /**
182
+ * @param {boolean} showPlaceholderInTooltip
183
+ * @returns {SelectBox}
184
+ */
185
+ setShowPlaceholderInTooltip(showPlaceholderInTooltip: boolean): this;
186
+ /**
187
+ * @returns {boolean}
188
+ */
189
+ isShowPlaceholderInTooltipEnabled(): boolean;
190
+ /**
191
+ * @param {function(items: DropList.ItemBase[]):string} formatter
192
+ * @returns {SelectBox}
193
+ */
194
+ setMultiPlaceholderFormatter(formatter: SelectBoxOptions['multiPlaceholderFormatter']): this;
195
+ /**
196
+ * @param {boolean|'touch'} value
197
+ * @returns {SelectBox}
198
+ */
199
+ setBlurOnSingleSelection(value: boolean | 'touch'): this;
200
+ /**
201
+ * @returns {boolean|'touch'}
202
+ */
203
+ getBlurOnSingleSelection(): boolean | "touch";
204
+ /**
205
+ * @param {boolean} multi
206
+ * @returns {SelectBox}
207
+ */
208
+ setMulti(multi: boolean): this;
209
+ /**
210
+ * @returns {boolean}
211
+ */
212
+ isMultiEnabled(): boolean;
213
+ /**
214
+ * @param {boolean} searchable
215
+ * @returns {SelectBox}
216
+ */
217
+ setSearchable(searchable: boolean): this;
218
+ /**
219
+ * @param {boolean} allowTypeToSelect
220
+ * @returns {SelectBox}
221
+ */
222
+ setAllowTypeToSelect(allowTypeToSelect: boolean): this;
223
+ /**
224
+ * @returns {boolean}
225
+ */
226
+ isSearchableEnabled(): boolean;
227
+ /**
228
+ * @param {string} noResultsText
229
+ * @returns {SelectBox}
230
+ */
231
+ setNoResultsText(noResultsText: string): this;
232
+ /**
233
+ * @returns {string}
234
+ */
235
+ getNoResultsText(): string;
236
+ /**
237
+ * @param {boolean} autoSelectTextOnCheck
238
+ * @returns {SelectBox}
239
+ */
240
+ setAutoSelectTextOnCheck(autoSelectTextOnCheck: boolean): this;
241
+ /**
242
+ * @returns {boolean}
243
+ */
244
+ getAutoSelectTextOnCheck(): boolean;
245
+ /**
246
+ * @param {number} window
247
+ * @returns {SelectBox}
248
+ */
249
+ setFilterThrottleWindow(window: number): this;
250
+ /**
251
+ * @returns {number}
252
+ */
253
+ getFilterThrottleWindow(): number;
254
+ /**
255
+ * @param {boolean} value
256
+ * @returns {SelectBox}
257
+ */
258
+ setFilterOnEmptyTerm(value: boolean): this;
259
+ /**
260
+ * @returns {boolean}
261
+ */
262
+ getFilterOnEmptyTerm(): boolean;
263
+ /**
264
+ * @param {DropList.Options} listOptions
265
+ * @returns {SelectBox}
266
+ */
267
+ setListOptions(listOptions: DropListOptions): this;
268
+ /**
269
+ * @param {(function(item: DropList.ItemBase, itemEl: Element):(*|false))|null} render
270
+ * @param {(function(item: DropList.ItemBase, itemEl: Element))|null} unrender
271
+ * @returns {SelectBox})|null
272
+ */
273
+ setRenderSingleItem(render: SelectBoxOptions['renderSingleItem'], unrender: SelectBoxOptions['unrenderSingleItem']): this;
274
+ /**
275
+ * @param {(function(item: DropList.ItemBase, itemEl: Element):(*|false))|null} render
276
+ * @param {(function(item: DropList.ItemBase, itemEl: Element))|null} unrender
277
+ * @returns {SelectBox}
278
+ */
279
+ setRenderMultiItem(render: SelectBoxOptions['renderMultiItem'], unrender: SelectBoxOptions['unrenderMultiItem']): this;
280
+ /**
281
+ * @param {(function(item: DropList.ItemBase, itemEl: Element):(*|false))|null} render
282
+ * @param {(function(item: DropList.ItemBase, itemEl: Element))|null} unrender
283
+ * @returns {SelectBox}
284
+ */
285
+ setRenderRestMultiItem(render: SelectBoxOptions['renderRestMultiItem'], unrender: SelectBoxOptions['unrenderRestMultiItem']): this;
286
+ /**
287
+ * @param {string} prop
288
+ * @returns {SelectBox}
289
+ */
290
+ setLabelProp(prop: string): this;
291
+ /**
292
+ * @param {string} prop
293
+ * @returns {SelectBox}
294
+ */
295
+ setValueProp(prop: string): this;
296
+ /**
297
+ * @param {string} prop
298
+ * @returns {SelectBox}
299
+ */
300
+ setMultiItemLabelProp(prop: string): this;
301
+ /**
302
+ * @param {'before'|'after'|'none'} position
303
+ * @returns {SelectBox}
304
+ */
305
+ setMultiItemRemovePosition(position: 'after' | 'before' | 'none'): this;
306
+ /**
307
+ * @param {number|null|undefined} value
308
+ * @returns {SelectBox}
309
+ */
310
+ setMaxMultiItems(value: number | null | undefined): this;
311
+ /**
312
+ * @param {function(count: number, items: DropList.ItemBase[]):string|null|undefined} value
313
+ * @returns {SelectBox}
314
+ */
315
+ setMultiItemsRestLabelProvider(value: SelectBoxOptions['multiItemsRestLabelProvider']): this;
316
+ /**
317
+ * @param {function(items: DropList.ItemBase[], term: string):(DropList.ItemBase[]|null)} fn
318
+ * @returns {SelectBox}
319
+ */
320
+ setFilterFn(fn: SelectBoxOptions['filterFn']): this;
321
+ /**
322
+ * @returns {function(items: DropList.ItemBase[], term: string):(DropList.ItemBase[]|null)}
323
+ */
324
+ getFilterFn(): (items: ItemBase[], term: string) => (ItemBase[] | null);
325
+ /**
326
+ * Sets a handler to intercept internal errors/warnings (e.g. from a throwing `renderMultiItem`/`unrenderSingleItem`)
327
+ * instead of the default `console.error`/`console.warn`. Also used as the default `onError` for the internal
328
+ * `DropList`, unless `listOptions.onError` is set explicitly.
329
+ * @param {SelectBox.LibraryErrorHandler|null} [fn]
330
+ * @returns {SelectBox}
331
+ */
332
+ setOnError(fn?: SelectBoxOptions['onError'] | null): this;
333
+ /**
334
+ * @returns {SelectBox.LibraryErrorHandler|undefined}
335
+ */
336
+ getOnError(): import("./types.js").LibraryErrorHandler;
337
+ /**
338
+ * Focus on input element
339
+ * @returns {SelectBox}
340
+ */
341
+ focusInput(): this;
342
+ /**
343
+ * Remvoe focus from the input element
344
+ * @returns {SelectBox}
345
+ */
346
+ blurInput(): this;
347
+ /**
348
+ * Removes all selected items
349
+ * @returns {SelectBox}
350
+ */
351
+ clear(): this;
352
+ /**
353
+ * Returns a single value or an array of selected values - depending on `multi` prop
354
+ * @public
355
+ * @returns {*[]}
356
+ */
357
+ getValue(): any;
358
+ /**
359
+ * Selects the specified value or multiple values - depending on `multi` prop
360
+ * @public
361
+ * @param {*|*[]} value - if `multi`, then an array of values to select, otherwise - a single value to select
362
+ * @returns {SelectBox}
363
+ */
364
+ setValue(value: any): this;
365
+ /**
366
+ * Returns an array of selected values
367
+ * @public
368
+ * @returns {*[]}
369
+ */
370
+ getSelectedValues(): any[];
371
+ /**
372
+ * Selects the specified values
373
+ * @public
374
+ * @param {*[]} values - an array of *values* to select
375
+ * @returns {SelectBox}
376
+ */
377
+ setSelectedValues(values: any[]): this;
378
+ /**
379
+ * Returns the count of selected values
380
+ * @public
381
+ * @returns {number}
382
+ */
383
+ getSelectedValueCount(): number;
384
+ /**
385
+ * Returns an array of selected items
386
+ * @public
387
+ * @returns {Array.<Object>}
388
+ */
389
+ getSelectedItems(): ItemBase[];
390
+ /**
391
+ * Sets the specified items to "checked" mode.
392
+ * An array of items is passed, not values, because we need to keep track if items,
393
+ * and if we already have the array of items then this spares the process of searching for the items by values.
394
+ * @public
395
+ * @param {DropList.ItemBase[]} items - an array of *items* to select (not values)
396
+ * @returns {SelectBox}
397
+ */
398
+ setSelectedItems(items: ItemBase[]): this;
399
+ /**
400
+ * @returns {SelectBox}
401
+ */
402
+ openList(): this;
403
+ /**
404
+ * @returns {SelectBox}
405
+ */
406
+ closeList(): this;
407
+ /**
408
+ * @param {boolean} [open]
409
+ * @returns {SelectBox}
410
+ */
411
+ toggleList(open?: boolean): this;
412
+ /**
413
+ * @returns {boolean}
414
+ */
415
+ isListOpen(): boolean;
416
+ /**
417
+ * @param {boolean} [on]
418
+ * @returns {SelectBox}
419
+ */
420
+ toggleLoading(on?: boolean): this;
421
+ /**
422
+ * @param {boolean} isLoadingMode
423
+ * @returns {SelectBox}
424
+ */
425
+ setIsLoadingMode(isLoadingMode?: boolean): this;
426
+ /**
427
+ * @returns {boolean}
428
+ */
429
+ getIsLoadingMode(): boolean;
430
+ /**
431
+ * Sets whether to close the list when loading mode is enabled
432
+ * @param {boolean} closeListWhenLoading
433
+ * @returns {SelectBox}
434
+ */
435
+ setCloseListWhenLoading(closeListWhenLoading: boolean): this;
436
+ /**
437
+ * @returns {boolean}
438
+ */
439
+ getCloseListWhenLoading(): boolean;
440
+ /**
441
+ * Sets when to clear the input field
442
+ * @param {string[]} clearInputWhen
443
+ * @returns {SelectBox}
444
+ */
445
+ setClearInputWhen(clearInputWhen: string[]): this;
446
+ /**
447
+ * Retrieves the settings for when to clear the input field
448
+ * @returns {string[]}
449
+ */
450
+ getClearInputWhen(): string[];
451
+ /**
452
+ * Sets the appropriate direction for the selectbox
453
+ * @param {'ltr'|'rtl'|'auto'} direction
454
+ * @return {SelectBox}
455
+ */
456
+ setDirection(direction: 'ltr' | 'rtl' | 'auto'): this;
457
+ /**
458
+ * Gets the supplied direction for the selectbox
459
+ * @return {'ltr'|'rtl'|'auto'}
460
+ */
461
+ getDirection(): "ltr" | "rtl" | "auto";
462
+ /**
463
+ * Can be called in case that the selectbox was attached to the dom late and has a weird size.
464
+ * @returns {SelectBox}
465
+ */
466
+ refreshSize(): this;
467
+ /**
468
+ * Register an event handler
469
+ * @param {(string|'*')?} event
470
+ * @param {function(any)} handler
471
+ * @returns {SelectBox}
472
+ */
473
+ on(event: string | '*', handler: (value: any) => void): this;
474
+ /**
475
+ * Register a one time event handler
476
+ * @param {(string|'*')?} event
477
+ * @param {function(any)} handler
478
+ * @returns {SelectBox}
479
+ */
480
+ once(event: string | '*', handler: (value: any) => void): this;
481
+ /**
482
+ * Remove an `handler` for `event`, all events for `event`, or all events completely.
483
+ * @param {(string|'*')?} event
484
+ * @param {function(any)} handler
485
+ * @returns {SelectBox}
486
+ */
487
+ off(event?: string | '*', handler?: (value: any) => void): this;
488
+ /**
489
+ * Emit an event
490
+ * @param {string} event
491
+ * @param {any} value
492
+ * @returns {SelectBox}
493
+ */
494
+ emit(event: string, value?: any): this;
495
+ }
496
+ export default SelectBox;
497
+ //# sourceMappingURL=SelectBox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SelectBox.d.ts","sourceRoot":"","sources":["../../src/lib/SelectBox.ts"],"names":[],"mappings":"AAwBA,OAAO,QAAwB,MAAM,YAAY,CAAC;AAalD,OAAO,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,eAAe,EAAmB,MAAM,YAAY,CAAC;AAgK/F,eAAO,MAAM,cAAc,EAAE,gBAqC5B,CAAC;AAkFF,cAAM,SAAS;IAQX;;OAEG;gBACS,OAAO,EAAE,gBAAgB;IAuNrC,OAAO;IAkDP,IAAI,EAAE,IAAI,WAAW,GAAG,IAAI,CAE3B;IAED,IAAI,g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G,KAAK,GAAG,MAAM,GAAG,IAAI;IAOrD;;;OAGG;IACH,YAAY;IAKZ;;;OAGG;IACH,WAAW;IAKX;;;;;OAKG;IACH,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI;IAK5D;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI;IAS9D;;;;;OAKG;IACH,GAAG,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,GAAG,IAAI;IAS/D;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI;CA0+DzC;AAED,eAAe,SAAS,CAAC"}
@@ -0,0 +1,5 @@
1
+ import DropList, { DefaultOptions as DropListDefaultOptions, ItemSymbol } from './DropList.js';
2
+ import SelectBox, { DefaultOptions as SelectBoxDefaultOptions } from './SelectBox.js';
3
+ export { DropList, SelectBox, DropListDefaultOptions, SelectBoxDefaultOptions, ItemSymbol };
4
+ export type { DropListOptions, SelectBoxOptions, ItemBase, Item, PositionAnchor, PositionOptions } from './types.js';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,EAAE,EAAE,cAAc,IAAI,sBAAsB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC/F,OAAO,SAAS,EAAE,EAAE,cAAc,IAAI,uBAAuB,EAAE,MAAM,gBAAgB,CAAC;AAEtF,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,UAAU,EAAE,CAAC;AAC5F,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC"}