@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.0 → 0.0.0-pr624.10
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/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
- package/components/bibtemplate/dist/index.js +88 -6
- package/components/bibtemplate/dist/registered.js +88 -6
- package/components/checkbox/demo/api.min.js +4 -3
- package/components/checkbox/demo/index.min.js +4 -3
- package/components/checkbox/dist/index.js +4 -3
- package/components/checkbox/dist/registered.js +4 -3
- package/components/combobox/demo/api.md +30 -29
- package/components/combobox/demo/api.min.js +609 -532
- package/components/combobox/demo/index.html +0 -1
- package/components/combobox/demo/index.md +43 -0
- package/components/combobox/demo/index.min.js +607 -530
- package/components/combobox/dist/auro-combobox.d.ts +13 -18
- package/components/combobox/dist/index.js +479 -387
- package/components/combobox/dist/registered.js +479 -387
- package/components/counter/demo/api.min.js +377 -62
- package/components/counter/demo/index.min.js +377 -62
- package/components/counter/dist/index.js +377 -62
- package/components/counter/dist/registered.js +377 -62
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +868 -438
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +868 -438
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +710 -280
- package/components/datepicker/dist/registered.js +710 -280
- package/components/dropdown/demo/api.md +2 -2
- package/components/dropdown/demo/api.min.js +199 -37
- package/components/dropdown/demo/index.md +45 -0
- package/components/dropdown/demo/index.min.js +199 -37
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +199 -37
- package/components/dropdown/dist/registered.js +199 -37
- package/components/dropdown/dist/styles/classic/color-css.d.ts +2 -0
- package/components/dropdown/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +57 -53
- package/components/input/demo/api.min.js +142 -141
- package/components/input/demo/index.md +4 -4
- package/components/input/demo/index.min.js +142 -141
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/auro-input.d.ts +22 -13
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +142 -141
- package/components/input/dist/registered.js +142 -141
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +95 -1
- package/components/menu/demo/api.md +11 -11
- package/components/menu/demo/api.min.js +115 -130
- package/components/menu/demo/index.min.js +115 -130
- package/components/menu/dist/auro-menu-utils.d.ts +0 -8
- package/components/menu/dist/auro-menu.d.ts +3 -8
- package/components/menu/dist/index.d.ts +1 -1
- package/components/menu/dist/index.js +116 -90
- package/components/menu/dist/registered.js +115 -130
- package/components/radio/demo/api.min.js +4 -3
- package/components/radio/demo/index.min.js +4 -3
- package/components/radio/dist/index.js +4 -3
- package/components/radio/dist/registered.js +4 -3
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +108 -42
- package/components/select/demo/api.min.js +1264 -352
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1251 -351
- package/components/select/dist/auro-select.d.ts +110 -18
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1105 -190
- package/components/select/dist/registered.js +1105 -190
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +3 -3
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default → datepicker/dist/styles/emphasized}/style-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{default/bibStyles-css.d.ts → classic/bibColors-css.d.ts} +0 -0
- /package/components/dropdown/dist/styles/{style-css.d.ts → classic/bibStyles-css.d.ts} +0 -0
|
@@ -6,12 +6,13 @@
|
|
|
6
6
|
* @slot label - Defines the content of the label.
|
|
7
7
|
* @slot helpText - Defines the content of the helpText.
|
|
8
8
|
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
9
|
+
* @slot valueText - Dropdown value text display.
|
|
9
10
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
10
|
-
* @event input - Notifies every time the value prop of the element is changed.
|
|
11
|
+
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
11
12
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
12
13
|
* @csspart helpText - Apply CSS to the help text.
|
|
13
14
|
*/
|
|
14
|
-
export class AuroSelect extends
|
|
15
|
+
export class AuroSelect extends AuroElement {
|
|
15
16
|
static get properties(): {
|
|
16
17
|
/**
|
|
17
18
|
* If declared, sets the autocomplete attribute for the select element.
|
|
@@ -20,6 +21,13 @@ export class AuroSelect extends LitElement {
|
|
|
20
21
|
type: StringConstructor;
|
|
21
22
|
reflect: boolean;
|
|
22
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
26
|
+
*/
|
|
27
|
+
forceDisplayValue: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
reflect: boolean;
|
|
30
|
+
};
|
|
23
31
|
/**
|
|
24
32
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
25
33
|
* @default false
|
|
@@ -35,6 +43,20 @@ export class AuroSelect extends LitElement {
|
|
|
35
43
|
type: BooleanConstructor;
|
|
36
44
|
reflect: boolean;
|
|
37
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* @private
|
|
48
|
+
*/
|
|
49
|
+
isPopoverVisible: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
reflect: boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
55
|
+
*/
|
|
56
|
+
matchWidth: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
reflect: boolean;
|
|
59
|
+
};
|
|
38
60
|
/**
|
|
39
61
|
* The name for the select element.
|
|
40
62
|
*/
|
|
@@ -63,7 +85,7 @@ export class AuroSelect extends LitElement {
|
|
|
63
85
|
};
|
|
64
86
|
/**
|
|
65
87
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
66
|
-
* Otherwise, Heading 600
|
|
88
|
+
* Otherwise, Heading 600.
|
|
67
89
|
*/
|
|
68
90
|
largeFullscreenHeadline: {
|
|
69
91
|
type: BooleanConstructor;
|
|
@@ -114,12 +136,10 @@ export class AuroSelect extends LitElement {
|
|
|
114
136
|
type: ObjectConstructor;
|
|
115
137
|
};
|
|
116
138
|
/**
|
|
117
|
-
* Specifies the current selected menuOption.
|
|
139
|
+
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
140
|
+
* @type {HTMLElement|Array<HTMLElement>}
|
|
118
141
|
*/
|
|
119
|
-
optionSelected:
|
|
120
|
-
converter: typeof arrayConverter;
|
|
121
|
-
hasChanged: typeof arrayOrUndefinedHasChanged;
|
|
122
|
-
};
|
|
142
|
+
optionSelected: HTMLElement | Array<HTMLElement>;
|
|
123
143
|
/**
|
|
124
144
|
* @private
|
|
125
145
|
*/
|
|
@@ -179,12 +199,10 @@ export class AuroSelect extends LitElement {
|
|
|
179
199
|
reflect: boolean;
|
|
180
200
|
};
|
|
181
201
|
/**
|
|
182
|
-
* Value selected for the component.
|
|
202
|
+
* Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
203
|
+
* @type {String|Array<String>}
|
|
183
204
|
*/
|
|
184
|
-
value:
|
|
185
|
-
converter: typeof arrayConverter;
|
|
186
|
-
hasChanged: typeof arrayOrUndefinedHasChanged;
|
|
187
|
-
};
|
|
205
|
+
value: string | Array<string>;
|
|
188
206
|
/**
|
|
189
207
|
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
190
208
|
*/
|
|
@@ -200,6 +218,22 @@ export class AuroSelect extends LitElement {
|
|
|
200
218
|
* @private
|
|
201
219
|
*/
|
|
202
220
|
touched: boolean;
|
|
221
|
+
/**
|
|
222
|
+
* @private
|
|
223
|
+
*/
|
|
224
|
+
hasFocus: {
|
|
225
|
+
type: BooleanConstructor;
|
|
226
|
+
reflect: boolean;
|
|
227
|
+
attribute: boolean;
|
|
228
|
+
};
|
|
229
|
+
/**
|
|
230
|
+
* @private
|
|
231
|
+
*/
|
|
232
|
+
hasDisplayValueContent: {
|
|
233
|
+
type: BooleanConstructor;
|
|
234
|
+
reflect: boolean;
|
|
235
|
+
attribute: boolean;
|
|
236
|
+
};
|
|
203
237
|
};
|
|
204
238
|
static get styles(): import("lit").CSSResult[];
|
|
205
239
|
/**
|
|
@@ -211,10 +245,14 @@ export class AuroSelect extends LitElement {
|
|
|
211
245
|
*
|
|
212
246
|
*/
|
|
213
247
|
static register(name?: string): void;
|
|
248
|
+
matchWidth: boolean;
|
|
249
|
+
shape: string;
|
|
250
|
+
size: string;
|
|
214
251
|
placement: string;
|
|
215
252
|
offset: number;
|
|
216
253
|
noFlip: boolean;
|
|
217
254
|
autoPlacement: boolean;
|
|
255
|
+
forceDisplayValue: boolean;
|
|
218
256
|
/**
|
|
219
257
|
* @private
|
|
220
258
|
*/
|
|
@@ -235,10 +273,22 @@ export class AuroSelect extends LitElement {
|
|
|
235
273
|
* @private
|
|
236
274
|
*/
|
|
237
275
|
private bibtemplateTag;
|
|
276
|
+
/**
|
|
277
|
+
* @private
|
|
278
|
+
*/
|
|
279
|
+
private helpTextTag;
|
|
238
280
|
/**
|
|
239
281
|
* @private
|
|
240
282
|
*/
|
|
241
283
|
private isHiddenWhileLoading;
|
|
284
|
+
/**
|
|
285
|
+
* @private
|
|
286
|
+
*/
|
|
287
|
+
private hasFocus;
|
|
288
|
+
/**
|
|
289
|
+
* @private
|
|
290
|
+
*/
|
|
291
|
+
private hasDisplayValueContent;
|
|
242
292
|
/**
|
|
243
293
|
* @private
|
|
244
294
|
* @returns {void} Internal defaults.
|
|
@@ -250,6 +300,13 @@ export class AuroSelect extends LitElement {
|
|
|
250
300
|
value: any;
|
|
251
301
|
fullscreenBreakpoint: string;
|
|
252
302
|
onDark: boolean;
|
|
303
|
+
isPopoverVisible: any;
|
|
304
|
+
/**
|
|
305
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
306
|
+
* @private
|
|
307
|
+
* @return {object} - Returns classmap.
|
|
308
|
+
*/
|
|
309
|
+
private get commonWrapperClasses();
|
|
253
310
|
/**
|
|
254
311
|
* Binds all behavior needed to the dropdown after rendering.
|
|
255
312
|
* @private
|
|
@@ -257,7 +314,6 @@ export class AuroSelect extends LitElement {
|
|
|
257
314
|
*/
|
|
258
315
|
private configureDropdown;
|
|
259
316
|
dropdown: any;
|
|
260
|
-
menuWrapper: any;
|
|
261
317
|
bibtemplate: any;
|
|
262
318
|
/**
|
|
263
319
|
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
@@ -322,6 +378,11 @@ export class AuroSelect extends LitElement {
|
|
|
322
378
|
* @returns {void}
|
|
323
379
|
*/
|
|
324
380
|
private generateOptionsArray;
|
|
381
|
+
/**
|
|
382
|
+
* Resets all options to their default state.
|
|
383
|
+
* @private
|
|
384
|
+
*/
|
|
385
|
+
private clearSelection;
|
|
325
386
|
firstUpdated(): void;
|
|
326
387
|
updated(changedProperties: any): Promise<void>;
|
|
327
388
|
/**
|
|
@@ -352,8 +413,39 @@ export class AuroSelect extends LitElement {
|
|
|
352
413
|
* @private
|
|
353
414
|
*/
|
|
354
415
|
private _updateNativeSelect;
|
|
355
|
-
|
|
416
|
+
renderAriaHtml(): import("lit-html").TemplateResult;
|
|
417
|
+
renderNativeSelect(): import("lit-html").TemplateResult;
|
|
418
|
+
/**
|
|
419
|
+
* Returns HTML for the help text and error message.
|
|
420
|
+
* @private
|
|
421
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
422
|
+
*/
|
|
423
|
+
private renderHtmlHelpText;
|
|
424
|
+
/**
|
|
425
|
+
* Returns HTML for the emphasized layout.
|
|
426
|
+
* @private
|
|
427
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
|
|
428
|
+
*/
|
|
429
|
+
private renderLayoutEmphasized;
|
|
430
|
+
/**
|
|
431
|
+
* Returns HTML for the snowflake layout.
|
|
432
|
+
* @private
|
|
433
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
|
|
434
|
+
*/
|
|
435
|
+
private renderLayoutSnowflake;
|
|
436
|
+
/**
|
|
437
|
+
* Returns HTML for the classic layout.
|
|
438
|
+
* @private
|
|
439
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
440
|
+
*/
|
|
441
|
+
private renderLayoutClassic;
|
|
442
|
+
/**
|
|
443
|
+
* Logic to determine the layout of the component.
|
|
444
|
+
* @private
|
|
445
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
446
|
+
* @returns {void}
|
|
447
|
+
*/
|
|
448
|
+
private renderLayout;
|
|
449
|
+
renderBACKUP(): import("lit-html").TemplateResult;
|
|
356
450
|
}
|
|
357
|
-
import {
|
|
358
|
-
import { arrayConverter } from '@aurodesignsystem/auro-menu';
|
|
359
|
-
import { arrayOrUndefinedHasChanged } from '@aurodesignsystem/auro-menu';
|
|
451
|
+
import { AuroElement } from '../../layoutElement/src/auroElement.js';
|