@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.50
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 +13 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1292 -79
- package/components/bibtemplate/dist/registered.js +1292 -79
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +47 -14
- package/components/checkbox/demo/api.min.js +47 -34
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +47 -34
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +47 -34
- package/components/checkbox/dist/registered.js +47 -34
- package/components/combobox/demo/api.md +112 -8
- package/components/combobox/demo/api.min.js +3203 -760
- package/components/combobox/demo/index.md +6 -30
- package/components/combobox/demo/index.min.js +3203 -760
- package/components/combobox/dist/auro-combobox.d.ts +37 -16
- package/components/combobox/dist/index.js +3093 -791
- package/components/combobox/dist/registered.js +3093 -791
- package/components/counter/demo/api.html +1 -0
- package/components/counter/demo/api.md +29 -21
- package/components/counter/demo/api.min.js +3332 -615
- package/components/counter/demo/index.html +1 -0
- package/components/counter/demo/index.md +103 -34
- package/components/counter/demo/index.min.js +3332 -615
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +90 -7
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3332 -615
- package/components/counter/dist/registered.js +3332 -615
- package/components/datepicker/demo/api.md +36 -19
- package/components/datepicker/demo/api.min.js +14940 -10964
- package/components/datepicker/demo/index.md +80 -0
- package/components/datepicker/demo/index.min.js +14940 -10964
- package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +11817 -7841
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +11817 -7841
- package/components/dropdown/demo/api.md +25 -12
- package/components/dropdown/demo/api.min.js +552 -148
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +552 -148
- package/components/dropdown/dist/auro-dropdown.d.ts +28 -9
- package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
- package/components/dropdown/dist/index.js +552 -148
- package/components/dropdown/dist/registered.js +552 -148
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +2 -2
- package/components/helptext/dist/registered.js +2 -2
- package/components/input/README.md +5 -2
- package/components/input/demo/api.md +271 -176
- package/components/input/demo/api.min.js +958 -272
- package/components/input/demo/index.md +48 -32
- package/components/input/demo/index.min.js +957 -271
- package/components/input/demo/readme.md +5 -2
- package/components/input/dist/auro-input.d.ts +23 -15
- package/components/input/dist/base-input.d.ts +33 -9
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +957 -271
- package/components/input/dist/registered.js +957 -271
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +68 -7
- package/components/menu/demo/api.min.js +278 -42
- package/components/menu/demo/index.min.js +278 -42
- package/components/menu/dist/auro-menu.d.ts +28 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +278 -42
- package/components/menu/dist/registered.js +278 -42
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.md +7 -8
- package/components/radio/demo/api.min.js +71 -83
- package/components/radio/demo/index.min.js +71 -83
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +9 -12
- package/components/radio/dist/index.js +71 -83
- package/components/radio/dist/registered.js +71 -83
- package/components/select/demo/api.js +0 -2
- package/components/select/demo/api.md +100 -45
- package/components/select/demo/api.min.js +3009 -526
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +176 -768
- package/components/select/demo/index.min.js +3013 -518
- package/components/select/dist/auro-select.d.ts +126 -11
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +2892 -538
- package/components/select/dist/registered.js +2892 -538
- 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 +28 -26
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
|
@@ -4,15 +4,16 @@
|
|
|
4
4
|
* @slot - Default slot for the menu content.
|
|
5
5
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options
|
|
6
6
|
* @slot label - Defines the content of the label.
|
|
7
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
7
8
|
* @slot helpText - Defines the content of the helpText.
|
|
8
|
-
* @slot placeholder - Defines the content of the placeholder to be shown when there is no value
|
|
9
9
|
* @slot valueText - Dropdown value text display.
|
|
10
|
+
* @slot displayValue - Allows custom HTML content to display the selected value when select is not focused.
|
|
10
11
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
11
12
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
12
13
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
13
14
|
* @csspart helpText - Apply CSS to the help text.
|
|
14
15
|
*/
|
|
15
|
-
export class AuroSelect extends
|
|
16
|
+
export class AuroSelect extends AuroElement {
|
|
16
17
|
static get properties(): {
|
|
17
18
|
/**
|
|
18
19
|
* If declared, sets the autocomplete attribute for the select element.
|
|
@@ -21,6 +22,13 @@ export class AuroSelect extends LitElement {
|
|
|
21
22
|
type: StringConstructor;
|
|
22
23
|
reflect: boolean;
|
|
23
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
27
|
+
*/
|
|
28
|
+
forceDisplayValue: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
reflect: boolean;
|
|
31
|
+
};
|
|
24
32
|
/**
|
|
25
33
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
26
34
|
* @default false
|
|
@@ -37,19 +45,26 @@ export class AuroSelect extends LitElement {
|
|
|
37
45
|
reflect: boolean;
|
|
38
46
|
};
|
|
39
47
|
/**
|
|
40
|
-
*
|
|
48
|
+
* @private
|
|
41
49
|
*/
|
|
42
|
-
|
|
43
|
-
type:
|
|
50
|
+
isPopoverVisible: {
|
|
51
|
+
type: BooleanConstructor;
|
|
44
52
|
reflect: boolean;
|
|
45
53
|
};
|
|
46
54
|
/**
|
|
47
|
-
* If
|
|
55
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
48
56
|
*/
|
|
49
|
-
|
|
57
|
+
matchWidth: {
|
|
50
58
|
type: BooleanConstructor;
|
|
51
59
|
reflect: boolean;
|
|
52
60
|
};
|
|
61
|
+
/**
|
|
62
|
+
* The name for the select element.
|
|
63
|
+
*/
|
|
64
|
+
name: {
|
|
65
|
+
type: StringConstructor;
|
|
66
|
+
reflect: boolean;
|
|
67
|
+
};
|
|
53
68
|
/**
|
|
54
69
|
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
55
70
|
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
@@ -131,13 +146,20 @@ export class AuroSelect extends LitElement {
|
|
|
131
146
|
* "top" | "right" | "bottom" | "left" |
|
|
132
147
|
* "bottom-start" | "top-start" | "top-end" |
|
|
133
148
|
* "right-start" | "right-end" | "bottom-end" |
|
|
134
|
-
* "left-start" | "left-end"
|
|
149
|
+
* "left-start" | "left-end".
|
|
135
150
|
* @default bottom-start
|
|
136
151
|
*/
|
|
137
152
|
placement: {
|
|
138
153
|
type: StringConstructor;
|
|
139
154
|
reflect: boolean;
|
|
140
155
|
};
|
|
156
|
+
/**
|
|
157
|
+
* Define custom placeholder text.
|
|
158
|
+
*/
|
|
159
|
+
placeholder: {
|
|
160
|
+
type: StringConstructor;
|
|
161
|
+
reflect: boolean;
|
|
162
|
+
};
|
|
141
163
|
/**
|
|
142
164
|
* Populates the `required` attribute on the element. Used for client-side validation.
|
|
143
165
|
*/
|
|
@@ -197,6 +219,22 @@ export class AuroSelect extends LitElement {
|
|
|
197
219
|
* @private
|
|
198
220
|
*/
|
|
199
221
|
touched: boolean;
|
|
222
|
+
/**
|
|
223
|
+
* @private
|
|
224
|
+
*/
|
|
225
|
+
hasFocus: {
|
|
226
|
+
type: BooleanConstructor;
|
|
227
|
+
reflect: boolean;
|
|
228
|
+
attribute: boolean;
|
|
229
|
+
};
|
|
230
|
+
/**
|
|
231
|
+
* @private
|
|
232
|
+
*/
|
|
233
|
+
hasDisplayValueContent: {
|
|
234
|
+
type: BooleanConstructor;
|
|
235
|
+
reflect: boolean;
|
|
236
|
+
attribute: boolean;
|
|
237
|
+
};
|
|
200
238
|
};
|
|
201
239
|
static get styles(): import("lit").CSSResult[];
|
|
202
240
|
/**
|
|
@@ -208,10 +246,14 @@ export class AuroSelect extends LitElement {
|
|
|
208
246
|
*
|
|
209
247
|
*/
|
|
210
248
|
static register(name?: string): void;
|
|
249
|
+
matchWidth: boolean;
|
|
250
|
+
shape: string;
|
|
251
|
+
size: string;
|
|
211
252
|
placement: string;
|
|
212
253
|
offset: number;
|
|
213
254
|
noFlip: boolean;
|
|
214
255
|
autoPlacement: boolean;
|
|
256
|
+
forceDisplayValue: boolean;
|
|
215
257
|
/**
|
|
216
258
|
* @private
|
|
217
259
|
*/
|
|
@@ -232,10 +274,22 @@ export class AuroSelect extends LitElement {
|
|
|
232
274
|
* @private
|
|
233
275
|
*/
|
|
234
276
|
private bibtemplateTag;
|
|
277
|
+
/**
|
|
278
|
+
* @private
|
|
279
|
+
*/
|
|
280
|
+
private helpTextTag;
|
|
235
281
|
/**
|
|
236
282
|
* @private
|
|
237
283
|
*/
|
|
238
284
|
private isHiddenWhileLoading;
|
|
285
|
+
/**
|
|
286
|
+
* @private
|
|
287
|
+
*/
|
|
288
|
+
private hasFocus;
|
|
289
|
+
/**
|
|
290
|
+
* @private
|
|
291
|
+
*/
|
|
292
|
+
private hasDisplayValueContent;
|
|
239
293
|
/**
|
|
240
294
|
* @private
|
|
241
295
|
* @returns {void} Internal defaults.
|
|
@@ -247,6 +301,19 @@ export class AuroSelect extends LitElement {
|
|
|
247
301
|
value: any;
|
|
248
302
|
fullscreenBreakpoint: string;
|
|
249
303
|
onDark: boolean;
|
|
304
|
+
isPopoverVisible: any;
|
|
305
|
+
/**
|
|
306
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
307
|
+
* @private
|
|
308
|
+
* @returns {void}
|
|
309
|
+
*/
|
|
310
|
+
private get commonLabelClasses();
|
|
311
|
+
/**
|
|
312
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
313
|
+
* @private
|
|
314
|
+
* @returns {object} - Returns classmap.
|
|
315
|
+
*/
|
|
316
|
+
private get commonWrapperClasses();
|
|
250
317
|
/**
|
|
251
318
|
* Binds all behavior needed to the dropdown after rendering.
|
|
252
319
|
* @private
|
|
@@ -254,7 +321,6 @@ export class AuroSelect extends LitElement {
|
|
|
254
321
|
*/
|
|
255
322
|
private configureDropdown;
|
|
256
323
|
dropdown: any;
|
|
257
|
-
menuWrapper: any;
|
|
258
324
|
bibtemplate: any;
|
|
259
325
|
/**
|
|
260
326
|
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
@@ -325,6 +391,13 @@ export class AuroSelect extends LitElement {
|
|
|
325
391
|
*/
|
|
326
392
|
private clearSelection;
|
|
327
393
|
firstUpdated(): void;
|
|
394
|
+
/**
|
|
395
|
+
* Update the menu value. With checks for menu existence. Awaits value update.
|
|
396
|
+
* @param {string} value - The value to set in the menu.
|
|
397
|
+
* @returns {void}
|
|
398
|
+
* @private
|
|
399
|
+
*/
|
|
400
|
+
private updateMenuValue;
|
|
328
401
|
updated(changedProperties: any): Promise<void>;
|
|
329
402
|
/**
|
|
330
403
|
* Resets component to initial state.
|
|
@@ -354,6 +427,48 @@ export class AuroSelect extends LitElement {
|
|
|
354
427
|
* @private
|
|
355
428
|
*/
|
|
356
429
|
private _updateNativeSelect;
|
|
357
|
-
|
|
430
|
+
/**
|
|
431
|
+
* Returns HTML for the hidden a11y screen reader content.
|
|
432
|
+
* @private
|
|
433
|
+
* @returns {html} - Returns HTML for the hidden a11y screen reader content.
|
|
434
|
+
*/
|
|
435
|
+
private renderAriaHtml;
|
|
436
|
+
/**
|
|
437
|
+
* Returns HTML for the hidden HTML5 select.
|
|
438
|
+
* @private
|
|
439
|
+
* @returns {html} - Returns HTML for the hidden HTML5 select.
|
|
440
|
+
*/
|
|
441
|
+
private renderNativeSelect;
|
|
442
|
+
/**
|
|
443
|
+
* Returns HTML for the help text and error message.
|
|
444
|
+
* @private
|
|
445
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
446
|
+
*/
|
|
447
|
+
private renderHtmlHelpText;
|
|
448
|
+
/**
|
|
449
|
+
* Returns HTML for the emphasized layout.
|
|
450
|
+
* @private
|
|
451
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the emphasized layout.
|
|
452
|
+
*/
|
|
453
|
+
private renderLayoutEmphasized;
|
|
454
|
+
/**
|
|
455
|
+
* Returns HTML for the snowflake layout.
|
|
456
|
+
* @private
|
|
457
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the snowflake layout.
|
|
458
|
+
*/
|
|
459
|
+
private renderLayoutSnowflake;
|
|
460
|
+
/**
|
|
461
|
+
* Returns HTML for the classic layout.
|
|
462
|
+
* @private
|
|
463
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
464
|
+
*/
|
|
465
|
+
private renderLayoutClassic;
|
|
466
|
+
/**
|
|
467
|
+
* Logic to determine the layout of the component.
|
|
468
|
+
* @private
|
|
469
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
470
|
+
* @returns {void}
|
|
471
|
+
*/
|
|
472
|
+
private renderLayout;
|
|
358
473
|
}
|
|
359
|
-
import {
|
|
474
|
+
import { AuroElement } from '../../layoutElement/src/auroElement.js';
|