@smilodon/core 1.0.10 → 1.0.11
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/dist/index.cjs +68 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +68 -1
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/index.umd.js +68 -1
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +1 -1
- package/dist/index.umd.min.js.map +1 -1
- package/dist/types/src/components/enhanced-select.d.ts +2 -0
- package/dist/types/src/config/global-config.d.ts +14 -0
- package/package.json +1 -1
|
@@ -131,6 +131,8 @@ export declare class EnhancedSelect extends HTMLElement {
|
|
|
131
131
|
* Render options based on current state
|
|
132
132
|
*/
|
|
133
133
|
private _renderOptions;
|
|
134
|
+
private _renderExpandButton;
|
|
135
|
+
private _toggleExpand;
|
|
134
136
|
private _renderSingleOption;
|
|
135
137
|
private _addLoadMoreTrigger;
|
|
136
138
|
}
|
|
@@ -32,6 +32,18 @@ export interface BusyBucketConfig {
|
|
|
32
32
|
/** Minimum display time (ms) to prevent flashing */
|
|
33
33
|
minDisplayTime?: number;
|
|
34
34
|
}
|
|
35
|
+
export interface ExpandableConfig {
|
|
36
|
+
/** Enable expandable dropdown height */
|
|
37
|
+
enabled: boolean;
|
|
38
|
+
/** Height when collapsed (default) */
|
|
39
|
+
collapsedHeight?: string;
|
|
40
|
+
/** Height when expanded */
|
|
41
|
+
expandedHeight?: string;
|
|
42
|
+
/** Label for the expand button */
|
|
43
|
+
expandLabel?: string;
|
|
44
|
+
/** Label for the collapse button */
|
|
45
|
+
collapseLabel?: string;
|
|
46
|
+
}
|
|
35
47
|
export interface SelectionConfig {
|
|
36
48
|
/** Single or multi-select mode */
|
|
37
49
|
mode: 'single' | 'multi';
|
|
@@ -140,6 +152,8 @@ export interface GlobalSelectConfig {
|
|
|
140
152
|
serverSide: ServerSideConfig;
|
|
141
153
|
/** Infinite scroll configuration */
|
|
142
154
|
infiniteScroll: InfiniteScrollConfig;
|
|
155
|
+
/** Expandable dropdown configuration */
|
|
156
|
+
expandable: ExpandableConfig;
|
|
143
157
|
/** Callbacks */
|
|
144
158
|
callbacks: CallbackConfig;
|
|
145
159
|
/** Enable/disable entire component */
|