@luzmo/lucero 0.0.35 → 0.0.36
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/components/action-menu/index.cjs +1 -1
- package/components/action-menu/index.js +1 -1
- package/components/button/index.cjs +1 -1
- package/components/button/index.js +1 -1
- package/components/index.cjs +1 -1
- package/components/index.js +2 -2
- package/components/options/index.cjs +6 -9
- package/components/options/index.js +20 -16
- package/components/options/options.d.ts +74 -5
- package/components/{pending-state-gs6IxYtB.cjs → pending-state-CaH1si5b.cjs} +1 -1
- package/components/{pending-state-C5OtdXCm.js → pending-state-DTX7ggyF.js} +1 -1
- package/components/picker/index.cjs +1 -1
- package/components/picker/index.js +2 -2
- package/components/{picker-C__p3kzA.cjs → picker-0tQg3Aob.cjs} +1 -1
- package/components/{picker-CM3kN655.js → picker-daUT4cUN.js} +1 -1
- package/components/progress-circle/index.cjs +1 -1
- package/components/progress-circle/index.js +1 -1
- package/components/{progress-circle-B12-2Gww.cjs → progress-circle-BvRJNuNo.cjs} +1 -1
- package/components/{progress-circle-CWGsfHnp.js → progress-circle-DXH9z8-6.js} +1 -1
- package/components/select/index.cjs +1 -1
- package/components/select/index.js +22 -5
- package/components/select/select.d.ts +165 -20
- package/custom-elements.json +1 -1
- package/package.json +1 -1
|
@@ -34,77 +34,143 @@ declare const LuzmoSelect_base: typeof Focusable & {
|
|
|
34
34
|
* @fires luzmo-opened - Announces that the overlay has been opened
|
|
35
35
|
* @fires luzmo-closed - Announces that the overlay has been closed
|
|
36
36
|
* @fires luzmo-search - Announces that the search has been updated
|
|
37
|
+
* @fires luzmo-scrolled - Announces that the user has scrolled within the options menu. Only fires when the options menu is virtualized.
|
|
38
|
+
* @attr size - The size of the select: `s`, `m`, `l` or `xl`
|
|
37
39
|
*/
|
|
38
40
|
export declare class LuzmoSelect extends LuzmoSelect_base {
|
|
41
|
+
/**
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
39
44
|
static get styles(): CSSResultArray;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
*/
|
|
40
48
|
button: HTMLButtonElement;
|
|
41
49
|
/**
|
|
42
|
-
* Whether the Picker is disabled.
|
|
50
|
+
* @attr disabled - Whether the Picker is disabled.
|
|
51
|
+
* @default false
|
|
43
52
|
*/
|
|
44
53
|
disabled: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* @attr focused - Whether the Picker is focused.
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
45
58
|
focused: boolean;
|
|
46
59
|
/**
|
|
47
|
-
* Whether to show icons only in menu or not in menu items or do show them (undefined)
|
|
60
|
+
* @attr icons - Whether to show icons only in menu (`only`) or not in menu items (`none`) or do show them (`undefined`)
|
|
48
61
|
*/
|
|
49
62
|
icons?: 'only' | 'none';
|
|
50
63
|
/**
|
|
51
|
-
* Type of visual selection
|
|
64
|
+
* @attr variant - Type of visual selection. Possible values: `checkmarks`, `checkboxes`, `highlight`
|
|
65
|
+
* @default 'checkmarks'
|
|
52
66
|
*/
|
|
53
67
|
variant?: 'checkmarks' | 'checkboxes' | 'highlight';
|
|
54
68
|
/**
|
|
55
|
-
* Whether the Select checkboxes are emphasized.
|
|
69
|
+
* @attr emphasized - Whether the Select checkboxes are emphasized.
|
|
70
|
+
* @default false
|
|
56
71
|
*/
|
|
57
72
|
emphasized: boolean;
|
|
58
73
|
/**
|
|
59
|
-
* Whether the
|
|
74
|
+
* @attr invalid - Whether the select is marked invalid.
|
|
75
|
+
* @default false
|
|
60
76
|
*/
|
|
61
77
|
invalid: boolean;
|
|
62
78
|
/**
|
|
63
|
-
* Whether the search input is visible.
|
|
79
|
+
* @attr search - Whether the search input is visible.
|
|
80
|
+
* @default 'auto'
|
|
64
81
|
*/
|
|
65
82
|
search?: 'on' | 'off' | 'auto';
|
|
83
|
+
/**
|
|
84
|
+
* @attr no-wrap - Whether the text in the option childs should wrap
|
|
85
|
+
* @default false
|
|
86
|
+
*/
|
|
66
87
|
noWrap: boolean;
|
|
67
88
|
/**
|
|
68
|
-
* Whether items are currently being retrieved.
|
|
89
|
+
* @attr retrieving - Whether items are currently being retrieved.
|
|
90
|
+
* @default false
|
|
69
91
|
*/
|
|
70
92
|
retrieving: boolean;
|
|
71
93
|
/**
|
|
72
|
-
* Whether the
|
|
94
|
+
* @attr pending - Whether the select is currently marked as pending.
|
|
95
|
+
* @default false
|
|
73
96
|
*/
|
|
74
97
|
pending: boolean;
|
|
75
98
|
/**
|
|
76
|
-
* Whether the Select is clearable.
|
|
99
|
+
* @attr clearable - Whether the Select is clearable.
|
|
100
|
+
* @default false
|
|
77
101
|
*/
|
|
78
102
|
clearable: boolean;
|
|
79
|
-
/**
|
|
103
|
+
/**
|
|
104
|
+
* @attr pending-label - Defines a string value that labels the Picker while it is in pending state.
|
|
105
|
+
* @default 'Pending'
|
|
106
|
+
*/
|
|
80
107
|
pendingLabel: string;
|
|
81
|
-
/**
|
|
108
|
+
/**
|
|
109
|
+
* @attr search-label - Defines a string value that labels the Picker when no results are found.
|
|
110
|
+
* @default 'Search'
|
|
111
|
+
*/
|
|
82
112
|
searchLabel: string;
|
|
83
|
-
/**
|
|
113
|
+
/**
|
|
114
|
+
* @attr no-results-label - Defines a string value that labels the Picker when no results are found.
|
|
115
|
+
* @default 'No results'
|
|
116
|
+
*/
|
|
84
117
|
noResultsLabel: string;
|
|
85
|
-
/**
|
|
118
|
+
/**
|
|
119
|
+
* @attr no-data-label - Defines a string value that labels the Picker when no data is available.
|
|
120
|
+
* @default 'No data'
|
|
121
|
+
*/
|
|
86
122
|
noDataLabel: string;
|
|
87
|
-
/**
|
|
123
|
+
/**
|
|
124
|
+
* @attr multiple-label-template - Defines a string value that labels the Picker when multiple items are selected.
|
|
125
|
+
* @default 'Selected {count} items'
|
|
126
|
+
*/
|
|
88
127
|
multipleLabelTemplate: string;
|
|
128
|
+
/**
|
|
129
|
+
* @attr label - The label of the select. This is used to set the aria-label of the select.
|
|
130
|
+
*/
|
|
89
131
|
label?: string;
|
|
90
132
|
/**
|
|
91
|
-
* Whether the Picker is open.
|
|
133
|
+
* @attr open - Whether the Picker is open.
|
|
134
|
+
* @default false
|
|
92
135
|
*/
|
|
93
136
|
open: boolean;
|
|
94
137
|
/**
|
|
95
|
-
*
|
|
138
|
+
* @attr readonly - Whether the select is readonly.
|
|
139
|
+
* @default false
|
|
96
140
|
*/
|
|
97
141
|
readonly: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* @attr label-alignment - The alignment of the label.
|
|
144
|
+
* @default 'inline'
|
|
145
|
+
*/
|
|
98
146
|
labelAlignment?: 'inline';
|
|
147
|
+
/**
|
|
148
|
+
* @internal
|
|
149
|
+
*/
|
|
99
150
|
displayLabelContent?: {
|
|
100
151
|
label?: string;
|
|
101
152
|
icon?: string;
|
|
102
153
|
shortLabel?: string;
|
|
103
154
|
};
|
|
155
|
+
/**
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
104
158
|
searchString?: string;
|
|
159
|
+
/**
|
|
160
|
+
* @internal
|
|
161
|
+
*/
|
|
105
162
|
optionsMenu: LuzmoOptions;
|
|
163
|
+
/**
|
|
164
|
+
* @internal
|
|
165
|
+
*/
|
|
106
166
|
searchInput: HTMLInputElement;
|
|
167
|
+
/**
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
107
170
|
overlayElement: LuzmoOverlay;
|
|
171
|
+
/**
|
|
172
|
+
* @internal
|
|
173
|
+
*/
|
|
108
174
|
virtualizer: LitVirtualizer;
|
|
109
175
|
/**
|
|
110
176
|
* @type {"top" | "top-start" | "top-end" | "right" | "right-start" | "right-end" | "bottom" | "bottom-start" | "bottom-end" | "left" | "left-start" | "left-end"}
|
|
@@ -112,30 +178,79 @@ export declare class LuzmoSelect extends LuzmoSelect_base {
|
|
|
112
178
|
*/
|
|
113
179
|
placement: Placement;
|
|
114
180
|
/**
|
|
115
|
-
* Display as a quiet picker
|
|
181
|
+
* @attr quiet - Display as a quiet picker
|
|
182
|
+
* @default false
|
|
116
183
|
*/
|
|
117
184
|
quiet: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* The value of the select.
|
|
187
|
+
* @type {string | number | null}
|
|
188
|
+
* @default []
|
|
189
|
+
*/
|
|
118
190
|
value: (string | number | null)[];
|
|
191
|
+
/**
|
|
192
|
+
* The options of the select.
|
|
193
|
+
* @type {any[]}
|
|
194
|
+
* @default []
|
|
195
|
+
*/
|
|
119
196
|
options: any[];
|
|
197
|
+
/**
|
|
198
|
+
* @internal
|
|
199
|
+
*/
|
|
120
200
|
get selfManageFocusElement(): boolean;
|
|
121
201
|
selects: undefined | 'single' | 'multiple';
|
|
202
|
+
/**
|
|
203
|
+
* @internal
|
|
204
|
+
*/
|
|
122
205
|
dependencyManager: DependencyManagerController;
|
|
206
|
+
/**
|
|
207
|
+
* @internal
|
|
208
|
+
*/
|
|
123
209
|
isMobile: MatchMediaController;
|
|
210
|
+
/**
|
|
211
|
+
* @internal
|
|
212
|
+
*/
|
|
124
213
|
strategy: DesktopController | MobileController;
|
|
214
|
+
/**
|
|
215
|
+
* @internal
|
|
216
|
+
*/
|
|
125
217
|
pendingStateController: PendingStateController<this>;
|
|
218
|
+
/**
|
|
219
|
+
* @internal
|
|
220
|
+
*/
|
|
126
221
|
protected listRole: 'listbox' | 'menu';
|
|
222
|
+
/**
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
127
225
|
protected itemRole: string;
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
128
229
|
protected tooltipEl?: LuzmoTooltip;
|
|
230
|
+
/**
|
|
231
|
+
* @internal
|
|
232
|
+
*/
|
|
129
233
|
protected hasRenderedOverlay: boolean;
|
|
234
|
+
/**
|
|
235
|
+
* @internal
|
|
236
|
+
*/
|
|
130
237
|
private _selfManageFocusElement;
|
|
238
|
+
/**
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
131
241
|
private selectionPromise;
|
|
242
|
+
/**
|
|
243
|
+
* @internal
|
|
244
|
+
*/
|
|
132
245
|
private enterKeydownOn;
|
|
133
|
-
private _selectedOptions;
|
|
134
246
|
/**
|
|
135
|
-
*
|
|
136
|
-
* The `PendingStateController` manages the pending state of the Picker.
|
|
247
|
+
* @internal
|
|
137
248
|
*/
|
|
249
|
+
private _selectedOptions;
|
|
138
250
|
constructor();
|
|
251
|
+
/**
|
|
252
|
+
* @internal
|
|
253
|
+
*/
|
|
139
254
|
get focusElement(): HTMLElement;
|
|
140
255
|
forceFocusVisible(): void;
|
|
141
256
|
click(): void;
|
|
@@ -146,6 +261,9 @@ export declare class LuzmoSelect extends LuzmoSelect_base {
|
|
|
146
261
|
handleButtonFocus(event: FocusEvent): void;
|
|
147
262
|
toggle(target?: boolean): void;
|
|
148
263
|
close(): void;
|
|
264
|
+
/**
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
149
267
|
handleSlottableRequest: (_event: SlottableRequestEvent) => void;
|
|
150
268
|
bindEvents(): void;
|
|
151
269
|
connectedCallback(): void;
|
|
@@ -153,8 +271,17 @@ export declare class LuzmoSelect extends LuzmoSelect_base {
|
|
|
153
271
|
protected handleTooltipSlotchange(event: Event & {
|
|
154
272
|
target: HTMLSlotElement;
|
|
155
273
|
}): void;
|
|
274
|
+
/**
|
|
275
|
+
* @internal
|
|
276
|
+
*/
|
|
156
277
|
protected renderAngleIcon: () => TemplateResult;
|
|
278
|
+
/**
|
|
279
|
+
* @internal
|
|
280
|
+
*/
|
|
157
281
|
protected renderAlertIcon: () => TemplateResult;
|
|
282
|
+
/**
|
|
283
|
+
* @internal
|
|
284
|
+
*/
|
|
158
285
|
protected get labelTemplate(): TemplateResult[];
|
|
159
286
|
protected update(changes: PropertyValues<this>): void;
|
|
160
287
|
protected bindButtonKeydownListener(): void;
|
|
@@ -163,21 +290,39 @@ export declare class LuzmoSelect extends LuzmoSelect_base {
|
|
|
163
290
|
protected firstUpdated(changes: PropertyValues<this>): void;
|
|
164
291
|
private _getCssVarInPixels;
|
|
165
292
|
private _estimatePopoverWidth;
|
|
293
|
+
/**
|
|
294
|
+
* @internal
|
|
295
|
+
*/
|
|
166
296
|
protected get dismissHelper(): TemplateResult;
|
|
167
297
|
protected render(): TemplateResult;
|
|
298
|
+
/**
|
|
299
|
+
* @internal
|
|
300
|
+
*/
|
|
168
301
|
protected get renderDescriptionSlot(): TemplateResult;
|
|
169
302
|
protected setSelectedOptionsFromValue(): void;
|
|
170
303
|
protected renderSearchInput(): TemplateResult;
|
|
304
|
+
/**
|
|
305
|
+
* @internal
|
|
306
|
+
*/
|
|
171
307
|
protected get renderMenu(): TemplateResult;
|
|
172
308
|
protected renderOverlay(menu: TemplateResult): TemplateResult;
|
|
173
309
|
protected renderContainer(menu: TemplateResult): TemplateResult;
|
|
174
310
|
protected getUpdateComplete(): Promise<boolean>;
|
|
311
|
+
/**
|
|
312
|
+
* @internal
|
|
313
|
+
*/
|
|
175
314
|
protected handleEnterKeydown: (event: KeyboardEvent) => void;
|
|
176
315
|
protected handleScrolled(event: any): void;
|
|
177
316
|
protected handleExceededTop(event: Event): void;
|
|
178
317
|
protected handleSearchInput(event: CustomEvent): void;
|
|
179
318
|
protected handleSearchKeydown(event: KeyboardEvent): void;
|
|
319
|
+
/**
|
|
320
|
+
* @internal
|
|
321
|
+
*/
|
|
180
322
|
protected clearValue: (event: Event) => void;
|
|
323
|
+
/**
|
|
324
|
+
* @internal
|
|
325
|
+
*/
|
|
181
326
|
protected handleKeydown: (event: KeyboardEvent) => void;
|
|
182
327
|
}
|
|
183
328
|
export {};
|