@aurodesignsystem/auro-formkit 5.9.0 → 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 +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- 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 +416 -492
- 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 +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- 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 +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- 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 +117 -152
- package/components/counter/dist/registered.js +117 -152
- 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 +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- 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 +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- 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 +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- 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/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- 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/demo/working.html +1 -1
- 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 +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- 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 +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- 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 +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- 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 +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -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
|
/**
|
|
@@ -1340,9 +1252,8 @@ function getOppositeAxis(axis) {
|
|
|
1340
1252
|
function getAxisLength(axis) {
|
|
1341
1253
|
return axis === 'y' ? 'height' : 'width';
|
|
1342
1254
|
}
|
|
1343
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
1344
1255
|
function getSideAxis(placement) {
|
|
1345
|
-
return
|
|
1256
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
1346
1257
|
}
|
|
1347
1258
|
function getAlignmentAxis(placement) {
|
|
1348
1259
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -1367,19 +1278,19 @@ function getExpandedPlacements(placement) {
|
|
|
1367
1278
|
function getOppositeAlignmentPlacement(placement) {
|
|
1368
1279
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
1369
1280
|
}
|
|
1370
|
-
const lrPlacement = ['left', 'right'];
|
|
1371
|
-
const rlPlacement = ['right', 'left'];
|
|
1372
|
-
const tbPlacement = ['top', 'bottom'];
|
|
1373
|
-
const btPlacement = ['bottom', 'top'];
|
|
1374
1281
|
function getSideList(side, isStart, rtl) {
|
|
1282
|
+
const lr = ['left', 'right'];
|
|
1283
|
+
const rl = ['right', 'left'];
|
|
1284
|
+
const tb = ['top', 'bottom'];
|
|
1285
|
+
const bt = ['bottom', 'top'];
|
|
1375
1286
|
switch (side) {
|
|
1376
1287
|
case 'top':
|
|
1377
1288
|
case 'bottom':
|
|
1378
|
-
if (rtl) return isStart ?
|
|
1379
|
-
return isStart ?
|
|
1289
|
+
if (rtl) return isStart ? rl : lr;
|
|
1290
|
+
return isStart ? lr : rl;
|
|
1380
1291
|
case 'left':
|
|
1381
1292
|
case 'right':
|
|
1382
|
-
return isStart ?
|
|
1293
|
+
return isStart ? tb : bt;
|
|
1383
1294
|
default:
|
|
1384
1295
|
return [];
|
|
1385
1296
|
}
|
|
@@ -1820,22 +1731,16 @@ const flip$1 = function (options) {
|
|
|
1820
1731
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1821
1732
|
const nextPlacement = placements[nextIndex];
|
|
1822
1733
|
if (nextPlacement) {
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
},
|
|
1834
|
-
reset: {
|
|
1835
|
-
placement: nextPlacement
|
|
1836
|
-
}
|
|
1837
|
-
};
|
|
1838
|
-
}
|
|
1734
|
+
// Try next placement and re-run the lifecycle.
|
|
1735
|
+
return {
|
|
1736
|
+
data: {
|
|
1737
|
+
index: nextIndex,
|
|
1738
|
+
overflows: overflowsData
|
|
1739
|
+
},
|
|
1740
|
+
reset: {
|
|
1741
|
+
placement: nextPlacement
|
|
1742
|
+
}
|
|
1743
|
+
};
|
|
1839
1744
|
}
|
|
1840
1745
|
|
|
1841
1746
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -1881,8 +1786,6 @@ const flip$1 = function (options) {
|
|
|
1881
1786
|
};
|
|
1882
1787
|
};
|
|
1883
1788
|
|
|
1884
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
1885
|
-
|
|
1886
1789
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
1887
1790
|
// Derivable.
|
|
1888
1791
|
|
|
@@ -1896,7 +1799,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1896
1799
|
const side = getSide(placement);
|
|
1897
1800
|
const alignment = getAlignment(placement);
|
|
1898
1801
|
const isVertical = getSideAxis(placement) === 'y';
|
|
1899
|
-
const mainAxisMulti =
|
|
1802
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
1900
1803
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1901
1804
|
const rawValue = evaluate(options, state);
|
|
1902
1805
|
|
|
@@ -2089,7 +1992,6 @@ function isShadowRoot(value) {
|
|
|
2089
1992
|
}
|
|
2090
1993
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
2091
1994
|
}
|
|
2092
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
2093
1995
|
function isOverflowElement(element) {
|
|
2094
1996
|
const {
|
|
2095
1997
|
overflow,
|
|
@@ -2097,32 +1999,27 @@ function isOverflowElement(element) {
|
|
|
2097
1999
|
overflowY,
|
|
2098
2000
|
display
|
|
2099
2001
|
} = getComputedStyle$1(element);
|
|
2100
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
2002
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
2101
2003
|
}
|
|
2102
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
2103
2004
|
function isTableElement(element) {
|
|
2104
|
-
return
|
|
2005
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
2105
2006
|
}
|
|
2106
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
2107
2007
|
function isTopLayer(element) {
|
|
2108
|
-
return
|
|
2008
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
2109
2009
|
try {
|
|
2110
2010
|
return element.matches(selector);
|
|
2111
|
-
} catch (
|
|
2011
|
+
} catch (e) {
|
|
2112
2012
|
return false;
|
|
2113
2013
|
}
|
|
2114
2014
|
});
|
|
2115
2015
|
}
|
|
2116
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
2117
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
2118
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
2119
2016
|
function isContainingBlock(elementOrCss) {
|
|
2120
2017
|
const webkit = isWebKit();
|
|
2121
2018
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2122
2019
|
|
|
2123
2020
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2124
2021
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2125
|
-
return
|
|
2022
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
2126
2023
|
}
|
|
2127
2024
|
function getContainingBlock(element) {
|
|
2128
2025
|
let currentNode = getParentNode(element);
|
|
@@ -2140,9 +2037,8 @@ function isWebKit() {
|
|
|
2140
2037
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
2141
2038
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
2142
2039
|
}
|
|
2143
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
2144
2040
|
function isLastTraversableNode(node) {
|
|
2145
|
-
return
|
|
2041
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
2146
2042
|
}
|
|
2147
2043
|
function getComputedStyle$1(element) {
|
|
2148
2044
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -2447,7 +2343,6 @@ function getViewportRect(element, strategy) {
|
|
|
2447
2343
|
};
|
|
2448
2344
|
}
|
|
2449
2345
|
|
|
2450
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
2451
2346
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
2452
2347
|
function getInnerBoundingClientRect(element, strategy) {
|
|
2453
2348
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -2512,7 +2407,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
2512
2407
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
2513
2408
|
currentContainingBlockComputedStyle = null;
|
|
2514
2409
|
}
|
|
2515
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
2410
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
2516
2411
|
if (shouldDropCurrentNode) {
|
|
2517
2412
|
// Drop non-containing blocks.
|
|
2518
2413
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -2575,12 +2470,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2575
2470
|
scrollTop: 0
|
|
2576
2471
|
};
|
|
2577
2472
|
const offsets = createCoords(0);
|
|
2578
|
-
|
|
2579
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2580
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2581
|
-
function setLeftRTLScrollbarOffset() {
|
|
2582
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
2583
|
-
}
|
|
2584
2473
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
2585
2474
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
2586
2475
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -2590,12 +2479,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2590
2479
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2591
2480
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2592
2481
|
} else if (documentElement) {
|
|
2593
|
-
|
|
2482
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2483
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2484
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
2594
2485
|
}
|
|
2595
2486
|
}
|
|
2596
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
2597
|
-
setLeftRTLScrollbarOffset();
|
|
2598
|
-
}
|
|
2599
2487
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2600
2488
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2601
2489
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -2772,7 +2660,7 @@ function observeMove(element, onMove) {
|
|
|
2772
2660
|
// Handle <iframe>s
|
|
2773
2661
|
root: root.ownerDocument
|
|
2774
2662
|
});
|
|
2775
|
-
} catch (
|
|
2663
|
+
} catch (e) {
|
|
2776
2664
|
io = new IntersectionObserver(handleObserve, options);
|
|
2777
2665
|
}
|
|
2778
2666
|
io.observe(element);
|
|
@@ -3862,7 +3750,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
3862
3750
|
}
|
|
3863
3751
|
};
|
|
3864
3752
|
|
|
3865
|
-
let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$5='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$4 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$4=new Map,f$4=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$4.has(t)||g$4.set(t,fetch(t).then(e)),g$4.get(t)};var w$4=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
3753
|
+
let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$5='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$4 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$4=new Map,f$4=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$4.has(t)||g$4.set(t,fetch(t).then(e)),g$4.get(t)};var w$4=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
3866
3754
|
`;let z$4 = class z extends m$4{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$4.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$4}async fetchIcon(t,a){let e="";e="logos"===t?await f$4(`${this.uri}/${t}/${a}.svg`):await f$4(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u$5,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}};i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
3867
3755
|
`;var y$4=i$6`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
3868
3756
|
`;var k$4=i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -3886,7 +3774,7 @@ let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
3886
3774
|
</div>
|
|
3887
3775
|
`}};
|
|
3888
3776
|
|
|
3889
|
-
var iconVersion$3 = '9.1.
|
|
3777
|
+
var iconVersion$3 = '9.1.1';
|
|
3890
3778
|
|
|
3891
3779
|
var styleCss$2$1 = i$6`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
3892
3780
|
|
|
@@ -4327,7 +4215,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4327
4215
|
}
|
|
4328
4216
|
};
|
|
4329
4217
|
|
|
4330
|
-
var formkitVersion$2 = '
|
|
4218
|
+
var formkitVersion$2 = '202601271813';
|
|
4331
4219
|
|
|
4332
4220
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4333
4221
|
static get properties() {
|
|
@@ -4433,12 +4321,14 @@ let AuroElement$2 = class AuroElement extends i$3 {
|
|
|
4433
4321
|
}
|
|
4434
4322
|
};
|
|
4435
4323
|
|
|
4436
|
-
// Copyright (c)
|
|
4324
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4437
4325
|
// See LICENSE in the project root for license information.
|
|
4438
4326
|
|
|
4439
4327
|
|
|
4440
|
-
|
|
4441
|
-
|
|
4328
|
+
/**
|
|
4329
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
4330
|
+
* @customElement auro-dropdown
|
|
4331
|
+
*
|
|
4442
4332
|
* @slot - Default slot for the popover content.
|
|
4443
4333
|
* @slot helpText - Defines the content of the helpText.
|
|
4444
4334
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -4474,7 +4364,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4474
4364
|
/** @private */
|
|
4475
4365
|
this.bibElement = e$1();
|
|
4476
4366
|
|
|
4477
|
-
this.
|
|
4367
|
+
this._intializeDefaults();
|
|
4478
4368
|
}
|
|
4479
4369
|
|
|
4480
4370
|
/**
|
|
@@ -4495,7 +4385,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4495
4385
|
* @private
|
|
4496
4386
|
* @returns {void} Internal defaults.
|
|
4497
4387
|
*/
|
|
4498
|
-
|
|
4388
|
+
_intializeDefaults() {
|
|
4499
4389
|
this.appearance = 'default';
|
|
4500
4390
|
this.chevron = false;
|
|
4501
4391
|
this.disabled = false;
|
|
@@ -4616,9 +4506,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4616
4506
|
static get properties() {
|
|
4617
4507
|
return {
|
|
4618
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
|
+
|
|
4619
4518
|
/**
|
|
4620
4519
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
4621
|
-
* @
|
|
4520
|
+
* @type {'default' | 'inverse'}
|
|
4622
4521
|
* @default 'default'
|
|
4623
4522
|
*/
|
|
4624
4523
|
appearance: {
|
|
@@ -4628,7 +4527,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4628
4527
|
|
|
4629
4528
|
/**
|
|
4630
4529
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
4631
|
-
* @default false
|
|
4632
4530
|
*/
|
|
4633
4531
|
autoPlacement: {
|
|
4634
4532
|
type: Boolean,
|
|
@@ -4637,7 +4535,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4637
4535
|
|
|
4638
4536
|
/**
|
|
4639
4537
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4640
|
-
* @default false
|
|
4641
4538
|
*/
|
|
4642
4539
|
disableEventShow: {
|
|
4643
4540
|
type: Boolean,
|
|
@@ -4654,11 +4551,11 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4654
4551
|
|
|
4655
4552
|
/**
|
|
4656
4553
|
* If declared, the dropdown displays a chevron on the right.
|
|
4657
|
-
* @attr {Boolean} chevron
|
|
4658
4554
|
*/
|
|
4659
4555
|
chevron: {
|
|
4660
4556
|
type: Boolean,
|
|
4661
|
-
reflect: true
|
|
4557
|
+
reflect: true,
|
|
4558
|
+
attribute: 'chevron'
|
|
4662
4559
|
},
|
|
4663
4560
|
|
|
4664
4561
|
/**
|
|
@@ -4695,7 +4592,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4695
4592
|
},
|
|
4696
4593
|
|
|
4697
4594
|
/**
|
|
4698
|
-
* If declared
|
|
4595
|
+
* If declared, will apply error UI to the dropdown.
|
|
4699
4596
|
*/
|
|
4700
4597
|
error: {
|
|
4701
4598
|
type: Boolean,
|
|
@@ -4750,18 +4647,28 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4750
4647
|
},
|
|
4751
4648
|
|
|
4752
4649
|
/**
|
|
4753
|
-
* Defines the screen size breakpoint
|
|
4754
|
-
* 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.
|
|
4755
4651
|
*
|
|
4756
4652
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4757
4653
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4758
|
-
* @
|
|
4654
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
4655
|
+
* @default 'sm'
|
|
4759
4656
|
*/
|
|
4760
4657
|
fullscreenBreakpoint: {
|
|
4761
4658
|
type: String,
|
|
4762
4659
|
reflect: true
|
|
4763
4660
|
},
|
|
4764
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
|
+
|
|
4765
4672
|
/**
|
|
4766
4673
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4767
4674
|
* @private
|
|
@@ -4782,7 +4689,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4782
4689
|
/**
|
|
4783
4690
|
* If declared, the bib will NOT flip to an alternate position
|
|
4784
4691
|
* when there isn't enough space in the specified `placement`.
|
|
4785
|
-
* @default false
|
|
4786
4692
|
*/
|
|
4787
4693
|
noFlip: {
|
|
4788
4694
|
type: Boolean,
|
|
@@ -4791,7 +4697,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4791
4697
|
|
|
4792
4698
|
/**
|
|
4793
4699
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4794
|
-
* @default false
|
|
4795
4700
|
*/
|
|
4796
4701
|
shift: {
|
|
4797
4702
|
type: Boolean,
|
|
@@ -4824,7 +4729,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4824
4729
|
},
|
|
4825
4730
|
|
|
4826
4731
|
/**
|
|
4827
|
-
* DEPRECATED - use `appearance` instead.
|
|
4732
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
4828
4733
|
*/
|
|
4829
4734
|
onDark: {
|
|
4830
4735
|
type: Boolean,
|
|
@@ -4841,7 +4746,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4841
4746
|
|
|
4842
4747
|
/**
|
|
4843
4748
|
* Position where the bib should appear relative to the trigger.
|
|
4844
|
-
* @
|
|
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'
|
|
4845
4751
|
*/
|
|
4846
4752
|
placement: {
|
|
4847
4753
|
type: String,
|
|
@@ -4853,15 +4759,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4853
4759
|
*/
|
|
4854
4760
|
tabIndex: {
|
|
4855
4761
|
type: Number
|
|
4856
|
-
},
|
|
4857
|
-
|
|
4858
|
-
/**
|
|
4859
|
-
* The value for the role attribute of the trigger element.
|
|
4860
|
-
*/
|
|
4861
|
-
a11yRole: {
|
|
4862
|
-
type: String || undefined,
|
|
4863
|
-
attribute: false,
|
|
4864
|
-
reflect: false
|
|
4865
4762
|
}
|
|
4866
4763
|
};
|
|
4867
4764
|
}
|
|
@@ -4888,7 +4785,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4888
4785
|
|
|
4889
4786
|
/**
|
|
4890
4787
|
* This will register this element with the browser.
|
|
4891
|
-
* @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.
|
|
4892
4789
|
*
|
|
4893
4790
|
* @example
|
|
4894
4791
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -5395,7 +5292,7 @@ var emphasizedStyleCss = i$6`:host([layout*=emphasized][shape*=pill]:not([layout
|
|
|
5395
5292
|
|
|
5396
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)}`;
|
|
5397
5294
|
|
|
5398
|
-
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-expanded-widget-background: #00274a;--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}`;
|
|
5399
5296
|
|
|
5400
5297
|
const watchedItems = new Set();
|
|
5401
5298
|
|
|
@@ -10427,19 +10324,16 @@ let AuroElement$1 = class AuroElement extends i$3 {
|
|
|
10427
10324
|
|
|
10428
10325
|
|
|
10429
10326
|
/**
|
|
10430
|
-
*
|
|
10431
|
-
*
|
|
10432
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10433
|
-
* @attr id
|
|
10327
|
+
* The `auro-input` element provides users a way to enter data into a text field.
|
|
10328
|
+
* @customElement auro-input
|
|
10434
10329
|
*
|
|
10435
10330
|
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
10436
10331
|
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10437
10332
|
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10438
10333
|
* @slot helpText - Sets the help text displayed below the input.
|
|
10439
10334
|
* @slot label - Sets the label text for the input.
|
|
10440
|
-
* @slot
|
|
10335
|
+
* @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
10441
10336
|
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
10442
|
-
*
|
|
10443
10337
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
10444
10338
|
* @csspart label - Use for customizing the style of the label element
|
|
10445
10339
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
@@ -10457,6 +10351,15 @@ class BaseInput extends AuroElement$1 {
|
|
|
10457
10351
|
constructor() {
|
|
10458
10352
|
super();
|
|
10459
10353
|
|
|
10354
|
+
this._initializeDefaults();
|
|
10355
|
+
}
|
|
10356
|
+
|
|
10357
|
+
/**
|
|
10358
|
+
* Internal Defaults.
|
|
10359
|
+
* @private
|
|
10360
|
+
* @returns {void}
|
|
10361
|
+
*/
|
|
10362
|
+
_initializeDefaults() {
|
|
10460
10363
|
this.activeLabel = false;
|
|
10461
10364
|
this.appearance = "default";
|
|
10462
10365
|
this.icon = false;
|
|
@@ -10486,15 +10389,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10486
10389
|
*/
|
|
10487
10390
|
this.size = 'lg';
|
|
10488
10391
|
|
|
10489
|
-
this.privateDefaults();
|
|
10490
|
-
}
|
|
10491
|
-
|
|
10492
|
-
/**
|
|
10493
|
-
* Internal Defaults.
|
|
10494
|
-
* @private
|
|
10495
|
-
* @returns {void}
|
|
10496
|
-
*/
|
|
10497
|
-
privateDefaults() {
|
|
10498
10392
|
this.touched = false;
|
|
10499
10393
|
this.util = new AuroInputUtilities();
|
|
10500
10394
|
this.validation = new AuroFormValidation();
|
|
@@ -10555,17 +10449,17 @@ class BaseInput extends AuroElement$1 {
|
|
|
10555
10449
|
...super.properties,
|
|
10556
10450
|
|
|
10557
10451
|
/**
|
|
10558
|
-
*
|
|
10452
|
+
* The value for the role attribute.
|
|
10559
10453
|
*/
|
|
10560
|
-
|
|
10561
|
-
type:
|
|
10454
|
+
a11yRole: {
|
|
10455
|
+
type: String,
|
|
10562
10456
|
reflect: true
|
|
10563
10457
|
},
|
|
10564
10458
|
|
|
10565
10459
|
/**
|
|
10566
|
-
* The value for the
|
|
10460
|
+
* The value for the aria-controls attribute.
|
|
10567
10461
|
*/
|
|
10568
|
-
|
|
10462
|
+
a11yControls: {
|
|
10569
10463
|
type: String,
|
|
10570
10464
|
reflect: true
|
|
10571
10465
|
},
|
|
@@ -10578,14 +10472,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10578
10472
|
reflect: true
|
|
10579
10473
|
},
|
|
10580
10474
|
|
|
10581
|
-
/**
|
|
10582
|
-
* The value for the aria-controls attribute.
|
|
10583
|
-
*/
|
|
10584
|
-
a11yControls: {
|
|
10585
|
-
type: String,
|
|
10586
|
-
reflect: true
|
|
10587
|
-
},
|
|
10588
|
-
|
|
10589
10475
|
/**
|
|
10590
10476
|
* If set, the label will remain fixed in the active position.
|
|
10591
10477
|
*/
|
|
@@ -10596,7 +10482,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10596
10482
|
|
|
10597
10483
|
/**
|
|
10598
10484
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
10599
|
-
* @
|
|
10485
|
+
* @type {'default' | 'inverse'}
|
|
10600
10486
|
* @default 'default'
|
|
10601
10487
|
*/
|
|
10602
10488
|
appearance: {
|
|
@@ -10628,6 +10514,13 @@ class BaseInput extends AuroElement$1 {
|
|
|
10628
10514
|
reflect: true
|
|
10629
10515
|
},
|
|
10630
10516
|
|
|
10517
|
+
/**
|
|
10518
|
+
* Custom help text message for email type validity.
|
|
10519
|
+
*/
|
|
10520
|
+
customValidityTypeEmail: {
|
|
10521
|
+
type: String
|
|
10522
|
+
},
|
|
10523
|
+
|
|
10631
10524
|
/**
|
|
10632
10525
|
* If set, disables the input.
|
|
10633
10526
|
*/
|
|
@@ -10636,6 +10529,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
10636
10529
|
reflect: true
|
|
10637
10530
|
},
|
|
10638
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
|
+
|
|
10639
10540
|
/**
|
|
10640
10541
|
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
10641
10542
|
*/
|
|
@@ -10660,20 +10561,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10660
10561
|
},
|
|
10661
10562
|
|
|
10662
10563
|
/**
|
|
10663
|
-
*
|
|
10664
|
-
* Flag to indicate if the input currently has value.
|
|
10564
|
+
* Flag to indicate if the input currently has focus.
|
|
10665
10565
|
*/
|
|
10666
|
-
|
|
10566
|
+
hasFocus: {
|
|
10667
10567
|
type: Boolean,
|
|
10668
10568
|
reflect: false,
|
|
10669
10569
|
attribute: false
|
|
10670
10570
|
},
|
|
10671
10571
|
|
|
10672
10572
|
/**
|
|
10673
|
-
*
|
|
10674
|
-
* Flag to indicate if the input currently has focus.
|
|
10573
|
+
* Flag to indicate if the input currently has value.
|
|
10675
10574
|
*/
|
|
10676
|
-
|
|
10575
|
+
hasValue: {
|
|
10677
10576
|
type: Boolean,
|
|
10678
10577
|
reflect: false,
|
|
10679
10578
|
attribute: false
|
|
@@ -10687,6 +10586,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10687
10586
|
reflect: true
|
|
10688
10587
|
},
|
|
10689
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
|
+
|
|
10690
10606
|
/** Exposes inputmode attribute for input. */
|
|
10691
10607
|
inputmode: {
|
|
10692
10608
|
type: String,
|
|
@@ -10757,7 +10673,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10757
10673
|
},
|
|
10758
10674
|
|
|
10759
10675
|
/**
|
|
10760
|
-
* DEPRECATED - use `appearance` instead.
|
|
10676
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
10761
10677
|
*/
|
|
10762
10678
|
onDark: {
|
|
10763
10679
|
type: Boolean,
|
|
@@ -10796,13 +10712,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10796
10712
|
reflect: true
|
|
10797
10713
|
},
|
|
10798
10714
|
|
|
10799
|
-
/**
|
|
10800
|
-
* @ignore
|
|
10801
|
-
*/
|
|
10802
|
-
showPassword: {
|
|
10803
|
-
state: true
|
|
10804
|
-
},
|
|
10805
|
-
|
|
10806
10715
|
/**
|
|
10807
10716
|
* Sets a custom help text message to display for all validityStates.
|
|
10808
10717
|
*/
|
|
@@ -10867,18 +10776,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10867
10776
|
},
|
|
10868
10777
|
|
|
10869
10778
|
/**
|
|
10870
|
-
*
|
|
10779
|
+
* @ignore
|
|
10871
10780
|
*/
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
reflect: true
|
|
10781
|
+
showPassword: {
|
|
10782
|
+
state: true
|
|
10875
10783
|
},
|
|
10876
10784
|
|
|
10877
10785
|
/**
|
|
10878
|
-
*
|
|
10786
|
+
* Simple makes the input render without a border.
|
|
10879
10787
|
*/
|
|
10880
|
-
|
|
10881
|
-
type:
|
|
10788
|
+
simple: {
|
|
10789
|
+
type: Boolean,
|
|
10790
|
+
reflect: true
|
|
10882
10791
|
},
|
|
10883
10792
|
|
|
10884
10793
|
/**
|
|
@@ -10890,18 +10799,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10890
10799
|
},
|
|
10891
10800
|
|
|
10892
10801
|
/**
|
|
10893
|
-
*
|
|
10802
|
+
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
10803
|
+
* @private
|
|
10894
10804
|
*/
|
|
10895
|
-
|
|
10896
|
-
type:
|
|
10897
|
-
reflect: true
|
|
10805
|
+
touched: {
|
|
10806
|
+
type: Boolean,
|
|
10807
|
+
reflect: true,
|
|
10808
|
+
attribute: false
|
|
10898
10809
|
},
|
|
10899
10810
|
|
|
10900
10811
|
/**
|
|
10901
|
-
* Populates the `
|
|
10812
|
+
* Populates the `type` attribute on the input.
|
|
10813
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
10814
|
+
* @default 'text'
|
|
10902
10815
|
*/
|
|
10903
|
-
|
|
10904
|
-
type: String
|
|
10816
|
+
type: {
|
|
10817
|
+
type: String,
|
|
10818
|
+
reflect: true
|
|
10905
10819
|
},
|
|
10906
10820
|
|
|
10907
10821
|
/**
|
|
@@ -10920,25 +10834,10 @@ class BaseInput extends AuroElement$1 {
|
|
|
10920
10834
|
},
|
|
10921
10835
|
|
|
10922
10836
|
/**
|
|
10923
|
-
*
|
|
10924
|
-
* @type {boolean}
|
|
10925
|
-
* @default false
|
|
10926
|
-
* @private
|
|
10927
|
-
*/
|
|
10928
|
-
touched: {
|
|
10929
|
-
type: Boolean,
|
|
10930
|
-
reflect: true,
|
|
10931
|
-
attribute: false
|
|
10932
|
-
},
|
|
10933
|
-
|
|
10934
|
-
/**
|
|
10935
|
-
* The id for input node.
|
|
10936
|
-
* @private
|
|
10837
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10937
10838
|
*/
|
|
10938
|
-
|
|
10939
|
-
type: String
|
|
10940
|
-
reflect: false,
|
|
10941
|
-
attribute: false
|
|
10839
|
+
value: {
|
|
10840
|
+
type: String
|
|
10942
10841
|
}
|
|
10943
10842
|
};
|
|
10944
10843
|
}
|
|
@@ -11247,7 +11146,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
11247
11146
|
}
|
|
11248
11147
|
|
|
11249
11148
|
/**
|
|
11250
|
-
* @param {Event} event - The input event
|
|
11149
|
+
* @param {Event} event - The input event.
|
|
11251
11150
|
* @private
|
|
11252
11151
|
* @returns {void}
|
|
11253
11152
|
*/
|
|
@@ -11639,7 +11538,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
11639
11538
|
}
|
|
11640
11539
|
};
|
|
11641
11540
|
|
|
11642
|
-
let p$1$1 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$1$1='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$1$1 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$1$1=new Map,f$1$1=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$1$1.has(t)||g$1$1.set(t,fetch(t).then(e)),g$1$1.get(t)};var w$1$1=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
11541
|
+
let p$1$1 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$1$1='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$1$1 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$1$1=new Map,f$1$1=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$1$1.has(t)||g$1$1.set(t,fetch(t).then(e)),g$1$1.get(t)};var w$1$1=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
11643
11542
|
`;let z$1$1 = class z extends m$1$1{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$1$1.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$1$1}async fetchIcon(t,a){let e="";e="logos"===t?await f$1$1(`${this.uri}/${t}/${a}.svg`):await f$1$1(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u$1$1,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}};i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
11644
11543
|
`;var y$1$1=i$6`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
11645
11544
|
`;var k$1$1=i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -11663,7 +11562,7 @@ let p$1$1 = class p{registerComponent(t,a){customElements.get(t)||customElements
|
|
|
11663
11562
|
</div>
|
|
11664
11563
|
`}};
|
|
11665
11564
|
|
|
11666
|
-
var iconVersion$2 = '9.1.
|
|
11565
|
+
var iconVersion$2 = '9.1.1';
|
|
11667
11566
|
|
|
11668
11567
|
let l$2 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[.]/g,"_"),o}generateTag(o,s,a){const r=this.generateElementName(o,s),i=i$2`${s$5(r)}`;return customElements.get(r)||customElements.define(r,class extends a{}),i}};let d$1 = class d{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}getSlotText(t,e){const o=t.shadowRoot?.querySelector(`slot[name="${e}"]`);return (o?.assignedNodes({flatten:true})||[]).map(t=>t.textContent?.trim()).join(" ").trim()||null}};let h$1 = class h{registerComponent(t,e){customElements.get(t)||customElements.define(t,class extends e{});}closestElement(t,e=this,o=(e,s=e&&e.closest(t))=>e&&e!==document&&e!==window?s||o(e.getRootNode().host):null){return o(e)}handleComponentTagRename(t,e){const o=e.toLowerCase();t.tagName.toLowerCase()!==o&&t.setAttribute(o,true);}elementMatch(t,e){const o=e.toLowerCase();return t.tagName.toLowerCase()===o||t.hasAttribute(o)}};var c$2=i$6`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color: var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color: transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color: currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color: currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}
|
|
11669
11568
|
`,u$3=i$6`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.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)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.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)}.body-xs{font-size:var(--wcss-body-xs-font-size, .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-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.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);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.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);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.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);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.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);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.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);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.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);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.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);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.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);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.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);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.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);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.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);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.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);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{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);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.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);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{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);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.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);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{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);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.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);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin: .375rem;--margin-xs: .2rem;--margin-sm: .5rem;--margin-md: .75rem;--margin-lg: 1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin) * 6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs) * 6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm) * 6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md) * 6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg) * 6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-.4s}:host([pulse])>span:nth-child(2){animation-delay:-.2s}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,to{opacity:.1;transform:scale(.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}to{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}to{left:110%}}:host>.no-animation{display:none}@media (prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center}:host>span{opacity:1}:host>.loader{display:none}:host>svg{display:none}:host>.no-animation{display:block}}
|
|
@@ -11952,13 +11851,12 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
11952
11851
|
}
|
|
11953
11852
|
};
|
|
11954
11853
|
|
|
11955
|
-
var formkitVersion$1 = '
|
|
11854
|
+
var formkitVersion$1 = '202601271813';
|
|
11956
11855
|
|
|
11957
11856
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11958
11857
|
// See LICENSE in the project root for license information.
|
|
11959
11858
|
|
|
11960
11859
|
|
|
11961
|
-
// build the component class
|
|
11962
11860
|
class AuroInput extends BaseInput {
|
|
11963
11861
|
|
|
11964
11862
|
constructor() {
|
|
@@ -12130,6 +12028,10 @@ class AuroInput extends BaseInput {
|
|
|
12130
12028
|
};
|
|
12131
12029
|
}
|
|
12132
12030
|
|
|
12031
|
+
/**
|
|
12032
|
+
* Common display value wrapper classes.
|
|
12033
|
+
* @private
|
|
12034
|
+
*/
|
|
12133
12035
|
get commonDisplayValueWrapperClasses() {
|
|
12134
12036
|
return {
|
|
12135
12037
|
'displayValueWrapper': true,
|
|
@@ -12177,7 +12079,7 @@ class AuroInput extends BaseInput {
|
|
|
12177
12079
|
|
|
12178
12080
|
/**
|
|
12179
12081
|
* This will register this element with the browser.
|
|
12180
|
-
* @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.
|
|
12181
12083
|
*
|
|
12182
12084
|
* @example
|
|
12183
12085
|
* AuroInput.register("custom-input") // this will register this element to <custom-input/>
|
|
@@ -12763,7 +12665,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
12763
12665
|
|
|
12764
12666
|
var buttonVersion = '12.3.0';
|
|
12765
12667
|
|
|
12766
|
-
let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$2='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$2 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$2=new Map,f$2=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$2.has(t)||g$2.set(t,fetch(t).then(e)),g$2.get(t)};var w$2=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
12668
|
+
let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$2='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$2 = class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$2=new Map,f$2=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$2.has(t)||g$2.set(t,fetch(t).then(e)),g$2.get(t)};var w$2=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
12767
12669
|
`;let z$2 = class z extends m$2{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$2.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$2}async fetchIcon(t,a){let e="";e="logos"===t?await f$2(`${this.uri}/${t}/${a}.svg`):await f$2(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u$2,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}};i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
12768
12670
|
`;var y$2=i$6`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
12769
12671
|
`;var k$2=i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -12787,7 +12689,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
12787
12689
|
</div>
|
|
12788
12690
|
`}};
|
|
12789
12691
|
|
|
12790
|
-
var iconVersion$1 = '9.1.
|
|
12692
|
+
var iconVersion$1 = '9.1.1';
|
|
12791
12693
|
|
|
12792
12694
|
class l{registerComponent(e,s){customElements.get(e)||customElements.define(e,class extends s{});}closestElement(e,s=this,t=(s,a=s&&s.closest(e))=>s&&s!==document&&s!==window?a||t(s.getRootNode().host):null){return t(s)}handleComponentTagRename(e,s){const t=s.toLowerCase();e.tagName.toLowerCase()!==t&&e.setAttribute(t,true);}elementMatch(e,s){const t=s.toLowerCase();return e.tagName.toLowerCase()===t||e.hasAttribute(t)}}var n$1=i$6`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.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)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.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)}.body-xs{font-size:var(--wcss-body-xs-font-size, .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-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .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);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.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);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.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);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.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);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.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);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.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);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.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);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.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);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.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);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.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);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.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);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.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);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.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);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{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);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.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);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{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);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.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);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{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);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.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);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block}:host .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, .125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, .25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, .5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, .75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, .125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, .25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, .5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, .75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}
|
|
12793
12695
|
`;class c extends i$3{constructor(){super(),this.level=1,this.typography="heading",this.runtimeUtils=new l;}static get properties(){return {level:{type:Number,reflect:true,converter(e){const s=Number(e);return Number.isNaN(s)||s<1?1:s>6?6:s}},display:{type:String,reflect:true},visualLevel:{type:Number,reflect:true,converter(e){const s=Number(e);return Number.isNaN(s)||s<1?1:s>6?6:s}},typography:{type:String,reflect:true},color:{type:String,reflect:true},margin:{type:String,reflect:true},size:{type:String,reflect:true}}}static get styles(){return [n$1]}static get displayClassMap(){return {800:"heading-xl",700:"heading-lg",600:"heading-md",500:"heading-sm",400:"heading-xs",300:"heading-2xs",heading:{1:"heading-xl",2:"heading-lg",3:"heading-md",4:"heading-sm",5:"heading-xs",6:"heading-2xs"},display:{1:"display-2xl",2:"display-xl",3:"display-lg",4:"display-md",5:"display-sm",6:"display-xs"}}}static register(e="auro-header"){l.prototype.registerComponent(e,c);}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-header");}spacingDecision(e){if("both"===this.margin)switch(e){case "none":return "util_stackMarginnone--top util_stackMarginnone--bottom";case "25":return "util_stackMargin25--top util_stackMargin25--bottom";case "50":return "util_stackMargin50--top util_stackMargin50--bottom";case "100":return "util_stackMargin100--top util_stackMargin100--bottom";case "150":return "util_stackMargin150--top util_stackMargin150--bottom";case "200":return "util_stackMargin200--top util_stackMargin200--bottom";case "300":return "util_stackMargin300--top util_stackMargin300--bottom";case "400":return "util_stackMargin400--top util_stackMargin400--bottom";case "600":return "util_stackMargin600--top util_stackMargin600--bottom";case "800":return "util_stackMargin800--top util_stackMargin800--bottom";default:return ""}return this.spacingApplied(e)}spacingApplied(e){switch(e){case "none":return `util_stackMarginnone--${this.margin}`;case "25":return `util_stackMargin25--${this.margin}`;case "50":return `util_stackMargin50--${this.margin}`;case "100":return `util_stackMargin100--${this.margin}`;case "150":return `util_stackMargin150--${this.margin}`;case "200":return `util_stackMargin200--${this.margin}`;case "300":return `util_stackMargin300--${this.margin}`;case "400":return `util_stackMargin400--${this.margin}`;case "600":return `util_stackMarginX600--${this.margin}`;case "800":return `util_stackMargin800--${this.margin}`;default:return ""}}template(e){this.visualLevel||this.display||(this.visualLevel=this.level);const s=e||"1",l=this.spacingDecision(this.size),n=this.visualLevel?c.displayClassMap[this.typography][this.visualLevel]:c.displayClassMap[this.display],o$1={heading:true,[n]:true};if(l){l.split(" ").forEach(e=>{e.trim()&&(o$1[e.trim()]=true);});}const m=e$2(o$1),g=s$5(`h${s}`);return u$7`<${g} class="${m}" style="color: ${o(this.color?this.color:void 0)}"><slot></slot></${g}>`}render(){return this.template(this.level)}}
|
|
@@ -12942,7 +12844,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
12942
12844
|
}
|
|
12943
12845
|
}
|
|
12944
12846
|
|
|
12945
|
-
var formkitVersion = '
|
|
12847
|
+
var formkitVersion = '202601271813';
|
|
12946
12848
|
|
|
12947
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}`;
|
|
12948
12850
|
|
|
@@ -13282,12 +13184,15 @@ class AuroHelpText extends i$3 {
|
|
|
13282
13184
|
}
|
|
13283
13185
|
}
|
|
13284
13186
|
|
|
13285
|
-
// Copyright (c)
|
|
13187
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13286
13188
|
// See LICENSE in the project root for license information.
|
|
13287
13189
|
|
|
13288
13190
|
|
|
13289
13191
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13290
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
|
+
*
|
|
13291
13196
|
* @slot - Default slot for the menu content.
|
|
13292
13197
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
13293
13198
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
@@ -13301,13 +13206,19 @@ class AuroHelpText extends i$3 {
|
|
|
13301
13206
|
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
13302
13207
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
13303
13208
|
*/
|
|
13304
|
-
|
|
13305
|
-
// build the component class
|
|
13306
13209
|
class AuroCombobox extends AuroElement {
|
|
13307
13210
|
|
|
13308
13211
|
constructor() {
|
|
13309
13212
|
super();
|
|
13310
13213
|
|
|
13214
|
+
this._initializeDefaults();
|
|
13215
|
+
}
|
|
13216
|
+
|
|
13217
|
+
/**
|
|
13218
|
+
* @private
|
|
13219
|
+
* @returns {void} Internal defaults.
|
|
13220
|
+
*/
|
|
13221
|
+
_initializeDefaults() {
|
|
13311
13222
|
// Defaults that effect the combobox behavior and state
|
|
13312
13223
|
this.appearance = "default";
|
|
13313
13224
|
this.disabled = false;
|
|
@@ -13338,14 +13249,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13338
13249
|
this.shift = false;
|
|
13339
13250
|
this.autoPlacement = false;
|
|
13340
13251
|
|
|
13341
|
-
|
|
13342
|
-
}
|
|
13343
|
-
|
|
13344
|
-
/**
|
|
13345
|
-
* @private
|
|
13346
|
-
* @returns {void} Internal defaults.
|
|
13347
|
-
*/
|
|
13348
|
-
privateDefaults() {
|
|
13252
|
+
// Private properties that manage internal state
|
|
13349
13253
|
const versioning = new AuroDependencyVersioning$3();
|
|
13350
13254
|
|
|
13351
13255
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', formkitVersion, AuroDropdown);
|
|
@@ -13376,7 +13280,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13376
13280
|
|
|
13377
13281
|
/**
|
|
13378
13282
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
13379
|
-
* @property {'default'
|
|
13283
|
+
* @property {'default' | 'inverse'}
|
|
13380
13284
|
* @default 'default'
|
|
13381
13285
|
*/
|
|
13382
13286
|
appearance: {
|
|
@@ -13386,7 +13290,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13386
13290
|
|
|
13387
13291
|
/**
|
|
13388
13292
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
13389
|
-
* @default false
|
|
13390
13293
|
*/
|
|
13391
13294
|
autocomplete: {
|
|
13392
13295
|
type: String,
|
|
@@ -13415,7 +13318,8 @@ class AuroCombobox extends AuroElement {
|
|
|
13415
13318
|
* Sets the behavior of the combobox, "filter" or "suggestion".
|
|
13416
13319
|
* "filter" requires the user to select an option from the menu.
|
|
13417
13320
|
* "suggestion" allows the user to enter a value not present in the menu options.
|
|
13418
|
-
* @
|
|
13321
|
+
* @type {'filter' | 'suggestion'}
|
|
13322
|
+
* @default 'suggestion'
|
|
13419
13323
|
*/
|
|
13420
13324
|
behavior: {
|
|
13421
13325
|
type: String,
|
|
@@ -13489,8 +13393,19 @@ class AuroCombobox extends AuroElement {
|
|
|
13489
13393
|
reflect: true
|
|
13490
13394
|
},
|
|
13491
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
|
+
|
|
13492
13406
|
/**
|
|
13493
13407
|
* If declared, the popover and trigger will be set to the same width.
|
|
13408
|
+
* @private
|
|
13494
13409
|
*/
|
|
13495
13410
|
matchWidth: {
|
|
13496
13411
|
type: Boolean,
|
|
@@ -13508,7 +13423,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13508
13423
|
/**
|
|
13509
13424
|
* If declared, the bib will NOT flip to an alternate position
|
|
13510
13425
|
* when there isn't enough space in the specified `placement`.
|
|
13511
|
-
* @default false
|
|
13512
13426
|
*/
|
|
13513
13427
|
noFlip: {
|
|
13514
13428
|
type: Boolean,
|
|
@@ -13517,7 +13431,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13517
13431
|
|
|
13518
13432
|
/**
|
|
13519
13433
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
13520
|
-
* @default false
|
|
13521
13434
|
*/
|
|
13522
13435
|
shift: {
|
|
13523
13436
|
type: Boolean,
|
|
@@ -13542,7 +13455,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13542
13455
|
},
|
|
13543
13456
|
|
|
13544
13457
|
/**
|
|
13545
|
-
* DEPRECATED - use `appearance` instead.
|
|
13458
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
13546
13459
|
*/
|
|
13547
13460
|
onDark: {
|
|
13548
13461
|
type: Boolean,
|
|
@@ -13561,28 +13474,21 @@ class AuroCombobox extends AuroElement {
|
|
|
13561
13474
|
* If declared, selecting a menu option will not change the input value. By doing so,
|
|
13562
13475
|
* the current menu filter will be preserved and the user can continue from their last
|
|
13563
13476
|
* filter state. It is recommended to use this in combination with the `displayValue` slot.
|
|
13564
|
-
* @type {Boolean}
|
|
13565
13477
|
*/
|
|
13566
13478
|
persistInput: {
|
|
13567
13479
|
type: Boolean,
|
|
13568
13480
|
reflect: true
|
|
13569
13481
|
},
|
|
13570
13482
|
|
|
13571
|
-
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
13572
13483
|
/**
|
|
13573
13484
|
* Position where the bib should appear relative to the trigger.
|
|
13574
|
-
*
|
|
13575
|
-
*
|
|
13576
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
13577
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
13578
|
-
* "left-start" | "left-end"
|
|
13579
|
-
* @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'
|
|
13580
13487
|
*/
|
|
13581
13488
|
placement: {
|
|
13582
13489
|
type: String,
|
|
13583
13490
|
reflect: true
|
|
13584
13491
|
},
|
|
13585
|
-
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13586
13492
|
|
|
13587
13493
|
/**
|
|
13588
13494
|
* Define custom placeholder text, only supported by date input formats.
|
|
@@ -13630,8 +13536,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13630
13536
|
|
|
13631
13537
|
/**
|
|
13632
13538
|
* Indicates whether the combobox is in a dirty state (has been interacted with).
|
|
13633
|
-
* @type {boolean}
|
|
13634
|
-
* @default false
|
|
13635
13539
|
* @private
|
|
13636
13540
|
*/
|
|
13637
13541
|
touched: {
|
|
@@ -13649,7 +13553,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13649
13553
|
},
|
|
13650
13554
|
|
|
13651
13555
|
/**
|
|
13652
|
-
* Applies the defined value as the type attribute on auro-input
|
|
13556
|
+
* Applies the defined value as the type attribute on `auro-input`.
|
|
13653
13557
|
*/
|
|
13654
13558
|
type: {
|
|
13655
13559
|
type: String,
|
|
@@ -13691,12 +13595,12 @@ class AuroCombobox extends AuroElement {
|
|
|
13691
13595
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13692
13596
|
|
|
13693
13597
|
/**
|
|
13694
|
-
* Defines the screen size
|
|
13695
|
-
* 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.
|
|
13696
13599
|
*
|
|
13697
13600
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
13698
13601
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
13699
|
-
* @
|
|
13602
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
13603
|
+
* @default 'sm'
|
|
13700
13604
|
*/
|
|
13701
13605
|
fullscreenBreakpoint: {
|
|
13702
13606
|
type: String,
|
|
@@ -13757,7 +13661,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13757
13661
|
|
|
13758
13662
|
/**
|
|
13759
13663
|
* This will register this element with the browser.
|
|
13760
|
-
* @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.
|
|
13761
13665
|
*
|
|
13762
13666
|
* @example
|
|
13763
13667
|
* AuroCombobox.register('custom-combobox') // this will register this element to <custom-combobox/>
|
|
@@ -13833,17 +13737,19 @@ class AuroCombobox extends AuroElement {
|
|
|
13833
13737
|
if (this.menu) {
|
|
13834
13738
|
this.menu.matchWord = this.input.value;
|
|
13835
13739
|
}
|
|
13836
|
-
this.
|
|
13740
|
+
const label = this.menu.currentLabel;
|
|
13741
|
+
this.updateTriggerTextDisplay(label || this.value);
|
|
13837
13742
|
}
|
|
13838
13743
|
|
|
13839
13744
|
/**
|
|
13840
13745
|
* Update displayValue or input.value, it's called when making a selection.
|
|
13746
|
+
* @param {string} label - The label of the selected option.
|
|
13841
13747
|
* @private
|
|
13842
13748
|
*/
|
|
13843
|
-
updateTriggerTextDisplay() {
|
|
13749
|
+
updateTriggerTextDisplay(label) {
|
|
13844
13750
|
// update the input content if persistInput is false
|
|
13845
13751
|
if (!this.persistInput) {
|
|
13846
|
-
this.input.value = this.value;
|
|
13752
|
+
this.input.value = label || this.value;
|
|
13847
13753
|
}
|
|
13848
13754
|
|
|
13849
13755
|
// update the displayValue in the trigger if displayValue slot content is present
|
|
@@ -14069,7 +13975,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14069
13975
|
this.value = event.detail.stringValue;
|
|
14070
13976
|
|
|
14071
13977
|
// Update display
|
|
14072
|
-
this.updateTriggerTextDisplay();
|
|
13978
|
+
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
14073
13979
|
|
|
14074
13980
|
// Update match word for filtering
|
|
14075
13981
|
if (this.menu.matchWord !== this.input.value) {
|
|
@@ -14361,7 +14267,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14361
14267
|
this.validation.validate(this, force);
|
|
14362
14268
|
}
|
|
14363
14269
|
|
|
14364
|
-
updated(changedProperties) {
|
|
14270
|
+
async updated(changedProperties) {
|
|
14365
14271
|
// After the component is ready, send direct value changes to auro-menu.
|
|
14366
14272
|
if (changedProperties.has('value')) {
|
|
14367
14273
|
if (this.value && this.value.length > 0) {
|
|
@@ -14419,8 +14325,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14419
14325
|
}
|
|
14420
14326
|
|
|
14421
14327
|
if (changedProperties.has('error')) {
|
|
14422
|
-
this.input.setAttribute('error', this.getAttribute('error'));
|
|
14423
|
-
this.validate();
|
|
14328
|
+
await this.input.setAttribute('error', this.getAttribute('error'));
|
|
14329
|
+
this.validate(true);
|
|
14424
14330
|
}
|
|
14425
14331
|
|
|
14426
14332
|
if (changedProperties.has('shape') && this.menu) {
|
|
@@ -14634,102 +14540,6 @@ class AuroCombobox extends AuroElement {
|
|
|
14634
14540
|
}
|
|
14635
14541
|
}
|
|
14636
14542
|
|
|
14637
|
-
/**
|
|
14638
|
-
* Demonstrates how to make external selection in the combobox.
|
|
14639
|
-
*/
|
|
14640
|
-
function setupExternalSelectionExample() {
|
|
14641
|
-
|
|
14642
|
-
/** @type {AuroCombobox} */
|
|
14643
|
-
const combobox = document.getElementById('externalSelectionExample');
|
|
14644
|
-
|
|
14645
|
-
combobox.addEventListener('input', () => {
|
|
14646
|
-
// Perform whatever matching logic you need here
|
|
14647
|
-
|
|
14648
|
-
// This comes from your custom code, for example matching SEA to SeaTac IATA code.
|
|
14649
|
-
// This matches "peaches" as configured.
|
|
14650
|
-
const matchingMenuOption = 2;
|
|
14651
|
-
combobox.updateActiveOption(matchingMenuOption);
|
|
14652
|
-
});
|
|
14653
|
-
}
|
|
14654
|
-
|
|
14655
|
-
function valueExample() {
|
|
14656
|
-
const valueExample = document.querySelector('#valueExample');
|
|
14657
|
-
|
|
14658
|
-
document.querySelector('#valueValidExampleBtn').addEventListener('click', () => {
|
|
14659
|
-
valueExample.value = 'Oranges';
|
|
14660
|
-
});
|
|
14661
|
-
|
|
14662
|
-
document.querySelector('#valueInvalidExampleBtn').addEventListener('click', () => {
|
|
14663
|
-
valueExample.value = 'Dragon Fruit';
|
|
14664
|
-
});
|
|
14665
|
-
|
|
14666
|
-
document.querySelector('#valueUndefinedExampleBtn').addEventListener('click', () => {
|
|
14667
|
-
valueExample.value = undefined;
|
|
14668
|
-
});
|
|
14669
|
-
}
|
|
14670
|
-
|
|
14671
|
-
function focusExample() {
|
|
14672
|
-
const focusExample = document.querySelector('#focusExample');
|
|
14673
|
-
const focusExampleBtnElem = document.querySelector('#focusExampleBtn');
|
|
14674
|
-
|
|
14675
|
-
focusExampleBtnElem.addEventListener('click', () => {
|
|
14676
|
-
focusExample.focus();
|
|
14677
|
-
});
|
|
14678
|
-
}
|
|
14679
|
-
|
|
14680
|
-
function inDialogExample() {
|
|
14681
|
-
document.querySelector("#combobox-dialog-opener").addEventListener("click", () => {
|
|
14682
|
-
const dialog = document.querySelector("#combobox-dialog");
|
|
14683
|
-
dialog.open = true;
|
|
14684
|
-
});
|
|
14685
|
-
}
|
|
14686
|
-
|
|
14687
|
-
function resetStateExample() {
|
|
14688
|
-
const elem = document.querySelector('#resetStateExample');
|
|
14689
|
-
|
|
14690
|
-
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
14691
|
-
elem.reset();
|
|
14692
|
-
});
|
|
14693
|
-
}
|
|
14694
|
-
|
|
14695
|
-
function auroMenuLoadingExample() {
|
|
14696
|
-
const combobox = document.querySelector("#loadingExample");
|
|
14697
|
-
const menu = document.querySelector("#loadingExampleComboboxMenu");
|
|
14698
|
-
|
|
14699
|
-
const emptyMenu = () => {
|
|
14700
|
-
const menuoptions = menu.querySelectorAll('auro-menuoption');
|
|
14701
|
-
menuoptions.forEach(mo => menu.removeChild(mo));
|
|
14702
|
-
};
|
|
14703
|
-
|
|
14704
|
-
const fillMenu = () => {
|
|
14705
|
-
menu.innerHTML += `
|
|
14706
|
-
<auro-menuoption value="Apples" id="option-0">Apples</auro-menuoption>
|
|
14707
|
-
<auro-menuoption value="Oranges" id="option-1">Oranges</auro-menuoption>
|
|
14708
|
-
<auro-menuoption value="Peaches" id="option-2">Peaches</auro-menuoption>
|
|
14709
|
-
<auro-menuoption value="Grapes" id="option-3">Grapes</auro-menuoption>
|
|
14710
|
-
<auro-menuoption value="Cherries" id="option-4">Cherries</auro-menuoption>
|
|
14711
|
-
<auro-menuoption static nomatch>No matching option</auro-menuoption>
|
|
14712
|
-
`;
|
|
14713
|
-
};
|
|
14714
|
-
|
|
14715
|
-
const load = () => {
|
|
14716
|
-
clearTimeout(load.id);
|
|
14717
|
-
emptyMenu();
|
|
14718
|
-
menu.setAttribute('loading', 'loading');
|
|
14719
|
-
load.id = setTimeout(() => {
|
|
14720
|
-
menu.removeAttribute('loading');
|
|
14721
|
-
fillMenu();
|
|
14722
|
-
}, 1000);
|
|
14723
|
-
|
|
14724
|
-
};
|
|
14725
|
-
|
|
14726
|
-
combobox.addEventListener("inputValue", (e) => {
|
|
14727
|
-
if (e.target.inputValue && e.target.value !== e.target.inputValue) {
|
|
14728
|
-
load();
|
|
14729
|
-
}
|
|
14730
|
-
});
|
|
14731
|
-
}
|
|
14732
|
-
|
|
14733
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)}`;
|
|
14734
14544
|
|
|
14735
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)}`;
|
|
@@ -14773,7 +14583,7 @@ var styleCss = i$6`.body-default{font-family:var(--wcss-body-family, "AS Circula
|
|
|
14773
14583
|
|
|
14774
14584
|
var colorCss = i$6`:host .wrapper{background-color:var(--ds-auro-menuoption-container-color, transparent);box-shadow:inset 0 0 0 1px var(--ds-auro-menuoption-container-border-color, transparent);color:var(--ds-auro-menuoption-text-color)}:host svg{fill:var(--ds-auro-menuoption-icon-color)}:host([disabled]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:hover),:host(.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host(:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-menuoption-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([selected]:hover),:host([selected].active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd)}:host([selected]:focus){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-subtle, #b4eff9);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host(:focus:hover),:host(:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([selected]:focus:hover),:host([selected]:focus.active){--ds-auro-menuoption-container-color: var(--ds-basic-color-surface-accent1-muted, #ebfafd);--ds-auro-menuoption-container-border-color: var(--ds-basic-color-border-brand, #00274a)}`;
|
|
14775
14585
|
|
|
14776
|
-
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
14586
|
+
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends i$3{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=i$6`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
14777
14587
|
`;class z extends m{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w}async fetchIcon(t,a){let e="";e="logos"===t?await f(`${this.uri}/${t}/${a}.svg`):await f(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}}i$6`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
14778
14588
|
`;var y=i$6`:host{--ds-auro-icon-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-alaska-color: #02426D;--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}
|
|
14779
14589
|
`;var k=i$6`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -14830,12 +14640,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
14830
14640
|
|
|
14831
14641
|
|
|
14832
14642
|
/**
|
|
14833
|
-
* The auro-
|
|
14643
|
+
* The `auro-menuoption` element provides users a way to define a menu option.
|
|
14644
|
+
* @customElement auro-menuoption
|
|
14834
14645
|
*
|
|
14835
|
-
* @attr {String} value - Specifies the value to be sent to a server.
|
|
14836
|
-
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
14837
|
-
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
14838
|
-
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
14839
14646
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
14840
14647
|
* @slot - Specifies text for an option, but is not the value.
|
|
14841
14648
|
*/
|
|
@@ -14843,7 +14650,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
14843
14650
|
|
|
14844
14651
|
/**
|
|
14845
14652
|
* This will register this element with the browser.
|
|
14846
|
-
* @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.
|
|
14847
14654
|
*
|
|
14848
14655
|
* @example
|
|
14849
14656
|
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
@@ -14886,7 +14693,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
14886
14693
|
this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, x);
|
|
14887
14694
|
|
|
14888
14695
|
this.selected = false;
|
|
14889
|
-
this.
|
|
14696
|
+
this.noCheckmark = false;
|
|
14890
14697
|
this.disabled = false;
|
|
14891
14698
|
|
|
14892
14699
|
/**
|
|
@@ -14907,38 +14714,81 @@ class AuroMenuOption extends AuroElement {
|
|
|
14907
14714
|
static get properties() {
|
|
14908
14715
|
return {
|
|
14909
14716
|
...super.properties,
|
|
14717
|
+
|
|
14718
|
+
/**
|
|
14719
|
+
* When true, disables the menu option.
|
|
14720
|
+
*/
|
|
14910
14721
|
disabled: {
|
|
14911
14722
|
type: Boolean,
|
|
14912
14723
|
reflect: true
|
|
14913
14724
|
},
|
|
14725
|
+
|
|
14726
|
+
/**
|
|
14727
|
+
* @private
|
|
14728
|
+
*/
|
|
14914
14729
|
event: {
|
|
14915
14730
|
type: String,
|
|
14916
14731
|
reflect: true
|
|
14917
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
|
+
*/
|
|
14918
14744
|
key: {
|
|
14919
14745
|
type: String,
|
|
14920
14746
|
reflect: true
|
|
14921
14747
|
},
|
|
14748
|
+
|
|
14749
|
+
/**
|
|
14750
|
+
* @private
|
|
14751
|
+
*/
|
|
14922
14752
|
menuService: {
|
|
14923
14753
|
type: Object,
|
|
14924
14754
|
state: true
|
|
14925
14755
|
},
|
|
14756
|
+
|
|
14757
|
+
/**
|
|
14758
|
+
* @private
|
|
14759
|
+
*/
|
|
14926
14760
|
matchWord: {
|
|
14927
14761
|
type: String,
|
|
14928
14762
|
state: true
|
|
14929
14763
|
},
|
|
14930
|
-
|
|
14764
|
+
|
|
14765
|
+
/**
|
|
14766
|
+
* @private
|
|
14767
|
+
*/
|
|
14768
|
+
noCheckmark: {
|
|
14931
14769
|
type: Boolean,
|
|
14932
14770
|
reflect: true
|
|
14933
14771
|
},
|
|
14772
|
+
|
|
14773
|
+
/**
|
|
14774
|
+
* Specifies that an option is selected.
|
|
14775
|
+
*/
|
|
14934
14776
|
selected: {
|
|
14935
14777
|
type: Boolean,
|
|
14936
14778
|
reflect: true
|
|
14937
14779
|
},
|
|
14780
|
+
|
|
14781
|
+
/**
|
|
14782
|
+
* Specifies the tab index of the menu option.
|
|
14783
|
+
*/
|
|
14938
14784
|
tabIndex: {
|
|
14939
14785
|
type: Number,
|
|
14940
14786
|
reflect: true
|
|
14941
14787
|
},
|
|
14788
|
+
|
|
14789
|
+
/**
|
|
14790
|
+
* Specifies the value to be sent to a server.
|
|
14791
|
+
*/
|
|
14942
14792
|
value: {
|
|
14943
14793
|
type: String,
|
|
14944
14794
|
reflect: true
|
|
@@ -15262,7 +15112,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
15262
15112
|
|
|
15263
15113
|
return u$7`
|
|
15264
15114
|
<div class="${classes}">
|
|
15265
|
-
${this.selected && !this.
|
|
15115
|
+
${this.selected && !this.noCheckmark
|
|
15266
15116
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
15267
15117
|
: undefined}
|
|
15268
15118
|
<slot></slot>
|
|
@@ -15304,6 +15154,15 @@ class MenuService {
|
|
|
15304
15154
|
return this.multiSelect ? values : values[0];
|
|
15305
15155
|
}
|
|
15306
15156
|
|
|
15157
|
+
/**
|
|
15158
|
+
* Gets the label(s) of the currently selected option(s).
|
|
15159
|
+
* @returns {string}
|
|
15160
|
+
*/
|
|
15161
|
+
get currentLabel() {
|
|
15162
|
+
const labels = (this.selectedOptions || []).map(option => option.textContent);
|
|
15163
|
+
return this.multiSelect ? labels.join(", ") : labels[0] || '';
|
|
15164
|
+
}
|
|
15165
|
+
|
|
15307
15166
|
/**
|
|
15308
15167
|
* Gets the string representation of the current value(s).
|
|
15309
15168
|
* For multi-select, this is a JSON stringified array.
|
|
@@ -15735,7 +15594,8 @@ class MenuService {
|
|
|
15735
15594
|
value: this.currentValue,
|
|
15736
15595
|
stringValue: this.stringValue,
|
|
15737
15596
|
keys: this.currentKeys,
|
|
15738
|
-
options: this.selectedOptions
|
|
15597
|
+
options: this.selectedOptions,
|
|
15598
|
+
label: this.currentLabel
|
|
15739
15599
|
};
|
|
15740
15600
|
|
|
15741
15601
|
// If only one option is selected, include its index
|
|
@@ -15879,19 +15739,9 @@ const MenuContext = n('menu-context');
|
|
|
15879
15739
|
|
|
15880
15740
|
|
|
15881
15741
|
/**
|
|
15882
|
-
* The auro-menu element provides users a way to select from a list of options.
|
|
15883
|
-
* @
|
|
15884
|
-
*
|
|
15885
|
-
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
15886
|
-
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
15887
|
-
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
15888
|
-
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
15889
|
-
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
15890
|
-
* @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
15891
|
-
* @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
15892
|
-
* @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
|
|
15893
|
-
* @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
|
|
15894
|
-
* @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
|
+
*
|
|
15895
15745
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
15896
15746
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
15897
15747
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
@@ -15982,58 +15832,87 @@ class AuroMenu extends AuroElement {
|
|
|
15982
15832
|
type: Boolean,
|
|
15983
15833
|
reflect: true,
|
|
15984
15834
|
},
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
},
|
|
15835
|
+
|
|
15836
|
+
/**
|
|
15837
|
+
* When true, the entire menu and all options are disabled.
|
|
15838
|
+
*/
|
|
15990
15839
|
disabled: {
|
|
15991
15840
|
type: Boolean,
|
|
15992
15841
|
reflect: true
|
|
15993
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
|
+
*/
|
|
15994
15871
|
loading: {
|
|
15995
15872
|
type: Boolean,
|
|
15996
15873
|
reflect: true
|
|
15997
15874
|
},
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
optionActive: {
|
|
16003
|
-
type: Object,
|
|
16004
|
-
attribute: 'optionactive'
|
|
16005
|
-
},
|
|
15875
|
+
|
|
15876
|
+
/**
|
|
15877
|
+
* Specifies a string used to highlight matched string parts in options.
|
|
15878
|
+
*/
|
|
16006
15879
|
matchWord: {
|
|
16007
15880
|
type: String,
|
|
16008
15881
|
attribute: 'matchword'
|
|
16009
15882
|
},
|
|
15883
|
+
|
|
15884
|
+
/**
|
|
15885
|
+
* When true, the selected option can be multiple options.
|
|
15886
|
+
*/
|
|
16010
15887
|
multiSelect: {
|
|
16011
15888
|
type: Boolean,
|
|
16012
15889
|
reflect: true,
|
|
16013
15890
|
attribute: 'multiselect'
|
|
16014
15891
|
},
|
|
16015
|
-
|
|
15892
|
+
|
|
15893
|
+
/**
|
|
15894
|
+
* When true, selected option will not show the checkmark.
|
|
15895
|
+
*/
|
|
15896
|
+
noCheckmark: {
|
|
16016
15897
|
type: Boolean,
|
|
16017
15898
|
reflect: true,
|
|
15899
|
+
attribute: 'nocheckmark'
|
|
16018
15900
|
},
|
|
16019
15901
|
|
|
16020
15902
|
/**
|
|
16021
|
-
*
|
|
15903
|
+
* Specifies the current active menuOption.
|
|
16022
15904
|
*/
|
|
16023
|
-
|
|
16024
|
-
type:
|
|
16025
|
-
|
|
16026
|
-
attribute: 'value'
|
|
15905
|
+
optionActive: {
|
|
15906
|
+
type: Object,
|
|
15907
|
+
attribute: 'optionactive'
|
|
16027
15908
|
},
|
|
16028
15909
|
|
|
16029
15910
|
/**
|
|
16030
|
-
*
|
|
16031
|
-
* @private
|
|
15911
|
+
* An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
|
|
16032
15912
|
*/
|
|
16033
|
-
|
|
16034
|
-
|
|
16035
|
-
|
|
16036
|
-
attribute: false
|
|
15913
|
+
optionSelected: {
|
|
15914
|
+
// Allow HTMLElement, HTMLElement[] arrays and undefined
|
|
15915
|
+
type: Object
|
|
16037
15916
|
},
|
|
16038
15917
|
|
|
16039
15918
|
/**
|
|
@@ -16044,6 +15923,43 @@ class AuroMenu extends AuroElement {
|
|
|
16044
15923
|
type: Array,
|
|
16045
15924
|
reflect: false,
|
|
16046
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'
|
|
16047
15963
|
}
|
|
16048
15964
|
};
|
|
16049
15965
|
}
|
|
@@ -16056,6 +15972,14 @@ class AuroMenu extends AuroElement {
|
|
|
16056
15972
|
];
|
|
16057
15973
|
}
|
|
16058
15974
|
|
|
15975
|
+
/**
|
|
15976
|
+
* @readonly
|
|
15977
|
+
* @returns {string} - Returns the label of the currently selected option(s).
|
|
15978
|
+
*/
|
|
15979
|
+
get currentLabel() {
|
|
15980
|
+
return this.menuService.currentLabel;
|
|
15981
|
+
};
|
|
15982
|
+
|
|
16059
15983
|
/**
|
|
16060
15984
|
* @readonly
|
|
16061
15985
|
* @returns {Array<HTMLElement>} - Returns the array of available menu options.
|
|
@@ -16081,7 +16005,7 @@ class AuroMenu extends AuroElement {
|
|
|
16081
16005
|
|
|
16082
16006
|
/**
|
|
16083
16007
|
* This will register this element with the browser.
|
|
16084
|
-
* @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.
|
|
16085
16009
|
*
|
|
16086
16010
|
* @example
|
|
16087
16011
|
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
@@ -16501,13 +16425,13 @@ function initExamples(initCount) {
|
|
|
16501
16425
|
|
|
16502
16426
|
try {
|
|
16503
16427
|
// javascript example function calls to be added here upon creation to test examples
|
|
16504
|
-
dynamicMenuExample();
|
|
16505
|
-
valueExample();
|
|
16506
16428
|
focusExample();
|
|
16507
|
-
inDialogExample();
|
|
16508
16429
|
resetStateExample();
|
|
16509
|
-
|
|
16510
|
-
|
|
16430
|
+
// setupExternalSelectionExample();
|
|
16431
|
+
valueExample();
|
|
16432
|
+
inDialogExample();
|
|
16433
|
+
persistentExample();
|
|
16434
|
+
swapValueExample();
|
|
16511
16435
|
} catch (err) {
|
|
16512
16436
|
if (initCount <= 20) {
|
|
16513
16437
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|