@aurodesignsystem/auro-formkit 5.9.1 → 5.9.2
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/CHANGELOG.md +16 -4
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +348 -420
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +301 -230
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +39 -40
- package/components/combobox/dist/index.js +159 -143
- package/components/combobox/dist/registered.js +159 -143
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +84 -112
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +82 -93
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +82 -93
- package/components/counter/dist/registered.js +82 -93
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +427 -2424
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +427 -2424
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +31 -31
- package/components/datepicker/dist/index.js +256 -2253
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +256 -2253
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +48 -39
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +38 -29
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/index.js +38 -29
- package/components/dropdown/dist/registered.js +38 -29
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +100 -113
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +85 -97
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +67 -68
- package/components/input/dist/index.js +85 -80
- package/components/input/dist/registered.js +85 -80
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -572
- package/components/menu/demo/api.min.js +176 -92
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +141 -96
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.d.ts +70 -37
- package/components/menu/dist/auro-menuoption.d.ts +36 -11
- package/components/menu/dist/index.js +141 -45
- package/components/menu/dist/registered.js +141 -45
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +300 -199
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +299 -167
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +158 -122
- package/components/select/dist/registered.js +158 -122
- package/package.json +3 -3
|
@@ -1,152 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
{iso2: 'AR', iso3: 'ARG', country: 'Argentina', cities: ['Germania']},
|
|
5
|
-
{iso2: 'CA', iso3: 'CAN', country: 'Canada', cities: ['Saint-Germain-de-Grantham']},
|
|
6
|
-
{iso2: 'FR', iso3: 'FRA', country: 'France', cities: ['Chatel-Saint-Germain', 'Domgermain', 'Germaine', 'Germainville', 'Germenay']},
|
|
7
|
-
{iso2: 'DE', iso3: 'DEU', country: 'Germany', cities: ['Algermissen', 'Angermunde', 'Germering', 'Hilgermissen', 'Tangermunde']},
|
|
8
|
-
{iso2: 'IR', iso3: 'IRN', country: 'Iran', cities: ['Germi']}
|
|
9
|
-
];
|
|
10
|
-
|
|
11
|
-
return response;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
filterData(data, value) {
|
|
15
|
-
const filteredData = [];
|
|
16
|
-
|
|
17
|
-
for (let index = 0; index < data.length; index ++) {
|
|
18
|
-
let countryName = data[index]['country'].toLowerCase();
|
|
19
|
-
|
|
20
|
-
if (value) {
|
|
21
|
-
data[index]['cities'] = data[index]['cities'].filter(city => city.toLowerCase().includes(value.toLowerCase()));
|
|
1
|
+
function focusExample() {
|
|
2
|
+
const focusExample = document.querySelector('#focusExample');
|
|
3
|
+
const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
|
|
22
4
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return filteredData;
|
|
29
|
-
}
|
|
5
|
+
focusExampleBtnElem.addEventListener('click', () => {
|
|
6
|
+
focusExample.focus();
|
|
7
|
+
});
|
|
30
8
|
}
|
|
31
9
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
async function dynamicMenuExample() {
|
|
36
|
-
// Resets the root menu
|
|
37
|
-
function resetMenu(root) {
|
|
38
|
-
while (root.firstChild) {
|
|
39
|
-
root.removeChild(root.firstChild);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
function swapValues() {
|
|
44
|
-
const elOne = document.querySelector('#dynamicMenuExample');
|
|
45
|
-
const elTwo = document.querySelector('#dynamicMenuExampleTwo');
|
|
46
|
-
|
|
47
|
-
const elOneValue = elOne.value;
|
|
48
|
-
const elTwoValue = elTwo.value;
|
|
49
|
-
|
|
50
|
-
const elOneInputValue = elOne.input.value;
|
|
51
|
-
const elTwoInputValue = elTwo.input.value;
|
|
52
|
-
|
|
53
|
-
elOne.reset();
|
|
54
|
-
elTwo.reset();
|
|
55
|
-
|
|
56
|
-
elOne.value = elTwoValue;
|
|
57
|
-
elTwo.value = elOneValue;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
setTimeout(() => {
|
|
61
|
-
elOne.typedValue = elTwoInputValue;
|
|
62
|
-
elTwo.typedValue = elOneInputValue;
|
|
63
|
-
}, 0);
|
|
64
|
-
}
|
|
10
|
+
function resetStateExample() {
|
|
11
|
+
const elem = document.querySelector('#resetStateExample');
|
|
65
12
|
|
|
66
|
-
document.querySelector('#
|
|
67
|
-
|
|
13
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
14
|
+
elem.reset();
|
|
68
15
|
});
|
|
16
|
+
}
|
|
69
17
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const elTwo = document.querySelector('#dynamicMenuExampleTwo');
|
|
18
|
+
function valueExample() {
|
|
19
|
+
const valueExample = document.querySelector('#valueExample');
|
|
73
20
|
|
|
74
|
-
|
|
75
|
-
|
|
21
|
+
document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
|
|
22
|
+
valueExample.value = 'Oranges';
|
|
76
23
|
});
|
|
77
24
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
resetMenu(initialMenu);
|
|
83
|
-
|
|
84
|
-
for (let index = 0; index < data.length; index++) {
|
|
85
|
-
const country = data[index]['country'];
|
|
86
|
-
const cities = data[index]['cities'];
|
|
87
|
-
|
|
88
|
-
generateMenuOptionHtml(initialMenu, country, country.substring(0, 3).toUpperCase());
|
|
89
|
-
|
|
90
|
-
for (let indexB = 0; indexB < cities.length; indexB++) {
|
|
91
|
-
const subMenu = document.createElement('auro-menu');
|
|
92
|
-
|
|
93
|
-
generateMenuOptionHtml(subMenu, cities[indexB], cities[indexB].substring(0, 3).toUpperCase());
|
|
94
|
-
|
|
95
|
-
initialMenu.appendChild(subMenu);
|
|
96
|
-
}
|
|
97
|
-
} }
|
|
98
|
-
|
|
99
|
-
// Helper function that generates HTML for menuoptions
|
|
100
|
-
function generateMenuOptionHtml(menu, label, value) {
|
|
101
|
-
const option = document.createElement('auro-menuoption');
|
|
102
|
-
const displayValue = document.createElement('div');
|
|
103
|
-
displayValue.setAttribute("slot", "displayValue");
|
|
104
|
-
displayValue.innerHTML = value;
|
|
105
|
-
|
|
106
|
-
option.value = value;
|
|
107
|
-
option.innerHTML = label;
|
|
108
|
-
menu.appendChild(option);
|
|
109
|
-
option.appendChild(displayValue);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
// Main javascript that runs all JS to create example
|
|
113
|
-
const dynamicData = new DynamicData();
|
|
114
|
-
const dynamicMenuExampleEl = document.querySelector('#dynamicMenuExample');
|
|
115
|
-
const dropdownEl = dynamicMenuExampleEl.shadowRoot.querySelector(dynamicMenuExampleEl.dropdownTag._$litStatic$);
|
|
116
|
-
const inputEl = dropdownEl.querySelector(dynamicMenuExampleEl.inputTag._$litStatic$);
|
|
25
|
+
document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
|
|
26
|
+
valueExample.value = 'Dragon Fruit';
|
|
27
|
+
});
|
|
117
28
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
29
|
+
document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
|
|
30
|
+
valueExample.value = undefined;
|
|
31
|
+
});
|
|
32
|
+
}
|
|
121
33
|
|
|
122
|
-
|
|
34
|
+
function inDialogExample() {
|
|
35
|
+
document.querySelector("#combobox-dialog-opener").addEventListener("click", () => {
|
|
36
|
+
const dialog = document.querySelector("#combobox-dialog");
|
|
37
|
+
dialog.open = true;
|
|
123
38
|
});
|
|
39
|
+
}
|
|
124
40
|
|
|
41
|
+
function persistentExample() {
|
|
42
|
+
const persistentExample = document.querySelector('#persistent');
|
|
125
43
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
44
|
+
persistentExample.addEventListener('addNewAddress', () => {
|
|
45
|
+
console.warn('addNewAddress event fired');
|
|
46
|
+
alert(`addNewAddress event fired`);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
131
49
|
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
const inputElTwo = dropdownElTwo.querySelector(dynamicMenuExampleElTwo.inputTag._$litStatic$);
|
|
50
|
+
function swapValueExample() {
|
|
51
|
+
const btn = document.querySelector('#swapExampleBtn');
|
|
52
|
+
const comboboxOne = document.querySelector('#swapExampleLeft');
|
|
53
|
+
const comboboxTwo = document.querySelector('#swapExampleRight');
|
|
137
54
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
55
|
+
btn.addEventListener('click', () => {
|
|
56
|
+
const valueOne = comboboxOne.value;
|
|
57
|
+
const valueTwo = comboboxTwo.value;
|
|
141
58
|
|
|
142
|
-
|
|
59
|
+
comboboxOne.value = valueTwo;
|
|
60
|
+
comboboxTwo.value = valueOne;
|
|
143
61
|
});
|
|
144
|
-
|
|
145
|
-
if (dynamicMenuExampleElTwo.value && dynamicMenuExampleElTwo.value.length > 0 && dynamicMenuExampleElTwo.input.value && (!dynamicMenuExampleElTwo.menu.availableOptions || dynamicMenuExampleElTwo.menu.availableOptions.length === 0)) {
|
|
146
|
-
let data = dynamicDataTwo.getData();
|
|
147
|
-
data = dynamicDataTwo.filterData(data, inputElTwo.value);
|
|
148
|
-
generateHtml(data, '#initMenuTwo');
|
|
149
|
-
}
|
|
150
62
|
}
|
|
151
63
|
|
|
152
64
|
/**
|
|
@@ -4303,7 +4215,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4303
4215
|
}
|
|
4304
4216
|
};
|
|
4305
4217
|
|
|
4306
|
-
var formkitVersion$2 = '
|
|
4218
|
+
var formkitVersion$2 = '202601271813';
|
|
4307
4219
|
|
|
4308
4220
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4309
4221
|
static get properties() {
|
|
@@ -4409,12 +4321,14 @@ let AuroElement$2 = class AuroElement extends i$3 {
|
|
|
4409
4321
|
}
|
|
4410
4322
|
};
|
|
4411
4323
|
|
|
4412
|
-
// Copyright (c)
|
|
4324
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4413
4325
|
// See LICENSE in the project root for license information.
|
|
4414
4326
|
|
|
4415
4327
|
|
|
4416
|
-
|
|
4417
|
-
|
|
4328
|
+
/**
|
|
4329
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
4330
|
+
* @customElement auro-dropdown
|
|
4331
|
+
*
|
|
4418
4332
|
* @slot - Default slot for the popover content.
|
|
4419
4333
|
* @slot helpText - Defines the content of the helpText.
|
|
4420
4334
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -4450,7 +4364,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4450
4364
|
/** @private */
|
|
4451
4365
|
this.bibElement = e$1();
|
|
4452
4366
|
|
|
4453
|
-
this.
|
|
4367
|
+
this._intializeDefaults();
|
|
4454
4368
|
}
|
|
4455
4369
|
|
|
4456
4370
|
/**
|
|
@@ -4471,7 +4385,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4471
4385
|
* @private
|
|
4472
4386
|
* @returns {void} Internal defaults.
|
|
4473
4387
|
*/
|
|
4474
|
-
|
|
4388
|
+
_intializeDefaults() {
|
|
4475
4389
|
this.appearance = 'default';
|
|
4476
4390
|
this.chevron = false;
|
|
4477
4391
|
this.disabled = false;
|
|
@@ -4592,9 +4506,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4592
4506
|
static get properties() {
|
|
4593
4507
|
return {
|
|
4594
4508
|
|
|
4509
|
+
/**
|
|
4510
|
+
* The value for the role attribute of the trigger element.
|
|
4511
|
+
*/
|
|
4512
|
+
a11yRole: {
|
|
4513
|
+
type: String || undefined,
|
|
4514
|
+
attribute: false,
|
|
4515
|
+
reflect: false
|
|
4516
|
+
},
|
|
4517
|
+
|
|
4595
4518
|
/**
|
|
4596
4519
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
4597
|
-
* @
|
|
4520
|
+
* @type {'default' | 'inverse'}
|
|
4598
4521
|
* @default 'default'
|
|
4599
4522
|
*/
|
|
4600
4523
|
appearance: {
|
|
@@ -4604,7 +4527,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4604
4527
|
|
|
4605
4528
|
/**
|
|
4606
4529
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
4607
|
-
* @default false
|
|
4608
4530
|
*/
|
|
4609
4531
|
autoPlacement: {
|
|
4610
4532
|
type: Boolean,
|
|
@@ -4613,7 +4535,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4613
4535
|
|
|
4614
4536
|
/**
|
|
4615
4537
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4616
|
-
* @default false
|
|
4617
4538
|
*/
|
|
4618
4539
|
disableEventShow: {
|
|
4619
4540
|
type: Boolean,
|
|
@@ -4630,11 +4551,11 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4630
4551
|
|
|
4631
4552
|
/**
|
|
4632
4553
|
* If declared, the dropdown displays a chevron on the right.
|
|
4633
|
-
* @attr {Boolean} chevron
|
|
4634
4554
|
*/
|
|
4635
4555
|
chevron: {
|
|
4636
4556
|
type: Boolean,
|
|
4637
|
-
reflect: true
|
|
4557
|
+
reflect: true,
|
|
4558
|
+
attribute: 'chevron'
|
|
4638
4559
|
},
|
|
4639
4560
|
|
|
4640
4561
|
/**
|
|
@@ -4671,7 +4592,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4671
4592
|
},
|
|
4672
4593
|
|
|
4673
4594
|
/**
|
|
4674
|
-
* If declared
|
|
4595
|
+
* If declared, will apply error UI to the dropdown.
|
|
4675
4596
|
*/
|
|
4676
4597
|
error: {
|
|
4677
4598
|
type: Boolean,
|
|
@@ -4726,18 +4647,28 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4726
4647
|
},
|
|
4727
4648
|
|
|
4728
4649
|
/**
|
|
4729
|
-
* Defines the screen size breakpoint
|
|
4730
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4650
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4731
4651
|
*
|
|
4732
4652
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4733
4653
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4734
|
-
* @
|
|
4654
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
4655
|
+
* @default 'sm'
|
|
4735
4656
|
*/
|
|
4736
4657
|
fullscreenBreakpoint: {
|
|
4737
4658
|
type: String,
|
|
4738
4659
|
reflect: true
|
|
4739
4660
|
},
|
|
4740
4661
|
|
|
4662
|
+
/**
|
|
4663
|
+
* Sets the layout of the dropdown.
|
|
4664
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
4665
|
+
* @default 'classic'
|
|
4666
|
+
*/
|
|
4667
|
+
layout: {
|
|
4668
|
+
type: String,
|
|
4669
|
+
reflect: true
|
|
4670
|
+
},
|
|
4671
|
+
|
|
4741
4672
|
/**
|
|
4742
4673
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4743
4674
|
* @private
|
|
@@ -4758,7 +4689,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4758
4689
|
/**
|
|
4759
4690
|
* If declared, the bib will NOT flip to an alternate position
|
|
4760
4691
|
* when there isn't enough space in the specified `placement`.
|
|
4761
|
-
* @default false
|
|
4762
4692
|
*/
|
|
4763
4693
|
noFlip: {
|
|
4764
4694
|
type: Boolean,
|
|
@@ -4767,7 +4697,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4767
4697
|
|
|
4768
4698
|
/**
|
|
4769
4699
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4770
|
-
* @default false
|
|
4771
4700
|
*/
|
|
4772
4701
|
shift: {
|
|
4773
4702
|
type: Boolean,
|
|
@@ -4800,7 +4729,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4800
4729
|
},
|
|
4801
4730
|
|
|
4802
4731
|
/**
|
|
4803
|
-
* DEPRECATED - use `appearance` instead.
|
|
4732
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
4804
4733
|
*/
|
|
4805
4734
|
onDark: {
|
|
4806
4735
|
type: Boolean,
|
|
@@ -4817,7 +4746,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4817
4746
|
|
|
4818
4747
|
/**
|
|
4819
4748
|
* Position where the bib should appear relative to the trigger.
|
|
4820
|
-
* @
|
|
4749
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
4750
|
+
* @default 'bottom-start'
|
|
4821
4751
|
*/
|
|
4822
4752
|
placement: {
|
|
4823
4753
|
type: String,
|
|
@@ -4829,15 +4759,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4829
4759
|
*/
|
|
4830
4760
|
tabIndex: {
|
|
4831
4761
|
type: Number
|
|
4832
|
-
},
|
|
4833
|
-
|
|
4834
|
-
/**
|
|
4835
|
-
* The value for the role attribute of the trigger element.
|
|
4836
|
-
*/
|
|
4837
|
-
a11yRole: {
|
|
4838
|
-
type: String || undefined,
|
|
4839
|
-
attribute: false,
|
|
4840
|
-
reflect: false
|
|
4841
4762
|
}
|
|
4842
4763
|
};
|
|
4843
4764
|
}
|
|
@@ -4864,7 +4785,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4864
4785
|
|
|
4865
4786
|
/**
|
|
4866
4787
|
* This will register this element with the browser.
|
|
4867
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
4788
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
4868
4789
|
*
|
|
4869
4790
|
* @example
|
|
4870
4791
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -5371,7 +5292,7 @@ var emphasizedStyleCss = i$6`:host([layout*=emphasized][shape*=pill]:not([layout
|
|
|
5371
5292
|
|
|
5372
5293
|
var emphasizedColorCss = i$6`.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
5373
5294
|
|
|
5374
|
-
var snowflakeStyleCss = i$6`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-dropdown-emphasized-background: #00274A1a;--ds-advanced-color-dropdown-emphasized-background-hover: #00274A33;--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #676767;--ds-advanced-color-shared-emphasized-background: rgba(1, 66, 106, 0.1);--ds-advanced-color-shared-emphasized-background-hover: rgba(1, 66, 106, 0.2);--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ffffff;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: 1.3;--ds-basic-type-brand-line-height-secondary: 1;--ds-basic-type-brand-letter-spacing-primary: 0;--ds-basic-type-brand-letter-spacing-secondary: 0.05em;--ds-basic-type-brand-letter-spacing-tertiary: 0.10em;--ds-basic-type-family-accent: "Good OT";--ds-basic-type-family-accent-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular";--ds-basic-type-family-body-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular";--ds-basic-type-family-display-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular";--ds-basic-type-family-heading-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: 0.05em;--ds-basic-type-letter-spacing-accent2: 0.10em;--ds-basic-type-letter-spacing-body: 0;--ds-basic-type-letter-spacing-display: 0;--ds-basic-type-letter-spacing-heading: 0;--ds-basic-type-line-height-accent: 1.3;--ds-basic-type-line-height-accent2: 1;--ds-basic-type-line-height-body: 1.625rem;--ds-basic-type-line-height-body2: 1.5rem;--ds-basic-type-line-height-body3: 1.25rem;--ds-basic-type-line-height-body4: 1rem;--ds-basic-type-line-height-body5: 0.875rem;--ds-basic-type-line-height-display: 1.3;--ds-basic-type-line-height-heading: 1.3;--ds-basic-type-weight-accent: 450;--ds-basic-type-weight-accent2: 500;--ds-basic-type-weight-body: 450;--ds-basic-type-weight-display: 300;--ds-basic-type-weight-heading: 300;--ds-basic-type-weight-heading2: 450}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-200, 1rem)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-block-start:var(--ds-size-50, 0.25rem)}.layout-snowflake input{transition:all 1ms linear;text-align:center}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-snowflake .displayValue{display:none;width:100%}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake.withValue:hover .alertNotification{display:none}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.left{padding-left:var(--ds-size-200, 1rem)}.layout-snowflake .accents.right{padding-right:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .helpTextWrapper{text-align:center}`;
|
|
5295
|
+
var snowflakeStyleCss = i$6`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-dropdown-emphasized-background: #00274A1a;--ds-advanced-color-dropdown-emphasized-background-hover: #00274A33;--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-footer-background: #01426a;--ds-advanced-color-footer-foreground: #00274a;--ds-advanced-color-footer-pattern: #ffffff;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #676767;--ds-advanced-color-shared-emphasized-background: rgba(1, 66, 106, 0.1);--ds-advanced-color-shared-emphasized-background-hover: rgba(1, 66, 106, 0.2);--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ffffff;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral: #f2f2f2;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: 1.3;--ds-basic-type-brand-line-height-secondary: 1;--ds-basic-type-brand-letter-spacing-primary: 0;--ds-basic-type-brand-letter-spacing-secondary: 0.05em;--ds-basic-type-brand-letter-spacing-tertiary: 0.10em;--ds-basic-type-family-accent: "Good OT";--ds-basic-type-family-accent-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular";--ds-basic-type-family-body-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular";--ds-basic-type-family-display-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular";--ds-basic-type-family-heading-fallback: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: 0.05em;--ds-basic-type-letter-spacing-accent2: 0.10em;--ds-basic-type-letter-spacing-body: 0;--ds-basic-type-letter-spacing-display: 0;--ds-basic-type-letter-spacing-heading: 0;--ds-basic-type-line-height-accent: 1.3;--ds-basic-type-line-height-accent2: 1;--ds-basic-type-line-height-body: 1.625rem;--ds-basic-type-line-height-body2: 1.5rem;--ds-basic-type-line-height-body3: 1.25rem;--ds-basic-type-line-height-body4: 1rem;--ds-basic-type-line-height-body5: 0.875rem;--ds-basic-type-line-height-display: 1.3;--ds-basic-type-line-height-heading: 1.3;--ds-basic-type-weight-accent: 450;--ds-basic-type-weight-accent2: 500;--ds-basic-type-weight-body: 450;--ds-basic-type-weight-body2: 700;--ds-basic-type-weight-display: 300;--ds-basic-type-weight-heading: 300;--ds-basic-type-weight-heading2: 450}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-200, 1rem)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding-block-start:var(--ds-size-50, 0.25rem)}.layout-snowflake input{transition:all 1ms linear;text-align:center}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1;overflow:hidden}.layout-snowflake .displayValue{display:none;width:100%}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake.withValue:hover .alertNotification{display:none}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:var(--ds-size-300, 1.5rem)}.layout-snowflake .accents.left{padding-left:var(--ds-size-200, 1rem)}.layout-snowflake .accents.right{padding-right:var(--ds-size-200, 1rem)}:host([layout*=snowflake]) .helpTextWrapper{text-align:center}`;
|
|
5375
5296
|
|
|
5376
5297
|
const watchedItems = new Set();
|
|
5377
5298
|
|
|
@@ -10403,19 +10324,16 @@ let AuroElement$1 = class AuroElement extends i$3 {
|
|
|
10403
10324
|
|
|
10404
10325
|
|
|
10405
10326
|
/**
|
|
10406
|
-
*
|
|
10407
|
-
*
|
|
10408
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10409
|
-
* @attr id
|
|
10327
|
+
* The `auro-input` element provides users a way to enter data into a text field.
|
|
10328
|
+
* @customElement auro-input
|
|
10410
10329
|
*
|
|
10411
10330
|
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
10412
10331
|
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10413
10332
|
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10414
10333
|
* @slot helpText - Sets the help text displayed below the input.
|
|
10415
10334
|
* @slot label - Sets the label text for the input.
|
|
10416
|
-
* @slot
|
|
10335
|
+
* @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
10417
10336
|
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
10418
|
-
*
|
|
10419
10337
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
10420
10338
|
* @csspart label - Use for customizing the style of the label element
|
|
10421
10339
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
@@ -10433,6 +10351,15 @@ class BaseInput extends AuroElement$1 {
|
|
|
10433
10351
|
constructor() {
|
|
10434
10352
|
super();
|
|
10435
10353
|
|
|
10354
|
+
this._initializeDefaults();
|
|
10355
|
+
}
|
|
10356
|
+
|
|
10357
|
+
/**
|
|
10358
|
+
* Internal Defaults.
|
|
10359
|
+
* @private
|
|
10360
|
+
* @returns {void}
|
|
10361
|
+
*/
|
|
10362
|
+
_initializeDefaults() {
|
|
10436
10363
|
this.activeLabel = false;
|
|
10437
10364
|
this.appearance = "default";
|
|
10438
10365
|
this.icon = false;
|
|
@@ -10462,15 +10389,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10462
10389
|
*/
|
|
10463
10390
|
this.size = 'lg';
|
|
10464
10391
|
|
|
10465
|
-
this.privateDefaults();
|
|
10466
|
-
}
|
|
10467
|
-
|
|
10468
|
-
/**
|
|
10469
|
-
* Internal Defaults.
|
|
10470
|
-
* @private
|
|
10471
|
-
* @returns {void}
|
|
10472
|
-
*/
|
|
10473
|
-
privateDefaults() {
|
|
10474
10392
|
this.touched = false;
|
|
10475
10393
|
this.util = new AuroInputUtilities();
|
|
10476
10394
|
this.validation = new AuroFormValidation();
|
|
@@ -10531,17 +10449,17 @@ class BaseInput extends AuroElement$1 {
|
|
|
10531
10449
|
...super.properties,
|
|
10532
10450
|
|
|
10533
10451
|
/**
|
|
10534
|
-
*
|
|
10452
|
+
* The value for the role attribute.
|
|
10535
10453
|
*/
|
|
10536
|
-
|
|
10537
|
-
type:
|
|
10454
|
+
a11yRole: {
|
|
10455
|
+
type: String,
|
|
10538
10456
|
reflect: true
|
|
10539
10457
|
},
|
|
10540
10458
|
|
|
10541
10459
|
/**
|
|
10542
|
-
* The value for the
|
|
10460
|
+
* The value for the aria-controls attribute.
|
|
10543
10461
|
*/
|
|
10544
|
-
|
|
10462
|
+
a11yControls: {
|
|
10545
10463
|
type: String,
|
|
10546
10464
|
reflect: true
|
|
10547
10465
|
},
|
|
@@ -10554,14 +10472,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10554
10472
|
reflect: true
|
|
10555
10473
|
},
|
|
10556
10474
|
|
|
10557
|
-
/**
|
|
10558
|
-
* The value for the aria-controls attribute.
|
|
10559
|
-
*/
|
|
10560
|
-
a11yControls: {
|
|
10561
|
-
type: String,
|
|
10562
|
-
reflect: true
|
|
10563
|
-
},
|
|
10564
|
-
|
|
10565
10475
|
/**
|
|
10566
10476
|
* If set, the label will remain fixed in the active position.
|
|
10567
10477
|
*/
|
|
@@ -10572,7 +10482,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10572
10482
|
|
|
10573
10483
|
/**
|
|
10574
10484
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
10575
|
-
* @
|
|
10485
|
+
* @type {'default' | 'inverse'}
|
|
10576
10486
|
* @default 'default'
|
|
10577
10487
|
*/
|
|
10578
10488
|
appearance: {
|
|
@@ -10604,6 +10514,13 @@ class BaseInput extends AuroElement$1 {
|
|
|
10604
10514
|
reflect: true
|
|
10605
10515
|
},
|
|
10606
10516
|
|
|
10517
|
+
/**
|
|
10518
|
+
* Custom help text message for email type validity.
|
|
10519
|
+
*/
|
|
10520
|
+
customValidityTypeEmail: {
|
|
10521
|
+
type: String
|
|
10522
|
+
},
|
|
10523
|
+
|
|
10607
10524
|
/**
|
|
10608
10525
|
* If set, disables the input.
|
|
10609
10526
|
*/
|
|
@@ -10612,6 +10529,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
10612
10529
|
reflect: true
|
|
10613
10530
|
},
|
|
10614
10531
|
|
|
10532
|
+
/**
|
|
10533
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
10534
|
+
*/
|
|
10535
|
+
dvInputOnly: {
|
|
10536
|
+
type: Boolean,
|
|
10537
|
+
reflect: true
|
|
10538
|
+
},
|
|
10539
|
+
|
|
10615
10540
|
/**
|
|
10616
10541
|
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
10617
10542
|
*/
|
|
@@ -10636,20 +10561,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10636
10561
|
},
|
|
10637
10562
|
|
|
10638
10563
|
/**
|
|
10639
|
-
*
|
|
10640
|
-
* Flag to indicate if the input currently has value.
|
|
10564
|
+
* Flag to indicate if the input currently has focus.
|
|
10641
10565
|
*/
|
|
10642
|
-
|
|
10566
|
+
hasFocus: {
|
|
10643
10567
|
type: Boolean,
|
|
10644
10568
|
reflect: false,
|
|
10645
10569
|
attribute: false
|
|
10646
10570
|
},
|
|
10647
10571
|
|
|
10648
10572
|
/**
|
|
10649
|
-
*
|
|
10650
|
-
* Flag to indicate if the input currently has focus.
|
|
10573
|
+
* Flag to indicate if the input currently has value.
|
|
10651
10574
|
*/
|
|
10652
|
-
|
|
10575
|
+
hasValue: {
|
|
10653
10576
|
type: Boolean,
|
|
10654
10577
|
reflect: false,
|
|
10655
10578
|
attribute: false
|
|
@@ -10663,6 +10586,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10663
10586
|
reflect: true
|
|
10664
10587
|
},
|
|
10665
10588
|
|
|
10589
|
+
/**
|
|
10590
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10591
|
+
*/
|
|
10592
|
+
id: {
|
|
10593
|
+
type: String
|
|
10594
|
+
},
|
|
10595
|
+
|
|
10596
|
+
/**
|
|
10597
|
+
* The id for input node.
|
|
10598
|
+
* @private
|
|
10599
|
+
*/
|
|
10600
|
+
inputId: {
|
|
10601
|
+
type: String,
|
|
10602
|
+
reflect: false,
|
|
10603
|
+
attribute: false
|
|
10604
|
+
},
|
|
10605
|
+
|
|
10666
10606
|
/** Exposes inputmode attribute for input. */
|
|
10667
10607
|
inputmode: {
|
|
10668
10608
|
type: String,
|
|
@@ -10733,7 +10673,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10733
10673
|
},
|
|
10734
10674
|
|
|
10735
10675
|
/**
|
|
10736
|
-
* DEPRECATED - use `appearance` instead.
|
|
10676
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
10737
10677
|
*/
|
|
10738
10678
|
onDark: {
|
|
10739
10679
|
type: Boolean,
|
|
@@ -10772,13 +10712,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10772
10712
|
reflect: true
|
|
10773
10713
|
},
|
|
10774
10714
|
|
|
10775
|
-
/**
|
|
10776
|
-
* @ignore
|
|
10777
|
-
*/
|
|
10778
|
-
showPassword: {
|
|
10779
|
-
state: true
|
|
10780
|
-
},
|
|
10781
|
-
|
|
10782
10715
|
/**
|
|
10783
10716
|
* Sets a custom help text message to display for all validityStates.
|
|
10784
10717
|
*/
|
|
@@ -10843,18 +10776,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10843
10776
|
},
|
|
10844
10777
|
|
|
10845
10778
|
/**
|
|
10846
|
-
*
|
|
10779
|
+
* @ignore
|
|
10847
10780
|
*/
|
|
10848
|
-
|
|
10849
|
-
|
|
10850
|
-
reflect: true
|
|
10781
|
+
showPassword: {
|
|
10782
|
+
state: true
|
|
10851
10783
|
},
|
|
10852
10784
|
|
|
10853
10785
|
/**
|
|
10854
|
-
*
|
|
10786
|
+
* Simple makes the input render without a border.
|
|
10855
10787
|
*/
|
|
10856
|
-
|
|
10857
|
-
type:
|
|
10788
|
+
simple: {
|
|
10789
|
+
type: Boolean,
|
|
10790
|
+
reflect: true
|
|
10858
10791
|
},
|
|
10859
10792
|
|
|
10860
10793
|
/**
|
|
@@ -10866,18 +10799,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10866
10799
|
},
|
|
10867
10800
|
|
|
10868
10801
|
/**
|
|
10869
|
-
*
|
|
10802
|
+
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
10803
|
+
* @private
|
|
10870
10804
|
*/
|
|
10871
|
-
|
|
10872
|
-
type:
|
|
10873
|
-
reflect: true
|
|
10805
|
+
touched: {
|
|
10806
|
+
type: Boolean,
|
|
10807
|
+
reflect: true,
|
|
10808
|
+
attribute: false
|
|
10874
10809
|
},
|
|
10875
10810
|
|
|
10876
10811
|
/**
|
|
10877
|
-
* Populates the `
|
|
10812
|
+
* Populates the `type` attribute on the input.
|
|
10813
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
10814
|
+
* @default 'text'
|
|
10878
10815
|
*/
|
|
10879
|
-
|
|
10880
|
-
type: String
|
|
10816
|
+
type: {
|
|
10817
|
+
type: String,
|
|
10818
|
+
reflect: true
|
|
10881
10819
|
},
|
|
10882
10820
|
|
|
10883
10821
|
/**
|
|
@@ -10896,25 +10834,10 @@ class BaseInput extends AuroElement$1 {
|
|
|
10896
10834
|
},
|
|
10897
10835
|
|
|
10898
10836
|
/**
|
|
10899
|
-
*
|
|
10900
|
-
* @type {boolean}
|
|
10901
|
-
* @default false
|
|
10902
|
-
* @private
|
|
10903
|
-
*/
|
|
10904
|
-
touched: {
|
|
10905
|
-
type: Boolean,
|
|
10906
|
-
reflect: true,
|
|
10907
|
-
attribute: false
|
|
10908
|
-
},
|
|
10909
|
-
|
|
10910
|
-
/**
|
|
10911
|
-
* The id for input node.
|
|
10912
|
-
* @private
|
|
10837
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10913
10838
|
*/
|
|
10914
|
-
|
|
10915
|
-
type: String
|
|
10916
|
-
reflect: false,
|
|
10917
|
-
attribute: false
|
|
10839
|
+
value: {
|
|
10840
|
+
type: String
|
|
10918
10841
|
}
|
|
10919
10842
|
};
|
|
10920
10843
|
}
|
|
@@ -11223,7 +11146,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
11223
11146
|
}
|
|
11224
11147
|
|
|
11225
11148
|
/**
|
|
11226
|
-
* @param {Event} event - The input event
|
|
11149
|
+
* @param {Event} event - The input event.
|
|
11227
11150
|
* @private
|
|
11228
11151
|
* @returns {void}
|
|
11229
11152
|
*/
|
|
@@ -11928,13 +11851,12 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
11928
11851
|
}
|
|
11929
11852
|
};
|
|
11930
11853
|
|
|
11931
|
-
var formkitVersion$1 = '
|
|
11854
|
+
var formkitVersion$1 = '202601271813';
|
|
11932
11855
|
|
|
11933
11856
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11934
11857
|
// See LICENSE in the project root for license information.
|
|
11935
11858
|
|
|
11936
11859
|
|
|
11937
|
-
// build the component class
|
|
11938
11860
|
class AuroInput extends BaseInput {
|
|
11939
11861
|
|
|
11940
11862
|
constructor() {
|
|
@@ -12106,6 +12028,10 @@ class AuroInput extends BaseInput {
|
|
|
12106
12028
|
};
|
|
12107
12029
|
}
|
|
12108
12030
|
|
|
12031
|
+
/**
|
|
12032
|
+
* Common display value wrapper classes.
|
|
12033
|
+
* @private
|
|
12034
|
+
*/
|
|
12109
12035
|
get commonDisplayValueWrapperClasses() {
|
|
12110
12036
|
return {
|
|
12111
12037
|
'displayValueWrapper': true,
|
|
@@ -12153,7 +12079,7 @@ class AuroInput extends BaseInput {
|
|
|
12153
12079
|
|
|
12154
12080
|
/**
|
|
12155
12081
|
* This will register this element with the browser.
|
|
12156
|
-
* @param {string} [name="auro-input"] - The name of element that you want to register
|
|
12082
|
+
* @param {string} [name="auro-input"] - The name of the element that you want to register.
|
|
12157
12083
|
*
|
|
12158
12084
|
* @example
|
|
12159
12085
|
* AuroInput.register("custom-input") // this will register this element to <custom-input/>
|
|
@@ -12918,7 +12844,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
12918
12844
|
}
|
|
12919
12845
|
}
|
|
12920
12846
|
|
|
12921
|
-
var formkitVersion = '
|
|
12847
|
+
var formkitVersion = '202601271813';
|
|
12922
12848
|
|
|
12923
12849
|
var styleCss$3 = i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
12924
12850
|
|
|
@@ -13258,12 +13184,15 @@ class AuroHelpText extends i$3 {
|
|
|
13258
13184
|
}
|
|
13259
13185
|
}
|
|
13260
13186
|
|
|
13261
|
-
// Copyright (c)
|
|
13187
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13262
13188
|
// See LICENSE in the project root for license information.
|
|
13263
13189
|
|
|
13264
13190
|
|
|
13265
13191
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13266
13192
|
/**
|
|
13193
|
+
* The `auro-combobox` element provides users with a way to select an option from a list of filtered or suggested options based on user input.
|
|
13194
|
+
* @customElement auro-combobox
|
|
13195
|
+
*
|
|
13267
13196
|
* @slot - Default slot for the menu content.
|
|
13268
13197
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
13269
13198
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
@@ -13277,13 +13206,19 @@ class AuroHelpText extends i$3 {
|
|
|
13277
13206
|
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
13278
13207
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
13279
13208
|
*/
|
|
13280
|
-
|
|
13281
|
-
// build the component class
|
|
13282
13209
|
class AuroCombobox extends AuroElement {
|
|
13283
13210
|
|
|
13284
13211
|
constructor() {
|
|
13285
13212
|
super();
|
|
13286
13213
|
|
|
13214
|
+
this._initializeDefaults();
|
|
13215
|
+
}
|
|
13216
|
+
|
|
13217
|
+
/**
|
|
13218
|
+
* @private
|
|
13219
|
+
* @returns {void} Internal defaults.
|
|
13220
|
+
*/
|
|
13221
|
+
_initializeDefaults() {
|
|
13287
13222
|
// Defaults that effect the combobox behavior and state
|
|
13288
13223
|
this.appearance = "default";
|
|
13289
13224
|
this.disabled = false;
|
|
@@ -13314,14 +13249,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13314
13249
|
this.shift = false;
|
|
13315
13250
|
this.autoPlacement = false;
|
|
13316
13251
|
|
|
13317
|
-
|
|
13318
|
-
}
|
|
13319
|
-
|
|
13320
|
-
/**
|
|
13321
|
-
* @private
|
|
13322
|
-
* @returns {void} Internal defaults.
|
|
13323
|
-
*/
|
|
13324
|
-
privateDefaults() {
|
|
13252
|
+
// Private properties that manage internal state
|
|
13325
13253
|
const versioning = new AuroDependencyVersioning$3();
|
|
13326
13254
|
|
|
13327
13255
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', formkitVersion, AuroDropdown);
|
|
@@ -13352,7 +13280,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13352
13280
|
|
|
13353
13281
|
/**
|
|
13354
13282
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
13355
|
-
* @property {'default'
|
|
13283
|
+
* @property {'default' | 'inverse'}
|
|
13356
13284
|
* @default 'default'
|
|
13357
13285
|
*/
|
|
13358
13286
|
appearance: {
|
|
@@ -13362,7 +13290,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13362
13290
|
|
|
13363
13291
|
/**
|
|
13364
13292
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
13365
|
-
* @default false
|
|
13366
13293
|
*/
|
|
13367
13294
|
autocomplete: {
|
|
13368
13295
|
type: String,
|
|
@@ -13391,7 +13318,8 @@ class AuroCombobox extends AuroElement {
|
|
|
13391
13318
|
* Sets the behavior of the combobox, "filter" or "suggestion".
|
|
13392
13319
|
* "filter" requires the user to select an option from the menu.
|
|
13393
13320
|
* "suggestion" allows the user to enter a value not present in the menu options.
|
|
13394
|
-
* @
|
|
13321
|
+
* @type {'filter' | 'suggestion'}
|
|
13322
|
+
* @default 'suggestion'
|
|
13395
13323
|
*/
|
|
13396
13324
|
behavior: {
|
|
13397
13325
|
type: String,
|
|
@@ -13465,8 +13393,19 @@ class AuroCombobox extends AuroElement {
|
|
|
13465
13393
|
reflect: true
|
|
13466
13394
|
},
|
|
13467
13395
|
|
|
13396
|
+
/**
|
|
13397
|
+
* Sets the layout of the combobox.
|
|
13398
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
13399
|
+
* @default 'classic'
|
|
13400
|
+
*/
|
|
13401
|
+
layout: {
|
|
13402
|
+
type: String,
|
|
13403
|
+
reflect: true
|
|
13404
|
+
},
|
|
13405
|
+
|
|
13468
13406
|
/**
|
|
13469
13407
|
* If declared, the popover and trigger will be set to the same width.
|
|
13408
|
+
* @private
|
|
13470
13409
|
*/
|
|
13471
13410
|
matchWidth: {
|
|
13472
13411
|
type: Boolean,
|
|
@@ -13484,7 +13423,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13484
13423
|
/**
|
|
13485
13424
|
* If declared, the bib will NOT flip to an alternate position
|
|
13486
13425
|
* when there isn't enough space in the specified `placement`.
|
|
13487
|
-
* @default false
|
|
13488
13426
|
*/
|
|
13489
13427
|
noFlip: {
|
|
13490
13428
|
type: Boolean,
|
|
@@ -13493,7 +13431,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13493
13431
|
|
|
13494
13432
|
/**
|
|
13495
13433
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
13496
|
-
* @default false
|
|
13497
13434
|
*/
|
|
13498
13435
|
shift: {
|
|
13499
13436
|
type: Boolean,
|
|
@@ -13518,7 +13455,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13518
13455
|
},
|
|
13519
13456
|
|
|
13520
13457
|
/**
|
|
13521
|
-
* DEPRECATED - use `appearance` instead.
|
|
13458
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
13522
13459
|
*/
|
|
13523
13460
|
onDark: {
|
|
13524
13461
|
type: Boolean,
|
|
@@ -13537,28 +13474,21 @@ class AuroCombobox extends AuroElement {
|
|
|
13537
13474
|
* If declared, selecting a menu option will not change the input value. By doing so,
|
|
13538
13475
|
* the current menu filter will be preserved and the user can continue from their last
|
|
13539
13476
|
* filter state. It is recommended to use this in combination with the `displayValue` slot.
|
|
13540
|
-
* @type {Boolean}
|
|
13541
13477
|
*/
|
|
13542
13478
|
persistInput: {
|
|
13543
13479
|
type: Boolean,
|
|
13544
13480
|
reflect: true
|
|
13545
13481
|
},
|
|
13546
13482
|
|
|
13547
|
-
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
13548
13483
|
/**
|
|
13549
13484
|
* Position where the bib should appear relative to the trigger.
|
|
13550
|
-
*
|
|
13551
|
-
*
|
|
13552
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
13553
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
13554
|
-
* "left-start" | "left-end"
|
|
13555
|
-
* @default bottom-start
|
|
13485
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
13486
|
+
* @default 'bottom-start'
|
|
13556
13487
|
*/
|
|
13557
13488
|
placement: {
|
|
13558
13489
|
type: String,
|
|
13559
13490
|
reflect: true
|
|
13560
13491
|
},
|
|
13561
|
-
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13562
13492
|
|
|
13563
13493
|
/**
|
|
13564
13494
|
* Define custom placeholder text, only supported by date input formats.
|
|
@@ -13606,8 +13536,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13606
13536
|
|
|
13607
13537
|
/**
|
|
13608
13538
|
* Indicates whether the combobox is in a dirty state (has been interacted with).
|
|
13609
|
-
* @type {boolean}
|
|
13610
|
-
* @default false
|
|
13611
13539
|
* @private
|
|
13612
13540
|
*/
|
|
13613
13541
|
touched: {
|
|
@@ -13625,7 +13553,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13625
13553
|
},
|
|
13626
13554
|
|
|
13627
13555
|
/**
|
|
13628
|
-
* Applies the defined value as the type attribute on auro-input
|
|
13556
|
+
* Applies the defined value as the type attribute on `auro-input`.
|
|
13629
13557
|
*/
|
|
13630
13558
|
type: {
|
|
13631
13559
|
type: String,
|
|
@@ -13667,12 +13595,12 @@ class AuroCombobox extends AuroElement {
|
|
|
13667
13595
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13668
13596
|
|
|
13669
13597
|
/**
|
|
13670
|
-
* Defines the screen size
|
|
13671
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
13598
|
+
* Defines the screen size breakpointat which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
13672
13599
|
*
|
|
13673
13600
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
13674
13601
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
13675
|
-
* @
|
|
13602
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
13603
|
+
* @default 'sm'
|
|
13676
13604
|
*/
|
|
13677
13605
|
fullscreenBreakpoint: {
|
|
13678
13606
|
type: String,
|
|
@@ -13733,7 +13661,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13733
13661
|
|
|
13734
13662
|
/**
|
|
13735
13663
|
* This will register this element with the browser.
|
|
13736
|
-
* @param {string} [name='auro-combobox'] - The name of element that you want to register
|
|
13664
|
+
* @param {string} [name='auro-combobox'] - The name of the element that you want to register.
|
|
13737
13665
|
*
|
|
13738
13666
|
* @example
|
|
13739
13667
|
* AuroCombobox.register('custom-combobox') // this will register this element to <custom-combobox/>
|
|
@@ -14612,102 +14540,6 @@ class AuroCombobox extends AuroElement {
|
|
|
14612
14540
|
}
|
|
14613
14541
|
}
|
|
14614
14542
|
|
|
14615
|
-
/**
|
|
14616
|
-
* Demonstrates how to make external selection in the combobox.
|
|
14617
|
-
*/
|
|
14618
|
-
function setupExternalSelectionExample() {
|
|
14619
|
-
|
|
14620
|
-
/** @type {AuroCombobox} */
|
|
14621
|
-
const combobox = document.getElementById('externalSelectionExample');
|
|
14622
|
-
|
|
14623
|
-
combobox.addEventListener('input', () => {
|
|
14624
|
-
// Perform whatever matching logic you need here
|
|
14625
|
-
|
|
14626
|
-
// This comes from your custom code, for example matching SEA to SeaTac IATA code.
|
|
14627
|
-
// This matches "peaches" as configured.
|
|
14628
|
-
const matchingMenuOption = 2;
|
|
14629
|
-
combobox.updateActiveOption(matchingMenuOption);
|
|
14630
|
-
});
|
|
14631
|
-
}
|
|
14632
|
-
|
|
14633
|
-
function valueExample() {
|
|
14634
|
-
const valueExample = document.querySelector('#valueExample');
|
|
14635
|
-
|
|
14636
|
-
document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
|
|
14637
|
-
valueExample.value = 'Oranges';
|
|
14638
|
-
});
|
|
14639
|
-
|
|
14640
|
-
document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
|
|
14641
|
-
valueExample.value = 'Dragon Fruit';
|
|
14642
|
-
});
|
|
14643
|
-
|
|
14644
|
-
document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
|
|
14645
|
-
valueExample.value = undefined;
|
|
14646
|
-
});
|
|
14647
|
-
}
|
|
14648
|
-
|
|
14649
|
-
function focusExample() {
|
|
14650
|
-
const focusExample = document.querySelector('#focusExample');
|
|
14651
|
-
const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
|
|
14652
|
-
|
|
14653
|
-
focusExampleBtnElem.addEventListener('click', () => {
|
|
14654
|
-
focusExample.focus();
|
|
14655
|
-
});
|
|
14656
|
-
}
|
|
14657
|
-
|
|
14658
|
-
function inDialogExample() {
|
|
14659
|
-
document.querySelector("#combobox-dialog-opener").addEventListener("click", () => {
|
|
14660
|
-
const dialog = document.querySelector("#combobox-dialog");
|
|
14661
|
-
dialog.open = true;
|
|
14662
|
-
});
|
|
14663
|
-
}
|
|
14664
|
-
|
|
14665
|
-
function resetStateExample() {
|
|
14666
|
-
const elem = document.querySelector('#resetStateExample');
|
|
14667
|
-
|
|
14668
|
-
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
14669
|
-
elem.reset();
|
|
14670
|
-
});
|
|
14671
|
-
}
|
|
14672
|
-
|
|
14673
|
-
function auroMenuLoadingExample() {
|
|
14674
|
-
const combobox = document.querySelector("#loadingExample");
|
|
14675
|
-
const menu = document.querySelector("#loadingExampleComboboxMenu");
|
|
14676
|
-
|
|
14677
|
-
const emptyMenu = () => {
|
|
14678
|
-
const menuoptions = menu.querySelectorAll('auro-menuoption');
|
|
14679
|
-
menuoptions.forEach(mo => menu.removeChild(mo));
|
|
14680
|
-
};
|
|
14681
|
-
|
|
14682
|
-
const fillMenu = () => {
|
|
14683
|
-
menu.innerHTML += `
|
|
14684
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
14685
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
14686
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
14687
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
14688
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
14689
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
14690
|
-
`;
|
|
14691
|
-
};
|
|
14692
|
-
|
|
14693
|
-
const load = () => {
|
|
14694
|
-
clearTimeout(load.id);
|
|
14695
|
-
emptyMenu();
|
|
14696
|
-
menu.setAttribute('loading', 'loading');
|
|
14697
|
-
load.id = setTimeout(() => {
|
|
14698
|
-
menu.removeAttribute('loading');
|
|
14699
|
-
fillMenu();
|
|
14700
|
-
}, 1000);
|
|
14701
|
-
|
|
14702
|
-
};
|
|
14703
|
-
|
|
14704
|
-
combobox.addEventListener("inputValue", (e) => {
|
|
14705
|
-
if (e.target.inputValue && e.target.value !== e.target.inputValue) {
|
|
14706
|
-
load();
|
|
14707
|
-
}
|
|
14708
|
-
});
|
|
14709
|
-
}
|
|
14710
|
-
|
|
14711
14543
|
var styleCss$1 = i$6`:focus:not(:focus-visible){outline:3px solid transparent}.body-default{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-sm-font-size, 0.875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-xs-font-size, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);font-size:var(--wcss-body-2xs-font-size, 0.625rem);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);font-weight:var(--wcss-display-2xl-weight, 300);line-height:var(--wcss-display-2xl-line-height, 1.3);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem))}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);font-weight:var(--wcss-display-xl-weight, 300);line-height:var(--wcss-display-xl-line-height, 1.3);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem))}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);font-weight:var(--wcss-display-lg-weight, 300);line-height:var(--wcss-display-lg-line-height, 1.3);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem))}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-md-letter-spacing, 0);font-weight:var(--wcss-display-md-weight, 300);line-height:var(--wcss-display-md-line-height, 1.3);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem))}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);font-weight:var(--wcss-display-sm-weight, 300);line-height:var(--wcss-display-sm-line-height, 1.3);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem))}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);font-weight:var(--wcss-display-xs-weight, 300);line-height:var(--wcss-display-xs-line-height, 1.3);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem))}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);font-weight:var(--wcss-heading-xl-weight, 300);line-height:var(--wcss-heading-xl-line-height, 1.3);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem))}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);font-weight:var(--wcss-heading-lg-weight, 300);line-height:var(--wcss-heading-lg-line-height, 1.3);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem))}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);font-weight:var(--wcss-heading-md-weight, 300);line-height:var(--wcss-heading-md-line-height, 1.3);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem))}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);font-weight:var(--wcss-heading-sm-weight, 300);line-height:var(--wcss-heading-sm-line-height, 1.3);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem))}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);font-weight:var(--wcss-heading-xs-weight, 450);line-height:var(--wcss-heading-xs-line-height, 1.3);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem))}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);font-weight:var(--wcss-heading-2xs-weight, 450);line-height:var(--wcss-heading-2xs-line-height, 1.3);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem))}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-2xl-weight, 450);line-height:var(--wcss-accent-2xl-line-height, 1);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);font-weight:var(--wcss-accent-xl-weight, 450);line-height:var(--wcss-accent-xl-line-height, 1.3);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));text-transform:uppercase}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);font-weight:var(--wcss-accent-lg-weight, 450);line-height:var(--wcss-accent-lg-line-height, 1.3);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);font-weight:var(--wcss-accent-md-weight, 500);line-height:var(--wcss-accent-md-line-height, 1.3);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));text-transform:uppercase}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);font-weight:var(--wcss-accent-sm-weight, 500);line-height:var(--wcss-accent-sm-line-height, 1.3);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-xs-weight, 500);line-height:var(--wcss-accent-xs-line-height, 1.3);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));text-transform:uppercase}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);font-weight:var(--wcss-accent-2xs-weight, 450);line-height:var(--wcss-accent-2xs-line-height, 1.3);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));text-transform:uppercase}:host{display:block;vertical-align:middle;line-height:0}:host .menuWrapper{box-sizing:border-box;display:flex;flex-direction:column;width:100%;margin:0;padding:0}:host ::slotted(hr){box-sizing:content-box !important;height:0 !important;overflow:visible !important;margin:var(--ds-size-100, 0.5rem) 0 !important;border-width:0 !important;border-top-width:1px !important;border-top-style:solid !important}:host [loadingplaceholder].empty{opacity:0;position:absolute}:host [loadingplaceholder] slot[name=loadingIcon]{vertical-align:middle;display:inline-block;margin-bottom:var(--ds-size-25, 0.125rem)}:host [loadingplaceholder] slot[name=loadingIcon]::slotted(*){margin-right:var(--ds-size-150, 0.75rem)}:host([root]){overflow-y:auto}:host([root]) .menuWrapper.lg{padding:var(--ds-size-150, 0.75rem);gap:var(--ds-size-50, 0.25rem)}:host([root]) .menuWrapper.xl{padding:var(--ds-size-200, 1rem);gap:var(--ds-size-100, 0.5rem)}`;
|
|
14712
14544
|
|
|
14713
14545
|
var colorCss$1 = i$6`:host ::slotted(hr){border-top-color:var(--ds-auro-menu-divider-color)}[loadingplaceholder] slot[name=loadingIcon]{color:var(--ds-auro-menu-loader-color)}[loadingplaceholder] slot[name=loadingText]{color:var(--ds-auro-menu-loader-text-color)}`;
|
|
@@ -14808,12 +14640,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
14808
14640
|
|
|
14809
14641
|
|
|
14810
14642
|
/**
|
|
14811
|
-
* The auro-
|
|
14643
|
+
* The `auro-menuoption` element provides users a way to define a menu option.
|
|
14644
|
+
* @customElement auro-menuoption
|
|
14812
14645
|
*
|
|
14813
|
-
* @attr {String} value - Specifies the value to be sent to a server.
|
|
14814
|
-
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
14815
|
-
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
14816
|
-
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
14817
14646
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
14818
14647
|
* @slot - Specifies text for an option, but is not the value.
|
|
14819
14648
|
*/
|
|
@@ -14821,7 +14650,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
14821
14650
|
|
|
14822
14651
|
/**
|
|
14823
14652
|
* This will register this element with the browser.
|
|
14824
|
-
* @param {string} [name="auro-menuoption"] - The name of element that you want to register
|
|
14653
|
+
* @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
|
|
14825
14654
|
*
|
|
14826
14655
|
* @example
|
|
14827
14656
|
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
@@ -14885,38 +14714,81 @@ class AuroMenuOption extends AuroElement {
|
|
|
14885
14714
|
static get properties() {
|
|
14886
14715
|
return {
|
|
14887
14716
|
...super.properties,
|
|
14717
|
+
|
|
14718
|
+
/**
|
|
14719
|
+
* When true, disables the menu option.
|
|
14720
|
+
*/
|
|
14888
14721
|
disabled: {
|
|
14889
14722
|
type: Boolean,
|
|
14890
14723
|
reflect: true
|
|
14891
14724
|
},
|
|
14725
|
+
|
|
14726
|
+
/**
|
|
14727
|
+
* @private
|
|
14728
|
+
*/
|
|
14892
14729
|
event: {
|
|
14893
14730
|
type: String,
|
|
14894
14731
|
reflect: true
|
|
14895
14732
|
},
|
|
14733
|
+
|
|
14734
|
+
/**
|
|
14735
|
+
* @private
|
|
14736
|
+
*/
|
|
14737
|
+
layout: {
|
|
14738
|
+
type: String
|
|
14739
|
+
},
|
|
14740
|
+
|
|
14741
|
+
/**
|
|
14742
|
+
* Allows users to set a unique key for the menu option for specified option selection. If no key is provided, the value property will be used.
|
|
14743
|
+
*/
|
|
14896
14744
|
key: {
|
|
14897
14745
|
type: String,
|
|
14898
14746
|
reflect: true
|
|
14899
14747
|
},
|
|
14748
|
+
|
|
14749
|
+
/**
|
|
14750
|
+
* @private
|
|
14751
|
+
*/
|
|
14900
14752
|
menuService: {
|
|
14901
14753
|
type: Object,
|
|
14902
14754
|
state: true
|
|
14903
14755
|
},
|
|
14756
|
+
|
|
14757
|
+
/**
|
|
14758
|
+
* @private
|
|
14759
|
+
*/
|
|
14904
14760
|
matchWord: {
|
|
14905
14761
|
type: String,
|
|
14906
14762
|
state: true
|
|
14907
14763
|
},
|
|
14764
|
+
|
|
14765
|
+
/**
|
|
14766
|
+
* @private
|
|
14767
|
+
*/
|
|
14908
14768
|
noCheckmark: {
|
|
14909
14769
|
type: Boolean,
|
|
14910
14770
|
reflect: true
|
|
14911
14771
|
},
|
|
14772
|
+
|
|
14773
|
+
/**
|
|
14774
|
+
* Specifies that an option is selected.
|
|
14775
|
+
*/
|
|
14912
14776
|
selected: {
|
|
14913
14777
|
type: Boolean,
|
|
14914
14778
|
reflect: true
|
|
14915
14779
|
},
|
|
14780
|
+
|
|
14781
|
+
/**
|
|
14782
|
+
* Specifies the tab index of the menu option.
|
|
14783
|
+
*/
|
|
14916
14784
|
tabIndex: {
|
|
14917
14785
|
type: Number,
|
|
14918
14786
|
reflect: true
|
|
14919
14787
|
},
|
|
14788
|
+
|
|
14789
|
+
/**
|
|
14790
|
+
* Specifies the value to be sent to a server.
|
|
14791
|
+
*/
|
|
14920
14792
|
value: {
|
|
14921
14793
|
type: String,
|
|
14922
14794
|
reflect: true
|
|
@@ -15867,19 +15739,9 @@ const MenuContext = n('menu-context');
|
|
|
15867
15739
|
|
|
15868
15740
|
|
|
15869
15741
|
/**
|
|
15870
|
-
* The auro-menu element provides users a way to select from a list of options.
|
|
15871
|
-
* @
|
|
15872
|
-
*
|
|
15873
|
-
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
15874
|
-
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
15875
|
-
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
15876
|
-
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
15877
|
-
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
15878
|
-
* @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
15879
|
-
* @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
15880
|
-
* @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
|
|
15881
|
-
* @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
|
|
15882
|
-
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
15742
|
+
* The `auro-menu` element provides users a way to select from a list of options.
|
|
15743
|
+
* @customElement auro-menu
|
|
15744
|
+
*
|
|
15883
15745
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
15884
15746
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
15885
15747
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
@@ -15970,58 +15832,87 @@ class AuroMenu extends AuroElement {
|
|
|
15970
15832
|
type: Boolean,
|
|
15971
15833
|
reflect: true,
|
|
15972
15834
|
},
|
|
15973
|
-
|
|
15974
|
-
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
},
|
|
15835
|
+
|
|
15836
|
+
/**
|
|
15837
|
+
* When true, the entire menu and all options are disabled.
|
|
15838
|
+
*/
|
|
15978
15839
|
disabled: {
|
|
15979
15840
|
type: Boolean,
|
|
15980
15841
|
reflect: true
|
|
15981
15842
|
},
|
|
15843
|
+
|
|
15844
|
+
/**
|
|
15845
|
+
* Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
15846
|
+
*/
|
|
15847
|
+
hasLoadingPlaceholder: {
|
|
15848
|
+
type: Boolean
|
|
15849
|
+
},
|
|
15850
|
+
|
|
15851
|
+
/**
|
|
15852
|
+
* @private
|
|
15853
|
+
*/
|
|
15854
|
+
layout: {
|
|
15855
|
+
type: String
|
|
15856
|
+
},
|
|
15857
|
+
|
|
15858
|
+
/**
|
|
15859
|
+
* Indent level for submenus.
|
|
15860
|
+
* @private
|
|
15861
|
+
*/
|
|
15862
|
+
level: {
|
|
15863
|
+
type: Number,
|
|
15864
|
+
reflect: false,
|
|
15865
|
+
attribute: false
|
|
15866
|
+
},
|
|
15867
|
+
|
|
15868
|
+
/**
|
|
15869
|
+
* When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
15870
|
+
*/
|
|
15982
15871
|
loading: {
|
|
15983
15872
|
type: Boolean,
|
|
15984
15873
|
reflect: true
|
|
15985
15874
|
},
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
optionActive: {
|
|
15991
|
-
type: Object,
|
|
15992
|
-
attribute: 'optionactive'
|
|
15993
|
-
},
|
|
15875
|
+
|
|
15876
|
+
/**
|
|
15877
|
+
* Specifies a string used to highlight matched string parts in options.
|
|
15878
|
+
*/
|
|
15994
15879
|
matchWord: {
|
|
15995
15880
|
type: String,
|
|
15996
15881
|
attribute: 'matchword'
|
|
15997
15882
|
},
|
|
15883
|
+
|
|
15884
|
+
/**
|
|
15885
|
+
* When true, the selected option can be multiple options.
|
|
15886
|
+
*/
|
|
15998
15887
|
multiSelect: {
|
|
15999
15888
|
type: Boolean,
|
|
16000
15889
|
reflect: true,
|
|
16001
15890
|
attribute: 'multiselect'
|
|
16002
15891
|
},
|
|
16003
|
-
|
|
15892
|
+
|
|
15893
|
+
/**
|
|
15894
|
+
* When true, selected option will not show the checkmark.
|
|
15895
|
+
*/
|
|
15896
|
+
noCheckmark: {
|
|
16004
15897
|
type: Boolean,
|
|
16005
15898
|
reflect: true,
|
|
15899
|
+
attribute: 'nocheckmark'
|
|
16006
15900
|
},
|
|
16007
15901
|
|
|
16008
15902
|
/**
|
|
16009
|
-
*
|
|
15903
|
+
* Specifies the current active menuOption.
|
|
16010
15904
|
*/
|
|
16011
|
-
|
|
16012
|
-
type:
|
|
16013
|
-
|
|
16014
|
-
attribute: 'value'
|
|
15905
|
+
optionActive: {
|
|
15906
|
+
type: Object,
|
|
15907
|
+
attribute: 'optionactive'
|
|
16015
15908
|
},
|
|
16016
15909
|
|
|
16017
15910
|
/**
|
|
16018
|
-
*
|
|
16019
|
-
* @private
|
|
15911
|
+
* An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
|
|
16020
15912
|
*/
|
|
16021
|
-
|
|
16022
|
-
|
|
16023
|
-
|
|
16024
|
-
attribute: false
|
|
15913
|
+
optionSelected: {
|
|
15914
|
+
// Allow HTMLElement, HTMLElement[] arrays and undefined
|
|
15915
|
+
type: Object
|
|
16025
15916
|
},
|
|
16026
15917
|
|
|
16027
15918
|
/**
|
|
@@ -16032,6 +15923,43 @@ class AuroMenu extends AuroElement {
|
|
|
16032
15923
|
type: Array,
|
|
16033
15924
|
reflect: false,
|
|
16034
15925
|
attribute: false
|
|
15926
|
+
},
|
|
15927
|
+
|
|
15928
|
+
/**
|
|
15929
|
+
* Sets the size of the menu.
|
|
15930
|
+
* @type {'sm' | 'md'}
|
|
15931
|
+
* @default 'sm'
|
|
15932
|
+
*/
|
|
15933
|
+
size: {
|
|
15934
|
+
type: String,
|
|
15935
|
+
reflect: true
|
|
15936
|
+
},
|
|
15937
|
+
|
|
15938
|
+
/**
|
|
15939
|
+
* When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
15940
|
+
*/
|
|
15941
|
+
selectAllMatchingOptions: {
|
|
15942
|
+
type: Boolean,
|
|
15943
|
+
reflect: true,
|
|
15944
|
+
},
|
|
15945
|
+
|
|
15946
|
+
/**
|
|
15947
|
+
* Sets the shape of the menu.
|
|
15948
|
+
* @type {'box' | 'round'}
|
|
15949
|
+
* @default 'box'
|
|
15950
|
+
*/
|
|
15951
|
+
shape: {
|
|
15952
|
+
type: String,
|
|
15953
|
+
reflect: true
|
|
15954
|
+
},
|
|
15955
|
+
|
|
15956
|
+
/**
|
|
15957
|
+
* The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
15958
|
+
*/
|
|
15959
|
+
value: {
|
|
15960
|
+
type: String,
|
|
15961
|
+
reflect: true,
|
|
15962
|
+
attribute: 'value'
|
|
16035
15963
|
}
|
|
16036
15964
|
};
|
|
16037
15965
|
}
|
|
@@ -16077,7 +16005,7 @@ class AuroMenu extends AuroElement {
|
|
|
16077
16005
|
|
|
16078
16006
|
/**
|
|
16079
16007
|
* This will register this element with the browser.
|
|
16080
|
-
* @param {string} [name="auro-menu"] - The name of element that you want to register
|
|
16008
|
+
* @param {string} [name="auro-menu"] - The name of the element that you want to register.
|
|
16081
16009
|
*
|
|
16082
16010
|
* @example
|
|
16083
16011
|
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
@@ -16497,13 +16425,13 @@ function initExamples(initCount) {
|
|
|
16497
16425
|
|
|
16498
16426
|
try {
|
|
16499
16427
|
// javascript example function calls to be added here upon creation to test examples
|
|
16500
|
-
dynamicMenuExample();
|
|
16501
|
-
valueExample();
|
|
16502
16428
|
focusExample();
|
|
16503
|
-
inDialogExample();
|
|
16504
16429
|
resetStateExample();
|
|
16505
|
-
|
|
16506
|
-
|
|
16430
|
+
// setupExternalSelectionExample();
|
|
16431
|
+
valueExample();
|
|
16432
|
+
inDialogExample();
|
|
16433
|
+
persistentExample();
|
|
16434
|
+
swapValueExample();
|
|
16507
16435
|
} catch (err) {
|
|
16508
16436
|
if (initCount <= 20) {
|
|
16509
16437
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|