@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.14 → 0.0.0-pr624.16
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 +12 -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 +1022 -12
- package/components/bibtemplate/dist/registered.js +1022 -12
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.md +2 -2
- package/components/checkbox/demo/api.min.js +24 -19
- package/components/checkbox/demo/index.md +2 -2
- package/components/checkbox/demo/index.min.js +24 -19
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +3 -3
- package/components/checkbox/dist/index.js +24 -19
- package/components/checkbox/dist/registered.js +24 -19
- package/components/combobox/demo/api.md +52 -0
- package/components/combobox/demo/api.min.js +2059 -651
- package/components/combobox/demo/index.md +6 -0
- package/components/combobox/demo/index.min.js +2059 -651
- package/components/combobox/dist/auro-combobox.d.ts +4 -4
- package/components/combobox/dist/index.js +1978 -629
- package/components/combobox/dist/registered.js +1978 -629
- package/components/counter/demo/api.md +21 -19
- package/components/counter/demo/api.min.js +2326 -539
- package/components/counter/demo/index.md +99 -34
- package/components/counter/demo/index.min.js +2326 -539
- package/components/counter/dist/auro-counter-button.d.ts +2 -0
- package/components/counter/dist/auro-counter-group.d.ts +92 -1
- package/components/counter/dist/helptextVersion.d.ts +2 -0
- package/components/counter/dist/iconVersion.d.ts +1 -1
- package/components/counter/dist/index.js +2326 -539
- package/components/counter/dist/registered.js +2326 -539
- package/components/datepicker/demo/api.md +3 -1
- package/components/datepicker/demo/api.min.js +5402 -3158
- package/components/datepicker/demo/index.md +6 -1
- package/components/datepicker/demo/index.min.js +5402 -3158
- package/components/datepicker/dist/auro-datepicker.d.ts +17 -7
- package/components/datepicker/dist/iconVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +5402 -3158
- package/components/datepicker/dist/registered.js +5402 -3158
- package/components/dropdown/demo/api.md +3 -4
- package/components/dropdown/demo/api.min.js +69 -119
- package/components/dropdown/demo/index.md +57 -9
- package/components/dropdown/demo/index.min.js +69 -119
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -8
- package/components/dropdown/dist/auro-dropdownBib.d.ts +14 -0
- package/components/dropdown/dist/index.js +69 -119
- package/components/dropdown/dist/registered.js +69 -119
- package/components/input/demo/api.md +12 -5
- package/components/input/demo/api.min.js +665 -285
- package/components/input/demo/index.min.js +665 -285
- package/components/input/dist/auro-input.d.ts +6 -0
- package/components/input/dist/base-input.d.ts +29 -6
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/iconVersion.d.ts +1 -1
- package/components/input/dist/index.js +665 -285
- package/components/input/dist/registered.js +665 -285
- package/components/layoutElement/dist/index.js +13 -10
- package/components/menu/demo/api.html +38 -0
- package/components/menu/demo/api.md +63 -2
- package/components/menu/demo/api.min.js +190 -36
- package/components/menu/demo/index.min.js +190 -36
- package/components/menu/dist/auro-menu.d.ts +22 -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 +190 -36
- package/components/menu/dist/registered.js +190 -36
- package/components/menu/dist/styles/default/tokens-css.d.ts +2 -0
- package/components/radio/demo/api.min.js +4 -2
- package/components/radio/demo/index.min.js +4 -2
- package/components/radio/dist/auro-radio.d.ts +1 -1
- package/components/radio/dist/index.js +4 -2
- package/components/radio/dist/registered.js +4 -2
- package/components/select/demo/api.md +5 -5
- package/components/select/demo/api.min.js +1412 -293
- package/components/select/demo/index.md +42 -1
- package/components/select/demo/index.min.js +1412 -293
- package/components/select/dist/auro-select.d.ts +8 -8
- package/components/select/dist/index.js +1321 -261
- package/components/select/dist/registered.js +1321 -261
- package/package.json +2 -2
- /package/components/{menu/dist/styles/color-menu-css.d.ts → counter/dist/styles/shapeSize-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{color-menuoption-css.d.ts → default/color-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menu-css.d.ts → default/color-menuoption-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{style-menuoption-css.d.ts → default/style-menu-css.d.ts} +0 -0
- /package/components/menu/dist/styles/{tokens-css.d.ts → default/style-menuoption-css.d.ts} +0 -0
|
@@ -116,9 +116,9 @@ 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`.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}.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;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}.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;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}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;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}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;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}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-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:hidden;width:100%;padding:0;border:0;background:unset;outline:none;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
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
|
|
|
@@ -126,15 +126,15 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
126
126
|
|
|
127
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-advanced-color-state-error-inverse, #f9a4a8);--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: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;padding-bottom:8px;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 .
|
|
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;padding-bottom:8px;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.withValue{justify-content:flex-start}.layout-classic:focus-within{justify-content:flex-start}.layout-classic:focus-within .alertNotification{display:none}`;
|
|
130
130
|
|
|
131
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-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}:host([layout*=classic][ondark]:is([validity]:not([validity=valid]))) .layout-classic:focus-within{--ds-auro-input-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-input-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
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`: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 .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}.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
|
/**
|
|
@@ -4554,7 +4558,7 @@ const {
|
|
|
4554
4558
|
|
|
4555
4559
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4556
4560
|
|
|
4557
|
-
let AuroLibraryRuntimeUtils$
|
|
4561
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4558
4562
|
|
|
4559
4563
|
/* eslint-disable jsdoc/require-param */
|
|
4560
4564
|
|
|
@@ -4624,7 +4628,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
4624
4628
|
class AuroFormValidation {
|
|
4625
4629
|
|
|
4626
4630
|
constructor() {
|
|
4627
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4631
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4628
4632
|
}
|
|
4629
4633
|
|
|
4630
4634
|
/**
|
|
@@ -4903,7 +4907,9 @@ class AuroFormValidation {
|
|
|
4903
4907
|
elem.validity = this.auroInputElements[0].validity;
|
|
4904
4908
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4905
4909
|
|
|
4906
|
-
|
|
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) {
|
|
4907
4913
|
elem.validity = this.auroInputElements[1].validity;
|
|
4908
4914
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4909
4915
|
}
|
|
@@ -4983,7 +4989,7 @@ class AuroFormValidation {
|
|
|
4983
4989
|
}
|
|
4984
4990
|
}
|
|
4985
4991
|
|
|
4986
|
-
let AuroElement$
|
|
4992
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
4987
4993
|
static get properties() {
|
|
4988
4994
|
return {
|
|
4989
4995
|
|
|
@@ -5018,18 +5024,21 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5018
5024
|
}
|
|
5019
5025
|
|
|
5020
5026
|
resetShapeClasses() {
|
|
5021
|
-
|
|
5022
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5027
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
5023
5028
|
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5029
|
+
if (wrapper) {
|
|
5030
|
+
wrapper.classList.forEach((className) => {
|
|
5031
|
+
if (className.startsWith('shape-')) {
|
|
5032
|
+
wrapper.classList.remove(className);
|
|
5033
|
+
}
|
|
5034
|
+
});
|
|
5030
5035
|
|
|
5031
|
-
|
|
5032
|
-
|
|
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');
|
|
5033
5042
|
}
|
|
5034
5043
|
}
|
|
5035
5044
|
|
|
@@ -5087,17 +5096,21 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5087
5096
|
*
|
|
5088
5097
|
* @slot helptext - Sets the help text displayed below the input.
|
|
5089
5098
|
* @slot label - Sets the label text for the input.
|
|
5099
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
5090
5100
|
*
|
|
5091
5101
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
5092
5102
|
* @csspart label - Use for customizing the style of the label element
|
|
5093
5103
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
5104
|
+
* @csspart input - Use for customizing the style of the input element
|
|
5094
5105
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
5095
5106
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
5107
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
5108
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
5096
5109
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
5097
5110
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
5098
5111
|
*/
|
|
5099
5112
|
|
|
5100
|
-
class BaseInput extends AuroElement$
|
|
5113
|
+
class BaseInput extends AuroElement$2 {
|
|
5101
5114
|
|
|
5102
5115
|
constructor() {
|
|
5103
5116
|
super();
|
|
@@ -5190,7 +5203,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5190
5203
|
*/
|
|
5191
5204
|
a11yRole: {
|
|
5192
5205
|
type: String,
|
|
5193
|
-
attribute: true,
|
|
5194
5206
|
reflect: true
|
|
5195
5207
|
},
|
|
5196
5208
|
|
|
@@ -5199,7 +5211,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5199
5211
|
*/
|
|
5200
5212
|
a11yExpanded: {
|
|
5201
5213
|
type: Boolean,
|
|
5202
|
-
attribute: true,
|
|
5203
5214
|
reflect: true
|
|
5204
5215
|
},
|
|
5205
5216
|
|
|
@@ -5208,7 +5219,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5208
5219
|
*/
|
|
5209
5220
|
a11yControls: {
|
|
5210
5221
|
type: String,
|
|
5211
|
-
attribute: true,
|
|
5212
5222
|
reflect: true
|
|
5213
5223
|
},
|
|
5214
5224
|
|
|
@@ -5224,7 +5234,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5224
5234
|
* 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].
|
|
5225
5235
|
*/
|
|
5226
5236
|
autocapitalize: {
|
|
5227
|
-
type: String
|
|
5237
|
+
type: String,
|
|
5238
|
+
reflect: true
|
|
5228
5239
|
},
|
|
5229
5240
|
|
|
5230
5241
|
/**
|
|
@@ -5239,7 +5250,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5239
5250
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5240
5251
|
*/
|
|
5241
5252
|
autocorrect: {
|
|
5242
|
-
type: String
|
|
5253
|
+
type: String,
|
|
5254
|
+
reflect: true
|
|
5243
5255
|
},
|
|
5244
5256
|
|
|
5245
5257
|
/**
|
|
@@ -5284,7 +5296,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5284
5296
|
/** Exposes inputmode attribute for input. */
|
|
5285
5297
|
inputmode: {
|
|
5286
5298
|
type: String,
|
|
5287
|
-
attribute: true,
|
|
5288
5299
|
reflect: true
|
|
5289
5300
|
},
|
|
5290
5301
|
|
|
@@ -5292,7 +5303,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5292
5303
|
* Defines the language of an element.
|
|
5293
5304
|
*/
|
|
5294
5305
|
lang: {
|
|
5295
|
-
type: String
|
|
5306
|
+
type: String,
|
|
5307
|
+
reflect: true
|
|
5296
5308
|
},
|
|
5297
5309
|
|
|
5298
5310
|
/**
|
|
@@ -5306,7 +5318,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5306
5318
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5307
5319
|
*/
|
|
5308
5320
|
maxLength: {
|
|
5309
|
-
type: Number
|
|
5321
|
+
type: Number,
|
|
5322
|
+
reflect: true
|
|
5310
5323
|
},
|
|
5311
5324
|
|
|
5312
5325
|
/**
|
|
@@ -5320,14 +5333,25 @@ class BaseInput extends AuroElement$1 {
|
|
|
5320
5333
|
* 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`.
|
|
5321
5334
|
*/
|
|
5322
5335
|
minLength: {
|
|
5323
|
-
type: Number
|
|
5336
|
+
type: Number,
|
|
5337
|
+
reflect: true
|
|
5324
5338
|
},
|
|
5325
5339
|
|
|
5326
5340
|
/**
|
|
5327
5341
|
* Populates the `name` attribute on the input.
|
|
5328
5342
|
*/
|
|
5329
5343
|
name: {
|
|
5330
|
-
type: String
|
|
5344
|
+
type: String,
|
|
5345
|
+
reflect: true
|
|
5346
|
+
},
|
|
5347
|
+
|
|
5348
|
+
/**
|
|
5349
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5350
|
+
* hides accents.
|
|
5351
|
+
*/
|
|
5352
|
+
nested: {
|
|
5353
|
+
type: Boolean,
|
|
5354
|
+
reflect: true
|
|
5331
5355
|
},
|
|
5332
5356
|
|
|
5333
5357
|
/**
|
|
@@ -5358,7 +5382,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5358
5382
|
* Define custom placeholder text, only supported by date input formats.
|
|
5359
5383
|
*/
|
|
5360
5384
|
placeholder: {
|
|
5361
|
-
type: String
|
|
5385
|
+
type: String,
|
|
5386
|
+
reflect: true
|
|
5362
5387
|
},
|
|
5363
5388
|
|
|
5364
5389
|
/**
|
|
@@ -5447,6 +5472,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
5447
5472
|
type: String
|
|
5448
5473
|
},
|
|
5449
5474
|
|
|
5475
|
+
/**
|
|
5476
|
+
* borderless
|
|
5477
|
+
*/
|
|
5478
|
+
simple: {
|
|
5479
|
+
type: Boolean,
|
|
5480
|
+
reflect: true
|
|
5481
|
+
},
|
|
5482
|
+
|
|
5450
5483
|
/**
|
|
5451
5484
|
* Custom help text message for email type validity.
|
|
5452
5485
|
*/
|
|
@@ -5458,7 +5491,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5458
5491
|
* 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`.
|
|
5459
5492
|
*/
|
|
5460
5493
|
spellcheck: {
|
|
5461
|
-
type: String
|
|
5494
|
+
type: String,
|
|
5495
|
+
reflect: true
|
|
5462
5496
|
},
|
|
5463
5497
|
|
|
5464
5498
|
/**
|
|
@@ -5473,7 +5507,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5473
5507
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5474
5508
|
*/
|
|
5475
5509
|
value: {
|
|
5476
|
-
type: String
|
|
5510
|
+
type: String,
|
|
5511
|
+
reflect: true
|
|
5477
5512
|
},
|
|
5478
5513
|
|
|
5479
5514
|
/**
|
|
@@ -5753,7 +5788,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5753
5788
|
|
|
5754
5789
|
/**
|
|
5755
5790
|
* Function to set element focus.
|
|
5756
|
-
* @private
|
|
5757
5791
|
* @return {void}
|
|
5758
5792
|
*/
|
|
5759
5793
|
focus() {
|
|
@@ -5971,8 +6005,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
5971
6005
|
|
|
5972
6006
|
this.requestUpdate();
|
|
5973
6007
|
|
|
5974
|
-
|
|
5975
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
6008
|
+
return this.placeholderStr;
|
|
5976
6009
|
}
|
|
5977
6010
|
|
|
5978
6011
|
/**
|
|
@@ -6139,7 +6172,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
6139
6172
|
// See LICENSE in the project root for license information.
|
|
6140
6173
|
|
|
6141
6174
|
|
|
6142
|
-
|
|
6175
|
+
class AuroDependencyVersioning {
|
|
6143
6176
|
|
|
6144
6177
|
/**
|
|
6145
6178
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -6173,7 +6206,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6173
6206
|
|
|
6174
6207
|
return tag;
|
|
6175
6208
|
}
|
|
6176
|
-
}
|
|
6209
|
+
}
|
|
6177
6210
|
|
|
6178
6211
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6179
6212
|
// See LICENSE in the project root for license information.
|
|
@@ -6185,7 +6218,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6185
6218
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6186
6219
|
*/
|
|
6187
6220
|
|
|
6188
|
-
class AuroElement extends i$2 {
|
|
6221
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
6189
6222
|
|
|
6190
6223
|
// function to define props used within the scope of this component
|
|
6191
6224
|
static get properties() {
|
|
@@ -6209,7 +6242,7 @@ class AuroElement extends i$2 {
|
|
|
6209
6242
|
|
|
6210
6243
|
return 'false'
|
|
6211
6244
|
}
|
|
6212
|
-
}
|
|
6245
|
+
};
|
|
6213
6246
|
|
|
6214
6247
|
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>"};
|
|
6215
6248
|
|
|
@@ -6253,7 +6286,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6253
6286
|
*/
|
|
6254
6287
|
|
|
6255
6288
|
// build the component class
|
|
6256
|
-
class BaseIcon extends AuroElement {
|
|
6289
|
+
class BaseIcon extends AuroElement$1 {
|
|
6257
6290
|
constructor() {
|
|
6258
6291
|
super();
|
|
6259
6292
|
this.onDark = false;
|
|
@@ -6336,7 +6369,7 @@ var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6336
6369
|
|
|
6337
6370
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6338
6371
|
|
|
6339
|
-
let AuroLibraryRuntimeUtils$
|
|
6372
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6340
6373
|
|
|
6341
6374
|
/* eslint-disable jsdoc/require-param */
|
|
6342
6375
|
|
|
@@ -6418,7 +6451,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6418
6451
|
*/
|
|
6419
6452
|
privateDefaults() {
|
|
6420
6453
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6421
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6454
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6422
6455
|
}
|
|
6423
6456
|
|
|
6424
6457
|
// function to define props used within the scope of this component
|
|
@@ -6500,7 +6533,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6500
6533
|
*
|
|
6501
6534
|
*/
|
|
6502
6535
|
static register(name = "auro-icon") {
|
|
6503
|
-
AuroLibraryRuntimeUtils$
|
|
6536
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6504
6537
|
}
|
|
6505
6538
|
|
|
6506
6539
|
connectedCallback() {
|
|
@@ -6521,8 +6554,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6521
6554
|
async firstUpdated() {
|
|
6522
6555
|
await super.firstUpdated();
|
|
6523
6556
|
|
|
6524
|
-
|
|
6525
|
-
|
|
6557
|
+
/**
|
|
6558
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6559
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6560
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6561
|
+
*/
|
|
6562
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6526
6563
|
const svgDesc = this.svg.querySelector('desc');
|
|
6527
6564
|
|
|
6528
6565
|
if (svgDesc) {
|
|
@@ -6566,123 +6603,481 @@ class AuroIcon extends BaseIcon {
|
|
|
6566
6603
|
}
|
|
6567
6604
|
}
|
|
6568
6605
|
|
|
6569
|
-
var iconVersion = '8.0.
|
|
6606
|
+
var iconVersion = '8.0.4';
|
|
6570
6607
|
|
|
6571
|
-
|
|
6572
|
-
|
|
6608
|
+
/**
|
|
6609
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6610
|
+
*/
|
|
6611
|
+
const _observers = new WeakMap();
|
|
6573
6612
|
|
|
6613
|
+
/**
|
|
6614
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6615
|
+
* Structure: {
|
|
6616
|
+
* host: {
|
|
6617
|
+
* matchers: Set<Function>,
|
|
6618
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6619
|
+
* }
|
|
6620
|
+
* }
|
|
6621
|
+
*/
|
|
6622
|
+
const _transportConfig = new WeakMap();
|
|
6574
6623
|
|
|
6575
|
-
|
|
6624
|
+
/**
|
|
6625
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6626
|
+
*
|
|
6627
|
+
* @param {Object} params - The parameters for the function.
|
|
6628
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6629
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6630
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6631
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6632
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6633
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6634
|
+
*/
|
|
6635
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6636
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6637
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6638
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6639
|
+
}
|
|
6576
6640
|
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
6582
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6583
|
-
*/
|
|
6584
|
-
generateElementName(baseName, version) {
|
|
6585
|
-
let result = baseName;
|
|
6641
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6642
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6643
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6644
|
+
}
|
|
6586
6645
|
|
|
6587
|
-
|
|
6588
|
-
|
|
6646
|
+
// Guard Clause: Ensure match is a function
|
|
6647
|
+
if (typeof match !== 'function') {
|
|
6648
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6649
|
+
}
|
|
6589
6650
|
|
|
6590
|
-
|
|
6651
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6652
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6653
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6591
6654
|
}
|
|
6655
|
+
|
|
6656
|
+
// Register this transport and get cleanup function
|
|
6657
|
+
return _registerTransport({
|
|
6658
|
+
host,
|
|
6659
|
+
target,
|
|
6660
|
+
matcher: match,
|
|
6661
|
+
removeOriginal
|
|
6662
|
+
});
|
|
6663
|
+
};
|
|
6592
6664
|
|
|
6593
|
-
|
|
6594
|
-
|
|
6595
|
-
|
|
6596
|
-
|
|
6597
|
-
|
|
6598
|
-
|
|
6599
|
-
|
|
6600
|
-
|
|
6601
|
-
|
|
6665
|
+
/**
|
|
6666
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6667
|
+
*
|
|
6668
|
+
* @param {Object} params - The parameters object.
|
|
6669
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6670
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6671
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6672
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6673
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6674
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6675
|
+
* @private
|
|
6676
|
+
*/
|
|
6677
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6678
|
+
// Initialize config for this host if it doesn't exist
|
|
6679
|
+
if (!_transportConfig.has(host)) {
|
|
6680
|
+
_transportConfig.set(host, {
|
|
6681
|
+
matchers: new Set(),
|
|
6682
|
+
targets: new Map()
|
|
6683
|
+
});
|
|
6684
|
+
}
|
|
6602
6685
|
|
|
6603
|
-
|
|
6604
|
-
|
|
6686
|
+
const config = _transportConfig.get(host);
|
|
6687
|
+
|
|
6688
|
+
// Add the matcher to the set of matchers for this host
|
|
6689
|
+
config.matchers.add(matcher);
|
|
6690
|
+
|
|
6691
|
+
// Initialize target entry if it doesn't exist
|
|
6692
|
+
if (!config.targets.has(target)) {
|
|
6693
|
+
config.targets.set(target, new Map());
|
|
6694
|
+
}
|
|
6695
|
+
|
|
6696
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6697
|
+
config.targets.get(target).set(matcher, {
|
|
6698
|
+
removeOriginal,
|
|
6699
|
+
currentAttributes: new Map()
|
|
6700
|
+
});
|
|
6701
|
+
|
|
6702
|
+
// Perform initial attribute transport
|
|
6703
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6704
|
+
|
|
6705
|
+
// Attach observer
|
|
6706
|
+
_attachObserver(host);
|
|
6707
|
+
|
|
6708
|
+
// Return cleanup function and utility functions
|
|
6709
|
+
return {
|
|
6710
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6711
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6712
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6713
|
+
}
|
|
6714
|
+
};
|
|
6715
|
+
|
|
6716
|
+
/**
|
|
6717
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6718
|
+
*
|
|
6719
|
+
* @param {HTMLElement} host - The host element
|
|
6720
|
+
* @param {HTMLElement} target - The target element
|
|
6721
|
+
* @param {Function} matcher - The matcher function
|
|
6722
|
+
* @private
|
|
6723
|
+
*/
|
|
6724
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6725
|
+
const config = _transportConfig.get(host);
|
|
6726
|
+
if (!config) return;
|
|
6727
|
+
|
|
6728
|
+
// Remove this matcher from this target
|
|
6729
|
+
const targetMatchers = config.targets.get(target);
|
|
6730
|
+
if (targetMatchers) {
|
|
6731
|
+
targetMatchers.delete(matcher);
|
|
6732
|
+
|
|
6733
|
+
// If this target has no more matchers, remove it
|
|
6734
|
+
if (targetMatchers.size === 0) {
|
|
6735
|
+
config.targets.delete(target);
|
|
6605
6736
|
}
|
|
6737
|
+
}
|
|
6738
|
+
|
|
6739
|
+
// Check if this matcher is still used by any target
|
|
6740
|
+
let matcherStillUsed = false;
|
|
6741
|
+
for (const matcherMap of config.targets.values()) {
|
|
6742
|
+
if (matcherMap.has(matcher)) {
|
|
6743
|
+
matcherStillUsed = true;
|
|
6744
|
+
break;
|
|
6745
|
+
}
|
|
6746
|
+
}
|
|
6747
|
+
|
|
6748
|
+
// If not used anymore, remove from matchers set
|
|
6749
|
+
if (!matcherStillUsed) {
|
|
6750
|
+
config.matchers.delete(matcher);
|
|
6751
|
+
}
|
|
6752
|
+
|
|
6753
|
+
// If no more targets or matchers, detach observer
|
|
6754
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6755
|
+
_detachObserver(host);
|
|
6756
|
+
}
|
|
6757
|
+
};
|
|
6606
6758
|
|
|
6607
|
-
|
|
6759
|
+
/**
|
|
6760
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6761
|
+
*
|
|
6762
|
+
* @param {Object} params - The parameters object.
|
|
6763
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6764
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6765
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6766
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6767
|
+
* @returns {void}
|
|
6768
|
+
* @private
|
|
6769
|
+
*/
|
|
6770
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6771
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6772
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6773
|
+
.filter(attr => matcher(attr))
|
|
6774
|
+
.reduce((acc, attr) => {
|
|
6775
|
+
acc[attr] = host.getAttribute(attr);
|
|
6776
|
+
return acc;
|
|
6777
|
+
}, {});
|
|
6778
|
+
|
|
6779
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6780
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6781
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6782
|
+
target.setAttribute(key, value);
|
|
6783
|
+
if (removeOriginal) {
|
|
6784
|
+
host.removeAttribute(key);
|
|
6785
|
+
}
|
|
6786
|
+
});
|
|
6787
|
+
};
|
|
6788
|
+
|
|
6789
|
+
/**
|
|
6790
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6791
|
+
*
|
|
6792
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6793
|
+
* @returns {MutationObserver} The observer instance.
|
|
6794
|
+
* @private
|
|
6795
|
+
*/
|
|
6796
|
+
const _attachObserver = (host) => {
|
|
6797
|
+
// If an observer for this host already exists, return it
|
|
6798
|
+
if (_observers.has(host)) {
|
|
6799
|
+
return _observers.get(host);
|
|
6800
|
+
}
|
|
6801
|
+
|
|
6802
|
+
// Create a new MutationObserver
|
|
6803
|
+
const observer = new MutationObserver((mutations) => {
|
|
6804
|
+
const config = _transportConfig.get(host);
|
|
6805
|
+
if (!config) return;
|
|
6806
|
+
|
|
6807
|
+
// For each mutation affecting attributes
|
|
6808
|
+
mutations
|
|
6809
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6810
|
+
.forEach(mutation => {
|
|
6811
|
+
const attributeName = mutation.attributeName;
|
|
6812
|
+
|
|
6813
|
+
// Find matchers that care about this attribute
|
|
6814
|
+
for (const matcher of config.matchers) {
|
|
6815
|
+
if (matcher(attributeName)) {
|
|
6816
|
+
// For each target that uses this matcher
|
|
6817
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6818
|
+
if (matcherConfigs.has(matcher)) {
|
|
6819
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6820
|
+
_transportAttributes({
|
|
6821
|
+
host,
|
|
6822
|
+
target,
|
|
6823
|
+
matcher,
|
|
6824
|
+
removeOriginal
|
|
6825
|
+
});
|
|
6826
|
+
}
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6829
|
+
}
|
|
6830
|
+
});
|
|
6831
|
+
});
|
|
6832
|
+
|
|
6833
|
+
// Start observing attribute changes
|
|
6834
|
+
observer.observe(host, { attributes: true });
|
|
6835
|
+
|
|
6836
|
+
// Store the observer
|
|
6837
|
+
_observers.set(host, observer);
|
|
6838
|
+
|
|
6839
|
+
return observer;
|
|
6840
|
+
};
|
|
6841
|
+
|
|
6842
|
+
/**
|
|
6843
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6844
|
+
*
|
|
6845
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6846
|
+
* @private
|
|
6847
|
+
*/
|
|
6848
|
+
const _detachObserver = (host) => {
|
|
6849
|
+
if (_observers.has(host)) {
|
|
6850
|
+
const observer = _observers.get(host);
|
|
6851
|
+
observer.disconnect();
|
|
6852
|
+
_observers.delete(host);
|
|
6608
6853
|
}
|
|
6609
|
-
|
|
6854
|
+
|
|
6855
|
+
// Clean up the transport config as well
|
|
6856
|
+
if (_transportConfig.has(host)) {
|
|
6857
|
+
_transportConfig.delete(host);
|
|
6858
|
+
}
|
|
6859
|
+
};
|
|
6610
6860
|
|
|
6611
|
-
|
|
6612
|
-
|
|
6861
|
+
/**
|
|
6862
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6863
|
+
* @param {HTMLElement} host - The host element
|
|
6864
|
+
* @param {HTMLElement} target - The target element
|
|
6865
|
+
* @param {Function} matcher - The matcher function
|
|
6866
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6867
|
+
* @private
|
|
6868
|
+
*/
|
|
6869
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6870
|
+
const config = _transportConfig.get(host);
|
|
6871
|
+
if (!config) return undefined;
|
|
6872
|
+
|
|
6873
|
+
const targetMatchers = config.targets.get(target);
|
|
6874
|
+
if (!targetMatchers) return undefined;
|
|
6875
|
+
|
|
6876
|
+
return targetMatchers.get(matcher);
|
|
6877
|
+
};
|
|
6613
6878
|
|
|
6614
|
-
|
|
6879
|
+
/**
|
|
6880
|
+
* Sets an observed attribute value
|
|
6881
|
+
* @param {HTMLElement} host - The host element
|
|
6882
|
+
* @param {HTMLElement} target - The target element
|
|
6883
|
+
* @param {Function} matcher - The matcher function
|
|
6884
|
+
* @param {string} key - The attribute name
|
|
6885
|
+
* @param {string} value - The attribute value
|
|
6886
|
+
* @private
|
|
6887
|
+
*/
|
|
6888
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6889
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6890
|
+
if (matcherConfig) {
|
|
6891
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6892
|
+
}
|
|
6893
|
+
};
|
|
6615
6894
|
|
|
6616
|
-
|
|
6895
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6896
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6897
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6898
|
+
return undefined;
|
|
6899
|
+
};
|
|
6617
6900
|
|
|
6618
|
-
|
|
6901
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6902
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6903
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6904
|
+
return [];
|
|
6905
|
+
};
|
|
6619
6906
|
|
|
6620
|
-
|
|
6907
|
+
const _matchers = {
|
|
6908
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6909
|
+
'role': attr => attr.match(/^role$/)
|
|
6910
|
+
};
|
|
6911
|
+
|
|
6912
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6913
|
+
return transportAttributes({
|
|
6914
|
+
host,
|
|
6915
|
+
target,
|
|
6916
|
+
match: attr => {
|
|
6917
|
+
for (const key in _matchers) {
|
|
6918
|
+
if (_matchers[key](attr)) return true;
|
|
6919
|
+
}
|
|
6920
|
+
return false;
|
|
6921
|
+
},
|
|
6922
|
+
removeOriginal
|
|
6923
|
+
});
|
|
6924
|
+
};
|
|
6925
|
+
|
|
6926
|
+
class AuroElement extends i$2 {
|
|
6621
6927
|
|
|
6622
6928
|
/**
|
|
6623
|
-
*
|
|
6624
|
-
* @
|
|
6625
|
-
* @
|
|
6626
|
-
* @
|
|
6929
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6930
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6931
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6932
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6933
|
+
* @private
|
|
6627
6934
|
*/
|
|
6628
|
-
|
|
6629
|
-
|
|
6630
|
-
|
|
6935
|
+
attributeWatcher;
|
|
6936
|
+
|
|
6937
|
+
static get properties() {
|
|
6938
|
+
return {
|
|
6939
|
+
|
|
6940
|
+
/**
|
|
6941
|
+
* Defines the layout of an element.
|
|
6942
|
+
* @default {'default'}
|
|
6943
|
+
*/
|
|
6944
|
+
layout: {
|
|
6945
|
+
type: String,
|
|
6946
|
+
attribute: "layout",
|
|
6947
|
+
reflect: true
|
|
6948
|
+
},
|
|
6949
|
+
|
|
6950
|
+
/**
|
|
6951
|
+
* Defines the shape of an element.
|
|
6952
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6953
|
+
* @default {'default'}
|
|
6954
|
+
*/
|
|
6955
|
+
shape: {
|
|
6956
|
+
type: String,
|
|
6957
|
+
attribute: "shape",
|
|
6958
|
+
reflect: true
|
|
6959
|
+
},
|
|
6960
|
+
|
|
6961
|
+
/**
|
|
6962
|
+
* Defines the size of an element.
|
|
6963
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6964
|
+
* @default {'md'}
|
|
6965
|
+
*/
|
|
6966
|
+
size: {
|
|
6967
|
+
type: String,
|
|
6968
|
+
attribute: "size",
|
|
6969
|
+
reflect: true
|
|
6970
|
+
},
|
|
6971
|
+
|
|
6972
|
+
/**
|
|
6973
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6974
|
+
* @default {false}
|
|
6975
|
+
*/
|
|
6976
|
+
onDark: {
|
|
6977
|
+
type: Boolean,
|
|
6978
|
+
attribute: "ondark",
|
|
6979
|
+
reflect: true
|
|
6980
|
+
},
|
|
6981
|
+
|
|
6982
|
+
/**
|
|
6983
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6984
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6985
|
+
* @type {HTMLElement|null}
|
|
6986
|
+
* @default {null}
|
|
6987
|
+
* @private
|
|
6988
|
+
*/
|
|
6989
|
+
wrapper: {
|
|
6990
|
+
type: HTMLElement,
|
|
6991
|
+
attribute: false,
|
|
6992
|
+
reflect: false
|
|
6993
|
+
}
|
|
6994
|
+
};
|
|
6995
|
+
}
|
|
6996
|
+
|
|
6997
|
+
|
|
6998
|
+
|
|
6999
|
+
resetShapeClasses() {
|
|
7000
|
+
if (this.shape && this.size) {
|
|
7001
|
+
|
|
7002
|
+
if (this.wrapper) {
|
|
7003
|
+
this.wrapper.classList.forEach((className) => {
|
|
7004
|
+
if (className.startsWith('shape-')) {
|
|
7005
|
+
this.wrapper.classList.remove(className);
|
|
7006
|
+
}
|
|
7007
|
+
});
|
|
7008
|
+
|
|
7009
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
7010
|
+
}
|
|
6631
7011
|
}
|
|
6632
7012
|
}
|
|
6633
7013
|
|
|
6634
|
-
|
|
6635
|
-
|
|
6636
|
-
|
|
6637
|
-
|
|
6638
|
-
|
|
6639
|
-
|
|
6640
|
-
|
|
6641
|
-
|
|
6642
|
-
|
|
6643
|
-
|
|
6644
|
-
|
|
6645
|
-
|
|
6646
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6647
|
-
) {
|
|
6648
|
-
return __Closest(base);
|
|
7014
|
+
resetLayoutClasses() {
|
|
7015
|
+
if (this.layout) {
|
|
7016
|
+
if (this.wrapper) {
|
|
7017
|
+
this.wrapper.classList.forEach((className) => {
|
|
7018
|
+
if (className.startsWith('layout-')) {
|
|
7019
|
+
this.wrapper.classList.remove(className);
|
|
7020
|
+
}
|
|
7021
|
+
});
|
|
7022
|
+
|
|
7023
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
7024
|
+
}
|
|
7025
|
+
}
|
|
6649
7026
|
}
|
|
6650
|
-
/* eslint-enable jsdoc/require-param */
|
|
6651
7027
|
|
|
6652
|
-
|
|
6653
|
-
|
|
6654
|
-
|
|
6655
|
-
|
|
6656
|
-
* @returns {void}
|
|
6657
|
-
*/
|
|
6658
|
-
handleComponentTagRename(elem, tagName) {
|
|
6659
|
-
const tag = tagName.toLowerCase();
|
|
6660
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7028
|
+
updateComponentArchitecture() {
|
|
7029
|
+
this.resetLayoutClasses();
|
|
7030
|
+
this.resetShapeClasses();
|
|
7031
|
+
}
|
|
6661
7032
|
|
|
6662
|
-
|
|
6663
|
-
|
|
7033
|
+
updated(changedProperties) {
|
|
7034
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
7035
|
+
this.updateComponentArchitecture();
|
|
6664
7036
|
}
|
|
6665
7037
|
}
|
|
6666
7038
|
|
|
6667
|
-
|
|
6668
|
-
|
|
6669
|
-
* @param {Object} elem - The element to validate.
|
|
6670
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6671
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6672
|
-
*/
|
|
6673
|
-
elementMatch(elem, tagName) {
|
|
6674
|
-
const tag = tagName.toLowerCase();
|
|
6675
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
7039
|
+
firstUpdated() {
|
|
7040
|
+
super.firstUpdated();
|
|
6676
7041
|
|
|
6677
|
-
|
|
7042
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
7043
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
7044
|
+
|
|
7045
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
7046
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6678
7047
|
}
|
|
6679
|
-
};
|
|
6680
7048
|
|
|
6681
|
-
|
|
7049
|
+
disconnectedCallback() {
|
|
7050
|
+
super.disconnectedCallback();
|
|
7051
|
+
|
|
7052
|
+
// Cleanup the ARIA observer if it exists
|
|
7053
|
+
if (this.attributeWatcher) {
|
|
7054
|
+
this.attributeWatcher.cleanup();
|
|
7055
|
+
this.attributeWatcher = null;
|
|
7056
|
+
}
|
|
7057
|
+
}
|
|
7058
|
+
|
|
7059
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
7060
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
7061
|
+
render() {
|
|
7062
|
+
try {
|
|
7063
|
+
return this.renderLayout();
|
|
7064
|
+
} catch (error) {
|
|
7065
|
+
// failed to get the defined layout
|
|
7066
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
7067
|
+
|
|
7068
|
+
// fallback to the default layout
|
|
7069
|
+
return this.getLayout('default');
|
|
7070
|
+
}
|
|
7071
|
+
}
|
|
7072
|
+
}
|
|
7073
|
+
|
|
7074
|
+
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}`;
|
|
7075
|
+
|
|
7076
|
+
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)}`;
|
|
6682
7077
|
|
|
6683
|
-
var
|
|
7078
|
+
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}`;
|
|
6684
7079
|
|
|
6685
|
-
var
|
|
7080
|
+
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}`;
|
|
6686
7081
|
|
|
6687
7082
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6688
7083
|
// See LICENSE in the project root for license information.
|
|
@@ -6901,14 +7296,13 @@ class AuroLoader extends i$2 {
|
|
|
6901
7296
|
|
|
6902
7297
|
var loaderVersion = '5.0.0';
|
|
6903
7298
|
|
|
6904
|
-
/* eslint-disable max-lines */
|
|
7299
|
+
/* eslint-disable max-lines, curly */
|
|
6905
7300
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6906
7301
|
// See LICENSE in the project root for license information.
|
|
6907
7302
|
|
|
6908
7303
|
|
|
6909
7304
|
/**
|
|
6910
7305
|
* @slot - Default slot for the text of the button.
|
|
6911
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6912
7306
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6913
7307
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6914
7308
|
* @csspart text - Apply CSS to text slot.
|
|
@@ -6917,7 +7311,18 @@ var loaderVersion = '5.0.0';
|
|
|
6917
7311
|
|
|
6918
7312
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
6919
7313
|
|
|
6920
|
-
|
|
7314
|
+
const ICON_ONLY_SHAPES = ['circle'];
|
|
7315
|
+
|
|
7316
|
+
/**
|
|
7317
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7318
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7319
|
+
* @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
|
|
7320
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7321
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7322
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7323
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7324
|
+
*/
|
|
7325
|
+
class AuroButton extends AuroElement {
|
|
6921
7326
|
|
|
6922
7327
|
/**
|
|
6923
7328
|
* Enables form association for this element.
|
|
@@ -6932,13 +7337,10 @@ class AuroButton extends i$2 {
|
|
|
6932
7337
|
super();
|
|
6933
7338
|
this.autofocus = false;
|
|
6934
7339
|
this.disabled = false;
|
|
6935
|
-
this.iconOnly = false;
|
|
6936
7340
|
this.loading = false;
|
|
7341
|
+
this.size = "md";
|
|
7342
|
+
this.shape = "rounded";
|
|
6937
7343
|
this.onDark = false;
|
|
6938
|
-
this.secondary = false;
|
|
6939
|
-
this.tertiary = false;
|
|
6940
|
-
this.rounded = false;
|
|
6941
|
-
this.slim = false;
|
|
6942
7344
|
this.fluid = false;
|
|
6943
7345
|
this.loadingText = this.loadingText || 'Loading...';
|
|
6944
7346
|
|
|
@@ -6967,43 +7369,38 @@ class AuroButton extends i$2 {
|
|
|
6967
7369
|
return [
|
|
6968
7370
|
tokensCss$2,
|
|
6969
7371
|
styleCss$2,
|
|
6970
|
-
colorCss$2
|
|
7372
|
+
colorCss$2,
|
|
7373
|
+
shapeSize
|
|
6971
7374
|
];
|
|
6972
7375
|
}
|
|
6973
7376
|
|
|
6974
7377
|
static get properties() {
|
|
6975
7378
|
return {
|
|
6976
7379
|
|
|
6977
|
-
|
|
6978
|
-
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6979
|
-
*/
|
|
6980
|
-
autofocus: {
|
|
6981
|
-
type: Boolean,
|
|
6982
|
-
reflect: true
|
|
6983
|
-
},
|
|
7380
|
+
...super.properties,
|
|
6984
7381
|
|
|
6985
7382
|
/**
|
|
6986
|
-
*
|
|
7383
|
+
* Override layout since it isn't used in this component.
|
|
7384
|
+
* @private
|
|
6987
7385
|
*/
|
|
6988
|
-
|
|
7386
|
+
layout: {
|
|
6989
7387
|
type: Boolean,
|
|
6990
|
-
|
|
7388
|
+
attribute: false,
|
|
7389
|
+
reflect: false
|
|
6991
7390
|
},
|
|
6992
7391
|
|
|
6993
7392
|
/**
|
|
6994
|
-
*
|
|
6995
|
-
* @deprecated
|
|
7393
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6996
7394
|
*/
|
|
6997
|
-
|
|
7395
|
+
autofocus: {
|
|
6998
7396
|
type: Boolean,
|
|
6999
7397
|
reflect: true
|
|
7000
7398
|
},
|
|
7001
7399
|
|
|
7002
7400
|
/**
|
|
7003
|
-
*
|
|
7004
|
-
* @deprecated
|
|
7401
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
7005
7402
|
*/
|
|
7006
|
-
|
|
7403
|
+
disabled: {
|
|
7007
7404
|
type: Boolean,
|
|
7008
7405
|
reflect: true
|
|
7009
7406
|
},
|
|
@@ -7011,15 +7408,7 @@ class AuroButton extends i$2 {
|
|
|
7011
7408
|
/**
|
|
7012
7409
|
* Alters the shape of the button to be full width of its parent container.
|
|
7013
7410
|
*/
|
|
7014
|
-
fluid:
|
|
7015
|
-
type: Boolean,
|
|
7016
|
-
reflect: true
|
|
7017
|
-
},
|
|
7018
|
-
|
|
7019
|
-
/**
|
|
7020
|
-
* If set to true, the button will contain an icon with no additional content.
|
|
7021
|
-
*/
|
|
7022
|
-
iconOnly: {
|
|
7411
|
+
fluid: {
|
|
7023
7412
|
type: Boolean,
|
|
7024
7413
|
reflect: true
|
|
7025
7414
|
},
|
|
@@ -7027,7 +7416,7 @@ class AuroButton extends i$2 {
|
|
|
7027
7416
|
/**
|
|
7028
7417
|
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
7029
7418
|
*/
|
|
7030
|
-
loading:
|
|
7419
|
+
loading: {
|
|
7031
7420
|
type: Boolean,
|
|
7032
7421
|
reflect: true
|
|
7033
7422
|
},
|
|
@@ -7035,34 +7424,10 @@ class AuroButton extends i$2 {
|
|
|
7035
7424
|
/**
|
|
7036
7425
|
* 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.
|
|
7037
7426
|
*/
|
|
7038
|
-
loadingText:
|
|
7427
|
+
loadingText: {
|
|
7039
7428
|
type: String
|
|
7040
7429
|
},
|
|
7041
7430
|
|
|
7042
|
-
/**
|
|
7043
|
-
* Set value for on-dark version of auro-button.
|
|
7044
|
-
*/
|
|
7045
|
-
onDark: {
|
|
7046
|
-
type: Boolean,
|
|
7047
|
-
reflect: true
|
|
7048
|
-
},
|
|
7049
|
-
|
|
7050
|
-
/**
|
|
7051
|
-
* If set to true, the button will have a rounded shape.
|
|
7052
|
-
*/
|
|
7053
|
-
rounded: {
|
|
7054
|
-
type: Boolean,
|
|
7055
|
-
reflect: true
|
|
7056
|
-
},
|
|
7057
|
-
|
|
7058
|
-
/**
|
|
7059
|
-
* Set value for slim version of auro-button.
|
|
7060
|
-
*/
|
|
7061
|
-
slim: {
|
|
7062
|
-
type: Boolean,
|
|
7063
|
-
reflect: true
|
|
7064
|
-
},
|
|
7065
|
-
|
|
7066
7431
|
/**
|
|
7067
7432
|
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
7068
7433
|
*/
|
|
@@ -7071,48 +7436,10 @@ class AuroButton extends i$2 {
|
|
|
7071
7436
|
reflect: true
|
|
7072
7437
|
},
|
|
7073
7438
|
|
|
7074
|
-
/**
|
|
7075
|
-
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
7076
|
-
*/
|
|
7077
|
-
ariahidden: {
|
|
7078
|
-
type: String,
|
|
7079
|
-
reflect: true,
|
|
7080
|
-
},
|
|
7081
|
-
|
|
7082
|
-
/**
|
|
7083
|
-
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
7084
|
-
* Use it in cases where a text label is not visible on the screen.
|
|
7085
|
-
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
7086
|
-
*/
|
|
7087
|
-
arialabel: {
|
|
7088
|
-
type: String,
|
|
7089
|
-
reflect: true
|
|
7090
|
-
},
|
|
7091
|
-
|
|
7092
|
-
/**
|
|
7093
|
-
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
7094
|
-
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
7095
|
-
* List multiple element IDs in a space delimited fashion.
|
|
7096
|
-
*/
|
|
7097
|
-
arialabelledby: {
|
|
7098
|
-
type: String,
|
|
7099
|
-
reflect: true
|
|
7100
|
-
},
|
|
7101
|
-
|
|
7102
|
-
/**
|
|
7103
|
-
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
7104
|
-
* or another grouping element it controls, is currently expanded or collapsed.
|
|
7105
|
-
* This is an optional attribute for buttons.
|
|
7106
|
-
*/
|
|
7107
|
-
ariaexpanded: {
|
|
7108
|
-
type: Boolean,
|
|
7109
|
-
reflect: true
|
|
7110
|
-
},
|
|
7111
|
-
|
|
7112
7439
|
/**
|
|
7113
7440
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7114
7441
|
*/
|
|
7115
|
-
title:
|
|
7442
|
+
title: {
|
|
7116
7443
|
type: String,
|
|
7117
7444
|
reflect: true
|
|
7118
7445
|
},
|
|
@@ -7120,7 +7447,7 @@ class AuroButton extends i$2 {
|
|
|
7120
7447
|
/**
|
|
7121
7448
|
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
7122
7449
|
*/
|
|
7123
|
-
type:
|
|
7450
|
+
type: {
|
|
7124
7451
|
type: String,
|
|
7125
7452
|
reflect: true
|
|
7126
7453
|
},
|
|
@@ -7128,19 +7455,19 @@ class AuroButton extends i$2 {
|
|
|
7128
7455
|
/**
|
|
7129
7456
|
* Defines the value associated with the button which is submitted with the form data.
|
|
7130
7457
|
*/
|
|
7131
|
-
value:
|
|
7458
|
+
value: {
|
|
7132
7459
|
type: String,
|
|
7133
7460
|
reflect: true
|
|
7134
7461
|
},
|
|
7135
7462
|
|
|
7136
7463
|
/**
|
|
7137
|
-
* Sets button variant option.
|
|
7464
|
+
* Sets button variant option.
|
|
7465
|
+
* @default primary
|
|
7138
7466
|
*/
|
|
7139
|
-
variant:
|
|
7467
|
+
variant: {
|
|
7140
7468
|
type: String,
|
|
7141
7469
|
reflect: true
|
|
7142
7470
|
},
|
|
7143
|
-
ready: { type: Boolean },
|
|
7144
7471
|
};
|
|
7145
7472
|
}
|
|
7146
7473
|
|
|
@@ -7153,7 +7480,7 @@ class AuroButton extends i$2 {
|
|
|
7153
7480
|
*
|
|
7154
7481
|
*/
|
|
7155
7482
|
static register(name = "auro-button") {
|
|
7156
|
-
AuroLibraryRuntimeUtils$
|
|
7483
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
7157
7484
|
}
|
|
7158
7485
|
|
|
7159
7486
|
/**
|
|
@@ -7165,17 +7492,6 @@ class AuroButton extends i$2 {
|
|
|
7165
7492
|
this.renderRoot.querySelector('button').focus();
|
|
7166
7493
|
}
|
|
7167
7494
|
|
|
7168
|
-
updated() {
|
|
7169
|
-
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
7170
|
-
if (this.secondary) {
|
|
7171
|
-
this.setAttribute('variant', 'secondary');
|
|
7172
|
-
}
|
|
7173
|
-
|
|
7174
|
-
if (this.tertiary) {
|
|
7175
|
-
this.setAttribute('variant', 'tertiary');
|
|
7176
|
-
}
|
|
7177
|
-
}
|
|
7178
|
-
|
|
7179
7495
|
/**
|
|
7180
7496
|
* Submits the form that this button is associated with.
|
|
7181
7497
|
* @private
|
|
@@ -7196,25 +7512,57 @@ class AuroButton extends i$2 {
|
|
|
7196
7512
|
return this.internals ? this.internals.form : null;
|
|
7197
7513
|
}
|
|
7198
7514
|
|
|
7199
|
-
|
|
7515
|
+
/**
|
|
7516
|
+
* @private
|
|
7517
|
+
* @returns {Boolean}
|
|
7518
|
+
*/
|
|
7519
|
+
get hideText() {
|
|
7520
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
7521
|
+
}
|
|
7522
|
+
|
|
7523
|
+
/**
|
|
7524
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7525
|
+
* @returns {string | undefined}
|
|
7526
|
+
* @private
|
|
7527
|
+
*/
|
|
7528
|
+
get currentAriaLabel() {
|
|
7529
|
+
if (!this.attributeWatcher) return undefined;
|
|
7530
|
+
|
|
7531
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7532
|
+
return ariaLabel || undefined;
|
|
7533
|
+
}
|
|
7534
|
+
|
|
7535
|
+
/**
|
|
7536
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7537
|
+
* @returns {string | undefined}
|
|
7538
|
+
* @private
|
|
7539
|
+
*/
|
|
7540
|
+
get currentAriaLabelledBy() {
|
|
7541
|
+
if (!this.attributeWatcher) return undefined;
|
|
7542
|
+
|
|
7543
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7544
|
+
return ariaLabelledBy || undefined;
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
/**
|
|
7548
|
+
* Renders the default layout for the button.
|
|
7549
|
+
* @returns {TemplateResult}
|
|
7550
|
+
* @private
|
|
7551
|
+
*/
|
|
7552
|
+
renderLayoutDefault() {
|
|
7200
7553
|
const classes = {
|
|
7201
|
-
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
'auro-button--iconOnly': this.iconOnly,
|
|
7207
|
-
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
7208
|
-
'loading': this.loading
|
|
7554
|
+
"util_insetLg--squish": true,
|
|
7555
|
+
"auro-button": true,
|
|
7556
|
+
"icon-only": this.hideText,
|
|
7557
|
+
wrapper: true,
|
|
7558
|
+
loading: this.loading,
|
|
7209
7559
|
};
|
|
7210
7560
|
|
|
7211
7561
|
return u$2`
|
|
7212
7562
|
<button
|
|
7213
7563
|
part="button"
|
|
7214
|
-
aria-
|
|
7215
|
-
aria-
|
|
7216
|
-
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
7217
|
-
aria-expanded="${o(this.ariaexpanded)}"
|
|
7564
|
+
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7565
|
+
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7218
7566
|
tabIndex="${o(this.tIndex)}"
|
|
7219
7567
|
?autofocus="${this.autofocus}"
|
|
7220
7568
|
class="${e(classes)}"
|
|
@@ -7231,19 +7579,24 @@ class AuroButton extends i$2 {
|
|
|
7231
7579
|
|
|
7232
7580
|
<span class="contentWrapper">
|
|
7233
7581
|
<span class="textSlot" part="text">
|
|
7234
|
-
|
|
7235
|
-
</span>
|
|
7236
|
-
|
|
7237
|
-
<span part="icon">
|
|
7238
|
-
<slot name="icon"></slot>
|
|
7582
|
+
<slot></slot>
|
|
7239
7583
|
</span>
|
|
7240
7584
|
</span>
|
|
7241
7585
|
</button>
|
|
7242
7586
|
`;
|
|
7243
7587
|
}
|
|
7588
|
+
|
|
7589
|
+
/**
|
|
7590
|
+
* Renders the layout of the button
|
|
7591
|
+
* @returns {TemplateResult}
|
|
7592
|
+
* @private
|
|
7593
|
+
*/
|
|
7594
|
+
renderLayout() {
|
|
7595
|
+
return this.renderLayoutDefault();
|
|
7596
|
+
}
|
|
7244
7597
|
}
|
|
7245
7598
|
|
|
7246
|
-
var buttonVersion = '
|
|
7599
|
+
var buttonVersion = '11.0.0';
|
|
7247
7600
|
|
|
7248
7601
|
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-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
7249
7602
|
|
|
@@ -7466,7 +7819,7 @@ class AuroInput extends BaseInput {
|
|
|
7466
7819
|
/**
|
|
7467
7820
|
* Generate unique names for dependency components.
|
|
7468
7821
|
*/
|
|
7469
|
-
const versioning = new AuroDependencyVersioning
|
|
7822
|
+
const versioning = new AuroDependencyVersioning();
|
|
7470
7823
|
|
|
7471
7824
|
/**
|
|
7472
7825
|
* @private
|
|
@@ -7511,6 +7864,7 @@ class AuroInput extends BaseInput {
|
|
|
7511
7864
|
*/
|
|
7512
7865
|
get commonLabelClasses() {
|
|
7513
7866
|
return {
|
|
7867
|
+
'is-disabled': this.disabled,
|
|
7514
7868
|
'withValue': this.value && this.value.length > 0,
|
|
7515
7869
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7516
7870
|
};
|
|
@@ -7547,11 +7901,23 @@ class AuroInput extends BaseInput {
|
|
|
7547
7901
|
get commonWrapperClasses() {
|
|
7548
7902
|
return {
|
|
7549
7903
|
'wrapper': true,
|
|
7904
|
+
'simple': this.simple,
|
|
7550
7905
|
'withValue': this.value && this.value.length > 0,
|
|
7551
7906
|
'hasFocus': this.hasFocus
|
|
7552
7907
|
};
|
|
7553
7908
|
}
|
|
7554
7909
|
|
|
7910
|
+
/**
|
|
7911
|
+
* Returns classmap configuration for accent elements in each layout.
|
|
7912
|
+
* @private
|
|
7913
|
+
* @returns {object} - Returns classmap.
|
|
7914
|
+
*/
|
|
7915
|
+
get commonAccentClasses() {
|
|
7916
|
+
return {
|
|
7917
|
+
'util_displayHidden': false
|
|
7918
|
+
};
|
|
7919
|
+
}
|
|
7920
|
+
|
|
7555
7921
|
/**
|
|
7556
7922
|
* Returns classmap configuration for helpText elements in each layout.
|
|
7557
7923
|
* @private
|
|
@@ -7574,7 +7940,7 @@ class AuroInput extends BaseInput {
|
|
|
7574
7940
|
*
|
|
7575
7941
|
*/
|
|
7576
7942
|
static register(name = "auro-input") {
|
|
7577
|
-
AuroLibraryRuntimeUtils$
|
|
7943
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7578
7944
|
}
|
|
7579
7945
|
|
|
7580
7946
|
/**
|
|
@@ -7647,28 +8013,33 @@ class AuroInput extends BaseInput {
|
|
|
7647
8013
|
: this.commonInputClasses;
|
|
7648
8014
|
|
|
7649
8015
|
return u$2`
|
|
7650
|
-
<label for=${this.
|
|
8016
|
+
<label for=${this.inputId} class="${e(this.commonLabelClasses)}" part="label">
|
|
7651
8017
|
<slot name="label">
|
|
7652
8018
|
${this.label}
|
|
7653
8019
|
</slot>
|
|
7654
8020
|
</label>
|
|
8021
|
+
|
|
8022
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
7655
8023
|
<input
|
|
7656
8024
|
@blur="${this.handleBlur}"
|
|
7657
8025
|
@focusin="${this.handleFocusin}"
|
|
7658
8026
|
@focusout="${this.handleFocusout}"
|
|
7659
8027
|
@input="${this.handleInput}"
|
|
8028
|
+
.placeholder=${this.placeholderStr}
|
|
8029
|
+
.role=${this.a11yRole}
|
|
7660
8030
|
?activeLabel="${this.activeLabel}"
|
|
7661
8031
|
?disabled="${this.disabled}"
|
|
7662
8032
|
?required="${this.required}"
|
|
7663
|
-
|
|
8033
|
+
aria-controls=${o(this.a11yControls)}
|
|
7664
8034
|
aria-describedby="${this.uniqueId}"
|
|
8035
|
+
aria-expanded=${o(this.a11yExpanded)}
|
|
7665
8036
|
aria-invalid="${this.validity !== 'valid'}"
|
|
7666
|
-
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7667
8037
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
8038
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7668
8039
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7669
8040
|
class="${e(inputOverrideClasses)}"
|
|
7670
8041
|
id="${this.inputId}"
|
|
7671
|
-
|
|
8042
|
+
inputmode="${o(this.inputmode ? this.inputmode : undefined)}"
|
|
7672
8043
|
lang="${o(this.lang)}"
|
|
7673
8044
|
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
7674
8045
|
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
@@ -7676,7 +8047,8 @@ class AuroInput extends BaseInput {
|
|
|
7676
8047
|
part="input"
|
|
7677
8048
|
pattern="${o(this.definePattern())}"
|
|
7678
8049
|
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7679
|
-
type="${this.type ===
|
|
8050
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
8051
|
+
/>
|
|
7680
8052
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
7681
8053
|
<div class="displayValueWrapper">
|
|
7682
8054
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
@@ -7698,11 +8070,12 @@ class AuroInput extends BaseInput {
|
|
|
7698
8070
|
?onDark="${this.onDark}"
|
|
7699
8071
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
7700
8072
|
class="notificationBtn clearBtn"
|
|
7701
|
-
|
|
7702
|
-
|
|
8073
|
+
shape="circle"
|
|
8074
|
+
size="sm"
|
|
8075
|
+
variant="ghost">
|
|
7703
8076
|
<${this.iconTag}
|
|
8077
|
+
?customColor="${this.onDark}"
|
|
7704
8078
|
category="interface"
|
|
7705
|
-
customColor
|
|
7706
8079
|
name="x-lg"
|
|
7707
8080
|
>
|
|
7708
8081
|
</${this.iconTag}>
|
|
@@ -7720,22 +8093,23 @@ class AuroInput extends BaseInput {
|
|
|
7720
8093
|
return u$2`
|
|
7721
8094
|
<div class="notification">
|
|
7722
8095
|
<${this.buttonTag}
|
|
7723
|
-
@click="${this.handleClickShowPassword}
|
|
8096
|
+
@click="${this.handleClickShowPassword}"
|
|
7724
8097
|
?onDark="${this.onDark}"
|
|
7725
|
-
aria-hidden="true"
|
|
7726
8098
|
class="notificationBtn passwordBtn"
|
|
7727
|
-
|
|
7728
|
-
|
|
8099
|
+
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8100
|
+
shape="circle"
|
|
8101
|
+
size="sm"
|
|
8102
|
+
variant="ghost">
|
|
7729
8103
|
<${this.iconTag}
|
|
8104
|
+
?customColor="${this.onDark}"
|
|
7730
8105
|
?hidden=${!this.showPassword}
|
|
7731
8106
|
category="interface"
|
|
7732
|
-
customColor
|
|
7733
8107
|
name="hide-password-stroke">
|
|
7734
8108
|
</${this.iconTag}>
|
|
7735
8109
|
<${this.iconTag}
|
|
8110
|
+
?customColor="${this.onDark}"
|
|
7736
8111
|
?hidden=${this.showPassword}
|
|
7737
8112
|
category="interface"
|
|
7738
|
-
customColor
|
|
7739
8113
|
name="view-password-stroke">
|
|
7740
8114
|
</${this.iconTag}>
|
|
7741
8115
|
</${this.buttonTag}>
|
|
@@ -7815,19 +8189,25 @@ class AuroInput extends BaseInput {
|
|
|
7815
8189
|
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
7816
8190
|
*/
|
|
7817
8191
|
renderLayoutClassic() {
|
|
8192
|
+
const classicClassMap = {
|
|
8193
|
+
...this.commonWrapperClasses,
|
|
8194
|
+
'thin': !this.simple
|
|
8195
|
+
};
|
|
8196
|
+
|
|
7818
8197
|
return u$2`
|
|
7819
8198
|
<div
|
|
7820
8199
|
@click="${this.handleClick}"
|
|
7821
|
-
class="${e(
|
|
8200
|
+
class="${e(classicClassMap)}"
|
|
7822
8201
|
part="wrapper">
|
|
7823
|
-
<div class="accents left">
|
|
8202
|
+
<div part="accent-left" class="accents left ${e(this.commonAccentClasses)}">
|
|
7824
8203
|
${this.renderHtmlTypeIcon()}
|
|
7825
8204
|
</div>
|
|
7826
8205
|
<div class="mainContent">
|
|
7827
8206
|
${this.renderHtmlInput(true)}
|
|
7828
8207
|
</div>
|
|
7829
|
-
<div class="accents right">
|
|
8208
|
+
<div part="accent-right" class="accents right ${e(this.commonAccentClasses)}">
|
|
7830
8209
|
${this.renderValidationErrorIconHtml()}
|
|
8210
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7831
8211
|
${this.hasValue ? u$2`
|
|
7832
8212
|
${!this.disabled && !this.readonly ? u$2`
|
|
7833
8213
|
${this.renderHtmlActionClear()}
|
|
@@ -7852,7 +8232,7 @@ class AuroInput extends BaseInput {
|
|
|
7852
8232
|
@click="${this.handleClick}"
|
|
7853
8233
|
class="${e(this.commonWrapperClasses)}"
|
|
7854
8234
|
part="wrapper">
|
|
7855
|
-
<div class="accents left">
|
|
8235
|
+
<div class="accents left ${this.commonAccentClasses}">
|
|
7856
8236
|
${this.layout.includes('left') ? u$2`
|
|
7857
8237
|
${this.renderValidationErrorIconHtml()}
|
|
7858
8238
|
` : undefined}
|
|
@@ -7860,7 +8240,7 @@ class AuroInput extends BaseInput {
|
|
|
7860
8240
|
<div class="mainContent">
|
|
7861
8241
|
${this.renderHtmlInput()}
|
|
7862
8242
|
</div>
|
|
7863
|
-
<div class="accents right">
|
|
8243
|
+
<div class="accents right ${this.commonAccentClasses}">
|
|
7864
8244
|
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
7865
8245
|
${this.renderValidationErrorIconHtml()}
|
|
7866
8246
|
` : undefined}
|