@aurodesignsystem/auro-formkit 5.9.0 → 5.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -4
- package/README.md +4 -4
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +2 -2
- package/components/bibtemplate/dist/registered.js +2 -2
- package/components/checkbox/README.md +62 -62
- package/components/checkbox/demo/api.js +1 -1
- package/components/checkbox/demo/api.md +127 -84
- package/components/checkbox/demo/api.min.js +125 -42
- package/components/checkbox/demo/index.md +9 -281
- package/components/checkbox/demo/index.min.js +125 -42
- package/components/checkbox/demo/readme.html +3 -4
- package/components/checkbox/demo/readme.md +62 -62
- package/components/checkbox/dist/auro-checkbox-group.d.ts +7 -8
- package/components/checkbox/dist/auro-checkbox.d.ts +74 -20
- package/components/checkbox/dist/index.js +125 -42
- package/components/checkbox/dist/registered.js +125 -42
- package/components/combobox/README.md +76 -74
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +11 -12
- package/components/combobox/demo/api.md +1302 -875
- package/components/combobox/demo/api.min.js +416 -492
- package/components/combobox/demo/index.html +1 -7
- package/components/combobox/demo/index.js +0 -19
- package/components/combobox/demo/index.md +43 -723
- package/components/combobox/demo/index.min.js +369 -302
- package/components/combobox/demo/readme.html +3 -4
- package/components/combobox/demo/readme.md +76 -74
- package/components/combobox/dist/auro-combobox.d.ts +42 -42
- package/components/combobox/dist/index.js +204 -210
- package/components/combobox/dist/registered.js +204 -210
- package/components/counter/README.md +81 -66
- package/components/counter/demo/api.html +1 -2
- package/components/counter/demo/api.js +2 -2
- package/components/counter/demo/api.md +777 -259
- package/components/counter/demo/api.min.js +119 -171
- package/components/counter/demo/index.html +0 -2
- package/components/counter/demo/index.md +20 -329
- package/components/counter/demo/index.min.js +117 -152
- package/components/counter/demo/readme.html +3 -4
- package/components/counter/demo/readme.md +81 -66
- package/components/counter/dist/auro-counter-group.d.ts +21 -36
- package/components/counter/dist/auro-counter-wrapper.d.ts +1 -6
- package/components/counter/dist/auro-counter.d.ts +5 -8
- package/components/counter/dist/index.js +117 -152
- package/components/counter/dist/registered.js +117 -152
- package/components/datepicker/README.md +57 -61
- package/components/datepicker/demo/api.js +8 -8
- package/components/datepicker/demo/api.md +720 -561
- package/components/datepicker/demo/api.min.js +678 -2769
- package/components/datepicker/demo/index.md +65 -117
- package/components/datepicker/demo/index.min.js +678 -2769
- package/components/datepicker/demo/readme.html +3 -4
- package/components/datepicker/demo/readme.md +57 -61
- package/components/datepicker/dist/auro-calendar.d.ts +60 -34
- package/components/datepicker/dist/auro-datepicker.d.ts +32 -32
- package/components/datepicker/dist/iconVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +505 -2596
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +505 -2596
- package/components/dropdown/README.md +78 -62
- package/components/dropdown/demo/api.js +4 -4
- package/components/dropdown/demo/api.md +520 -478
- package/components/dropdown/demo/api.min.js +80 -95
- package/components/dropdown/demo/index.md +65 -119
- package/components/dropdown/demo/index.min.js +70 -85
- package/components/dropdown/demo/readme.html +3 -4
- package/components/dropdown/demo/readme.md +78 -62
- package/components/dropdown/dist/auro-dropdown.d.ts +42 -33
- package/components/dropdown/dist/iconVersion.d.ts +1 -1
- package/components/dropdown/dist/index.js +70 -85
- package/components/dropdown/dist/registered.js +70 -85
- package/components/form/README.md +16 -58
- package/components/form/demo/api.md +16 -21
- package/components/form/demo/api.min.js +13 -8
- package/components/form/demo/index.md +38 -39
- package/components/form/demo/index.min.js +13 -8
- package/components/form/demo/readme.md +16 -58
- package/components/form/demo/working.html +1 -1
- package/components/form/dist/auro-form.d.ts +15 -3
- package/components/form/dist/index.js +13 -8
- package/components/form/dist/registered.js +13 -8
- package/components/input/README.md +55 -60
- package/components/input/demo/api.js +3 -5
- package/components/input/demo/api.md +558 -537
- package/components/input/demo/api.min.js +102 -115
- package/components/input/demo/index.js +0 -1
- package/components/input/demo/index.md +90 -203
- package/components/input/demo/index.min.js +87 -99
- package/components/input/demo/readme.html +3 -4
- package/components/input/demo/readme.md +55 -60
- package/components/input/dist/auro-input.d.ts +6 -5
- package/components/input/dist/base-input.d.ts +68 -69
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +87 -82
- package/components/input/dist/registered.js +87 -82
- package/components/menu/README.md +61 -61
- package/components/menu/demo/api.js +6 -8
- package/components/menu/demo/api.md +520 -577
- package/components/menu/demo/api.min.js +199 -97
- package/components/menu/demo/index.js +0 -5
- package/components/menu/demo/index.md +36 -119
- package/components/menu/demo/index.min.js +164 -101
- package/components/menu/demo/readme.html +3 -4
- package/components/menu/demo/readme.md +61 -61
- package/components/menu/dist/auro-menu.context.d.ts +5 -0
- package/components/menu/dist/auro-menu.d.ts +75 -37
- package/components/menu/dist/auro-menuoption.d.ts +38 -13
- package/components/menu/dist/index.js +164 -50
- package/components/menu/dist/registered.js +164 -50
- package/components/radio/README.md +61 -57
- package/components/radio/demo/api.js +2 -2
- package/components/radio/demo/api.md +241 -170
- package/components/radio/demo/api.min.js +154 -77
- package/components/radio/demo/index.md +22 -99
- package/components/radio/demo/index.min.js +145 -68
- package/components/radio/demo/readme.html +3 -4
- package/components/radio/demo/readme.md +61 -57
- package/components/radio/dist/auro-radio-group.d.ts +67 -35
- package/components/radio/dist/auro-radio.d.ts +56 -33
- package/components/radio/dist/index.js +145 -68
- package/components/radio/dist/registered.js +145 -68
- package/components/select/README.md +68 -65
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +7 -7
- package/components/select/demo/api.md +1305 -625
- package/components/select/demo/api.min.js +357 -262
- package/components/select/demo/index.html +0 -2
- package/components/select/demo/index.md +25 -833
- package/components/select/demo/index.min.js +356 -230
- package/components/select/demo/readme.html +3 -4
- package/components/select/demo/readme.md +68 -65
- package/components/select/dist/auro-select.d.ts +99 -90
- package/components/select/dist/index.js +192 -180
- package/components/select/dist/registered.js +192 -180
- package/package.json +9 -4
|
@@ -150,11 +150,10 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
|
|
153
|
-
// Copyright (c)
|
|
153
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
154
154
|
// See LICENSE in the project root for license information.
|
|
155
155
|
|
|
156
156
|
|
|
157
|
-
// build the component class
|
|
158
157
|
class AuroCounterButton extends T$1 {
|
|
159
158
|
|
|
160
159
|
constructor() {
|
|
@@ -231,7 +230,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
|
|
|
231
230
|
}
|
|
232
231
|
};
|
|
233
232
|
|
|
234
|
-
let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$3='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$3 = class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$3=new Map,f$3=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$3.has(t)||g$3.set(t,fetch(t).then(e)),g$3.get(t)};var w$3=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
233
|
+
let p$3 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$3='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$3 = class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$3=new Map,f$3=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$3.has(t)||g$3.set(t,fetch(t).then(e)),g$3.get(t)};var w$3=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
235
234
|
`;let z$3 = class z extends m$3{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$3.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$3}async fetchIcon(t,a){let e="";e="logos"===t?await f$3(`${this.uri}/${t}/${a}.svg`):await f$3(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u$3,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}};css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
236
235
|
`;var y$3=css`: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)}
|
|
237
236
|
`;var k$3=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -1391,22 +1390,17 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1391
1390
|
}
|
|
1392
1391
|
};
|
|
1393
1392
|
|
|
1394
|
-
var formkitVersion$1 = '
|
|
1393
|
+
var formkitVersion$1 = '202601271813';
|
|
1395
1394
|
|
|
1396
|
-
/* eslint-disable lit/binding-positions, lit/no-invalid-html, max-lines */
|
|
1397
1395
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
1398
1396
|
// See LICENSE in the project root for license information.
|
|
1399
1397
|
|
|
1400
1398
|
|
|
1401
1399
|
/**
|
|
1402
|
-
*
|
|
1400
|
+
* The `auro-counter` element provides a flexible counter interface with increment and decrement buttons, supporting optional sub-labels and disabled states.
|
|
1401
|
+
* @customElement auro-counter
|
|
1403
1402
|
*
|
|
1404
|
-
*
|
|
1405
|
-
* supporting optional sub-labels and disabled states.
|
|
1406
|
-
*
|
|
1407
|
-
* @element auro-counter
|
|
1408
|
-
* @extends LitElement
|
|
1409
|
-
* @slot - Main label content for the counter.
|
|
1403
|
+
* @slot default - Main label content for the counter.
|
|
1410
1404
|
* @slot ariaLabel.minus - Accessible label for the decrement button.
|
|
1411
1405
|
* @slot ariaLabel.plus - Accessible label for the increment button.
|
|
1412
1406
|
* @slot helpText - Help text content for the counter.
|
|
@@ -1416,6 +1410,10 @@ class AuroCounter extends LitElement {
|
|
|
1416
1410
|
constructor() {
|
|
1417
1411
|
super();
|
|
1418
1412
|
|
|
1413
|
+
this._initializeDefaults();
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
_initializeDefaults() {
|
|
1419
1417
|
this.appearance = "default";
|
|
1420
1418
|
this.defaultSlot = undefined;
|
|
1421
1419
|
this.disabled = false;
|
|
@@ -1484,7 +1482,7 @@ class AuroCounter extends LitElement {
|
|
|
1484
1482
|
|
|
1485
1483
|
/**
|
|
1486
1484
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
1487
|
-
* @
|
|
1485
|
+
* @type {'default' | 'inverse'}
|
|
1488
1486
|
* @default 'default'
|
|
1489
1487
|
*/
|
|
1490
1488
|
appearance: {
|
|
@@ -1494,11 +1492,10 @@ class AuroCounter extends LitElement {
|
|
|
1494
1492
|
|
|
1495
1493
|
/**
|
|
1496
1494
|
* The default slot content.
|
|
1497
|
-
* @type {string}
|
|
1498
1495
|
* @private
|
|
1499
1496
|
*/
|
|
1500
1497
|
defaultSlot: {
|
|
1501
|
-
type: String
|
|
1498
|
+
type: String
|
|
1502
1499
|
},
|
|
1503
1500
|
|
|
1504
1501
|
/**
|
|
@@ -1506,7 +1503,7 @@ class AuroCounter extends LitElement {
|
|
|
1506
1503
|
*/
|
|
1507
1504
|
disabled: {
|
|
1508
1505
|
type: Boolean,
|
|
1509
|
-
reflect: true
|
|
1506
|
+
reflect: true
|
|
1510
1507
|
},
|
|
1511
1508
|
|
|
1512
1509
|
/**
|
|
@@ -1514,7 +1511,7 @@ class AuroCounter extends LitElement {
|
|
|
1514
1511
|
* @private
|
|
1515
1512
|
*/
|
|
1516
1513
|
disableMax: {
|
|
1517
|
-
type: Boolean
|
|
1514
|
+
type: Boolean
|
|
1518
1515
|
},
|
|
1519
1516
|
|
|
1520
1517
|
/**
|
|
@@ -1522,7 +1519,7 @@ class AuroCounter extends LitElement {
|
|
|
1522
1519
|
* @private
|
|
1523
1520
|
*/
|
|
1524
1521
|
disableMin: {
|
|
1525
|
-
type: Boolean
|
|
1522
|
+
type: Boolean
|
|
1526
1523
|
},
|
|
1527
1524
|
|
|
1528
1525
|
/**
|
|
@@ -1531,7 +1528,7 @@ class AuroCounter extends LitElement {
|
|
|
1531
1528
|
*/
|
|
1532
1529
|
error: {
|
|
1533
1530
|
type: String,
|
|
1534
|
-
reflect: false
|
|
1531
|
+
reflect: false
|
|
1535
1532
|
},
|
|
1536
1533
|
|
|
1537
1534
|
/**
|
|
@@ -1539,7 +1536,7 @@ class AuroCounter extends LitElement {
|
|
|
1539
1536
|
*/
|
|
1540
1537
|
max: {
|
|
1541
1538
|
type: Number,
|
|
1542
|
-
reflect: true
|
|
1539
|
+
reflect: true
|
|
1543
1540
|
},
|
|
1544
1541
|
|
|
1545
1542
|
/**
|
|
@@ -1547,11 +1544,11 @@ class AuroCounter extends LitElement {
|
|
|
1547
1544
|
*/
|
|
1548
1545
|
min: {
|
|
1549
1546
|
type: Number,
|
|
1550
|
-
reflect: true
|
|
1547
|
+
reflect: true
|
|
1551
1548
|
},
|
|
1552
1549
|
|
|
1553
1550
|
/**
|
|
1554
|
-
* DEPRECATED - use `appearance` instead.
|
|
1551
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
1555
1552
|
*/
|
|
1556
1553
|
onDark: {
|
|
1557
1554
|
type: Boolean,
|
|
@@ -1563,21 +1560,21 @@ class AuroCounter extends LitElement {
|
|
|
1563
1560
|
*/
|
|
1564
1561
|
validity: {
|
|
1565
1562
|
type: String,
|
|
1566
|
-
reflect: true
|
|
1563
|
+
reflect: true
|
|
1567
1564
|
},
|
|
1568
1565
|
|
|
1569
1566
|
/**
|
|
1570
1567
|
* The current value of the counter.
|
|
1571
1568
|
*/
|
|
1572
1569
|
value: {
|
|
1573
|
-
type: Number
|
|
1570
|
+
type: Number
|
|
1574
1571
|
},
|
|
1575
1572
|
};
|
|
1576
1573
|
}
|
|
1577
1574
|
|
|
1578
1575
|
/**
|
|
1579
1576
|
* Registers the custom element with the browser.
|
|
1580
|
-
* @param {string} [name="auro-counter"] -
|
|
1577
|
+
* @param {string} [name="auro-counter"] - The name of the element that you want to register.
|
|
1581
1578
|
* @example
|
|
1582
1579
|
* AuroCounter.register("custom-counter") // registers <custom-counter/>
|
|
1583
1580
|
*/
|
|
@@ -1945,9 +1942,8 @@ function getOppositeAxis(axis) {
|
|
|
1945
1942
|
function getAxisLength(axis) {
|
|
1946
1943
|
return axis === 'y' ? 'height' : 'width';
|
|
1947
1944
|
}
|
|
1948
|
-
const yAxisSides = /*#__PURE__*/new Set(['top', 'bottom']);
|
|
1949
1945
|
function getSideAxis(placement) {
|
|
1950
|
-
return
|
|
1946
|
+
return ['top', 'bottom'].includes(getSide(placement)) ? 'y' : 'x';
|
|
1951
1947
|
}
|
|
1952
1948
|
function getAlignmentAxis(placement) {
|
|
1953
1949
|
return getOppositeAxis(getSideAxis(placement));
|
|
@@ -1972,19 +1968,19 @@ function getExpandedPlacements(placement) {
|
|
|
1972
1968
|
function getOppositeAlignmentPlacement(placement) {
|
|
1973
1969
|
return placement.replace(/start|end/g, alignment => oppositeAlignmentMap[alignment]);
|
|
1974
1970
|
}
|
|
1975
|
-
const lrPlacement = ['left', 'right'];
|
|
1976
|
-
const rlPlacement = ['right', 'left'];
|
|
1977
|
-
const tbPlacement = ['top', 'bottom'];
|
|
1978
|
-
const btPlacement = ['bottom', 'top'];
|
|
1979
1971
|
function getSideList(side, isStart, rtl) {
|
|
1972
|
+
const lr = ['left', 'right'];
|
|
1973
|
+
const rl = ['right', 'left'];
|
|
1974
|
+
const tb = ['top', 'bottom'];
|
|
1975
|
+
const bt = ['bottom', 'top'];
|
|
1980
1976
|
switch (side) {
|
|
1981
1977
|
case 'top':
|
|
1982
1978
|
case 'bottom':
|
|
1983
|
-
if (rtl) return isStart ?
|
|
1984
|
-
return isStart ?
|
|
1979
|
+
if (rtl) return isStart ? rl : lr;
|
|
1980
|
+
return isStart ? lr : rl;
|
|
1985
1981
|
case 'left':
|
|
1986
1982
|
case 'right':
|
|
1987
|
-
return isStart ?
|
|
1983
|
+
return isStart ? tb : bt;
|
|
1988
1984
|
default:
|
|
1989
1985
|
return [];
|
|
1990
1986
|
}
|
|
@@ -2425,22 +2421,16 @@ const flip$1 = function (options) {
|
|
|
2425
2421
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
2426
2422
|
const nextPlacement = placements[nextIndex];
|
|
2427
2423
|
if (nextPlacement) {
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
},
|
|
2439
|
-
reset: {
|
|
2440
|
-
placement: nextPlacement
|
|
2441
|
-
}
|
|
2442
|
-
};
|
|
2443
|
-
}
|
|
2424
|
+
// Try next placement and re-run the lifecycle.
|
|
2425
|
+
return {
|
|
2426
|
+
data: {
|
|
2427
|
+
index: nextIndex,
|
|
2428
|
+
overflows: overflowsData
|
|
2429
|
+
},
|
|
2430
|
+
reset: {
|
|
2431
|
+
placement: nextPlacement
|
|
2432
|
+
}
|
|
2433
|
+
};
|
|
2444
2434
|
}
|
|
2445
2435
|
|
|
2446
2436
|
// First, find the candidates that fit on the mainAxis side of overflow,
|
|
@@ -2486,8 +2476,6 @@ const flip$1 = function (options) {
|
|
|
2486
2476
|
};
|
|
2487
2477
|
};
|
|
2488
2478
|
|
|
2489
|
-
const originSides = /*#__PURE__*/new Set(['left', 'top']);
|
|
2490
|
-
|
|
2491
2479
|
// For type backwards-compatibility, the `OffsetOptions` type was also
|
|
2492
2480
|
// Derivable.
|
|
2493
2481
|
|
|
@@ -2501,7 +2489,7 @@ async function convertValueToCoords(state, options) {
|
|
|
2501
2489
|
const side = getSide(placement);
|
|
2502
2490
|
const alignment = getAlignment(placement);
|
|
2503
2491
|
const isVertical = getSideAxis(placement) === 'y';
|
|
2504
|
-
const mainAxisMulti =
|
|
2492
|
+
const mainAxisMulti = ['left', 'top'].includes(side) ? -1 : 1;
|
|
2505
2493
|
const crossAxisMulti = rtl && isVertical ? -1 : 1;
|
|
2506
2494
|
const rawValue = evaluate(options, state);
|
|
2507
2495
|
|
|
@@ -2694,7 +2682,6 @@ function isShadowRoot(value) {
|
|
|
2694
2682
|
}
|
|
2695
2683
|
return value instanceof ShadowRoot || value instanceof getWindow(value).ShadowRoot;
|
|
2696
2684
|
}
|
|
2697
|
-
const invalidOverflowDisplayValues = /*#__PURE__*/new Set(['inline', 'contents']);
|
|
2698
2685
|
function isOverflowElement(element) {
|
|
2699
2686
|
const {
|
|
2700
2687
|
overflow,
|
|
@@ -2702,32 +2689,27 @@ function isOverflowElement(element) {
|
|
|
2702
2689
|
overflowY,
|
|
2703
2690
|
display
|
|
2704
2691
|
} = getComputedStyle$1(element);
|
|
2705
|
-
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !
|
|
2692
|
+
return /auto|scroll|overlay|hidden|clip/.test(overflow + overflowY + overflowX) && !['inline', 'contents'].includes(display);
|
|
2706
2693
|
}
|
|
2707
|
-
const tableElements = /*#__PURE__*/new Set(['table', 'td', 'th']);
|
|
2708
2694
|
function isTableElement(element) {
|
|
2709
|
-
return
|
|
2695
|
+
return ['table', 'td', 'th'].includes(getNodeName(element));
|
|
2710
2696
|
}
|
|
2711
|
-
const topLayerSelectors = [':popover-open', ':modal'];
|
|
2712
2697
|
function isTopLayer(element) {
|
|
2713
|
-
return
|
|
2698
|
+
return [':popover-open', ':modal'].some(selector => {
|
|
2714
2699
|
try {
|
|
2715
2700
|
return element.matches(selector);
|
|
2716
|
-
} catch (
|
|
2701
|
+
} catch (e) {
|
|
2717
2702
|
return false;
|
|
2718
2703
|
}
|
|
2719
2704
|
});
|
|
2720
2705
|
}
|
|
2721
|
-
const transformProperties = ['transform', 'translate', 'scale', 'rotate', 'perspective'];
|
|
2722
|
-
const willChangeValues = ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'];
|
|
2723
|
-
const containValues = ['paint', 'layout', 'strict', 'content'];
|
|
2724
2706
|
function isContainingBlock(elementOrCss) {
|
|
2725
2707
|
const webkit = isWebKit();
|
|
2726
2708
|
const css = isElement(elementOrCss) ? getComputedStyle$1(elementOrCss) : elementOrCss;
|
|
2727
2709
|
|
|
2728
2710
|
// https://developer.mozilla.org/en-US/docs/Web/CSS/Containing_block#identifying_the_containing_block
|
|
2729
2711
|
// https://drafts.csswg.org/css-transforms-2/#individual-transforms
|
|
2730
|
-
return
|
|
2712
|
+
return ['transform', 'translate', 'scale', 'rotate', 'perspective'].some(value => css[value] ? css[value] !== 'none' : false) || (css.containerType ? css.containerType !== 'normal' : false) || !webkit && (css.backdropFilter ? css.backdropFilter !== 'none' : false) || !webkit && (css.filter ? css.filter !== 'none' : false) || ['transform', 'translate', 'scale', 'rotate', 'perspective', 'filter'].some(value => (css.willChange || '').includes(value)) || ['paint', 'layout', 'strict', 'content'].some(value => (css.contain || '').includes(value));
|
|
2731
2713
|
}
|
|
2732
2714
|
function getContainingBlock(element) {
|
|
2733
2715
|
let currentNode = getParentNode(element);
|
|
@@ -2745,9 +2727,8 @@ function isWebKit() {
|
|
|
2745
2727
|
if (typeof CSS === 'undefined' || !CSS.supports) return false;
|
|
2746
2728
|
return CSS.supports('-webkit-backdrop-filter', 'none');
|
|
2747
2729
|
}
|
|
2748
|
-
const lastTraversableNodeNames = /*#__PURE__*/new Set(['html', 'body', '#document']);
|
|
2749
2730
|
function isLastTraversableNode(node) {
|
|
2750
|
-
return
|
|
2731
|
+
return ['html', 'body', '#document'].includes(getNodeName(node));
|
|
2751
2732
|
}
|
|
2752
2733
|
function getComputedStyle$1(element) {
|
|
2753
2734
|
return getWindow(element).getComputedStyle(element);
|
|
@@ -3052,7 +3033,6 @@ function getViewportRect(element, strategy) {
|
|
|
3052
3033
|
};
|
|
3053
3034
|
}
|
|
3054
3035
|
|
|
3055
|
-
const absoluteOrFixed = /*#__PURE__*/new Set(['absolute', 'fixed']);
|
|
3056
3036
|
// Returns the inner client rect, subtracting scrollbars if present.
|
|
3057
3037
|
function getInnerBoundingClientRect(element, strategy) {
|
|
3058
3038
|
const clientRect = getBoundingClientRect(element, true, strategy === 'fixed');
|
|
@@ -3117,7 +3097,7 @@ function getClippingElementAncestors(element, cache) {
|
|
|
3117
3097
|
if (!currentNodeIsContaining && computedStyle.position === 'fixed') {
|
|
3118
3098
|
currentContainingBlockComputedStyle = null;
|
|
3119
3099
|
}
|
|
3120
|
-
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle &&
|
|
3100
|
+
const shouldDropCurrentNode = elementIsFixed ? !currentNodeIsContaining && !currentContainingBlockComputedStyle : !currentNodeIsContaining && computedStyle.position === 'static' && !!currentContainingBlockComputedStyle && ['absolute', 'fixed'].includes(currentContainingBlockComputedStyle.position) || isOverflowElement(currentNode) && !currentNodeIsContaining && hasFixedPositionAncestor(element, currentNode);
|
|
3121
3101
|
if (shouldDropCurrentNode) {
|
|
3122
3102
|
// Drop non-containing blocks.
|
|
3123
3103
|
result = result.filter(ancestor => ancestor !== currentNode);
|
|
@@ -3180,12 +3160,6 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3180
3160
|
scrollTop: 0
|
|
3181
3161
|
};
|
|
3182
3162
|
const offsets = createCoords(0);
|
|
3183
|
-
|
|
3184
|
-
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
3185
|
-
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
3186
|
-
function setLeftRTLScrollbarOffset() {
|
|
3187
|
-
offsets.x = getWindowScrollBarX(documentElement);
|
|
3188
|
-
}
|
|
3189
3163
|
if (isOffsetParentAnElement || !isOffsetParentAnElement && !isFixed) {
|
|
3190
3164
|
if (getNodeName(offsetParent) !== 'body' || isOverflowElement(documentElement)) {
|
|
3191
3165
|
scroll = getNodeScroll(offsetParent);
|
|
@@ -3195,12 +3169,11 @@ function getRectRelativeToOffsetParent(element, offsetParent, strategy) {
|
|
|
3195
3169
|
offsets.x = offsetRect.x + offsetParent.clientLeft;
|
|
3196
3170
|
offsets.y = offsetRect.y + offsetParent.clientTop;
|
|
3197
3171
|
} else if (documentElement) {
|
|
3198
|
-
|
|
3172
|
+
// If the <body> scrollbar appears on the left (e.g. RTL systems). Use
|
|
3173
|
+
// Firefox with layout.scrollbar.side = 3 in about:config to test this.
|
|
3174
|
+
offsets.x = getWindowScrollBarX(documentElement);
|
|
3199
3175
|
}
|
|
3200
3176
|
}
|
|
3201
|
-
if (isFixed && !isOffsetParentAnElement && documentElement) {
|
|
3202
|
-
setLeftRTLScrollbarOffset();
|
|
3203
|
-
}
|
|
3204
3177
|
const htmlOffset = documentElement && !isOffsetParentAnElement && !isFixed ? getHTMLOffset(documentElement, scroll) : createCoords(0);
|
|
3205
3178
|
const x = rect.left + scroll.scrollLeft - offsets.x - htmlOffset.x;
|
|
3206
3179
|
const y = rect.top + scroll.scrollTop - offsets.y - htmlOffset.y;
|
|
@@ -3377,7 +3350,7 @@ function observeMove(element, onMove) {
|
|
|
3377
3350
|
// Handle <iframe>s
|
|
3378
3351
|
root: root.ownerDocument
|
|
3379
3352
|
});
|
|
3380
|
-
} catch (
|
|
3353
|
+
} catch (e) {
|
|
3381
3354
|
io = new IntersectionObserver(handleObserve, options);
|
|
3382
3355
|
}
|
|
3383
3356
|
io.observe(element);
|
|
@@ -4467,7 +4440,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
4467
4440
|
}
|
|
4468
4441
|
};
|
|
4469
4442
|
|
|
4470
|
-
let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$2='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$2 = class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$2=new Map,f$2=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$2.has(t)||g$2.set(t,fetch(t).then(e)),g$2.get(t)};var w$2=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
4443
|
+
let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}};var u$2='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';let m$2 = class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}};const g$2=new Map,f$2=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g$2.has(t)||g$2.set(t,fetch(t).then(e)),g$2.get(t)};var w$2=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
4471
4444
|
`;let z$2 = class z extends m$2{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m$2.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w$2}async fetchIcon(t,a){let e="";e="logos"===t?await f$2(`${this.uri}/${t}/${a}.svg`):await f$2(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u$2,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}};css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
4472
4445
|
`;var y$2=css`: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)}
|
|
4473
4446
|
`;var k$2=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -4491,7 +4464,7 @@ let p$2 = class p{registerComponent(t,a){customElements.get(t)||customElements.d
|
|
|
4491
4464
|
</div>
|
|
4492
4465
|
`}};
|
|
4493
4466
|
|
|
4494
|
-
var iconVersion$1 = '9.1.
|
|
4467
|
+
var iconVersion$1 = '9.1.1';
|
|
4495
4468
|
|
|
4496
4469
|
var styleCss$2 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
4497
4470
|
|
|
@@ -4932,7 +4905,7 @@ class AuroHelpText extends LitElement {
|
|
|
4932
4905
|
}
|
|
4933
4906
|
}
|
|
4934
4907
|
|
|
4935
|
-
var formkitVersion = '
|
|
4908
|
+
var formkitVersion = '202601271813';
|
|
4936
4909
|
|
|
4937
4910
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
4938
4911
|
static get properties() {
|
|
@@ -5038,12 +5011,14 @@ let AuroElement$1 = class AuroElement extends LitElement {
|
|
|
5038
5011
|
}
|
|
5039
5012
|
};
|
|
5040
5013
|
|
|
5041
|
-
// Copyright (c)
|
|
5014
|
+
// Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5042
5015
|
// See LICENSE in the project root for license information.
|
|
5043
5016
|
|
|
5044
5017
|
|
|
5045
|
-
|
|
5046
|
-
|
|
5018
|
+
/**
|
|
5019
|
+
* The `auro-dropdown` element provides a way to place content in a bib that can be toggled.
|
|
5020
|
+
* @customElement auro-dropdown
|
|
5021
|
+
*
|
|
5047
5022
|
* @slot - Default slot for the popover content.
|
|
5048
5023
|
* @slot helpText - Defines the content of the helpText.
|
|
5049
5024
|
* @slot trigger - Defines the content of the trigger.
|
|
@@ -5079,7 +5054,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5079
5054
|
/** @private */
|
|
5080
5055
|
this.bibElement = createRef();
|
|
5081
5056
|
|
|
5082
|
-
this.
|
|
5057
|
+
this._intializeDefaults();
|
|
5083
5058
|
}
|
|
5084
5059
|
|
|
5085
5060
|
/**
|
|
@@ -5100,7 +5075,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5100
5075
|
* @private
|
|
5101
5076
|
* @returns {void} Internal defaults.
|
|
5102
5077
|
*/
|
|
5103
|
-
|
|
5078
|
+
_intializeDefaults() {
|
|
5104
5079
|
this.appearance = 'default';
|
|
5105
5080
|
this.chevron = false;
|
|
5106
5081
|
this.disabled = false;
|
|
@@ -5221,9 +5196,18 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5221
5196
|
static get properties() {
|
|
5222
5197
|
return {
|
|
5223
5198
|
|
|
5199
|
+
/**
|
|
5200
|
+
* The value for the role attribute of the trigger element.
|
|
5201
|
+
*/
|
|
5202
|
+
a11yRole: {
|
|
5203
|
+
type: String || undefined,
|
|
5204
|
+
attribute: false,
|
|
5205
|
+
reflect: false
|
|
5206
|
+
},
|
|
5207
|
+
|
|
5224
5208
|
/**
|
|
5225
5209
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
5226
|
-
* @
|
|
5210
|
+
* @type {'default' | 'inverse'}
|
|
5227
5211
|
* @default 'default'
|
|
5228
5212
|
*/
|
|
5229
5213
|
appearance: {
|
|
@@ -5233,7 +5217,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5233
5217
|
|
|
5234
5218
|
/**
|
|
5235
5219
|
* If declared, bib's position will be automatically calculated where to appear.
|
|
5236
|
-
* @default false
|
|
5237
5220
|
*/
|
|
5238
5221
|
autoPlacement: {
|
|
5239
5222
|
type: Boolean,
|
|
@@ -5242,7 +5225,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5242
5225
|
|
|
5243
5226
|
/**
|
|
5244
5227
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
5245
|
-
* @default false
|
|
5246
5228
|
*/
|
|
5247
5229
|
disableEventShow: {
|
|
5248
5230
|
type: Boolean,
|
|
@@ -5259,11 +5241,11 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5259
5241
|
|
|
5260
5242
|
/**
|
|
5261
5243
|
* If declared, the dropdown displays a chevron on the right.
|
|
5262
|
-
* @attr {Boolean} chevron
|
|
5263
5244
|
*/
|
|
5264
5245
|
chevron: {
|
|
5265
5246
|
type: Boolean,
|
|
5266
|
-
reflect: true
|
|
5247
|
+
reflect: true,
|
|
5248
|
+
attribute: 'chevron'
|
|
5267
5249
|
},
|
|
5268
5250
|
|
|
5269
5251
|
/**
|
|
@@ -5300,7 +5282,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5300
5282
|
},
|
|
5301
5283
|
|
|
5302
5284
|
/**
|
|
5303
|
-
* If declared
|
|
5285
|
+
* If declared, will apply error UI to the dropdown.
|
|
5304
5286
|
*/
|
|
5305
5287
|
error: {
|
|
5306
5288
|
type: Boolean,
|
|
@@ -5355,18 +5337,28 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5355
5337
|
},
|
|
5356
5338
|
|
|
5357
5339
|
/**
|
|
5358
|
-
* Defines the screen size breakpoint
|
|
5359
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5340
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5360
5341
|
*
|
|
5361
5342
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5362
5343
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5363
|
-
* @
|
|
5344
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
5345
|
+
* @default 'sm'
|
|
5364
5346
|
*/
|
|
5365
5347
|
fullscreenBreakpoint: {
|
|
5366
5348
|
type: String,
|
|
5367
5349
|
reflect: true
|
|
5368
5350
|
},
|
|
5369
5351
|
|
|
5352
|
+
/**
|
|
5353
|
+
* Sets the layout of the dropdown.
|
|
5354
|
+
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
5355
|
+
* @default 'classic'
|
|
5356
|
+
*/
|
|
5357
|
+
layout: {
|
|
5358
|
+
type: String,
|
|
5359
|
+
reflect: true
|
|
5360
|
+
},
|
|
5361
|
+
|
|
5370
5362
|
/**
|
|
5371
5363
|
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
5372
5364
|
* @private
|
|
@@ -5387,7 +5379,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5387
5379
|
/**
|
|
5388
5380
|
* If declared, the bib will NOT flip to an alternate position
|
|
5389
5381
|
* when there isn't enough space in the specified `placement`.
|
|
5390
|
-
* @default false
|
|
5391
5382
|
*/
|
|
5392
5383
|
noFlip: {
|
|
5393
5384
|
type: Boolean,
|
|
@@ -5396,7 +5387,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5396
5387
|
|
|
5397
5388
|
/**
|
|
5398
5389
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
5399
|
-
* @default false
|
|
5400
5390
|
*/
|
|
5401
5391
|
shift: {
|
|
5402
5392
|
type: Boolean,
|
|
@@ -5429,7 +5419,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5429
5419
|
},
|
|
5430
5420
|
|
|
5431
5421
|
/**
|
|
5432
|
-
* DEPRECATED - use `appearance` instead.
|
|
5422
|
+
* DEPRECATED - use `appearance="inverse"` instead.
|
|
5433
5423
|
*/
|
|
5434
5424
|
onDark: {
|
|
5435
5425
|
type: Boolean,
|
|
@@ -5446,7 +5436,8 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5446
5436
|
|
|
5447
5437
|
/**
|
|
5448
5438
|
* Position where the bib should appear relative to the trigger.
|
|
5449
|
-
* @
|
|
5439
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
5440
|
+
* @default 'bottom-start'
|
|
5450
5441
|
*/
|
|
5451
5442
|
placement: {
|
|
5452
5443
|
type: String,
|
|
@@ -5458,15 +5449,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5458
5449
|
*/
|
|
5459
5450
|
tabIndex: {
|
|
5460
5451
|
type: Number
|
|
5461
|
-
},
|
|
5462
|
-
|
|
5463
|
-
/**
|
|
5464
|
-
* The value for the role attribute of the trigger element.
|
|
5465
|
-
*/
|
|
5466
|
-
a11yRole: {
|
|
5467
|
-
type: String || undefined,
|
|
5468
|
-
attribute: false,
|
|
5469
|
-
reflect: false
|
|
5470
5452
|
}
|
|
5471
5453
|
};
|
|
5472
5454
|
}
|
|
@@ -5493,7 +5475,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
5493
5475
|
|
|
5494
5476
|
/**
|
|
5495
5477
|
* This will register this element with the browser.
|
|
5496
|
-
* @param {string} [name="auro-dropdown"] - The name of element that you want to register
|
|
5478
|
+
* @param {string} [name="auro-dropdown"] - The name of the element that you want to register.
|
|
5497
5479
|
*
|
|
5498
5480
|
* @example
|
|
5499
5481
|
* AuroDropdown.register("custom-dropdown") // this will register this element to <custom-dropdown/>
|
|
@@ -6163,7 +6145,7 @@ let l$1 = class l{generateElementName(t,e){let o=t;return o+="-",o+=e.replace(/[
|
|
|
6163
6145
|
|
|
6164
6146
|
var buttonVersion = '12.3.0';
|
|
6165
6147
|
|
|
6166
|
-
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;
|
|
6148
|
+
class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,class extends a{});}closestElement(t,a=this,e=(a,s=a&&a.closest(t))=>a&&a!==document&&a!==window?s||e(a.getRootNode().host):null){return e(a)}handleComponentTagRename(t,a){const e=a.toLowerCase();t.tagName.toLowerCase()!==e&&t.setAttribute(e,true);}elementMatch(t,a){const e=a.toLowerCase();return t.tagName.toLowerCase()===e||t.hasAttribute(e)}}var u='<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="error__desc" class="ico_squareLarge" data-deprecated="true" role="img" style="min-width:var(--auro-size-lg, var(--ds-size-300, 1.5rem));height:var(--auro-size-lg, var(--ds-size-300, 1.5rem));fill:currentColor" viewBox="0 0 24 24" part="svg"><title/><desc id="error__desc">Error alert indicator.</desc><path d="m13.047 5.599 6.786 11.586A1.207 1.207 0 0 1 18.786 19H5.214a1.207 1.207 0 0 1-1.047-1.815l6.786-11.586a1.214 1.214 0 0 1 2.094 0m-1.165.87a.23.23 0 0 0-.085.085L5.419 17.442a.232.232 0 0 0 .203.35h12.756a.234.234 0 0 0 .203-.35L12.203 6.554a.236.236 0 0 0-.321-.084M12 15.5a.75.75 0 1 1 0 1.5.75.75 0 0 1 0-1.5m-.024-6.22c.325 0 .589.261.589.583v4.434a.586.586 0 0 1-.589.583.586.586 0 0 1-.588-.583V9.863c0-.322.264-.583.588-.583"/></svg>';class m extends LitElement{static get properties(){return {hidden:{type:Boolean,reflect:true},hiddenVisually:{type:Boolean,reflect:true},hiddenAudible:{type:Boolean,reflect:true}}}hideAudible(t){return t?"true":"false"}}const g=new Map,f=(t,a={})=>{const e=a.responseParser||(t=>t.text());return g.has(t)||g.set(t,fetch(t).then(e)),g.get(t)};var w=css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, .75rem))}:host{color:currentColor;vertical-align:middle;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem)!important;width:var(--ds-auro-icon-size, 1.5rem)!important;height:var(--ds-auro-icon-size, 1.5rem)!important}.componentWrapper{display:flex;line-height:var(--ds-auro-icon-size)}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.svgWrapper [part=svg]{display:flex}.labelWrapper{margin-left:var(--ds-size-50, .25rem)}.labelWrapper ::slotted(*){line-height:inherit!important}
|
|
6167
6149
|
`;class z extends m{constructor(){super(),this.onDark=false,this.appearance="default";}static get properties(){return {...m.properties,onDark:{type:Boolean,reflect:true},appearance:{type:String,reflect:true},svg:{attribute:false,reflect:true}}}static get styles(){return w}async fetchIcon(t,a){let e="";e="logos"===t?await f(`${this.uri}/${t}/${a}.svg`):await f(`${this.uri}/icons/${t}/${a}.svg`);return (new DOMParser).parseFromString(e,"text/html").body.querySelector("svg")}async firstUpdated(){try{if(!this.customSvg){const t=await this.fetchIcon(this.category,this.name);if(t)this.svg=t;else if(!t){const t=(new DOMParser).parseFromString(u,"text/html");this.svg=t.body.firstChild;}}}catch(t){this.svg=void 0;}}}css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px,1px,1px,1px);width:1px;height:1px;padding:0;border:0}:host{display:inline-block;--ds-auro-icon-size: 100%;width:100%;height:100%}:host .logo{color:var(--ds-auro-alaska-color)}:host([onDark]),:host([appearance=inverse]){--ds-auro-alaska-color: #FFF}
|
|
6168
6150
|
`;var y=css`: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)}
|
|
6169
6151
|
`;var k=css`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]),:host(:not([appearance=inverse])[variant=accent1]){--ds-auro-icon-color: var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]),:host(:not([appearance=inverse])[variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]),:host(:not([appearance=inverse])[variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]),:host(:not([appearance=inverse])[variant=statusDefault]){--ds-auro-icon-color: var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]),:host(:not([appearance=inverse])[variant=statusInfo]){--ds-auro-icon-color: var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]),:host(:not([appearance=inverse])[variant=statusSuccess]){--ds-auro-icon-color: var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]),:host(:not([appearance=inverse])[variant=statusWarning]){--ds-auro-icon-color: var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]),:host(:not([appearance=inverse])[variant=statusError]){--ds-auro-icon-color: var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]),:host(:not([appearance=inverse])[variant=statusInfoSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]),:host(:not([appearance=inverse])[variant=statusSuccessSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]),:host(:not([appearance=inverse])[variant=statusWarningSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]),:host(:not([appearance=inverse])[variant=statusErrorSubtle]){--ds-auro-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]),:host(:not([appearance=inverse])[variant=fareBasicEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]),:host(:not([appearance=inverse])[variant=fareBusiness]){--ds-auro-icon-color: var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]),:host(:not([appearance=inverse])[variant=fareEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]),:host(:not([appearance=inverse])[variant=fareFirst]){--ds-auro-icon-color: var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]),:host(:not([appearance=inverse])[variant=farePremiumEconomy]){--ds-auro-icon-color: var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]),:host(:not([appearance=inverse])[variant=tierOneWorldEmerald]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]),:host(:not([appearance=inverse])[variant=tierOneWorldSapphire]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]),:host(:not([appearance=inverse])[variant=tierOneWorldRuby]){--ds-auro-icon-color: var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]),:host([appearance=inverse]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]),:host([appearance=inverse][variant=disabled]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]),:host([appearance=inverse][variant=muted]){--ds-auro-icon-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]),:host([appearance=inverse][variant=statusError]){--ds-auro-icon-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}
|
|
@@ -6187,7 +6169,7 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
6187
6169
|
</div>
|
|
6188
6170
|
`}}
|
|
6189
6171
|
|
|
6190
|
-
var iconVersion = '9.1.
|
|
6172
|
+
var iconVersion = '9.1.1';
|
|
6191
6173
|
|
|
6192
6174
|
class l{registerComponent(e,s){customElements.get(e)||customElements.define(e,class extends s{});}closestElement(e,s=this,t=(s,a=s&&s.closest(e))=>s&&s!==document&&s!==window?a||t(s.getRootNode().host):null){return t(s)}handleComponentTagRename(e,s){const t=s.toLowerCase();e.tagName.toLowerCase()!==t&&e.setAttribute(t,true);}elementMatch(e,s){const t=s.toLowerCase();return e.tagName.toLowerCase()===t||e.hasAttribute(t)}}var n=css`.body-default{font-size:var(--wcss-body-default-font-size, 1rem);line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-lg{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, .875rem);line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs{font-size:var(--wcss-body-xs-font-size, .75rem);line-height:var(--wcss-body-xs-line-height, 1rem)}.body-2xs{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;font-size:var(--wcss-body-2xs-font-size, .625rem);font-weight:var(--wcss-body-weight, 450);letter-spacing:var(--wcss-body-letter-spacing, 0);line-height:var(--wcss-body-2xs-line-height, .875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 450);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 450);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, .05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, .05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, .05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, .05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, .05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, .1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(.875rem, 1.1666666667vw, .875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, .1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}:host{display:block}:host .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, .125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, .25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, .5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, .75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, .125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, .25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, .5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, .75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}
|
|
6193
6175
|
`;class c extends LitElement{constructor(){super(),this.level=1,this.typography="heading",this.runtimeUtils=new l;}static get properties(){return {level:{type:Number,reflect:true,converter(e){const s=Number(e);return Number.isNaN(s)||s<1?1:s>6?6:s}},display:{type:String,reflect:true},visualLevel:{type:Number,reflect:true,converter(e){const s=Number(e);return Number.isNaN(s)||s<1?1:s>6?6:s}},typography:{type:String,reflect:true},color:{type:String,reflect:true},margin:{type:String,reflect:true},size:{type:String,reflect:true}}}static get styles(){return [n]}static get displayClassMap(){return {800:"heading-xl",700:"heading-lg",600:"heading-md",500:"heading-sm",400:"heading-xs",300:"heading-2xs",heading:{1:"heading-xl",2:"heading-lg",3:"heading-md",4:"heading-sm",5:"heading-xs",6:"heading-2xs"},display:{1:"display-2xl",2:"display-xl",3:"display-lg",4:"display-md",5:"display-sm",6:"display-xs"}}}static register(e="auro-header"){l.prototype.registerComponent(e,c);}firstUpdated(){this.runtimeUtils.handleComponentTagRename(this,"auro-header");}spacingDecision(e){if("both"===this.margin)switch(e){case "none":return "util_stackMarginnone--top util_stackMarginnone--bottom";case "25":return "util_stackMargin25--top util_stackMargin25--bottom";case "50":return "util_stackMargin50--top util_stackMargin50--bottom";case "100":return "util_stackMargin100--top util_stackMargin100--bottom";case "150":return "util_stackMargin150--top util_stackMargin150--bottom";case "200":return "util_stackMargin200--top util_stackMargin200--bottom";case "300":return "util_stackMargin300--top util_stackMargin300--bottom";case "400":return "util_stackMargin400--top util_stackMargin400--bottom";case "600":return "util_stackMargin600--top util_stackMargin600--bottom";case "800":return "util_stackMargin800--top util_stackMargin800--bottom";default:return ""}return this.spacingApplied(e)}spacingApplied(e){switch(e){case "none":return `util_stackMarginnone--${this.margin}`;case "25":return `util_stackMargin25--${this.margin}`;case "50":return `util_stackMargin50--${this.margin}`;case "100":return `util_stackMargin100--${this.margin}`;case "150":return `util_stackMargin150--${this.margin}`;case "200":return `util_stackMargin200--${this.margin}`;case "300":return `util_stackMargin300--${this.margin}`;case "400":return `util_stackMargin400--${this.margin}`;case "600":return `util_stackMarginX600--${this.margin}`;case "800":return `util_stackMargin800--${this.margin}`;default:return ""}}template(e){this.visualLevel||this.display||(this.visualLevel=this.level);const s=e||"1",l=this.spacingDecision(this.size),n=this.visualLevel?c.displayClassMap[this.typography][this.visualLevel]:c.displayClassMap[this.display],o={heading:true,[n]:true};if(l){l.split(" ").forEach(e=>{e.trim()&&(o[e.trim()]=true);});}const m=classMap(o),g=unsafeStatic(`h${s}`);return html`<${g} class="${m}" style="color: ${ifDefined(this.color?this.color:void 0)}"><slot></slot></${g}>`}render(){return this.template(this.level)}}
|
|
@@ -6351,13 +6333,8 @@ var colorCss = css`:host ::slotted(*:not(:first-child)){border-color:var(--ds-au
|
|
|
6351
6333
|
|
|
6352
6334
|
|
|
6353
6335
|
/**
|
|
6354
|
-
*
|
|
6355
|
-
*
|
|
6356
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6357
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6336
|
+
* Wrapper element for auro-counter elements in an application to provide layout structure for multiple counters.
|
|
6358
6337
|
*
|
|
6359
|
-
* @element auro-counter-group
|
|
6360
|
-
* @extends LitElement
|
|
6361
6338
|
* @slot Default - Slot for counter elements.
|
|
6362
6339
|
*/
|
|
6363
6340
|
class AuroCounterWrapper extends LitElement {
|
|
@@ -6496,29 +6473,14 @@ class AuroElement extends LitElement {
|
|
|
6496
6473
|
}
|
|
6497
6474
|
}
|
|
6498
6475
|
|
|
6499
|
-
/*
|
|
6500
|
-
eslint-disable
|
|
6501
|
-
lit/no-invalid-html,
|
|
6502
|
-
lit/binding-positions,
|
|
6503
|
-
max-lines,
|
|
6504
|
-
no-underscore-dangle,
|
|
6505
|
-
arrow-parens,
|
|
6506
|
-
no-confusing-arrow,
|
|
6507
|
-
curly,
|
|
6508
|
-
dot-location,
|
|
6509
|
-
no-inline-comments,
|
|
6510
|
-
line-comment-position,
|
|
6476
|
+
/* eslint-disable lit/no-invalid-html, lit/binding-positions, max-lines, no-underscore-dangle, arrow-parens, no-confusing-arrow, curly, dot-location, no-inline-comments, line-comment-position,
|
|
6511
6477
|
*/
|
|
6512
6478
|
|
|
6513
6479
|
|
|
6514
6480
|
/**
|
|
6515
|
-
*
|
|
6516
|
-
*
|
|
6517
|
-
* This web component provides a flexible interface for grouping multiple counters, supporting
|
|
6518
|
-
* validation, custom validity messages, and disabled states based on the group's value.
|
|
6481
|
+
* The `auro-counter-group` element provides a flexible interface for grouping multiple counters, supporting validation, custom validity messages, and disabled states based on the group's value.
|
|
6482
|
+
* @customElement auro-counter-group
|
|
6519
6483
|
*
|
|
6520
|
-
* @element auro-counter-group
|
|
6521
|
-
* @extends LitElement
|
|
6522
6484
|
* @slot default - Slot for counter elements.
|
|
6523
6485
|
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
6524
6486
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
@@ -6526,7 +6488,6 @@ class AuroElement extends LitElement {
|
|
|
6526
6488
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
6527
6489
|
* @slot valueText - Dropdown value text display. Only used when `isDropdown` is true.
|
|
6528
6490
|
* @slot helpText - Dropdown help text content. Only used when `isDropdown` is true.
|
|
6529
|
-
* @property {'classic'|'snowflake'} layout - Determines the layout style of the counter group when it is a dropdown. Options are 'classic' or 'snowflake'. Default is 'classic'.
|
|
6530
6491
|
*/
|
|
6531
6492
|
class AuroCounterGroup extends AuroElement {
|
|
6532
6493
|
constructor() {
|
|
@@ -6624,7 +6585,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6624
6585
|
|
|
6625
6586
|
/**
|
|
6626
6587
|
* Defines whether the component will be on lighter or darker backgrounds.
|
|
6627
|
-
* @
|
|
6588
|
+
* @type {'default' | 'inverse'}
|
|
6628
6589
|
* @default 'default'
|
|
6629
6590
|
*/
|
|
6630
6591
|
appearance: {
|
|
@@ -6661,12 +6622,12 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6661
6622
|
},
|
|
6662
6623
|
|
|
6663
6624
|
/**
|
|
6664
|
-
* Defines the screen size breakpoint
|
|
6665
|
-
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6625
|
+
* Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6666
6626
|
*
|
|
6667
6627
|
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6668
6628
|
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6669
|
-
* @
|
|
6629
|
+
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'disabled'}
|
|
6630
|
+
* @default 'sm'
|
|
6670
6631
|
*/
|
|
6671
6632
|
fullscreenBreakpoint: {
|
|
6672
6633
|
type: String,
|
|
@@ -6674,12 +6635,22 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6674
6635
|
},
|
|
6675
6636
|
|
|
6676
6637
|
/**
|
|
6677
|
-
*
|
|
6638
|
+
* If true, the counter group is displayed as a dropdown.
|
|
6678
6639
|
*/
|
|
6679
6640
|
isDropdown: {
|
|
6680
6641
|
type: Boolean
|
|
6681
6642
|
},
|
|
6682
6643
|
|
|
6644
|
+
/**
|
|
6645
|
+
* Determines the layout style of the counter group when it is a dropdown.
|
|
6646
|
+
* @type {'classic' | 'snowflake'}
|
|
6647
|
+
* @default 'classic'
|
|
6648
|
+
*/
|
|
6649
|
+
layout: {
|
|
6650
|
+
type: String,
|
|
6651
|
+
reflect: true
|
|
6652
|
+
},
|
|
6653
|
+
|
|
6683
6654
|
/**
|
|
6684
6655
|
* If declared, the dropdown will expand to the width of its parent container.
|
|
6685
6656
|
* Otherwise, the dropdown width will be determined by its content.
|
|
@@ -6717,7 +6688,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6717
6688
|
/**
|
|
6718
6689
|
* If declared, the bib will NOT flip to an alternate position
|
|
6719
6690
|
* when there isn't enough space in the specified `placement`.
|
|
6720
|
-
* @default false
|
|
6721
6691
|
*/
|
|
6722
6692
|
noFlip: {
|
|
6723
6693
|
type: Boolean,
|
|
@@ -6726,7 +6696,6 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6726
6696
|
|
|
6727
6697
|
/**
|
|
6728
6698
|
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
6729
|
-
* @default false
|
|
6730
6699
|
*/
|
|
6731
6700
|
shift: {
|
|
6732
6701
|
type: Boolean,
|
|
@@ -6752,12 +6721,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6752
6721
|
|
|
6753
6722
|
/**
|
|
6754
6723
|
* Position where the bib should appear relative to the trigger.
|
|
6755
|
-
*
|
|
6756
|
-
*
|
|
6757
|
-
* "bottom-start" | "top-start" | "top-end" |
|
|
6758
|
-
* "right-start" | "right-end" | "bottom-end" |
|
|
6759
|
-
* "left-start" | "left-end".
|
|
6760
|
-
* @default bottom-start
|
|
6724
|
+
* @type {'top' | 'right' | 'bottom' | 'left' | 'bottom-start' | 'top-start' | 'top-end' | 'right-start' | 'right-end' | 'bottom-end' | 'left-start' | 'left-end'}
|
|
6725
|
+
* @default 'bottom-start'
|
|
6761
6726
|
*/
|
|
6762
6727
|
placement: {
|
|
6763
6728
|
type: String,
|
|
@@ -6768,7 +6733,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
6768
6733
|
* The total value of the counters.
|
|
6769
6734
|
*/
|
|
6770
6735
|
total: {
|
|
6771
|
-
type: Number
|
|
6736
|
+
type: Number
|
|
6772
6737
|
},
|
|
6773
6738
|
|
|
6774
6739
|
/**
|
|
@@ -7100,7 +7065,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
7100
7065
|
|
|
7101
7066
|
/**
|
|
7102
7067
|
* Registers the custom element with the browser.
|
|
7103
|
-
* @param {string} [name="auro-counter-group"] -
|
|
7068
|
+
* @param {string} [name="auro-counter-group"] - The name of the element that you want to register.
|
|
7104
7069
|
* @example
|
|
7105
7070
|
* AuroCounterGroup.register("custom-counter-group") // registers <custom-counter-group/>
|
|
7106
7071
|
*/
|