@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
|
@@ -59,37 +59,6 @@ function resetStateExample() {
|
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
function auroMenuLoadingExample() {
|
|
63
|
-
const select = document.querySelector("#loadingExample");
|
|
64
|
-
const menu = document.querySelector("#loadingExampleSelectMenu");
|
|
65
|
-
|
|
66
|
-
const emptyMenu = () => {
|
|
67
|
-
const menuoptions = menu.querySelectorAll('auro-menuoption');
|
|
68
|
-
menuoptions.forEach(mo => menu.removeChild(mo));
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
const fillMenu = () => {
|
|
72
|
-
menu.innerHTML += `
|
|
73
|
-
<auro-menuoption value="stops">Stops</auro-menuoption>
|
|
74
|
-
<auro-menuoption value="price">Price</auro-menuoption>
|
|
75
|
-
<auro-menuoption value="duration">Duration</auro-menuoption>
|
|
76
|
-
<auro-menuoption value="departure">Departure</auro-menuoption>
|
|
77
|
-
<auro-menuoption value="arrival">Arrival</auro-menuoption>
|
|
78
|
-
<auro-menuoption value="prefer alaska">Prefer Alaska</auro-menuoption>`;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
select.addEventListener("click", () => {
|
|
82
|
-
if (!menu.hasAttribute('loading') && !select.value) {
|
|
83
|
-
emptyMenu();
|
|
84
|
-
menu.setAttribute('loading', 'loading');
|
|
85
|
-
setTimeout(() => {
|
|
86
|
-
menu.removeAttribute('loading');
|
|
87
|
-
fillMenu();
|
|
88
|
-
}, 1000);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
|
|
93
62
|
/**
|
|
94
63
|
* @license
|
|
95
64
|
* Copyright 2019 Google LLC
|
|
@@ -1389,9 +1358,8 @@ function getOppositeAxis(axis) {
|
|
|
1389
1358
|
function getAxisLength(axis) {
|
|
1390
1359
|
return axis === 'y' ? 'height' : 'width';
|
|
1391
1360
|
}
|
|
1392
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
1393
1361
|
function getSideAxis(placement) {
|
|
1394
|
-
return
|
|
1362
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
1395
1363
|
}
|
|
1396
1364
|
function getAlignmentAxis(placement) {
|
|
1397
1365
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -1416,19 +1384,19 @@ function getExpandedPlacements(placement) {
|
|
|
1416
1384
|
function getOppositeAlignmentPlacement(placement) {
|
|
1417
1385
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
1418
1386
|
}
|
|
1419
|
-
const lrPlacement = ['left', 'right'];
|
|
1420
|
-
const rlPlacement = ['right', 'left'];
|
|
1421
|
-
const tbPlacement = ['top', 'bottom'];
|
|
1422
|
-
const btPlacement = ['bottom', 'top'];
|
|
1423
1387
|
function getSideList(side, isStart, rtl) {
|
|
1388
|
+
const lr = ['left', 'right'];
|
|
1389
|
+
const rl = ['right', 'left'];
|
|
1390
|
+
const tb = ['top', 'bottom'];
|
|
1391
|
+
const bt = ['bottom', 'top'];
|
|
1424
1392
|
switch (side) {
|
|
1425
1393
|
case 'top':
|
|
1426
1394
|
case 'bottom':
|
|
1427
|
-
if (rtl) return isStart ?
|
|
1428
|
-
return isStart ?
|
|
1395
|
+
if (rtl) return isStart ? rl : lr;
|
|
1396
|
+
return isStart ? lr : rl;
|
|
1429
1397
|
case 'left':
|
|
1430
1398
|
case 'right':
|
|
1431
|
-
return isStart ?
|
|
1399
|
+
return isStart ? tb : bt;
|
|
1432
1400
|
default:
|
|
1433
1401
|
return [];
|
|
1434
1402
|
}
|
|
@@ -1869,22 +1837,16 @@ const flip$1 = function (options) {
|
|
|
1869
1837
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1870
1838
|
const nextPlacement = placements[nextIndex];
|
|
1871
1839
|
if (nextPlacement) {
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
},
|
|
1883
|
-
reset: {
|
|
1884
|
-
placement: nextPlacement
|
|
1885
|
-
}
|
|
1886
|
-
};
|
|
1887
|
-
}
|
|
1840
|
+
// Try next placement and re-run the lifecycle.
|
|
1841
|
+
return {
|
|
1842
|
+
data: {
|
|
1843
|
+
index: nextIndex,
|
|
1844
|
+
overflows: overflowsData
|
|
1845
|
+
},
|
|
1846
|
+
reset: {
|
|
1847
|
+
placement: nextPlacement
|
|
1848
|
+
}
|
|
1849
|
+
};
|
|
1888
1850
|
}
|
|
1889
1851
|
|
|
1890
1852
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -1930,8 +1892,6 @@ const flip$1 = function (options) {
|
|
|
1930
1892
|
};
|
|
1931
1893
|
};
|
|
1932
1894
|
|
|
1933
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
1934
|
-
|
|
1935
1895
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
1936
1896
|
// Derivable.
|
|
1937
1897
|
|
|
@@ -1945,7 +1905,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1945
1905
|
const side = getSide(placement);
|
|
1946
1906
|
const alignment = getAlignment(placement);
|
|
1947
1907
|
const isVertical = getSideAxis(placement) === 'y';
|
|
1948
|
-
const mainAxisMulti =
|
|
1908
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
1949
1909
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1950
1910
|
const rawValue = evaluate(options, state);
|
|
1951
1911
|
|
|
@@ -2138,7 +2098,6 @@ function isShadowRoot(value) {
|
|
|
2138
2098
|
}
|
|
2139
2099
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
2140
2100
|
}
|
|
2141
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
2142
2101
|
function isOverflowElement(element) {
|
|
2143
2102
|
const {
|
|
2144
2103
|
overflow,
|
|
@@ -2146,32 +2105,27 @@ function isOverflowElement(element) {
|
|
|
2146
2105
|
overflowY,
|
|
2147
2106
|
display
|
|
2148
2107
|
} = getComputedStyle$1(element);
|
|
2149
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
2108
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
2150
2109
|
}
|
|
2151
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
2152
2110
|
function isTableElement(element) {
|
|
2153
|
-
return
|
|
2111
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
2154
2112
|
}
|
|
2155
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
2156
2113
|
function isTopLayer(element) {
|
|
2157
|
-
return
|
|
2114
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
2158
2115
|
try {
|
|
2159
2116
|
return element.matches(selector);
|
|
2160
|
-
} catch (
|
|
2117
|
+
} catch (e) {
|
|
2161
2118
|
return false;
|
|
2162
2119
|
}
|
|
2163
2120
|
});
|
|
2164
2121
|
}
|
|
2165
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
2166
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
2167
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
2168
2122
|
function isContainingBlock(elementOrCss) {
|
|
2169
2123
|
const webkit = isWebKit();
|
|
2170
2124
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2171
2125
|
|
|
2172
2126
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2173
2127
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2174
|
-
return
|
|
2128
|
+
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));
|
|
2175
2129
|
}
|
|
2176
2130
|
function getContainingBlock(element) {
|
|
2177
2131
|
let currentNode = getParentNode(element);
|
|
@@ -2189,9 +2143,8 @@ function isWebKit() {
|
|
|
2189
2143
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
2190
2144
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
2191
2145
|
}
|
|
2192
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
2193
2146
|
function isLastTraversableNode(node) {
|
|
2194
|
-
return
|
|
2147
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
2195
2148
|
}
|
|
2196
2149
|
function getComputedStyle$1(element) {
|
|
2197
2150
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -2496,7 +2449,6 @@ function getViewportRect(element, strategy) {
|
|
|
2496
2449
|
};
|
|
2497
2450
|
}
|
|
2498
2451
|
|
|
2499
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
2500
2452
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
2501
2453
|
function getInnerBoundingClientRect(element, strategy) {
|
|
2502
2454
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -2561,7 +2513,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
2561
2513
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
2562
2514
|
currentContainingBlockComputedStyle = null;
|
|
2563
2515
|
}
|
|
2564
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
2516
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
2565
2517
|
if (shouldDropCurrentNode) {
|
|
2566
2518
|
// Drop non-containing blocks.
|
|
2567
2519
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -2624,12 +2576,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2624
2576
|
scrollTop: 0
|
|
2625
2577
|
};
|
|
2626
2578
|
const offsets = createCoords(0);
|
|
2627
|
-
|
|
2628
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2629
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2630
|
-
function setLeftRTLScrollbarOffset() {
|
|
2631
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
2632
|
-
}
|
|
2633
2579
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
2634
2580
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
2635
2581
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -2639,12 +2585,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2639
2585
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2640
2586
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2641
2587
|
} else if (documentElement) {
|
|
2642
|
-
|
|
2588
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2589
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2590
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
2643
2591
|
}
|
|
2644
2592
|
}
|
|
2645
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
2646
|
-
setLeftRTLScrollbarOffset();
|
|
2647
|
-
}
|
|
2648
2593
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2649
2594
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2650
2595
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -2821,7 +2766,7 @@ function observeMove(element, onMove) {
|
|
|
2821
2766
|
// Handle <iframe>s
|
|
2822
2767
|
root: root.ownerDocument
|
|
2823
2768
|
});
|
|
2824
|
-
} catch (
|
|
2769
|
+
} catch (e) {
|
|
2825
2770
|
io = new IntersectionObserver(handleObserve, options);
|
|
2826
2771
|
}
|
|
2827
2772
|
io.observe(element);
|
|
@@ -3911,7 +3856,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
3911
3856
|
}
|
|
3912
3857
|
};
|
|
3913
3858
|
|
|
3914
|
-
let p$3 = 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$3='<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$3 = 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$3=new Map,f$3=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$3.has(t)||g$3.set(t,fetch(t).then(e)),g$3.get(t)};var w$3=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;
|
|
3859
|
+
let p$3 = 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$3='<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$3 = 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$3=new Map,f$3=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$3.has(t)||g$3.set(t,fetch(t).then(e)),g$3.get(t)};var w$3=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}
|
|
3915
3860
|
`;let z$3 = class z extends m$3{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$3.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$3}async fetchIcon(t,a){let e="";e="logos"===t?await f$3(`${this.uri}/${t}/${a}.svg`):await f$3(`${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$3,"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}
|
|
3916
3861
|
`;var y$3=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)}
|
|
3917
3862
|
`;var k$3=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)}
|
|
@@ -3935,7 +3880,7 @@ let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
3935
3880
|
</div>
|
|
3936
3881
|
`}};
|
|
3937
3882
|
|
|
3938
|
-
var iconVersion$2 = '9.1.
|
|
3883
|
+
var iconVersion$2 = '9.1.1';
|
|
3939
3884
|
|
|
3940
3885
|
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}`;
|
|
3941
3886
|
|
|
@@ -4376,7 +4321,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
4376
4321
|
}
|
|
4377
4322
|
};
|
|
4378
4323
|
|
|
4379
|
-
var formkitVersion$1 = '
|
|
4324
|
+
var formkitVersion$1 = '202601271813';
|
|
4380
4325
|
|
|
4381
4326
|
class AuroElement extends i$3 {
|
|
4382
4327
|
static get properties() {
|
|
@@ -4482,12 +4427,14 @@ class AuroElement extends i$3 {
|
|
|
4482
4427
|
}
|
|
4483
4428
|
}
|
|
4484
4429
|
|
|
4485
|
-
// Copyright (c)
|
|
4430
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4486
4431
|
// See LICENSE in the project root for license information.
|
|
4487
4432
|
|
|
4488
4433
|
|
|
4489
|
-
|
|
4490
|
-
|
|
4434
|
+
/**
|
|
4435
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
4436
|
+
* @customElement auro-dropdown
|
|
4437
|
+
*
|
|
4491
4438
|
* @slot - Default slot for the popover content.
|
|
4492
4439
|
* @slot helpText - Defines the content of the helpText.
|
|
4493
4440
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -4523,7 +4470,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4523
4470
|
/** @private */
|
|
4524
4471
|
this.bibElement = e$1();
|
|
4525
4472
|
|
|
4526
|
-
this.
|
|
4473
|
+
this._intializeDefaults();
|
|
4527
4474
|
}
|
|
4528
4475
|
|
|
4529
4476
|
/**
|
|
@@ -4544,7 +4491,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4544
4491
|
* @private
|
|
4545
4492
|
* @returns {void} Internal defaults.
|
|
4546
4493
|
*/
|
|
4547
|
-
|
|
4494
|
+
_intializeDefaults() {
|
|
4548
4495
|
this.appearance = 'default';
|
|
4549
4496
|
this.chevron = false;
|
|
4550
4497
|
this.disabled = false;
|
|
@@ -4665,9 +4612,18 @@ class AuroDropdown extends AuroElement {
|
|
|
4665
4612
|
static get properties() {
|
|
4666
4613
|
return {
|
|
4667
4614
|
|
|
4615
|
+
/**
|
|
4616
|
+
* The value for the role attribute of the trigger element.
|
|
4617
|
+
*/
|
|
4618
|
+
a11yRole: {
|
|
4619
|
+
type: String || undefined,
|
|
4620
|
+
attribute: false,
|
|
4621
|
+
reflect: false
|
|
4622
|
+
},
|
|
4623
|
+
|
|
4668
4624
|
/**
|
|
4669
4625
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
4670
|
-
* @
|
|
4626
|
+
* @type {'default' | 'inverse'}
|
|
4671
4627
|
* @default 'default'
|
|
4672
4628
|
*/
|
|
4673
4629
|
appearance: {
|
|
@@ -4677,7 +4633,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4677
4633
|
|
|
4678
4634
|
/**
|
|
4679
4635
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
4680
|
-
* @default false
|
|
4681
4636
|
*/
|
|
4682
4637
|
autoPlacement: {
|
|
4683
4638
|
type: Boolean,
|
|
@@ -4686,7 +4641,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4686
4641
|
|
|
4687
4642
|
/**
|
|
4688
4643
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4689
|
-
* @default false
|
|
4690
4644
|
*/
|
|
4691
4645
|
disableEventShow: {
|
|
4692
4646
|
type: Boolean,
|
|
@@ -4703,11 +4657,11 @@ class AuroDropdown extends AuroElement {
|
|
|
4703
4657
|
|
|
4704
4658
|
/**
|
|
4705
4659
|
* If declared, the dropdown displays a chevron on the right.
|
|
4706
|
-
* @attr {Boolean} chevron
|
|
4707
4660
|
*/
|
|
4708
4661
|
chevron: {
|
|
4709
4662
|
type: Boolean,
|
|
4710
|
-
reflect: true
|
|
4663
|
+
reflect: true,
|
|
4664
|
+
attribute: 'chevron'
|
|
4711
4665
|
},
|
|
4712
4666
|
|
|
4713
4667
|
/**
|
|
@@ -4744,7 +4698,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4744
4698
|
},
|
|
4745
4699
|
|
|
4746
4700
|
/**
|
|
4747
|
-
* If declared
|
|
4701
|
+
* If declared, will apply error UI to the dropdown.
|
|
4748
4702
|
*/
|
|
4749
4703
|
error: {
|
|
4750
4704
|
type: Boolean,
|
|
@@ -4799,18 +4753,28 @@ class AuroDropdown extends AuroElement {
|
|
|
4799
4753
|
},
|
|
4800
4754
|
|
|
4801
4755
|
/**
|
|
4802
|
-
* Defines the screen size breakpoint
|
|
4803
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4756
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4804
4757
|
*
|
|
4805
4758
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4806
4759
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4807
|
-
* @
|
|
4760
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
4761
|
+
* @default 'sm'
|
|
4808
4762
|
*/
|
|
4809
4763
|
fullscreenBreakpoint: {
|
|
4810
4764
|
type: String,
|
|
4811
4765
|
reflect: true
|
|
4812
4766
|
},
|
|
4813
4767
|
|
|
4768
|
+
/**
|
|
4769
|
+
* Sets the layout of the dropdown.
|
|
4770
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
4771
|
+
* @default 'classic'
|
|
4772
|
+
*/
|
|
4773
|
+
layout: {
|
|
4774
|
+
type: String,
|
|
4775
|
+
reflect: true
|
|
4776
|
+
},
|
|
4777
|
+
|
|
4814
4778
|
/**
|
|
4815
4779
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4816
4780
|
* @private
|
|
@@ -4831,7 +4795,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4831
4795
|
/**
|
|
4832
4796
|
* If declared, the bib will NOT flip to an alternate position
|
|
4833
4797
|
* when there isn't enough space in the specified `placement`.
|
|
4834
|
-
* @default false
|
|
4835
4798
|
*/
|
|
4836
4799
|
noFlip: {
|
|
4837
4800
|
type: Boolean,
|
|
@@ -4840,7 +4803,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4840
4803
|
|
|
4841
4804
|
/**
|
|
4842
4805
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4843
|
-
* @default false
|
|
4844
4806
|
*/
|
|
4845
4807
|
shift: {
|
|
4846
4808
|
type: Boolean,
|
|
@@ -4873,7 +4835,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4873
4835
|
},
|
|
4874
4836
|
|
|
4875
4837
|
/**
|
|
4876
|
-
* DEPRECATED - use `appearance` instead.
|
|
4838
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
4877
4839
|
*/
|
|
4878
4840
|
onDark: {
|
|
4879
4841
|
type: Boolean,
|
|
@@ -4890,7 +4852,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4890
4852
|
|
|
4891
4853
|
/**
|
|
4892
4854
|
* Position where the bib should appear relative to the trigger.
|
|
4893
|
-
* @
|
|
4855
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
4856
|
+
* @default 'bottom-start'
|
|
4894
4857
|
*/
|
|
4895
4858
|
placement: {
|
|
4896
4859
|
type: String,
|
|
@@ -4902,15 +4865,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4902
4865
|
*/
|
|
4903
4866
|
tabIndex: {
|
|
4904
4867
|
type: Number
|
|
4905
|
-
},
|
|
4906
|
-
|
|
4907
|
-
/**
|
|
4908
|
-
* The value for the role attribute of the trigger element.
|
|
4909
|
-
*/
|
|
4910
|
-
a11yRole: {
|
|
4911
|
-
type: String || undefined,
|
|
4912
|
-
attribute: false,
|
|
4913
|
-
reflect: false
|
|
4914
4868
|
}
|
|
4915
4869
|
};
|
|
4916
4870
|
}
|
|
@@ -4937,7 +4891,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4937
4891
|
|
|
4938
4892
|
/**
|
|
4939
4893
|
* This will register this element with the browser.
|
|
4940
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
4894
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
4941
4895
|
*
|
|
4942
4896
|
* @example
|
|
4943
4897
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -5607,7 +5561,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
5607
5561
|
|
|
5608
5562
|
var buttonVersion = '12.3.0';
|
|
5609
5563
|
|
|
5610
|
-
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;
|
|
5564
|
+
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}
|
|
5611
5565
|
`;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}
|
|
5612
5566
|
`;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)}
|
|
5613
5567
|
`;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)}
|
|
@@ -5631,7 +5585,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
5631
5585
|
</div>
|
|
5632
5586
|
`}};
|
|
5633
5587
|
|
|
5634
|
-
var iconVersion$1 = '9.1.
|
|
5588
|
+
var iconVersion$1 = '9.1.1';
|
|
5635
5589
|
|
|
5636
5590
|
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)}
|
|
5637
5591
|
`;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$4(`h${s}`);return u$4`<${g} class="${m}" style="color: ${o(this.color?this.color:void 0)}"><slot></slot></${g}>`}render(){return this.template(this.level)}}
|
|
@@ -6014,19 +5968,20 @@ class AuroHelpText extends i$3 {
|
|
|
6014
5968
|
}
|
|
6015
5969
|
}
|
|
6016
5970
|
|
|
6017
|
-
var formkitVersion = '
|
|
5971
|
+
var formkitVersion = '202601271813';
|
|
6018
5972
|
|
|
6019
5973
|
var styleCss$2 = 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}.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, 0.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, 0.75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);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, 0.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, 0.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, 0.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, 0.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, 0.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, 0.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(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
6020
5974
|
|
|
6021
5975
|
var emphasizedColorCss = i$6`:host([layout=emphasized]) [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843))}:host([layout=emphasized]) [auro-dropdown]:hover{--ds-auro-dropdown-trigger-hover-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843))}:host([layout=emphasized]) [auro-dropdown][layout*=emphasized]::part(wrapper){--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-dropdown-emphasized-background, rgba(0, 39, 74, 0.1019607843))}`;
|
|
6022
5976
|
|
|
6023
|
-
// Copyright (c)
|
|
5977
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6024
5978
|
// See LICENSE in the project root for license information.
|
|
6025
5979
|
|
|
6026
5980
|
|
|
6027
5981
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
6028
5982
|
/**
|
|
6029
|
-
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
5983
|
+
* The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
5984
|
+
* @customElement auro-select
|
|
6030
5985
|
*
|
|
6031
5986
|
* @slot - Default slot for the menu content.
|
|
6032
5987
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
@@ -6039,10 +5994,9 @@ var emphasizedColorCss = i$6`:host([layout=emphasized]) [auro-dropdown]{--ds-aur
|
|
|
6039
5994
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
6040
5995
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
6041
5996
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
6042
|
-
*
|
|
6043
5997
|
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
6044
5998
|
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
6045
|
-
* @csspart dropdownSize - Apply size styles to the dropdown bib
|
|
5999
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib (height, width, maxHeight, maxWidth only).
|
|
6046
6000
|
* @csspart helpText - Apply CSS to the help text.
|
|
6047
6001
|
*/
|
|
6048
6002
|
|
|
@@ -6051,7 +6005,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6051
6005
|
constructor() {
|
|
6052
6006
|
super();
|
|
6053
6007
|
|
|
6054
|
-
this.
|
|
6008
|
+
this._initializeDefaults();
|
|
6055
6009
|
|
|
6056
6010
|
const idLength = 36;
|
|
6057
6011
|
const idSubstrEnd = 8;
|
|
@@ -6125,7 +6079,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6125
6079
|
* @private
|
|
6126
6080
|
* @returns {void} Internal defaults.
|
|
6127
6081
|
*/
|
|
6128
|
-
|
|
6082
|
+
_initializeDefaults() {
|
|
6129
6083
|
this.appearance = 'default';
|
|
6130
6084
|
this.value = undefined;
|
|
6131
6085
|
this.fullscreenBreakpoint = 'sm';
|
|
@@ -6146,7 +6100,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6146
6100
|
|
|
6147
6101
|
/**
|
|
6148
6102
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
6149
|
-
* @
|
|
6103
|
+
* @type {'default' | 'inverse'}
|
|
6150
6104
|
* @default 'default'
|
|
6151
6105
|
*/
|
|
6152
6106
|
appearance: {
|
|
@@ -6154,6 +6108,14 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6154
6108
|
reflect: true
|
|
6155
6109
|
},
|
|
6156
6110
|
|
|
6111
|
+
/**
|
|
6112
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
6113
|
+
*/
|
|
6114
|
+
autoPlacement: {
|
|
6115
|
+
type: Boolean,
|
|
6116
|
+
reflect: true
|
|
6117
|
+
},
|
|
6118
|
+
|
|
6157
6119
|
/**
|
|
6158
6120
|
* If declared, sets the autocomplete attribute for the select element.
|
|
6159
6121
|
*/
|
|
@@ -6163,28 +6125,27 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6163
6125
|
},
|
|
6164
6126
|
|
|
6165
6127
|
/**
|
|
6166
|
-
*
|
|
6128
|
+
* When attribute is present, element shows disabled state.
|
|
6167
6129
|
*/
|
|
6168
|
-
|
|
6130
|
+
disabled: {
|
|
6169
6131
|
type: Boolean,
|
|
6170
6132
|
reflect: true
|
|
6171
6133
|
},
|
|
6172
6134
|
|
|
6173
6135
|
/**
|
|
6174
|
-
*
|
|
6175
|
-
* @default false
|
|
6136
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
6176
6137
|
*/
|
|
6177
|
-
|
|
6178
|
-
type:
|
|
6138
|
+
error: {
|
|
6139
|
+
type: String,
|
|
6179
6140
|
reflect: true
|
|
6180
6141
|
},
|
|
6181
6142
|
|
|
6182
6143
|
/**
|
|
6183
|
-
*
|
|
6144
|
+
* If declared, make the width of the bib match the width of the content, rather than the trigger.
|
|
6184
6145
|
*/
|
|
6185
|
-
|
|
6146
|
+
flexMenuWidth: {
|
|
6186
6147
|
type: Boolean,
|
|
6187
|
-
reflect: true
|
|
6148
|
+
reflect: true,
|
|
6188
6149
|
},
|
|
6189
6150
|
|
|
6190
6151
|
/**
|
|
@@ -6195,6 +6156,45 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6195
6156
|
reflect: true
|
|
6196
6157
|
},
|
|
6197
6158
|
|
|
6159
|
+
/**
|
|
6160
|
+
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
6161
|
+
*/
|
|
6162
|
+
forceDisplayValue: {
|
|
6163
|
+
type: Boolean,
|
|
6164
|
+
reflect: true
|
|
6165
|
+
},
|
|
6166
|
+
|
|
6167
|
+
/**
|
|
6168
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6169
|
+
*
|
|
6170
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6171
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6172
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
6173
|
+
* @default 'sm'
|
|
6174
|
+
*/
|
|
6175
|
+
fullscreenBreakpoint: {
|
|
6176
|
+
type: String,
|
|
6177
|
+
reflect: true
|
|
6178
|
+
},
|
|
6179
|
+
|
|
6180
|
+
/**
|
|
6181
|
+
* @private
|
|
6182
|
+
*/
|
|
6183
|
+
hasDisplayValueContent: {
|
|
6184
|
+
type: Boolean,
|
|
6185
|
+
reflect: false,
|
|
6186
|
+
attribute: false
|
|
6187
|
+
},
|
|
6188
|
+
|
|
6189
|
+
/**
|
|
6190
|
+
* @private
|
|
6191
|
+
*/
|
|
6192
|
+
hasFocus: {
|
|
6193
|
+
type: Boolean,
|
|
6194
|
+
reflect: false,
|
|
6195
|
+
attribute: false
|
|
6196
|
+
},
|
|
6197
|
+
|
|
6198
6198
|
/**
|
|
6199
6199
|
* @private
|
|
6200
6200
|
*/
|
|
@@ -6204,40 +6204,46 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6204
6204
|
},
|
|
6205
6205
|
|
|
6206
6206
|
/**
|
|
6207
|
-
* If declared,
|
|
6207
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
6208
|
+
* Otherwise, Heading 600.
|
|
6208
6209
|
*/
|
|
6209
|
-
|
|
6210
|
+
largeFullscreenHeadline: {
|
|
6210
6211
|
type: Boolean,
|
|
6211
6212
|
reflect: true
|
|
6212
6213
|
},
|
|
6213
6214
|
|
|
6214
6215
|
/**
|
|
6215
|
-
*
|
|
6216
|
+
* Determines the overall layout of the select component.
|
|
6217
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
6218
|
+
* @default 'classic'
|
|
6216
6219
|
*/
|
|
6217
|
-
|
|
6220
|
+
layout: {
|
|
6218
6221
|
type: String,
|
|
6219
6222
|
reflect: true
|
|
6220
6223
|
},
|
|
6221
6224
|
|
|
6222
6225
|
/**
|
|
6223
|
-
*
|
|
6224
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6225
|
-
*
|
|
6226
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6227
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6228
|
-
* @default sm
|
|
6226
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
6229
6227
|
*/
|
|
6230
|
-
|
|
6231
|
-
type:
|
|
6228
|
+
matchWidth: {
|
|
6229
|
+
type: Boolean,
|
|
6232
6230
|
reflect: true
|
|
6233
6231
|
},
|
|
6234
6232
|
|
|
6235
6233
|
/**
|
|
6236
|
-
*
|
|
6237
|
-
* Otherwise, Heading 600.
|
|
6234
|
+
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
6238
6235
|
*/
|
|
6239
|
-
|
|
6236
|
+
multiSelect: {
|
|
6240
6237
|
type: Boolean,
|
|
6238
|
+
reflect: true,
|
|
6239
|
+
attribute: 'multiselect'
|
|
6240
|
+
},
|
|
6241
|
+
|
|
6242
|
+
/**
|
|
6243
|
+
* The name for the select element.
|
|
6244
|
+
*/
|
|
6245
|
+
name: {
|
|
6246
|
+
type: String,
|
|
6241
6247
|
reflect: true
|
|
6242
6248
|
},
|
|
6243
6249
|
|
|
@@ -6252,22 +6258,12 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6252
6258
|
/**
|
|
6253
6259
|
* If declared, the bib will NOT flip to an alternate position
|
|
6254
6260
|
* when there isn't enough space in the specified `placement`.
|
|
6255
|
-
* @default false
|
|
6256
6261
|
*/
|
|
6257
6262
|
noFlip: {
|
|
6258
6263
|
type: Boolean,
|
|
6259
6264
|
reflect: true
|
|
6260
6265
|
},
|
|
6261
6266
|
|
|
6262
|
-
/**
|
|
6263
|
-
* If set, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6264
|
-
* @default false
|
|
6265
|
-
*/
|
|
6266
|
-
shift: {
|
|
6267
|
-
type: Boolean,
|
|
6268
|
-
reflect: true
|
|
6269
|
-
},
|
|
6270
|
-
|
|
6271
6267
|
/**
|
|
6272
6268
|
* If set, disables auto-validation on blur.
|
|
6273
6269
|
*/
|
|
@@ -6286,13 +6282,21 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6286
6282
|
},
|
|
6287
6283
|
|
|
6288
6284
|
/**
|
|
6289
|
-
* DEPRECATED - use `appearance` instead.
|
|
6285
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
6290
6286
|
*/
|
|
6291
6287
|
onDark: {
|
|
6292
6288
|
type: Boolean,
|
|
6293
6289
|
reflect: true
|
|
6294
6290
|
},
|
|
6295
6291
|
|
|
6292
|
+
/**
|
|
6293
|
+
* @private
|
|
6294
|
+
*/
|
|
6295
|
+
options: {
|
|
6296
|
+
type: Array,
|
|
6297
|
+
state: true
|
|
6298
|
+
},
|
|
6299
|
+
|
|
6296
6300
|
/**
|
|
6297
6301
|
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
6298
6302
|
* @type {HTMLElement|Array<HTMLElement>}
|
|
@@ -6302,23 +6306,19 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6302
6306
|
},
|
|
6303
6307
|
|
|
6304
6308
|
/**
|
|
6305
|
-
*
|
|
6306
|
-
* Accepted values:
|
|
6307
|
-
* "top" | "right" | "bottom" | "left" |
|
|
6308
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
6309
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
6310
|
-
* "left-start" | "left-end".
|
|
6311
|
-
* @default bottom-start
|
|
6309
|
+
* Define custom placeholder text.
|
|
6312
6310
|
*/
|
|
6313
|
-
|
|
6311
|
+
placeholder: {
|
|
6314
6312
|
type: String,
|
|
6315
6313
|
reflect: true
|
|
6316
6314
|
},
|
|
6317
6315
|
|
|
6318
6316
|
/**
|
|
6319
|
-
*
|
|
6317
|
+
* Position where the bib should appear relative to the trigger.
|
|
6318
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
6319
|
+
* @default 'bottom-start'
|
|
6320
6320
|
*/
|
|
6321
|
-
|
|
6321
|
+
placement: {
|
|
6322
6322
|
type: String,
|
|
6323
6323
|
reflect: true
|
|
6324
6324
|
},
|
|
@@ -6331,14 +6331,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6331
6331
|
reflect: true
|
|
6332
6332
|
},
|
|
6333
6333
|
|
|
6334
|
-
/**
|
|
6335
|
-
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
6336
|
-
*/
|
|
6337
|
-
error: {
|
|
6338
|
-
type: String,
|
|
6339
|
-
reflect: true
|
|
6340
|
-
},
|
|
6341
|
-
|
|
6342
6334
|
/**
|
|
6343
6335
|
* Sets a custom help text message to display for all validityStates.
|
|
6344
6336
|
*/
|
|
@@ -6361,35 +6353,33 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6361
6353
|
},
|
|
6362
6354
|
|
|
6363
6355
|
/**
|
|
6364
|
-
*
|
|
6356
|
+
* Determines the shape of the dropdown bib.
|
|
6357
|
+
* @type {'classic' | 'pill' | 'pill-left' | 'pill-right' | 'snowflake'}
|
|
6365
6358
|
*/
|
|
6366
|
-
|
|
6359
|
+
shape: {
|
|
6367
6360
|
type: String,
|
|
6368
6361
|
reflect: true
|
|
6369
6362
|
},
|
|
6370
6363
|
|
|
6371
6364
|
/**
|
|
6372
|
-
*
|
|
6365
|
+
* If set, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6373
6366
|
*/
|
|
6374
|
-
|
|
6375
|
-
type:
|
|
6376
|
-
reflect: true
|
|
6377
|
-
attribute: 'value'
|
|
6367
|
+
shift: {
|
|
6368
|
+
type: Boolean,
|
|
6369
|
+
reflect: true
|
|
6378
6370
|
},
|
|
6379
6371
|
|
|
6380
6372
|
/**
|
|
6381
|
-
*
|
|
6373
|
+
* Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`.
|
|
6374
|
+
* @type {'lg' | 'xl'}
|
|
6382
6375
|
*/
|
|
6383
|
-
|
|
6384
|
-
type:
|
|
6385
|
-
reflect: true
|
|
6386
|
-
attribute: 'multiselect'
|
|
6376
|
+
size: {
|
|
6377
|
+
type: String,
|
|
6378
|
+
reflect: true
|
|
6387
6379
|
},
|
|
6388
6380
|
|
|
6389
6381
|
/**
|
|
6390
6382
|
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
6391
|
-
* @type {boolean}
|
|
6392
|
-
* @default false
|
|
6393
6383
|
* @private
|
|
6394
6384
|
*/
|
|
6395
6385
|
touched: {
|
|
@@ -6399,29 +6389,20 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6399
6389
|
},
|
|
6400
6390
|
|
|
6401
6391
|
/**
|
|
6402
|
-
*
|
|
6403
|
-
*/
|
|
6404
|
-
hasFocus: {
|
|
6405
|
-
type: Boolean,
|
|
6406
|
-
reflect: false,
|
|
6407
|
-
attribute: false
|
|
6408
|
-
},
|
|
6409
|
-
|
|
6410
|
-
/**
|
|
6411
|
-
* @private
|
|
6392
|
+
* Specifies the `validityState` this element is in.
|
|
6412
6393
|
*/
|
|
6413
|
-
|
|
6414
|
-
type:
|
|
6415
|
-
reflect:
|
|
6416
|
-
attribute: false
|
|
6394
|
+
validity: {
|
|
6395
|
+
type: String,
|
|
6396
|
+
reflect: true
|
|
6417
6397
|
},
|
|
6418
6398
|
|
|
6419
6399
|
/**
|
|
6420
|
-
*
|
|
6400
|
+
* Value selected for the component.
|
|
6421
6401
|
*/
|
|
6422
|
-
|
|
6423
|
-
type:
|
|
6424
|
-
|
|
6402
|
+
value: {
|
|
6403
|
+
type: String,
|
|
6404
|
+
reflect: true,
|
|
6405
|
+
attribute: 'value'
|
|
6425
6406
|
},
|
|
6426
6407
|
};
|
|
6427
6408
|
}
|
|
@@ -7417,7 +7398,7 @@ var styleCss = i$6`.body-default{font-family:var(--wcss-body-family, "AS Circula
|
|
|
7417
7398
|
|
|
7418
7399
|
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)}`;
|
|
7419
7400
|
|
|
7420
|
-
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;
|
|
7401
|
+
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}
|
|
7421
7402
|
`;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}
|
|
7422
7403
|
`;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)}
|
|
7423
7404
|
`;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)}
|
|
@@ -7474,12 +7455,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
7474
7455
|
|
|
7475
7456
|
|
|
7476
7457
|
/**
|
|
7477
|
-
* The auro-
|
|
7458
|
+
* The `auro-menuoption` element provides users a way to define a menu option.
|
|
7459
|
+
* @customElement auro-menuoption
|
|
7478
7460
|
*
|
|
7479
|
-
* @attr {String} value - Specifies the value to be sent to a server.
|
|
7480
|
-
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
7481
|
-
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
7482
|
-
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
7483
7461
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
7484
7462
|
* @slot - Specifies text for an option, but is not the value.
|
|
7485
7463
|
*/
|
|
@@ -7487,7 +7465,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7487
7465
|
|
|
7488
7466
|
/**
|
|
7489
7467
|
* This will register this element with the browser.
|
|
7490
|
-
* @param {string} [name="auro-menuoption"] - The name of element that you want to register
|
|
7468
|
+
* @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
|
|
7491
7469
|
*
|
|
7492
7470
|
* @example
|
|
7493
7471
|
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
@@ -7530,7 +7508,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7530
7508
|
this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, x);
|
|
7531
7509
|
|
|
7532
7510
|
this.selected = false;
|
|
7533
|
-
this.
|
|
7511
|
+
this.noCheckmark = false;
|
|
7534
7512
|
this.disabled = false;
|
|
7535
7513
|
|
|
7536
7514
|
/**
|
|
@@ -7551,38 +7529,81 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7551
7529
|
static get properties() {
|
|
7552
7530
|
return {
|
|
7553
7531
|
...super.properties,
|
|
7532
|
+
|
|
7533
|
+
/**
|
|
7534
|
+
* When true, disables the menu option.
|
|
7535
|
+
*/
|
|
7554
7536
|
disabled: {
|
|
7555
7537
|
type: Boolean,
|
|
7556
7538
|
reflect: true
|
|
7557
7539
|
},
|
|
7540
|
+
|
|
7541
|
+
/**
|
|
7542
|
+
* @private
|
|
7543
|
+
*/
|
|
7558
7544
|
event: {
|
|
7559
7545
|
type: String,
|
|
7560
7546
|
reflect: true
|
|
7561
7547
|
},
|
|
7548
|
+
|
|
7549
|
+
/**
|
|
7550
|
+
* @private
|
|
7551
|
+
*/
|
|
7552
|
+
layout: {
|
|
7553
|
+
type: String
|
|
7554
|
+
},
|
|
7555
|
+
|
|
7556
|
+
/**
|
|
7557
|
+
* 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.
|
|
7558
|
+
*/
|
|
7562
7559
|
key: {
|
|
7563
7560
|
type: String,
|
|
7564
7561
|
reflect: true
|
|
7565
7562
|
},
|
|
7563
|
+
|
|
7564
|
+
/**
|
|
7565
|
+
* @private
|
|
7566
|
+
*/
|
|
7566
7567
|
menuService: {
|
|
7567
7568
|
type: Object,
|
|
7568
7569
|
state: true
|
|
7569
7570
|
},
|
|
7571
|
+
|
|
7572
|
+
/**
|
|
7573
|
+
* @private
|
|
7574
|
+
*/
|
|
7570
7575
|
matchWord: {
|
|
7571
7576
|
type: String,
|
|
7572
7577
|
state: true
|
|
7573
7578
|
},
|
|
7574
|
-
|
|
7579
|
+
|
|
7580
|
+
/**
|
|
7581
|
+
* @private
|
|
7582
|
+
*/
|
|
7583
|
+
noCheckmark: {
|
|
7575
7584
|
type: Boolean,
|
|
7576
7585
|
reflect: true
|
|
7577
7586
|
},
|
|
7587
|
+
|
|
7588
|
+
/**
|
|
7589
|
+
* Specifies that an option is selected.
|
|
7590
|
+
*/
|
|
7578
7591
|
selected: {
|
|
7579
7592
|
type: Boolean,
|
|
7580
7593
|
reflect: true
|
|
7581
7594
|
},
|
|
7595
|
+
|
|
7596
|
+
/**
|
|
7597
|
+
* Specifies the tab index of the menu option.
|
|
7598
|
+
*/
|
|
7582
7599
|
tabIndex: {
|
|
7583
7600
|
type: Number,
|
|
7584
7601
|
reflect: true
|
|
7585
7602
|
},
|
|
7603
|
+
|
|
7604
|
+
/**
|
|
7605
|
+
* Specifies the value to be sent to a server.
|
|
7606
|
+
*/
|
|
7586
7607
|
value: {
|
|
7587
7608
|
type: String,
|
|
7588
7609
|
reflect: true
|
|
@@ -7906,7 +7927,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7906
7927
|
|
|
7907
7928
|
return u$4`
|
|
7908
7929
|
<div class="${classes}">
|
|
7909
|
-
${this.selected && !this.
|
|
7930
|
+
${this.selected && !this.noCheckmark
|
|
7910
7931
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
7911
7932
|
: undefined}
|
|
7912
7933
|
<slot></slot>
|
|
@@ -7948,6 +7969,15 @@ class MenuService {
|
|
|
7948
7969
|
return this.multiSelect ? values : values[0];
|
|
7949
7970
|
}
|
|
7950
7971
|
|
|
7972
|
+
/**
|
|
7973
|
+
* Gets the label(s) of the currently selected option(s).
|
|
7974
|
+
* @returns {string}
|
|
7975
|
+
*/
|
|
7976
|
+
get currentLabel() {
|
|
7977
|
+
const labels = (this.selectedOptions || []).map(option => option.textContent);
|
|
7978
|
+
return this.multiSelect ? labels.join(", ") : labels[0] || '';
|
|
7979
|
+
}
|
|
7980
|
+
|
|
7951
7981
|
/**
|
|
7952
7982
|
* Gets the string representation of the current value(s).
|
|
7953
7983
|
* For multi-select, this is a JSON stringified array.
|
|
@@ -8379,7 +8409,8 @@ class MenuService {
|
|
|
8379
8409
|
value: this.currentValue,
|
|
8380
8410
|
stringValue: this.stringValue,
|
|
8381
8411
|
keys: this.currentKeys,
|
|
8382
|
-
options: this.selectedOptions
|
|
8412
|
+
options: this.selectedOptions,
|
|
8413
|
+
label: this.currentLabel
|
|
8383
8414
|
};
|
|
8384
8415
|
|
|
8385
8416
|
// If only one option is selected, include its index
|
|
@@ -8523,19 +8554,9 @@ const MenuContext = n('menu-context');
|
|
|
8523
8554
|
|
|
8524
8555
|
|
|
8525
8556
|
/**
|
|
8526
|
-
* The auro-menu element provides users a way to select from a list of options.
|
|
8527
|
-
* @
|
|
8528
|
-
*
|
|
8529
|
-
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
8530
|
-
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
8531
|
-
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
8532
|
-
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
8533
|
-
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
8534
|
-
* @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
8535
|
-
* @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
8536
|
-
* @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
|
|
8537
|
-
* @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
|
|
8538
|
-
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
8557
|
+
* The `auro-menu` element provides users a way to select from a list of options.
|
|
8558
|
+
* @customElement auro-menu
|
|
8559
|
+
*
|
|
8539
8560
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
8540
8561
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
8541
8562
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
@@ -8626,58 +8647,87 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8626
8647
|
type: Boolean,
|
|
8627
8648
|
reflect: true,
|
|
8628
8649
|
},
|
|
8629
|
-
|
|
8630
|
-
|
|
8631
|
-
|
|
8632
|
-
|
|
8633
|
-
},
|
|
8650
|
+
|
|
8651
|
+
/**
|
|
8652
|
+
* When true, the entire menu and all options are disabled.
|
|
8653
|
+
*/
|
|
8634
8654
|
disabled: {
|
|
8635
8655
|
type: Boolean,
|
|
8636
8656
|
reflect: true
|
|
8637
8657
|
},
|
|
8658
|
+
|
|
8659
|
+
/**
|
|
8660
|
+
* Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
8661
|
+
*/
|
|
8662
|
+
hasLoadingPlaceholder: {
|
|
8663
|
+
type: Boolean
|
|
8664
|
+
},
|
|
8665
|
+
|
|
8666
|
+
/**
|
|
8667
|
+
* @private
|
|
8668
|
+
*/
|
|
8669
|
+
layout: {
|
|
8670
|
+
type: String
|
|
8671
|
+
},
|
|
8672
|
+
|
|
8673
|
+
/**
|
|
8674
|
+
* Indent level for submenus.
|
|
8675
|
+
* @private
|
|
8676
|
+
*/
|
|
8677
|
+
level: {
|
|
8678
|
+
type: Number,
|
|
8679
|
+
reflect: false,
|
|
8680
|
+
attribute: false
|
|
8681
|
+
},
|
|
8682
|
+
|
|
8683
|
+
/**
|
|
8684
|
+
* When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
8685
|
+
*/
|
|
8638
8686
|
loading: {
|
|
8639
8687
|
type: Boolean,
|
|
8640
8688
|
reflect: true
|
|
8641
8689
|
},
|
|
8642
|
-
|
|
8643
|
-
|
|
8644
|
-
|
|
8645
|
-
|
|
8646
|
-
optionActive: {
|
|
8647
|
-
type: Object,
|
|
8648
|
-
attribute: 'optionactive'
|
|
8649
|
-
},
|
|
8690
|
+
|
|
8691
|
+
/**
|
|
8692
|
+
* Specifies a string used to highlight matched string parts in options.
|
|
8693
|
+
*/
|
|
8650
8694
|
matchWord: {
|
|
8651
8695
|
type: String,
|
|
8652
8696
|
attribute: 'matchword'
|
|
8653
8697
|
},
|
|
8698
|
+
|
|
8699
|
+
/**
|
|
8700
|
+
* When true, the selected option can be multiple options.
|
|
8701
|
+
*/
|
|
8654
8702
|
multiSelect: {
|
|
8655
8703
|
type: Boolean,
|
|
8656
8704
|
reflect: true,
|
|
8657
8705
|
attribute: 'multiselect'
|
|
8658
8706
|
},
|
|
8659
|
-
|
|
8707
|
+
|
|
8708
|
+
/**
|
|
8709
|
+
* When true, selected option will not show the checkmark.
|
|
8710
|
+
*/
|
|
8711
|
+
noCheckmark: {
|
|
8660
8712
|
type: Boolean,
|
|
8661
8713
|
reflect: true,
|
|
8714
|
+
attribute: 'nocheckmark'
|
|
8662
8715
|
},
|
|
8663
8716
|
|
|
8664
8717
|
/**
|
|
8665
|
-
*
|
|
8718
|
+
* Specifies the current active menuOption.
|
|
8666
8719
|
*/
|
|
8667
|
-
|
|
8668
|
-
type:
|
|
8669
|
-
|
|
8670
|
-
attribute: 'value'
|
|
8720
|
+
optionActive: {
|
|
8721
|
+
type: Object,
|
|
8722
|
+
attribute: 'optionactive'
|
|
8671
8723
|
},
|
|
8672
8724
|
|
|
8673
8725
|
/**
|
|
8674
|
-
*
|
|
8675
|
-
* @private
|
|
8726
|
+
* An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
|
|
8676
8727
|
*/
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
attribute: false
|
|
8728
|
+
optionSelected: {
|
|
8729
|
+
// Allow HTMLElement, HTMLElement[] arrays and undefined
|
|
8730
|
+
type: Object
|
|
8681
8731
|
},
|
|
8682
8732
|
|
|
8683
8733
|
/**
|
|
@@ -8688,6 +8738,43 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8688
8738
|
type: Array,
|
|
8689
8739
|
reflect: false,
|
|
8690
8740
|
attribute: false
|
|
8741
|
+
},
|
|
8742
|
+
|
|
8743
|
+
/**
|
|
8744
|
+
* Sets the size of the menu.
|
|
8745
|
+
* @type {'sm' | 'md'}
|
|
8746
|
+
* @default 'sm'
|
|
8747
|
+
*/
|
|
8748
|
+
size: {
|
|
8749
|
+
type: String,
|
|
8750
|
+
reflect: true
|
|
8751
|
+
},
|
|
8752
|
+
|
|
8753
|
+
/**
|
|
8754
|
+
* When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
8755
|
+
*/
|
|
8756
|
+
selectAllMatchingOptions: {
|
|
8757
|
+
type: Boolean,
|
|
8758
|
+
reflect: true,
|
|
8759
|
+
},
|
|
8760
|
+
|
|
8761
|
+
/**
|
|
8762
|
+
* Sets the shape of the menu.
|
|
8763
|
+
* @type {'box' | 'round'}
|
|
8764
|
+
* @default 'box'
|
|
8765
|
+
*/
|
|
8766
|
+
shape: {
|
|
8767
|
+
type: String,
|
|
8768
|
+
reflect: true
|
|
8769
|
+
},
|
|
8770
|
+
|
|
8771
|
+
/**
|
|
8772
|
+
* The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
8773
|
+
*/
|
|
8774
|
+
value: {
|
|
8775
|
+
type: String,
|
|
8776
|
+
reflect: true,
|
|
8777
|
+
attribute: 'value'
|
|
8691
8778
|
}
|
|
8692
8779
|
};
|
|
8693
8780
|
}
|
|
@@ -8700,6 +8787,14 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8700
8787
|
];
|
|
8701
8788
|
}
|
|
8702
8789
|
|
|
8790
|
+
/**
|
|
8791
|
+
* @readonly
|
|
8792
|
+
* @returns {string} - Returns the label of the currently selected option(s).
|
|
8793
|
+
*/
|
|
8794
|
+
get currentLabel() {
|
|
8795
|
+
return this.menuService.currentLabel;
|
|
8796
|
+
};
|
|
8797
|
+
|
|
8703
8798
|
/**
|
|
8704
8799
|
* @readonly
|
|
8705
8800
|
* @returns {Array<HTMLElement>} - Returns the array of available menu options.
|
|
@@ -8725,7 +8820,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8725
8820
|
|
|
8726
8821
|
/**
|
|
8727
8822
|
* This will register this element with the browser.
|
|
8728
|
-
* @param {string} [name="auro-menu"] - The name of element that you want to register
|
|
8823
|
+
* @param {string} [name="auro-menu"] - The name of the element that you want to register.
|
|
8729
8824
|
*
|
|
8730
8825
|
* @example
|
|
8731
8826
|
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|
|
@@ -9148,7 +9243,7 @@ function initExamples(initCount) {
|
|
|
9148
9243
|
valueAlertExample();
|
|
9149
9244
|
inDialogExample();
|
|
9150
9245
|
resetStateExample();
|
|
9151
|
-
auroMenuLoadingExample();
|
|
9246
|
+
// auroMenuLoadingExample();
|
|
9152
9247
|
} catch (err) {
|
|
9153
9248
|
if (initCount <= 20) {
|
|
9154
9249
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|