@dodlhuat/basix 1.2.7 → 1.2.8
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.
- package/README.md +1 -1
- package/js/bottom-sheet.d.ts +37 -0
- package/js/calendar.d.ts +115 -0
- package/js/carousel.d.ts +34 -0
- package/js/chart.d.ts +73 -0
- package/js/code-viewer.d.ts +16 -0
- package/js/context-menu.d.ts +31 -0
- package/js/datepicker.d.ts +55 -0
- package/js/dropdown.d.ts +30 -0
- package/js/editor.d.ts +41 -0
- package/js/file-uploader.d.ts +48 -0
- package/js/flyout-menu.d.ts +37 -0
- package/js/gallery.d.ts +35 -0
- package/js/group-picker.d.ts +59 -0
- package/js/lightbox.d.ts +46 -0
- package/js/modal.d.ts +28 -0
- package/js/popover.d.ts +46 -0
- package/js/position.d.ts +31 -0
- package/js/push-menu.d.ts +31 -0
- package/js/range-slider.d.ts +9 -0
- package/js/scroll.d.ts +15 -0
- package/js/scrollbar.d.ts +48 -0
- package/js/select.d.ts +16 -0
- package/js/sidebar-nav.d.ts +22 -0
- package/js/stepper.d.ts +26 -0
- package/js/table.d.ts +98 -0
- package/js/tabs.d.ts +57 -0
- package/js/theme.d.ts +65 -0
- package/js/timepicker.d.ts +37 -0
- package/js/toast.d.ts +26 -0
- package/js/tooltip.d.ts +34 -0
- package/js/tree.d.ts +40 -0
- package/js/tsconfig.json +1 -0
- package/js/utils.d.ts +24 -0
- package/js/virtual-dropdown.d.ts +55 -0
- package/package.json +1 -1
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
interface DropdownOption {
|
|
2
|
+
label: string;
|
|
3
|
+
value: string | number;
|
|
4
|
+
}
|
|
5
|
+
interface VirtualDropdownConfig {
|
|
6
|
+
container: string | HTMLElement;
|
|
7
|
+
options: DropdownOption[];
|
|
8
|
+
multiSelect?: boolean;
|
|
9
|
+
searchable?: boolean;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
renderLimit?: number;
|
|
12
|
+
itemHeight?: number;
|
|
13
|
+
onSelect?: (selectedValues: Array<string | number>) => void;
|
|
14
|
+
}
|
|
15
|
+
declare class VirtualDropdown {
|
|
16
|
+
private readonly container;
|
|
17
|
+
private readonly options;
|
|
18
|
+
private readonly multiSelect;
|
|
19
|
+
private readonly searchable;
|
|
20
|
+
private readonly placeholder;
|
|
21
|
+
private readonly renderLimit;
|
|
22
|
+
private readonly itemHeight;
|
|
23
|
+
private readonly onSelect;
|
|
24
|
+
private readonly anchorName;
|
|
25
|
+
private trigger;
|
|
26
|
+
private triggerText;
|
|
27
|
+
private menu;
|
|
28
|
+
private listWrapper;
|
|
29
|
+
private scroller;
|
|
30
|
+
private spacer;
|
|
31
|
+
private content;
|
|
32
|
+
private searchInput?;
|
|
33
|
+
private selectedValues;
|
|
34
|
+
private filteredOptions;
|
|
35
|
+
private isOpen;
|
|
36
|
+
private scrollTop;
|
|
37
|
+
private boundHandlers;
|
|
38
|
+
constructor(config: VirtualDropdownConfig);
|
|
39
|
+
private init;
|
|
40
|
+
private renderBase;
|
|
41
|
+
private querySelector;
|
|
42
|
+
private bindEvents;
|
|
43
|
+
private toggle;
|
|
44
|
+
private open;
|
|
45
|
+
private close;
|
|
46
|
+
private handleSearch;
|
|
47
|
+
private renderList;
|
|
48
|
+
private handleSelect;
|
|
49
|
+
private updateTrigger;
|
|
50
|
+
getValue(): Array<string | number>;
|
|
51
|
+
setValue(values: Array<string | number>): void;
|
|
52
|
+
clearSelection(): void;
|
|
53
|
+
destroy(): void;
|
|
54
|
+
}
|
|
55
|
+
export { VirtualDropdown, DropdownOption, VirtualDropdownConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodlhuat/basix",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.8",
|
|
4
4
|
"description": "Basix is intended as a starter for the rapid development of a design. Each design element can be added individually to include only the data required. It is using plain javascript / typescript and therefore is not dependent on any plugin.",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./css/*": "./css/*",
|