@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,26 +1,3 @@
|
|
|
1
|
-
function persistentExample() {
|
|
2
|
-
const persistentExample = document.querySelector('#persistent');
|
|
3
|
-
|
|
4
|
-
persistentExample.addEventListener('addNewAddress', () => {
|
|
5
|
-
console.warn('addNewAddress event fired');
|
|
6
|
-
alert(`addNewAddress event fired`);
|
|
7
|
-
});
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
function swapValueExample() {
|
|
11
|
-
const btn = document.querySelector('#swapExampleBtn');
|
|
12
|
-
const comboboxOne = document.querySelector('#swapExampleLeft');
|
|
13
|
-
const comboboxTwo = document.querySelector('#swapExampleRight');
|
|
14
|
-
|
|
15
|
-
btn.addEventListener('click', () => {
|
|
16
|
-
const valueOne = comboboxOne.value;
|
|
17
|
-
const valueTwo = comboboxTwo.value;
|
|
18
|
-
|
|
19
|
-
comboboxOne.value = valueTwo;
|
|
20
|
-
comboboxTwo.value = valueOne;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
|
|
24
1
|
/**
|
|
25
2
|
* @license
|
|
26
3
|
* Copyright 2019 Google LLC
|
|
@@ -1212,9 +1189,8 @@ function getOppositeAxis(axis) {
|
|
|
1212
1189
|
function getAxisLength(axis) {
|
|
1213
1190
|
return axis === 'y' ? 'height' : 'width';
|
|
1214
1191
|
}
|
|
1215
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
1216
1192
|
function getSideAxis(placement) {
|
|
1217
|
-
return
|
|
1193
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
1218
1194
|
}
|
|
1219
1195
|
function getAlignmentAxis(placement) {
|
|
1220
1196
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -1239,19 +1215,19 @@ function getExpandedPlacements(placement) {
|
|
|
1239
1215
|
function getOppositeAlignmentPlacement(placement) {
|
|
1240
1216
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
1241
1217
|
}
|
|
1242
|
-
const lrPlacement = ['left', 'right'];
|
|
1243
|
-
const rlPlacement = ['right', 'left'];
|
|
1244
|
-
const tbPlacement = ['top', 'bottom'];
|
|
1245
|
-
const btPlacement = ['bottom', 'top'];
|
|
1246
1218
|
function getSideList(side, isStart, rtl) {
|
|
1219
|
+
const lr = ['left', 'right'];
|
|
1220
|
+
const rl = ['right', 'left'];
|
|
1221
|
+
const tb = ['top', 'bottom'];
|
|
1222
|
+
const bt = ['bottom', 'top'];
|
|
1247
1223
|
switch (side) {
|
|
1248
1224
|
case 'top':
|
|
1249
1225
|
case 'bottom':
|
|
1250
|
-
if (rtl) return isStart ?
|
|
1251
|
-
return isStart ?
|
|
1226
|
+
if (rtl) return isStart ? rl : lr;
|
|
1227
|
+
return isStart ? lr : rl;
|
|
1252
1228
|
case 'left':
|
|
1253
1229
|
case 'right':
|
|
1254
|
-
return isStart ?
|
|
1230
|
+
return isStart ? tb : bt;
|
|
1255
1231
|
default:
|
|
1256
1232
|
return [];
|
|
1257
1233
|
}
|
|
@@ -1692,22 +1668,16 @@ const flip$1 = function (options) {
|
|
|
1692
1668
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1693
1669
|
const nextPlacement = placements[nextIndex];
|
|
1694
1670
|
if (nextPlacement) {
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
},
|
|
1706
|
-
reset: {
|
|
1707
|
-
placement: nextPlacement
|
|
1708
|
-
}
|
|
1709
|
-
};
|
|
1710
|
-
}
|
|
1671
|
+
// Try next placement and re-run the lifecycle.
|
|
1672
|
+
return {
|
|
1673
|
+
data: {
|
|
1674
|
+
index: nextIndex,
|
|
1675
|
+
overflows: overflowsData
|
|
1676
|
+
},
|
|
1677
|
+
reset: {
|
|
1678
|
+
placement: nextPlacement
|
|
1679
|
+
}
|
|
1680
|
+
};
|
|
1711
1681
|
}
|
|
1712
1682
|
|
|
1713
1683
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -1753,8 +1723,6 @@ const flip$1 = function (options) {
|
|
|
1753
1723
|
};
|
|
1754
1724
|
};
|
|
1755
1725
|
|
|
1756
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
1757
|
-
|
|
1758
1726
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
1759
1727
|
// Derivable.
|
|
1760
1728
|
|
|
@@ -1768,7 +1736,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1768
1736
|
const side = getSide(placement);
|
|
1769
1737
|
const alignment = getAlignment(placement);
|
|
1770
1738
|
const isVertical = getSideAxis(placement) === 'y';
|
|
1771
|
-
const mainAxisMulti =
|
|
1739
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
1772
1740
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1773
1741
|
const rawValue = evaluate(options, state);
|
|
1774
1742
|
|
|
@@ -1961,7 +1929,6 @@ function isShadowRoot(value) {
|
|
|
1961
1929
|
}
|
|
1962
1930
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
1963
1931
|
}
|
|
1964
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
1965
1932
|
function isOverflowElement(element) {
|
|
1966
1933
|
const {
|
|
1967
1934
|
overflow,
|
|
@@ -1969,32 +1936,27 @@ function isOverflowElement(element) {
|
|
|
1969
1936
|
overflowY,
|
|
1970
1937
|
display
|
|
1971
1938
|
} = getComputedStyle$1(element);
|
|
1972
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
1939
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
1973
1940
|
}
|
|
1974
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
1975
1941
|
function isTableElement(element) {
|
|
1976
|
-
return
|
|
1942
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
1977
1943
|
}
|
|
1978
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
1979
1944
|
function isTopLayer(element) {
|
|
1980
|
-
return
|
|
1945
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
1981
1946
|
try {
|
|
1982
1947
|
return element.matches(selector);
|
|
1983
|
-
} catch (
|
|
1948
|
+
} catch (e) {
|
|
1984
1949
|
return false;
|
|
1985
1950
|
}
|
|
1986
1951
|
});
|
|
1987
1952
|
}
|
|
1988
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
1989
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
1990
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
1991
1953
|
function isContainingBlock(elementOrCss) {
|
|
1992
1954
|
const webkit = isWebKit();
|
|
1993
1955
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
1994
1956
|
|
|
1995
1957
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
1996
1958
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
1997
|
-
return
|
|
1959
|
+
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));
|
|
1998
1960
|
}
|
|
1999
1961
|
function getContainingBlock(element) {
|
|
2000
1962
|
let currentNode = getParentNode(element);
|
|
@@ -2012,9 +1974,8 @@ function isWebKit() {
|
|
|
2012
1974
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
2013
1975
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
2014
1976
|
}
|
|
2015
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
2016
1977
|
function isLastTraversableNode(node) {
|
|
2017
|
-
return
|
|
1978
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
2018
1979
|
}
|
|
2019
1980
|
function getComputedStyle$1(element) {
|
|
2020
1981
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -2319,7 +2280,6 @@ function getViewportRect(element, strategy) {
|
|
|
2319
2280
|
};
|
|
2320
2281
|
}
|
|
2321
2282
|
|
|
2322
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
2323
2283
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
2324
2284
|
function getInnerBoundingClientRect(element, strategy) {
|
|
2325
2285
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -2384,7 +2344,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
2384
2344
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
2385
2345
|
currentContainingBlockComputedStyle = null;
|
|
2386
2346
|
}
|
|
2387
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
2347
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
2388
2348
|
if (shouldDropCurrentNode) {
|
|
2389
2349
|
// Drop non-containing blocks.
|
|
2390
2350
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -2447,12 +2407,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2447
2407
|
scrollTop: 0
|
|
2448
2408
|
};
|
|
2449
2409
|
const offsets = createCoords(0);
|
|
2450
|
-
|
|
2451
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2452
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2453
|
-
function setLeftRTLScrollbarOffset() {
|
|
2454
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
2455
|
-
}
|
|
2456
2410
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
2457
2411
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
2458
2412
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -2462,12 +2416,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2462
2416
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2463
2417
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2464
2418
|
} else if (documentElement) {
|
|
2465
|
-
|
|
2419
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2420
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2421
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
2466
2422
|
}
|
|
2467
2423
|
}
|
|
2468
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
2469
|
-
setLeftRTLScrollbarOffset();
|
|
2470
|
-
}
|
|
2471
2424
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2472
2425
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2473
2426
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -2644,7 +2597,7 @@ function observeMove(element, onMove) {
|
|
|
2644
2597
|
// Handle <iframe>s
|
|
2645
2598
|
root: root.ownerDocument
|
|
2646
2599
|
});
|
|
2647
|
-
} catch (
|
|
2600
|
+
} catch (e) {
|
|
2648
2601
|
io = new IntersectionObserver(handleObserve, options);
|
|
2649
2602
|
}
|
|
2650
2603
|
io.observe(element);
|
|
@@ -3734,7 +3687,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
3734
3687
|
}
|
|
3735
3688
|
};
|
|
3736
3689
|
|
|
3737
|
-
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;
|
|
3690
|
+
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}
|
|
3738
3691
|
`;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}
|
|
3739
3692
|
`;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)}
|
|
3740
3693
|
`;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)}
|
|
@@ -3758,7 +3711,7 @@ let p$4 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
3758
3711
|
</div>
|
|
3759
3712
|
`}};
|
|
3760
3713
|
|
|
3761
|
-
var iconVersion$3 = '9.1.
|
|
3714
|
+
var iconVersion$3 = '9.1.1';
|
|
3762
3715
|
|
|
3763
3716
|
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}`;
|
|
3764
3717
|
|
|
@@ -4199,7 +4152,7 @@ let AuroHelpText$2 = class AuroHelpText extends i$3 {
|
|
|
4199
4152
|
}
|
|
4200
4153
|
};
|
|
4201
4154
|
|
|
4202
|
-
var formkitVersion$2 = '
|
|
4155
|
+
var formkitVersion$2 = '202601271813';
|
|
4203
4156
|
|
|
4204
4157
|
let AuroElement$2 = class AuroElement extends i$3 {
|
|
4205
4158
|
static get properties() {
|
|
@@ -4305,12 +4258,14 @@ let AuroElement$2 = class AuroElement extends i$3 {
|
|
|
4305
4258
|
}
|
|
4306
4259
|
};
|
|
4307
4260
|
|
|
4308
|
-
// Copyright (c)
|
|
4261
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4309
4262
|
// See LICENSE in the project root for license information.
|
|
4310
4263
|
|
|
4311
4264
|
|
|
4312
|
-
|
|
4313
|
-
|
|
4265
|
+
/**
|
|
4266
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
4267
|
+
* @customElement auro-dropdown
|
|
4268
|
+
*
|
|
4314
4269
|
* @slot - Default slot for the popover content.
|
|
4315
4270
|
* @slot helpText - Defines the content of the helpText.
|
|
4316
4271
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -4346,7 +4301,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4346
4301
|
/** @private */
|
|
4347
4302
|
this.bibElement = e$1();
|
|
4348
4303
|
|
|
4349
|
-
this.
|
|
4304
|
+
this._intializeDefaults();
|
|
4350
4305
|
}
|
|
4351
4306
|
|
|
4352
4307
|
/**
|
|
@@ -4367,7 +4322,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4367
4322
|
* @private
|
|
4368
4323
|
* @returns {void} Internal defaults.
|
|
4369
4324
|
*/
|
|
4370
|
-
|
|
4325
|
+
_intializeDefaults() {
|
|
4371
4326
|
this.appearance = 'default';
|
|
4372
4327
|
this.chevron = false;
|
|
4373
4328
|
this.disabled = false;
|
|
@@ -4488,9 +4443,18 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4488
4443
|
static get properties() {
|
|
4489
4444
|
return {
|
|
4490
4445
|
|
|
4446
|
+
/**
|
|
4447
|
+
* The value for the role attribute of the trigger element.
|
|
4448
|
+
*/
|
|
4449
|
+
a11yRole: {
|
|
4450
|
+
type: String || undefined,
|
|
4451
|
+
attribute: false,
|
|
4452
|
+
reflect: false
|
|
4453
|
+
},
|
|
4454
|
+
|
|
4491
4455
|
/**
|
|
4492
4456
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
4493
|
-
* @
|
|
4457
|
+
* @type {'default' | 'inverse'}
|
|
4494
4458
|
* @default 'default'
|
|
4495
4459
|
*/
|
|
4496
4460
|
appearance: {
|
|
@@ -4500,7 +4464,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4500
4464
|
|
|
4501
4465
|
/**
|
|
4502
4466
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
4503
|
-
* @default false
|
|
4504
4467
|
*/
|
|
4505
4468
|
autoPlacement: {
|
|
4506
4469
|
type: Boolean,
|
|
@@ -4509,7 +4472,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4509
4472
|
|
|
4510
4473
|
/**
|
|
4511
4474
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4512
|
-
* @default false
|
|
4513
4475
|
*/
|
|
4514
4476
|
disableEventShow: {
|
|
4515
4477
|
type: Boolean,
|
|
@@ -4526,11 +4488,11 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4526
4488
|
|
|
4527
4489
|
/**
|
|
4528
4490
|
* If declared, the dropdown displays a chevron on the right.
|
|
4529
|
-
* @attr {Boolean} chevron
|
|
4530
4491
|
*/
|
|
4531
4492
|
chevron: {
|
|
4532
4493
|
type: Boolean,
|
|
4533
|
-
reflect: true
|
|
4494
|
+
reflect: true,
|
|
4495
|
+
attribute: 'chevron'
|
|
4534
4496
|
},
|
|
4535
4497
|
|
|
4536
4498
|
/**
|
|
@@ -4567,7 +4529,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4567
4529
|
},
|
|
4568
4530
|
|
|
4569
4531
|
/**
|
|
4570
|
-
* If declared
|
|
4532
|
+
* If declared, will apply error UI to the dropdown.
|
|
4571
4533
|
*/
|
|
4572
4534
|
error: {
|
|
4573
4535
|
type: Boolean,
|
|
@@ -4622,18 +4584,28 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4622
4584
|
},
|
|
4623
4585
|
|
|
4624
4586
|
/**
|
|
4625
|
-
* Defines the screen size breakpoint
|
|
4626
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4587
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4627
4588
|
*
|
|
4628
4589
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4629
4590
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4630
|
-
* @
|
|
4591
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
4592
|
+
* @default 'sm'
|
|
4631
4593
|
*/
|
|
4632
4594
|
fullscreenBreakpoint: {
|
|
4633
4595
|
type: String,
|
|
4634
4596
|
reflect: true
|
|
4635
4597
|
},
|
|
4636
4598
|
|
|
4599
|
+
/**
|
|
4600
|
+
* Sets the layout of the dropdown.
|
|
4601
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
4602
|
+
* @default 'classic'
|
|
4603
|
+
*/
|
|
4604
|
+
layout: {
|
|
4605
|
+
type: String,
|
|
4606
|
+
reflect: true
|
|
4607
|
+
},
|
|
4608
|
+
|
|
4637
4609
|
/**
|
|
4638
4610
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4639
4611
|
* @private
|
|
@@ -4654,7 +4626,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4654
4626
|
/**
|
|
4655
4627
|
* If declared, the bib will NOT flip to an alternate position
|
|
4656
4628
|
* when there isn't enough space in the specified `placement`.
|
|
4657
|
-
* @default false
|
|
4658
4629
|
*/
|
|
4659
4630
|
noFlip: {
|
|
4660
4631
|
type: Boolean,
|
|
@@ -4663,7 +4634,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4663
4634
|
|
|
4664
4635
|
/**
|
|
4665
4636
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4666
|
-
* @default false
|
|
4667
4637
|
*/
|
|
4668
4638
|
shift: {
|
|
4669
4639
|
type: Boolean,
|
|
@@ -4696,7 +4666,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4696
4666
|
},
|
|
4697
4667
|
|
|
4698
4668
|
/**
|
|
4699
|
-
* DEPRECATED - use `appearance` instead.
|
|
4669
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
4700
4670
|
*/
|
|
4701
4671
|
onDark: {
|
|
4702
4672
|
type: Boolean,
|
|
@@ -4713,7 +4683,8 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4713
4683
|
|
|
4714
4684
|
/**
|
|
4715
4685
|
* Position where the bib should appear relative to the trigger.
|
|
4716
|
-
* @
|
|
4686
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
4687
|
+
* @default 'bottom-start'
|
|
4717
4688
|
*/
|
|
4718
4689
|
placement: {
|
|
4719
4690
|
type: String,
|
|
@@ -4725,15 +4696,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4725
4696
|
*/
|
|
4726
4697
|
tabIndex: {
|
|
4727
4698
|
type: Number
|
|
4728
|
-
},
|
|
4729
|
-
|
|
4730
|
-
/**
|
|
4731
|
-
* The value for the role attribute of the trigger element.
|
|
4732
|
-
*/
|
|
4733
|
-
a11yRole: {
|
|
4734
|
-
type: String || undefined,
|
|
4735
|
-
attribute: false,
|
|
4736
|
-
reflect: false
|
|
4737
4699
|
}
|
|
4738
4700
|
};
|
|
4739
4701
|
}
|
|
@@ -4760,7 +4722,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
4760
4722
|
|
|
4761
4723
|
/**
|
|
4762
4724
|
* This will register this element with the browser.
|
|
4763
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
4725
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
4764
4726
|
*
|
|
4765
4727
|
* @example
|
|
4766
4728
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -5267,7 +5229,7 @@ var emphasizedStyleCss = i$6`:host([layout*=emphasized][shape*=pill]:not([layout
|
|
|
5267
5229
|
|
|
5268
5230
|
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)}`;
|
|
5269
5231
|
|
|
5270
|
-
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}`;
|
|
5232
|
+
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}`;
|
|
5271
5233
|
|
|
5272
5234
|
const watchedItems = new Set();
|
|
5273
5235
|
|
|
@@ -10299,19 +10261,16 @@ let AuroElement$1 = class AuroElement extends i$3 {
|
|
|
10299
10261
|
|
|
10300
10262
|
|
|
10301
10263
|
/**
|
|
10302
|
-
*
|
|
10303
|
-
*
|
|
10304
|
-
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10305
|
-
* @attr id
|
|
10264
|
+
* The `auro-input` element provides users a way to enter data into a text field.
|
|
10265
|
+
* @customElement auro-input
|
|
10306
10266
|
*
|
|
10307
10267
|
* @slot ariaLabel.clear - Sets aria-label on clear button for screen reader to read
|
|
10308
10268
|
* @slot ariaLabel.password.show - Sets aria-label on password button to toggle on showing password
|
|
10309
10269
|
* @slot ariaLabel.password.hide - Sets aria-label on password button to toggle off showing password
|
|
10310
10270
|
* @slot helpText - Sets the help text displayed below the input.
|
|
10311
10271
|
* @slot label - Sets the label text for the input.
|
|
10312
|
-
* @slot
|
|
10272
|
+
* @slot optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
10313
10273
|
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
10314
|
-
*
|
|
10315
10274
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
10316
10275
|
* @csspart label - Use for customizing the style of the label element
|
|
10317
10276
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
@@ -10329,6 +10288,15 @@ class BaseInput extends AuroElement$1 {
|
|
|
10329
10288
|
constructor() {
|
|
10330
10289
|
super();
|
|
10331
10290
|
|
|
10291
|
+
this._initializeDefaults();
|
|
10292
|
+
}
|
|
10293
|
+
|
|
10294
|
+
/**
|
|
10295
|
+
* Internal Defaults.
|
|
10296
|
+
* @private
|
|
10297
|
+
* @returns {void}
|
|
10298
|
+
*/
|
|
10299
|
+
_initializeDefaults() {
|
|
10332
10300
|
this.activeLabel = false;
|
|
10333
10301
|
this.appearance = "default";
|
|
10334
10302
|
this.icon = false;
|
|
@@ -10358,15 +10326,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10358
10326
|
*/
|
|
10359
10327
|
this.size = 'lg';
|
|
10360
10328
|
|
|
10361
|
-
this.privateDefaults();
|
|
10362
|
-
}
|
|
10363
|
-
|
|
10364
|
-
/**
|
|
10365
|
-
* Internal Defaults.
|
|
10366
|
-
* @private
|
|
10367
|
-
* @returns {void}
|
|
10368
|
-
*/
|
|
10369
|
-
privateDefaults() {
|
|
10370
10329
|
this.touched = false;
|
|
10371
10330
|
this.util = new AuroInputUtilities();
|
|
10372
10331
|
this.validation = new AuroFormValidation();
|
|
@@ -10427,17 +10386,17 @@ class BaseInput extends AuroElement$1 {
|
|
|
10427
10386
|
...super.properties,
|
|
10428
10387
|
|
|
10429
10388
|
/**
|
|
10430
|
-
*
|
|
10389
|
+
* The value for the role attribute.
|
|
10431
10390
|
*/
|
|
10432
|
-
|
|
10433
|
-
type:
|
|
10391
|
+
a11yRole: {
|
|
10392
|
+
type: String,
|
|
10434
10393
|
reflect: true
|
|
10435
10394
|
},
|
|
10436
10395
|
|
|
10437
10396
|
/**
|
|
10438
|
-
* The value for the
|
|
10397
|
+
* The value for the aria-controls attribute.
|
|
10439
10398
|
*/
|
|
10440
|
-
|
|
10399
|
+
a11yControls: {
|
|
10441
10400
|
type: String,
|
|
10442
10401
|
reflect: true
|
|
10443
10402
|
},
|
|
@@ -10450,14 +10409,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10450
10409
|
reflect: true
|
|
10451
10410
|
},
|
|
10452
10411
|
|
|
10453
|
-
/**
|
|
10454
|
-
* The value for the aria-controls attribute.
|
|
10455
|
-
*/
|
|
10456
|
-
a11yControls: {
|
|
10457
|
-
type: String,
|
|
10458
|
-
reflect: true
|
|
10459
|
-
},
|
|
10460
|
-
|
|
10461
10412
|
/**
|
|
10462
10413
|
* If set, the label will remain fixed in the active position.
|
|
10463
10414
|
*/
|
|
@@ -10468,7 +10419,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10468
10419
|
|
|
10469
10420
|
/**
|
|
10470
10421
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
10471
|
-
* @
|
|
10422
|
+
* @type {'default' | 'inverse'}
|
|
10472
10423
|
* @default 'default'
|
|
10473
10424
|
*/
|
|
10474
10425
|
appearance: {
|
|
@@ -10500,6 +10451,13 @@ class BaseInput extends AuroElement$1 {
|
|
|
10500
10451
|
reflect: true
|
|
10501
10452
|
},
|
|
10502
10453
|
|
|
10454
|
+
/**
|
|
10455
|
+
* Custom help text message for email type validity.
|
|
10456
|
+
*/
|
|
10457
|
+
customValidityTypeEmail: {
|
|
10458
|
+
type: String
|
|
10459
|
+
},
|
|
10460
|
+
|
|
10503
10461
|
/**
|
|
10504
10462
|
* If set, disables the input.
|
|
10505
10463
|
*/
|
|
@@ -10508,6 +10466,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
10508
10466
|
reflect: true
|
|
10509
10467
|
},
|
|
10510
10468
|
|
|
10469
|
+
/**
|
|
10470
|
+
* If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked.
|
|
10471
|
+
*/
|
|
10472
|
+
dvInputOnly: {
|
|
10473
|
+
type: Boolean,
|
|
10474
|
+
reflect: true
|
|
10475
|
+
},
|
|
10476
|
+
|
|
10511
10477
|
/**
|
|
10512
10478
|
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
10513
10479
|
*/
|
|
@@ -10532,20 +10498,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10532
10498
|
},
|
|
10533
10499
|
|
|
10534
10500
|
/**
|
|
10535
|
-
*
|
|
10536
|
-
* Flag to indicate if the input currently has value.
|
|
10501
|
+
* Flag to indicate if the input currently has focus.
|
|
10537
10502
|
*/
|
|
10538
|
-
|
|
10503
|
+
hasFocus: {
|
|
10539
10504
|
type: Boolean,
|
|
10540
10505
|
reflect: false,
|
|
10541
10506
|
attribute: false
|
|
10542
10507
|
},
|
|
10543
10508
|
|
|
10544
10509
|
/**
|
|
10545
|
-
*
|
|
10546
|
-
* Flag to indicate if the input currently has focus.
|
|
10510
|
+
* Flag to indicate if the input currently has value.
|
|
10547
10511
|
*/
|
|
10548
|
-
|
|
10512
|
+
hasValue: {
|
|
10549
10513
|
type: Boolean,
|
|
10550
10514
|
reflect: false,
|
|
10551
10515
|
attribute: false
|
|
@@ -10559,6 +10523,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10559
10523
|
reflect: true
|
|
10560
10524
|
},
|
|
10561
10525
|
|
|
10526
|
+
/**
|
|
10527
|
+
* The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
10528
|
+
*/
|
|
10529
|
+
id: {
|
|
10530
|
+
type: String
|
|
10531
|
+
},
|
|
10532
|
+
|
|
10533
|
+
/**
|
|
10534
|
+
* The id for input node.
|
|
10535
|
+
* @private
|
|
10536
|
+
*/
|
|
10537
|
+
inputId: {
|
|
10538
|
+
type: String,
|
|
10539
|
+
reflect: false,
|
|
10540
|
+
attribute: false
|
|
10541
|
+
},
|
|
10542
|
+
|
|
10562
10543
|
/** Exposes inputmode attribute for input. */
|
|
10563
10544
|
inputmode: {
|
|
10564
10545
|
type: String,
|
|
@@ -10629,7 +10610,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
10629
10610
|
},
|
|
10630
10611
|
|
|
10631
10612
|
/**
|
|
10632
|
-
* DEPRECATED - use `appearance` instead.
|
|
10613
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
10633
10614
|
*/
|
|
10634
10615
|
onDark: {
|
|
10635
10616
|
type: Boolean,
|
|
@@ -10668,13 +10649,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
10668
10649
|
reflect: true
|
|
10669
10650
|
},
|
|
10670
10651
|
|
|
10671
|
-
/**
|
|
10672
|
-
* @ignore
|
|
10673
|
-
*/
|
|
10674
|
-
showPassword: {
|
|
10675
|
-
state: true
|
|
10676
|
-
},
|
|
10677
|
-
|
|
10678
10652
|
/**
|
|
10679
10653
|
* Sets a custom help text message to display for all validityStates.
|
|
10680
10654
|
*/
|
|
@@ -10739,18 +10713,18 @@ class BaseInput extends AuroElement$1 {
|
|
|
10739
10713
|
},
|
|
10740
10714
|
|
|
10741
10715
|
/**
|
|
10742
|
-
*
|
|
10716
|
+
* @ignore
|
|
10743
10717
|
*/
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
reflect: true
|
|
10718
|
+
showPassword: {
|
|
10719
|
+
state: true
|
|
10747
10720
|
},
|
|
10748
10721
|
|
|
10749
10722
|
/**
|
|
10750
|
-
*
|
|
10723
|
+
* Simple makes the input render without a border.
|
|
10751
10724
|
*/
|
|
10752
|
-
|
|
10753
|
-
type:
|
|
10725
|
+
simple: {
|
|
10726
|
+
type: Boolean,
|
|
10727
|
+
reflect: true
|
|
10754
10728
|
},
|
|
10755
10729
|
|
|
10756
10730
|
/**
|
|
@@ -10762,18 +10736,23 @@ class BaseInput extends AuroElement$1 {
|
|
|
10762
10736
|
},
|
|
10763
10737
|
|
|
10764
10738
|
/**
|
|
10765
|
-
*
|
|
10739
|
+
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
10740
|
+
* @private
|
|
10766
10741
|
*/
|
|
10767
|
-
|
|
10768
|
-
type:
|
|
10769
|
-
reflect: true
|
|
10742
|
+
touched: {
|
|
10743
|
+
type: Boolean,
|
|
10744
|
+
reflect: true,
|
|
10745
|
+
attribute: false
|
|
10770
10746
|
},
|
|
10771
10747
|
|
|
10772
10748
|
/**
|
|
10773
|
-
* Populates the `
|
|
10749
|
+
* Populates the `type` attribute on the input.
|
|
10750
|
+
* @type {'text' | 'password' | 'email' | 'credit-card' | 'tel' | 'number'}
|
|
10751
|
+
* @default 'text'
|
|
10774
10752
|
*/
|
|
10775
|
-
|
|
10776
|
-
type: String
|
|
10753
|
+
type: {
|
|
10754
|
+
type: String,
|
|
10755
|
+
reflect: true
|
|
10777
10756
|
},
|
|
10778
10757
|
|
|
10779
10758
|
/**
|
|
@@ -10792,25 +10771,10 @@ class BaseInput extends AuroElement$1 {
|
|
|
10792
10771
|
},
|
|
10793
10772
|
|
|
10794
10773
|
/**
|
|
10795
|
-
*
|
|
10796
|
-
* @type {boolean}
|
|
10797
|
-
* @default false
|
|
10798
|
-
* @private
|
|
10799
|
-
*/
|
|
10800
|
-
touched: {
|
|
10801
|
-
type: Boolean,
|
|
10802
|
-
reflect: true,
|
|
10803
|
-
attribute: false
|
|
10804
|
-
},
|
|
10805
|
-
|
|
10806
|
-
/**
|
|
10807
|
-
* The id for input node.
|
|
10808
|
-
* @private
|
|
10774
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
10809
10775
|
*/
|
|
10810
|
-
|
|
10811
|
-
type: String
|
|
10812
|
-
reflect: false,
|
|
10813
|
-
attribute: false
|
|
10776
|
+
value: {
|
|
10777
|
+
type: String
|
|
10814
10778
|
}
|
|
10815
10779
|
};
|
|
10816
10780
|
}
|
|
@@ -11119,7 +11083,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
11119
11083
|
}
|
|
11120
11084
|
|
|
11121
11085
|
/**
|
|
11122
|
-
* @param {Event} event - The input event
|
|
11086
|
+
* @param {Event} event - The input event.
|
|
11123
11087
|
* @private
|
|
11124
11088
|
* @returns {void}
|
|
11125
11089
|
*/
|
|
@@ -11511,7 +11475,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
11511
11475
|
}
|
|
11512
11476
|
};
|
|
11513
11477
|
|
|
11514
|
-
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;
|
|
11478
|
+
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}
|
|
11515
11479
|
`;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}
|
|
11516
11480
|
`;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)}
|
|
11517
11481
|
`;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)}
|
|
@@ -11535,7 +11499,7 @@ let p$1$1 = class p{registerComponent(t,a){customElements.get(t)||customElements
|
|
|
11535
11499
|
</div>
|
|
11536
11500
|
`}};
|
|
11537
11501
|
|
|
11538
|
-
var iconVersion$2 = '9.1.
|
|
11502
|
+
var iconVersion$2 = '9.1.1';
|
|
11539
11503
|
|
|
11540
11504
|
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}
|
|
11541
11505
|
`,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}}
|
|
@@ -11824,13 +11788,12 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
11824
11788
|
}
|
|
11825
11789
|
};
|
|
11826
11790
|
|
|
11827
|
-
var formkitVersion$1 = '
|
|
11791
|
+
var formkitVersion$1 = '202601271813';
|
|
11828
11792
|
|
|
11829
11793
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11830
11794
|
// See LICENSE in the project root for license information.
|
|
11831
11795
|
|
|
11832
11796
|
|
|
11833
|
-
// build the component class
|
|
11834
11797
|
class AuroInput extends BaseInput {
|
|
11835
11798
|
|
|
11836
11799
|
constructor() {
|
|
@@ -12002,6 +11965,10 @@ class AuroInput extends BaseInput {
|
|
|
12002
11965
|
};
|
|
12003
11966
|
}
|
|
12004
11967
|
|
|
11968
|
+
/**
|
|
11969
|
+
* Common display value wrapper classes.
|
|
11970
|
+
* @private
|
|
11971
|
+
*/
|
|
12005
11972
|
get commonDisplayValueWrapperClasses() {
|
|
12006
11973
|
return {
|
|
12007
11974
|
'displayValueWrapper': true,
|
|
@@ -12049,7 +12016,7 @@ class AuroInput extends BaseInput {
|
|
|
12049
12016
|
|
|
12050
12017
|
/**
|
|
12051
12018
|
* This will register this element with the browser.
|
|
12052
|
-
* @param {string} [name="auro-input"] - The name of element that you want to register
|
|
12019
|
+
* @param {string} [name="auro-input"] - The name of the element that you want to register.
|
|
12053
12020
|
*
|
|
12054
12021
|
* @example
|
|
12055
12022
|
* AuroInput.register("custom-input") // this will register this element to <custom-input/>
|
|
@@ -12635,7 +12602,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
12635
12602
|
|
|
12636
12603
|
var buttonVersion = '12.3.0';
|
|
12637
12604
|
|
|
12638
|
-
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;
|
|
12605
|
+
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}
|
|
12639
12606
|
`;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}
|
|
12640
12607
|
`;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)}
|
|
12641
12608
|
`;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)}
|
|
@@ -12659,7 +12626,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
12659
12626
|
</div>
|
|
12660
12627
|
`}};
|
|
12661
12628
|
|
|
12662
|
-
var iconVersion$1 = '9.1.
|
|
12629
|
+
var iconVersion$1 = '9.1.1';
|
|
12663
12630
|
|
|
12664
12631
|
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)}
|
|
12665
12632
|
`;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)}}
|
|
@@ -12814,7 +12781,7 @@ class AuroBibtemplate extends i$3 {
|
|
|
12814
12781
|
}
|
|
12815
12782
|
}
|
|
12816
12783
|
|
|
12817
|
-
var formkitVersion = '
|
|
12784
|
+
var formkitVersion = '202601271813';
|
|
12818
12785
|
|
|
12819
12786
|
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}`;
|
|
12820
12787
|
|
|
@@ -13154,12 +13121,15 @@ class AuroHelpText extends i$3 {
|
|
|
13154
13121
|
}
|
|
13155
13122
|
}
|
|
13156
13123
|
|
|
13157
|
-
// Copyright (c)
|
|
13124
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13158
13125
|
// See LICENSE in the project root for license information.
|
|
13159
13126
|
|
|
13160
13127
|
|
|
13161
13128
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
13162
13129
|
/**
|
|
13130
|
+
* 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.
|
|
13131
|
+
* @customElement auro-combobox
|
|
13132
|
+
*
|
|
13163
13133
|
* @slot - Default slot for the menu content.
|
|
13164
13134
|
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
13165
13135
|
* @slot ariaLabel.input.clear - Sets aria-label on clear button
|
|
@@ -13173,13 +13143,19 @@ class AuroHelpText extends i$3 {
|
|
|
13173
13143
|
* @event inputValue - Notifies that the components internal HTML5 input value has changed.
|
|
13174
13144
|
* @event auroFormElement-validated - Notifies that the component value(s) have been validated.
|
|
13175
13145
|
*/
|
|
13176
|
-
|
|
13177
|
-
// build the component class
|
|
13178
13146
|
class AuroCombobox extends AuroElement {
|
|
13179
13147
|
|
|
13180
13148
|
constructor() {
|
|
13181
13149
|
super();
|
|
13182
13150
|
|
|
13151
|
+
this._initializeDefaults();
|
|
13152
|
+
}
|
|
13153
|
+
|
|
13154
|
+
/**
|
|
13155
|
+
* @private
|
|
13156
|
+
* @returns {void} Internal defaults.
|
|
13157
|
+
*/
|
|
13158
|
+
_initializeDefaults() {
|
|
13183
13159
|
// Defaults that effect the combobox behavior and state
|
|
13184
13160
|
this.appearance = "default";
|
|
13185
13161
|
this.disabled = false;
|
|
@@ -13210,14 +13186,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13210
13186
|
this.shift = false;
|
|
13211
13187
|
this.autoPlacement = false;
|
|
13212
13188
|
|
|
13213
|
-
|
|
13214
|
-
}
|
|
13215
|
-
|
|
13216
|
-
/**
|
|
13217
|
-
* @private
|
|
13218
|
-
* @returns {void} Internal defaults.
|
|
13219
|
-
*/
|
|
13220
|
-
privateDefaults() {
|
|
13189
|
+
// Private properties that manage internal state
|
|
13221
13190
|
const versioning = new AuroDependencyVersioning$3();
|
|
13222
13191
|
|
|
13223
13192
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', formkitVersion, AuroDropdown);
|
|
@@ -13248,7 +13217,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13248
13217
|
|
|
13249
13218
|
/**
|
|
13250
13219
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
13251
|
-
* @property {'default'
|
|
13220
|
+
* @property {'default' | 'inverse'}
|
|
13252
13221
|
* @default 'default'
|
|
13253
13222
|
*/
|
|
13254
13223
|
appearance: {
|
|
@@ -13258,7 +13227,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13258
13227
|
|
|
13259
13228
|
/**
|
|
13260
13229
|
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
13261
|
-
* @default false
|
|
13262
13230
|
*/
|
|
13263
13231
|
autocomplete: {
|
|
13264
13232
|
type: String,
|
|
@@ -13287,7 +13255,8 @@ class AuroCombobox extends AuroElement {
|
|
|
13287
13255
|
* Sets the behavior of the combobox, "filter" or "suggestion".
|
|
13288
13256
|
* "filter" requires the user to select an option from the menu.
|
|
13289
13257
|
* "suggestion" allows the user to enter a value not present in the menu options.
|
|
13290
|
-
* @
|
|
13258
|
+
* @type {'filter' | 'suggestion'}
|
|
13259
|
+
* @default 'suggestion'
|
|
13291
13260
|
*/
|
|
13292
13261
|
behavior: {
|
|
13293
13262
|
type: String,
|
|
@@ -13361,8 +13330,19 @@ class AuroCombobox extends AuroElement {
|
|
|
13361
13330
|
reflect: true
|
|
13362
13331
|
},
|
|
13363
13332
|
|
|
13333
|
+
/**
|
|
13334
|
+
* Sets the layout of the combobox.
|
|
13335
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
13336
|
+
* @default 'classic'
|
|
13337
|
+
*/
|
|
13338
|
+
layout: {
|
|
13339
|
+
type: String,
|
|
13340
|
+
reflect: true
|
|
13341
|
+
},
|
|
13342
|
+
|
|
13364
13343
|
/**
|
|
13365
13344
|
* If declared, the popover and trigger will be set to the same width.
|
|
13345
|
+
* @private
|
|
13366
13346
|
*/
|
|
13367
13347
|
matchWidth: {
|
|
13368
13348
|
type: Boolean,
|
|
@@ -13380,7 +13360,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13380
13360
|
/**
|
|
13381
13361
|
* If declared, the bib will NOT flip to an alternate position
|
|
13382
13362
|
* when there isn't enough space in the specified `placement`.
|
|
13383
|
-
* @default false
|
|
13384
13363
|
*/
|
|
13385
13364
|
noFlip: {
|
|
13386
13365
|
type: Boolean,
|
|
@@ -13389,7 +13368,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13389
13368
|
|
|
13390
13369
|
/**
|
|
13391
13370
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
13392
|
-
* @default false
|
|
13393
13371
|
*/
|
|
13394
13372
|
shift: {
|
|
13395
13373
|
type: Boolean,
|
|
@@ -13414,7 +13392,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13414
13392
|
},
|
|
13415
13393
|
|
|
13416
13394
|
/**
|
|
13417
|
-
* DEPRECATED - use `appearance` instead.
|
|
13395
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
13418
13396
|
*/
|
|
13419
13397
|
onDark: {
|
|
13420
13398
|
type: Boolean,
|
|
@@ -13433,28 +13411,21 @@ class AuroCombobox extends AuroElement {
|
|
|
13433
13411
|
* If declared, selecting a menu option will not change the input value. By doing so,
|
|
13434
13412
|
* the current menu filter will be preserved and the user can continue from their last
|
|
13435
13413
|
* filter state. It is recommended to use this in combination with the `displayValue` slot.
|
|
13436
|
-
* @type {Boolean}
|
|
13437
13414
|
*/
|
|
13438
13415
|
persistInput: {
|
|
13439
13416
|
type: Boolean,
|
|
13440
13417
|
reflect: true
|
|
13441
13418
|
},
|
|
13442
13419
|
|
|
13443
|
-
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
13444
13420
|
/**
|
|
13445
13421
|
* Position where the bib should appear relative to the trigger.
|
|
13446
|
-
*
|
|
13447
|
-
*
|
|
13448
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
13449
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
13450
|
-
* "left-start" | "left-end"
|
|
13451
|
-
* @default bottom-start
|
|
13422
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
13423
|
+
* @default 'bottom-start'
|
|
13452
13424
|
*/
|
|
13453
13425
|
placement: {
|
|
13454
13426
|
type: String,
|
|
13455
13427
|
reflect: true
|
|
13456
13428
|
},
|
|
13457
|
-
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13458
13429
|
|
|
13459
13430
|
/**
|
|
13460
13431
|
* Define custom placeholder text, only supported by date input formats.
|
|
@@ -13502,8 +13473,6 @@ class AuroCombobox extends AuroElement {
|
|
|
13502
13473
|
|
|
13503
13474
|
/**
|
|
13504
13475
|
* Indicates whether the combobox is in a dirty state (has been interacted with).
|
|
13505
|
-
* @type {boolean}
|
|
13506
|
-
* @default false
|
|
13507
13476
|
* @private
|
|
13508
13477
|
*/
|
|
13509
13478
|
touched: {
|
|
@@ -13521,7 +13490,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13521
13490
|
},
|
|
13522
13491
|
|
|
13523
13492
|
/**
|
|
13524
|
-
* Applies the defined value as the type attribute on auro-input
|
|
13493
|
+
* Applies the defined value as the type attribute on `auro-input`.
|
|
13525
13494
|
*/
|
|
13526
13495
|
type: {
|
|
13527
13496
|
type: String,
|
|
@@ -13563,12 +13532,12 @@ class AuroCombobox extends AuroElement {
|
|
|
13563
13532
|
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13564
13533
|
|
|
13565
13534
|
/**
|
|
13566
|
-
* Defines the screen size
|
|
13567
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
13535
|
+
* Defines the screen size breakpointat which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
13568
13536
|
*
|
|
13569
13537
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
13570
13538
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
13571
|
-
* @
|
|
13539
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
13540
|
+
* @default 'sm'
|
|
13572
13541
|
*/
|
|
13573
13542
|
fullscreenBreakpoint: {
|
|
13574
13543
|
type: String,
|
|
@@ -13629,7 +13598,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13629
13598
|
|
|
13630
13599
|
/**
|
|
13631
13600
|
* This will register this element with the browser.
|
|
13632
|
-
* @param {string} [name='auro-combobox'] - The name of element that you want to register
|
|
13601
|
+
* @param {string} [name='auro-combobox'] - The name of the element that you want to register.
|
|
13633
13602
|
*
|
|
13634
13603
|
* @example
|
|
13635
13604
|
* AuroCombobox.register('custom-combobox') // this will register this element to <custom-combobox/>
|
|
@@ -13705,17 +13674,19 @@ class AuroCombobox extends AuroElement {
|
|
|
13705
13674
|
if (this.menu) {
|
|
13706
13675
|
this.menu.matchWord = this.input.value;
|
|
13707
13676
|
}
|
|
13708
|
-
this.
|
|
13677
|
+
const label = this.menu.currentLabel;
|
|
13678
|
+
this.updateTriggerTextDisplay(label || this.value);
|
|
13709
13679
|
}
|
|
13710
13680
|
|
|
13711
13681
|
/**
|
|
13712
13682
|
* Update displayValue or input.value, it's called when making a selection.
|
|
13683
|
+
* @param {string} label - The label of the selected option.
|
|
13713
13684
|
* @private
|
|
13714
13685
|
*/
|
|
13715
|
-
updateTriggerTextDisplay() {
|
|
13686
|
+
updateTriggerTextDisplay(label) {
|
|
13716
13687
|
// update the input content if persistInput is false
|
|
13717
13688
|
if (!this.persistInput) {
|
|
13718
|
-
this.input.value = this.value;
|
|
13689
|
+
this.input.value = label || this.value;
|
|
13719
13690
|
}
|
|
13720
13691
|
|
|
13721
13692
|
// update the displayValue in the trigger if displayValue slot content is present
|
|
@@ -13941,7 +13912,7 @@ class AuroCombobox extends AuroElement {
|
|
|
13941
13912
|
this.value = event.detail.stringValue;
|
|
13942
13913
|
|
|
13943
13914
|
// Update display
|
|
13944
|
-
this.updateTriggerTextDisplay();
|
|
13915
|
+
this.updateTriggerTextDisplay(event.detail.label || event.detail.value);
|
|
13945
13916
|
|
|
13946
13917
|
// Update match word for filtering
|
|
13947
13918
|
if (this.menu.matchWord !== this.input.value) {
|
|
@@ -14233,7 +14204,7 @@ class AuroCombobox extends AuroElement {
|
|
|
14233
14204
|
this.validation.validate(this, force);
|
|
14234
14205
|
}
|
|
14235
14206
|
|
|
14236
|
-
updated(changedProperties) {
|
|
14207
|
+
async updated(changedProperties) {
|
|
14237
14208
|
// After the component is ready, send direct value changes to auro-menu.
|
|
14238
14209
|
if (changedProperties.has('value')) {
|
|
14239
14210
|
if (this.value && this.value.length > 0) {
|
|
@@ -14291,8 +14262,8 @@ class AuroCombobox extends AuroElement {
|
|
|
14291
14262
|
}
|
|
14292
14263
|
|
|
14293
14264
|
if (changedProperties.has('error')) {
|
|
14294
|
-
this.input.setAttribute('error', this.getAttribute('error'));
|
|
14295
|
-
this.validate();
|
|
14265
|
+
await this.input.setAttribute('error', this.getAttribute('error'));
|
|
14266
|
+
this.validate(true);
|
|
14296
14267
|
}
|
|
14297
14268
|
|
|
14298
14269
|
if (changedProperties.has('shape') && this.menu) {
|
|
@@ -14549,7 +14520,7 @@ var styleCss = i$6`.body-default{font-family:var(--wcss-body-family, "AS Circula
|
|
|
14549
14520
|
|
|
14550
14521
|
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)}`;
|
|
14551
14522
|
|
|
14552
|
-
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;
|
|
14523
|
+
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}
|
|
14553
14524
|
`;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}
|
|
14554
14525
|
`;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)}
|
|
14555
14526
|
`;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)}
|
|
@@ -14606,12 +14577,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
14606
14577
|
|
|
14607
14578
|
|
|
14608
14579
|
/**
|
|
14609
|
-
* The auro-
|
|
14580
|
+
* The `auro-menuoption` element provides users a way to define a menu option.
|
|
14581
|
+
* @customElement auro-menuoption
|
|
14610
14582
|
*
|
|
14611
|
-
* @attr {String} value - Specifies the value to be sent to a server.
|
|
14612
|
-
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
14613
|
-
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
14614
|
-
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
14615
14583
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
14616
14584
|
* @slot - Specifies text for an option, but is not the value.
|
|
14617
14585
|
*/
|
|
@@ -14619,7 +14587,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
14619
14587
|
|
|
14620
14588
|
/**
|
|
14621
14589
|
* This will register this element with the browser.
|
|
14622
|
-
* @param {string} [name="auro-menuoption"] - The name of element that you want to register
|
|
14590
|
+
* @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
|
|
14623
14591
|
*
|
|
14624
14592
|
* @example
|
|
14625
14593
|
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
@@ -14662,7 +14630,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
14662
14630
|
this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, x);
|
|
14663
14631
|
|
|
14664
14632
|
this.selected = false;
|
|
14665
|
-
this.
|
|
14633
|
+
this.noCheckmark = false;
|
|
14666
14634
|
this.disabled = false;
|
|
14667
14635
|
|
|
14668
14636
|
/**
|
|
@@ -14683,38 +14651,81 @@ class AuroMenuOption extends AuroElement {
|
|
|
14683
14651
|
static get properties() {
|
|
14684
14652
|
return {
|
|
14685
14653
|
...super.properties,
|
|
14654
|
+
|
|
14655
|
+
/**
|
|
14656
|
+
* When true, disables the menu option.
|
|
14657
|
+
*/
|
|
14686
14658
|
disabled: {
|
|
14687
14659
|
type: Boolean,
|
|
14688
14660
|
reflect: true
|
|
14689
14661
|
},
|
|
14662
|
+
|
|
14663
|
+
/**
|
|
14664
|
+
* @private
|
|
14665
|
+
*/
|
|
14690
14666
|
event: {
|
|
14691
14667
|
type: String,
|
|
14692
14668
|
reflect: true
|
|
14693
14669
|
},
|
|
14670
|
+
|
|
14671
|
+
/**
|
|
14672
|
+
* @private
|
|
14673
|
+
*/
|
|
14674
|
+
layout: {
|
|
14675
|
+
type: String
|
|
14676
|
+
},
|
|
14677
|
+
|
|
14678
|
+
/**
|
|
14679
|
+
* 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.
|
|
14680
|
+
*/
|
|
14694
14681
|
key: {
|
|
14695
14682
|
type: String,
|
|
14696
14683
|
reflect: true
|
|
14697
14684
|
},
|
|
14685
|
+
|
|
14686
|
+
/**
|
|
14687
|
+
* @private
|
|
14688
|
+
*/
|
|
14698
14689
|
menuService: {
|
|
14699
14690
|
type: Object,
|
|
14700
14691
|
state: true
|
|
14701
14692
|
},
|
|
14693
|
+
|
|
14694
|
+
/**
|
|
14695
|
+
* @private
|
|
14696
|
+
*/
|
|
14702
14697
|
matchWord: {
|
|
14703
14698
|
type: String,
|
|
14704
14699
|
state: true
|
|
14705
14700
|
},
|
|
14706
|
-
|
|
14701
|
+
|
|
14702
|
+
/**
|
|
14703
|
+
* @private
|
|
14704
|
+
*/
|
|
14705
|
+
noCheckmark: {
|
|
14707
14706
|
type: Boolean,
|
|
14708
14707
|
reflect: true
|
|
14709
14708
|
},
|
|
14709
|
+
|
|
14710
|
+
/**
|
|
14711
|
+
* Specifies that an option is selected.
|
|
14712
|
+
*/
|
|
14710
14713
|
selected: {
|
|
14711
14714
|
type: Boolean,
|
|
14712
14715
|
reflect: true
|
|
14713
14716
|
},
|
|
14717
|
+
|
|
14718
|
+
/**
|
|
14719
|
+
* Specifies the tab index of the menu option.
|
|
14720
|
+
*/
|
|
14714
14721
|
tabIndex: {
|
|
14715
14722
|
type: Number,
|
|
14716
14723
|
reflect: true
|
|
14717
14724
|
},
|
|
14725
|
+
|
|
14726
|
+
/**
|
|
14727
|
+
* Specifies the value to be sent to a server.
|
|
14728
|
+
*/
|
|
14718
14729
|
value: {
|
|
14719
14730
|
type: String,
|
|
14720
14731
|
reflect: true
|
|
@@ -15038,7 +15049,7 @@ class AuroMenuOption extends AuroElement {
|
|
|
15038
15049
|
|
|
15039
15050
|
return u$7`
|
|
15040
15051
|
<div class="${classes}">
|
|
15041
|
-
${this.selected && !this.
|
|
15052
|
+
${this.selected && !this.noCheckmark
|
|
15042
15053
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
15043
15054
|
: undefined}
|
|
15044
15055
|
<slot></slot>
|
|
@@ -15080,6 +15091,15 @@ class MenuService {
|
|
|
15080
15091
|
return this.multiSelect ? values : values[0];
|
|
15081
15092
|
}
|
|
15082
15093
|
|
|
15094
|
+
/**
|
|
15095
|
+
* Gets the label(s) of the currently selected option(s).
|
|
15096
|
+
* @returns {string}
|
|
15097
|
+
*/
|
|
15098
|
+
get currentLabel() {
|
|
15099
|
+
const labels = (this.selectedOptions || []).map(option => option.textContent);
|
|
15100
|
+
return this.multiSelect ? labels.join(", ") : labels[0] || '';
|
|
15101
|
+
}
|
|
15102
|
+
|
|
15083
15103
|
/**
|
|
15084
15104
|
* Gets the string representation of the current value(s).
|
|
15085
15105
|
* For multi-select, this is a JSON stringified array.
|
|
@@ -15511,7 +15531,8 @@ class MenuService {
|
|
|
15511
15531
|
value: this.currentValue,
|
|
15512
15532
|
stringValue: this.stringValue,
|
|
15513
15533
|
keys: this.currentKeys,
|
|
15514
|
-
options: this.selectedOptions
|
|
15534
|
+
options: this.selectedOptions,
|
|
15535
|
+
label: this.currentLabel
|
|
15515
15536
|
};
|
|
15516
15537
|
|
|
15517
15538
|
// If only one option is selected, include its index
|
|
@@ -15655,19 +15676,9 @@ const MenuContext = n('menu-context');
|
|
|
15655
15676
|
|
|
15656
15677
|
|
|
15657
15678
|
/**
|
|
15658
|
-
* The auro-menu element provides users a way to select from a list of options.
|
|
15659
|
-
* @
|
|
15660
|
-
*
|
|
15661
|
-
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
15662
|
-
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
15663
|
-
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
15664
|
-
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
15665
|
-
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
15666
|
-
* @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
15667
|
-
* @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
15668
|
-
* @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
|
|
15669
|
-
* @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
|
|
15670
|
-
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
15679
|
+
* The `auro-menu` element provides users a way to select from a list of options.
|
|
15680
|
+
* @customElement auro-menu
|
|
15681
|
+
*
|
|
15671
15682
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
15672
15683
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
15673
15684
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
@@ -15758,58 +15769,87 @@ class AuroMenu extends AuroElement {
|
|
|
15758
15769
|
type: Boolean,
|
|
15759
15770
|
reflect: true,
|
|
15760
15771
|
},
|
|
15761
|
-
|
|
15762
|
-
|
|
15763
|
-
|
|
15764
|
-
|
|
15765
|
-
},
|
|
15772
|
+
|
|
15773
|
+
/**
|
|
15774
|
+
* When true, the entire menu and all options are disabled.
|
|
15775
|
+
*/
|
|
15766
15776
|
disabled: {
|
|
15767
15777
|
type: Boolean,
|
|
15768
15778
|
reflect: true
|
|
15769
15779
|
},
|
|
15780
|
+
|
|
15781
|
+
/**
|
|
15782
|
+
* Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
15783
|
+
*/
|
|
15784
|
+
hasLoadingPlaceholder: {
|
|
15785
|
+
type: Boolean
|
|
15786
|
+
},
|
|
15787
|
+
|
|
15788
|
+
/**
|
|
15789
|
+
* @private
|
|
15790
|
+
*/
|
|
15791
|
+
layout: {
|
|
15792
|
+
type: String
|
|
15793
|
+
},
|
|
15794
|
+
|
|
15795
|
+
/**
|
|
15796
|
+
* Indent level for submenus.
|
|
15797
|
+
* @private
|
|
15798
|
+
*/
|
|
15799
|
+
level: {
|
|
15800
|
+
type: Number,
|
|
15801
|
+
reflect: false,
|
|
15802
|
+
attribute: false
|
|
15803
|
+
},
|
|
15804
|
+
|
|
15805
|
+
/**
|
|
15806
|
+
* When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
15807
|
+
*/
|
|
15770
15808
|
loading: {
|
|
15771
15809
|
type: Boolean,
|
|
15772
15810
|
reflect: true
|
|
15773
15811
|
},
|
|
15774
|
-
|
|
15775
|
-
|
|
15776
|
-
|
|
15777
|
-
|
|
15778
|
-
optionActive: {
|
|
15779
|
-
type: Object,
|
|
15780
|
-
attribute: 'optionactive'
|
|
15781
|
-
},
|
|
15812
|
+
|
|
15813
|
+
/**
|
|
15814
|
+
* Specifies a string used to highlight matched string parts in options.
|
|
15815
|
+
*/
|
|
15782
15816
|
matchWord: {
|
|
15783
15817
|
type: String,
|
|
15784
15818
|
attribute: 'matchword'
|
|
15785
15819
|
},
|
|
15820
|
+
|
|
15821
|
+
/**
|
|
15822
|
+
* When true, the selected option can be multiple options.
|
|
15823
|
+
*/
|
|
15786
15824
|
multiSelect: {
|
|
15787
15825
|
type: Boolean,
|
|
15788
15826
|
reflect: true,
|
|
15789
15827
|
attribute: 'multiselect'
|
|
15790
15828
|
},
|
|
15791
|
-
|
|
15829
|
+
|
|
15830
|
+
/**
|
|
15831
|
+
* When true, selected option will not show the checkmark.
|
|
15832
|
+
*/
|
|
15833
|
+
noCheckmark: {
|
|
15792
15834
|
type: Boolean,
|
|
15793
15835
|
reflect: true,
|
|
15836
|
+
attribute: 'nocheckmark'
|
|
15794
15837
|
},
|
|
15795
15838
|
|
|
15796
15839
|
/**
|
|
15797
|
-
*
|
|
15840
|
+
* Specifies the current active menuOption.
|
|
15798
15841
|
*/
|
|
15799
|
-
|
|
15800
|
-
type:
|
|
15801
|
-
|
|
15802
|
-
attribute: 'value'
|
|
15842
|
+
optionActive: {
|
|
15843
|
+
type: Object,
|
|
15844
|
+
attribute: 'optionactive'
|
|
15803
15845
|
},
|
|
15804
15846
|
|
|
15805
15847
|
/**
|
|
15806
|
-
*
|
|
15807
|
-
* @private
|
|
15848
|
+
* An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
|
|
15808
15849
|
*/
|
|
15809
|
-
|
|
15810
|
-
|
|
15811
|
-
|
|
15812
|
-
attribute: false
|
|
15850
|
+
optionSelected: {
|
|
15851
|
+
// Allow HTMLElement, HTMLElement[] arrays and undefined
|
|
15852
|
+
type: Object
|
|
15813
15853
|
},
|
|
15814
15854
|
|
|
15815
15855
|
/**
|
|
@@ -15820,6 +15860,43 @@ class AuroMenu extends AuroElement {
|
|
|
15820
15860
|
type: Array,
|
|
15821
15861
|
reflect: false,
|
|
15822
15862
|
attribute: false
|
|
15863
|
+
},
|
|
15864
|
+
|
|
15865
|
+
/**
|
|
15866
|
+
* Sets the size of the menu.
|
|
15867
|
+
* @type {'sm' | 'md'}
|
|
15868
|
+
* @default 'sm'
|
|
15869
|
+
*/
|
|
15870
|
+
size: {
|
|
15871
|
+
type: String,
|
|
15872
|
+
reflect: true
|
|
15873
|
+
},
|
|
15874
|
+
|
|
15875
|
+
/**
|
|
15876
|
+
* When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
15877
|
+
*/
|
|
15878
|
+
selectAllMatchingOptions: {
|
|
15879
|
+
type: Boolean,
|
|
15880
|
+
reflect: true,
|
|
15881
|
+
},
|
|
15882
|
+
|
|
15883
|
+
/**
|
|
15884
|
+
* Sets the shape of the menu.
|
|
15885
|
+
* @type {'box' | 'round'}
|
|
15886
|
+
* @default 'box'
|
|
15887
|
+
*/
|
|
15888
|
+
shape: {
|
|
15889
|
+
type: String,
|
|
15890
|
+
reflect: true
|
|
15891
|
+
},
|
|
15892
|
+
|
|
15893
|
+
/**
|
|
15894
|
+
* The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
15895
|
+
*/
|
|
15896
|
+
value: {
|
|
15897
|
+
type: String,
|
|
15898
|
+
reflect: true,
|
|
15899
|
+
attribute: 'value'
|
|
15823
15900
|
}
|
|
15824
15901
|
};
|
|
15825
15902
|
}
|
|
@@ -15832,6 +15909,14 @@ class AuroMenu extends AuroElement {
|
|
|
15832
15909
|
];
|
|
15833
15910
|
}
|
|
15834
15911
|
|
|
15912
|
+
/**
|
|
15913
|
+
* @readonly
|
|
15914
|
+
* @returns {string} - Returns the label of the currently selected option(s).
|
|
15915
|
+
*/
|
|
15916
|
+
get currentLabel() {
|
|
15917
|
+
return this.menuService.currentLabel;
|
|
15918
|
+
};
|
|
15919
|
+
|
|
15835
15920
|
/**
|
|
15836
15921
|
* @readonly
|
|
15837
15922
|
* @returns {Array<HTMLElement>} - Returns the array of available menu options.
|
|
@@ -15857,7 +15942,7 @@ class AuroMenu extends AuroElement {
|
|
|
15857
15942
|
|
|
15858
15943
|
/**
|
|
15859
15944
|
* This will register this element with the browser.
|
|
15860
|
-
* @param {string} [name="auro-menu"] - The name of element that you want to register
|
|
15945
|
+
* @param {string} [name="auro-menu"] - The name of the element that you want to register.
|
|
15861
15946
|
*
|
|
15862
15947
|
* @example
|
|
15863
15948
|
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
@@ -16269,24 +16354,6 @@ AuroMenuOption.register();
|
|
|
16269
16354
|
|
|
16270
16355
|
/* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
|
|
16271
16356
|
|
|
16357
|
+
|
|
16272
16358
|
AuroCombobox.register();
|
|
16273
16359
|
AuroCombobox.register('custom-combobox');
|
|
16274
|
-
|
|
16275
|
-
function initExamples(initCount) {
|
|
16276
|
-
initCount = initCount || 0;
|
|
16277
|
-
|
|
16278
|
-
try {
|
|
16279
|
-
// javascript example function calls to be added here upon creation to test examples
|
|
16280
|
-
persistentExample();
|
|
16281
|
-
swapValueExample();
|
|
16282
|
-
} catch (err) {
|
|
16283
|
-
if (initCount <= 20) {
|
|
16284
|
-
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
16285
|
-
setTimeout(() => {
|
|
16286
|
-
initExamples(initCount + 1);
|
|
16287
|
-
}, 100);
|
|
16288
|
-
}
|
|
16289
|
-
}
|
|
16290
|
-
}
|
|
16291
|
-
|
|
16292
|
-
export { initExamples };
|