@aurodesignsystem-dev/auro-formkit 0.0.0-pr622.1 → 0.0.0-pr624.1
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/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 +1 -1
- package/components/checkbox/demo/api.min.js +14 -3
- package/components/checkbox/demo/index.min.js +14 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -1
- package/components/checkbox/dist/index.js +14 -3
- package/components/checkbox/dist/registered.js +14 -3
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +3 -0
- package/components/combobox/demo/api.min.js +1479 -395
- package/components/combobox/demo/index.html +2 -0
- package/components/combobox/demo/index.md +75 -0
- package/components/combobox/demo/index.min.js +1479 -395
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +19 -9
- package/components/combobox/dist/index.js +1471 -387
- package/components/combobox/dist/registered.js +1471 -387
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +433 -104
- package/components/counter/demo/index.min.js +433 -104
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +433 -104
- package/components/counter/dist/registered.js +433 -104
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.min.js +1157 -376
- package/components/datepicker/demo/index.min.js +1157 -376
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/index.js +1156 -375
- package/components/datepicker/dist/registered.js +1156 -375
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.md +59 -35
- package/components/dropdown/demo/api.min.js +361 -88
- package/components/dropdown/demo/index.md +52 -0
- package/components/dropdown/demo/index.min.js +361 -88
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +70 -21
- package/components/dropdown/dist/index.js +331 -58
- package/components/dropdown/dist/registered.js +331 -58
- package/components/dropdown/dist/styles/default/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/dropdown/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +2 -2
- package/components/input/demo/api.md +76 -64
- package/components/input/demo/api.min.js +747 -295
- package/components/input/demo/index.html +1 -1
- package/components/input/demo/index.md +49 -4
- package/components/input/demo/index.min.js +747 -295
- package/components/input/demo/readme.md +2 -2
- package/components/input/dist/auro-input.d.ts +97 -3
- package/components/input/dist/base-input.d.ts +36 -18
- package/components/input/dist/index.js +681 -229
- package/components/input/dist/registered.js +681 -229
- package/components/input/dist/styles/classic/color-css.d.ts +2 -0
- package/components/input/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/dist/styles/default/borders-css.d.ts +2 -0
- package/components/input/dist/styles/default/color-css.d.ts +2 -0
- package/components/input/dist/styles/default/input-css.d.ts +2 -0
- package/components/input/dist/styles/default/label-css.d.ts +2 -0
- package/components/input/dist/styles/default/mixins-css.d.ts +2 -0
- package/components/input/dist/styles/default/notificationIcons-css.d.ts +2 -0
- package/components/input/dist/styles/default/style-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/color-css.d.ts +2 -0
- package/components/input/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/input/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/input/dist/styles/snowflake/style-css.d.ts +2 -0
- package/components/layoutElement/dist/auroElement.d.ts +34 -0
- package/components/layoutElement/dist/index.d.ts +1 -0
- package/components/layoutElement/dist/index.js +1 -0
- package/components/layoutElement/dist/registered.js +1 -0
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +2 -2
- package/components/menu/demo/index.min.js +2 -2
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +2 -2
- package/components/menu/dist/registered.js +2 -2
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.md +8 -0
- package/components/radio/demo/api.min.js +13 -5
- package/components/radio/demo/index.min.js +13 -5
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/auro-radio.d.ts +4 -0
- package/components/radio/dist/index.js +13 -5
- package/components/radio/dist/registered.js +13 -5
- package/components/select/README.md +1 -1
- package/components/select/demo/api.html +15 -0
- package/components/select/demo/api.md +178 -0
- package/components/select/demo/api.min.js +403 -62
- package/components/select/demo/index.html +15 -0
- package/components/select/demo/index.md +177 -0
- package/components/select/demo/index.min.js +403 -62
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +27 -0
- package/components/select/dist/index.js +400 -58
- package/components/select/dist/registered.js +400 -58
- package/package.json +2 -2
- /package/components/{dropdown/dist/styles/bibColors-css.d.ts → combobox/dist/styles/emphasized/style-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/bibStyles-css.d.ts → combobox/dist/styles/snowflake/style-css.d.ts} +0 -0
- /package/components/{input/dist/styles/borders-css.d.ts → dropdown/dist/styles/default/bibColors-css.d.ts} +0 -0
- /package/components/{input/dist/styles/label-css.d.ts → dropdown/dist/styles/default/bibStyles-css.d.ts} +0 -0
- /package/components/{input/dist/styles/notificationIcons-css.d.ts → dropdown/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -196,6 +196,19 @@ const t$2=globalThis,i$3=t$2.trustedTypes,s$3=i$3?i$3.createPolicy("lit-html",{c
|
|
|
196
196
|
*/
|
|
197
197
|
const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s$1=t=>({_$litStatic$:t,r:a}),i$1=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a}),l=new Map,n=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$1(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l.get(t))&&(n.raw=n,l.set(t,r=n)),e=u;}return t(r,...e)},u$2=n(x);
|
|
198
198
|
|
|
199
|
+
/**
|
|
200
|
+
* @license
|
|
201
|
+
* Copyright 2017 Google LLC
|
|
202
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
203
|
+
*/
|
|
204
|
+
const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* @license
|
|
208
|
+
* Copyright 2018 Google LLC
|
|
209
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
210
|
+
*/const e=e$1(class extends i{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
211
|
+
|
|
199
212
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
200
213
|
// See LICENSE in the project root for license information.
|
|
201
214
|
|
|
@@ -1080,19 +1093,6 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
1080
1093
|
}
|
|
1081
1094
|
};
|
|
1082
1095
|
|
|
1083
|
-
/**
|
|
1084
|
-
* @license
|
|
1085
|
-
* Copyright 2017 Google LLC
|
|
1086
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1087
|
-
*/
|
|
1088
|
-
const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
1089
|
-
|
|
1090
|
-
/**
|
|
1091
|
-
* @license
|
|
1092
|
-
* Copyright 2018 Google LLC
|
|
1093
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
1094
|
-
*/const e=e$1(class extends i{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
1095
|
-
|
|
1096
1096
|
/**
|
|
1097
1097
|
* @license
|
|
1098
1098
|
* Copyright 2018 Google LLC
|
|
@@ -1106,7 +1106,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$1=t=>(...e)=>({_$litDirective$:t,values:e});cl
|
|
|
1106
1106
|
|
|
1107
1107
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
1108
1108
|
|
|
1109
|
-
let AuroLibraryRuntimeUtils$1$
|
|
1109
|
+
let AuroLibraryRuntimeUtils$1$2 = class AuroLibraryRuntimeUtils {
|
|
1110
1110
|
|
|
1111
1111
|
/* eslint-disable jsdoc/require-param */
|
|
1112
1112
|
|
|
@@ -1689,16 +1689,21 @@ const flip$1 = function (options) {
|
|
|
1689
1689
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
1690
1690
|
const nextPlacement = placements[nextIndex];
|
|
1691
1691
|
if (nextPlacement) {
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1692
|
+
var _overflowsData$;
|
|
1693
|
+
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
1694
|
+
const hasInitialMainAxisOverflow = ((_overflowsData$ = overflowsData[0]) == null ? void 0 : _overflowsData$.overflows[0]) > 0;
|
|
1695
|
+
if (!ignoreCrossAxisOverflow || hasInitialMainAxisOverflow) {
|
|
1696
|
+
// Try next placement and re-run the lifecycle.
|
|
1697
|
+
return {
|
|
1698
|
+
data: {
|
|
1699
|
+
index: nextIndex,
|
|
1700
|
+
overflows: overflowsData
|
|
1701
|
+
},
|
|
1702
|
+
reset: {
|
|
1703
|
+
placement: nextPlacement
|
|
1704
|
+
}
|
|
1705
|
+
};
|
|
1706
|
+
}
|
|
1702
1707
|
}
|
|
1703
1708
|
|
|
1704
1709
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -2350,6 +2355,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2350
2355
|
scrollTop: 0
|
|
2351
2356
|
};
|
|
2352
2357
|
const offsets = createCoords(0);
|
|
2358
|
+
|
|
2359
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
2360
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2361
|
+
function setLeftRTLScrollbarOffset() {
|
|
2362
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
2363
|
+
}
|
|
2353
2364
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
2354
2365
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
2355
2366
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -2359,11 +2370,12 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
2359
2370
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
2360
2371
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
2361
2372
|
} else if (documentElement) {
|
|
2362
|
-
|
|
2363
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
2364
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
2373
|
+
setLeftRTLScrollbarOffset();
|
|
2365
2374
|
}
|
|
2366
2375
|
}
|
|
2376
|
+
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
2377
|
+
setLeftRTLScrollbarOffset();
|
|
2378
|
+
}
|
|
2367
2379
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
2368
2380
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
2369
2381
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -2540,7 +2552,7 @@ function observeMove(element, onMove) {
|
|
|
2540
2552
|
// Handle <iframe>s
|
|
2541
2553
|
root: root.ownerDocument
|
|
2542
2554
|
});
|
|
2543
|
-
} catch (
|
|
2555
|
+
} catch (_e) {
|
|
2544
2556
|
io = new IntersectionObserver(handleObserve, options);
|
|
2545
2557
|
}
|
|
2546
2558
|
io.observe(element);
|
|
@@ -3353,7 +3365,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
3353
3365
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
3354
3366
|
*/
|
|
3355
3367
|
|
|
3356
|
-
let AuroElement$
|
|
3368
|
+
let AuroElement$1$2 = class AuroElement extends i$2 {
|
|
3357
3369
|
|
|
3358
3370
|
// function to define props used within the scope of this component
|
|
3359
3371
|
static get properties() {
|
|
@@ -3421,7 +3433,7 @@ var styleCss$3$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
3421
3433
|
*/
|
|
3422
3434
|
|
|
3423
3435
|
// build the component class
|
|
3424
|
-
let BaseIcon$3 = class BaseIcon extends AuroElement$
|
|
3436
|
+
let BaseIcon$3 = class BaseIcon extends AuroElement$1$2 {
|
|
3425
3437
|
constructor() {
|
|
3426
3438
|
super();
|
|
3427
3439
|
this.onDark = false;
|
|
@@ -3495,7 +3507,7 @@ let BaseIcon$3 = class BaseIcon extends AuroElement$3 {
|
|
|
3495
3507
|
|
|
3496
3508
|
var tokensCss$2$2 = i$5`: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)}`;
|
|
3497
3509
|
|
|
3498
|
-
var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
3510
|
+
var colorCss$3$2 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
3499
3511
|
|
|
3500
3512
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3501
3513
|
// See LICENSE in the project root for license information.
|
|
@@ -3516,7 +3528,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
3516
3528
|
*/
|
|
3517
3529
|
privateDefaults() {
|
|
3518
3530
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
3519
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$
|
|
3531
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
3520
3532
|
}
|
|
3521
3533
|
|
|
3522
3534
|
// function to define props used within the scope of this component
|
|
@@ -3598,7 +3610,7 @@ let AuroIcon$3 = class AuroIcon extends BaseIcon$3 {
|
|
|
3598
3610
|
*
|
|
3599
3611
|
*/
|
|
3600
3612
|
static register(name = "auro-icon") {
|
|
3601
|
-
AuroLibraryRuntimeUtils$1$
|
|
3613
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroIcon);
|
|
3602
3614
|
}
|
|
3603
3615
|
|
|
3604
3616
|
connectedCallback() {
|
|
@@ -3670,7 +3682,7 @@ var styleCss$2$3 = i$5`:host{position:absolute;z-index:var(--depth-tooltip, 400)
|
|
|
3670
3682
|
|
|
3671
3683
|
var colorCss$2$2 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
3672
3684
|
|
|
3673
|
-
var tokensCss$1$2 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}`;
|
|
3685
|
+
var tokensCss$1$2 = i$5`:host(:not([ondark])){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-dropdown-trigger-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]){--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-dropdown-trigger-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-outline-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-dropdownbib-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}`;
|
|
3674
3686
|
|
|
3675
3687
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
3676
3688
|
// See LICENSE in the project root for license information.
|
|
@@ -3701,7 +3713,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
3701
3713
|
*/
|
|
3702
3714
|
this._mobileBreakpointValue = undefined;
|
|
3703
3715
|
|
|
3704
|
-
AuroLibraryRuntimeUtils$1$
|
|
3716
|
+
AuroLibraryRuntimeUtils$1$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
3705
3717
|
}
|
|
3706
3718
|
|
|
3707
3719
|
static get styles() {
|
|
@@ -3793,13 +3805,19 @@ class AuroDropdownBib extends i$2 {
|
|
|
3793
3805
|
|
|
3794
3806
|
var dropdownVersion$1 = '3.0.0';
|
|
3795
3807
|
|
|
3796
|
-
var
|
|
3808
|
+
var shapeSizeCss$1 = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0;min-height:60px;max-height:60px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-xl.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px}.shape-pill-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:34px 0 0 34px}.shape-pill-left-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-md{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 34px 34px 0}.shape-pill-right-md.simple{border-width:0;min-height:72px;max-height:72px;background-color:unset}`;
|
|
3809
|
+
|
|
3810
|
+
var styleCss$1$3 = i$5`:host([layout*=classic]){position:relative;display:inline-block;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{position:relative;display:flex;align-items:center}:host([layout*=classic]) .trigger[showBorder]{border-width:1px;border-style:solid;cursor:pointer;outline-style:solid;outline-width:1px}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
3811
|
+
|
|
3812
|
+
var colorCss$1$3 = i$5`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
3813
|
+
|
|
3814
|
+
var styleEmphasizedCss$1 = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
3797
3815
|
|
|
3798
|
-
var
|
|
3816
|
+
var styleSnowflakeCss$1 = i$5`:host{display:block}.wrapper{display:flex;flex-direction:column}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}`;
|
|
3799
3817
|
|
|
3800
3818
|
var colorCss$6 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
3801
3819
|
|
|
3802
|
-
var styleCss$
|
|
3820
|
+
var styleCss$7 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
3803
3821
|
|
|
3804
3822
|
var tokensCss$6 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
3805
3823
|
|
|
@@ -3882,7 +3900,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
|
3882
3900
|
*
|
|
3883
3901
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
3884
3902
|
*/
|
|
3885
|
-
let AuroHelpText$
|
|
3903
|
+
let AuroHelpText$2 = class AuroHelpText extends i$2 {
|
|
3886
3904
|
|
|
3887
3905
|
constructor() {
|
|
3888
3906
|
super();
|
|
@@ -3897,7 +3915,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
3897
3915
|
static get styles() {
|
|
3898
3916
|
return [
|
|
3899
3917
|
colorCss$6,
|
|
3900
|
-
styleCss$
|
|
3918
|
+
styleCss$7,
|
|
3901
3919
|
tokensCss$6
|
|
3902
3920
|
];
|
|
3903
3921
|
}
|
|
@@ -4005,6 +4023,98 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
4005
4023
|
|
|
4006
4024
|
var helpTextVersion$1 = '1.0.0';
|
|
4007
4025
|
|
|
4026
|
+
let AuroElement$4 = class AuroElement extends i$2 {
|
|
4027
|
+
static get properties() {
|
|
4028
|
+
return {
|
|
4029
|
+
|
|
4030
|
+
/**
|
|
4031
|
+
* Defines the language of an element.
|
|
4032
|
+
* @default {'default'}
|
|
4033
|
+
*/
|
|
4034
|
+
layout: {
|
|
4035
|
+
type: String,
|
|
4036
|
+
attribute: "layout",
|
|
4037
|
+
reflect: true
|
|
4038
|
+
},
|
|
4039
|
+
|
|
4040
|
+
shape: {
|
|
4041
|
+
type: String,
|
|
4042
|
+
attribute: "shape",
|
|
4043
|
+
reflect: true
|
|
4044
|
+
},
|
|
4045
|
+
|
|
4046
|
+
size: {
|
|
4047
|
+
type: String,
|
|
4048
|
+
attribute: "size",
|
|
4049
|
+
reflect: true
|
|
4050
|
+
},
|
|
4051
|
+
|
|
4052
|
+
onDark: {
|
|
4053
|
+
type: Boolean,
|
|
4054
|
+
attribute: "ondark",
|
|
4055
|
+
reflect: true
|
|
4056
|
+
}
|
|
4057
|
+
};
|
|
4058
|
+
}
|
|
4059
|
+
|
|
4060
|
+
resetShapeClasses() {
|
|
4061
|
+
if (this.shape && this.size) {
|
|
4062
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4063
|
+
|
|
4064
|
+
if (wrapper) {
|
|
4065
|
+
wrapper.classList.forEach((className) => {
|
|
4066
|
+
if (className.startsWith('shape-')) {
|
|
4067
|
+
wrapper.classList.remove(className);
|
|
4068
|
+
}
|
|
4069
|
+
});
|
|
4070
|
+
|
|
4071
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4072
|
+
}
|
|
4073
|
+
}
|
|
4074
|
+
}
|
|
4075
|
+
|
|
4076
|
+
resetLayoutClasses() {
|
|
4077
|
+
if (this.layout) {
|
|
4078
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4079
|
+
|
|
4080
|
+
if (wrapper) {
|
|
4081
|
+
wrapper.classList.forEach((className) => {
|
|
4082
|
+
if (className.startsWith('layout-')) {
|
|
4083
|
+
wrapper.classList.remove(className);
|
|
4084
|
+
}
|
|
4085
|
+
});
|
|
4086
|
+
|
|
4087
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
4088
|
+
}
|
|
4089
|
+
}
|
|
4090
|
+
}
|
|
4091
|
+
|
|
4092
|
+
updateComponentArchitecture() {
|
|
4093
|
+
this.resetLayoutClasses();
|
|
4094
|
+
this.resetShapeClasses();
|
|
4095
|
+
}
|
|
4096
|
+
|
|
4097
|
+
updated(changedProperties) {
|
|
4098
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
4099
|
+
this.updateComponentArchitecture();
|
|
4100
|
+
}
|
|
4101
|
+
}
|
|
4102
|
+
|
|
4103
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
4104
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
4105
|
+
render() {
|
|
4106
|
+
try {
|
|
4107
|
+
return this.renderLayout();
|
|
4108
|
+
} catch (error) {
|
|
4109
|
+
// failed to get the defined layout
|
|
4110
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
4111
|
+
|
|
4112
|
+
// fallback to the default layout
|
|
4113
|
+
return this.getLayout('default');
|
|
4114
|
+
}
|
|
4115
|
+
}
|
|
4116
|
+
};
|
|
4117
|
+
|
|
4008
4118
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
4009
4119
|
// See LICENSE in the project root for license information.
|
|
4010
4120
|
|
|
@@ -4022,7 +4132,7 @@ var helpTextVersion$1 = '1.0.0';
|
|
|
4022
4132
|
* @event auroDropdown-toggled - Notifies that the visibility of the dropdown bib has changed.
|
|
4023
4133
|
* @event auroDropdown-idAdded - Notifies consumers that the unique ID for the dropdown bib has been generated.
|
|
4024
4134
|
*/
|
|
4025
|
-
class AuroDropdown extends
|
|
4135
|
+
class AuroDropdown extends AuroElement$4 {
|
|
4026
4136
|
constructor() {
|
|
4027
4137
|
super();
|
|
4028
4138
|
|
|
@@ -4031,26 +4141,29 @@ class AuroDropdown extends i$2 {
|
|
|
4031
4141
|
this.matchWidth = false;
|
|
4032
4142
|
this.noHideOnThisFocusLoss = false;
|
|
4033
4143
|
|
|
4144
|
+
this.errorMessage = ''; // TODO!
|
|
4145
|
+
|
|
4146
|
+
// Layout Config
|
|
4147
|
+
this.layout = 'default';
|
|
4148
|
+
this.shape = 'rounded';
|
|
4149
|
+
this.size = 'xl';
|
|
4150
|
+
|
|
4034
4151
|
this.privateDefaults();
|
|
4152
|
+
}
|
|
4035
4153
|
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
*/
|
|
4040
|
-
this.constructor.shadowRootOptions = {
|
|
4041
|
-
...i$2.shadowRootOptions,
|
|
4042
|
-
delegatesFocus: true,
|
|
4154
|
+
get commonLabelClasses() {
|
|
4155
|
+
return {
|
|
4156
|
+
// 'withValue': this.value && this.value.length > 0
|
|
4043
4157
|
};
|
|
4158
|
+
}
|
|
4044
4159
|
|
|
4045
|
-
|
|
4046
|
-
|
|
4047
|
-
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
|
|
4052
|
-
*/
|
|
4053
|
-
this.showTriggerBorders = true;
|
|
4160
|
+
get commonWrapperClasses() {
|
|
4161
|
+
return {
|
|
4162
|
+
'trigger': true,
|
|
4163
|
+
'wrapper': true,
|
|
4164
|
+
'hasFocus': this.hasFocus,
|
|
4165
|
+
'simple': this.simple
|
|
4166
|
+
};
|
|
4054
4167
|
}
|
|
4055
4168
|
|
|
4056
4169
|
/**
|
|
@@ -4058,7 +4171,6 @@ class AuroDropdown extends i$2 {
|
|
|
4058
4171
|
* @returns {void} Internal defaults.
|
|
4059
4172
|
*/
|
|
4060
4173
|
privateDefaults() {
|
|
4061
|
-
this.bordered = false;
|
|
4062
4174
|
this.chevron = false;
|
|
4063
4175
|
this.disabled = false;
|
|
4064
4176
|
this.error = false;
|
|
@@ -4068,8 +4180,11 @@ class AuroDropdown extends i$2 {
|
|
|
4068
4180
|
this.noToggle = false;
|
|
4069
4181
|
this.a11yAutocomplete = 'none';
|
|
4070
4182
|
this.labeled = true;
|
|
4071
|
-
this.a11yRole = '
|
|
4183
|
+
this.a11yRole = 'button';
|
|
4072
4184
|
this.onDark = false;
|
|
4185
|
+
this.showTriggerBorders = true;
|
|
4186
|
+
this.triggerContentFocusable = false;
|
|
4187
|
+
this.simple = false;
|
|
4073
4188
|
|
|
4074
4189
|
// floaterConfig
|
|
4075
4190
|
this.placement = 'bottom-start';
|
|
@@ -4077,6 +4192,15 @@ class AuroDropdown extends i$2 {
|
|
|
4077
4192
|
this.noFlip = false;
|
|
4078
4193
|
this.autoPlacement = false;
|
|
4079
4194
|
|
|
4195
|
+
/**
|
|
4196
|
+
* @private
|
|
4197
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
4198
|
+
*/
|
|
4199
|
+
this.constructor.shadowRootOptions = {
|
|
4200
|
+
...i$2.shadowRootOptions,
|
|
4201
|
+
delegatesFocus: true,
|
|
4202
|
+
};
|
|
4203
|
+
|
|
4080
4204
|
/**
|
|
4081
4205
|
* @private
|
|
4082
4206
|
*/
|
|
@@ -4090,7 +4214,7 @@ class AuroDropdown extends i$2 {
|
|
|
4090
4214
|
/**
|
|
4091
4215
|
* @private
|
|
4092
4216
|
*/
|
|
4093
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$
|
|
4217
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$2();
|
|
4094
4218
|
|
|
4095
4219
|
/**
|
|
4096
4220
|
* @private
|
|
@@ -4115,7 +4239,7 @@ class AuroDropdown extends i$2 {
|
|
|
4115
4239
|
/**
|
|
4116
4240
|
* @private
|
|
4117
4241
|
*/
|
|
4118
|
-
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$
|
|
4242
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion$1, AuroHelpText$2);
|
|
4119
4243
|
|
|
4120
4244
|
/**
|
|
4121
4245
|
* @private
|
|
@@ -4167,7 +4291,7 @@ class AuroDropdown extends i$2 {
|
|
|
4167
4291
|
/**
|
|
4168
4292
|
* If declared, applies a border around the trigger slot.
|
|
4169
4293
|
*/
|
|
4170
|
-
|
|
4294
|
+
simple: {
|
|
4171
4295
|
type: Boolean,
|
|
4172
4296
|
reflect: true
|
|
4173
4297
|
},
|
|
@@ -4215,13 +4339,20 @@ class AuroDropdown extends i$2 {
|
|
|
4215
4339
|
},
|
|
4216
4340
|
|
|
4217
4341
|
/**
|
|
4218
|
-
* If declared in combination with `
|
|
4342
|
+
* If declared in combination with not using the `simple` property or `helpText` slot content, will apply red color to both.
|
|
4219
4343
|
*/
|
|
4220
4344
|
error: {
|
|
4221
4345
|
type: Boolean,
|
|
4222
4346
|
reflect: true
|
|
4223
4347
|
},
|
|
4224
4348
|
|
|
4349
|
+
/**
|
|
4350
|
+
* Contains the help text message for the current validity error.
|
|
4351
|
+
*/
|
|
4352
|
+
errorMessage: {
|
|
4353
|
+
type: String
|
|
4354
|
+
},
|
|
4355
|
+
|
|
4225
4356
|
/**
|
|
4226
4357
|
* If declared, the bib will display when focus is applied to the trigger.
|
|
4227
4358
|
*/
|
|
@@ -4356,11 +4487,6 @@ class AuroDropdown extends i$2 {
|
|
|
4356
4487
|
|
|
4357
4488
|
/**
|
|
4358
4489
|
* Position where the bib should appear relative to the trigger.
|
|
4359
|
-
* Accepted values:
|
|
4360
|
-
* "top" | "right" | "bottom" | "left" |
|
|
4361
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
4362
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
4363
|
-
* "left-start" | "left-end"
|
|
4364
4490
|
* @default bottom-start
|
|
4365
4491
|
*/
|
|
4366
4492
|
placement: {
|
|
@@ -4406,7 +4532,10 @@ class AuroDropdown extends i$2 {
|
|
|
4406
4532
|
return [
|
|
4407
4533
|
colorCss$1$3,
|
|
4408
4534
|
styleCss$1$3,
|
|
4409
|
-
tokensCss$1$2
|
|
4535
|
+
tokensCss$1$2,
|
|
4536
|
+
styleEmphasizedCss$1,
|
|
4537
|
+
styleSnowflakeCss$1,
|
|
4538
|
+
shapeSizeCss$1
|
|
4410
4539
|
];
|
|
4411
4540
|
}
|
|
4412
4541
|
|
|
@@ -4419,7 +4548,7 @@ class AuroDropdown extends i$2 {
|
|
|
4419
4548
|
*
|
|
4420
4549
|
*/
|
|
4421
4550
|
static register(name = "auro-dropdown") {
|
|
4422
|
-
AuroLibraryRuntimeUtils$1$
|
|
4551
|
+
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
4423
4552
|
}
|
|
4424
4553
|
|
|
4425
4554
|
/**
|
|
@@ -4442,6 +4571,7 @@ class AuroDropdown extends i$2 {
|
|
|
4442
4571
|
}
|
|
4443
4572
|
|
|
4444
4573
|
updated(changedProperties) {
|
|
4574
|
+
super.updated(changedProperties);
|
|
4445
4575
|
this.floater.handleUpdate(changedProperties);
|
|
4446
4576
|
|
|
4447
4577
|
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
@@ -4451,7 +4581,7 @@ class AuroDropdown extends i$2 {
|
|
|
4451
4581
|
}
|
|
4452
4582
|
|
|
4453
4583
|
// when trigger's content is changed without any attribute or node change,
|
|
4454
|
-
// `requestUpdate` needs to be called to update
|
|
4584
|
+
// `requestUpdate` needs to be called to update hasTriggerContent
|
|
4455
4585
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
4456
4586
|
this.handleTriggerContentSlotChange();
|
|
4457
4587
|
}
|
|
@@ -4512,6 +4642,24 @@ class AuroDropdown extends i$2 {
|
|
|
4512
4642
|
return inCustomSlot;
|
|
4513
4643
|
}
|
|
4514
4644
|
|
|
4645
|
+
/**
|
|
4646
|
+
* Function to support @focusin event.
|
|
4647
|
+
* @private
|
|
4648
|
+
* @return {void}
|
|
4649
|
+
*/
|
|
4650
|
+
handleFocusin() {
|
|
4651
|
+
this.hasFocus = true;
|
|
4652
|
+
}
|
|
4653
|
+
|
|
4654
|
+
/**
|
|
4655
|
+
* Function to support @focusout event.
|
|
4656
|
+
* @private
|
|
4657
|
+
* @return {void}
|
|
4658
|
+
*/
|
|
4659
|
+
handleFocusout() {
|
|
4660
|
+
this.hasFocus = false;
|
|
4661
|
+
}
|
|
4662
|
+
|
|
4515
4663
|
/**
|
|
4516
4664
|
* Determines if the element or any children are focusable.
|
|
4517
4665
|
* @private
|
|
@@ -4571,8 +4719,8 @@ class AuroDropdown extends i$2 {
|
|
|
4571
4719
|
}
|
|
4572
4720
|
|
|
4573
4721
|
/**
|
|
4574
|
-
* @private
|
|
4575
4722
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
4723
|
+
* @private
|
|
4576
4724
|
* @param {Event} event - The original focus event.
|
|
4577
4725
|
*/
|
|
4578
4726
|
bindFocusEventToTrigger(event) {
|
|
@@ -4585,9 +4733,9 @@ class AuroDropdown extends i$2 {
|
|
|
4585
4733
|
}
|
|
4586
4734
|
|
|
4587
4735
|
/**
|
|
4588
|
-
* @private
|
|
4589
4736
|
* Sets up event listeners to deliver focus and blur events from nested Auro components within the trigger slot to trigger.
|
|
4590
4737
|
* This ensures that focus/blur events originating from within these components are propagated to the trigger element itself.
|
|
4738
|
+
* @private
|
|
4591
4739
|
*/
|
|
4592
4740
|
setupTriggerFocusEventBinding() {
|
|
4593
4741
|
if (!this.triggerContentSlot || this.triggerContentSlot.length === 0) {
|
|
@@ -4681,7 +4829,7 @@ class AuroDropdown extends i$2 {
|
|
|
4681
4829
|
// If there are children
|
|
4682
4830
|
if (triggerContentNodes) {
|
|
4683
4831
|
|
|
4684
|
-
// See if any of them are focusable
|
|
4832
|
+
// See if any of them are focusable elements
|
|
4685
4833
|
this.triggerContentFocusable = triggerContentNodes.some((node) => this.containsFocusableElement(node));
|
|
4686
4834
|
|
|
4687
4835
|
// If any of them are focusable elements
|
|
@@ -4767,8 +4915,75 @@ class AuroDropdown extends i$2 {
|
|
|
4767
4915
|
this.labeled = nodesArr.length > 0;
|
|
4768
4916
|
}
|
|
4769
4917
|
|
|
4770
|
-
|
|
4771
|
-
|
|
4918
|
+
/**
|
|
4919
|
+
* Returns HTML for the common portion of the layouts.
|
|
4920
|
+
* @private
|
|
4921
|
+
* @param {Object} helpTextClasses - Classes to apply to the help text container.
|
|
4922
|
+
* @returns {html} - Returns HTML.
|
|
4923
|
+
*/
|
|
4924
|
+
renderBasicHtml(helpTextClasses) {
|
|
4925
|
+
return u$2`
|
|
4926
|
+
<div>
|
|
4927
|
+
<div
|
|
4928
|
+
id="trigger"
|
|
4929
|
+
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
4930
|
+
tabindex="${this.tabIndex}"
|
|
4931
|
+
?showBorder="${this.showTriggerBorders}"
|
|
4932
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4933
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4934
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4935
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4936
|
+
@focusin="${this.handleFocusin}"
|
|
4937
|
+
@blur="${this.handleFocusOut}">
|
|
4938
|
+
<div class="triggerContentWrapper">
|
|
4939
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
4940
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
4941
|
+
</label>
|
|
4942
|
+
<div class="triggerContent">
|
|
4943
|
+
<slot
|
|
4944
|
+
name="trigger"
|
|
4945
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4946
|
+
</div>
|
|
4947
|
+
</div>
|
|
4948
|
+
${this.chevron || this.common ? u$2`
|
|
4949
|
+
<div
|
|
4950
|
+
id="showStateIcon"
|
|
4951
|
+
part="chevron">
|
|
4952
|
+
<${this.iconTag}
|
|
4953
|
+
category="interface"
|
|
4954
|
+
name="chevron-down"
|
|
4955
|
+
?onDark="${this.onDark}"
|
|
4956
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
4957
|
+
>
|
|
4958
|
+
</${this.iconTag}>
|
|
4959
|
+
</div>
|
|
4960
|
+
` : undefined }
|
|
4961
|
+
</div>
|
|
4962
|
+
<div class="${e(helpTextClasses)}">
|
|
4963
|
+
<slot name="helpText"></slot>
|
|
4964
|
+
</div>
|
|
4965
|
+
<div class="slotContent">
|
|
4966
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4967
|
+
</div>
|
|
4968
|
+
<div id="bibSizer" part="size"></div>
|
|
4969
|
+
<${this.dropdownBibTag}
|
|
4970
|
+
id="bib"
|
|
4971
|
+
?data-show="${this.isPopoverVisible}"
|
|
4972
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
4973
|
+
?common="${this.common}"
|
|
4974
|
+
?rounded="${this.common || this.rounded}"
|
|
4975
|
+
?inset="${this.common || this.inset}">
|
|
4976
|
+
</${this.dropdownBibTag}>
|
|
4977
|
+
</div>
|
|
4978
|
+
`;
|
|
4979
|
+
}
|
|
4980
|
+
|
|
4981
|
+
/**
|
|
4982
|
+
* Returns HTML for the classic layout. Does not support type="*".
|
|
4983
|
+
* @private
|
|
4984
|
+
* @returns {html} - Returns HTML for the classic layout.
|
|
4985
|
+
*/
|
|
4986
|
+
renderLayoutClassic() {
|
|
4772
4987
|
return u$2`
|
|
4773
4988
|
<div>
|
|
4774
4989
|
<div
|
|
@@ -4806,9 +5021,6 @@ class AuroDropdown extends i$2 {
|
|
|
4806
5021
|
</div>
|
|
4807
5022
|
` : undefined }
|
|
4808
5023
|
</div>
|
|
4809
|
-
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
4810
|
-
<slot name="helpText"></slot>
|
|
4811
|
-
</${this.helpTextTag}>
|
|
4812
5024
|
<div class="slotContent">
|
|
4813
5025
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4814
5026
|
</div>
|
|
@@ -4825,6 +5037,67 @@ class AuroDropdown extends i$2 {
|
|
|
4825
5037
|
</div>
|
|
4826
5038
|
`;
|
|
4827
5039
|
}
|
|
5040
|
+
|
|
5041
|
+
/**
|
|
5042
|
+
* Returns HTML for the snowflake layout. Does not support type="*".
|
|
5043
|
+
* @private
|
|
5044
|
+
* @returns {html} - Returns HTML for the snowflake layout.
|
|
5045
|
+
*/
|
|
5046
|
+
renderLayoutSnowflake() {
|
|
5047
|
+
const helpTextClasses = {
|
|
5048
|
+
'helpText': true,
|
|
5049
|
+
'leftIndent': true,
|
|
5050
|
+
'rightIndent': true
|
|
5051
|
+
};
|
|
5052
|
+
|
|
5053
|
+
return u$2`
|
|
5054
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
5055
|
+
`;
|
|
5056
|
+
}
|
|
5057
|
+
|
|
5058
|
+
/**
|
|
5059
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
5060
|
+
* @private
|
|
5061
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
5062
|
+
*/
|
|
5063
|
+
renderLayoutEmphasized() {
|
|
5064
|
+
const helpTextClasses = {
|
|
5065
|
+
'helpText': true,
|
|
5066
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
5067
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
5068
|
+
};
|
|
5069
|
+
|
|
5070
|
+
return u$2`
|
|
5071
|
+
${this.renderBasicHtml(helpTextClasses)}
|
|
5072
|
+
`;
|
|
5073
|
+
}
|
|
5074
|
+
|
|
5075
|
+
/**
|
|
5076
|
+
* Logic to determine the layout of the component.
|
|
5077
|
+
* @private
|
|
5078
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
5079
|
+
* @returns {HTMLCollection} - Returns the HTML for the layout.
|
|
5080
|
+
*/
|
|
5081
|
+
renderLayout(ForcedLayout) {
|
|
5082
|
+
const layout = ForcedLayout || this.layout;
|
|
5083
|
+
|
|
5084
|
+
switch (layout) {
|
|
5085
|
+
case 'emphasized':
|
|
5086
|
+
return this.renderLayoutEmphasized();
|
|
5087
|
+
case 'emphasized-left':
|
|
5088
|
+
return this.renderLayoutEmphasized();
|
|
5089
|
+
case 'emphasized-right':
|
|
5090
|
+
return this.renderLayoutEmphasized();
|
|
5091
|
+
case 'snowflake':
|
|
5092
|
+
return this.renderLayoutSnowflake();
|
|
5093
|
+
case 'snowflake-left':
|
|
5094
|
+
return this.renderLayoutSnowflake();
|
|
5095
|
+
case 'snowflake-right':
|
|
5096
|
+
return this.renderLayoutSnowflake();
|
|
5097
|
+
default:
|
|
5098
|
+
return this.renderLayoutClassic();
|
|
5099
|
+
}
|
|
5100
|
+
}
|
|
4828
5101
|
}
|
|
4829
5102
|
|
|
4830
5103
|
var dropdownVersion = '3.0.0';
|
|
@@ -4842,13 +5115,33 @@ var dropdownVersion = '3.0.0';
|
|
|
4842
5115
|
*/
|
|
4843
5116
|
const u=(e,s,t)=>{const r=new Map;for(let l=s;l<=t;l++)r.set(e[l],l);return r},c=e$1(class extends i{constructor(e){if(super(e),e.type!==t$1.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,s,t){let r;void 0===t?t=s:void 0!==s&&(r=s);const l=[],o=[];let i=0;for(const s of e)l[i]=r?r(s,i):i,o[i]=t(s,i),i++;return {values:o,keys:l}}render(e,s,t){return this.dt(e,s,t).values}update(s,[t,r$1,c]){const d=p(s),{values:p$1,keys:a}=this.dt(t,r$1,c);if(!Array.isArray(d))return this.ut=a,p$1;const h=this.ut??=[],v$1=[];let m$1,y,x=0,j=d.length-1,k=0,w=p$1.length-1;for(;x<=j&&k<=w;)if(null===d[x])x++;else if(null===d[j])j--;else if(h[x]===a[k])v$1[k]=v(d[x],p$1[k]),x++,k++;else if(h[j]===a[w])v$1[w]=v(d[j],p$1[w]),j--,w--;else if(h[x]===a[w])v$1[w]=v(d[x],p$1[w]),r(s,v$1[w+1],d[x]),x++,w--;else if(h[j]===a[k])v$1[k]=v(d[j],p$1[k]),r(s,d[x],d[j]),j--,k++;else if(void 0===m$1&&(m$1=u(a,k,w),y=u(h,x,j)),m$1.has(h[x]))if(m$1.has(h[j])){const e=y.get(a[k]),t=void 0!==e?d[e]:null;if(null===t){const e=r(s,d[x]);v(e,p$1[k]),v$1[k]=e;}else v$1[k]=v(t,p$1[k]),r(s,d[x],t),d[e]=null;k++;}else M(d[j]),j--;else M(d[x]),x++;for(;k<=w;){const e=r(s,v$1[w+1]);v(e,p$1[k]),v$1[k++]=e;}for(;x<=j;){const e=d[x++];null!==e&&M(e);}return this.ut=a,m(s,v$1),T}});
|
|
4844
5117
|
|
|
4845
|
-
|
|
5118
|
+
var shapeSizeCss = i$5`.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}`;
|
|
4846
5119
|
|
|
5120
|
+
var styleCss$4$1 = i$5`.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}`;
|
|
4847
5121
|
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
5122
|
+
var styleDefaultCss = i$5`.layoutDefault .typeIcon,:host(:not([layout])) .typeIcon{display:flex;flex-direction:row;align-items:center}.layoutDefault .typeIcon [auro-icon],:host(:not([layout])) .typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.layoutDefault .notificationIcons,:host(:not([layout])) .notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .typeIcon,:host(:not([layout])[bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .notificationIcons,:host(:not([layout])[bordered]) .notificationIcons{align-items:center}:host([class=layoutDefault][bordered]) .notification:not(:first-of-type),:host(:not([layout])[bordered]) .notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}:host([class=layoutDefault][bordered]) .alertNotification,:host(:not([layout])[bordered]) .alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}:host([class=layoutDefault][bordered]) .passwordBtn,:host(:not([layout])[bordered]) .passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}:host([class=layoutDefault][bordered]) .notificationBtn,:host(:not([layout])[bordered]) .notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon],:host(:not([layout])[bordered]) .notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}:host([class=layoutDefault][bordered]) .notificationBtn [auro-icon][hidden],:host(:not([layout])[bordered]) .notificationBtn [auro-icon][hidden]{display:none}:host([class=layoutDefault]:not([bordered])) .typeIcon,:host([class=layoutDefault]:not([bordered])) .notificationIcons,:host(:not([layout]):not([bordered])) .typeIcon,:host(:not([layout]):not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host([class=layoutDefault]:not([bordered])) .clearBtn,:host(:not([layout]):not([bordered])) .clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}.layoutDefault .wrapper:hover .clearBtn,.layoutDefault .wrapper:focus-within .clearBtn,:host(:not([layout])) .wrapper:hover .clearBtn,:host(:not([layout])) .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host([class=layoutDefault]:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification,:host(:not([layout]):focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.layoutDefault input,:host(:not([layout])) input{border:unset}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{position:relative;overflow:hidden;border-style:solid}:host([class=layoutDefault]:not([bordered],[borderless])) .wrapper,:host(:not([layout]):not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([class=layoutDefault][bordered]) .wrapper,:host(:not([layout])[bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host([class=layoutDefault]:not([borderless])) .wrapper:focus-within:before,:host(:not([layout]):not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([class=layoutDefault][validity]:not([validity=valid])) .wrapper:before,:host(:not([layout])[validity]:not([validity=valid])) .wrapper:before{border-bottom:0}.layoutDefault label,:host(:not([layout])) label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}.layoutDefault :host(:not([bordered])) label,:host(:not([layout])) :host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}.layoutDefault :host(:not([bordered])) label.withIcon,:host(:not([layout])) :host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([class=layoutDefault][bordered]) label,:host(:not([layout])[bordered]) label{top:50%;transform:translateY(-50%)}:host([class=layoutDefault][bordered]) label.withIcon,:host(:not([layout])[bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([class=layoutDefault][bordered]) label:not(label.withIcon),:host(:not([layout])[bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}.layoutDefault .wrapper:focus-within label,:host(:not([layout])) .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}.layoutDefault label.withValue,:host(:not([layout])) label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([class=layoutDefault][activeLabel]) .wrapper label,:host(:not([layout])[activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}.layoutDefault input,:host(:not([layout])) input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);outline:none;text-overflow:ellipsis;white-space:nowrap}.layoutDefault input::-ms-reveal,.layoutDefault input::-ms-clear,:host(:not([layout])) input::-ms-reveal,:host(:not([layout])) input::-ms-clear{display:none}.layoutDefault input::-webkit-outer-spin-button,.layoutDefault input::-webkit-inner-spin-button,:host(:not([layout])) input::-webkit-outer-spin-button,:host(:not([layout])) input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}.layoutDefault input[type=number],:host(:not([layout])) input[type=number]{-moz-appearance:textfield;appearance:textfield}.layoutDefault input:disabled,:host(:not([layout])) input:disabled{background:none;pointer-events:none}:host([class=layoutDefault][bordered]) input,:host(:not([layout])[bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}: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}.layoutDefault :host,:host(:not([layout])) :host{position:relative;display:block}.layoutDefault .wrapper,:host(:not([layout])) .wrapper{display:flex;flex-direction:row}.layoutDefault .main,:host(:not([layout])) .main{display:flex;flex-direction:row;position:relative;flex:1}`;
|
|
5123
|
+
|
|
5124
|
+
var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-background-color);color:var(--ds-auro-input-text-color)}.wrapper label{color:var(--ds-auro-input-label-text-color)}.wrapper input{color:var(--ds-auro-input-text-color);caret-color:var(--ds-auro-input-caret-color)}.wrapper input::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}.wrapper .displayValue{background-color:var(--ds-auro-input-background-color)}:host(:not([ondark])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host(:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]:is([validity]:not([validity=valid]))) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
5125
|
+
|
|
5126
|
+
var tokensCss$4 = i$5`:host(:not(ondark)){--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host([ondark]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
5127
|
+
|
|
5128
|
+
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;flex:1;cursor:text}.layout-classic .mainContent label{cursor:text;padding-top:4px;font-size:var(--ds-text-body-size-xs);line-height:20px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent input{font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);padding-bottom:8px;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);height:auto}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{justify-self:flex-start;padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;line-height:0;padding-bottom:0}.layout-classic .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-classic .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-classic .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color);justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}`;
|
|
5129
|
+
|
|
5130
|
+
var classicColorCss = i$5`.layout-default label{color:var(--ds-auro-input-label-text-color)}`;
|
|
5131
|
+
|
|
5132
|
+
var emphasizedStyleCss = i$5`:host{display:block}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{background:unset;width:100%;padding:0;border:0;outline:none;overflow:hidden;text-overflow:ellipsis}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:24px;width:calc(100% - 24px)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-emphasized,.layout-emphasized-left,.layout-emphasized-right{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-emphasized label,.layout-emphasized-left label,.layout-emphasized-right label{text-transform:uppercase;font-size:32px;line-height:38px}.layout-emphasized input,.layout-emphasized-left input,.layout-emphasized-right input{text-align:center;font-size:14px;line-height:20px}.layout-emphasized .mainContent,.layout-emphasized-left .mainContent,.layout-emphasized-right .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-emphasized .displayValue,.layout-emphasized-left .displayValue,.layout-emphasized-right .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-emphasized .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-left .displayValue.hasContent:is(.withValue):not(.hasFocus),.layout-emphasized-right .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-emphasized .displayValueWrapper,.layout-emphasized-left .displayValueWrapper,.layout-emphasized-right .displayValueWrapper{transform:translateY(-50%)}.layout-emphasized .accents,.layout-emphasized-left .accents,.layout-emphasized-right .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-emphasized.withValue,.layout-emphasized-left.withValue,.layout-emphasized-right.withValue{justify-content:flex-start}.layout-emphasized.withValue label,.layout-emphasized-left.withValue label,.layout-emphasized-right.withValue label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized.withValue input,.layout-emphasized-left.withValue input,.layout-emphasized-right.withValue input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-left:not(:focus-within):not(:is([validity]:not([validity=valid]))),.layout-emphasized-right:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{justify-content:flex-start}.layout-emphasized:focus-within label,.layout-emphasized-left:focus-within label,.layout-emphasized-right:focus-within label{display:block;text-transform:unset;font-size:10px;line-height:14px;width:100%;text-align:left}.layout-emphasized:focus-within input,.layout-emphasized-left:focus-within input,.layout-emphasized-right:focus-within input{text-transform:uppercase;font-size:32px;line-height:38px;text-align:left;width:100%}.layout-emphasized:focus-within .alertNotification,.layout-emphasized-left:focus-within .alertNotification,.layout-emphasized-right:focus-within .alertNotification{display:none}.layout-emphasized .accents.left,.layout-emphasized-left .accents.left,.layout-emphasized-right .accents.left{padding-left:24px}.layout-emphasized .accents.right,.layout-emphasized-left .accents.right,.layout-emphasized-right .accents.right{padding-right:24px}.layout-emphasized-left .alertNotification{margin-right:8px}.layout-emphasized-left .clear{margin-left:8px}.layout-emphasized-right .alertNotification{margin-left:8px}.layout-emphasized-right .clear{margin-right:8px}`;
|
|
5133
|
+
|
|
5134
|
+
var emphasizedColorCss = i$5`.layout-emphasized:focus-within,.layout-emphasized.withValue,.layout-emphasized-left:focus-within,.layout-emphasized-left.withValue,.layout-emphasized-right:focus-within,.layout-emphasized-right.withValue{--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}.layout-emphasized:focus-within,.layout-emphasized-left:focus-within,.layout-emphasized-right:focus-within{--auro-input-border-color: var(--ds-auro-input-border-color)}`;
|
|
5135
|
+
|
|
5136
|
+
var snowflakeStyleCss = i$5`:host([layout*=snowflake]) .leftIndent{margin-left:24px;width:calc(100% - 48px)}:host([layout*=snowflake]) .rightIndent{margin-right:24px;width:calc(100% - 48px)}.layout-snowflake{display:flex;flex-direction:row;align-items:center;justify-content:center}.layout-snowflake label{font-size:var(--ds-text-body-size-xs);line-height:20px}.layout-snowflake input{text-align:center;font-size:18px;line-height:26px}.layout-snowflake .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;flex:1}.layout-snowflake .displayValue{position:absolute;top:0;right:0;bottom:0;left:0;display:none}.layout-snowflake .displayValue.hasContent:is(.withValue):not(.hasFocus){display:block}.layout-snowflake .displayValueWrapper{transform:translateY(-50%)}.layout-snowflake .accents{display:flex;flex-direction:row;justify-content:center;align-items:center}.layout-snowflake.withValue{justify-content:flex-start}.layout-snowflake:not(:focus-within):not(:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: transparent}.layout-snowflake:focus-within{justify-content:flex-start}.layout-snowflake:focus-within .alertNotification{display:none}.layout-snowflake .accents{width:24px}.layout-snowflake .accents.left{padding-left:24px}.layout-snowflake .accents.right{padding-right:24px}.helpTextWrapper{text-align:center}`;
|
|
5137
|
+
|
|
5138
|
+
const watchedItems = new Set();
|
|
5139
|
+
|
|
5140
|
+
|
|
5141
|
+
/**
|
|
5142
|
+
* Function for setting the value of the lang attribute.
|
|
5143
|
+
* @private
|
|
5144
|
+
* @param {object} item - Individual DOM node from set of watchedItems.
|
|
4852
5145
|
* @param {string} lang - Current language set for the document.
|
|
4853
5146
|
*/
|
|
4854
5147
|
function setLang(item, lang) {
|
|
@@ -4963,12 +5256,6 @@ function stopNotifyingOnLangChange(element) {
|
|
|
4963
5256
|
watchedItems.delete(element);
|
|
4964
5257
|
}
|
|
4965
5258
|
|
|
4966
|
-
var styleCss$4$1 = i$5`: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}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}.clearBtn{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);overflow:hidden;width:0;opacity:0}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:1}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px);transform:unset}:host{position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);position:relative;overflow:hidden;min-height:var(--ds-size-200, 1rem);max-height:var(--ds-size-200, 1rem);flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px);outline:none;text-overflow:ellipsis;white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
4967
|
-
|
|
4968
|
-
var colorCss$4 = i$5`.wrapper{border-color:transparent}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}label{color:var(--ds-auro-input-label-text-color)}.alertNotification{color:var(--ds-auro-input-error-icon-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused, #01426a);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([onDark][bordered]){--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db);--ds-auro-input-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-input-error-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([onDark][bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([onDark][disabled]){--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-input-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}`;
|
|
4969
|
-
|
|
4970
|
-
var tokensCss$4 = i$5`:host{--ds-auro-input-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-input-container-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-input-caret-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-input-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-input-error-icon-color: var(--ds-basic-color-status-error, #e31f26)}`;
|
|
4971
|
-
|
|
4972
5259
|
/** Checks if value is string */
|
|
4973
5260
|
function isString(str) {
|
|
4974
5261
|
return typeof str === 'string' || str instanceof String;
|
|
@@ -9226,7 +9513,7 @@ const {
|
|
|
9226
9513
|
|
|
9227
9514
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
9228
9515
|
|
|
9229
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
9516
|
+
let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
|
|
9230
9517
|
|
|
9231
9518
|
/* eslint-disable jsdoc/require-param */
|
|
9232
9519
|
|
|
@@ -9296,7 +9583,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
9296
9583
|
class AuroFormValidation {
|
|
9297
9584
|
|
|
9298
9585
|
constructor() {
|
|
9299
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
9586
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
9300
9587
|
}
|
|
9301
9588
|
|
|
9302
9589
|
/**
|
|
@@ -9655,6 +9942,98 @@ class AuroFormValidation {
|
|
|
9655
9942
|
}
|
|
9656
9943
|
}
|
|
9657
9944
|
|
|
9945
|
+
let AuroElement$1$1 = class AuroElement extends i$2 {
|
|
9946
|
+
static get properties() {
|
|
9947
|
+
return {
|
|
9948
|
+
|
|
9949
|
+
/**
|
|
9950
|
+
* Defines the language of an element.
|
|
9951
|
+
* @default {'default'}
|
|
9952
|
+
*/
|
|
9953
|
+
layout: {
|
|
9954
|
+
type: String,
|
|
9955
|
+
attribute: "layout",
|
|
9956
|
+
reflect: true
|
|
9957
|
+
},
|
|
9958
|
+
|
|
9959
|
+
shape: {
|
|
9960
|
+
type: String,
|
|
9961
|
+
attribute: "shape",
|
|
9962
|
+
reflect: true
|
|
9963
|
+
},
|
|
9964
|
+
|
|
9965
|
+
size: {
|
|
9966
|
+
type: String,
|
|
9967
|
+
attribute: "size",
|
|
9968
|
+
reflect: true
|
|
9969
|
+
},
|
|
9970
|
+
|
|
9971
|
+
onDark: {
|
|
9972
|
+
type: Boolean,
|
|
9973
|
+
attribute: "ondark",
|
|
9974
|
+
reflect: true
|
|
9975
|
+
}
|
|
9976
|
+
};
|
|
9977
|
+
}
|
|
9978
|
+
|
|
9979
|
+
resetShapeClasses() {
|
|
9980
|
+
if (this.shape && this.size) {
|
|
9981
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9982
|
+
|
|
9983
|
+
if (wrapper) {
|
|
9984
|
+
wrapper.classList.forEach((className) => {
|
|
9985
|
+
if (className.startsWith('shape-')) {
|
|
9986
|
+
wrapper.classList.remove(className);
|
|
9987
|
+
}
|
|
9988
|
+
});
|
|
9989
|
+
|
|
9990
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
9991
|
+
}
|
|
9992
|
+
}
|
|
9993
|
+
}
|
|
9994
|
+
|
|
9995
|
+
resetLayoutClasses() {
|
|
9996
|
+
if (this.layout) {
|
|
9997
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
9998
|
+
|
|
9999
|
+
if (wrapper) {
|
|
10000
|
+
wrapper.classList.forEach((className) => {
|
|
10001
|
+
if (className.startsWith('layout-')) {
|
|
10002
|
+
wrapper.classList.remove(className);
|
|
10003
|
+
}
|
|
10004
|
+
});
|
|
10005
|
+
|
|
10006
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
10007
|
+
}
|
|
10008
|
+
}
|
|
10009
|
+
}
|
|
10010
|
+
|
|
10011
|
+
updateComponentArchitecture() {
|
|
10012
|
+
this.resetLayoutClasses();
|
|
10013
|
+
this.resetShapeClasses();
|
|
10014
|
+
}
|
|
10015
|
+
|
|
10016
|
+
updated(changedProperties) {
|
|
10017
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
10018
|
+
this.updateComponentArchitecture();
|
|
10019
|
+
}
|
|
10020
|
+
}
|
|
10021
|
+
|
|
10022
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
10023
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
10024
|
+
render() {
|
|
10025
|
+
try {
|
|
10026
|
+
return this.renderLayout();
|
|
10027
|
+
} catch (error) {
|
|
10028
|
+
// failed to get the defined layout
|
|
10029
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
10030
|
+
|
|
10031
|
+
// fallback to the default layout
|
|
10032
|
+
return this.getLayout('default');
|
|
10033
|
+
}
|
|
10034
|
+
}
|
|
10035
|
+
};
|
|
10036
|
+
|
|
9658
10037
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
9659
10038
|
// See LICENSE in the project root for license information.
|
|
9660
10039
|
|
|
@@ -9662,9 +10041,6 @@ class AuroFormValidation {
|
|
|
9662
10041
|
/**
|
|
9663
10042
|
* Auro-input provides users a way to enter data into a text field.
|
|
9664
10043
|
*
|
|
9665
|
-
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
9666
|
-
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
9667
|
-
*
|
|
9668
10044
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
9669
10045
|
* @attr id
|
|
9670
10046
|
*
|
|
@@ -9680,22 +10056,26 @@ class AuroFormValidation {
|
|
|
9680
10056
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
9681
10057
|
*/
|
|
9682
10058
|
|
|
9683
|
-
class BaseInput extends
|
|
10059
|
+
class BaseInput extends AuroElement$1$1 {
|
|
9684
10060
|
|
|
9685
10061
|
constructor() {
|
|
9686
10062
|
super();
|
|
9687
10063
|
|
|
10064
|
+
this.activeLabel = false;
|
|
9688
10065
|
this.icon = false;
|
|
9689
10066
|
this.disabled = false;
|
|
9690
|
-
this.required = false;
|
|
9691
|
-
this.noValidate = false;
|
|
9692
10067
|
this.max = undefined;
|
|
9693
|
-
this.min = undefined;
|
|
9694
10068
|
this.maxLength = undefined;
|
|
10069
|
+
this.min = undefined;
|
|
9695
10070
|
this.minLength = undefined;
|
|
10071
|
+
this.noValidate = false;
|
|
9696
10072
|
this.onDark = false;
|
|
9697
|
-
this.
|
|
10073
|
+
this.required = false;
|
|
9698
10074
|
this.setCustomValidityForType = undefined;
|
|
10075
|
+
|
|
10076
|
+
this.layout = 'classic';
|
|
10077
|
+
this.shape = 'rounded';
|
|
10078
|
+
this.size = 'lg';
|
|
9699
10079
|
}
|
|
9700
10080
|
|
|
9701
10081
|
/**
|
|
@@ -9712,6 +10092,7 @@ class BaseInput extends i$2 {
|
|
|
9712
10092
|
this.validationCCLength = undefined;
|
|
9713
10093
|
this.hasValue = false;
|
|
9714
10094
|
this.label = 'Input label is undefined';
|
|
10095
|
+
this.placeholderStr = '';
|
|
9715
10096
|
|
|
9716
10097
|
this.allowedInputTypes = [
|
|
9717
10098
|
"text",
|
|
@@ -9758,9 +10139,10 @@ class BaseInput extends i$2 {
|
|
|
9758
10139
|
.substring(idSubstrStart, idSubstrEnd);
|
|
9759
10140
|
}
|
|
9760
10141
|
|
|
9761
|
-
// function to define props used within the scope of this
|
|
10142
|
+
// function to define props used within the scope of this component
|
|
9762
10143
|
static get properties() {
|
|
9763
10144
|
return {
|
|
10145
|
+
...super.properties,
|
|
9764
10146
|
|
|
9765
10147
|
/**
|
|
9766
10148
|
* The value for the role attribute.
|
|
@@ -10092,15 +10474,6 @@ class BaseInput extends i$2 {
|
|
|
10092
10474
|
};
|
|
10093
10475
|
}
|
|
10094
10476
|
|
|
10095
|
-
|
|
10096
|
-
static get styles() {
|
|
10097
|
-
return [
|
|
10098
|
-
i$5`${colorCss$4}`,
|
|
10099
|
-
i$5`${styleCss$4$1}`,
|
|
10100
|
-
i$5`${tokensCss$4}`
|
|
10101
|
-
];
|
|
10102
|
-
}
|
|
10103
|
-
|
|
10104
10477
|
connectedCallback() {
|
|
10105
10478
|
super.connectedCallback();
|
|
10106
10479
|
|
|
@@ -10115,15 +10488,21 @@ class BaseInput extends i$2 {
|
|
|
10115
10488
|
}
|
|
10116
10489
|
|
|
10117
10490
|
firstUpdated() {
|
|
10491
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helptext or label will not focus the input.
|
|
10492
|
+
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
10493
|
+
this.inputElement = this.renderRoot.querySelector('input');
|
|
10494
|
+
this.labelElement = this.shadowRoot.querySelector('label');
|
|
10495
|
+
|
|
10496
|
+
if (this.wrapperElement) {
|
|
10497
|
+
this.wrapperElement.addEventListener('click', this.handleClick);
|
|
10498
|
+
}
|
|
10499
|
+
|
|
10118
10500
|
// add attribute for query selectors when auro-input is registered under a custom name
|
|
10119
10501
|
if (this.tagName.toLowerCase() !== 'auro-input') {
|
|
10120
10502
|
this.setAttribute('auro-input', true);
|
|
10121
10503
|
}
|
|
10122
10504
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
10123
10505
|
|
|
10124
|
-
this.inputElement = this.renderRoot.querySelector('input');
|
|
10125
|
-
this.labelElement = this.shadowRoot.querySelector('label');
|
|
10126
|
-
|
|
10127
10506
|
if (this.format) {
|
|
10128
10507
|
this.format = this.format.toLowerCase();
|
|
10129
10508
|
}
|
|
@@ -10133,6 +10512,7 @@ class BaseInput extends i$2 {
|
|
|
10133
10512
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
10134
10513
|
}
|
|
10135
10514
|
|
|
10515
|
+
this.getPlaceholder();
|
|
10136
10516
|
this.setCustomHelpTextMessage();
|
|
10137
10517
|
this.configureAutoFormatting();
|
|
10138
10518
|
}
|
|
@@ -10169,6 +10549,8 @@ class BaseInput extends i$2 {
|
|
|
10169
10549
|
* @returns {void}
|
|
10170
10550
|
*/
|
|
10171
10551
|
updated(changedProperties) {
|
|
10552
|
+
super.updated(changedProperties);
|
|
10553
|
+
|
|
10172
10554
|
if (changedProperties.has('format')) {
|
|
10173
10555
|
this.configureAutoFormatting();
|
|
10174
10556
|
}
|
|
@@ -10289,15 +10671,6 @@ class BaseInput extends i$2 {
|
|
|
10289
10671
|
return this.pattern;
|
|
10290
10672
|
}
|
|
10291
10673
|
|
|
10292
|
-
/**
|
|
10293
|
-
* Function to set element focus.
|
|
10294
|
-
* @private
|
|
10295
|
-
* @return {void}
|
|
10296
|
-
*/
|
|
10297
|
-
focus() {
|
|
10298
|
-
this.inputElement.focus();
|
|
10299
|
-
}
|
|
10300
|
-
|
|
10301
10674
|
/**
|
|
10302
10675
|
* Required to convert SVG icons from data to HTML string.
|
|
10303
10676
|
* @private
|
|
@@ -10327,6 +10700,25 @@ class BaseInput extends i$2 {
|
|
|
10327
10700
|
this.dispatchEvent(inputEvent);
|
|
10328
10701
|
}
|
|
10329
10702
|
|
|
10703
|
+
|
|
10704
|
+
/**
|
|
10705
|
+
* Handles clicking on the auro-input anywhere outside of the HTML5 input and still moving focus in.
|
|
10706
|
+
* @private
|
|
10707
|
+
* @return {void}
|
|
10708
|
+
*/
|
|
10709
|
+
handleClick() {
|
|
10710
|
+
this.focus();
|
|
10711
|
+
}
|
|
10712
|
+
|
|
10713
|
+
/**
|
|
10714
|
+
* Function to set element focus.
|
|
10715
|
+
* @private
|
|
10716
|
+
* @return {void}
|
|
10717
|
+
*/
|
|
10718
|
+
focus() {
|
|
10719
|
+
this.inputElement.focus();
|
|
10720
|
+
}
|
|
10721
|
+
|
|
10330
10722
|
/**
|
|
10331
10723
|
* Handles event of clearing input content by clicking the X icon.
|
|
10332
10724
|
* @private
|
|
@@ -10374,10 +10766,23 @@ class BaseInput extends i$2 {
|
|
|
10374
10766
|
* @return {void}
|
|
10375
10767
|
*/
|
|
10376
10768
|
handleFocusin() {
|
|
10769
|
+
this.hasFocus = true;
|
|
10770
|
+
|
|
10771
|
+
this.getPlaceholder();
|
|
10377
10772
|
|
|
10378
10773
|
this.touched = true;
|
|
10379
10774
|
}
|
|
10380
10775
|
|
|
10776
|
+
/**
|
|
10777
|
+
* Function to support @focusout event.
|
|
10778
|
+
* @private
|
|
10779
|
+
* @return {void}
|
|
10780
|
+
*/
|
|
10781
|
+
handleFocusout() {
|
|
10782
|
+
this.hasFocus = false;
|
|
10783
|
+
this.getPlaceholder();
|
|
10784
|
+
}
|
|
10785
|
+
|
|
10381
10786
|
/**
|
|
10382
10787
|
* Function to support @blur event.
|
|
10383
10788
|
* @private
|
|
@@ -10502,16 +10907,31 @@ class BaseInput extends i$2 {
|
|
|
10502
10907
|
/**
|
|
10503
10908
|
* Support placeholder text.
|
|
10504
10909
|
* @private
|
|
10505
|
-
* @returns {
|
|
10910
|
+
* @returns {void}
|
|
10506
10911
|
*/
|
|
10507
10912
|
getPlaceholder() {
|
|
10508
|
-
|
|
10509
|
-
|
|
10510
|
-
|
|
10511
|
-
|
|
10913
|
+
const isFocused = this.inputElement === this.getActiveElement();
|
|
10914
|
+
|
|
10915
|
+
// console.warn('isFocused', isFocused);
|
|
10916
|
+
// console.warn(this.inputElement);
|
|
10917
|
+
// console.warn(this.getActiveElement());
|
|
10918
|
+
|
|
10919
|
+
if (!isFocused) {
|
|
10920
|
+
if (this.placeholder) {
|
|
10921
|
+
this.placeholderStr = this.placeholder;
|
|
10922
|
+
// return this.placeholder;
|
|
10923
|
+
} else if (this.type === 'date') {
|
|
10924
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10925
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10926
|
+
}
|
|
10927
|
+
} else {
|
|
10928
|
+
this.placeholderStr = '';
|
|
10512
10929
|
}
|
|
10513
10930
|
|
|
10514
|
-
|
|
10931
|
+
this.requestUpdate();
|
|
10932
|
+
|
|
10933
|
+
// console.warn('this.placeholderStr', this.placeholderStr);
|
|
10934
|
+
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
10515
10935
|
}
|
|
10516
10936
|
|
|
10517
10937
|
/**
|
|
@@ -10724,7 +11144,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
10724
11144
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
10725
11145
|
*/
|
|
10726
11146
|
|
|
10727
|
-
let AuroElement$
|
|
11147
|
+
let AuroElement$3 = class AuroElement extends i$2 {
|
|
10728
11148
|
|
|
10729
11149
|
// function to define props used within the scope of this component
|
|
10730
11150
|
static get properties() {
|
|
@@ -10792,7 +11212,7 @@ var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
10792
11212
|
*/
|
|
10793
11213
|
|
|
10794
11214
|
// build the component class
|
|
10795
|
-
let BaseIcon$2 = class BaseIcon extends AuroElement$
|
|
11215
|
+
let BaseIcon$2 = class BaseIcon extends AuroElement$3 {
|
|
10796
11216
|
constructor() {
|
|
10797
11217
|
super();
|
|
10798
11218
|
this.onDark = false;
|
|
@@ -10864,9 +11284,9 @@ let BaseIcon$2 = class BaseIcon extends AuroElement$2 {
|
|
|
10864
11284
|
}
|
|
10865
11285
|
};
|
|
10866
11286
|
|
|
10867
|
-
var tokensCss$3 = i$5`: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)}`;
|
|
11287
|
+
var tokensCss$3$1 = i$5`: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)}`;
|
|
10868
11288
|
|
|
10869
|
-
var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
11289
|
+
var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
10870
11290
|
|
|
10871
11291
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
10872
11292
|
// See LICENSE in the project root for license information.
|
|
@@ -10887,7 +11307,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10887
11307
|
*/
|
|
10888
11308
|
privateDefaults() {
|
|
10889
11309
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
10890
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
11310
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
10891
11311
|
}
|
|
10892
11312
|
|
|
10893
11313
|
// function to define props used within the scope of this component
|
|
@@ -10954,7 +11374,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10954
11374
|
static get styles() {
|
|
10955
11375
|
return [
|
|
10956
11376
|
super.styles,
|
|
10957
|
-
i$5`${tokensCss$3}`,
|
|
11377
|
+
i$5`${tokensCss$3$1}`,
|
|
10958
11378
|
i$5`${styleCss$3$1}`,
|
|
10959
11379
|
i$5`${colorCss$3$1}`
|
|
10960
11380
|
];
|
|
@@ -10969,7 +11389,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
10969
11389
|
*
|
|
10970
11390
|
*/
|
|
10971
11391
|
static register(name = "auro-icon") {
|
|
10972
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
11392
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
|
|
10973
11393
|
}
|
|
10974
11394
|
|
|
10975
11395
|
connectedCallback() {
|
|
@@ -11037,7 +11457,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
|
|
|
11037
11457
|
|
|
11038
11458
|
var iconVersion$2 = '8.0.1';
|
|
11039
11459
|
|
|
11040
|
-
var styleCss$2$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, AS Circular);font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight,
|
|
11460
|
+
var styleCss$2$2 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}:host([fluid]) .auro-button,:host([fluid=true]) .auro-button{min-width:auto;width:100%}:host([variant=flat]){display:inline-block;height:var(--ds-size-300, 1.5rem);width:var(--ds-size-300, 1.5rem)}:host([variant=flat]) .auro-button{height:100%;width:100%}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.auro-button{position:relative;padding:0 var(--ds-size-300, 1.5rem);cursor:pointer;border-width:1px;border-style:solid;border-radius:var(--ds-border-radius, 0.375rem);font-family:var(--ds-basic-text-body-default-font-family, "AS Circular");font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);line-height:var(--ds-basic-text-body-default-line-height, 24px);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);overflow:hidden;text-overflow:ellipsis;user-select:none;white-space:nowrap;min-height:var(--ds-size-600, 3rem);max-height:var(--ds-size-600, 3rem);display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:var(--ds-size-100, 0.5rem);margin:0;-webkit-touch-callout:none;-webkit-user-select:none}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible{outline:none}.auro-button:focus-visible:not([variant=flat]){outline-style:solid;outline-width:var(--ds-size-50, 0.25rem);outline-offset:calc(var(--ds-size-50, 0.25rem)*-1)}.auro-button:focus-visible:not([variant=flat]):not([variant=secondary]):not([variant=tertiary]){outline-width:calc(var(--ds-size-50, 0.25rem) - 1px)}.auro-button.loading{cursor:not-allowed}.auro-button.loading *:not([auro-loader]){visibility:hidden}@media screen and (min-width: 576px){.auro-button{min-width:8.75rem;width:auto}}.auro-button:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=secondary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button[variant=flat]{height:unset;width:unset;min-height:unset;max-height:unset;min-width:unset;max-width:unset;border:0;border-radius:unset;gap:unset;padding:unset}.auro-button[onDark]:disabled{cursor:not-allowed;transform:unset}.auro-button[onDark][variant=secondary]:disabled{cursor:not-allowed;transform:unset}@media(hover: hover){.auro-button[onDark][variant=tertiary]:active,.auro-button[onDark][variant=tertiary]:hover{box-shadow:none}}.auro-button[onDark][variant=tertiary]:active{box-shadow:none}.auro-button[onDark][variant=tertiary]:disabled{cursor:not-allowed;transform:unset}.auro-button--slim{padding:var(--ds-size-100, 0.5rem) var(--ds-size-200, 1rem);font-family:var(--ds-basic-text-body-sm-font-family, "AS Circular");font-size:var(--ds-basic-text-body-sm-font-size, 14px);font-weight:var(--ds-basic-text-body-sm-font-weight, 450);line-height:var(--ds-basic-text-body-sm-line-height, 20px);letter-spacing:var(--ds-basic-text-body-sm-letter-spacing, 0);min-width:unset;min-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem));max-height:calc(var(--ds-size-500, 2.5rem) - var(--ds-size-50, 0.25rem))}.auro-button--iconOnly{padding:0 var(--ds-size-100, 0.5rem);border-radius:100px;min-width:unset;height:var(--ds-size-600, 3rem);width:var(--ds-size-500, 2.5rem)}.auro-button--iconOnly ::slotted(auro-icon),.auro-button--iconOnly ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--iconOnly:not(.auro-button--rounded):focus-visible:not([variant=secondary]):not([variant=tertiary]):not([variant=flat]){outline-width:1px;outline-offset:-2px}.auro-button--iconOnlySlim{padding:0 var(--ds-size-50, 0.25rem);height:calc(var(--ds-size-400, 2rem) + var(--ds-size-50, 0.25rem));width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-50, 0.25rem))}.auro-button--iconOnlySlim ::slotted(auro-icon),.auro-button--iconOnlySlim ::slotted([auro-icon]){--ds-auro-icon-size:calc(var(--ds-size-200, 1rem) + var(--ds-size-50, 0.25rem))}.auro-button--rounded{border-radius:100px;box-shadow:var(--ds-elevation-300, 0px 0px 15px rgba(0, 0, 0, 0.2));height:var(--ds-size-500, 2.5rem);min-width:unset;transition:all 300ms ease-out,outline 0ms,outline-offset 0ms}.auro-button--rounded ::slotted(auro-icon),.auro-button--rounded ::slotted([auro-icon]){--ds-auro-icon-size:var(--ds-size-300, 1.5rem)}.auro-button--rounded:focus-visible:not([variant=flat]):after{border-radius:100px}:host([rounded]) .textSlot{transition:opacity 300ms ease-in;opacity:1}:host([rounded][iconOnly]) .textSlot{opacity:0}:host([rounded][iconOnly]) .textWrapper{display:none}:host([rounded][iconOnly]) .auro-button{min-width:unset;padding:unset;width:var(--ds-size-600, 3rem)}[auro-loader]{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);pointer-events:none}`;
|
|
11041
11461
|
|
|
11042
11462
|
var colorCss$2$1 = i$5`[auro-loader]{color:var(--ds-auro-button-loader-color)}.auro-button{-webkit-tap-highlight-color:var(--ds-auro-button-tap-color);color:var(--ds-auro-button-text-color);background-color:var(--ds-auro-button-container-color);background-image:linear-gradient(var(--ds-auro-button-container-image), var(--ds-auro-button-container-image));border-color:var(--ds-auro-button-border-color)}.auro-button:not([variant=secondary]):not([variant=tertiary]):focus-visible{outline-color:var(--ds-auro-button-border-inset-color)}.auro-button:not([ondark]):active:not(:disabled),.auro-button:not([ondark]):hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-hover, #00274a);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-hover, #00274a)}.auro-button:not([ondark]):disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-disabled, #acc9e2);--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-disabled, #acc9e2)}.auro-button:not([ondark])[variant=secondary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background, #ffffff);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text, #01426a)}.auro-button:not([ondark])[variant=secondary]:active:not(:disabled),.auro-button:not([ondark])[variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-hover, #f2f2f2);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-hover, #00274a);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-hover, #00274a)}.auro-button:not([ondark])[variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=secondary]:disabled{--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-disabled, #f7f7f7);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-disabled, #cfe0ef);--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text, #01426a)}.auro-button:not([ondark])[variant=tertiary]:active:not(:disabled),.auro-button:not([ondark])[variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-hover, rgba(0, 0, 0, 0.1));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button:not([ondark])[variant=tertiary]:disabled{--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}.auro-button:not([ondark])[variant=flat]{color:var(--ds-advanced-color-button-flat-text, #676767);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:active:not(:disabled),.auro-button:not([ondark])[variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-hover, #525252);background-color:transparent;background-image:none;border-color:transparent}.auro-button:not([ondark])[variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-disabled, #d0d0d0);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark]{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a)}.auro-button[ondark]:active:not(:disabled),.auro-button[ondark]:hover:not(:disabled){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-hover, #ebf3f9);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-hover, #ebf3f9)}.auro-button[ondark]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused, #01426a)}.auro-button[ondark]:disabled{--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=secondary]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-secondary-text-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:active:not(:disabled),.auro-button[ondark][variant=secondary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-secondary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=secondary]:focus-visible{--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=secondary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-button-border-color:var(--ds-advanced-color-button-secondary-border-inverse-disabled, #dddddd)}.auro-button[ondark][variant=tertiary]{--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:active:not(:disabled),.auro-button[ondark][variant=tertiary]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1));--ds-auro-button-container-image:var(--ds-advanced-color-button-tertiary-background-inverse-hover, rgba(255, 255, 255, 0.1))}.auro-button[ondark][variant=tertiary]:focus-visible{--ds-auro-button-border-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff)}.auro-button[ondark][variant=tertiary]:disabled{--ds-auro-button-text-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}.auro-button[ondark][variant=flat]{color:var(--ds-advanced-color-button-flat-text-inverse, #ffffff);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:active:not(:disabled),.auro-button[ondark][variant=flat]:hover:not(:disabled){color:var(--ds-advanced-color-button-flat-text-inverse-hover, #adadad);background-color:transparent;background-image:none;border-color:transparent}.auro-button[ondark][variant=flat]:disabled{color:var(--ds-advanced-color-button-flat-text-inverse-disabled, #7e8894);background-color:transparent;background-image:none;border-color:transparent}`;
|
|
11043
11463
|
|
|
@@ -11075,7 +11495,7 @@ class AuroLoader extends i$2 {
|
|
|
11075
11495
|
/**
|
|
11076
11496
|
* @private
|
|
11077
11497
|
*/
|
|
11078
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
11498
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
|
|
11079
11499
|
|
|
11080
11500
|
this.orbit = false;
|
|
11081
11501
|
this.ringworm = false;
|
|
@@ -11138,7 +11558,7 @@ class AuroLoader extends i$2 {
|
|
|
11138
11558
|
*
|
|
11139
11559
|
*/
|
|
11140
11560
|
static register(name = "auro-loader") {
|
|
11141
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroLoader);
|
|
11561
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroLoader);
|
|
11142
11562
|
}
|
|
11143
11563
|
|
|
11144
11564
|
firstUpdated() {
|
|
@@ -11196,27 +11616,6 @@ var loaderVersion = '5.0.0';
|
|
|
11196
11616
|
|
|
11197
11617
|
|
|
11198
11618
|
/**
|
|
11199
|
-
* @attr {Boolean} autofocus - This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user
|
|
11200
|
-
* @attr {Boolean} disabled - If set to true, button will become disabled and not allow for interactions
|
|
11201
|
-
* @attr {Boolean} iconOnly - If set to true, the button will contain an icon with no additional content
|
|
11202
|
-
* @attr {Boolean} loading - If set to true button text will be replaced with `auro-loader` and become disabled
|
|
11203
|
-
* @attr {String} loadingText - Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
11204
|
-
* @attr {Boolean} onDark - Set value for on-dark version of auro-button
|
|
11205
|
-
* @attr {Boolean} rounded - If set to true, the button will have a rounded shape
|
|
11206
|
-
* @attr {Boolean} slim - Set value for slim version of auro-button
|
|
11207
|
-
* @attr {Boolean} fluid - Alters the shape of the button to be full width of its parent container
|
|
11208
|
-
* @attr {String} arialabel - Populates the `aria-label` attribute that is used to define a string that labels the current element. Use it in cases where a text label is not visible on the screen. If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
11209
|
-
* @attr {String} arialabelledby - Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s), and its value should be one or more element IDs, which refer to elements that have the text needed for labeling. List multiple element IDs in a space delimited fashion.
|
|
11210
|
-
* @attr {Boolean} ariaexpanded - Populates the `aria-expanded` attribute that indicates whether the element, or another grouping element it controls, is currently expanded or collapsed. This is an optional attribute for buttons.
|
|
11211
|
-
* @attr {String} id - Set the unique ID of an element.
|
|
11212
|
-
* @attr {String} title - Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11213
|
-
* @attr {String} type - The type of the button. Possible values are: `submit`, `reset`, `button`
|
|
11214
|
-
* @attr {String} value - Defines the value associated with the button which is submitted with the form data.
|
|
11215
|
-
* @attr {String} variant - Sets button variant option. Possible values are: `secondary`, `tertiary`
|
|
11216
|
-
* @attr {Boolean} secondary - DEPRECATED
|
|
11217
|
-
* @attr {Boolean} tertiary - DEPRECATED
|
|
11218
|
-
* @prop {Boolean} ready - When false the component API should not be called.
|
|
11219
|
-
* @event auroButton-ready - Notifies that the component has finished initializing.
|
|
11220
11619
|
* @slot - Default slot for the text of the button.
|
|
11221
11620
|
* @slot icon - Slot to provide auro-icon for the button.
|
|
11222
11621
|
* @csspart button - Apply CSS to HTML5 button.
|
|
@@ -11240,13 +11639,11 @@ class AuroButton extends i$2 {
|
|
|
11240
11639
|
|
|
11241
11640
|
constructor() {
|
|
11242
11641
|
super();
|
|
11243
|
-
|
|
11244
11642
|
this.autofocus = false;
|
|
11245
11643
|
this.disabled = false;
|
|
11246
11644
|
this.iconOnly = false;
|
|
11247
11645
|
this.loading = false;
|
|
11248
11646
|
this.onDark = false;
|
|
11249
|
-
this.ready = false;
|
|
11250
11647
|
this.secondary = false;
|
|
11251
11648
|
this.tertiary = false;
|
|
11252
11649
|
this.rounded = false;
|
|
@@ -11285,73 +11682,169 @@ class AuroButton extends i$2 {
|
|
|
11285
11682
|
|
|
11286
11683
|
static get properties() {
|
|
11287
11684
|
return {
|
|
11685
|
+
|
|
11686
|
+
/**
|
|
11687
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
11688
|
+
*/
|
|
11288
11689
|
autofocus: {
|
|
11289
11690
|
type: Boolean,
|
|
11290
11691
|
reflect: true
|
|
11291
11692
|
},
|
|
11693
|
+
|
|
11694
|
+
/**
|
|
11695
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
11696
|
+
*/
|
|
11292
11697
|
disabled: {
|
|
11293
11698
|
type: Boolean,
|
|
11294
11699
|
reflect: true
|
|
11295
11700
|
},
|
|
11701
|
+
|
|
11702
|
+
/**
|
|
11703
|
+
* DEPRECATED.
|
|
11704
|
+
* @deprecated
|
|
11705
|
+
*/
|
|
11296
11706
|
secondary: {
|
|
11297
11707
|
type: Boolean,
|
|
11298
11708
|
reflect: true
|
|
11299
11709
|
},
|
|
11710
|
+
|
|
11711
|
+
/**
|
|
11712
|
+
* DEPRECATED.
|
|
11713
|
+
* @deprecated
|
|
11714
|
+
*/
|
|
11300
11715
|
tertiary: {
|
|
11301
11716
|
type: Boolean,
|
|
11302
11717
|
reflect: true
|
|
11303
11718
|
},
|
|
11719
|
+
|
|
11720
|
+
/**
|
|
11721
|
+
* Alters the shape of the button to be full width of its parent container.
|
|
11722
|
+
*/
|
|
11304
11723
|
fluid: {
|
|
11305
11724
|
type: Boolean,
|
|
11306
11725
|
reflect: true
|
|
11307
11726
|
},
|
|
11727
|
+
|
|
11728
|
+
/**
|
|
11729
|
+
* If set to true, the button will contain an icon with no additional content.
|
|
11730
|
+
*/
|
|
11308
11731
|
iconOnly: {
|
|
11309
11732
|
type: Boolean,
|
|
11310
11733
|
reflect: true
|
|
11311
11734
|
},
|
|
11735
|
+
|
|
11736
|
+
/**
|
|
11737
|
+
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
11738
|
+
*/
|
|
11312
11739
|
loading: {
|
|
11313
11740
|
type: Boolean,
|
|
11314
11741
|
reflect: true
|
|
11315
11742
|
},
|
|
11743
|
+
|
|
11744
|
+
/**
|
|
11745
|
+
* Sets custom loading text for the `aria-label` on a button in loading state. If not set, the default value of "Loading..." will be used.
|
|
11746
|
+
*/
|
|
11316
11747
|
loadingText: {
|
|
11317
11748
|
type: String
|
|
11318
11749
|
},
|
|
11750
|
+
|
|
11751
|
+
/**
|
|
11752
|
+
* Set value for on-dark version of auro-button.
|
|
11753
|
+
*/
|
|
11319
11754
|
onDark: {
|
|
11320
11755
|
type: Boolean,
|
|
11321
11756
|
reflect: true
|
|
11322
11757
|
},
|
|
11758
|
+
|
|
11759
|
+
/**
|
|
11760
|
+
* If set to true, the button will have a rounded shape.
|
|
11761
|
+
*/
|
|
11323
11762
|
rounded: {
|
|
11324
11763
|
type: Boolean,
|
|
11325
11764
|
reflect: true
|
|
11326
11765
|
},
|
|
11766
|
+
|
|
11767
|
+
/**
|
|
11768
|
+
* Set value for slim version of auro-button.
|
|
11769
|
+
*/
|
|
11327
11770
|
slim: {
|
|
11328
11771
|
type: Boolean,
|
|
11329
11772
|
reflect: true
|
|
11330
11773
|
},
|
|
11774
|
+
|
|
11775
|
+
/**
|
|
11776
|
+
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
11777
|
+
*/
|
|
11778
|
+
tIndex: {
|
|
11779
|
+
type: String,
|
|
11780
|
+
reflect: true
|
|
11781
|
+
},
|
|
11782
|
+
|
|
11783
|
+
/**
|
|
11784
|
+
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
11785
|
+
*/
|
|
11786
|
+
ariahidden: {
|
|
11787
|
+
type: String,
|
|
11788
|
+
reflect: true,
|
|
11789
|
+
},
|
|
11790
|
+
|
|
11791
|
+
/**
|
|
11792
|
+
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
11793
|
+
* Use it in cases where a text label is not visible on the screen.
|
|
11794
|
+
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
11795
|
+
*/
|
|
11331
11796
|
arialabel: {
|
|
11332
11797
|
type: String,
|
|
11333
11798
|
reflect: true
|
|
11334
11799
|
},
|
|
11800
|
+
|
|
11801
|
+
/**
|
|
11802
|
+
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
11803
|
+
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
11804
|
+
* List multiple element IDs in a space delimited fashion.
|
|
11805
|
+
*/
|
|
11335
11806
|
arialabelledby: {
|
|
11336
11807
|
type: String,
|
|
11337
11808
|
reflect: true
|
|
11338
11809
|
},
|
|
11810
|
+
|
|
11811
|
+
/**
|
|
11812
|
+
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
11813
|
+
* or another grouping element it controls, is currently expanded or collapsed.
|
|
11814
|
+
* This is an optional attribute for buttons.
|
|
11815
|
+
*/
|
|
11339
11816
|
ariaexpanded: {
|
|
11340
11817
|
type: Boolean,
|
|
11341
11818
|
reflect: true
|
|
11342
11819
|
},
|
|
11820
|
+
|
|
11821
|
+
/**
|
|
11822
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
11823
|
+
*/
|
|
11343
11824
|
title: {
|
|
11344
11825
|
type: String,
|
|
11345
11826
|
reflect: true
|
|
11346
11827
|
},
|
|
11828
|
+
|
|
11829
|
+
/**
|
|
11830
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
11831
|
+
*/
|
|
11347
11832
|
type: {
|
|
11348
11833
|
type: String,
|
|
11349
11834
|
reflect: true
|
|
11350
11835
|
},
|
|
11836
|
+
|
|
11837
|
+
/**
|
|
11838
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
11839
|
+
*/
|
|
11351
11840
|
value: {
|
|
11352
11841
|
type: String,
|
|
11353
11842
|
reflect: true
|
|
11354
11843
|
},
|
|
11844
|
+
|
|
11845
|
+
/**
|
|
11846
|
+
* Sets button variant option. Possible values are: `secondary`, `tertiary`.
|
|
11847
|
+
*/
|
|
11355
11848
|
variant: {
|
|
11356
11849
|
type: String,
|
|
11357
11850
|
reflect: true
|
|
@@ -11369,7 +11862,7 @@ class AuroButton extends i$2 {
|
|
|
11369
11862
|
*
|
|
11370
11863
|
*/
|
|
11371
11864
|
static register(name = "auro-button") {
|
|
11372
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroButton);
|
|
11865
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroButton);
|
|
11373
11866
|
}
|
|
11374
11867
|
|
|
11375
11868
|
/**
|
|
@@ -11381,21 +11874,6 @@ class AuroButton extends i$2 {
|
|
|
11381
11874
|
this.renderRoot.querySelector('button').focus();
|
|
11382
11875
|
}
|
|
11383
11876
|
|
|
11384
|
-
/**
|
|
11385
|
-
* Marks the component as ready and sends event.
|
|
11386
|
-
* @private
|
|
11387
|
-
* @returns {void}
|
|
11388
|
-
*/
|
|
11389
|
-
notifyReady() {
|
|
11390
|
-
this.ready = true;
|
|
11391
|
-
|
|
11392
|
-
this.dispatchEvent(new CustomEvent('auroButton-ready', {
|
|
11393
|
-
bubbles: true,
|
|
11394
|
-
cancelable: false,
|
|
11395
|
-
composed: true,
|
|
11396
|
-
}));
|
|
11397
|
-
}
|
|
11398
|
-
|
|
11399
11877
|
updated() {
|
|
11400
11878
|
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
11401
11879
|
if (this.secondary) {
|
|
@@ -11407,10 +11885,6 @@ class AuroButton extends i$2 {
|
|
|
11407
11885
|
}
|
|
11408
11886
|
}
|
|
11409
11887
|
|
|
11410
|
-
firstUpdated() {
|
|
11411
|
-
this.notifyReady();
|
|
11412
|
-
}
|
|
11413
|
-
|
|
11414
11888
|
/**
|
|
11415
11889
|
* Submits the form that this button is associated with.
|
|
11416
11890
|
* @private
|
|
@@ -11425,7 +11899,7 @@ class AuroButton extends i$2 {
|
|
|
11425
11899
|
/**
|
|
11426
11900
|
* Returns the form element that this button is associated with.
|
|
11427
11901
|
* @private
|
|
11428
|
-
* @returns {HTMLFormElement|null}
|
|
11902
|
+
* @returns {HTMLFormElement | null}
|
|
11429
11903
|
*/
|
|
11430
11904
|
get form() {
|
|
11431
11905
|
return this.internals ? this.internals.form : null;
|
|
@@ -11446,9 +11920,11 @@ class AuroButton extends i$2 {
|
|
|
11446
11920
|
return u$2`
|
|
11447
11921
|
<button
|
|
11448
11922
|
part="button"
|
|
11923
|
+
aria-hidden="${o(this.ariahidden || undefined)}"
|
|
11449
11924
|
aria-label="${o(this.loading ? this.loadingText : this.arialabel || undefined)}"
|
|
11450
11925
|
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
11451
11926
|
aria-expanded="${o(this.ariaexpanded)}"
|
|
11927
|
+
tabIndex="${o(this.tIndex)}"
|
|
11452
11928
|
?autofocus="${this.autofocus}"
|
|
11453
11929
|
class="${e(classes)}"
|
|
11454
11930
|
?disabled="${this.disabled || this.loading}"
|
|
@@ -11480,7 +11956,7 @@ var buttonVersion = '9.3.0';
|
|
|
11480
11956
|
|
|
11481
11957
|
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
11482
11958
|
|
|
11483
|
-
var styleCss$
|
|
11959
|
+
var styleCss$6 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
11484
11960
|
|
|
11485
11961
|
var tokensCss$5 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
11486
11962
|
|
|
@@ -11563,7 +12039,7 @@ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
|
11563
12039
|
*
|
|
11564
12040
|
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
11565
12041
|
*/
|
|
11566
|
-
class AuroHelpText extends i$2 {
|
|
12042
|
+
let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
11567
12043
|
|
|
11568
12044
|
constructor() {
|
|
11569
12045
|
super();
|
|
@@ -11578,7 +12054,7 @@ class AuroHelpText extends i$2 {
|
|
|
11578
12054
|
static get styles() {
|
|
11579
12055
|
return [
|
|
11580
12056
|
colorCss$5,
|
|
11581
|
-
styleCss$
|
|
12057
|
+
styleCss$6,
|
|
11582
12058
|
tokensCss$5
|
|
11583
12059
|
];
|
|
11584
12060
|
}
|
|
@@ -11682,7 +12158,7 @@ class AuroHelpText extends i$2 {
|
|
|
11682
12158
|
</div>
|
|
11683
12159
|
`;
|
|
11684
12160
|
}
|
|
11685
|
-
}
|
|
12161
|
+
};
|
|
11686
12162
|
|
|
11687
12163
|
var helpTextVersion = '1.0.0';
|
|
11688
12164
|
|
|
@@ -11704,29 +12180,88 @@ class AuroInput extends BaseInput {
|
|
|
11704
12180
|
/**
|
|
11705
12181
|
* @private
|
|
11706
12182
|
*/
|
|
11707
|
-
this.
|
|
12183
|
+
this.buttonTag = versioning.generateTag('auro-formkit-input-button', buttonVersion, AuroButton);
|
|
11708
12184
|
|
|
11709
12185
|
/**
|
|
11710
12186
|
* @private
|
|
11711
12187
|
*/
|
|
11712
|
-
this.
|
|
12188
|
+
this.hasDisplayValueContent = false;
|
|
12189
|
+
|
|
12190
|
+
/**
|
|
12191
|
+
* @private
|
|
12192
|
+
*/
|
|
12193
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText$1);
|
|
11713
12194
|
|
|
11714
12195
|
/**
|
|
11715
12196
|
* @private
|
|
11716
12197
|
*/
|
|
11717
|
-
this.
|
|
12198
|
+
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion$2, AuroIcon$2);
|
|
11718
12199
|
}
|
|
11719
12200
|
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
12201
|
+
static get styles() {
|
|
12202
|
+
return [
|
|
12203
|
+
i$5`${shapeSizeCss}`,
|
|
12204
|
+
i$5`${colorBaseCss}`,
|
|
12205
|
+
i$5`${styleCss$4$1}`,
|
|
12206
|
+
i$5`${styleDefaultCss}`,
|
|
12207
|
+
i$5`${tokensCss$4}`,
|
|
12208
|
+
i$5`${classicStyleCss}`,
|
|
12209
|
+
i$5`${classicColorCss}`,
|
|
12210
|
+
i$5`${emphasizedStyleCss}`,
|
|
12211
|
+
i$5`${emphasizedColorCss}`,
|
|
12212
|
+
i$5`${snowflakeStyleCss}`
|
|
12213
|
+
];
|
|
12214
|
+
}
|
|
12215
|
+
|
|
12216
|
+
/**
|
|
12217
|
+
* Returns classmap configuration for html5 input labels in all layouts.
|
|
12218
|
+
* @private
|
|
12219
|
+
* @returns {void}
|
|
12220
|
+
*/
|
|
12221
|
+
get commonLabelClasses() {
|
|
12222
|
+
return {
|
|
12223
|
+
'withValue': this.value && this.value.length > 0,
|
|
12224
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
12225
|
+
};
|
|
12226
|
+
}
|
|
12227
|
+
|
|
12228
|
+
/**
|
|
12229
|
+
* Returns classmap configuration for html5 inputs in all layouts.
|
|
12230
|
+
* @private
|
|
12231
|
+
* @returns {void}
|
|
12232
|
+
*/
|
|
12233
|
+
get commonInputClasses() {
|
|
12234
|
+
return {
|
|
12235
|
+
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
12236
|
+
};
|
|
12237
|
+
}
|
|
12238
|
+
|
|
12239
|
+
get commonWrapperClasses() {
|
|
12240
|
+
return {
|
|
12241
|
+
'wrapper': true,
|
|
12242
|
+
'withValue': this.value && this.value.length > 0,
|
|
12243
|
+
'hasFocus': this.hasFocus
|
|
12244
|
+
};
|
|
12245
|
+
}
|
|
12246
|
+
|
|
12247
|
+
get helpTextClasses() {
|
|
12248
|
+
return {
|
|
12249
|
+
'helpTextWrapper': true,
|
|
12250
|
+
'leftIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('right'),
|
|
12251
|
+
'rightIndent': this.shape.toLowerCase().includes('pill') && !this.shape.toLowerCase().includes('left')
|
|
12252
|
+
};
|
|
12253
|
+
};
|
|
12254
|
+
|
|
12255
|
+
/**
|
|
12256
|
+
* This will register this element with the browser.
|
|
12257
|
+
* @param {string} [name="auro-input"] - The name of element that you want to register to.
|
|
12258
|
+
*
|
|
11724
12259
|
* @example
|
|
11725
12260
|
* AuroInput.register("custom-input") // this will register this element to <custom-input/>
|
|
11726
12261
|
*
|
|
11727
12262
|
*/
|
|
11728
12263
|
static register(name = "auro-input") {
|
|
11729
|
-
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroInput);
|
|
12264
|
+
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroInput);
|
|
11730
12265
|
}
|
|
11731
12266
|
|
|
11732
12267
|
/**
|
|
@@ -11742,160 +12277,350 @@ class AuroInput extends BaseInput {
|
|
|
11742
12277
|
return false;
|
|
11743
12278
|
}
|
|
11744
12279
|
|
|
11745
|
-
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
|
|
11751
|
-
|
|
12280
|
+
/**
|
|
12281
|
+
* Function to determine if there is any displayValue content to render.
|
|
12282
|
+
* @private
|
|
12283
|
+
* @returns {void}
|
|
12284
|
+
*/
|
|
12285
|
+
checkDisplayValueSlotChange() {
|
|
12286
|
+
const nodes = this.shadowRoot.querySelector('slot[name="displayValue"]').assignedNodes();
|
|
12287
|
+
|
|
12288
|
+
let hasContent = false;
|
|
12289
|
+
|
|
12290
|
+
if (nodes.length > 0) {
|
|
12291
|
+
hasContent = true;
|
|
12292
|
+
}
|
|
12293
|
+
|
|
12294
|
+
this.hasDisplayValueContent = hasContent;
|
|
12295
|
+
}
|
|
12296
|
+
|
|
12297
|
+
/**
|
|
12298
|
+
* Returns HTML for the validation error icon.
|
|
12299
|
+
* @private
|
|
12300
|
+
* @returns {html} - Returns HTML for the validation error icon.
|
|
12301
|
+
*/
|
|
12302
|
+
renderValidationErrorIconHtml() {
|
|
12303
|
+
return u$2`
|
|
12304
|
+
${this.validity && this.validity !== 'valid' ? u$2`
|
|
12305
|
+
<div class="notification alertNotification">
|
|
12306
|
+
<${this.iconTag}
|
|
12307
|
+
category="alert"
|
|
12308
|
+
name="error-stroke"
|
|
12309
|
+
variant="statusError"
|
|
12310
|
+
?ondark="${this.onDark}">
|
|
12311
|
+
</${this.iconTag}>
|
|
12312
|
+
</div>
|
|
12313
|
+
` : undefined}
|
|
12314
|
+
`;
|
|
12315
|
+
}
|
|
12316
|
+
|
|
12317
|
+
/**
|
|
12318
|
+
* Returns HTML for the HTML5 input element.
|
|
12319
|
+
* @private
|
|
12320
|
+
* @param {boolean} [hideInputWhenBlurred=false] - If true, the input will be visually hidden when not focused and has no value.
|
|
12321
|
+
* @returns {html} - Returns HTML for the HTML5 input element.
|
|
12322
|
+
*/
|
|
12323
|
+
renderHtmlInput(hideInputWhenBlurred = false) {
|
|
12324
|
+
const displayValueClasses = {
|
|
12325
|
+
'displayValue': true,
|
|
12326
|
+
'hasContent': this.hasDisplayValueContent,
|
|
12327
|
+
'hasFocus': this.hasFocus,
|
|
12328
|
+
'withValue': this.value && this.value.length > 0,
|
|
12329
|
+
};
|
|
12330
|
+
|
|
12331
|
+
const inputClasses = {
|
|
12332
|
+
'util_displayHiddenVisually': hideInputWhenBlurred && !this.hasFocus && !this.value
|
|
11752
12333
|
};
|
|
11753
12334
|
|
|
11754
12335
|
return u$2`
|
|
11755
|
-
<
|
|
11756
|
-
<
|
|
11757
|
-
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11761
|
-
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
|
|
11765
|
-
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11769
|
-
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
|
|
11773
|
-
|
|
12336
|
+
<label for=${this.id} class="${e(this.commonLabelClasses)}" part="label">
|
|
12337
|
+
<slot name="label">
|
|
12338
|
+
${this.label}
|
|
12339
|
+
</slot>
|
|
12340
|
+
</label>
|
|
12341
|
+
<input
|
|
12342
|
+
@blur="${this.handleBlur}"
|
|
12343
|
+
@focusin="${this.handleFocusin}"
|
|
12344
|
+
@focusout="${this.handleFocusout}"
|
|
12345
|
+
@input="${this.handleInput}"
|
|
12346
|
+
?activeLabel="${this.activeLabel}"
|
|
12347
|
+
?disabled="${this.disabled}"
|
|
12348
|
+
?required="${this.required}"
|
|
12349
|
+
.placeholder=${this.placeholderStr}
|
|
12350
|
+
aria-describedby="${this.uniqueId}"
|
|
12351
|
+
aria-invalid="${this.validity !== 'valid'}"
|
|
12352
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
12353
|
+
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
12354
|
+
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
12355
|
+
class="${e(inputClasses)}"
|
|
12356
|
+
id="${this.inputId}"
|
|
12357
|
+
inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
|
|
12358
|
+
lang="${o(this.lang)}"
|
|
12359
|
+
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
12360
|
+
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
12361
|
+
name="${o(this.name)}"
|
|
12362
|
+
part="input"
|
|
12363
|
+
pattern="${o(this.definePattern())}"
|
|
12364
|
+
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
12365
|
+
type="${this.type === 'password' && this.showPassword ? 'text' : this.getInputType(this.type)}" />
|
|
12366
|
+
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
12367
|
+
<div class="displayValueWrapper">
|
|
12368
|
+
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
12369
|
+
</div>
|
|
12370
|
+
</div>
|
|
12371
|
+
`;
|
|
12372
|
+
}
|
|
11774
12373
|
|
|
11775
|
-
|
|
11776
|
-
|
|
11777
|
-
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11789
|
-
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11793
|
-
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11801
|
-
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11819
|
-
|
|
11820
|
-
|
|
12374
|
+
/**
|
|
12375
|
+
* Returns HTML for the clear action button.
|
|
12376
|
+
* @private
|
|
12377
|
+
* @returns {html} - Returns HTML for the clear action button.
|
|
12378
|
+
*/
|
|
12379
|
+
renderHtmlActionClear() {
|
|
12380
|
+
return u$2`
|
|
12381
|
+
<div class="notification clear">
|
|
12382
|
+
<${this.buttonTag}
|
|
12383
|
+
@click="${this.handleClickClear}"
|
|
12384
|
+
?onDark="${this.onDark}"
|
|
12385
|
+
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
12386
|
+
class="notificationBtn clearBtn"
|
|
12387
|
+
tabindex="-1"
|
|
12388
|
+
variant="flat">
|
|
12389
|
+
<${this.iconTag}
|
|
12390
|
+
category="interface"
|
|
12391
|
+
customColor
|
|
12392
|
+
name="x-lg"
|
|
12393
|
+
>
|
|
12394
|
+
</${this.iconTag}>
|
|
12395
|
+
</${this.buttonTag}>
|
|
12396
|
+
</div>
|
|
12397
|
+
`;
|
|
12398
|
+
}
|
|
12399
|
+
|
|
12400
|
+
/**
|
|
12401
|
+
* Returns HTML for the show password button.
|
|
12402
|
+
* @private
|
|
12403
|
+
* @returns {html} - Returns HTML for the show password button.
|
|
12404
|
+
*/
|
|
12405
|
+
renderHtmlNotificationPassword() {
|
|
12406
|
+
return u$2`
|
|
12407
|
+
<div class="notification">
|
|
12408
|
+
<${this.buttonTag}
|
|
12409
|
+
@click="${this.handleClickShowPassword}
|
|
12410
|
+
?onDark="${this.onDark}"
|
|
12411
|
+
aria-hidden="true"
|
|
12412
|
+
class="notificationBtn passwordBtn"
|
|
12413
|
+
tabindex="-1"
|
|
12414
|
+
variant="flat">
|
|
12415
|
+
<${this.iconTag}
|
|
12416
|
+
?hidden=${!this.showPassword}
|
|
12417
|
+
category="interface"
|
|
12418
|
+
customColor
|
|
12419
|
+
name="hide-password-stroke">
|
|
12420
|
+
</${this.iconTag}>
|
|
12421
|
+
<${this.iconTag}
|
|
12422
|
+
?hidden=${this.showPassword}
|
|
12423
|
+
category="interface"
|
|
12424
|
+
customColor
|
|
12425
|
+
name="view-password-stroke">
|
|
12426
|
+
</${this.iconTag}>
|
|
12427
|
+
</${this.buttonTag}>
|
|
12428
|
+
</div>
|
|
12429
|
+
`;
|
|
12430
|
+
}
|
|
12431
|
+
|
|
12432
|
+
/**
|
|
12433
|
+
* Returns HTML for the input type icon.
|
|
12434
|
+
* @private
|
|
12435
|
+
* @returns {html} - Returns HTML for the input type icon.
|
|
12436
|
+
*/
|
|
12437
|
+
renderHtmlTypeIcon() {
|
|
12438
|
+
return u$2`
|
|
12439
|
+
<div class="typeIcon">
|
|
12440
|
+
${this.type === 'credit-card' ? this.processCreditCard() : undefined}
|
|
12441
|
+
|
|
12442
|
+
<!-- The repeat() method is used below in order to force auro-icon to re-render when the name value is updated.
|
|
12443
|
+
This should be cleaned up when auro-icon issue #31 is resolved. -->
|
|
12444
|
+
${this.inputIconName
|
|
12445
|
+
? c([this.inputIconName], (val) => val, (name) => u$2`
|
|
12446
|
+
<${this.iconTag}
|
|
12447
|
+
?onDark="${this.onDark}"
|
|
12448
|
+
category="payment"
|
|
12449
|
+
class="accentIcon"
|
|
12450
|
+
name="${name}"
|
|
12451
|
+
part="accentIcon"
|
|
12452
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12453
|
+
</${this.iconTag}>
|
|
12454
|
+
`) : undefined
|
|
12455
|
+
}
|
|
12456
|
+
${this.type === 'date'
|
|
12457
|
+
? u$2`
|
|
12458
|
+
<${this.iconTag}
|
|
12459
|
+
?onDark="${this.onDark}"
|
|
12460
|
+
category="interface"
|
|
12461
|
+
class="accentIcon"
|
|
12462
|
+
name="calendar"
|
|
12463
|
+
part="accentIcon"
|
|
12464
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
12465
|
+
</${this.iconTag}>`
|
|
12466
|
+
: undefined
|
|
12467
|
+
}
|
|
12468
|
+
</div>
|
|
12469
|
+
`;
|
|
12470
|
+
}
|
|
12471
|
+
|
|
12472
|
+
/**
|
|
12473
|
+
* Returns HTML for the help text and error message.
|
|
12474
|
+
* @private
|
|
12475
|
+
* @returns {html} - Returns HTML for the help text and error message.
|
|
12476
|
+
*/
|
|
12477
|
+
renderHtmlHelpText() {
|
|
12478
|
+
return u$2`
|
|
12479
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
12480
|
+
? u$2`
|
|
12481
|
+
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
12482
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
12483
|
+
<slot name="helptext">${this.getHelpText()}</slot>
|
|
12484
|
+
</p>
|
|
12485
|
+
</${this.helpTextTag}>
|
|
12486
|
+
`
|
|
12487
|
+
: u$2`
|
|
12488
|
+
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
12489
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
12490
|
+
${this.errorMessage}
|
|
12491
|
+
</p>
|
|
12492
|
+
</${this.helpTextTag}>
|
|
12493
|
+
`
|
|
12494
|
+
}
|
|
12495
|
+
`;
|
|
12496
|
+
}
|
|
12497
|
+
|
|
12498
|
+
/**
|
|
12499
|
+
* Returns HTML for the default layout.
|
|
12500
|
+
* @private
|
|
12501
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the default layout.
|
|
12502
|
+
*/
|
|
12503
|
+
renderLayoutClassic() {
|
|
12504
|
+
return u$2`
|
|
12505
|
+
<div
|
|
12506
|
+
@click="${this.handleClick}"
|
|
12507
|
+
class="${e(this.commonWrapperClasses)} thin"
|
|
12508
|
+
part="wrapper">
|
|
12509
|
+
<div class="accents left">
|
|
12510
|
+
${this.renderHtmlTypeIcon()}
|
|
11821
12511
|
</div>
|
|
11822
|
-
<div
|
|
11823
|
-
|
|
11824
|
-
|
|
11825
|
-
|
|
11826
|
-
${this.
|
|
11827
|
-
|
|
11828
|
-
|
|
11829
|
-
|
|
11830
|
-
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
12512
|
+
<div class="mainContent">
|
|
12513
|
+
${this.renderHtmlInput(true)}
|
|
12514
|
+
</div>
|
|
12515
|
+
<div class="accents right">
|
|
12516
|
+
${this.renderValidationErrorIconHtml()}
|
|
12517
|
+
${this.hasValue ? u$2`
|
|
12518
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
12519
|
+
${this.renderHtmlActionClear()}
|
|
12520
|
+
` : undefined}
|
|
12521
|
+
` : undefined}
|
|
12522
|
+
</div>
|
|
12523
|
+
</div>
|
|
12524
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
12525
|
+
${this.renderHtmlHelpText()}
|
|
12526
|
+
</div>
|
|
12527
|
+
`;
|
|
12528
|
+
}
|
|
12529
|
+
|
|
12530
|
+
/**
|
|
12531
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
12532
|
+
* @private
|
|
12533
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
12534
|
+
*/
|
|
12535
|
+
renderLayoutEmphasized() {
|
|
12536
|
+
return u$2`
|
|
12537
|
+
<div
|
|
12538
|
+
@click="${this.handleClick}"
|
|
12539
|
+
class="${e(this.commonWrapperClasses)}"
|
|
12540
|
+
part="wrapper">
|
|
12541
|
+
<div class="accents left">
|
|
12542
|
+
${this.layout.includes('left') ? u$2`
|
|
12543
|
+
${this.renderValidationErrorIconHtml()}
|
|
12544
|
+
` : undefined}
|
|
12545
|
+
</div>
|
|
12546
|
+
<div class="mainContent">
|
|
12547
|
+
${this.renderHtmlInput()}
|
|
12548
|
+
</div>
|
|
12549
|
+
<div class="accents right">
|
|
12550
|
+
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
12551
|
+
${this.renderValidationErrorIconHtml()}
|
|
11834
12552
|
` : undefined}
|
|
11835
12553
|
${this.hasValue ? u$2`
|
|
11836
|
-
${this.
|
|
11837
|
-
|
|
11838
|
-
<${this.buttonTag}
|
|
11839
|
-
variant="flat"
|
|
11840
|
-
?onDark="${this.onDark}"
|
|
11841
|
-
aria-hidden="true"
|
|
11842
|
-
tabindex="-1"
|
|
11843
|
-
@click="${this.handleClickShowPassword}"
|
|
11844
|
-
class="notificationBtn passwordBtn">
|
|
11845
|
-
<${this.iconTag}
|
|
11846
|
-
category="interface"
|
|
11847
|
-
name="hide-password-stroke"
|
|
11848
|
-
customColor
|
|
11849
|
-
?hidden=${!this.showPassword}>
|
|
11850
|
-
</${this.iconTag}>
|
|
11851
|
-
<${this.iconTag}
|
|
11852
|
-
category="interface"
|
|
11853
|
-
name="view-password-stroke"
|
|
11854
|
-
customColor
|
|
11855
|
-
?hidden=${this.showPassword}>
|
|
11856
|
-
</${this.iconTag}>
|
|
11857
|
-
</${this.buttonTag}>
|
|
11858
|
-
</div>
|
|
12554
|
+
${!this.disabled && !this.readonly ? u$2`
|
|
12555
|
+
${this.renderHtmlActionClear()}
|
|
11859
12556
|
` : undefined}
|
|
12557
|
+
` : undefined}
|
|
12558
|
+
</div>
|
|
12559
|
+
</div>
|
|
12560
|
+
<div class="${e(this.helpTextClasses)}" part="inputHelpText">
|
|
12561
|
+
${this.renderHtmlHelpText()}
|
|
12562
|
+
</div>
|
|
12563
|
+
`;
|
|
12564
|
+
}
|
|
12565
|
+
|
|
12566
|
+
/**
|
|
12567
|
+
* Returns HTML for the emphasized layout. Does not support type="*".
|
|
12568
|
+
* @private
|
|
12569
|
+
* @returns {html} - Returns HTML for the emphasized layout.
|
|
12570
|
+
*/
|
|
12571
|
+
renderLayoutSnowflake() {
|
|
12572
|
+
return u$2`
|
|
12573
|
+
<div
|
|
12574
|
+
@click="${this.handleClick}"
|
|
12575
|
+
class="${e(this.commonWrapperClasses)}"
|
|
12576
|
+
part="wrapper">
|
|
12577
|
+
<div class="accents left">
|
|
12578
|
+
${this.renderHtmlTypeIcon()}
|
|
12579
|
+
</div>
|
|
12580
|
+
<div class="mainContent">
|
|
12581
|
+
${this.renderHtmlInput()}
|
|
12582
|
+
</div>
|
|
12583
|
+
<div class="accents right">
|
|
12584
|
+
${this.renderValidationErrorIconHtml()}
|
|
12585
|
+
${this.hasValue ? u$2`
|
|
11860
12586
|
${!this.disabled && !this.readonly ? u$2`
|
|
11861
|
-
|
|
11862
|
-
<${this.buttonTag}
|
|
11863
|
-
variant="flat"
|
|
11864
|
-
?onDark="${this.onDark}"
|
|
11865
|
-
class="notificationBtn clearBtn"
|
|
11866
|
-
arialabel="${i18n(this.lang, 'clearInput')}"
|
|
11867
|
-
@click="${this.handleClickClear}">
|
|
11868
|
-
<${this.iconTag}
|
|
11869
|
-
customColor
|
|
11870
|
-
category="interface"
|
|
11871
|
-
name="x-lg"
|
|
11872
|
-
>
|
|
11873
|
-
</${this.iconTag}>
|
|
11874
|
-
</${this.buttonTag}>
|
|
11875
|
-
</div>
|
|
12587
|
+
${this.renderHtmlActionClear()}
|
|
11876
12588
|
` : undefined}
|
|
11877
12589
|
` : undefined}
|
|
11878
12590
|
</div>
|
|
11879
12591
|
</div>
|
|
11880
|
-
|
|
11881
|
-
${
|
|
11882
|
-
|
|
11883
|
-
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
11884
|
-
<p id="${this.uniqueId}" part="helpText">
|
|
11885
|
-
<slot name="helptext">${this.getHelpText()}</slot>
|
|
11886
|
-
</p>
|
|
11887
|
-
</${this.helpTextTag}>
|
|
11888
|
-
`
|
|
11889
|
-
: u$2`
|
|
11890
|
-
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
11891
|
-
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
11892
|
-
${this.errorMessage}
|
|
11893
|
-
</p>
|
|
11894
|
-
</${this.helpTextTag}>
|
|
11895
|
-
`
|
|
11896
|
-
}
|
|
12592
|
+
<div class="helpTextWrapper leftIndent rightIndent" part="inputHelpText">
|
|
12593
|
+
${this.renderHtmlHelpText()}
|
|
12594
|
+
</div>
|
|
11897
12595
|
`;
|
|
11898
12596
|
}
|
|
12597
|
+
|
|
12598
|
+
/**
|
|
12599
|
+
* Logic to determine the layout of the component.
|
|
12600
|
+
* @private
|
|
12601
|
+
* @param {string} [ForcedLayout] - Used to force a specific layout, pass in the layout name to use.
|
|
12602
|
+
* @returns {void}
|
|
12603
|
+
*/
|
|
12604
|
+
renderLayout(ForcedLayout) {
|
|
12605
|
+
const layout = ForcedLayout || this.layout;
|
|
12606
|
+
|
|
12607
|
+
switch (layout) {
|
|
12608
|
+
case 'emphasized':
|
|
12609
|
+
return this.renderLayoutEmphasized();
|
|
12610
|
+
case 'emphasized-left':
|
|
12611
|
+
return this.renderLayoutEmphasized();
|
|
12612
|
+
case 'emphasized-right':
|
|
12613
|
+
return this.renderLayoutEmphasized();
|
|
12614
|
+
case 'snowflake':
|
|
12615
|
+
return this.renderLayoutSnowflake();
|
|
12616
|
+
case 'snowflake-left':
|
|
12617
|
+
return this.renderLayoutSnowflake();
|
|
12618
|
+
case 'snowflake-right':
|
|
12619
|
+
return this.renderLayoutSnowflake();
|
|
12620
|
+
default:
|
|
12621
|
+
return this.renderLayoutClassic();
|
|
12622
|
+
}
|
|
12623
|
+
}
|
|
11899
12624
|
}
|
|
11900
12625
|
|
|
11901
12626
|
var inputVersion = '4.2.0';
|
|
@@ -11913,7 +12638,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
|
|
|
11913
12638
|
|
|
11914
12639
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
11915
12640
|
|
|
11916
|
-
class AuroLibraryRuntimeUtils {
|
|
12641
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
11917
12642
|
|
|
11918
12643
|
/* eslint-disable jsdoc/require-param */
|
|
11919
12644
|
|
|
@@ -11974,7 +12699,7 @@ class AuroLibraryRuntimeUtils {
|
|
|
11974
12699
|
|
|
11975
12700
|
return elemTag === tag || elem.hasAttribute(tag);
|
|
11976
12701
|
}
|
|
11977
|
-
}
|
|
12702
|
+
};
|
|
11978
12703
|
|
|
11979
12704
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
11980
12705
|
// See LICENSE in the project root for license information.
|
|
@@ -12026,7 +12751,7 @@ class AuroDependencyVersioning {
|
|
|
12026
12751
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
12027
12752
|
*/
|
|
12028
12753
|
|
|
12029
|
-
let AuroElement$
|
|
12754
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
12030
12755
|
|
|
12031
12756
|
// function to define props used within the scope of this component
|
|
12032
12757
|
static get properties() {
|
|
@@ -12094,7 +12819,7 @@ var styleCss$1$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}
|
|
|
12094
12819
|
*/
|
|
12095
12820
|
|
|
12096
12821
|
// build the component class
|
|
12097
|
-
let BaseIcon$1 = class BaseIcon extends AuroElement$
|
|
12822
|
+
let BaseIcon$1 = class BaseIcon extends AuroElement$2 {
|
|
12098
12823
|
constructor() {
|
|
12099
12824
|
super();
|
|
12100
12825
|
this.onDark = false;
|
|
@@ -12166,9 +12891,9 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1 {
|
|
|
12166
12891
|
}
|
|
12167
12892
|
};
|
|
12168
12893
|
|
|
12169
|
-
var tokensCss$
|
|
12894
|
+
var tokensCss$3 = i$5`: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)}`;
|
|
12170
12895
|
|
|
12171
|
-
var colorCss$
|
|
12896
|
+
var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
12172
12897
|
|
|
12173
12898
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12174
12899
|
// See LICENSE in the project root for license information.
|
|
@@ -12189,7 +12914,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12189
12914
|
*/
|
|
12190
12915
|
privateDefaults() {
|
|
12191
12916
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
12192
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
12917
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
12193
12918
|
}
|
|
12194
12919
|
|
|
12195
12920
|
// function to define props used within the scope of this component
|
|
@@ -12256,9 +12981,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12256
12981
|
static get styles() {
|
|
12257
12982
|
return [
|
|
12258
12983
|
super.styles,
|
|
12259
|
-
i$5`${tokensCss$
|
|
12984
|
+
i$5`${tokensCss$3}`,
|
|
12260
12985
|
i$5`${styleCss$1$1}`,
|
|
12261
|
-
i$5`${colorCss$
|
|
12986
|
+
i$5`${colorCss$4}`
|
|
12262
12987
|
];
|
|
12263
12988
|
}
|
|
12264
12989
|
|
|
@@ -12271,7 +12996,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12271
12996
|
*
|
|
12272
12997
|
*/
|
|
12273
12998
|
static register(name = "auro-icon") {
|
|
12274
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
|
|
12999
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
|
|
12275
13000
|
}
|
|
12276
13001
|
|
|
12277
13002
|
connectedCallback() {
|
|
@@ -12337,9 +13062,9 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
12337
13062
|
}
|
|
12338
13063
|
};
|
|
12339
13064
|
|
|
12340
|
-
var iconVersion$1 = '8.0.
|
|
13065
|
+
var iconVersion$1 = '8.0.3';
|
|
12341
13066
|
|
|
12342
|
-
var styleCss$
|
|
13067
|
+
var styleCss$5 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.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, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.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)}`;
|
|
12343
13068
|
|
|
12344
13069
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12345
13070
|
// See LICENSE in the project root for license information.
|
|
@@ -12368,7 +13093,7 @@ class AuroHeader extends i$2 {
|
|
|
12368
13093
|
/**
|
|
12369
13094
|
* @private
|
|
12370
13095
|
*/
|
|
12371
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
13096
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
12372
13097
|
}
|
|
12373
13098
|
|
|
12374
13099
|
// function to define props used within the scope of this component
|
|
@@ -12386,7 +13111,7 @@ class AuroHeader extends i$2 {
|
|
|
12386
13111
|
}
|
|
12387
13112
|
|
|
12388
13113
|
static get styles() {
|
|
12389
|
-
return [styleCss$
|
|
13114
|
+
return [styleCss$5];
|
|
12390
13115
|
}
|
|
12391
13116
|
|
|
12392
13117
|
/**
|
|
@@ -12398,7 +13123,7 @@ class AuroHeader extends i$2 {
|
|
|
12398
13123
|
*
|
|
12399
13124
|
*/
|
|
12400
13125
|
static register(name = "auro-header") {
|
|
12401
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
|
|
13126
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroHeader);
|
|
12402
13127
|
}
|
|
12403
13128
|
|
|
12404
13129
|
firstUpdated() {
|
|
@@ -12494,7 +13219,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
12494
13219
|
|
|
12495
13220
|
this.large = false;
|
|
12496
13221
|
|
|
12497
|
-
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
13222
|
+
AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
|
|
12498
13223
|
|
|
12499
13224
|
const versioning = new AuroDependencyVersioning();
|
|
12500
13225
|
this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
|
|
@@ -12533,7 +13258,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
12533
13258
|
*
|
|
12534
13259
|
*/
|
|
12535
13260
|
static register(name = "auro-bibtemplate") {
|
|
12536
|
-
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
|
|
13261
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroBibtemplate);
|
|
12537
13262
|
}
|
|
12538
13263
|
|
|
12539
13264
|
/**
|
|
@@ -12719,9 +13444,311 @@ i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline
|
|
|
12719
13444
|
|
|
12720
13445
|
i$5`: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)}`;
|
|
12721
13446
|
|
|
12722
|
-
i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
13447
|
+
i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
13448
|
+
|
|
13449
|
+
var styleCss$4 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block}:host([layout*=classic]) [auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}:host([layout*=classic]) [auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}:host([layout*=classic]) [auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) [auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}:host([layout*=classic]) [auro-input]::part(wrapper):focus-within{border-bottom-width:0 !important;box-shadow:unset !important;outline:unset !important}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
13450
|
+
|
|
13451
|
+
var styleEmphasizedCss = i$5`:host([layout*=emphasized][shape*=pill]) [auro-input]{width:100%}:host([layout*=emphasized][shape*=pill]) [auro-input]::part(inputHelpText){display:none}`;
|
|
12723
13452
|
|
|
12724
|
-
var
|
|
13453
|
+
var styleSnowflakeCss = i$5`:host([layout*=snowflake][shape*=snowflake]) [auro-input]{width:100%}:host([layout*=snowflake][shape*=snowflake]) [auro-input]::part(inputHelpText){display:none}`;
|
|
13454
|
+
|
|
13455
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
13456
|
+
static get properties() {
|
|
13457
|
+
return {
|
|
13458
|
+
|
|
13459
|
+
/**
|
|
13460
|
+
* Defines the language of an element.
|
|
13461
|
+
* @default {'default'}
|
|
13462
|
+
*/
|
|
13463
|
+
layout: {
|
|
13464
|
+
type: String,
|
|
13465
|
+
attribute: "layout",
|
|
13466
|
+
reflect: true
|
|
13467
|
+
},
|
|
13468
|
+
|
|
13469
|
+
shape: {
|
|
13470
|
+
type: String,
|
|
13471
|
+
attribute: "shape",
|
|
13472
|
+
reflect: true
|
|
13473
|
+
},
|
|
13474
|
+
|
|
13475
|
+
size: {
|
|
13476
|
+
type: String,
|
|
13477
|
+
attribute: "size",
|
|
13478
|
+
reflect: true
|
|
13479
|
+
},
|
|
13480
|
+
|
|
13481
|
+
onDark: {
|
|
13482
|
+
type: Boolean,
|
|
13483
|
+
attribute: "ondark",
|
|
13484
|
+
reflect: true
|
|
13485
|
+
}
|
|
13486
|
+
};
|
|
13487
|
+
}
|
|
13488
|
+
|
|
13489
|
+
resetShapeClasses() {
|
|
13490
|
+
if (this.shape && this.size) {
|
|
13491
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
13492
|
+
|
|
13493
|
+
if (wrapper) {
|
|
13494
|
+
wrapper.classList.forEach((className) => {
|
|
13495
|
+
if (className.startsWith('shape-')) {
|
|
13496
|
+
wrapper.classList.remove(className);
|
|
13497
|
+
}
|
|
13498
|
+
});
|
|
13499
|
+
|
|
13500
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
13501
|
+
}
|
|
13502
|
+
}
|
|
13503
|
+
}
|
|
13504
|
+
|
|
13505
|
+
resetLayoutClasses() {
|
|
13506
|
+
if (this.layout) {
|
|
13507
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
13508
|
+
|
|
13509
|
+
if (wrapper) {
|
|
13510
|
+
wrapper.classList.forEach((className) => {
|
|
13511
|
+
if (className.startsWith('layout-')) {
|
|
13512
|
+
wrapper.classList.remove(className);
|
|
13513
|
+
}
|
|
13514
|
+
});
|
|
13515
|
+
|
|
13516
|
+
wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
13517
|
+
}
|
|
13518
|
+
}
|
|
13519
|
+
}
|
|
13520
|
+
|
|
13521
|
+
updateComponentArchitecture() {
|
|
13522
|
+
this.resetLayoutClasses();
|
|
13523
|
+
this.resetShapeClasses();
|
|
13524
|
+
}
|
|
13525
|
+
|
|
13526
|
+
updated(changedProperties) {
|
|
13527
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
13528
|
+
this.updateComponentArchitecture();
|
|
13529
|
+
}
|
|
13530
|
+
}
|
|
13531
|
+
|
|
13532
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
13533
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
13534
|
+
render() {
|
|
13535
|
+
try {
|
|
13536
|
+
return this.renderLayout();
|
|
13537
|
+
} catch (error) {
|
|
13538
|
+
// failed to get the defined layout
|
|
13539
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
13540
|
+
|
|
13541
|
+
// fallback to the default layout
|
|
13542
|
+
return this.getLayout('default');
|
|
13543
|
+
}
|
|
13544
|
+
}
|
|
13545
|
+
};
|
|
13546
|
+
|
|
13547
|
+
var colorCss$3 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
13548
|
+
|
|
13549
|
+
var styleCss$3 = i$5`.helptext-wrapper{display:none;font-size:var(--ds-basic-text-body-xs-font-size, 12px);font-weight:var(--ds-basic-text-body-xs-font-weight, 450);letter-spacing:var(--ds-basic-text-body-xs-letter-spacing, 0);line-height:var(--ds-basic-text-body-xs-line-height, 16px)}:host([large]) .helptext-wrapper{font-size:var(--ds-basic-text-body-default-font-size, 16px);font-weight:var(--ds-basic-text-body-default-font-weight, 450);letter-spacing:var(--ds-basic-text-body-default-letter-spacing, 0);line-height:var(--ds-basic-text-body-default-line-height, 24px)}.helptext-wrapper[visible]{display:block}::slotted(*:not(:empty)){margin-top:var(--ds-size-50, 0.25rem);margin-bottom:0}::slotted(p){margin-block:0}`;
|
|
13550
|
+
|
|
13551
|
+
var tokensCss$2 = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
13552
|
+
|
|
13553
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
13554
|
+
// See LICENSE in the project root for license information.
|
|
13555
|
+
|
|
13556
|
+
// ---------------------------------------------------------------------
|
|
13557
|
+
|
|
13558
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
13559
|
+
|
|
13560
|
+
class AuroLibraryRuntimeUtils {
|
|
13561
|
+
|
|
13562
|
+
/* eslint-disable jsdoc/require-param */
|
|
13563
|
+
|
|
13564
|
+
/**
|
|
13565
|
+
* This will register a new custom element with the browser.
|
|
13566
|
+
* @param {String} name - The name of the custom element.
|
|
13567
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
13568
|
+
* @returns {void}
|
|
13569
|
+
*/
|
|
13570
|
+
registerComponent(name, componentClass) {
|
|
13571
|
+
if (!customElements.get(name)) {
|
|
13572
|
+
customElements.define(name, class extends componentClass {});
|
|
13573
|
+
}
|
|
13574
|
+
}
|
|
13575
|
+
|
|
13576
|
+
/**
|
|
13577
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
13578
|
+
* @returns {void}
|
|
13579
|
+
*/
|
|
13580
|
+
closestElement(
|
|
13581
|
+
selector, // selector like in .closest()
|
|
13582
|
+
base = this, // extra functionality to skip a parent
|
|
13583
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
13584
|
+
!el || el === document || el === window
|
|
13585
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
13586
|
+
: found
|
|
13587
|
+
? found // found a selector INside this element
|
|
13588
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
13589
|
+
) {
|
|
13590
|
+
return __Closest(base);
|
|
13591
|
+
}
|
|
13592
|
+
/* eslint-enable jsdoc/require-param */
|
|
13593
|
+
|
|
13594
|
+
/**
|
|
13595
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
13596
|
+
* @param {Object} elem - The element to check.
|
|
13597
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
13598
|
+
* @returns {void}
|
|
13599
|
+
*/
|
|
13600
|
+
handleComponentTagRename(elem, tagName) {
|
|
13601
|
+
const tag = tagName.toLowerCase();
|
|
13602
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13603
|
+
|
|
13604
|
+
if (elemTag !== tag) {
|
|
13605
|
+
elem.setAttribute(tag, true);
|
|
13606
|
+
}
|
|
13607
|
+
}
|
|
13608
|
+
|
|
13609
|
+
/**
|
|
13610
|
+
* Validates if an element is a specific Auro component.
|
|
13611
|
+
* @param {Object} elem - The element to validate.
|
|
13612
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
13613
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
13614
|
+
*/
|
|
13615
|
+
elementMatch(elem, tagName) {
|
|
13616
|
+
const tag = tagName.toLowerCase();
|
|
13617
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
13618
|
+
|
|
13619
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
13620
|
+
}
|
|
13621
|
+
}
|
|
13622
|
+
|
|
13623
|
+
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
13624
|
+
// See LICENSE in the project root for license information.
|
|
13625
|
+
|
|
13626
|
+
|
|
13627
|
+
/**
|
|
13628
|
+
* Displays help text or error messages within form elements - Internal Use Only.
|
|
13629
|
+
*
|
|
13630
|
+
* @attr { Boolean } large - If declared, make font-size to 1rem(16px).
|
|
13631
|
+
*/
|
|
13632
|
+
class AuroHelpText extends i$2 {
|
|
13633
|
+
|
|
13634
|
+
constructor() {
|
|
13635
|
+
super();
|
|
13636
|
+
|
|
13637
|
+
this.error = false;
|
|
13638
|
+
this.onDark = false;
|
|
13639
|
+
this.hasTextContent = false;
|
|
13640
|
+
|
|
13641
|
+
AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-helptext');
|
|
13642
|
+
}
|
|
13643
|
+
|
|
13644
|
+
static get styles() {
|
|
13645
|
+
return [
|
|
13646
|
+
colorCss$3,
|
|
13647
|
+
styleCss$3,
|
|
13648
|
+
tokensCss$2
|
|
13649
|
+
];
|
|
13650
|
+
}
|
|
13651
|
+
|
|
13652
|
+
// function to define props used within the scope of this component
|
|
13653
|
+
static get properties() {
|
|
13654
|
+
return {
|
|
13655
|
+
|
|
13656
|
+
/**
|
|
13657
|
+
* @private
|
|
13658
|
+
*/
|
|
13659
|
+
slotNodes: {
|
|
13660
|
+
type: Boolean,
|
|
13661
|
+
},
|
|
13662
|
+
|
|
13663
|
+
/**
|
|
13664
|
+
* @private
|
|
13665
|
+
*/
|
|
13666
|
+
hasTextContent: {
|
|
13667
|
+
type: Boolean,
|
|
13668
|
+
},
|
|
13669
|
+
|
|
13670
|
+
/**
|
|
13671
|
+
* If declared, make font color red.
|
|
13672
|
+
*/
|
|
13673
|
+
error: {
|
|
13674
|
+
type: Boolean,
|
|
13675
|
+
reflect: true,
|
|
13676
|
+
},
|
|
13677
|
+
|
|
13678
|
+
/**
|
|
13679
|
+
* If declared, will apply onDark styles.
|
|
13680
|
+
*/
|
|
13681
|
+
onDark: {
|
|
13682
|
+
type: Boolean,
|
|
13683
|
+
reflect: true
|
|
13684
|
+
}
|
|
13685
|
+
};
|
|
13686
|
+
}
|
|
13687
|
+
|
|
13688
|
+
/**
|
|
13689
|
+
* This will register this element with the browser.
|
|
13690
|
+
* @param {string} [name="auro-helptext"] - The name of element that you want to register to.
|
|
13691
|
+
*
|
|
13692
|
+
* @example
|
|
13693
|
+
* AuroCheckbox.register("custom-helptext") // this will register this element to <custom-helptext/>
|
|
13694
|
+
*
|
|
13695
|
+
*/
|
|
13696
|
+
static register(name = "auro-helptext") {
|
|
13697
|
+
AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHelpText);
|
|
13698
|
+
}
|
|
13699
|
+
|
|
13700
|
+
updated() {
|
|
13701
|
+
this.handleSlotChange();
|
|
13702
|
+
}
|
|
13703
|
+
|
|
13704
|
+
handleSlotChange(event) {
|
|
13705
|
+
if (event) {
|
|
13706
|
+
this.slotNodes = event.target.assignedNodes();
|
|
13707
|
+
}
|
|
13708
|
+
|
|
13709
|
+
this.hasTextContent = this.checkSlotsForContent(this.slotNodes);
|
|
13710
|
+
}
|
|
13711
|
+
|
|
13712
|
+
/**
|
|
13713
|
+
* Checks if any of the provided nodes or their nested slot nodes contain non-empty text content.
|
|
13714
|
+
*
|
|
13715
|
+
* @param {NodeList|Array} nodes - The list of nodes to check for content.
|
|
13716
|
+
* @returns {boolean} - Returns true if any node or nested slot node contains non-empty text content, otherwise false.
|
|
13717
|
+
* @private
|
|
13718
|
+
*/
|
|
13719
|
+
checkSlotsForContent(nodes) {
|
|
13720
|
+
if (!nodes) {
|
|
13721
|
+
return false;
|
|
13722
|
+
}
|
|
13723
|
+
|
|
13724
|
+
return nodes.some((node) => {
|
|
13725
|
+
if (node.textContent.trim()) {
|
|
13726
|
+
return true;
|
|
13727
|
+
}
|
|
13728
|
+
|
|
13729
|
+
if (!node.querySelector) {
|
|
13730
|
+
return false;
|
|
13731
|
+
}
|
|
13732
|
+
|
|
13733
|
+
const nestedSlot = node.tagName === 'SLOT' ? node : node.querySelector('slot');
|
|
13734
|
+
if (!nestedSlot) {
|
|
13735
|
+
return false;
|
|
13736
|
+
}
|
|
13737
|
+
|
|
13738
|
+
const nestedSlotNodes = nestedSlot.assignedNodes();
|
|
13739
|
+
return this.checkSlotsForContent(nestedSlotNodes);
|
|
13740
|
+
});
|
|
13741
|
+
}
|
|
13742
|
+
|
|
13743
|
+
// function that renders the HTML and CSS into the scope of the component
|
|
13744
|
+
render() {
|
|
13745
|
+
return x`
|
|
13746
|
+
<div class="helptext-wrapper" ?visible="${this.hasTextContent}">
|
|
13747
|
+
<slot @slotchange=${this.handleSlotChange}></slot>
|
|
13748
|
+
</div>
|
|
13749
|
+
`;
|
|
13750
|
+
}
|
|
13751
|
+
}
|
|
12725
13752
|
|
|
12726
13753
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
12727
13754
|
// See LICENSE in the project root for license information.
|
|
@@ -12738,7 +13765,7 @@ var styleCss$3 = i$5`.util_displayInline{display:inline}.util_displayInlineBlock
|
|
|
12738
13765
|
*/
|
|
12739
13766
|
|
|
12740
13767
|
// build the component class
|
|
12741
|
-
class AuroCombobox extends
|
|
13768
|
+
class AuroCombobox extends AuroElement$1 {
|
|
12742
13769
|
|
|
12743
13770
|
constructor() {
|
|
12744
13771
|
super();
|
|
@@ -12779,6 +13806,14 @@ class AuroCombobox extends i$2 {
|
|
|
12779
13806
|
|
|
12780
13807
|
this.isHiddenWhileLoading = false;
|
|
12781
13808
|
|
|
13809
|
+
// Error message
|
|
13810
|
+
this.errorMessage = null;
|
|
13811
|
+
|
|
13812
|
+
// Layout Config
|
|
13813
|
+
this.layout = 'classic';
|
|
13814
|
+
this.shape = 'rounded';
|
|
13815
|
+
this.size = 'xl';
|
|
13816
|
+
|
|
12782
13817
|
// floaterConfig
|
|
12783
13818
|
this.placement = 'bottom-start';
|
|
12784
13819
|
this.offset = 0;
|
|
@@ -12790,6 +13825,7 @@ class AuroCombobox extends i$2 {
|
|
|
12790
13825
|
this.dropdownTag = versioning.generateTag('auro-formkit-combobox-dropdown', dropdownVersion, AuroDropdown);
|
|
12791
13826
|
this.bibtemplateTag = versioning.generateTag('auro-formkit-combobox-bibtemplate', bibTemplateVersion, AuroBibtemplate);
|
|
12792
13827
|
this.inputTag = versioning.generateTag('auro-formkit-combobox-input', inputVersion, AuroInput);
|
|
13828
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', '1.0.0', AuroHelpText);
|
|
12793
13829
|
}
|
|
12794
13830
|
|
|
12795
13831
|
// This function is to define props used within the scope of this component
|
|
@@ -12833,7 +13869,7 @@ class AuroCombobox extends i$2 {
|
|
|
12833
13869
|
},
|
|
12834
13870
|
|
|
12835
13871
|
/**
|
|
12836
|
-
* ID for the dropdown
|
|
13872
|
+
* ID for the dropdown.
|
|
12837
13873
|
* @private
|
|
12838
13874
|
*/
|
|
12839
13875
|
dropdownId: {
|
|
@@ -12843,7 +13879,7 @@ class AuroCombobox extends i$2 {
|
|
|
12843
13879
|
},
|
|
12844
13880
|
|
|
12845
13881
|
/**
|
|
12846
|
-
* Whether or not the dropdown is open
|
|
13882
|
+
* Whether or not the dropdown is open.
|
|
12847
13883
|
* @private
|
|
12848
13884
|
*/
|
|
12849
13885
|
dropdownOpen: {
|
|
@@ -12919,6 +13955,7 @@ class AuroCombobox extends i$2 {
|
|
|
12919
13955
|
hasChanged: arrayOrUndefinedHasChanged$1
|
|
12920
13956
|
},
|
|
12921
13957
|
|
|
13958
|
+
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
12922
13959
|
/**
|
|
12923
13960
|
* Position where the bib should appear relative to the trigger.
|
|
12924
13961
|
* Accepted values:
|
|
@@ -12932,6 +13969,15 @@ class AuroCombobox extends i$2 {
|
|
|
12932
13969
|
type: String,
|
|
12933
13970
|
reflect: true
|
|
12934
13971
|
},
|
|
13972
|
+
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13973
|
+
|
|
13974
|
+
/**
|
|
13975
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
13976
|
+
*/
|
|
13977
|
+
placeholder: {
|
|
13978
|
+
type: String,
|
|
13979
|
+
reflect: true
|
|
13980
|
+
},
|
|
12935
13981
|
|
|
12936
13982
|
/**
|
|
12937
13983
|
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
@@ -12995,6 +14041,7 @@ class AuroCombobox extends i$2 {
|
|
|
12995
14041
|
hasChanged: arrayOrUndefinedHasChanged$1
|
|
12996
14042
|
},
|
|
12997
14043
|
|
|
14044
|
+
/* eslint-disable jsdoc/require-description-complete-sentence */
|
|
12998
14045
|
/**
|
|
12999
14046
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
13000
14047
|
* Otherwise, Heading 600
|
|
@@ -13003,6 +14050,7 @@ class AuroCombobox extends i$2 {
|
|
|
13003
14050
|
type: Boolean,
|
|
13004
14051
|
reflect: true
|
|
13005
14052
|
},
|
|
14053
|
+
/* eslint-enable jsdoc/require-description-complete-sentence */
|
|
13006
14054
|
|
|
13007
14055
|
/**
|
|
13008
14056
|
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
@@ -13018,8 +14066,8 @@ class AuroCombobox extends i$2 {
|
|
|
13018
14066
|
},
|
|
13019
14067
|
|
|
13020
14068
|
/**
|
|
14069
|
+
* Specifies the currently active option.
|
|
13021
14070
|
* @private
|
|
13022
|
-
* specifies the currently active option
|
|
13023
14071
|
*/
|
|
13024
14072
|
optionActive: {
|
|
13025
14073
|
type: Object,
|
|
@@ -13030,7 +14078,21 @@ class AuroCombobox extends i$2 {
|
|
|
13030
14078
|
}
|
|
13031
14079
|
|
|
13032
14080
|
static get styles() {
|
|
13033
|
-
return [
|
|
14081
|
+
return [
|
|
14082
|
+
i$5`${styleCss$4}`,
|
|
14083
|
+
i$5`${styleEmphasizedCss}`,
|
|
14084
|
+
i$5`${styleSnowflakeCss}`
|
|
14085
|
+
];
|
|
14086
|
+
}
|
|
14087
|
+
|
|
14088
|
+
isValid() {
|
|
14089
|
+
let valid = true;
|
|
14090
|
+
|
|
14091
|
+
if (this.validity !== undefined && this.validity !== 'valid') {
|
|
14092
|
+
valid = false;
|
|
14093
|
+
}
|
|
14094
|
+
|
|
14095
|
+
return valid;
|
|
13034
14096
|
}
|
|
13035
14097
|
|
|
13036
14098
|
/**
|
|
@@ -13313,10 +14375,10 @@ class AuroCombobox extends i$2 {
|
|
|
13313
14375
|
}
|
|
13314
14376
|
|
|
13315
14377
|
/**
|
|
13316
|
-
* @private
|
|
13317
14378
|
* Dispatches input's keyboard events from host
|
|
13318
14379
|
* This allows key events from the input to be handled by the parent.
|
|
13319
|
-
* @
|
|
14380
|
+
* @private
|
|
14381
|
+
* @param {KeyboardEvent} event - The keyboard event.
|
|
13320
14382
|
*/
|
|
13321
14383
|
bubbleUpInputEvent(event) {
|
|
13322
14384
|
// Do not need to bubble events if the input is not in bib.
|
|
@@ -13400,7 +14462,6 @@ class AuroCombobox extends i$2 {
|
|
|
13400
14462
|
}
|
|
13401
14463
|
|
|
13402
14464
|
/**
|
|
13403
|
-
* @private
|
|
13404
14465
|
* When the dropdown is visible in fullscreen mode, the input is moved to the subheader slot of bibtemplate.
|
|
13405
14466
|
* Otherwise, it's moved back to the trigger slot.
|
|
13406
14467
|
* @private
|
|
@@ -13411,7 +14472,7 @@ class AuroCombobox extends i$2 {
|
|
|
13411
14472
|
return;
|
|
13412
14473
|
}
|
|
13413
14474
|
|
|
13414
|
-
const inputHelpText = this.input.shadowRoot.querySelector('auro-helptext, [auro-helptext');
|
|
14475
|
+
const inputHelpText = this.input.shadowRoot.querySelector('auro-helptext, [auro-helptext]');
|
|
13415
14476
|
const inputAlertIcon = this.input.shadowRoot.querySelector(".alertNotification");
|
|
13416
14477
|
|
|
13417
14478
|
if (this.dropdown.isPopoverVisible && this.dropdown.isBibFullscreen) {
|
|
@@ -13425,7 +14486,7 @@ class AuroCombobox extends i$2 {
|
|
|
13425
14486
|
this.input.setAttribute('borderless', true);
|
|
13426
14487
|
this.input.setAttribute('slot', 'subheader');
|
|
13427
14488
|
|
|
13428
|
-
// set
|
|
14489
|
+
// set display of helpText and alert icon programmatically
|
|
13429
14490
|
// because ::slotted and ::part do not work together
|
|
13430
14491
|
inputHelpText.style.display = 'none';
|
|
13431
14492
|
if (inputAlertIcon) {
|
|
@@ -13690,8 +14751,8 @@ class AuroCombobox extends i$2 {
|
|
|
13690
14751
|
this.handleMenuOptions();
|
|
13691
14752
|
break;
|
|
13692
14753
|
case 'label':
|
|
13693
|
-
//
|
|
13694
|
-
// It's because the bib is/will be
|
|
14754
|
+
// Programmatically inject as the slot cannot be carried over to bibtemplate.
|
|
14755
|
+
// It's because the bib is/will be separated from dropdown to body.
|
|
13695
14756
|
this.transportAssignedNodes(event.target, this.input, 'label');
|
|
13696
14757
|
break;
|
|
13697
14758
|
case 'bib.fullscreen.headline':
|
|
@@ -13702,6 +14763,16 @@ class AuroCombobox extends i$2 {
|
|
|
13702
14763
|
|
|
13703
14764
|
// function that renders the HTML and CSS into the scope of the component
|
|
13704
14765
|
render() {
|
|
14766
|
+
const helpTextContentClasses = {
|
|
14767
|
+
'util_displayHidden': this.validity !== undefined && this.validity !== 'valid',
|
|
14768
|
+
'helpTextMessage': true,
|
|
14769
|
+
};
|
|
14770
|
+
|
|
14771
|
+
const errorTextContentClasses = {
|
|
14772
|
+
'util_displayHidden': this.validity === undefined || this.validity === 'valid',
|
|
14773
|
+
'errorMessage': true,
|
|
14774
|
+
};
|
|
14775
|
+
|
|
13705
14776
|
return u$2`
|
|
13706
14777
|
<div>
|
|
13707
14778
|
<div aria-live="polite" class="util_displayHiddenVisually">
|
|
@@ -13712,45 +14783,51 @@ class AuroCombobox extends i$2 {
|
|
|
13712
14783
|
: undefined
|
|
13713
14784
|
}
|
|
13714
14785
|
</div>
|
|
13715
|
-
<div
|
|
14786
|
+
<div class="util_displayHiddenVisually" aria-hidden="true">
|
|
13716
14787
|
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
13717
14788
|
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
13718
14789
|
</div>
|
|
13719
14790
|
<${this.dropdownTag}
|
|
13720
|
-
|
|
14791
|
+
?autoPlacement="${this.autoPlacement}"
|
|
14792
|
+
?disabled="${this.disabled}"
|
|
14793
|
+
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
14794
|
+
?noFlip="${this.noFlip}"
|
|
13721
14795
|
?onDark="${this.onDark}"
|
|
14796
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
14797
|
+
.offset="${this.offset}"
|
|
14798
|
+
.placement="${this.placement}"
|
|
14799
|
+
simple
|
|
14800
|
+
disableEventShow
|
|
13722
14801
|
fluid
|
|
13723
|
-
|
|
13724
|
-
|
|
14802
|
+
for="dropdownMenu"
|
|
14803
|
+
layout="${this.layout}"
|
|
13725
14804
|
matchWidth
|
|
13726
14805
|
nocheckmark
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
|
|
13730
|
-
.placement="${this.placement}"
|
|
13731
|
-
.offset="${this.offset}"
|
|
13732
|
-
?autoPlacement="${this.autoPlacement}"
|
|
13733
|
-
?noFlip="${this.noFlip}"
|
|
13734
|
-
disableEventShow>
|
|
14806
|
+
rounded
|
|
14807
|
+
shape="${this.shape}"
|
|
14808
|
+
size="${this.size}">
|
|
13735
14809
|
<${this.inputTag}
|
|
13736
|
-
|
|
14810
|
+
@input="${this.handleInputValueChange}"
|
|
13737
14811
|
.a11yExpanded="${this.dropdownOpen}"
|
|
13738
14812
|
.a11yControls="${this.dropdownId}"
|
|
13739
|
-
|
|
13740
|
-
|
|
13741
|
-
|
|
14813
|
+
.autocomplete="${this.autocomplete}"
|
|
14814
|
+
.inputmode="${this.inputmode}"
|
|
14815
|
+
.placeholder="${this.placeholder}"
|
|
14816
|
+
.type="${this.type}"
|
|
13742
14817
|
?onDark="${this.onDark}"
|
|
13743
14818
|
?required="${this.required}"
|
|
13744
14819
|
?noValidate="${this.noValidate}"
|
|
13745
14820
|
?disabled="${this.disabled}"
|
|
13746
14821
|
?icon="${this.triggerIcon}"
|
|
14822
|
+
a11yRole="combobox"
|
|
14823
|
+
id="${this.id}"
|
|
14824
|
+
layout="${this.layout}"
|
|
13747
14825
|
setCustomValidity="${this.setCustomValidity}"
|
|
13748
14826
|
setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
|
|
13749
14827
|
setCustomValidityCustomError="${this.setCustomValidityCustomError}"
|
|
13750
|
-
|
|
13751
|
-
|
|
13752
|
-
|
|
13753
|
-
@input="${this.handleInputValueChange}">
|
|
14828
|
+
shape="${this.shape}"
|
|
14829
|
+
size="${this.size}"
|
|
14830
|
+
slot="trigger">
|
|
13754
14831
|
</${this.inputTag}>
|
|
13755
14832
|
|
|
13756
14833
|
<div class="menuWrapper"></div>
|
|
@@ -13758,17 +14835,24 @@ class AuroCombobox extends i$2 {
|
|
|
13758
14835
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
13759
14836
|
</${this.bibtemplateTag}>
|
|
13760
14837
|
|
|
13761
|
-
<
|
|
13762
|
-
|
|
13763
|
-
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
14838
|
+
<span slot="helpText">
|
|
14839
|
+
${!this.validity || this.validity === 'valid'
|
|
13764
14840
|
? u$2`
|
|
13765
|
-
|
|
13766
|
-
|
|
13767
|
-
|
|
13768
|
-
|
|
13769
|
-
|
|
14841
|
+
<${this.helpTextTag} class="${e(helpTextContentClasses)}" ?onDark="${this.onDark}">
|
|
14842
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
14843
|
+
<slot name="helpText"></slot>
|
|
14844
|
+
</p>
|
|
14845
|
+
</${this.helpTextTag}>
|
|
14846
|
+
`
|
|
14847
|
+
: u$2`
|
|
14848
|
+
<${this.helpTextTag} class="${e(errorTextContentClasses)}" error ?onDark="${this.onDark}">
|
|
14849
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
14850
|
+
${this.errorMessage}
|
|
14851
|
+
</p>
|
|
14852
|
+
</${this.helpTextTag}>
|
|
14853
|
+
`
|
|
13770
14854
|
}
|
|
13771
|
-
</
|
|
14855
|
+
</span>
|
|
13772
14856
|
</${this.dropdownTag}>
|
|
13773
14857
|
</div>
|
|
13774
14858
|
`;
|
|
@@ -14781,7 +15865,7 @@ class BaseIcon extends AuroElement {
|
|
|
14781
15865
|
|
|
14782
15866
|
var tokensCss = i$5`: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)}`;
|
|
14783
15867
|
|
|
14784
|
-
var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}`;
|
|
15868
|
+
var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
14785
15869
|
|
|
14786
15870
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
14787
15871
|
// See LICENSE in the project root for license information.
|
|
@@ -14950,7 +16034,7 @@ class AuroIcon extends BaseIcon {
|
|
|
14950
16034
|
}
|
|
14951
16035
|
}
|
|
14952
16036
|
|
|
14953
|
-
var iconVersion = '8.0.
|
|
16037
|
+
var iconVersion = '8.0.3';
|
|
14954
16038
|
|
|
14955
16039
|
var checkmarkIcon = {"svg":"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" aria-labelledby=\"checkmark-sm__desc\" class=\"ico_squareLarge\" 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=\"checkmark-sm__desc\">a small check mark.</desc><path d=\"M8.461 11.84a.625.625 0 1 0-.922.844l2.504 2.738c.247.27.674.27.922 0l5.496-6a.625.625 0 1 0-.922-.844l-5.035 5.496z\"/></svg>"};
|
|
14956
16040
|
|