@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.3 → 0.0.0-pr624.31
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/auro-bibtemplate.d.ts +13 -2
- package/components/bibtemplate/dist/buttonVersion.d.ts +2 -0
- package/components/bibtemplate/dist/iconVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1292 -79
- package/components/bibtemplate/dist/registered.js +1292 -79
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +47 -14
- package/components/checkbox/demo/api.min.js +35 -29
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +35 -29
- 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 +3 -3
- package/components/checkbox/dist/index.js +35 -29
- package/components/checkbox/dist/registered.js +35 -29
- package/components/combobox/demo/api.md +101 -2
- package/components/combobox/demo/api.min.js +2935 -794
- package/components/combobox/demo/index.md +6 -30
- package/components/combobox/demo/index.min.js +2935 -794
- package/components/combobox/dist/auro-combobox.d.ts +45 -16
- package/components/combobox/dist/index.js +2832 -832
- package/components/combobox/dist/registered.js +2832 -832
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +3648 -929
- package/components/counter/demo/index.md +99 -34
- package/components/counter/demo/index.min.js +3648 -929
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +105 -6
- package/components/counter/dist/auro-counter.d.ts +6 -0
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +3648 -929
- package/components/counter/dist/registered.js +3648 -929
- package/components/datepicker/demo/api.md +36 -19
- package/components/datepicker/demo/api.min.js +14662 -10980
- package/components/datepicker/demo/index.md +80 -0
- package/components/datepicker/demo/index.min.js +14662 -10980
- package/components/datepicker/dist/auro-datepicker.d.ts +71 -3
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +11706 -8024
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +11706 -8024
- package/components/dropdown/demo/api.md +6 -7
- package/components/dropdown/demo/api.min.js +238 -144
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +238 -144
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -9
- package/components/dropdown/dist/auro-dropdownBib.d.ts +22 -0
- package/components/dropdown/dist/index.js +238 -144
- package/components/dropdown/dist/registered.js +238 -144
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/helptext/dist/index.js +2 -2
- package/components/helptext/dist/registered.js +2 -2
- package/components/input/README.md +1 -1
- package/components/input/demo/api.md +133 -97
- package/components/input/demo/api.min.js +972 -269
- package/components/input/demo/index.md +14 -14
- package/components/input/demo/index.min.js +971 -268
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/auro-input.d.ts +197 -15
- package/components/input/dist/base-input.d.ts +32 -8
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +971 -268
- package/components/input/dist/registered.js +971 -268
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +68 -7
- package/components/menu/demo/api.min.js +278 -42
- package/components/menu/demo/index.min.js +278 -42
- package/components/menu/dist/auro-menu.d.ts +28 -5
- package/components/menu/dist/auro-menuoption.d.ts +15 -3
- package/components/menu/dist/iconVersion.d.ts +1 -1
- package/components/menu/dist/index.js +278 -42
- package/components/menu/dist/registered.js +278 -42
- package/components/menu/dist/styles/default/color-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menu-css.d.ts +2 -0
- package/components/menu/dist/styles/default/style-menuoption-css.d.ts +2 -0
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.md +7 -7
- package/components/radio/demo/api.min.js +16 -13
- package/components/radio/demo/index.min.js +16 -13
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +16 -13
- package/components/radio/dist/registered.js +16 -13
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +124 -13
- package/components/select/demo/api.min.js +2802 -538
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +325 -763
- package/components/select/demo/index.min.js +2795 -543
- package/components/select/dist/auro-select.d.ts +112 -11
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +2538 -427
- package/components/select/dist/registered.js +2538 -427
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +6 -4
- /package/components/{dropdown/dist/styles/default/bibColors-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown → datepicker}/dist/styles/default/color-css.d.ts +0 -0
- /package/components/{dropdown/dist/styles/default/bibStyles-css.d.ts → datepicker/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles/default/style-css.d.ts → datepicker/dist/styles/snowflake/color-css.d.ts} +0 -0
- /package/components/{dropdown/dist/styles → datepicker/dist/styles/snowflake}/style-css.d.ts +0 -0
- /package/components/{menu/dist/styles/color-menu-css.d.ts → dropdown/dist/styles/classic/bibColors-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/color-menuoption-css.d.ts → dropdown/dist/styles/classic/bibStyles-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menu-css.d.ts → dropdown/dist/styles/classic/color-css.d.ts} +0 -0
- /package/components/{menu/dist/styles/style-menuoption-css.d.ts → dropdown/dist/styles/classic/style-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/color-menu-css.d.ts} +0 -0
|
@@ -116,25 +116,25 @@ const t$2=globalThis,i$3=t$2.trustedTypes,s$3=i$3?i$3.createPolicy("lit-html",{c
|
|
|
116
116
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
117
117
|
*/const s$2=globalThis;let i$2 = class i extends y$1{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}};i$2._$litElement$=true,i$2["finalized"]=true,s$2.litElementHydrateSupport?.({LitElement:i$2});const o$2=s$2.litElementPolyfillSupport;o$2?.({LitElement:i$2});(s$2.litElementVersions??=[]).push("4.2.0");
|
|
118
118
|
|
|
119
|
-
var shapeSizeCss = i$5`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.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:
|
|
119
|
+
var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.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;box-shadow:none}.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-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.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;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.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;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;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;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;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;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
120
120
|
|
|
121
|
-
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}`;
|
|
121
|
+
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}.wrapper{cursor:text}.helpTextClasses{cursor:default}input{overflow:clip !important;width:100%;padding:0;border:0;background:unset;outline:none;overflow-clip-margin:0 !important;text-overflow:ellipsis}.displayValue{display:none}.displayValue.hasContent:is(.withValue):not(.hasFocus){display:flex;align-items:center}.accents:not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center}`;
|
|
122
122
|
|
|
123
|
-
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}
|
|
123
|
+
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}: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}`;
|
|
124
124
|
|
|
125
|
-
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-
|
|
125
|
+
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{caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-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-basic-color-status-error-subtle, #fbc6c6)}:host(:not([ondark])[disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-disabled, #acc9e2);--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-input-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-input-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
126
126
|
|
|
127
|
-
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);--ds-auro-input-outline-color: transparent}: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-
|
|
127
|
+
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);--ds-auro-input-outline-color: transparent}: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-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: transparent}`;
|
|
128
128
|
|
|
129
|
-
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex-direction:column;justify-content:center;
|
|
129
|
+
var classicStyleCss = i$5`.layout-classic{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-input-outline-color)}.layout-classic .mainContent{position:relative;display:flex;flex:1;flex-direction:column;justify-content:center;cursor:text}.layout-classic .mainContent label{padding-top:4px;cursor:text;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{height:auto;font-size:var(--ds-basic-text-body-default-font-size, 16px);line-height:var(--ds-basic-text-body-default-line-height, 24px);transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) label{padding-top:0;font-size:var(--ds-text-body-size-default, 1rem);justify-self:flex-start;line-height:var(--ds-text-body-size-default)}.layout-classic .mainContent:has(input.util_displayHiddenVisually) input{height:0;padding-bottom:0;line-height:0}.layout-classic .accents.left{padding-left:8px}.layout-classic .accents.right{padding-right:8px}.layout-classic .accents>*{margin-right:8px}.layout-classic.withValue{justify-content:flex-start}.layout-classic:focus-within{justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}`;
|
|
130
130
|
|
|
131
|
-
var classicColorCss = i$5`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-
|
|
131
|
+
var classicColorCss = i$5`.layout-classic label{color:var(--ds-auro-input-label-text-color)}.layout-classic:focus-within{--ds-auro-input-outline-color: var(--ds-auro-input-border-color)}:host(:not([ondark])) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-brand, #00274a);--ds-auro-input-outline-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-input-outline-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic]:not([ondark]):is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-input-outline-color: var(--ds-basic-color-status-error, #e31f26)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))){--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-input-outline-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
132
132
|
|
|
133
|
-
var emphasizedStyleCss = i$5`:host
|
|
133
|
+
var emphasizedStyleCss = i$5`: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.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}`;
|
|
134
134
|
|
|
135
135
|
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)}`;
|
|
136
136
|
|
|
137
|
-
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}`;
|
|
137
|
+
var snowflakeStyleCss = i$5`:root{--ds-advanced-color-button-flat-text: #676767;--ds-advanced-color-button-flat-text-disabled: #d0d0d0;--ds-advanced-color-button-flat-text-hover: #525252;--ds-advanced-color-button-flat-text-inverse: #ffffff;--ds-advanced-color-button-flat-text-inverse-disabled: #7e8894;--ds-advanced-color-button-flat-text-inverse-hover: #adadad;--ds-advanced-color-button-ghost-background-hover: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-ghost-background-inverse-hover: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-ghost-text: #01426a;--ds-advanced-color-button-ghost-text-disabled: #d0d0d0;--ds-advanced-color-button-ghost-text-inverse: #ffffff;--ds-advanced-color-button-ghost-text-inverse-disabled: #7e8894;--ds-advanced-color-button-primary-background: #01426a;--ds-advanced-color-button-primary-background-disabled: #acc9e2;--ds-advanced-color-button-primary-background-hover: #00274a;--ds-advanced-color-button-primary-background-inactive: #cfe0ef;--ds-advanced-color-button-primary-background-inactive-hover: #89b2d4;--ds-advanced-color-button-primary-background-inverse: #ffffff;--ds-advanced-color-button-primary-background-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-background-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-border: #01426a;--ds-advanced-color-button-primary-border-disabled: #acc9e2;--ds-advanced-color-button-primary-border-hover: #00274a;--ds-advanced-color-button-primary-border-inverse: #ffffff;--ds-advanced-color-button-primary-border-inverse-disabled: rgba(255, 255, 255, 0.75);--ds-advanced-color-button-primary-border-inverse-hover: #ebf3f9;--ds-advanced-color-button-primary-text: #ffffff;--ds-advanced-color-button-primary-text-disabled: #ffffff;--ds-advanced-color-button-primary-text-inverse: #01426a;--ds-advanced-color-button-secondary-background: #ffffff;--ds-advanced-color-button-secondary-background-disabled: #f7f7f7;--ds-advanced-color-button-secondary-background-hover: #f2f2f2;--ds-advanced-color-button-secondary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-secondary-border: #01426a;--ds-advanced-color-button-secondary-border-hover: #00274a;--ds-advanced-color-button-secondary-border-disabled: #cfe0ef;--ds-advanced-color-button-secondary-border-inverse: #ffffff;--ds-advanced-color-button-secondary-border-inverse-disabled: #dddddd;--ds-advanced-color-button-secondary-text: #01426a;--ds-advanced-color-button-secondary-text-hover: #00274a;--ds-advanced-color-button-secondary-text-inverse: #ffffff;--ds-advanced-color-button-tertiary-background: rgba(0, 0, 0, 0.05);--ds-advanced-color-button-tertiary-background-hover: rgba(0, 0, 0, 0.1);--ds-advanced-color-button-tertiary-background-inverse: rgba(255, 255, 255, 0.05);--ds-advanced-color-button-tertiary-background-inverse-hover: rgba(255, 255, 255, 0.1);--ds-advanced-color-button-tertiary-text: #01426a;--ds-advanced-color-button-tertiary-text-hover: #00274a;--ds-advanced-color-button-tertiary-text-inverse: #ffffff;--ds-advanced-color-accents-accent1: #b2d583;--ds-advanced-color-accents-accent1-bold: #92c450;--ds-advanced-color-accents-accent1-muted: #deedca;--ds-advanced-color-accents-accent2: #fad362;--ds-advanced-color-accents-accent2-bold: #f2ba14;--ds-advanced-color-accents-accent2-muted: #fde398;--ds-advanced-color-accents-accent3: #63beff;--ds-advanced-color-accents-accent3-bold: #0074ca;--ds-advanced-color-accents-accent3-muted: #aedeff;--ds-advanced-color-accents-accent4: #feb17a;--ds-advanced-color-accents-accent4-bold: #fb7f24;--ds-advanced-color-accents-accent4-muted: #ffe2cf;--ds-advanced-color-accents-transparency: rgba(0, 0, 0, 0.1);--ds-advanced-color-accents-transparency-inverse: rgba(255, 255, 255, 0.2);--ds-advanced-color-avatar-gradient-bottom: #cfe0ef;--ds-advanced-color-avatar-gradient-top: #6899c6;--ds-advanced-color-boolean-disabled-inverse: #7e8894;--ds-advanced-color-boolean-error: #e31f26;--ds-advanced-color-boolean-error-hover: #b1161c;--ds-advanced-color-boolean-error-inverse: #f9a4a8;--ds-advanced-color-boolean-error-inverse-hover: #f15f65;--ds-advanced-color-boolean-indicator: #ffffff;--ds-advanced-color-boolean-indicator-inverse: #00274a;--ds-advanced-color-boolean-isfalse: #ffffff;--ds-advanced-color-boolean-isfalse-border: #585e67;--ds-advanced-color-boolean-isfalse-border-inverse: #ffffff;--ds-advanced-color-boolean-isfalse-hover: #f2f2f2;--ds-advanced-color-boolean-isfalse-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-boolean-isfalse-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-boolean-istrue: #01426a;--ds-advanced-color-boolean-istrue-hover: #00274a;--ds-advanced-color-boolean-istrue-inverse: #ffffff;--ds-advanced-color-boolean-istrue-inverse-hover: rgba(255, 255, 255, 0.7);--ds-advanced-color-flightline-indicator: #00274a;--ds-advanced-color-flightline-line: #00274a;--ds-advanced-color-hyperlink-text: #2875b5;--ds-advanced-color-hyperlink-text-hover: #01426a;--ds-advanced-color-hyperlink-text-inverse: #ffffff;--ds-advanced-color-hyperlink-text-inverse-hover: #ebf3f9;--ds-advanced-color-shared-background: #ffffff;--ds-advanced-color-shared-background-inverse: rgba(255, 255, 255, 0.15);--ds-advanced-color-shared-background-inverse-disabled: rgba(255, 255, 255, 0.1);--ds-advanced-color-shared-background-inverse-hover: rgba(255, 255, 255, 0.2);--ds-advanced-color-shared-background-muted: #f7f7f7;--ds-advanced-color-shared-background-strong: #7e7e7e;--ds-advanced-color-shared-scrim: rgba(0, 0, 0, 0.5);--ds-advanced-color-shared-text-accent: #2875b5;--ds-advanced-color-skeleton-background: #f7f8fa;--ds-advanced-color-skeleton-wave: #e4e8ec;--ds-advanced-color-state-background-disabled: #dddddd;--ds-advanced-color-state-background-hover: #f2f2f2;--ds-advanced-color-state-background-inverse-disabled: #7e8894;--ds-advanced-color-state-error-inverse: #f9a4a8;--ds-advanced-color-state-focused: #01426a;--ds-advanced-color-state-focused-inverse: #ffffff;--ds-advanced-color-state-selected: #01426a;--ds-advanced-color-state-selected-hover: #00274a;--ds-basic-color-border-bold: #585e67;--ds-basic-color-border-brand: #00274a;--ds-basic-color-border-default: #959595;--ds-basic-color-border-divider: rgba(0, 0, 0, 0.15);--ds-basic-color-border-divider-inverse: rgba(255, 255, 255, 0.4);--ds-basic-color-border-inverse: #ffffff;--ds-basic-color-border-subtle: #dddddd;--ds-basic-color-brand-primary: #01426a;--ds-basic-color-brand-primary-bold: #00274a;--ds-basic-color-brand-primary-muted: #ebf3f9;--ds-basic-color-brand-primary-subtle: #2875b5;--ds-basic-color-brand-secondary: #5de3f7;--ds-basic-color-brand-secondary-bold: #18c3dd;--ds-basic-color-brand-secondary-muted: #ebfafd;--ds-basic-color-brand-secondary-subtle: #b4eff9;--ds-basic-color-brand-tertiary: #a3cd6a;--ds-basic-color-brand-tertiary-bold: #7daf3b;--ds-basic-color-brand-tertiary-muted: #eaf3dd;--ds-basic-color-brand-tertiary-subtle: #c9e1a7;--ds-basic-color-fare-basiceconomy: #97eaf8;--ds-basic-color-fare-business: #01426a;--ds-basic-color-fare-economy: #0074ca;--ds-basic-color-fare-first: #00274a;--ds-basic-color-fare-premiumeconomy: #005154;--ds-basic-color-page-background-default: #ebfafd;--ds-basic-color-page-background-utility: #ffffff;--ds-basic-color-status-default: #afb9c6;--ds-basic-color-status-error: #e31f26;--ds-basic-color-status-error-subtle: #fbc6c6;--ds-basic-color-status-info: #01426a;--ds-basic-color-status-info-subtle: #ebf3f9;--ds-basic-color-status-success: #447a1f;--ds-basic-color-status-success-subtle: #d6eac7;--ds-basic-color-status-warning: #fac200;--ds-basic-color-status-warning-subtle: #fff0b2;--ds-basic-color-surface-accent1: #5de3f7;--ds-basic-color-surface-accent1-muted: #ebfafd;--ds-basic-color-surface-accent1-subtle: #b4eff9;--ds-basic-color-surface-accent2: #a3cd6a;--ds-basic-color-surface-accent2-muted: #eaf3dd;--ds-basic-color-surface-default: #ffffff;--ds-basic-color-surface-inverse: #00274a;--ds-basic-color-surface-inverse-subtle: #2875b5;--ds-basic-color-surface-neutral-medium: #c5c5c5;--ds-basic-color-surface-neutral-subtle: #f7f7f7;--ds-basic-color-texticon-accent1: #265688;--ds-basic-color-texticon-default: #2a2a2a;--ds-basic-color-texticon-disabled: #d0d0d0;--ds-basic-color-texticon-inverse: #ffffff;--ds-basic-color-texticon-inverse-disabled: #7e8894;--ds-basic-color-texticon-inverse-muted: #ccd2db;--ds-basic-color-texticon-muted: #676767;--ds-basic-color-tier-program-loungetier-lounge: #01426a;--ds-basic-color-tier-program-loungetier-loungeplus: #53b390;--ds-basic-color-tier-program-loyaltytier-bronze: #d99f6d;--ds-basic-color-tier-program-loyaltytier-bronze-muted: #eed4be;--ds-basic-color-tier-program-loyaltytier-cobalt: #030772;--ds-basic-color-tier-program-loyaltytier-cobalt-muted: #a9b6d6;--ds-basic-color-tier-program-loyaltytier-copper: #cb7457;--ds-basic-color-tier-program-loyaltytier-copper-muted: #e7bfb1;--ds-basic-color-tier-program-loyaltytier-gold: #fbdc7a;--ds-basic-color-tier-program-loyaltytier-gold-muted: #fdefc4;--ds-basic-color-tier-program-loyaltytier-nickel: #abaab1;--ds-basic-color-tier-program-loyaltytier-nickel-muted: #e5e4e7;--ds-basic-color-tier-program-loyaltytier-platinum: #bcb8a4;--ds-basic-color-tier-program-loyaltytier-platinum-muted: #dad8cd;--ds-basic-color-tier-program-loyaltytier-silver: #e4e9ec;--ds-basic-color-tier-program-loyaltytier-silver-muted: #f9fafb;--ds-basic-color-tier-program-loyaltytier-titanium: #282828;--ds-basic-color-tier-program-loyaltytier-titanium-muted: #545454;--ds-basic-color-tier-program-oneworld-emerald: #139142;--ds-basic-color-tier-program-oneworld-ruby: #a41d4a;--ds-basic-color-tier-program-oneworld-sapphire: #015daa;--ds-basic-type-brand-family-primary: "AS Circular";--ds-basic-type-brand-family-secondary: "Good OT";--ds-basic-type-brand-line-height-primary: "1.3";--ds-basic-type-brand-line-height-secondary: "1";--ds-basic-type-brand-letter-spacing-primary: "0";--ds-basic-type-brand-letter-spacing-secondary: "0.05em";--ds-basic-type-brand-letter-spacing-tertiary: "0.10em";--ds-basic-type-family-accent: "Good OT", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-body: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-display: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-family-heading: "AS Circular", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--ds-basic-type-letter-spacing-accent: "0.05em";--ds-basic-type-letter-spacing-accent2: "0.10em";--ds-basic-type-letter-spacing-body: "0";--ds-basic-type-letter-spacing-display: "0";--ds-basic-type-letter-spacing-heading: "0";--ds-basic-type-line-height-accent: "1.3";--ds-basic-type-line-height-accent2: "1";--ds-basic-type-line-height-body: "1.63";--ds-basic-type-line-height-body2: "1.5";--ds-basic-type-line-height-body3: "1.25";--ds-basic-type-line-height-body4: "1";--ds-basic-type-line-height-body5: "0.88";--ds-basic-type-line-height-display: "1.3";--ds-basic-type-line-height-heading: "1.3";--ds-basic-type-weight-accent: "450";--ds-basic-type-weight-accent2: "500";--ds-basic-type-weight-body: "450";--ds-basic-type-weight-display: "300";--ds-basic-type-weight-heading: "300";--ds-basic-type-weight-heading2: "450"}:host([layout*=snowflake]) .leftIndent{margin-left: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.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}:host([layout*=snowflake]) .helpTextWrapper{text-align:center}`;
|
|
138
138
|
|
|
139
139
|
/**
|
|
140
140
|
* @license
|
|
@@ -236,6 +236,8 @@ const stringsES = {
|
|
|
236
236
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
237
237
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
238
238
|
'clearInput': 'Borrar campo de entrada',
|
|
239
|
+
'showPassword': 'Mostrar contraseña',
|
|
240
|
+
'hidePassword': 'Ocultar contraseña'
|
|
239
241
|
};
|
|
240
242
|
|
|
241
243
|
const stringsEN = {
|
|
@@ -260,6 +262,8 @@ const stringsEN = {
|
|
|
260
262
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
261
263
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
262
264
|
'clearInput': 'Clear input field',
|
|
265
|
+
'showPassword': 'Show password',
|
|
266
|
+
'hidePassword': 'Hide password'
|
|
263
267
|
};
|
|
264
268
|
|
|
265
269
|
/**
|
|
@@ -4194,9 +4198,10 @@ class DateFormatter {
|
|
|
4194
4198
|
/**
|
|
4195
4199
|
* Convert a date object to string format.
|
|
4196
4200
|
* @param {Object} date - Date to convert to string.
|
|
4197
|
-
* @
|
|
4201
|
+
* @param {String} locale - Optional locale to use for the date string. Defaults to user's locale.
|
|
4202
|
+
* @returns {String} Returns the date as a string.
|
|
4198
4203
|
*/
|
|
4199
|
-
this.getDateAsString = (date) => date.toLocaleDateString(
|
|
4204
|
+
this.getDateAsString = (date, locale = undefined) => date.toLocaleDateString(locale, {
|
|
4200
4205
|
year: "numeric",
|
|
4201
4206
|
month: "2-digit",
|
|
4202
4207
|
day: "2-digit",
|
|
@@ -4388,7 +4393,7 @@ class AuroDateUtilities extends AuroDateUtilitiesBase {
|
|
|
4388
4393
|
const dateObj = new Date(this.getFourDigitYear(dateParts.year), dateParts.month - 1, dateParts.day || 1);
|
|
4389
4394
|
|
|
4390
4395
|
// Get the date string of the date object we created from the string date
|
|
4391
|
-
const actualDateStr = dateFormatter.getDateAsString(dateObj);
|
|
4396
|
+
const actualDateStr = dateFormatter.getDateAsString(dateObj, "en-US");
|
|
4392
4397
|
|
|
4393
4398
|
// Guard Clause: Generated date matches date string input
|
|
4394
4399
|
if (expectedDateStr !== actualDateStr) {
|
|
@@ -4553,7 +4558,7 @@ const {
|
|
|
4553
4558
|
|
|
4554
4559
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4555
4560
|
|
|
4556
|
-
let AuroLibraryRuntimeUtils$
|
|
4561
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4557
4562
|
|
|
4558
4563
|
/* eslint-disable jsdoc/require-param */
|
|
4559
4564
|
|
|
@@ -4623,7 +4628,7 @@ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
|
4623
4628
|
class AuroFormValidation {
|
|
4624
4629
|
|
|
4625
4630
|
constructor() {
|
|
4626
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4631
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4627
4632
|
}
|
|
4628
4633
|
|
|
4629
4634
|
/**
|
|
@@ -4902,7 +4907,9 @@ class AuroFormValidation {
|
|
|
4902
4907
|
elem.validity = this.auroInputElements[0].validity;
|
|
4903
4908
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4904
4909
|
|
|
4905
|
-
|
|
4910
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4911
|
+
// combobox's 2nd input will have noValidate set true.
|
|
4912
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
4906
4913
|
elem.validity = this.auroInputElements[1].validity;
|
|
4907
4914
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4908
4915
|
}
|
|
@@ -4982,7 +4989,7 @@ class AuroFormValidation {
|
|
|
4982
4989
|
}
|
|
4983
4990
|
}
|
|
4984
4991
|
|
|
4985
|
-
let AuroElement$
|
|
4992
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
4986
4993
|
static get properties() {
|
|
4987
4994
|
return {
|
|
4988
4995
|
|
|
@@ -5017,18 +5024,21 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5017
5024
|
}
|
|
5018
5025
|
|
|
5019
5026
|
resetShapeClasses() {
|
|
5020
|
-
|
|
5021
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5027
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5022
5028
|
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
+
if (wrapper) {
|
|
5030
|
+
wrapper.classList.forEach((className) => {
|
|
5031
|
+
if (className.startsWith('shape-')) {
|
|
5032
|
+
wrapper.classList.remove(className);
|
|
5033
|
+
}
|
|
5034
|
+
});
|
|
5029
5035
|
|
|
5030
|
-
|
|
5031
|
-
|
|
5036
|
+
}
|
|
5037
|
+
|
|
5038
|
+
if (this.shape && this.size) {
|
|
5039
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
5040
|
+
} else {
|
|
5041
|
+
wrapper.classList.add('shape-none');
|
|
5032
5042
|
}
|
|
5033
5043
|
}
|
|
5034
5044
|
|
|
@@ -5084,19 +5094,24 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5084
5094
|
* @prop {string} id - The id global attribute defines an identifier (ID) which must be unique in the whole document.
|
|
5085
5095
|
* @attr id
|
|
5086
5096
|
*
|
|
5087
|
-
* @slot
|
|
5097
|
+
* @slot helpText - Sets the help text displayed below the input.
|
|
5088
5098
|
* @slot label - Sets the label text for the input.
|
|
5099
|
+
* @slot {HTMLSlotElement} optionalLabel - Allows overriding the optional display text "(optional)", which appears next to the label.
|
|
5100
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
5089
5101
|
*
|
|
5090
5102
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
5091
5103
|
* @csspart label - Use for customizing the style of the label element
|
|
5092
5104
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
5105
|
+
* @csspart input - Use for customizing the style of the input element
|
|
5093
5106
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
5094
5107
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
5108
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
5109
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
5095
5110
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
5096
5111
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
5097
5112
|
*/
|
|
5098
5113
|
|
|
5099
|
-
class BaseInput extends AuroElement$
|
|
5114
|
+
class BaseInput extends AuroElement$2 {
|
|
5100
5115
|
|
|
5101
5116
|
constructor() {
|
|
5102
5117
|
super();
|
|
@@ -5189,7 +5204,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5189
5204
|
*/
|
|
5190
5205
|
a11yRole: {
|
|
5191
5206
|
type: String,
|
|
5192
|
-
attribute: true,
|
|
5193
5207
|
reflect: true
|
|
5194
5208
|
},
|
|
5195
5209
|
|
|
@@ -5198,7 +5212,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5198
5212
|
*/
|
|
5199
5213
|
a11yExpanded: {
|
|
5200
5214
|
type: Boolean,
|
|
5201
|
-
attribute: true,
|
|
5202
5215
|
reflect: true
|
|
5203
5216
|
},
|
|
5204
5217
|
|
|
@@ -5207,7 +5220,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5207
5220
|
*/
|
|
5208
5221
|
a11yControls: {
|
|
5209
5222
|
type: String,
|
|
5210
|
-
attribute: true,
|
|
5211
5223
|
reflect: true
|
|
5212
5224
|
},
|
|
5213
5225
|
|
|
@@ -5223,7 +5235,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5223
5235
|
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters].
|
|
5224
5236
|
*/
|
|
5225
5237
|
autocapitalize: {
|
|
5226
|
-
type: String
|
|
5238
|
+
type: String,
|
|
5239
|
+
reflect: true
|
|
5227
5240
|
},
|
|
5228
5241
|
|
|
5229
5242
|
/**
|
|
@@ -5238,7 +5251,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5238
5251
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5239
5252
|
*/
|
|
5240
5253
|
autocorrect: {
|
|
5241
|
-
type: String
|
|
5254
|
+
type: String,
|
|
5255
|
+
reflect: true
|
|
5242
5256
|
},
|
|
5243
5257
|
|
|
5244
5258
|
/**
|
|
@@ -5283,7 +5297,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5283
5297
|
/** Exposes inputmode attribute for input. */
|
|
5284
5298
|
inputmode: {
|
|
5285
5299
|
type: String,
|
|
5286
|
-
attribute: true,
|
|
5287
5300
|
reflect: true
|
|
5288
5301
|
},
|
|
5289
5302
|
|
|
@@ -5291,7 +5304,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5291
5304
|
* Defines the language of an element.
|
|
5292
5305
|
*/
|
|
5293
5306
|
lang: {
|
|
5294
|
-
type: String
|
|
5307
|
+
type: String,
|
|
5308
|
+
reflect: true
|
|
5295
5309
|
},
|
|
5296
5310
|
|
|
5297
5311
|
/**
|
|
@@ -5305,7 +5319,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5305
5319
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5306
5320
|
*/
|
|
5307
5321
|
maxLength: {
|
|
5308
|
-
type: Number
|
|
5322
|
+
type: Number,
|
|
5323
|
+
reflect: true
|
|
5309
5324
|
},
|
|
5310
5325
|
|
|
5311
5326
|
/**
|
|
@@ -5319,14 +5334,25 @@ class BaseInput extends AuroElement$1 {
|
|
|
5319
5334
|
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
5320
5335
|
*/
|
|
5321
5336
|
minLength: {
|
|
5322
|
-
type: Number
|
|
5337
|
+
type: Number,
|
|
5338
|
+
reflect: true
|
|
5323
5339
|
},
|
|
5324
5340
|
|
|
5325
5341
|
/**
|
|
5326
5342
|
* Populates the `name` attribute on the input.
|
|
5327
5343
|
*/
|
|
5328
5344
|
name: {
|
|
5329
|
-
type: String
|
|
5345
|
+
type: String,
|
|
5346
|
+
reflect: true
|
|
5347
|
+
},
|
|
5348
|
+
|
|
5349
|
+
/**
|
|
5350
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5351
|
+
* hides accents.
|
|
5352
|
+
*/
|
|
5353
|
+
nested: {
|
|
5354
|
+
type: Boolean,
|
|
5355
|
+
reflect: true
|
|
5330
5356
|
},
|
|
5331
5357
|
|
|
5332
5358
|
/**
|
|
@@ -5357,7 +5383,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5357
5383
|
* Define custom placeholder text, only supported by date input formats.
|
|
5358
5384
|
*/
|
|
5359
5385
|
placeholder: {
|
|
5360
|
-
type: String
|
|
5386
|
+
type: String,
|
|
5387
|
+
reflect: true
|
|
5361
5388
|
},
|
|
5362
5389
|
|
|
5363
5390
|
/**
|
|
@@ -5446,6 +5473,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
5446
5473
|
type: String
|
|
5447
5474
|
},
|
|
5448
5475
|
|
|
5476
|
+
/**
|
|
5477
|
+
* Simple makes the input render without a border.
|
|
5478
|
+
*/
|
|
5479
|
+
simple: {
|
|
5480
|
+
type: Boolean,
|
|
5481
|
+
reflect: true
|
|
5482
|
+
},
|
|
5483
|
+
|
|
5449
5484
|
/**
|
|
5450
5485
|
* Custom help text message for email type validity.
|
|
5451
5486
|
*/
|
|
@@ -5457,7 +5492,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5457
5492
|
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
5458
5493
|
*/
|
|
5459
5494
|
spellcheck: {
|
|
5460
|
-
type: String
|
|
5495
|
+
type: String,
|
|
5496
|
+
reflect: true
|
|
5461
5497
|
},
|
|
5462
5498
|
|
|
5463
5499
|
/**
|
|
@@ -5472,7 +5508,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5472
5508
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5473
5509
|
*/
|
|
5474
5510
|
value: {
|
|
5475
|
-
type: String
|
|
5511
|
+
type: String,
|
|
5512
|
+
reflect: true
|
|
5476
5513
|
},
|
|
5477
5514
|
|
|
5478
5515
|
/**
|
|
@@ -5503,8 +5540,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5503
5540
|
},
|
|
5504
5541
|
|
|
5505
5542
|
/**
|
|
5543
|
+
* The id for input node.
|
|
5506
5544
|
* @private
|
|
5507
|
-
* id for input node
|
|
5508
5545
|
*/
|
|
5509
5546
|
inputId: {
|
|
5510
5547
|
type: String,
|
|
@@ -5528,7 +5565,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
5528
5565
|
}
|
|
5529
5566
|
|
|
5530
5567
|
firstUpdated() {
|
|
5531
|
-
// clicking anywhere in the main wrapper will focus the input. Clicking the
|
|
5568
|
+
// clicking anywhere in the main wrapper will focus the input. Clicking the helpText or label will not focus the input.
|
|
5532
5569
|
this.wrapperElement = this.shadowRoot.querySelector('.wrapper');
|
|
5533
5570
|
this.inputElement = this.renderRoot.querySelector('input');
|
|
5534
5571
|
this.labelElement = this.shadowRoot.querySelector('label');
|
|
@@ -5752,7 +5789,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5752
5789
|
|
|
5753
5790
|
/**
|
|
5754
5791
|
* Function to set element focus.
|
|
5755
|
-
* @private
|
|
5756
5792
|
* @return {void}
|
|
5757
5793
|
*/
|
|
5758
5794
|
focus() {
|
|
@@ -5950,28 +5986,15 @@ class BaseInput extends AuroElement$1 {
|
|
|
5950
5986
|
* @returns {void}
|
|
5951
5987
|
*/
|
|
5952
5988
|
getPlaceholder() {
|
|
5953
|
-
|
|
5954
|
-
|
|
5955
|
-
|
|
5956
|
-
|
|
5957
|
-
// console.warn(this.getActiveElement());
|
|
5958
|
-
|
|
5959
|
-
if (!isFocused) {
|
|
5960
|
-
if (this.placeholder) {
|
|
5961
|
-
this.placeholderStr = this.placeholder;
|
|
5962
|
-
// return this.placeholder;
|
|
5963
|
-
} else if (this.type === 'date') {
|
|
5964
|
-
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5965
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5966
|
-
}
|
|
5967
|
-
} else {
|
|
5968
|
-
this.placeholderStr = '';
|
|
5989
|
+
if (this.placeholder) {
|
|
5990
|
+
this.placeholderStr = this.placeholder;
|
|
5991
|
+
} else if (this.type === 'date') {
|
|
5992
|
+
this.placeholderStr = this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5969
5993
|
}
|
|
5970
5994
|
|
|
5971
5995
|
this.requestUpdate();
|
|
5972
5996
|
|
|
5973
|
-
|
|
5974
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5997
|
+
return this.placeholderStr;
|
|
5975
5998
|
}
|
|
5976
5999
|
|
|
5977
6000
|
/**
|
|
@@ -6184,7 +6207,7 @@ class AuroDependencyVersioning {
|
|
|
6184
6207
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6185
6208
|
*/
|
|
6186
6209
|
|
|
6187
|
-
class AuroElement extends i$2 {
|
|
6210
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
6188
6211
|
|
|
6189
6212
|
// function to define props used within the scope of this component
|
|
6190
6213
|
static get properties() {
|
|
@@ -6208,7 +6231,7 @@ class AuroElement extends i$2 {
|
|
|
6208
6231
|
|
|
6209
6232
|
return 'false'
|
|
6210
6233
|
}
|
|
6211
|
-
}
|
|
6234
|
+
};
|
|
6212
6235
|
|
|
6213
6236
|
var error = {"svg":"<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>"};
|
|
6214
6237
|
|
|
@@ -6252,7 +6275,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6252
6275
|
*/
|
|
6253
6276
|
|
|
6254
6277
|
// build the component class
|
|
6255
|
-
class BaseIcon extends AuroElement {
|
|
6278
|
+
class BaseIcon extends AuroElement$1 {
|
|
6256
6279
|
constructor() {
|
|
6257
6280
|
super();
|
|
6258
6281
|
this.onDark = false;
|
|
@@ -6328,6 +6351,76 @@ var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
6328
6351
|
|
|
6329
6352
|
var colorCss$3 = 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)}`;
|
|
6330
6353
|
|
|
6354
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6355
|
+
// See LICENSE in the project root for license information.
|
|
6356
|
+
|
|
6357
|
+
// ---------------------------------------------------------------------
|
|
6358
|
+
|
|
6359
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6360
|
+
|
|
6361
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6362
|
+
|
|
6363
|
+
/* eslint-disable jsdoc/require-param */
|
|
6364
|
+
|
|
6365
|
+
/**
|
|
6366
|
+
* This will register a new custom element with the browser.
|
|
6367
|
+
* @param {String} name - The name of the custom element.
|
|
6368
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
6369
|
+
* @returns {void}
|
|
6370
|
+
*/
|
|
6371
|
+
registerComponent(name, componentClass) {
|
|
6372
|
+
if (!customElements.get(name)) {
|
|
6373
|
+
customElements.define(name, class extends componentClass {});
|
|
6374
|
+
}
|
|
6375
|
+
}
|
|
6376
|
+
|
|
6377
|
+
/**
|
|
6378
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
6379
|
+
* @returns {void}
|
|
6380
|
+
*/
|
|
6381
|
+
closestElement(
|
|
6382
|
+
selector, // selector like in .closest()
|
|
6383
|
+
base = this, // extra functionality to skip a parent
|
|
6384
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
6385
|
+
!el || el === document || el === window
|
|
6386
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
6387
|
+
: found
|
|
6388
|
+
? found // found a selector INside this element
|
|
6389
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6390
|
+
) {
|
|
6391
|
+
return __Closest(base);
|
|
6392
|
+
}
|
|
6393
|
+
/* eslint-enable jsdoc/require-param */
|
|
6394
|
+
|
|
6395
|
+
/**
|
|
6396
|
+
* 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.
|
|
6397
|
+
* @param {Object} elem - The element to check.
|
|
6398
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
6399
|
+
* @returns {void}
|
|
6400
|
+
*/
|
|
6401
|
+
handleComponentTagRename(elem, tagName) {
|
|
6402
|
+
const tag = tagName.toLowerCase();
|
|
6403
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6404
|
+
|
|
6405
|
+
if (elemTag !== tag) {
|
|
6406
|
+
elem.setAttribute(tag, true);
|
|
6407
|
+
}
|
|
6408
|
+
}
|
|
6409
|
+
|
|
6410
|
+
/**
|
|
6411
|
+
* Validates if an element is a specific Auro component.
|
|
6412
|
+
* @param {Object} elem - The element to validate.
|
|
6413
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
6414
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6415
|
+
*/
|
|
6416
|
+
elementMatch(elem, tagName) {
|
|
6417
|
+
const tag = tagName.toLowerCase();
|
|
6418
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
6419
|
+
|
|
6420
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
6421
|
+
}
|
|
6422
|
+
};
|
|
6423
|
+
|
|
6331
6424
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6332
6425
|
// See LICENSE in the project root for license information.
|
|
6333
6426
|
|
|
@@ -6347,7 +6440,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6347
6440
|
*/
|
|
6348
6441
|
privateDefaults() {
|
|
6349
6442
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6350
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6443
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6351
6444
|
}
|
|
6352
6445
|
|
|
6353
6446
|
// function to define props used within the scope of this component
|
|
@@ -6429,7 +6522,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6429
6522
|
*
|
|
6430
6523
|
*/
|
|
6431
6524
|
static register(name = "auro-icon") {
|
|
6432
|
-
AuroLibraryRuntimeUtils$
|
|
6525
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6433
6526
|
}
|
|
6434
6527
|
|
|
6435
6528
|
connectedCallback() {
|
|
@@ -6450,8 +6543,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6450
6543
|
async firstUpdated() {
|
|
6451
6544
|
await super.firstUpdated();
|
|
6452
6545
|
|
|
6453
|
-
|
|
6454
|
-
|
|
6546
|
+
/**
|
|
6547
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6548
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6549
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6550
|
+
*/
|
|
6551
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6455
6552
|
const svgDesc = this.svg.querySelector('desc');
|
|
6456
6553
|
|
|
6457
6554
|
if (svgDesc) {
|
|
@@ -6495,69 +6592,606 @@ class AuroIcon extends BaseIcon {
|
|
|
6495
6592
|
}
|
|
6496
6593
|
}
|
|
6497
6594
|
|
|
6498
|
-
var iconVersion = '8.0.
|
|
6595
|
+
var iconVersion = '8.0.4';
|
|
6499
6596
|
|
|
6500
|
-
|
|
6597
|
+
/**
|
|
6598
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6599
|
+
*/
|
|
6600
|
+
const _observers = new WeakMap();
|
|
6501
6601
|
|
|
6502
|
-
|
|
6602
|
+
/**
|
|
6603
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6604
|
+
* Structure: {
|
|
6605
|
+
* host: {
|
|
6606
|
+
* matchers: Set<Function>,
|
|
6607
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6608
|
+
* }
|
|
6609
|
+
* }
|
|
6610
|
+
*/
|
|
6611
|
+
const _transportConfig = new WeakMap();
|
|
6503
6612
|
|
|
6504
|
-
|
|
6613
|
+
/**
|
|
6614
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6615
|
+
*
|
|
6616
|
+
* @param {Object} params - The parameters for the function.
|
|
6617
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6618
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6619
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6620
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6621
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6622
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6623
|
+
*/
|
|
6624
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6625
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6626
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6627
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6628
|
+
}
|
|
6505
6629
|
|
|
6506
|
-
|
|
6630
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6631
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6632
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6633
|
+
}
|
|
6507
6634
|
|
|
6508
|
-
|
|
6635
|
+
// Guard Clause: Ensure match is a function
|
|
6636
|
+
if (typeof match !== 'function') {
|
|
6637
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6638
|
+
}
|
|
6509
6639
|
|
|
6510
|
-
|
|
6640
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6641
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6642
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6643
|
+
}
|
|
6644
|
+
|
|
6645
|
+
// Register this transport and get cleanup function
|
|
6646
|
+
return _registerTransport({
|
|
6647
|
+
host,
|
|
6648
|
+
target,
|
|
6649
|
+
matcher: match,
|
|
6650
|
+
removeOriginal
|
|
6651
|
+
});
|
|
6652
|
+
};
|
|
6511
6653
|
|
|
6512
|
-
|
|
6513
|
-
|
|
6654
|
+
/**
|
|
6655
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6656
|
+
*
|
|
6657
|
+
* @param {Object} params - The parameters object.
|
|
6658
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6659
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6660
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6661
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6662
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6663
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6664
|
+
* @private
|
|
6665
|
+
*/
|
|
6666
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6667
|
+
// Initialize config for this host if it doesn't exist
|
|
6668
|
+
if (!_transportConfig.has(host)) {
|
|
6669
|
+
_transportConfig.set(host, {
|
|
6670
|
+
matchers: new Set(),
|
|
6671
|
+
targets: new Map()
|
|
6672
|
+
});
|
|
6673
|
+
}
|
|
6514
6674
|
|
|
6675
|
+
const config = _transportConfig.get(host);
|
|
6676
|
+
|
|
6677
|
+
// Add the matcher to the set of matchers for this host
|
|
6678
|
+
config.matchers.add(matcher);
|
|
6679
|
+
|
|
6680
|
+
// Initialize target entry if it doesn't exist
|
|
6681
|
+
if (!config.targets.has(target)) {
|
|
6682
|
+
config.targets.set(target, new Map());
|
|
6683
|
+
}
|
|
6684
|
+
|
|
6685
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6686
|
+
config.targets.get(target).set(matcher, {
|
|
6687
|
+
removeOriginal,
|
|
6688
|
+
currentAttributes: new Map()
|
|
6689
|
+
});
|
|
6690
|
+
|
|
6691
|
+
// Perform initial attribute transport
|
|
6692
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6693
|
+
|
|
6694
|
+
// Attach observer
|
|
6695
|
+
_attachObserver(host);
|
|
6696
|
+
|
|
6697
|
+
// Return cleanup function and utility functions
|
|
6698
|
+
return {
|
|
6699
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6700
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6701
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6702
|
+
}
|
|
6703
|
+
};
|
|
6515
6704
|
|
|
6516
|
-
|
|
6517
|
-
|
|
6518
|
-
|
|
6705
|
+
/**
|
|
6706
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6707
|
+
*
|
|
6708
|
+
* @param {HTMLElement} host - The host element
|
|
6709
|
+
* @param {HTMLElement} target - The target element
|
|
6710
|
+
* @param {Function} matcher - The matcher function
|
|
6711
|
+
* @private
|
|
6712
|
+
*/
|
|
6713
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6714
|
+
const config = _transportConfig.get(host);
|
|
6715
|
+
if (!config) return;
|
|
6716
|
+
|
|
6717
|
+
// Remove this matcher from this target
|
|
6718
|
+
const targetMatchers = config.targets.get(target);
|
|
6719
|
+
if (targetMatchers) {
|
|
6720
|
+
targetMatchers.delete(matcher);
|
|
6721
|
+
|
|
6722
|
+
// If this target has no more matchers, remove it
|
|
6723
|
+
if (targetMatchers.size === 0) {
|
|
6724
|
+
config.targets.delete(target);
|
|
6725
|
+
}
|
|
6726
|
+
}
|
|
6727
|
+
|
|
6728
|
+
// Check if this matcher is still used by any target
|
|
6729
|
+
let matcherStillUsed = false;
|
|
6730
|
+
for (const matcherMap of config.targets.values()) {
|
|
6731
|
+
if (matcherMap.has(matcher)) {
|
|
6732
|
+
matcherStillUsed = true;
|
|
6733
|
+
break;
|
|
6734
|
+
}
|
|
6735
|
+
}
|
|
6736
|
+
|
|
6737
|
+
// If not used anymore, remove from matchers set
|
|
6738
|
+
if (!matcherStillUsed) {
|
|
6739
|
+
config.matchers.delete(matcher);
|
|
6740
|
+
}
|
|
6741
|
+
|
|
6742
|
+
// If no more targets or matchers, detach observer
|
|
6743
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6744
|
+
_detachObserver(host);
|
|
6745
|
+
}
|
|
6746
|
+
};
|
|
6519
6747
|
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6748
|
+
/**
|
|
6749
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6750
|
+
*
|
|
6751
|
+
* @param {Object} params - The parameters object.
|
|
6752
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6753
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6754
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6755
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6756
|
+
* @returns {void}
|
|
6757
|
+
* @private
|
|
6758
|
+
*/
|
|
6759
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6760
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6761
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6762
|
+
.filter(attr => matcher(attr))
|
|
6763
|
+
.reduce((acc, attr) => {
|
|
6764
|
+
acc[attr] = host.getAttribute(attr);
|
|
6765
|
+
return acc;
|
|
6766
|
+
}, {});
|
|
6767
|
+
|
|
6768
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6769
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6770
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6771
|
+
target.setAttribute(key, value);
|
|
6772
|
+
if (removeOriginal) {
|
|
6773
|
+
host.removeAttribute(key);
|
|
6774
|
+
}
|
|
6775
|
+
});
|
|
6776
|
+
};
|
|
6524
6777
|
|
|
6525
|
-
|
|
6526
|
-
|
|
6527
|
-
|
|
6528
|
-
|
|
6778
|
+
/**
|
|
6779
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6780
|
+
*
|
|
6781
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6782
|
+
* @returns {MutationObserver} The observer instance.
|
|
6783
|
+
* @private
|
|
6784
|
+
*/
|
|
6785
|
+
const _attachObserver = (host) => {
|
|
6786
|
+
// If an observer for this host already exists, return it
|
|
6787
|
+
if (_observers.has(host)) {
|
|
6788
|
+
return _observers.get(host);
|
|
6789
|
+
}
|
|
6790
|
+
|
|
6791
|
+
// Create a new MutationObserver
|
|
6792
|
+
const observer = new MutationObserver((mutations) => {
|
|
6793
|
+
const config = _transportConfig.get(host);
|
|
6794
|
+
if (!config) return;
|
|
6795
|
+
|
|
6796
|
+
// For each mutation affecting attributes
|
|
6797
|
+
mutations
|
|
6798
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6799
|
+
.forEach(mutation => {
|
|
6800
|
+
const attributeName = mutation.attributeName;
|
|
6801
|
+
|
|
6802
|
+
// Find matchers that care about this attribute
|
|
6803
|
+
for (const matcher of config.matchers) {
|
|
6804
|
+
if (matcher(attributeName)) {
|
|
6805
|
+
// For each target that uses this matcher
|
|
6806
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6807
|
+
if (matcherConfigs.has(matcher)) {
|
|
6808
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6809
|
+
_transportAttributes({
|
|
6810
|
+
host,
|
|
6811
|
+
target,
|
|
6812
|
+
matcher,
|
|
6813
|
+
removeOriginal
|
|
6814
|
+
});
|
|
6815
|
+
}
|
|
6816
|
+
}
|
|
6817
|
+
}
|
|
6818
|
+
}
|
|
6819
|
+
});
|
|
6820
|
+
});
|
|
6529
6821
|
|
|
6530
|
-
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6822
|
+
// Start observing attribute changes
|
|
6823
|
+
observer.observe(host, { attributes: true });
|
|
6824
|
+
|
|
6825
|
+
// Store the observer
|
|
6826
|
+
_observers.set(host, observer);
|
|
6827
|
+
|
|
6828
|
+
return observer;
|
|
6829
|
+
};
|
|
6534
6830
|
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6831
|
+
/**
|
|
6832
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6833
|
+
*
|
|
6834
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6835
|
+
* @private
|
|
6836
|
+
*/
|
|
6837
|
+
const _detachObserver = (host) => {
|
|
6838
|
+
if (_observers.has(host)) {
|
|
6839
|
+
const observer = _observers.get(host);
|
|
6840
|
+
observer.disconnect();
|
|
6841
|
+
_observers.delete(host);
|
|
6842
|
+
}
|
|
6843
|
+
|
|
6844
|
+
// Clean up the transport config as well
|
|
6845
|
+
if (_transportConfig.has(host)) {
|
|
6846
|
+
_transportConfig.delete(host);
|
|
6847
|
+
}
|
|
6848
|
+
};
|
|
6539
6849
|
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
6850
|
+
/**
|
|
6851
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6852
|
+
* @param {HTMLElement} host - The host element
|
|
6853
|
+
* @param {HTMLElement} target - The target element
|
|
6854
|
+
* @param {Function} matcher - The matcher function
|
|
6855
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6856
|
+
* @private
|
|
6857
|
+
*/
|
|
6858
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6859
|
+
const config = _transportConfig.get(host);
|
|
6860
|
+
if (!config) return undefined;
|
|
6861
|
+
|
|
6862
|
+
const targetMatchers = config.targets.get(target);
|
|
6863
|
+
if (!targetMatchers) return undefined;
|
|
6864
|
+
|
|
6865
|
+
return targetMatchers.get(matcher);
|
|
6866
|
+
};
|
|
6867
|
+
|
|
6868
|
+
/**
|
|
6869
|
+
* Sets an observed attribute value
|
|
6870
|
+
* @param {HTMLElement} host - The host element
|
|
6871
|
+
* @param {HTMLElement} target - The target element
|
|
6872
|
+
* @param {Function} matcher - The matcher function
|
|
6873
|
+
* @param {string} key - The attribute name
|
|
6874
|
+
* @param {string} value - The attribute value
|
|
6875
|
+
* @private
|
|
6876
|
+
*/
|
|
6877
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6878
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6879
|
+
if (matcherConfig) {
|
|
6880
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6544
6881
|
}
|
|
6882
|
+
};
|
|
6545
6883
|
|
|
6546
|
-
|
|
6547
|
-
|
|
6548
|
-
|
|
6884
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6885
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6886
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6887
|
+
return undefined;
|
|
6888
|
+
};
|
|
6549
6889
|
|
|
6550
|
-
|
|
6551
|
-
|
|
6552
|
-
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
reflect: true
|
|
6556
|
-
},
|
|
6890
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6891
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6892
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6893
|
+
return [];
|
|
6894
|
+
};
|
|
6557
6895
|
|
|
6558
|
-
|
|
6559
|
-
|
|
6560
|
-
|
|
6896
|
+
const _matchers = {
|
|
6897
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6898
|
+
'role': attr => attr.match(/^role$/)
|
|
6899
|
+
};
|
|
6900
|
+
|
|
6901
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6902
|
+
return transportAttributes({
|
|
6903
|
+
host,
|
|
6904
|
+
target,
|
|
6905
|
+
match: attr => {
|
|
6906
|
+
for (const key in _matchers) {
|
|
6907
|
+
if (_matchers[key](attr)) return true;
|
|
6908
|
+
}
|
|
6909
|
+
return false;
|
|
6910
|
+
},
|
|
6911
|
+
removeOriginal
|
|
6912
|
+
});
|
|
6913
|
+
};
|
|
6914
|
+
|
|
6915
|
+
class AuroElement extends i$2 {
|
|
6916
|
+
|
|
6917
|
+
/**
|
|
6918
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6919
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6920
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6921
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6922
|
+
* @private
|
|
6923
|
+
*/
|
|
6924
|
+
attributeWatcher;
|
|
6925
|
+
|
|
6926
|
+
static get properties() {
|
|
6927
|
+
return {
|
|
6928
|
+
|
|
6929
|
+
/**
|
|
6930
|
+
* Defines the layout of an element.
|
|
6931
|
+
* @default {'default'}
|
|
6932
|
+
*/
|
|
6933
|
+
layout: {
|
|
6934
|
+
type: String,
|
|
6935
|
+
attribute: "layout",
|
|
6936
|
+
reflect: true
|
|
6937
|
+
},
|
|
6938
|
+
|
|
6939
|
+
/**
|
|
6940
|
+
* Defines the shape of an element.
|
|
6941
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6942
|
+
* @default {'default'}
|
|
6943
|
+
*/
|
|
6944
|
+
shape: {
|
|
6945
|
+
type: String,
|
|
6946
|
+
attribute: "shape",
|
|
6947
|
+
reflect: true
|
|
6948
|
+
},
|
|
6949
|
+
|
|
6950
|
+
/**
|
|
6951
|
+
* Defines the size of an element.
|
|
6952
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6953
|
+
* @default {'md'}
|
|
6954
|
+
*/
|
|
6955
|
+
size: {
|
|
6956
|
+
type: String,
|
|
6957
|
+
attribute: "size",
|
|
6958
|
+
reflect: true
|
|
6959
|
+
},
|
|
6960
|
+
|
|
6961
|
+
/**
|
|
6962
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6963
|
+
* @default {false}
|
|
6964
|
+
*/
|
|
6965
|
+
onDark: {
|
|
6966
|
+
type: Boolean,
|
|
6967
|
+
attribute: "ondark",
|
|
6968
|
+
reflect: true
|
|
6969
|
+
},
|
|
6970
|
+
|
|
6971
|
+
/**
|
|
6972
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6973
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6974
|
+
* @type {HTMLElement|null}
|
|
6975
|
+
* @default {null}
|
|
6976
|
+
* @private
|
|
6977
|
+
*/
|
|
6978
|
+
wrapper: {
|
|
6979
|
+
attribute: false,
|
|
6980
|
+
reflect: false
|
|
6981
|
+
}
|
|
6982
|
+
};
|
|
6983
|
+
}
|
|
6984
|
+
|
|
6985
|
+
|
|
6986
|
+
|
|
6987
|
+
resetShapeClasses() {
|
|
6988
|
+
if (this.shape && this.size) {
|
|
6989
|
+
|
|
6990
|
+
if (this.wrapper) {
|
|
6991
|
+
this.wrapper.classList.forEach((className) => {
|
|
6992
|
+
if (className.startsWith('shape-')) {
|
|
6993
|
+
this.wrapper.classList.remove(className);
|
|
6994
|
+
}
|
|
6995
|
+
});
|
|
6996
|
+
|
|
6997
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
6998
|
+
}
|
|
6999
|
+
}
|
|
7000
|
+
}
|
|
7001
|
+
|
|
7002
|
+
resetLayoutClasses() {
|
|
7003
|
+
if (this.layout) {
|
|
7004
|
+
if (this.wrapper) {
|
|
7005
|
+
this.wrapper.classList.forEach((className) => {
|
|
7006
|
+
if (className.startsWith('layout-')) {
|
|
7007
|
+
this.wrapper.classList.remove(className);
|
|
7008
|
+
}
|
|
7009
|
+
});
|
|
7010
|
+
|
|
7011
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
7012
|
+
}
|
|
7013
|
+
}
|
|
7014
|
+
}
|
|
7015
|
+
|
|
7016
|
+
updateComponentArchitecture() {
|
|
7017
|
+
this.resetLayoutClasses();
|
|
7018
|
+
this.resetShapeClasses();
|
|
7019
|
+
}
|
|
7020
|
+
|
|
7021
|
+
updated(changedProperties) {
|
|
7022
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
7023
|
+
this.updateComponentArchitecture();
|
|
7024
|
+
}
|
|
7025
|
+
}
|
|
7026
|
+
|
|
7027
|
+
firstUpdated() {
|
|
7028
|
+
super.firstUpdated();
|
|
7029
|
+
|
|
7030
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
7031
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
7032
|
+
|
|
7033
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
7034
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
7035
|
+
}
|
|
7036
|
+
|
|
7037
|
+
disconnectedCallback() {
|
|
7038
|
+
super.disconnectedCallback();
|
|
7039
|
+
|
|
7040
|
+
// Cleanup the ARIA observer if it exists
|
|
7041
|
+
if (this.attributeWatcher) {
|
|
7042
|
+
this.attributeWatcher.cleanup();
|
|
7043
|
+
this.attributeWatcher = null;
|
|
7044
|
+
}
|
|
7045
|
+
}
|
|
7046
|
+
|
|
7047
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
7048
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
7049
|
+
render() {
|
|
7050
|
+
try {
|
|
7051
|
+
return this.renderLayout();
|
|
7052
|
+
} catch (error) {
|
|
7053
|
+
// failed to get the defined layout
|
|
7054
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
7055
|
+
|
|
7056
|
+
// fallback to the default layout
|
|
7057
|
+
return this.getLayout('default');
|
|
7058
|
+
}
|
|
7059
|
+
}
|
|
7060
|
+
}
|
|
7061
|
+
|
|
7062
|
+
var styleCss$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}::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);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;transition:padding 300ms ease-out}.auro-button:active{transform:scale(0.95)}.auro-button:focus-visible,.auro-button:focus{outline:none;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=secondary]):not([variant=tertiary]),.auro-button:focus: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=ghost]:disabled{cursor:not-allowed;transform: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.icon-only ::slotted(:not(auro-icon):not([auro-icon])){display:none}.auro-button--slim{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]),.auro-button--iconOnly:not(.auro-button--rounded):focus: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:padding 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,.auro-button--rounded:focus:not([variant=flat]):after{border-radius:100px}:host([size=xs]) .wrapper:focus-visible,:host([size=xs]) .wrapper:focus{outline-width:1px;outline-offset:-2px}: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}`;
|
|
7063
|
+
|
|
7064
|
+
var colorCss$2 = 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=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text, #01426a)}.auro-button:not([ondark])[variant=ghost]:active:not(:disabled),.auro-button:not([ondark])[variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-hover, rgba(0, 0, 0, 0.05));--ds-auro-button-border-color:transparent}.auro-button:not([ondark])[variant=ghost]: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=ghost]: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:not([ondark])[variant=flat]: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[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=ghost]{--ds-auro-button-container-color:transparent;--ds-auro-button-container-image:transparent;--ds-auro-button-border-color:transparent;--ds-auro-button-text-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff);--ds-auro-button-loader-color:var(--ds-advanced-color-button-ghost-text-inverse, #ffffff)}.auro-button[ondark][variant=ghost]:active:not(:disabled),.auro-button[ondark][variant=ghost]:hover:not(:disabled){--ds-auro-button-container-color:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05));--ds-auro-button-container-image:var(--ds-advanced-color-button-ghost-background-inverse-hover, rgba(255, 255, 255, 0.05))}.auro-button[ondark][variant=ghost]: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=ghost]: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}.auro-button[ondark][variant=flat]: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)}`;
|
|
7065
|
+
|
|
7066
|
+
var tokensCss$2 = i$5`:host(:not([onDark])){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border, #01426a);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-button-container-color:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-container-image:var(--ds-advanced-color-button-primary-background, #01426a);--ds-auro-button-loader-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text, #ffffff);--ds-auro-button-tap-color:transparent}:host([onDark]){--ds-auro-button-border-color:var(--ds-advanced-color-button-primary-border-inverse, #ffffff);--ds-auro-button-border-inset-color:var(--ds-advanced-color-state-focused-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-loader-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-text-color:var(--ds-advanced-color-button-primary-text-inverse, #01426a);--ds-auro-button-tap-color:transparent}`;
|
|
7067
|
+
|
|
7068
|
+
var shapeSize = i$5`.shape-rounded-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:6px;overflow:hidden;font-size:18px}.shape-rounded-md{min-height:44px;max-height:44px;border-style:solid;border-radius:6px;overflow:hidden;font-size:16px}.shape-rounded-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:6px;overflow:hidden;font-size:14px}.shape-rounded-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:4px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px;overflow:hidden;font-size:18px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:34px 0 0 34px;overflow:hidden}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-radius:0 34px 34px 0;overflow:hidden}.shape-pill-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px;overflow:hidden;font-size:18px}.shape-pill-left-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:26px 0 0 26px;overflow:hidden}.shape-pill-right-lg{min-height:52px;max-height:52px;border-style:solid;border-radius:0 26px 26px 0;overflow:hidden}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px;overflow:hidden}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-radius:22px 0 0 22px;overflow:hidden}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-radius:0 22px 22px 0;overflow:hidden;font-size:16px}.shape-pill-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px;overflow:hidden;font-size:14px}.shape-pill-left-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:16px 0 0 16px;overflow:hidden}.shape-pill-right-sm{min-height:32px;max-height:32px;border-style:solid;border-radius:0 16px 16px 0;overflow:hidden}.shape-pill-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px;overflow:hidden;font-size:12px;outline-offset:-2px;outline-width:1px}.shape-pill-left-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:10px 0 0 10px;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-pill-right-xs{min-height:20px;max-height:20px;border-style:solid;border-radius:0 10px 10px 0;overflow:hidden;outline-offset:-2px;outline-width:1px}.shape-circle-xl{min-height:68px;max-height:68px;min-width:68px;max-width:68px;border-style:solid;border-radius:34px;overflow:hidden;padding:0}.shape-circle-lg{min-height:52px;max-height:52px;min-width:52px;max-width:52px;border-style:solid;border-radius:26px;overflow:hidden;padding:0}.shape-circle-md{min-height:44px;max-height:44px;min-width:44px;max-width:44px;border-style:solid;border-radius:22px;overflow:hidden;padding:0}.shape-circle-sm{min-height:32px;max-height:32px;min-width:32px;max-width:32px;border-style:solid;border-radius:16px;overflow:hidden;padding:0}.shape-circle-xs{min-height:20px;max-height:20px;min-width:20px;max-width:20px;border-style:solid;border-radius:10px;overflow:hidden;padding:0;outline-offset:-2px;outline-width:1px}`;
|
|
7069
|
+
|
|
7070
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
7071
|
+
// See LICENSE in the project root for license information.
|
|
7072
|
+
|
|
7073
|
+
// ---------------------------------------------------------------------
|
|
7074
|
+
|
|
7075
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
7076
|
+
|
|
7077
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
7078
|
+
|
|
7079
|
+
/* eslint-disable jsdoc/require-param */
|
|
7080
|
+
|
|
7081
|
+
/**
|
|
7082
|
+
* This will register a new custom element with the browser.
|
|
7083
|
+
* @param {String} name - The name of the custom element.
|
|
7084
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
7085
|
+
* @returns {void}
|
|
7086
|
+
*/
|
|
7087
|
+
registerComponent(name, componentClass) {
|
|
7088
|
+
if (!customElements.get(name)) {
|
|
7089
|
+
customElements.define(name, class extends componentClass {});
|
|
7090
|
+
}
|
|
7091
|
+
}
|
|
7092
|
+
|
|
7093
|
+
/**
|
|
7094
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
7095
|
+
* @returns {void}
|
|
7096
|
+
*/
|
|
7097
|
+
closestElement(
|
|
7098
|
+
selector, // selector like in .closest()
|
|
7099
|
+
base = this, // extra functionality to skip a parent
|
|
7100
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
7101
|
+
!el || el === document || el === window
|
|
7102
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
7103
|
+
: found
|
|
7104
|
+
? found // found a selector INside this element
|
|
7105
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
7106
|
+
) {
|
|
7107
|
+
return __Closest(base);
|
|
7108
|
+
}
|
|
7109
|
+
/* eslint-enable jsdoc/require-param */
|
|
7110
|
+
|
|
7111
|
+
/**
|
|
7112
|
+
* 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.
|
|
7113
|
+
* @param {Object} elem - The element to check.
|
|
7114
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
7115
|
+
* @returns {void}
|
|
7116
|
+
*/
|
|
7117
|
+
handleComponentTagRename(elem, tagName) {
|
|
7118
|
+
const tag = tagName.toLowerCase();
|
|
7119
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7120
|
+
|
|
7121
|
+
if (elemTag !== tag) {
|
|
7122
|
+
elem.setAttribute(tag, true);
|
|
7123
|
+
}
|
|
7124
|
+
}
|
|
7125
|
+
|
|
7126
|
+
/**
|
|
7127
|
+
* Validates if an element is a specific Auro component.
|
|
7128
|
+
* @param {Object} elem - The element to validate.
|
|
7129
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
7130
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
7131
|
+
*/
|
|
7132
|
+
elementMatch(elem, tagName) {
|
|
7133
|
+
const tag = tagName.toLowerCase();
|
|
7134
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
7135
|
+
|
|
7136
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
7137
|
+
}
|
|
7138
|
+
};
|
|
7139
|
+
|
|
7140
|
+
var styleCss$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}:host,:host>span{position:relative}:host{width:2rem;height:2rem;display:inline-block;font-size:0}:host>span{position:absolute;display:inline-block;float:none;top:0;left:0;width:2rem;height:2rem;border-radius:100%;border-style:solid;border-width:0}:host([xs]),:host([xs])>span{width:1.2rem;height:1.2rem}:host([sm]),:host([sm])>span{width:3rem;height:3rem}:host([md]),:host([md])>span{width:5rem;height:5rem}:host([lg]),:host([lg])>span{width:8rem;height:8rem}:host{--margin:0.375rem;--margin-xs:0.2rem;--margin-sm:0.5rem;--margin-md:0.75rem;--margin-lg:1rem}:host([pulse]),:host([pulse])>span{position:relative}:host([pulse]){width:calc(3rem + var(--margin)*6);height:1.5rem}:host([pulse])>span{width:1rem;height:1rem;margin:var(--margin);animation:pulse 1.5s ease infinite}:host([pulse][xs]){width:calc(2.55rem + var(--margin-xs)*6);height:1.55rem}:host([pulse][xs])>span{margin:var(--margin-xs);width:.65rem;height:.65rem}:host([pulse][sm]){width:calc(6rem + var(--margin-sm)*6);height:2.5rem}:host([pulse][sm])>span{margin:var(--margin-sm);width:2rem;height:2rem}:host([pulse][md]){width:calc(9rem + var(--margin-md)*6);height:3.5rem}:host([pulse][md])>span{margin:var(--margin-md);width:3rem;height:3rem}:host([pulse][lg]){width:calc(15rem + var(--margin-lg)*6);height:5.5rem}:host([pulse][lg])>span{margin:var(--margin-lg);width:5rem;height:5rem}:host([pulse])>span:nth-child(1){animation-delay:-400ms}:host([pulse])>span:nth-child(2){animation-delay:-200ms}:host([pulse])>span:nth-child(3){animation-delay:0ms}@keyframes pulse{0%,100%{opacity:.1;transform:scale(0.9)}50%{opacity:1;transform:scale(1.1)}}:host([orbit]),:host([orbit])>span{opacity:1}:host([orbit])>span{border-width:5px}:host([orbit])>span:nth-child(2){animation:orbit 2s linear infinite}:host([orbit][sm])>span{border-width:8px}:host([orbit][md])>span{border-width:13px}:host([orbit][lg])>span{border-width:21px}@keyframes orbit{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}:host([ringworm])>svg{animation:rotate 2s linear infinite;height:100%;width:100%;stroke:currentcolor;stroke-width:8}:host([ringworm]) .path{stroke-dashoffset:0;animation:ringworm 1.5s ease-in-out infinite;stroke-linecap:round}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes ringworm{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:89,200;stroke-dashoffset:-35px}100%{stroke-dasharray:89,200;stroke-dashoffset:-124px}}:host([laser]){position:static;width:100%;display:block;height:0;overflow:hidden;font-size:unset}:host([laser])>span{position:fixed;width:100%;height:.25rem;border-radius:0;z-index:100}:host([laser])>span:nth-child(1){border-color:currentcolor;opacity:.25}:host([laser])>span:nth-child(2){border-color:currentcolor;animation:laser 2s linear infinite;opacity:1;width:50%}:host([laser][sm])>span:nth-child(2){width:20%}:host([laser][md])>span:nth-child(2){width:30%}:host([laser][lg])>span:nth-child(2){width:50%;animation-duration:1.5s}:host([laser][xl])>span:nth-child(2){width:80%;animation-duration:1.5s}@keyframes laser{0%{left:-100%}100%{left:110%}}:host>.no-animation{display:none}@media(prefers-reduced-motion: reduce){:host{display:flex;align-items:center;justify-content:center;font-size:1rem}:host>span{opacity:1}:host>.loader{display:none}:host>.no-animation{display:block}}`;
|
|
7141
|
+
|
|
7142
|
+
var colorCss$1 = i$5`:host{color:var(--ds-auro-loader-color)}:host>span{background-color:var(--ds-auro-loader-background-color);border-color:var(--ds-auro-loader-border-color)}:host([onlight]){--ds-auro-loader-color:var(--ds-basic-color-brand-primary, #01426a)}:host([ondark]){--ds-auro-loader-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([orbit])>span{--ds-auro-loader-background-color:transparent}:host([orbit])>span:nth-child(1){--ds-auro-loader-border-color:currentcolor;opacity:.25}:host([orbit])>span:nth-child(2){--ds-auro-loader-border-color:currentcolor;border-right-color:transparent;border-bottom-color:transparent;border-left-color:transparent}`;
|
|
7143
|
+
|
|
7144
|
+
var tokensCss$1 = i$5`:host{--ds-auro-loader-background-color:currentcolor;--ds-auro-loader-border-color:currentcolor;--ds-auro-loader-color:currentcolor}`;
|
|
7145
|
+
|
|
7146
|
+
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
7147
|
+
// See LICENSE in the project root for license information.
|
|
7148
|
+
|
|
7149
|
+
|
|
7150
|
+
class AuroLoader extends i$2 {
|
|
7151
|
+
constructor() {
|
|
7152
|
+
super();
|
|
7153
|
+
|
|
7154
|
+
/**
|
|
7155
|
+
* @private
|
|
7156
|
+
*/
|
|
7157
|
+
this.keys = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9];
|
|
7158
|
+
|
|
7159
|
+
/**
|
|
7160
|
+
* @private
|
|
7161
|
+
*/
|
|
7162
|
+
this.mdCount = 3;
|
|
7163
|
+
|
|
7164
|
+
/**
|
|
7165
|
+
* @private
|
|
7166
|
+
*/
|
|
7167
|
+
this.smCount = 2;
|
|
7168
|
+
|
|
7169
|
+
/**
|
|
7170
|
+
* @private
|
|
7171
|
+
*/
|
|
7172
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
7173
|
+
|
|
7174
|
+
this.orbit = false;
|
|
7175
|
+
this.ringworm = false;
|
|
7176
|
+
this.laser = false;
|
|
7177
|
+
this.pulse = false;
|
|
7178
|
+
}
|
|
7179
|
+
|
|
7180
|
+
// function to define props used within the scope of this component
|
|
7181
|
+
static get properties() {
|
|
7182
|
+
return {
|
|
7183
|
+
|
|
7184
|
+
/**
|
|
7185
|
+
* Sets loader to laser type.
|
|
7186
|
+
*/
|
|
7187
|
+
laser: {
|
|
7188
|
+
type: Boolean,
|
|
7189
|
+
reflect: true
|
|
7190
|
+
},
|
|
7191
|
+
|
|
7192
|
+
/**
|
|
7193
|
+
* Sets loader to orbit type.
|
|
7194
|
+
*/
|
|
6561
7195
|
orbit: {
|
|
6562
7196
|
type: Boolean,
|
|
6563
7197
|
reflect: true
|
|
@@ -6650,14 +7284,13 @@ class AuroLoader extends i$2 {
|
|
|
6650
7284
|
|
|
6651
7285
|
var loaderVersion = '5.0.0';
|
|
6652
7286
|
|
|
6653
|
-
/* eslint-disable max-lines */
|
|
7287
|
+
/* eslint-disable max-lines, curly, jsdoc/no-undefined-types */
|
|
6654
7288
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6655
7289
|
// See LICENSE in the project root for license information.
|
|
6656
7290
|
|
|
6657
7291
|
|
|
6658
7292
|
/**
|
|
6659
7293
|
* @slot - Default slot for the text of the button.
|
|
6660
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6661
7294
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6662
7295
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6663
7296
|
* @csspart text - Apply CSS to text slot.
|
|
@@ -6666,7 +7299,18 @@ var loaderVersion = '5.0.0';
|
|
|
6666
7299
|
|
|
6667
7300
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
6668
7301
|
|
|
6669
|
-
|
|
7302
|
+
const ICON_ONLY_SHAPES = ['circle'];
|
|
7303
|
+
|
|
7304
|
+
/**
|
|
7305
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7306
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7307
|
+
* @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
|
|
7308
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7309
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7310
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7311
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7312
|
+
*/
|
|
7313
|
+
class AuroButton extends AuroElement {
|
|
6670
7314
|
|
|
6671
7315
|
/**
|
|
6672
7316
|
* Enables form association for this element.
|
|
@@ -6681,13 +7325,10 @@ class AuroButton extends i$2 {
|
|
|
6681
7325
|
super();
|
|
6682
7326
|
this.autofocus = false;
|
|
6683
7327
|
this.disabled = false;
|
|
6684
|
-
this.iconOnly = false;
|
|
6685
7328
|
this.loading = false;
|
|
7329
|
+
this.size = "md";
|
|
7330
|
+
this.shape = "rounded";
|
|
6686
7331
|
this.onDark = false;
|
|
6687
|
-
this.secondary = false;
|
|
6688
|
-
this.tertiary = false;
|
|
6689
|
-
this.rounded = false;
|
|
6690
|
-
this.slim = false;
|
|
6691
7332
|
this.fluid = false;
|
|
6692
7333
|
this.loadingText = this.loadingText || 'Loading...';
|
|
6693
7334
|
|
|
@@ -6710,49 +7351,59 @@ class AuroButton extends i$2 {
|
|
|
6710
7351
|
* @private
|
|
6711
7352
|
*/
|
|
6712
7353
|
this.loaderTag = versioning.generateTag('auro-loader', loaderVersion, AuroLoader);
|
|
7354
|
+
|
|
7355
|
+
/**
|
|
7356
|
+
* @private
|
|
7357
|
+
*/
|
|
7358
|
+
this.buttonHref = undefined;
|
|
7359
|
+
|
|
7360
|
+
/**
|
|
7361
|
+
* @private
|
|
7362
|
+
*/
|
|
7363
|
+
this.buttonTarget = undefined;
|
|
7364
|
+
|
|
7365
|
+
/**
|
|
7366
|
+
* @private
|
|
7367
|
+
*/
|
|
7368
|
+
this.buttonRel = undefined;
|
|
6713
7369
|
}
|
|
6714
7370
|
|
|
6715
7371
|
static get styles() {
|
|
6716
7372
|
return [
|
|
6717
7373
|
tokensCss$2,
|
|
6718
7374
|
styleCss$2,
|
|
6719
|
-
colorCss$2
|
|
7375
|
+
colorCss$2,
|
|
7376
|
+
shapeSize
|
|
6720
7377
|
];
|
|
6721
7378
|
}
|
|
6722
7379
|
|
|
6723
7380
|
static get properties() {
|
|
6724
7381
|
return {
|
|
6725
7382
|
|
|
6726
|
-
|
|
6727
|
-
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6728
|
-
*/
|
|
6729
|
-
autofocus: {
|
|
6730
|
-
type: Boolean,
|
|
6731
|
-
reflect: true
|
|
6732
|
-
},
|
|
7383
|
+
...super.properties,
|
|
6733
7384
|
|
|
6734
7385
|
/**
|
|
6735
|
-
*
|
|
7386
|
+
* Override layout since it isn't used in this component.
|
|
7387
|
+
* @private
|
|
6736
7388
|
*/
|
|
6737
|
-
|
|
7389
|
+
layout: {
|
|
6738
7390
|
type: Boolean,
|
|
6739
|
-
|
|
7391
|
+
attribute: false,
|
|
7392
|
+
reflect: false
|
|
6740
7393
|
},
|
|
6741
7394
|
|
|
6742
7395
|
/**
|
|
6743
|
-
*
|
|
6744
|
-
* @deprecated
|
|
7396
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6745
7397
|
*/
|
|
6746
|
-
|
|
7398
|
+
autofocus: {
|
|
6747
7399
|
type: Boolean,
|
|
6748
7400
|
reflect: true
|
|
6749
7401
|
},
|
|
6750
7402
|
|
|
6751
7403
|
/**
|
|
6752
|
-
*
|
|
6753
|
-
* @deprecated
|
|
7404
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
6754
7405
|
*/
|
|
6755
|
-
|
|
7406
|
+
disabled: {
|
|
6756
7407
|
type: Boolean,
|
|
6757
7408
|
reflect: true
|
|
6758
7409
|
},
|
|
@@ -6760,15 +7411,7 @@ class AuroButton extends i$2 {
|
|
|
6760
7411
|
/**
|
|
6761
7412
|
* Alters the shape of the button to be full width of its parent container.
|
|
6762
7413
|
*/
|
|
6763
|
-
fluid:
|
|
6764
|
-
type: Boolean,
|
|
6765
|
-
reflect: true
|
|
6766
|
-
},
|
|
6767
|
-
|
|
6768
|
-
/**
|
|
6769
|
-
* If set to true, the button will contain an icon with no additional content.
|
|
6770
|
-
*/
|
|
6771
|
-
iconOnly: {
|
|
7414
|
+
fluid: {
|
|
6772
7415
|
type: Boolean,
|
|
6773
7416
|
reflect: true
|
|
6774
7417
|
},
|
|
@@ -6776,7 +7419,7 @@ class AuroButton extends i$2 {
|
|
|
6776
7419
|
/**
|
|
6777
7420
|
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
6778
7421
|
*/
|
|
6779
|
-
loading:
|
|
7422
|
+
loading: {
|
|
6780
7423
|
type: Boolean,
|
|
6781
7424
|
reflect: true
|
|
6782
7425
|
},
|
|
@@ -6784,36 +7427,12 @@ class AuroButton extends i$2 {
|
|
|
6784
7427
|
/**
|
|
6785
7428
|
* 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.
|
|
6786
7429
|
*/
|
|
6787
|
-
loadingText:
|
|
7430
|
+
loadingText: {
|
|
6788
7431
|
type: String
|
|
6789
7432
|
},
|
|
6790
7433
|
|
|
6791
7434
|
/**
|
|
6792
|
-
*
|
|
6793
|
-
*/
|
|
6794
|
-
onDark: {
|
|
6795
|
-
type: Boolean,
|
|
6796
|
-
reflect: true
|
|
6797
|
-
},
|
|
6798
|
-
|
|
6799
|
-
/**
|
|
6800
|
-
* If set to true, the button will have a rounded shape.
|
|
6801
|
-
*/
|
|
6802
|
-
rounded: {
|
|
6803
|
-
type: Boolean,
|
|
6804
|
-
reflect: true
|
|
6805
|
-
},
|
|
6806
|
-
|
|
6807
|
-
/**
|
|
6808
|
-
* Set value for slim version of auro-button.
|
|
6809
|
-
*/
|
|
6810
|
-
slim: {
|
|
6811
|
-
type: Boolean,
|
|
6812
|
-
reflect: true
|
|
6813
|
-
},
|
|
6814
|
-
|
|
6815
|
-
/**
|
|
6816
|
-
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
7435
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
6817
7436
|
*/
|
|
6818
7437
|
tIndex: {
|
|
6819
7438
|
type: String,
|
|
@@ -6821,75 +7440,68 @@ class AuroButton extends i$2 {
|
|
|
6821
7440
|
},
|
|
6822
7441
|
|
|
6823
7442
|
/**
|
|
6824
|
-
* Populates
|
|
7443
|
+
* Populates `tabindex` to define the focusable sequence in keyboard navigation.
|
|
7444
|
+
* Must be used with "." to ensure the host element does not retain a reference to the `tabindex` attribute.
|
|
7445
|
+
* Example: `<auro-button .tabindex="${this.disabled ? '-1' : '0'}"></auro-button>`
|
|
6825
7446
|
*/
|
|
6826
|
-
|
|
7447
|
+
tabindex: {
|
|
6827
7448
|
type: String,
|
|
6828
|
-
reflect:
|
|
7449
|
+
reflect: false
|
|
6829
7450
|
},
|
|
6830
7451
|
|
|
6831
7452
|
/**
|
|
6832
|
-
*
|
|
6833
|
-
* Use it in cases where a text label is not visible on the screen.
|
|
6834
|
-
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
7453
|
+
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
6835
7454
|
*/
|
|
6836
|
-
|
|
7455
|
+
title: {
|
|
6837
7456
|
type: String,
|
|
6838
7457
|
reflect: true
|
|
6839
7458
|
},
|
|
6840
7459
|
|
|
6841
7460
|
/**
|
|
6842
|
-
*
|
|
6843
|
-
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
6844
|
-
* List multiple element IDs in a space delimited fashion.
|
|
7461
|
+
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
6845
7462
|
*/
|
|
6846
|
-
|
|
7463
|
+
type: {
|
|
6847
7464
|
type: String,
|
|
6848
7465
|
reflect: true
|
|
6849
7466
|
},
|
|
6850
7467
|
|
|
6851
7468
|
/**
|
|
6852
|
-
*
|
|
6853
|
-
* or another grouping element it controls, is currently expanded or collapsed.
|
|
6854
|
-
* This is an optional attribute for buttons.
|
|
7469
|
+
* Defines the value associated with the button which is submitted with the form data.
|
|
6855
7470
|
*/
|
|
6856
|
-
|
|
6857
|
-
type:
|
|
7471
|
+
value: {
|
|
7472
|
+
type: String,
|
|
6858
7473
|
reflect: true
|
|
6859
7474
|
},
|
|
6860
7475
|
|
|
6861
7476
|
/**
|
|
6862
|
-
* Sets
|
|
7477
|
+
* Sets button variant option.
|
|
7478
|
+
* @default primary
|
|
6863
7479
|
*/
|
|
6864
|
-
|
|
7480
|
+
variant: {
|
|
6865
7481
|
type: String,
|
|
6866
7482
|
reflect: true
|
|
6867
7483
|
},
|
|
6868
7484
|
|
|
6869
7485
|
/**
|
|
6870
|
-
*
|
|
7486
|
+
* @private
|
|
6871
7487
|
*/
|
|
6872
|
-
|
|
7488
|
+
buttonHref: {
|
|
6873
7489
|
type: String,
|
|
6874
|
-
reflect: true
|
|
6875
7490
|
},
|
|
6876
7491
|
|
|
6877
7492
|
/**
|
|
6878
|
-
*
|
|
7493
|
+
* @private
|
|
6879
7494
|
*/
|
|
6880
|
-
|
|
7495
|
+
buttonTarget: {
|
|
6881
7496
|
type: String,
|
|
6882
|
-
reflect: true
|
|
6883
7497
|
},
|
|
6884
7498
|
|
|
6885
7499
|
/**
|
|
6886
|
-
*
|
|
7500
|
+
* @private
|
|
6887
7501
|
*/
|
|
6888
|
-
|
|
7502
|
+
buttonRel: {
|
|
6889
7503
|
type: String,
|
|
6890
|
-
reflect: true
|
|
6891
7504
|
},
|
|
6892
|
-
ready: { type: Boolean },
|
|
6893
7505
|
};
|
|
6894
7506
|
}
|
|
6895
7507
|
|
|
@@ -6902,7 +7514,7 @@ class AuroButton extends i$2 {
|
|
|
6902
7514
|
*
|
|
6903
7515
|
*/
|
|
6904
7516
|
static register(name = "auro-button") {
|
|
6905
|
-
AuroLibraryRuntimeUtils$
|
|
7517
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
6906
7518
|
}
|
|
6907
7519
|
|
|
6908
7520
|
/**
|
|
@@ -6914,17 +7526,6 @@ class AuroButton extends i$2 {
|
|
|
6914
7526
|
this.renderRoot.querySelector('button').focus();
|
|
6915
7527
|
}
|
|
6916
7528
|
|
|
6917
|
-
updated() {
|
|
6918
|
-
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
6919
|
-
if (this.secondary) {
|
|
6920
|
-
this.setAttribute('variant', 'secondary');
|
|
6921
|
-
}
|
|
6922
|
-
|
|
6923
|
-
if (this.tertiary) {
|
|
6924
|
-
this.setAttribute('variant', 'tertiary');
|
|
6925
|
-
}
|
|
6926
|
-
}
|
|
6927
|
-
|
|
6928
7529
|
/**
|
|
6929
7530
|
* Submits the form that this button is associated with.
|
|
6930
7531
|
* @private
|
|
@@ -6945,28 +7546,63 @@ class AuroButton extends i$2 {
|
|
|
6945
7546
|
return this.internals ? this.internals.form : null;
|
|
6946
7547
|
}
|
|
6947
7548
|
|
|
6948
|
-
|
|
7549
|
+
/**
|
|
7550
|
+
* @private
|
|
7551
|
+
* @returns {Boolean}
|
|
7552
|
+
*/
|
|
7553
|
+
get hideText() {
|
|
7554
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
7555
|
+
}
|
|
7556
|
+
|
|
7557
|
+
/**
|
|
7558
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7559
|
+
* @returns {string | undefined}
|
|
7560
|
+
* @private
|
|
7561
|
+
*/
|
|
7562
|
+
get currentAriaLabel() {
|
|
7563
|
+
if (!this.attributeWatcher) return undefined;
|
|
7564
|
+
|
|
7565
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7566
|
+
return ariaLabel || undefined;
|
|
7567
|
+
}
|
|
7568
|
+
|
|
7569
|
+
/**
|
|
7570
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7571
|
+
* @returns {string | undefined}
|
|
7572
|
+
* @private
|
|
7573
|
+
*/
|
|
7574
|
+
get currentAriaLabelledBy() {
|
|
7575
|
+
if (!this.attributeWatcher) return undefined;
|
|
7576
|
+
|
|
7577
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7578
|
+
return ariaLabelledBy || undefined;
|
|
7579
|
+
}
|
|
7580
|
+
|
|
7581
|
+
/**
|
|
7582
|
+
* Renders the default layout for the button.
|
|
7583
|
+
* @returns {TemplateResult}
|
|
7584
|
+
* @private
|
|
7585
|
+
*/
|
|
7586
|
+
renderLayoutDefault() {
|
|
6949
7587
|
const classes = {
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
'auro-button--iconOnly': this.iconOnly,
|
|
6956
|
-
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
6957
|
-
'loading': this.loading
|
|
7588
|
+
"util_insetLg--squish": true,
|
|
7589
|
+
"auro-button": true,
|
|
7590
|
+
"icon-only": this.hideText,
|
|
7591
|
+
wrapper: true,
|
|
7592
|
+
loading: this.loading,
|
|
6958
7593
|
};
|
|
6959
7594
|
|
|
7595
|
+
const tag = this.buttonHref ? i$1`a` : i$1`button`;
|
|
7596
|
+
const part = this.buttonHref ? 'link' : 'button';
|
|
7597
|
+
|
|
6960
7598
|
return u$2`
|
|
6961
|
-
|
|
6962
|
-
part="
|
|
6963
|
-
aria-
|
|
6964
|
-
aria-
|
|
6965
|
-
|
|
6966
|
-
aria-expanded="${o(this.ariaexpanded)}"
|
|
6967
|
-
tabIndex="${o(this.tIndex)}"
|
|
7599
|
+
<${tag}
|
|
7600
|
+
part="${part}"
|
|
7601
|
+
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7602
|
+
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7603
|
+
tabindex="${o(this.tIndex || this.tabindex)}"
|
|
6968
7604
|
?autofocus="${this.autofocus}"
|
|
6969
|
-
class
|
|
7605
|
+
class=${e(classes)}
|
|
6970
7606
|
?disabled="${this.disabled || this.loading}"
|
|
6971
7607
|
?onDark="${this.onDark}"
|
|
6972
7608
|
title="${o(this.title ? this.title : undefined)}"
|
|
@@ -6975,28 +7611,36 @@ class AuroButton extends i$2 {
|
|
|
6975
7611
|
variant="${o(this.variant ? this.variant : undefined)}"
|
|
6976
7612
|
.value="${o(this.value ? this.value : undefined)}"
|
|
6977
7613
|
@click="${this.type === 'submit' ? this.surfaceSubmitEvent : undefined}"
|
|
7614
|
+
href="${o(this.buttonHref || undefined)}"
|
|
7615
|
+
target="${o(this.buttonTarget || undefined)}"
|
|
7616
|
+
rel="${o(this.buttonRel || undefined)}"
|
|
6978
7617
|
>
|
|
6979
7618
|
${o(this.loading ? u$2`<${this.loaderTag} pulse part="loader"></${this.loaderTag}>` : undefined)}
|
|
6980
7619
|
|
|
6981
7620
|
<span class="contentWrapper">
|
|
6982
7621
|
<span class="textSlot" part="text">
|
|
6983
|
-
|
|
6984
|
-
</span>
|
|
6985
|
-
|
|
6986
|
-
<span part="icon">
|
|
6987
|
-
<slot name="icon"></slot>
|
|
7622
|
+
<slot></slot>
|
|
6988
7623
|
</span>
|
|
6989
7624
|
</span>
|
|
6990
|
-
|
|
7625
|
+
</${tag}>
|
|
6991
7626
|
`;
|
|
6992
7627
|
}
|
|
7628
|
+
|
|
7629
|
+
/**
|
|
7630
|
+
* Renders the layout of the button.
|
|
7631
|
+
* @returns {TemplateResult}
|
|
7632
|
+
* @private
|
|
7633
|
+
*/
|
|
7634
|
+
renderLayout() {
|
|
7635
|
+
return this.renderLayoutDefault();
|
|
7636
|
+
}
|
|
6993
7637
|
}
|
|
6994
7638
|
|
|
6995
|
-
var buttonVersion = '
|
|
7639
|
+
var buttonVersion = '11.0.0';
|
|
6996
7640
|
|
|
6997
|
-
var colorCss = 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-
|
|
7641
|
+
var colorCss = 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-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6998
7642
|
|
|
6999
|
-
var styleCss = i$5`.helptext-wrapper{display:none;font-size:
|
|
7643
|
+
var styleCss = i$5`.helptext-wrapper{display:none;font-size:12px;font-weight:450;letter-spacing:0;line-height:16px}:host([large]) .helptext-wrapper{font-size:16px;font-weight:450;letter-spacing:0;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}`;
|
|
7000
7644
|
|
|
7001
7645
|
var tokensCss = i$5`:host{--ds-auro-helptext-color: var(--ds-basic-color-texticon-muted, #676767)}`;
|
|
7002
7646
|
|
|
@@ -7238,6 +7882,20 @@ class AuroInput extends BaseInput {
|
|
|
7238
7882
|
this.iconTag = versioning.generateTag('auro-formkit-input-icon', iconVersion, AuroIcon);
|
|
7239
7883
|
}
|
|
7240
7884
|
|
|
7885
|
+
static get properties() {
|
|
7886
|
+
return {
|
|
7887
|
+
...super.properties,
|
|
7888
|
+
|
|
7889
|
+
/**
|
|
7890
|
+
* @type {boolean}
|
|
7891
|
+
*/
|
|
7892
|
+
hideInputVisually: {
|
|
7893
|
+
type: Boolean,
|
|
7894
|
+
reflect: true,
|
|
7895
|
+
}
|
|
7896
|
+
};
|
|
7897
|
+
}
|
|
7898
|
+
|
|
7241
7899
|
static get styles() {
|
|
7242
7900
|
return [
|
|
7243
7901
|
i$5`${classicStyleCss}`,
|
|
@@ -7260,6 +7918,7 @@ class AuroInput extends BaseInput {
|
|
|
7260
7918
|
*/
|
|
7261
7919
|
get commonLabelClasses() {
|
|
7262
7920
|
return {
|
|
7921
|
+
'is-disabled': this.disabled,
|
|
7263
7922
|
'withValue': this.value && this.value.length > 0,
|
|
7264
7923
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7265
7924
|
};
|
|
@@ -7268,34 +7927,63 @@ class AuroInput extends BaseInput {
|
|
|
7268
7927
|
/**
|
|
7269
7928
|
* Returns classmap configuration for html5 inputs in all layouts.
|
|
7270
7929
|
* @private
|
|
7271
|
-
* @returns {object} - Returns classmap
|
|
7930
|
+
* @returns {object} - Returns classmap.
|
|
7272
7931
|
*/
|
|
7273
7932
|
get commonInputClasses() {
|
|
7274
7933
|
return {
|
|
7275
|
-
'util_displayHiddenVisually': this.
|
|
7934
|
+
'util_displayHiddenVisually': this.hideInputVisually !== undefined
|
|
7935
|
+
? this.hideInputVisually
|
|
7936
|
+
// eslint-disable-next-line no-warning-comments
|
|
7937
|
+
// TODO: refactor this to use a less brittle/forced solution.
|
|
7938
|
+
: this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7276
7939
|
};
|
|
7277
7940
|
}
|
|
7278
7941
|
|
|
7279
7942
|
/**
|
|
7280
|
-
* Returns classmap configuration for html5 inputs in
|
|
7943
|
+
* Returns classmap configuration for html5 inputs in each layout.
|
|
7281
7944
|
* @private
|
|
7282
|
-
* @
|
|
7945
|
+
* @returns {object} - Returns classmap.
|
|
7283
7946
|
*/
|
|
7284
7947
|
get legacyInputClasses() {
|
|
7285
7948
|
return {
|
|
7286
7949
|
...this.commonInputClasses,
|
|
7287
|
-
'util_displayHiddenVisually':
|
|
7950
|
+
'util_displayHiddenVisually':
|
|
7951
|
+
this.hideInputVisually !== undefined
|
|
7952
|
+
? this.hideInputVisually
|
|
7953
|
+
: !this.hasFocus && !this.value
|
|
7288
7954
|
};
|
|
7289
7955
|
}
|
|
7290
7956
|
|
|
7957
|
+
/**
|
|
7958
|
+
* Returns classmap configuration for wrapper elements in each layout.
|
|
7959
|
+
* @private
|
|
7960
|
+
* @returns {object} - Returns classmap.
|
|
7961
|
+
*/
|
|
7291
7962
|
get commonWrapperClasses() {
|
|
7292
7963
|
return {
|
|
7293
7964
|
'wrapper': true,
|
|
7965
|
+
'simple': this.simple,
|
|
7294
7966
|
'withValue': this.value && this.value.length > 0,
|
|
7295
7967
|
'hasFocus': this.hasFocus
|
|
7296
7968
|
};
|
|
7297
7969
|
}
|
|
7298
7970
|
|
|
7971
|
+
/**
|
|
7972
|
+
* Returns classmap configuration for accent elements in each layout.
|
|
7973
|
+
* @private
|
|
7974
|
+
* @returns {object} - Returns classmap.
|
|
7975
|
+
*/
|
|
7976
|
+
get commonAccentClasses() {
|
|
7977
|
+
return {
|
|
7978
|
+
'util_displayHidden': false
|
|
7979
|
+
};
|
|
7980
|
+
}
|
|
7981
|
+
|
|
7982
|
+
/**
|
|
7983
|
+
* Returns classmap configuration for helpText elements in each layout.
|
|
7984
|
+
* @private
|
|
7985
|
+
* @returns {object} - Returns classmap.
|
|
7986
|
+
*/
|
|
7299
7987
|
get helpTextClasses() {
|
|
7300
7988
|
return {
|
|
7301
7989
|
'helpTextWrapper': true,
|
|
@@ -7313,7 +8001,7 @@ class AuroInput extends BaseInput {
|
|
|
7313
8001
|
*
|
|
7314
8002
|
*/
|
|
7315
8003
|
static register(name = "auro-input") {
|
|
7316
|
-
AuroLibraryRuntimeUtils$
|
|
8004
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7317
8005
|
}
|
|
7318
8006
|
|
|
7319
8007
|
/**
|
|
@@ -7386,28 +8074,34 @@ class AuroInput extends BaseInput {
|
|
|
7386
8074
|
: this.commonInputClasses;
|
|
7387
8075
|
|
|
7388
8076
|
return u$2`
|
|
7389
|
-
<label for=${this.
|
|
8077
|
+
<label for=${this.inputId} class="${e(this.commonLabelClasses)}" part="label">
|
|
7390
8078
|
<slot name="label">
|
|
7391
8079
|
${this.label}
|
|
7392
8080
|
</slot>
|
|
8081
|
+
${this.required ? undefined : u$2`<slot name="optionalLabel"> (optional)</slot>`}
|
|
7393
8082
|
</label>
|
|
8083
|
+
|
|
8084
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
7394
8085
|
<input
|
|
7395
8086
|
@blur="${this.handleBlur}"
|
|
7396
8087
|
@focusin="${this.handleFocusin}"
|
|
7397
8088
|
@focusout="${this.handleFocusout}"
|
|
7398
8089
|
@input="${this.handleInput}"
|
|
8090
|
+
.placeholder=${this.placeholderStr}
|
|
8091
|
+
.role=${this.a11yRole}
|
|
7399
8092
|
?activeLabel="${this.activeLabel}"
|
|
7400
8093
|
?disabled="${this.disabled}"
|
|
7401
8094
|
?required="${this.required}"
|
|
7402
|
-
|
|
8095
|
+
aria-controls=${o(this.a11yControls)}
|
|
7403
8096
|
aria-describedby="${this.uniqueId}"
|
|
8097
|
+
aria-expanded=${o(this.a11yExpanded)}
|
|
7404
8098
|
aria-invalid="${this.validity !== 'valid'}"
|
|
7405
|
-
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7406
8099
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8100
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7407
8101
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7408
8102
|
class="${e(inputOverrideClasses)}"
|
|
7409
8103
|
id="${this.inputId}"
|
|
7410
|
-
|
|
8104
|
+
inputmode="${o(this.inputmode ? this.inputmode : undefined)}"
|
|
7411
8105
|
lang="${o(this.lang)}"
|
|
7412
8106
|
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
7413
8107
|
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
@@ -7415,7 +8109,8 @@ class AuroInput extends BaseInput {
|
|
|
7415
8109
|
part="input"
|
|
7416
8110
|
pattern="${o(this.definePattern())}"
|
|
7417
8111
|
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7418
|
-
type="${this.type ===
|
|
8112
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8113
|
+
/>
|
|
7419
8114
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
7420
8115
|
<div class="displayValueWrapper">
|
|
7421
8116
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
@@ -7437,11 +8132,12 @@ class AuroInput extends BaseInput {
|
|
|
7437
8132
|
?onDark="${this.onDark}"
|
|
7438
8133
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
7439
8134
|
class="notificationBtn clearBtn"
|
|
7440
|
-
|
|
7441
|
-
|
|
8135
|
+
shape="circle"
|
|
8136
|
+
size="sm"
|
|
8137
|
+
variant="ghost">
|
|
7442
8138
|
<${this.iconTag}
|
|
8139
|
+
?customColor="${this.onDark}"
|
|
7443
8140
|
category="interface"
|
|
7444
|
-
customColor
|
|
7445
8141
|
name="x-lg"
|
|
7446
8142
|
>
|
|
7447
8143
|
</${this.iconTag}>
|
|
@@ -7459,22 +8155,23 @@ class AuroInput extends BaseInput {
|
|
|
7459
8155
|
return u$2`
|
|
7460
8156
|
<div class="notification">
|
|
7461
8157
|
<${this.buttonTag}
|
|
7462
|
-
@click="${this.handleClickShowPassword}
|
|
8158
|
+
@click="${this.handleClickShowPassword}"
|
|
7463
8159
|
?onDark="${this.onDark}"
|
|
7464
|
-
aria-hidden="true"
|
|
7465
8160
|
class="notificationBtn passwordBtn"
|
|
7466
|
-
|
|
7467
|
-
|
|
8161
|
+
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8162
|
+
shape="circle"
|
|
8163
|
+
size="sm"
|
|
8164
|
+
variant="ghost">
|
|
7468
8165
|
<${this.iconTag}
|
|
8166
|
+
?customColor="${this.onDark}"
|
|
7469
8167
|
?hidden=${!this.showPassword}
|
|
7470
8168
|
category="interface"
|
|
7471
|
-
customColor
|
|
7472
8169
|
name="hide-password-stroke">
|
|
7473
8170
|
</${this.iconTag}>
|
|
7474
8171
|
<${this.iconTag}
|
|
8172
|
+
?customColor="${this.onDark}"
|
|
7475
8173
|
?hidden=${this.showPassword}
|
|
7476
8174
|
category="interface"
|
|
7477
|
-
customColor
|
|
7478
8175
|
name="view-password-stroke">
|
|
7479
8176
|
</${this.iconTag}>
|
|
7480
8177
|
</${this.buttonTag}>
|
|
@@ -7533,7 +8230,7 @@ class AuroInput extends BaseInput {
|
|
|
7533
8230
|
? u$2`
|
|
7534
8231
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
7535
8232
|
<p id="${this.uniqueId}" part="helpText">
|
|
7536
|
-
<slot name="
|
|
8233
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
7537
8234
|
</p>
|
|
7538
8235
|
</${this.helpTextTag}>
|
|
7539
8236
|
`
|
|
@@ -7549,24 +8246,30 @@ class AuroInput extends BaseInput {
|
|
|
7549
8246
|
}
|
|
7550
8247
|
|
|
7551
8248
|
/**
|
|
7552
|
-
* Returns HTML for the
|
|
8249
|
+
* Returns HTML for the classic layout.
|
|
7553
8250
|
* @private
|
|
7554
|
-
* @returns {import("lit").TemplateResult} - Returns HTML for the
|
|
8251
|
+
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
7555
8252
|
*/
|
|
7556
8253
|
renderLayoutClassic() {
|
|
8254
|
+
const classicClassMap = {
|
|
8255
|
+
...this.commonWrapperClasses,
|
|
8256
|
+
'thin': !this.simple
|
|
8257
|
+
};
|
|
8258
|
+
|
|
7557
8259
|
return u$2`
|
|
7558
8260
|
<div
|
|
7559
8261
|
@click="${this.handleClick}"
|
|
7560
|
-
class="${e(
|
|
8262
|
+
class="${e(classicClassMap)}"
|
|
7561
8263
|
part="wrapper">
|
|
7562
|
-
<div class="accents left">
|
|
8264
|
+
<div part="accent-left" class="accents left ${e(this.commonAccentClasses)}">
|
|
7563
8265
|
${this.renderHtmlTypeIcon()}
|
|
7564
8266
|
</div>
|
|
7565
8267
|
<div class="mainContent">
|
|
7566
8268
|
${this.renderHtmlInput(true)}
|
|
7567
8269
|
</div>
|
|
7568
|
-
<div class="accents right">
|
|
8270
|
+
<div part="accent-right" class="accents right ${e(this.commonAccentClasses)}">
|
|
7569
8271
|
${this.renderValidationErrorIconHtml()}
|
|
8272
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7570
8273
|
${this.hasValue ? u$2`
|
|
7571
8274
|
${!this.disabled && !this.readonly ? u$2`
|
|
7572
8275
|
${this.renderHtmlActionClear()}
|
|
@@ -7591,7 +8294,7 @@ class AuroInput extends BaseInput {
|
|
|
7591
8294
|
@click="${this.handleClick}"
|
|
7592
8295
|
class="${e(this.commonWrapperClasses)}"
|
|
7593
8296
|
part="wrapper">
|
|
7594
|
-
<div class="accents left">
|
|
8297
|
+
<div class="accents left ${this.commonAccentClasses}">
|
|
7595
8298
|
${this.layout.includes('left') ? u$2`
|
|
7596
8299
|
${this.renderValidationErrorIconHtml()}
|
|
7597
8300
|
` : undefined}
|
|
@@ -7599,7 +8302,7 @@ class AuroInput extends BaseInput {
|
|
|
7599
8302
|
<div class="mainContent">
|
|
7600
8303
|
${this.renderHtmlInput()}
|
|
7601
8304
|
</div>
|
|
7602
|
-
<div class="accents right">
|
|
8305
|
+
<div class="accents right ${this.commonAccentClasses}">
|
|
7603
8306
|
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
7604
8307
|
${this.renderValidationErrorIconHtml()}
|
|
7605
8308
|
` : undefined}
|