@aurodesignsystem-dev/auro-formkit 0.0.0-pr754.1 → 0.0.0-pr755.0
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/checkbox/demo/api.html +16 -10
- package/components/checkbox/demo/api.min.js +2 -2
- package/components/checkbox/demo/index.html +16 -10
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/demo/readme.html +16 -9
- package/components/checkbox/dist/index.js +2 -2
- package/components/checkbox/dist/registered.js +2 -2
- package/components/combobox/demo/api.html +16 -10
- package/components/combobox/demo/api.min.js +11 -35
- package/components/combobox/demo/index.html +16 -10
- package/components/combobox/demo/index.min.js +11 -35
- package/components/combobox/demo/readme.html +16 -9
- package/components/counter/demo/api.html +16 -10
- package/components/counter/demo/index.html +16 -10
- package/components/counter/demo/readme.html +16 -9
- package/components/datepicker/demo/api.html +16 -10
- package/components/datepicker/demo/index.html +16 -10
- package/components/datepicker/demo/readme.html +16 -9
- package/components/dropdown/demo/api.html +16 -10
- package/components/dropdown/demo/index.html +16 -10
- package/components/dropdown/demo/readme.html +16 -9
- package/components/form/demo/api.html +16 -9
- package/components/form/demo/autocomplete.html +19 -3
- package/components/form/demo/index.html +16 -9
- package/components/form/demo/readme.html +16 -9
- package/components/form/demo/working.html +19 -13
- package/components/input/demo/api.html +16 -10
- package/components/input/demo/index.html +16 -10
- package/components/input/demo/readme.html +16 -9
- package/components/menu/demo/api.html +16 -32
- package/components/menu/demo/api.md +14 -15
- package/components/menu/demo/api.min.js +11 -35
- package/components/menu/demo/index.html +16 -10
- package/components/menu/demo/index.min.js +11 -35
- package/components/menu/demo/readme.html +16 -9
- package/components/menu/dist/auro-menu.d.ts +2 -12
- package/components/menu/dist/index.js +11 -35
- package/components/menu/dist/registered.js +11 -35
- package/components/radio/demo/api.html +16 -10
- package/components/radio/demo/index.html +16 -10
- package/components/radio/demo/readme.html +16 -9
- package/components/select/demo/api.html +16 -10
- package/components/select/demo/api.md +29 -30
- package/components/select/demo/api.min.js +91 -64
- package/components/select/demo/index.html +16 -11
- package/components/select/demo/index.min.js +91 -64
- package/components/select/demo/readme.html +16 -9
- package/components/select/dist/auro-select.d.ts +3 -12
- package/components/select/dist/index.js +80 -29
- package/components/select/dist/registered.js +80 -29
- package/package.json +4 -4
|
@@ -266,6 +266,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
266
266
|
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
267
267
|
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
268
268
|
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
269
|
+
* @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
|
|
269
270
|
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
270
271
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
271
272
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
@@ -378,14 +379,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
378
379
|
reflect: true,
|
|
379
380
|
attribute: 'multiselect'
|
|
380
381
|
},
|
|
381
|
-
|
|
382
|
-
/**
|
|
383
|
-
* Value selected for the component.
|
|
384
|
-
*/
|
|
385
382
|
value: {
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
attribute: 'value'
|
|
383
|
+
// Allow string, string[] arrays and undefined
|
|
384
|
+
type: Object
|
|
389
385
|
},
|
|
390
386
|
|
|
391
387
|
/**
|
|
@@ -420,24 +416,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
420
416
|
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroMenu);
|
|
421
417
|
}
|
|
422
418
|
|
|
423
|
-
/**
|
|
424
|
-
* Formatted value based on `multiSelect` state.
|
|
425
|
-
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
426
|
-
* @returns {String|Array<String>}
|
|
427
|
-
*/
|
|
428
|
-
get formattedValue() {
|
|
429
|
-
if (this.multiSelect) {
|
|
430
|
-
if (!this.value) {
|
|
431
|
-
return undefined;
|
|
432
|
-
}
|
|
433
|
-
if (this.value.startsWith("[")) {
|
|
434
|
-
return JSON.parse(this.value);
|
|
435
|
-
}
|
|
436
|
-
return [this.value];
|
|
437
|
-
}
|
|
438
|
-
return this.value;
|
|
439
|
-
}
|
|
440
|
-
|
|
441
419
|
// Lifecycle Methods
|
|
442
420
|
|
|
443
421
|
connectedCallback() {
|
|
@@ -480,7 +458,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
480
458
|
updated(changedProperties) {
|
|
481
459
|
super.updated(changedProperties);
|
|
482
460
|
|
|
483
|
-
if (changedProperties.has('multiSelect')
|
|
461
|
+
if (changedProperties.has('multiSelect')) {
|
|
484
462
|
// Reset selection if multiSelect mode changes
|
|
485
463
|
this.clearSelection();
|
|
486
464
|
}
|
|
@@ -494,7 +472,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
494
472
|
} else {
|
|
495
473
|
if (this.multiSelect) {
|
|
496
474
|
// In multiselect mode, this.value should be an array of strings
|
|
497
|
-
const valueArray = this.
|
|
475
|
+
const valueArray = Array.isArray(this.value) ? this.value : [this.value];
|
|
498
476
|
const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
|
|
499
477
|
|
|
500
478
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
@@ -661,14 +639,14 @@ class AuroMenu extends AuroElement$1 {
|
|
|
661
639
|
*/
|
|
662
640
|
handleSelectState(option) {
|
|
663
641
|
if (this.multiSelect) {
|
|
664
|
-
const currentValue = this.
|
|
642
|
+
const currentValue = this.value || [];
|
|
665
643
|
const currentSelected = this.optionSelected || [];
|
|
666
644
|
|
|
667
645
|
if (!currentValue.includes(option.value)) {
|
|
668
|
-
this.value =
|
|
646
|
+
this.value = [
|
|
669
647
|
...currentValue,
|
|
670
648
|
option.value
|
|
671
|
-
]
|
|
649
|
+
];
|
|
672
650
|
}
|
|
673
651
|
if (!currentSelected.includes(option)) {
|
|
674
652
|
this.optionSelected = [
|
|
@@ -691,15 +669,13 @@ class AuroMenu extends AuroElement$1 {
|
|
|
691
669
|
* @param {HTMLElement} option - The menuoption to be deselected.
|
|
692
670
|
*/
|
|
693
671
|
handleDeselectState(option) {
|
|
694
|
-
if (this.multiSelect) {
|
|
672
|
+
if (this.multiSelect && Array.isArray(this.value)) {
|
|
695
673
|
// Remove this option from array
|
|
696
|
-
|
|
674
|
+
this.value = this.value.filter((val) => val !== option.value);
|
|
697
675
|
|
|
698
676
|
// If array is empty after removal, set back to undefined
|
|
699
|
-
if (
|
|
677
|
+
if (this.value.length === 0) {
|
|
700
678
|
this.value = undefined;
|
|
701
|
-
} else {
|
|
702
|
-
this.value = JSON.stringify(newFormattedValue);
|
|
703
679
|
}
|
|
704
680
|
|
|
705
681
|
this.optionSelected = this.optionSelected.filter((val) => val !== option);
|
|
@@ -225,6 +225,7 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
225
225
|
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
226
226
|
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
227
227
|
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
228
|
+
* @attr {String|Array<string>} value - Value selected for the menu, type `string` by default. In multi-select mode, `value` is an array of strings.
|
|
228
229
|
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
229
230
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
230
231
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
@@ -337,14 +338,9 @@ class AuroMenu extends AuroElement$1 {
|
|
|
337
338
|
reflect: true,
|
|
338
339
|
attribute: 'multiselect'
|
|
339
340
|
},
|
|
340
|
-
|
|
341
|
-
/**
|
|
342
|
-
* Value selected for the component.
|
|
343
|
-
*/
|
|
344
341
|
value: {
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
attribute: 'value'
|
|
342
|
+
// Allow string, string[] arrays and undefined
|
|
343
|
+
type: Object
|
|
348
344
|
},
|
|
349
345
|
|
|
350
346
|
/**
|
|
@@ -379,24 +375,6 @@ class AuroMenu extends AuroElement$1 {
|
|
|
379
375
|
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroMenu);
|
|
380
376
|
}
|
|
381
377
|
|
|
382
|
-
/**
|
|
383
|
-
* Formatted value based on `multiSelect` state.
|
|
384
|
-
* Default type is `String`, changing to `Array<String>` when `multiSelect` is true.
|
|
385
|
-
* @returns {String|Array<String>}
|
|
386
|
-
*/
|
|
387
|
-
get formattedValue() {
|
|
388
|
-
if (this.multiSelect) {
|
|
389
|
-
if (!this.value) {
|
|
390
|
-
return undefined;
|
|
391
|
-
}
|
|
392
|
-
if (this.value.startsWith("[")) {
|
|
393
|
-
return JSON.parse(this.value);
|
|
394
|
-
}
|
|
395
|
-
return [this.value];
|
|
396
|
-
}
|
|
397
|
-
return this.value;
|
|
398
|
-
}
|
|
399
|
-
|
|
400
378
|
// Lifecycle Methods
|
|
401
379
|
|
|
402
380
|
connectedCallback() {
|
|
@@ -439,7 +417,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
439
417
|
updated(changedProperties) {
|
|
440
418
|
super.updated(changedProperties);
|
|
441
419
|
|
|
442
|
-
if (changedProperties.has('multiSelect')
|
|
420
|
+
if (changedProperties.has('multiSelect')) {
|
|
443
421
|
// Reset selection if multiSelect mode changes
|
|
444
422
|
this.clearSelection();
|
|
445
423
|
}
|
|
@@ -453,7 +431,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
453
431
|
} else {
|
|
454
432
|
if (this.multiSelect) {
|
|
455
433
|
// In multiselect mode, this.value should be an array of strings
|
|
456
|
-
const valueArray = this.
|
|
434
|
+
const valueArray = Array.isArray(this.value) ? this.value : [this.value];
|
|
457
435
|
const matchingOptions = this.items.filter((item) => valueArray.includes(item.value));
|
|
458
436
|
|
|
459
437
|
this.optionSelected = matchingOptions.length > 0 ? matchingOptions : undefined;
|
|
@@ -620,14 +598,14 @@ class AuroMenu extends AuroElement$1 {
|
|
|
620
598
|
*/
|
|
621
599
|
handleSelectState(option) {
|
|
622
600
|
if (this.multiSelect) {
|
|
623
|
-
const currentValue = this.
|
|
601
|
+
const currentValue = this.value || [];
|
|
624
602
|
const currentSelected = this.optionSelected || [];
|
|
625
603
|
|
|
626
604
|
if (!currentValue.includes(option.value)) {
|
|
627
|
-
this.value =
|
|
605
|
+
this.value = [
|
|
628
606
|
...currentValue,
|
|
629
607
|
option.value
|
|
630
|
-
]
|
|
608
|
+
];
|
|
631
609
|
}
|
|
632
610
|
if (!currentSelected.includes(option)) {
|
|
633
611
|
this.optionSelected = [
|
|
@@ -650,15 +628,13 @@ class AuroMenu extends AuroElement$1 {
|
|
|
650
628
|
* @param {HTMLElement} option - The menuoption to be deselected.
|
|
651
629
|
*/
|
|
652
630
|
handleDeselectState(option) {
|
|
653
|
-
if (this.multiSelect) {
|
|
631
|
+
if (this.multiSelect && Array.isArray(this.value)) {
|
|
654
632
|
// Remove this option from array
|
|
655
|
-
|
|
633
|
+
this.value = this.value.filter((val) => val !== option.value);
|
|
656
634
|
|
|
657
635
|
// If array is empty after removal, set back to undefined
|
|
658
|
-
if (
|
|
636
|
+
if (this.value.length === 0) {
|
|
659
637
|
this.value = undefined;
|
|
660
|
-
} else {
|
|
661
|
-
this.value = JSON.stringify(newFormattedValue);
|
|
662
638
|
}
|
|
663
639
|
|
|
664
640
|
this.optionSelected = this.optionSelected.filter((val) => val !== option);
|
|
@@ -15,18 +15,24 @@
|
|
|
15
15
|
<head>
|
|
16
16
|
<meta charset="UTF-8" />
|
|
17
17
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
18
|
-
<title>Auro Web Component
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
25
|
-
|
|
18
|
+
<title>Auro Web Component Demo | auro-radio</title>
|
|
19
|
+
|
|
20
|
+
<!-- Prism.js Stylesheet -->
|
|
21
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
22
|
+
|
|
23
|
+
<!-- Legacy reference is still needed to support auro-radio's use of legacy token values at this time -->
|
|
24
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
25
|
+
|
|
26
|
+
<!-- Design Token Alaska Theme -->
|
|
27
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
28
|
+
|
|
29
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
30
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
31
|
+
|
|
32
|
+
<!-- Demo Specific Styles -->
|
|
26
33
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
28
|
-
|
|
29
|
-
</head>
|
|
35
|
+
</head>
|
|
30
36
|
<body class="auro-markdown">
|
|
31
37
|
<main></main>
|
|
32
38
|
|
|
@@ -16,18 +16,24 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
26
|
-
|
|
19
|
+
<title>Auro Web Component Demo | auro-radio</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-radio's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
35
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
-
|
|
30
|
-
</head>
|
|
36
|
+
</head>
|
|
31
37
|
<body class="auro-markdown">
|
|
32
38
|
<main></main>
|
|
33
39
|
|
|
@@ -16,17 +16,24 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
26
|
-
|
|
19
|
+
<title>Auro Web Component Demo | auro-radio</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-radio's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
35
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
-
|
|
36
|
+
</head>
|
|
30
37
|
<body class="auro-markdown">
|
|
31
38
|
<main></main>
|
|
32
39
|
|
|
@@ -16,18 +16,24 @@
|
|
|
16
16
|
<head>
|
|
17
17
|
<meta charset="UTF-8" />
|
|
18
18
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
19
|
-
<title>Auro Web Component
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/auro-classic/CSSCustomProperties.css"
|
|
26
|
-
|
|
19
|
+
<title>Auro Web Component Demo | auro-select</title>
|
|
20
|
+
|
|
21
|
+
<!-- Prism.js Stylesheet -->
|
|
22
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/prismjs@1.24.1/themes/prism.css"/>
|
|
23
|
+
|
|
24
|
+
<!-- Legacy reference is still needed to support auro-select's use of legacy token values at this time -->
|
|
25
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/legacy/auro-classic/CSSCustomProperties.css"/>
|
|
26
|
+
|
|
27
|
+
<!-- Design Token Alaska Theme -->
|
|
28
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@latest/dist/themes/alaska/CSSCustomProperties--alaska.min.css"/>
|
|
29
|
+
|
|
30
|
+
<!-- Webcore Stylesheet Alaska Theme -->
|
|
31
|
+
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/bundled/themes/alaska.global.min.css" />
|
|
32
|
+
|
|
33
|
+
<!-- Demo Specific Styles -->
|
|
27
34
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/demoWrapper.css" />
|
|
28
35
|
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@latest/dist/elementDemoStyles.css" />
|
|
29
|
-
|
|
30
|
-
</head>
|
|
36
|
+
</head>
|
|
31
37
|
<body class="auro-markdown">
|
|
32
38
|
<main></main>
|
|
33
39
|
|
|
@@ -14,35 +14,34 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
14
14
|
|
|
15
15
|
## Properties
|
|
16
16
|
|
|
17
|
-
| Property | Attribute |
|
|
18
|
-
|
|
19
|
-
| [autoPlacement](#autoPlacement) | `autoPlacement` |
|
|
20
|
-
| [autocomplete](#autocomplete) | `autocomplete` |
|
|
21
|
-
| [disabled](#disabled) | `disabled` |
|
|
22
|
-
| [error](#error) | `error` |
|
|
23
|
-
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` |
|
|
24
|
-
| [
|
|
25
|
-
| [
|
|
26
|
-
| [
|
|
27
|
-
| [
|
|
28
|
-
| [
|
|
29
|
-
| [
|
|
30
|
-
| [
|
|
31
|
-
| [
|
|
32
|
-
| [
|
|
33
|
-
| [
|
|
34
|
-
| [
|
|
35
|
-
| [
|
|
36
|
-
| [
|
|
37
|
-
| [
|
|
38
|
-
| [
|
|
39
|
-
| [
|
|
40
|
-
| [
|
|
41
|
-
| [
|
|
42
|
-
| [
|
|
43
|
-
| [
|
|
44
|
-
| [
|
|
45
|
-
| [value](#value) | `value` | | `string` | | Value selected for the component. |
|
|
17
|
+
| Property | Attribute | Type | Default | Description |
|
|
18
|
+
|---------------------------------|---------------------------------|-----------------------------------|----------------|--------------------------------------------------|
|
|
19
|
+
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
20
|
+
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | If declared, sets the autocomplete attribute for the select element. |
|
|
21
|
+
| [disabled](#disabled) | `disabled` | `boolean` | | When attribute is present, element shows disabled state. |
|
|
22
|
+
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
|
|
23
|
+
| [forceDisplayValue](#forceDisplayValue) | `forceDisplayValue` | `boolean` | false | If declared, the label and value will be visually hidden and the displayValue will render 100% of the time. |
|
|
24
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
25
|
+
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
26
|
+
| [layout](#layout) | | `string` | "snowflake" | |
|
|
27
|
+
| [matchWidth](#matchWidth) | `matchWidth` | `boolean` | false | If declared, the popover and trigger will be set to the same width. |
|
|
28
|
+
| [multiSelect](#multiSelect) | `multiselect` | `boolean` | | Sets multi-select mode, allowing multiple options to be selected at once. |
|
|
29
|
+
| [name](#name) | `name` | `string` | | The name for the select element. |
|
|
30
|
+
| [noCheckmark](#noCheckmark) | `noCheckmark` | `boolean` | | When true, checkmark on selected option will no longer be present. |
|
|
31
|
+
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
32
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | | If set, disables auto-validation on blur. |
|
|
33
|
+
| [offset](#offset) | `offset` | `number` | "0" | Gap between the trigger element and bib. |
|
|
34
|
+
| [onDark](#onDark) | `onDark` | `boolean` | | If declared, onDark styles will be applied to the trigger. |
|
|
35
|
+
| [optionSelected](#optionSelected) | `optionSelected` | `HTMLElement\|Array<HTMLElement>` | | Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true. |
|
|
36
|
+
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger.<br />Accepted values:<br />"top" \| "right" \| "bottom" \| "left" \|<br />"bottom-start" \| "top-start" \| "top-end" \|<br />"right-start" \| "right-end" \| "bottom-end" \|<br />"left-start" \| "left-end". |
|
|
37
|
+
| [required](#required) | `required` | `boolean` | | Populates the `required` attribute on the element. Used for client-side validation. |
|
|
38
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
39
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
40
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
41
|
+
| [shape](#shape) | | `string` | "snowflake" | |
|
|
42
|
+
| [size](#size) | | `string` | "xl" | |
|
|
43
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
44
|
+
| [value](#value) | `value` | `String\|Array<String>` | | Value selected for the component. Default type is `String`, changing to `Array<String>` when `multiSelect` is true. |
|
|
46
45
|
|
|
47
46
|
## Methods
|
|
48
47
|
|
|
@@ -57,7 +56,7 @@ The auro-select element is a wrapper for auro-dropdown and auro-menu to create a
|
|
|
57
56
|
|-----------------------------|--------------------------------------------------|--------------------------------------------------|
|
|
58
57
|
| `auroFormElement-validated` | | Notifies that the `validity` and `errorMessage` values have changed. |
|
|
59
58
|
| `auroSelect-valueSet` | `CustomEvent<any>` | Notifies that the component has a new value set. |
|
|
60
|
-
| [input](#input) | `CustomEvent<{ optionSelected: any; value:
|
|
59
|
+
| [input](#input) | `CustomEvent<{ optionSelected: any; value: any; }>` | Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object. |
|
|
61
60
|
|
|
62
61
|
## Slots
|
|
63
62
|
|