@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
|
@@ -1297,9 +1297,8 @@ function getOppositeAxis(axis) {
|
|
|
1297
1297
|
function getAxisLength(axis) {
|
|
1298
1298
|
return axis === 'y' ? 'height' : 'width';
|
|
1299
1299
|
}
|
|
1300
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
1301
1300
|
function getSideAxis(placement) {
|
|
1302
|
-
return
|
|
1301
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
1303
1302
|
}
|
|
1304
1303
|
function getAlignmentAxis(placement) {
|
|
1305
1304
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -1324,19 +1323,19 @@ function getExpandedPlacements(placement) {
|
|
|
1324
1323
|
function getOppositeAlignmentPlacement(placement) {
|
|
1325
1324
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
1326
1325
|
}
|
|
1327
|
-
const lrPlacement = ['left', 'right'];
|
|
1328
|
-
const rlPlacement = ['right', 'left'];
|
|
1329
|
-
const tbPlacement = ['top', 'bottom'];
|
|
1330
|
-
const btPlacement = ['bottom', 'top'];
|
|
1331
1326
|
function getSideList(side, isStart, rtl) {
|
|
1327
|
+
const lr = ['left', 'right'];
|
|
1328
|
+
const rl = ['right', 'left'];
|
|
1329
|
+
const tb = ['top', 'bottom'];
|
|
1330
|
+
const bt = ['bottom', 'top'];
|
|
1332
1331
|
switch (side) {
|
|
1333
1332
|
case 'top':
|
|
1334
1333
|
case 'bottom':
|
|
1335
|
-
if (rtl) return isStart ?
|
|
1336
|
-
return isStart ?
|
|
1334
|
+
if (rtl) return isStart ? rl : lr;
|
|
1335
|
+
return isStart ? lr : rl;
|
|
1337
1336
|
case 'left':
|
|
1338
1337
|
case 'right':
|
|
1339
|
-
return isStart ?
|
|
1338
|
+
return isStart ? tb : bt;
|
|
1340
1339
|
default:
|
|
1341
1340
|
return [];
|
|
1342
1341
|
}
|
|
@@ -1777,22 +1776,16 @@ const flip$1 = function (options) {
|
|
|
1777
1776
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1778
1777
|
const nextPlacement = placements[nextIndex];
|
|
1779
1778
|
if (nextPlacement) {
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
},
|
|
1791
|
-
reset: {
|
|
1792
|
-
placement: nextPlacement
|
|
1793
|
-
}
|
|
1794
|
-
};
|
|
1795
|
-
}
|
|
1779
|
+
// Try next placement and re-run the lifecycle.
|
|
1780
|
+
return {
|
|
1781
|
+
data: {
|
|
1782
|
+
index: nextIndex,
|
|
1783
|
+
overflows: overflowsData
|
|
1784
|
+
},
|
|
1785
|
+
reset: {
|
|
1786
|
+
placement: nextPlacement
|
|
1787
|
+
}
|
|
1788
|
+
};
|
|
1796
1789
|
}
|
|
1797
1790
|
|
|
1798
1791
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -1838,8 +1831,6 @@ const flip$1 = function (options) {
|
|
|
1838
1831
|
};
|
|
1839
1832
|
};
|
|
1840
1833
|
|
|
1841
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
1842
|
-
|
|
1843
1834
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
1844
1835
|
// Derivable.
|
|
1845
1836
|
|
|
@@ -1853,7 +1844,7 @@ async function convertValueToCoords(state, options) {
|
|
|
1853
1844
|
const side = getSide(placement);
|
|
1854
1845
|
const alignment = getAlignment(placement);
|
|
1855
1846
|
const isVertical = getSideAxis(placement) === 'y';
|
|
1856
|
-
const mainAxisMulti =
|
|
1847
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
1857
1848
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
1858
1849
|
const rawValue = evaluate(options, state);
|
|
1859
1850
|
|
|
@@ -2046,7 +2037,6 @@ function isShadowRoot(value) {
|
|
|
2046
2037
|
}
|
|
2047
2038
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
2048
2039
|
}
|
|
2049
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
2050
2040
|
function isOverflowElement(element) {
|
|
2051
2041
|
const {
|
|
2052
2042
|
overflow,
|
|
@@ -2054,32 +2044,27 @@ function isOverflowElement(element) {
|
|
|
2054
2044
|
overflowY,
|
|
2055
2045
|
display
|
|
2056
2046
|
} = getComputedStyle$1(element);
|
|
2057
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
2047
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
2058
2048
|
}
|
|
2059
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
2060
2049
|
function isTableElement(element) {
|
|
2061
|
-
return
|
|
2050
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
2062
2051
|
}
|
|
2063
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
2064
2052
|
function isTopLayer(element) {
|
|
2065
|
-
return
|
|
2053
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
2066
2054
|
try {
|
|
2067
2055
|
return element.matches(selector);
|
|
2068
|
-
} catch (
|
|
2056
|
+
} catch (e) {
|
|
2069
2057
|
return false;
|
|
2070
2058
|
}
|
|
2071
2059
|
});
|
|
2072
2060
|
}
|
|
2073
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
2074
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
2075
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
2076
2061
|
function isContainingBlock(elementOrCss) {
|
|
2077
2062
|
const webkit = isWebKit();
|
|
2078
2063
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2079
2064
|
|
|
2080
2065
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2081
2066
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2082
|
-
return
|
|
2067
|
+
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));
|
|
2083
2068
|
}
|
|
2084
2069
|
function getContainingBlock(element) {
|
|
2085
2070
|
let currentNode = getParentNode(element);
|
|
@@ -2097,9 +2082,8 @@ function isWebKit() {
|
|
|
2097
2082
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
2098
2083
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
2099
2084
|
}
|
|
2100
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
2101
2085
|
function isLastTraversableNode(node) {
|
|
2102
|
-
return
|
|
2086
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
2103
2087
|
}
|
|
2104
2088
|
function getComputedStyle$1(element) {
|
|
2105
2089
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -2404,7 +2388,6 @@ function getViewportRect(element, strategy) {
|
|
|
2404
2388
|
};
|
|
2405
2389
|
}
|
|
2406
2390
|
|
|
2407
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
2408
2391
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
2409
2392
|
function getInnerBoundingClientRect(element, strategy) {
|
|
2410
2393
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -2469,7 +2452,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
2469
2452
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
2470
2453
|
currentContainingBlockComputedStyle = null;
|
|
2471
2454
|
}
|
|
2472
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
2455
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
2473
2456
|
if (shouldDropCurrentNode) {
|
|
2474
2457
|
// Drop non-containing blocks.
|
|
2475
2458
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -2532,12 +2515,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2532
2515
|
scrollTop: 0
|
|
2533
2516
|
};
|
|
2534
2517
|
const offsets = createCoords(0);
|
|
2535
|
-
|
|
2536
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2537
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2538
|
-
function setLeftRTLScrollbarOffset() {
|
|
2539
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
2540
|
-
}
|
|
2541
2518
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
2542
2519
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
2543
2520
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -2547,12 +2524,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2547
2524
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2548
2525
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2549
2526
|
} else if (documentElement) {
|
|
2550
|
-
|
|
2527
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2528
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2529
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
2551
2530
|
}
|
|
2552
2531
|
}
|
|
2553
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
2554
|
-
setLeftRTLScrollbarOffset();
|
|
2555
|
-
}
|
|
2556
2532
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2557
2533
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2558
2534
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -2729,7 +2705,7 @@ function observeMove(element, onMove) {
|
|
|
2729
2705
|
// Handle <iframe>s
|
|
2730
2706
|
root: root.ownerDocument
|
|
2731
2707
|
});
|
|
2732
|
-
} catch (
|
|
2708
|
+
} catch (e) {
|
|
2733
2709
|
io = new IntersectionObserver(handleObserve, options);
|
|
2734
2710
|
}
|
|
2735
2711
|
io.observe(element);
|
|
@@ -3819,7 +3795,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
3819
3795
|
}
|
|
3820
3796
|
};
|
|
3821
3797
|
|
|
3822
|
-
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;
|
|
3798
|
+
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}
|
|
3823
3799
|
`;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}
|
|
3824
3800
|
`;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)}
|
|
3825
3801
|
`;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)}
|
|
@@ -3843,7 +3819,7 @@ let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
3843
3819
|
</div>
|
|
3844
3820
|
`}};
|
|
3845
3821
|
|
|
3846
|
-
var iconVersion$2 = '9.1.
|
|
3822
|
+
var iconVersion$2 = '9.1.1';
|
|
3847
3823
|
|
|
3848
3824
|
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}`;
|
|
3849
3825
|
|
|
@@ -4284,7 +4260,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$3 {
|
|
|
4284
4260
|
}
|
|
4285
4261
|
};
|
|
4286
4262
|
|
|
4287
|
-
var formkitVersion$1 = '
|
|
4263
|
+
var formkitVersion$1 = '202601271813';
|
|
4288
4264
|
|
|
4289
4265
|
class AuroElement extends i$3 {
|
|
4290
4266
|
static get properties() {
|
|
@@ -4390,12 +4366,14 @@ class AuroElement extends i$3 {
|
|
|
4390
4366
|
}
|
|
4391
4367
|
}
|
|
4392
4368
|
|
|
4393
|
-
// Copyright (c)
|
|
4369
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4394
4370
|
// See LICENSE in the project root for license information.
|
|
4395
4371
|
|
|
4396
4372
|
|
|
4397
|
-
|
|
4398
|
-
|
|
4373
|
+
/**
|
|
4374
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
4375
|
+
* @customElement auro-dropdown
|
|
4376
|
+
*
|
|
4399
4377
|
* @slot - Default slot for the popover content.
|
|
4400
4378
|
* @slot helpText - Defines the content of the helpText.
|
|
4401
4379
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -4431,7 +4409,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4431
4409
|
/** @private */
|
|
4432
4410
|
this.bibElement = e$1();
|
|
4433
4411
|
|
|
4434
|
-
this.
|
|
4412
|
+
this._intializeDefaults();
|
|
4435
4413
|
}
|
|
4436
4414
|
|
|
4437
4415
|
/**
|
|
@@ -4452,7 +4430,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4452
4430
|
* @private
|
|
4453
4431
|
* @returns {void} Internal defaults.
|
|
4454
4432
|
*/
|
|
4455
|
-
|
|
4433
|
+
_intializeDefaults() {
|
|
4456
4434
|
this.appearance = 'default';
|
|
4457
4435
|
this.chevron = false;
|
|
4458
4436
|
this.disabled = false;
|
|
@@ -4573,9 +4551,18 @@ class AuroDropdown extends AuroElement {
|
|
|
4573
4551
|
static get properties() {
|
|
4574
4552
|
return {
|
|
4575
4553
|
|
|
4554
|
+
/**
|
|
4555
|
+
* The value for the role attribute of the trigger element.
|
|
4556
|
+
*/
|
|
4557
|
+
a11yRole: {
|
|
4558
|
+
type: String || undefined,
|
|
4559
|
+
attribute: false,
|
|
4560
|
+
reflect: false
|
|
4561
|
+
},
|
|
4562
|
+
|
|
4576
4563
|
/**
|
|
4577
4564
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
4578
|
-
* @
|
|
4565
|
+
* @type {'default' | 'inverse'}
|
|
4579
4566
|
* @default 'default'
|
|
4580
4567
|
*/
|
|
4581
4568
|
appearance: {
|
|
@@ -4585,7 +4572,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4585
4572
|
|
|
4586
4573
|
/**
|
|
4587
4574
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
4588
|
-
* @default false
|
|
4589
4575
|
*/
|
|
4590
4576
|
autoPlacement: {
|
|
4591
4577
|
type: Boolean,
|
|
@@ -4594,7 +4580,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4594
4580
|
|
|
4595
4581
|
/**
|
|
4596
4582
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
4597
|
-
* @default false
|
|
4598
4583
|
*/
|
|
4599
4584
|
disableEventShow: {
|
|
4600
4585
|
type: Boolean,
|
|
@@ -4611,11 +4596,11 @@ class AuroDropdown extends AuroElement {
|
|
|
4611
4596
|
|
|
4612
4597
|
/**
|
|
4613
4598
|
* If declared, the dropdown displays a chevron on the right.
|
|
4614
|
-
* @attr {Boolean} chevron
|
|
4615
4599
|
*/
|
|
4616
4600
|
chevron: {
|
|
4617
4601
|
type: Boolean,
|
|
4618
|
-
reflect: true
|
|
4602
|
+
reflect: true,
|
|
4603
|
+
attribute: 'chevron'
|
|
4619
4604
|
},
|
|
4620
4605
|
|
|
4621
4606
|
/**
|
|
@@ -4652,7 +4637,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4652
4637
|
},
|
|
4653
4638
|
|
|
4654
4639
|
/**
|
|
4655
|
-
* If declared
|
|
4640
|
+
* If declared, will apply error UI to the dropdown.
|
|
4656
4641
|
*/
|
|
4657
4642
|
error: {
|
|
4658
4643
|
type: Boolean,
|
|
@@ -4707,18 +4692,28 @@ class AuroDropdown extends AuroElement {
|
|
|
4707
4692
|
},
|
|
4708
4693
|
|
|
4709
4694
|
/**
|
|
4710
|
-
* Defines the screen size breakpoint
|
|
4711
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4695
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4712
4696
|
*
|
|
4713
4697
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4714
4698
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4715
|
-
* @
|
|
4699
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
4700
|
+
* @default 'sm'
|
|
4716
4701
|
*/
|
|
4717
4702
|
fullscreenBreakpoint: {
|
|
4718
4703
|
type: String,
|
|
4719
4704
|
reflect: true
|
|
4720
4705
|
},
|
|
4721
4706
|
|
|
4707
|
+
/**
|
|
4708
|
+
* Sets the layout of the dropdown.
|
|
4709
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
4710
|
+
* @default 'classic'
|
|
4711
|
+
*/
|
|
4712
|
+
layout: {
|
|
4713
|
+
type: String,
|
|
4714
|
+
reflect: true
|
|
4715
|
+
},
|
|
4716
|
+
|
|
4722
4717
|
/**
|
|
4723
4718
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
4724
4719
|
* @private
|
|
@@ -4739,7 +4734,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4739
4734
|
/**
|
|
4740
4735
|
* If declared, the bib will NOT flip to an alternate position
|
|
4741
4736
|
* when there isn't enough space in the specified `placement`.
|
|
4742
|
-
* @default false
|
|
4743
4737
|
*/
|
|
4744
4738
|
noFlip: {
|
|
4745
4739
|
type: Boolean,
|
|
@@ -4748,7 +4742,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4748
4742
|
|
|
4749
4743
|
/**
|
|
4750
4744
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4751
|
-
* @default false
|
|
4752
4745
|
*/
|
|
4753
4746
|
shift: {
|
|
4754
4747
|
type: Boolean,
|
|
@@ -4781,7 +4774,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4781
4774
|
},
|
|
4782
4775
|
|
|
4783
4776
|
/**
|
|
4784
|
-
* DEPRECATED - use `appearance` instead.
|
|
4777
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
4785
4778
|
*/
|
|
4786
4779
|
onDark: {
|
|
4787
4780
|
type: Boolean,
|
|
@@ -4798,7 +4791,8 @@ class AuroDropdown extends AuroElement {
|
|
|
4798
4791
|
|
|
4799
4792
|
/**
|
|
4800
4793
|
* Position where the bib should appear relative to the trigger.
|
|
4801
|
-
* @
|
|
4794
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
4795
|
+
* @default 'bottom-start'
|
|
4802
4796
|
*/
|
|
4803
4797
|
placement: {
|
|
4804
4798
|
type: String,
|
|
@@ -4810,15 +4804,6 @@ class AuroDropdown extends AuroElement {
|
|
|
4810
4804
|
*/
|
|
4811
4805
|
tabIndex: {
|
|
4812
4806
|
type: Number
|
|
4813
|
-
},
|
|
4814
|
-
|
|
4815
|
-
/**
|
|
4816
|
-
* The value for the role attribute of the trigger element.
|
|
4817
|
-
*/
|
|
4818
|
-
a11yRole: {
|
|
4819
|
-
type: String || undefined,
|
|
4820
|
-
attribute: false,
|
|
4821
|
-
reflect: false
|
|
4822
4807
|
}
|
|
4823
4808
|
};
|
|
4824
4809
|
}
|
|
@@ -4845,7 +4830,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4845
4830
|
|
|
4846
4831
|
/**
|
|
4847
4832
|
* This will register this element with the browser.
|
|
4848
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
4833
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
4849
4834
|
*
|
|
4850
4835
|
* @example
|
|
4851
4836
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -5515,7 +5500,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
5515
5500
|
|
|
5516
5501
|
var buttonVersion = '12.3.0';
|
|
5517
5502
|
|
|
5518
|
-
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;
|
|
5503
|
+
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}
|
|
5519
5504
|
`;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}
|
|
5520
5505
|
`;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)}
|
|
5521
5506
|
`;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)}
|
|
@@ -5539,7 +5524,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
5539
5524
|
</div>
|
|
5540
5525
|
`}};
|
|
5541
5526
|
|
|
5542
|
-
var iconVersion$1 = '9.1.
|
|
5527
|
+
var iconVersion$1 = '9.1.1';
|
|
5543
5528
|
|
|
5544
5529
|
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)}
|
|
5545
5530
|
`;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)}}
|
|
@@ -5922,19 +5907,20 @@ class AuroHelpText extends i$3 {
|
|
|
5922
5907
|
}
|
|
5923
5908
|
}
|
|
5924
5909
|
|
|
5925
|
-
var formkitVersion = '
|
|
5910
|
+
var formkitVersion = '202601271813';
|
|
5926
5911
|
|
|
5927
5912
|
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}`;
|
|
5928
5913
|
|
|
5929
5914
|
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))}`;
|
|
5930
5915
|
|
|
5931
|
-
// Copyright (c)
|
|
5916
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5932
5917
|
// See LICENSE in the project root for license information.
|
|
5933
5918
|
|
|
5934
5919
|
|
|
5935
5920
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
5936
5921
|
/**
|
|
5937
|
-
* The auro-select element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
5922
|
+
* The `auro-select` element is a wrapper for auro-dropdown and auro-menu to create a dropdown menu control.
|
|
5923
|
+
* @customElement auro-select
|
|
5938
5924
|
*
|
|
5939
5925
|
* @slot - Default slot for the menu content.
|
|
5940
5926
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
@@ -5947,10 +5933,9 @@ var emphasizedColorCss = i$6`:host([layout=emphasized]) [auro-dropdown]{--ds-aur
|
|
|
5947
5933
|
* @event auroSelect-valueSet - Notifies that the component has a new value set.
|
|
5948
5934
|
* @event input - Notifies every time the value prop of the element is changed. The updated `value` and `optionSelected` will be delivered in `detail` object.
|
|
5949
5935
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` values have changed.
|
|
5950
|
-
*
|
|
5951
5936
|
* @csspart dropdownTrigger - Apply CSS to the trigger content container.
|
|
5952
5937
|
* @csspart dropdownChevron - Apply CSS to the collapsed/expanded state icon container.
|
|
5953
|
-
* @csspart dropdownSize - Apply size styles to the dropdown bib
|
|
5938
|
+
* @csspart dropdownSize - Apply size styles to the dropdown bib (height, width, maxHeight, maxWidth only).
|
|
5954
5939
|
* @csspart helpText - Apply CSS to the help text.
|
|
5955
5940
|
*/
|
|
5956
5941
|
|
|
@@ -5959,7 +5944,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
5959
5944
|
constructor() {
|
|
5960
5945
|
super();
|
|
5961
5946
|
|
|
5962
|
-
this.
|
|
5947
|
+
this._initializeDefaults();
|
|
5963
5948
|
|
|
5964
5949
|
const idLength = 36;
|
|
5965
5950
|
const idSubstrEnd = 8;
|
|
@@ -6033,7 +6018,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6033
6018
|
* @private
|
|
6034
6019
|
* @returns {void} Internal defaults.
|
|
6035
6020
|
*/
|
|
6036
|
-
|
|
6021
|
+
_initializeDefaults() {
|
|
6037
6022
|
this.appearance = 'default';
|
|
6038
6023
|
this.value = undefined;
|
|
6039
6024
|
this.fullscreenBreakpoint = 'sm';
|
|
@@ -6054,7 +6039,7 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6054
6039
|
|
|
6055
6040
|
/**
|
|
6056
6041
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
6057
|
-
* @
|
|
6042
|
+
* @type {'default' | 'inverse'}
|
|
6058
6043
|
* @default 'default'
|
|
6059
6044
|
*/
|
|
6060
6045
|
appearance: {
|
|
@@ -6062,6 +6047,14 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6062
6047
|
reflect: true
|
|
6063
6048
|
},
|
|
6064
6049
|
|
|
6050
|
+
/**
|
|
6051
|
+
* If declared, bib's position will be automatically calculated where to appear.
|
|
6052
|
+
*/
|
|
6053
|
+
autoPlacement: {
|
|
6054
|
+
type: Boolean,
|
|
6055
|
+
reflect: true
|
|
6056
|
+
},
|
|
6057
|
+
|
|
6065
6058
|
/**
|
|
6066
6059
|
* If declared, sets the autocomplete attribute for the select element.
|
|
6067
6060
|
*/
|
|
@@ -6071,28 +6064,27 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6071
6064
|
},
|
|
6072
6065
|
|
|
6073
6066
|
/**
|
|
6074
|
-
*
|
|
6067
|
+
* When attribute is present, element shows disabled state.
|
|
6075
6068
|
*/
|
|
6076
|
-
|
|
6069
|
+
disabled: {
|
|
6077
6070
|
type: Boolean,
|
|
6078
6071
|
reflect: true
|
|
6079
6072
|
},
|
|
6080
6073
|
|
|
6081
6074
|
/**
|
|
6082
|
-
*
|
|
6083
|
-
* @default false
|
|
6075
|
+
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
6084
6076
|
*/
|
|
6085
|
-
|
|
6086
|
-
type:
|
|
6077
|
+
error: {
|
|
6078
|
+
type: String,
|
|
6087
6079
|
reflect: true
|
|
6088
6080
|
},
|
|
6089
6081
|
|
|
6090
6082
|
/**
|
|
6091
|
-
*
|
|
6083
|
+
* If declared, make the width of the bib match the width of the content, rather than the trigger.
|
|
6092
6084
|
*/
|
|
6093
|
-
|
|
6085
|
+
flexMenuWidth: {
|
|
6094
6086
|
type: Boolean,
|
|
6095
|
-
reflect: true
|
|
6087
|
+
reflect: true,
|
|
6096
6088
|
},
|
|
6097
6089
|
|
|
6098
6090
|
/**
|
|
@@ -6103,6 +6095,45 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6103
6095
|
reflect: true
|
|
6104
6096
|
},
|
|
6105
6097
|
|
|
6098
|
+
/**
|
|
6099
|
+
* If declared, the label and value will be visually hidden and the displayValue will render 100% of the time.
|
|
6100
|
+
*/
|
|
6101
|
+
forceDisplayValue: {
|
|
6102
|
+
type: Boolean,
|
|
6103
|
+
reflect: true
|
|
6104
|
+
},
|
|
6105
|
+
|
|
6106
|
+
/**
|
|
6107
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6108
|
+
*
|
|
6109
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6110
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6111
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
6112
|
+
* @default 'sm'
|
|
6113
|
+
*/
|
|
6114
|
+
fullscreenBreakpoint: {
|
|
6115
|
+
type: String,
|
|
6116
|
+
reflect: true
|
|
6117
|
+
},
|
|
6118
|
+
|
|
6119
|
+
/**
|
|
6120
|
+
* @private
|
|
6121
|
+
*/
|
|
6122
|
+
hasDisplayValueContent: {
|
|
6123
|
+
type: Boolean,
|
|
6124
|
+
reflect: false,
|
|
6125
|
+
attribute: false
|
|
6126
|
+
},
|
|
6127
|
+
|
|
6128
|
+
/**
|
|
6129
|
+
* @private
|
|
6130
|
+
*/
|
|
6131
|
+
hasFocus: {
|
|
6132
|
+
type: Boolean,
|
|
6133
|
+
reflect: false,
|
|
6134
|
+
attribute: false
|
|
6135
|
+
},
|
|
6136
|
+
|
|
6106
6137
|
/**
|
|
6107
6138
|
* @private
|
|
6108
6139
|
*/
|
|
@@ -6112,40 +6143,46 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6112
6143
|
},
|
|
6113
6144
|
|
|
6114
6145
|
/**
|
|
6115
|
-
* If declared,
|
|
6146
|
+
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
6147
|
+
* Otherwise, Heading 600.
|
|
6116
6148
|
*/
|
|
6117
|
-
|
|
6149
|
+
largeFullscreenHeadline: {
|
|
6118
6150
|
type: Boolean,
|
|
6119
6151
|
reflect: true
|
|
6120
6152
|
},
|
|
6121
6153
|
|
|
6122
6154
|
/**
|
|
6123
|
-
*
|
|
6155
|
+
* Determines the overall layout of the select component.
|
|
6156
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
6157
|
+
* @default 'classic'
|
|
6124
6158
|
*/
|
|
6125
|
-
|
|
6159
|
+
layout: {
|
|
6126
6160
|
type: String,
|
|
6127
6161
|
reflect: true
|
|
6128
6162
|
},
|
|
6129
6163
|
|
|
6130
6164
|
/**
|
|
6131
|
-
*
|
|
6132
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6133
|
-
*
|
|
6134
|
-
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6135
|
-
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6136
|
-
* @default sm
|
|
6165
|
+
* If declared, the popover and trigger will be set to the same width.
|
|
6137
6166
|
*/
|
|
6138
|
-
|
|
6139
|
-
type:
|
|
6167
|
+
matchWidth: {
|
|
6168
|
+
type: Boolean,
|
|
6140
6169
|
reflect: true
|
|
6141
6170
|
},
|
|
6142
6171
|
|
|
6143
6172
|
/**
|
|
6144
|
-
*
|
|
6145
|
-
* Otherwise, Heading 600.
|
|
6173
|
+
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
6146
6174
|
*/
|
|
6147
|
-
|
|
6175
|
+
multiSelect: {
|
|
6148
6176
|
type: Boolean,
|
|
6177
|
+
reflect: true,
|
|
6178
|
+
attribute: 'multiselect'
|
|
6179
|
+
},
|
|
6180
|
+
|
|
6181
|
+
/**
|
|
6182
|
+
* The name for the select element.
|
|
6183
|
+
*/
|
|
6184
|
+
name: {
|
|
6185
|
+
type: String,
|
|
6149
6186
|
reflect: true
|
|
6150
6187
|
},
|
|
6151
6188
|
|
|
@@ -6160,22 +6197,12 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6160
6197
|
/**
|
|
6161
6198
|
* If declared, the bib will NOT flip to an alternate position
|
|
6162
6199
|
* when there isn't enough space in the specified `placement`.
|
|
6163
|
-
* @default false
|
|
6164
6200
|
*/
|
|
6165
6201
|
noFlip: {
|
|
6166
6202
|
type: Boolean,
|
|
6167
6203
|
reflect: true
|
|
6168
6204
|
},
|
|
6169
6205
|
|
|
6170
|
-
/**
|
|
6171
|
-
* If set, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6172
|
-
* @default false
|
|
6173
|
-
*/
|
|
6174
|
-
shift: {
|
|
6175
|
-
type: Boolean,
|
|
6176
|
-
reflect: true
|
|
6177
|
-
},
|
|
6178
|
-
|
|
6179
6206
|
/**
|
|
6180
6207
|
* If set, disables auto-validation on blur.
|
|
6181
6208
|
*/
|
|
@@ -6194,13 +6221,21 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6194
6221
|
},
|
|
6195
6222
|
|
|
6196
6223
|
/**
|
|
6197
|
-
* DEPRECATED - use `appearance` instead.
|
|
6224
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
6198
6225
|
*/
|
|
6199
6226
|
onDark: {
|
|
6200
6227
|
type: Boolean,
|
|
6201
6228
|
reflect: true
|
|
6202
6229
|
},
|
|
6203
6230
|
|
|
6231
|
+
/**
|
|
6232
|
+
* @private
|
|
6233
|
+
*/
|
|
6234
|
+
options: {
|
|
6235
|
+
type: Array,
|
|
6236
|
+
state: true
|
|
6237
|
+
},
|
|
6238
|
+
|
|
6204
6239
|
/**
|
|
6205
6240
|
* Specifies the current selected menuOption. Default type is `HTMLElement`, changing to `Array<HTMLElement>` when `multiSelect` is true.
|
|
6206
6241
|
* @type {HTMLElement|Array<HTMLElement>}
|
|
@@ -6210,23 +6245,19 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6210
6245
|
},
|
|
6211
6246
|
|
|
6212
6247
|
/**
|
|
6213
|
-
*
|
|
6214
|
-
* Accepted values:
|
|
6215
|
-
* "top" | "right" | "bottom" | "left" |
|
|
6216
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
6217
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
6218
|
-
* "left-start" | "left-end".
|
|
6219
|
-
* @default bottom-start
|
|
6248
|
+
* Define custom placeholder text.
|
|
6220
6249
|
*/
|
|
6221
|
-
|
|
6250
|
+
placeholder: {
|
|
6222
6251
|
type: String,
|
|
6223
6252
|
reflect: true
|
|
6224
6253
|
},
|
|
6225
6254
|
|
|
6226
6255
|
/**
|
|
6227
|
-
*
|
|
6256
|
+
* Position where the bib should appear relative to the trigger.
|
|
6257
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
6258
|
+
* @default 'bottom-start'
|
|
6228
6259
|
*/
|
|
6229
|
-
|
|
6260
|
+
placement: {
|
|
6230
6261
|
type: String,
|
|
6231
6262
|
reflect: true
|
|
6232
6263
|
},
|
|
@@ -6239,14 +6270,6 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6239
6270
|
reflect: true
|
|
6240
6271
|
},
|
|
6241
6272
|
|
|
6242
|
-
/**
|
|
6243
|
-
* When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value.
|
|
6244
|
-
*/
|
|
6245
|
-
error: {
|
|
6246
|
-
type: String,
|
|
6247
|
-
reflect: true
|
|
6248
|
-
},
|
|
6249
|
-
|
|
6250
6273
|
/**
|
|
6251
6274
|
* Sets a custom help text message to display for all validityStates.
|
|
6252
6275
|
*/
|
|
@@ -6269,35 +6292,33 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6269
6292
|
},
|
|
6270
6293
|
|
|
6271
6294
|
/**
|
|
6272
|
-
*
|
|
6295
|
+
* Determines the shape of the dropdown bib.
|
|
6296
|
+
* @type {'classic' | 'pill' | 'pill-left' | 'pill-right' | 'snowflake'}
|
|
6273
6297
|
*/
|
|
6274
|
-
|
|
6298
|
+
shape: {
|
|
6275
6299
|
type: String,
|
|
6276
6300
|
reflect: true
|
|
6277
6301
|
},
|
|
6278
6302
|
|
|
6279
6303
|
/**
|
|
6280
|
-
*
|
|
6304
|
+
* If set, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6281
6305
|
*/
|
|
6282
|
-
|
|
6283
|
-
type:
|
|
6284
|
-
reflect: true
|
|
6285
|
-
attribute: 'value'
|
|
6306
|
+
shift: {
|
|
6307
|
+
type: Boolean,
|
|
6308
|
+
reflect: true
|
|
6286
6309
|
},
|
|
6287
6310
|
|
|
6288
6311
|
/**
|
|
6289
|
-
*
|
|
6312
|
+
* Determines the size of the dropdown bib. Only the `emphasized` layout supports size=`xl`, while all other layouts support size=`lg`.
|
|
6313
|
+
* @type {'lg' | 'xl'}
|
|
6290
6314
|
*/
|
|
6291
|
-
|
|
6292
|
-
type:
|
|
6293
|
-
reflect: true
|
|
6294
|
-
attribute: 'multiselect'
|
|
6315
|
+
size: {
|
|
6316
|
+
type: String,
|
|
6317
|
+
reflect: true
|
|
6295
6318
|
},
|
|
6296
6319
|
|
|
6297
6320
|
/**
|
|
6298
6321
|
* Indicates whether the input is in a dirty state (has been interacted with).
|
|
6299
|
-
* @type {boolean}
|
|
6300
|
-
* @default false
|
|
6301
6322
|
* @private
|
|
6302
6323
|
*/
|
|
6303
6324
|
touched: {
|
|
@@ -6307,29 +6328,20 @@ class AuroSelect extends AuroElement$1 {
|
|
|
6307
6328
|
},
|
|
6308
6329
|
|
|
6309
6330
|
/**
|
|
6310
|
-
*
|
|
6311
|
-
*/
|
|
6312
|
-
hasFocus: {
|
|
6313
|
-
type: Boolean,
|
|
6314
|
-
reflect: false,
|
|
6315
|
-
attribute: false
|
|
6316
|
-
},
|
|
6317
|
-
|
|
6318
|
-
/**
|
|
6319
|
-
* @private
|
|
6331
|
+
* Specifies the `validityState` this element is in.
|
|
6320
6332
|
*/
|
|
6321
|
-
|
|
6322
|
-
type:
|
|
6323
|
-
reflect:
|
|
6324
|
-
attribute: false
|
|
6333
|
+
validity: {
|
|
6334
|
+
type: String,
|
|
6335
|
+
reflect: true
|
|
6325
6336
|
},
|
|
6326
6337
|
|
|
6327
6338
|
/**
|
|
6328
|
-
*
|
|
6339
|
+
* Value selected for the component.
|
|
6329
6340
|
*/
|
|
6330
|
-
|
|
6331
|
-
type:
|
|
6332
|
-
|
|
6341
|
+
value: {
|
|
6342
|
+
type: String,
|
|
6343
|
+
reflect: true,
|
|
6344
|
+
attribute: 'value'
|
|
6333
6345
|
},
|
|
6334
6346
|
};
|
|
6335
6347
|
}
|
|
@@ -7325,7 +7337,7 @@ var styleCss = i$6`.body-default{font-family:var(--wcss-body-family, "AS Circula
|
|
|
7325
7337
|
|
|
7326
7338
|
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)}`;
|
|
7327
7339
|
|
|
7328
|
-
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;
|
|
7340
|
+
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}
|
|
7329
7341
|
`;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}
|
|
7330
7342
|
`;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)}
|
|
7331
7343
|
`;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)}
|
|
@@ -7382,12 +7394,9 @@ function dispatchMenuEvent(element, eventName, detail = null) {
|
|
|
7382
7394
|
|
|
7383
7395
|
|
|
7384
7396
|
/**
|
|
7385
|
-
* The auro-
|
|
7397
|
+
* The `auro-menuoption` element provides users a way to define a menu option.
|
|
7398
|
+
* @customElement auro-menuoption
|
|
7386
7399
|
*
|
|
7387
|
-
* @attr {String} value - Specifies the value to be sent to a server.
|
|
7388
|
-
* @attr {String} noCheckmark - When true, selected option will not show the checkmark.
|
|
7389
|
-
* @attr {Boolean} disabled - When true specifies that the menuoption is disabled.
|
|
7390
|
-
* @attr {Boolean} selected - Specifies that an option is selected.
|
|
7391
7400
|
* @event auroMenuOption-mouseover - Notifies that this option has been hovered over.
|
|
7392
7401
|
* @slot - Specifies text for an option, but is not the value.
|
|
7393
7402
|
*/
|
|
@@ -7395,7 +7404,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7395
7404
|
|
|
7396
7405
|
/**
|
|
7397
7406
|
* This will register this element with the browser.
|
|
7398
|
-
* @param {string} [name="auro-menuoption"] - The name of element that you want to register
|
|
7407
|
+
* @param {string} [name="auro-menuoption"] - The name of the element that you want to register.
|
|
7399
7408
|
*
|
|
7400
7409
|
* @example
|
|
7401
7410
|
* AuroMenuOption.register("custom-menuoption") // this will register this element to <custom-menuoption/>
|
|
@@ -7438,7 +7447,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7438
7447
|
this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, x);
|
|
7439
7448
|
|
|
7440
7449
|
this.selected = false;
|
|
7441
|
-
this.
|
|
7450
|
+
this.noCheckmark = false;
|
|
7442
7451
|
this.disabled = false;
|
|
7443
7452
|
|
|
7444
7453
|
/**
|
|
@@ -7459,38 +7468,81 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7459
7468
|
static get properties() {
|
|
7460
7469
|
return {
|
|
7461
7470
|
...super.properties,
|
|
7471
|
+
|
|
7472
|
+
/**
|
|
7473
|
+
* When true, disables the menu option.
|
|
7474
|
+
*/
|
|
7462
7475
|
disabled: {
|
|
7463
7476
|
type: Boolean,
|
|
7464
7477
|
reflect: true
|
|
7465
7478
|
},
|
|
7479
|
+
|
|
7480
|
+
/**
|
|
7481
|
+
* @private
|
|
7482
|
+
*/
|
|
7466
7483
|
event: {
|
|
7467
7484
|
type: String,
|
|
7468
7485
|
reflect: true
|
|
7469
7486
|
},
|
|
7487
|
+
|
|
7488
|
+
/**
|
|
7489
|
+
* @private
|
|
7490
|
+
*/
|
|
7491
|
+
layout: {
|
|
7492
|
+
type: String
|
|
7493
|
+
},
|
|
7494
|
+
|
|
7495
|
+
/**
|
|
7496
|
+
* 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.
|
|
7497
|
+
*/
|
|
7470
7498
|
key: {
|
|
7471
7499
|
type: String,
|
|
7472
7500
|
reflect: true
|
|
7473
7501
|
},
|
|
7502
|
+
|
|
7503
|
+
/**
|
|
7504
|
+
* @private
|
|
7505
|
+
*/
|
|
7474
7506
|
menuService: {
|
|
7475
7507
|
type: Object,
|
|
7476
7508
|
state: true
|
|
7477
7509
|
},
|
|
7510
|
+
|
|
7511
|
+
/**
|
|
7512
|
+
* @private
|
|
7513
|
+
*/
|
|
7478
7514
|
matchWord: {
|
|
7479
7515
|
type: String,
|
|
7480
7516
|
state: true
|
|
7481
7517
|
},
|
|
7482
|
-
|
|
7518
|
+
|
|
7519
|
+
/**
|
|
7520
|
+
* @private
|
|
7521
|
+
*/
|
|
7522
|
+
noCheckmark: {
|
|
7483
7523
|
type: Boolean,
|
|
7484
7524
|
reflect: true
|
|
7485
7525
|
},
|
|
7526
|
+
|
|
7527
|
+
/**
|
|
7528
|
+
* Specifies that an option is selected.
|
|
7529
|
+
*/
|
|
7486
7530
|
selected: {
|
|
7487
7531
|
type: Boolean,
|
|
7488
7532
|
reflect: true
|
|
7489
7533
|
},
|
|
7534
|
+
|
|
7535
|
+
/**
|
|
7536
|
+
* Specifies the tab index of the menu option.
|
|
7537
|
+
*/
|
|
7490
7538
|
tabIndex: {
|
|
7491
7539
|
type: Number,
|
|
7492
7540
|
reflect: true
|
|
7493
7541
|
},
|
|
7542
|
+
|
|
7543
|
+
/**
|
|
7544
|
+
* Specifies the value to be sent to a server.
|
|
7545
|
+
*/
|
|
7494
7546
|
value: {
|
|
7495
7547
|
type: String,
|
|
7496
7548
|
reflect: true
|
|
@@ -7814,7 +7866,7 @@ class AuroMenuOption extends AuroElement$1 {
|
|
|
7814
7866
|
|
|
7815
7867
|
return u$4`
|
|
7816
7868
|
<div class="${classes}">
|
|
7817
|
-
${this.selected && !this.
|
|
7869
|
+
${this.selected && !this.noCheckmark
|
|
7818
7870
|
? this.generateIconHtml(checkmarkIcon.svg)
|
|
7819
7871
|
: undefined}
|
|
7820
7872
|
<slot></slot>
|
|
@@ -7856,6 +7908,15 @@ class MenuService {
|
|
|
7856
7908
|
return this.multiSelect ? values : values[0];
|
|
7857
7909
|
}
|
|
7858
7910
|
|
|
7911
|
+
/**
|
|
7912
|
+
* Gets the label(s) of the currently selected option(s).
|
|
7913
|
+
* @returns {string}
|
|
7914
|
+
*/
|
|
7915
|
+
get currentLabel() {
|
|
7916
|
+
const labels = (this.selectedOptions || []).map(option => option.textContent);
|
|
7917
|
+
return this.multiSelect ? labels.join(", ") : labels[0] || '';
|
|
7918
|
+
}
|
|
7919
|
+
|
|
7859
7920
|
/**
|
|
7860
7921
|
* Gets the string representation of the current value(s).
|
|
7861
7922
|
* For multi-select, this is a JSON stringified array.
|
|
@@ -8287,7 +8348,8 @@ class MenuService {
|
|
|
8287
8348
|
value: this.currentValue,
|
|
8288
8349
|
stringValue: this.stringValue,
|
|
8289
8350
|
keys: this.currentKeys,
|
|
8290
|
-
options: this.selectedOptions
|
|
8351
|
+
options: this.selectedOptions,
|
|
8352
|
+
label: this.currentLabel
|
|
8291
8353
|
};
|
|
8292
8354
|
|
|
8293
8355
|
// If only one option is selected, include its index
|
|
@@ -8431,19 +8493,9 @@ const MenuContext = n('menu-context');
|
|
|
8431
8493
|
|
|
8432
8494
|
|
|
8433
8495
|
/**
|
|
8434
|
-
* The auro-menu element provides users a way to select from a list of options.
|
|
8435
|
-
* @
|
|
8436
|
-
*
|
|
8437
|
-
* @attr {string} matchword - Specifies a string used to highlight matched string parts in options.
|
|
8438
|
-
* @attr {boolean} disabled - When true, the entire menu and all options are disabled;
|
|
8439
|
-
* @attr {boolean} nocheckmark - When true, selected option will not show the checkmark.
|
|
8440
|
-
* @attr {boolean} loading - When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
8441
|
-
* @attr {boolean} multiselect - When true, the selected option can be multiple options.
|
|
8442
|
-
* @attr {boolean} selectAllMatchingOptions - When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
8443
|
-
* @attr {string} value - The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
8444
|
-
* @prop {string} size - Sets the size of the menu. Accepted values are 'sm' and 'md'. Default is 'sm'.
|
|
8445
|
-
* @prop {string} shape - Sets the shape of the menu options. Accepted values are 'box' and 'round'. Default is 'box'.
|
|
8446
|
-
* @prop {boolean} hasLoadingPlaceholder - Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
8496
|
+
* The `auro-menu` element provides users a way to select from a list of options.
|
|
8497
|
+
* @customElement auro-menu
|
|
8498
|
+
*
|
|
8447
8499
|
* @event {CustomEvent<Element>} auroMenu-activatedOption - Notifies that a menuoption has been made `active`.
|
|
8448
8500
|
* @event {CustomEvent<any>} auroMenu-customEventFired - Notifies that a custom event has been fired.
|
|
8449
8501
|
* @event {CustomEvent<{ loading: boolean; hasLoadingPlaceholder: boolean; }>} auroMenu-loadingChange - Notifies when the loading attribute is changed.
|
|
@@ -8534,58 +8586,87 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8534
8586
|
type: Boolean,
|
|
8535
8587
|
reflect: true,
|
|
8536
8588
|
},
|
|
8537
|
-
|
|
8538
|
-
|
|
8539
|
-
|
|
8540
|
-
|
|
8541
|
-
},
|
|
8589
|
+
|
|
8590
|
+
/**
|
|
8591
|
+
* When true, the entire menu and all options are disabled.
|
|
8592
|
+
*/
|
|
8542
8593
|
disabled: {
|
|
8543
8594
|
type: Boolean,
|
|
8544
8595
|
reflect: true
|
|
8545
8596
|
},
|
|
8597
|
+
|
|
8598
|
+
/**
|
|
8599
|
+
* Indicates whether the menu has a loadingIcon or loadingText to render when in a loading state.
|
|
8600
|
+
*/
|
|
8601
|
+
hasLoadingPlaceholder: {
|
|
8602
|
+
type: Boolean
|
|
8603
|
+
},
|
|
8604
|
+
|
|
8605
|
+
/**
|
|
8606
|
+
* @private
|
|
8607
|
+
*/
|
|
8608
|
+
layout: {
|
|
8609
|
+
type: String
|
|
8610
|
+
},
|
|
8611
|
+
|
|
8612
|
+
/**
|
|
8613
|
+
* Indent level for submenus.
|
|
8614
|
+
* @private
|
|
8615
|
+
*/
|
|
8616
|
+
level: {
|
|
8617
|
+
type: Number,
|
|
8618
|
+
reflect: false,
|
|
8619
|
+
attribute: false
|
|
8620
|
+
},
|
|
8621
|
+
|
|
8622
|
+
/**
|
|
8623
|
+
* When true, displays a loading state using the loadingIcon and loadingText slots if provided.
|
|
8624
|
+
*/
|
|
8546
8625
|
loading: {
|
|
8547
8626
|
type: Boolean,
|
|
8548
8627
|
reflect: true
|
|
8549
8628
|
},
|
|
8550
|
-
|
|
8551
|
-
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
optionActive: {
|
|
8555
|
-
type: Object,
|
|
8556
|
-
attribute: 'optionactive'
|
|
8557
|
-
},
|
|
8629
|
+
|
|
8630
|
+
/**
|
|
8631
|
+
* Specifies a string used to highlight matched string parts in options.
|
|
8632
|
+
*/
|
|
8558
8633
|
matchWord: {
|
|
8559
8634
|
type: String,
|
|
8560
8635
|
attribute: 'matchword'
|
|
8561
8636
|
},
|
|
8637
|
+
|
|
8638
|
+
/**
|
|
8639
|
+
* When true, the selected option can be multiple options.
|
|
8640
|
+
*/
|
|
8562
8641
|
multiSelect: {
|
|
8563
8642
|
type: Boolean,
|
|
8564
8643
|
reflect: true,
|
|
8565
8644
|
attribute: 'multiselect'
|
|
8566
8645
|
},
|
|
8567
|
-
|
|
8646
|
+
|
|
8647
|
+
/**
|
|
8648
|
+
* When true, selected option will not show the checkmark.
|
|
8649
|
+
*/
|
|
8650
|
+
noCheckmark: {
|
|
8568
8651
|
type: Boolean,
|
|
8569
8652
|
reflect: true,
|
|
8653
|
+
attribute: 'nocheckmark'
|
|
8570
8654
|
},
|
|
8571
8655
|
|
|
8572
8656
|
/**
|
|
8573
|
-
*
|
|
8657
|
+
* Specifies the current active menuOption.
|
|
8574
8658
|
*/
|
|
8575
|
-
|
|
8576
|
-
type:
|
|
8577
|
-
|
|
8578
|
-
attribute: 'value'
|
|
8659
|
+
optionActive: {
|
|
8660
|
+
type: Object,
|
|
8661
|
+
attribute: 'optionactive'
|
|
8579
8662
|
},
|
|
8580
8663
|
|
|
8581
8664
|
/**
|
|
8582
|
-
*
|
|
8583
|
-
* @private
|
|
8665
|
+
* An array of currently selected menu options, type `HTMLElement` by default. In multi-select mode, `optionSelected` is an array of HTML elements.
|
|
8584
8666
|
*/
|
|
8585
|
-
|
|
8586
|
-
|
|
8587
|
-
|
|
8588
|
-
attribute: false
|
|
8667
|
+
optionSelected: {
|
|
8668
|
+
// Allow HTMLElement, HTMLElement[] arrays and undefined
|
|
8669
|
+
type: Object
|
|
8589
8670
|
},
|
|
8590
8671
|
|
|
8591
8672
|
/**
|
|
@@ -8596,6 +8677,43 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8596
8677
|
type: Array,
|
|
8597
8678
|
reflect: false,
|
|
8598
8679
|
attribute: false
|
|
8680
|
+
},
|
|
8681
|
+
|
|
8682
|
+
/**
|
|
8683
|
+
* Sets the size of the menu.
|
|
8684
|
+
* @type {'sm' | 'md'}
|
|
8685
|
+
* @default 'sm'
|
|
8686
|
+
*/
|
|
8687
|
+
size: {
|
|
8688
|
+
type: String,
|
|
8689
|
+
reflect: true
|
|
8690
|
+
},
|
|
8691
|
+
|
|
8692
|
+
/**
|
|
8693
|
+
* When true, selects all options that match the provided value/key when setting value and multiselect is enabled.
|
|
8694
|
+
*/
|
|
8695
|
+
selectAllMatchingOptions: {
|
|
8696
|
+
type: Boolean,
|
|
8697
|
+
reflect: true,
|
|
8698
|
+
},
|
|
8699
|
+
|
|
8700
|
+
/**
|
|
8701
|
+
* Sets the shape of the menu.
|
|
8702
|
+
* @type {'box' | 'round'}
|
|
8703
|
+
* @default 'box'
|
|
8704
|
+
*/
|
|
8705
|
+
shape: {
|
|
8706
|
+
type: String,
|
|
8707
|
+
reflect: true
|
|
8708
|
+
},
|
|
8709
|
+
|
|
8710
|
+
/**
|
|
8711
|
+
* The value of the selected option. In multi-select mode, this is a JSON stringified array of selected option values.
|
|
8712
|
+
*/
|
|
8713
|
+
value: {
|
|
8714
|
+
type: String,
|
|
8715
|
+
reflect: true,
|
|
8716
|
+
attribute: 'value'
|
|
8599
8717
|
}
|
|
8600
8718
|
};
|
|
8601
8719
|
}
|
|
@@ -8608,6 +8726,14 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8608
8726
|
];
|
|
8609
8727
|
}
|
|
8610
8728
|
|
|
8729
|
+
/**
|
|
8730
|
+
* @readonly
|
|
8731
|
+
* @returns {string} - Returns the label of the currently selected option(s).
|
|
8732
|
+
*/
|
|
8733
|
+
get currentLabel() {
|
|
8734
|
+
return this.menuService.currentLabel;
|
|
8735
|
+
};
|
|
8736
|
+
|
|
8611
8737
|
/**
|
|
8612
8738
|
* @readonly
|
|
8613
8739
|
* @returns {Array<HTMLElement>} - Returns the array of available menu options.
|
|
@@ -8633,7 +8759,7 @@ class AuroMenu extends AuroElement$1 {
|
|
|
8633
8759
|
|
|
8634
8760
|
/**
|
|
8635
8761
|
* This will register this element with the browser.
|
|
8636
|
-
* @param {string} [name="auro-menu"] - The name of element that you want to register
|
|
8762
|
+
* @param {string} [name="auro-menu"] - The name of the element that you want to register.
|
|
8637
8763
|
*
|
|
8638
8764
|
* @example
|
|
8639
8765
|
* AuroMenu.register("custom-menu") // this will register this element to <custom-menu/>
|