@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
|
@@ -41,9 +41,9 @@ const t$2=globalThis,i$3=t$2.trustedTypes,s$3=i$3?i$3.createPolicy("lit-html",{c
|
|
|
41
41
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
42
42
|
*/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");
|
|
43
43
|
|
|
44
|
-
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:
|
|
44
|
+
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}`;
|
|
45
45
|
|
|
46
|
-
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}`;
|
|
46
|
+
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}`;
|
|
47
47
|
|
|
48
48
|
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}`;
|
|
49
49
|
|
|
@@ -51,15 +51,15 @@ var colorBaseCss = i$5`.wrapper{border-color:var(--ds-auro-input-border-color);b
|
|
|
51
51
|
|
|
52
52
|
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}`;
|
|
53
53
|
|
|
54
|
-
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 .
|
|
54
|
+
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}`;
|
|
55
55
|
|
|
56
56
|
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)}`;
|
|
57
57
|
|
|
58
|
-
var emphasizedStyleCss = i$5`:host
|
|
58
|
+
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}`;
|
|
59
59
|
|
|
60
60
|
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)}`;
|
|
61
61
|
|
|
62
|
-
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}`;
|
|
62
|
+
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}`;
|
|
63
63
|
|
|
64
64
|
/**
|
|
65
65
|
* @license
|
|
@@ -161,6 +161,8 @@ const stringsES = {
|
|
|
161
161
|
'dateMM': 'Ingrese una fecha completa en el formato MM',
|
|
162
162
|
'dateDD': 'Ingrese una fecha completa en el formato DD',
|
|
163
163
|
'clearInput': 'Borrar campo de entrada',
|
|
164
|
+
'showPassword': 'Mostrar contraseña',
|
|
165
|
+
'hidePassword': 'Ocultar contraseña'
|
|
164
166
|
};
|
|
165
167
|
|
|
166
168
|
const stringsEN = {
|
|
@@ -185,6 +187,8 @@ const stringsEN = {
|
|
|
185
187
|
'dateMM': 'Please enter a complete date in the format MM',
|
|
186
188
|
'dateDD': 'Please enter a complete date in the format DD',
|
|
187
189
|
'clearInput': 'Clear input field',
|
|
190
|
+
'showPassword': 'Show password',
|
|
191
|
+
'hidePassword': 'Hide password'
|
|
188
192
|
};
|
|
189
193
|
|
|
190
194
|
/**
|
|
@@ -4479,7 +4483,7 @@ const {
|
|
|
4479
4483
|
|
|
4480
4484
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
4481
4485
|
|
|
4482
|
-
let AuroLibraryRuntimeUtils$
|
|
4486
|
+
let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
|
|
4483
4487
|
|
|
4484
4488
|
/* eslint-disable jsdoc/require-param */
|
|
4485
4489
|
|
|
@@ -4549,7 +4553,7 @@ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
|
|
|
4549
4553
|
class AuroFormValidation {
|
|
4550
4554
|
|
|
4551
4555
|
constructor() {
|
|
4552
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4556
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
|
|
4553
4557
|
}
|
|
4554
4558
|
|
|
4555
4559
|
/**
|
|
@@ -4828,7 +4832,9 @@ class AuroFormValidation {
|
|
|
4828
4832
|
elem.validity = this.auroInputElements[0].validity;
|
|
4829
4833
|
elem.errorMessage = this.auroInputElements[0].errorMessage;
|
|
4830
4834
|
|
|
4831
|
-
|
|
4835
|
+
// combobox has 2 inputs but no need to check validity on the 2nd one which is in fullscreen bib.
|
|
4836
|
+
// combobox's 2nd input will have noValidate set true.
|
|
4837
|
+
if (elem.validity === 'valid' && this.auroInputElements.length > 1 && !this.auroInputElements[1].noValidate) {
|
|
4832
4838
|
elem.validity = this.auroInputElements[1].validity;
|
|
4833
4839
|
elem.errorMessage = this.auroInputElements[1].errorMessage;
|
|
4834
4840
|
}
|
|
@@ -4908,7 +4914,7 @@ class AuroFormValidation {
|
|
|
4908
4914
|
}
|
|
4909
4915
|
}
|
|
4910
4916
|
|
|
4911
|
-
let AuroElement$
|
|
4917
|
+
let AuroElement$2 = class AuroElement extends i$2 {
|
|
4912
4918
|
static get properties() {
|
|
4913
4919
|
return {
|
|
4914
4920
|
|
|
@@ -4943,18 +4949,21 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
4943
4949
|
}
|
|
4944
4950
|
|
|
4945
4951
|
resetShapeClasses() {
|
|
4946
|
-
|
|
4947
|
-
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4952
|
+
const wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
4948
4953
|
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4954
|
+
if (wrapper) {
|
|
4955
|
+
wrapper.classList.forEach((className) => {
|
|
4956
|
+
if (className.startsWith('shape-')) {
|
|
4957
|
+
wrapper.classList.remove(className);
|
|
4958
|
+
}
|
|
4959
|
+
});
|
|
4955
4960
|
|
|
4956
|
-
|
|
4957
|
-
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
if (this.shape && this.size) {
|
|
4964
|
+
wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
4965
|
+
} else {
|
|
4966
|
+
wrapper.classList.add('shape-none');
|
|
4958
4967
|
}
|
|
4959
4968
|
}
|
|
4960
4969
|
|
|
@@ -5012,17 +5021,21 @@ let AuroElement$1 = class AuroElement extends i$2 {
|
|
|
5012
5021
|
*
|
|
5013
5022
|
* @slot helptext - Sets the help text displayed below the input.
|
|
5014
5023
|
* @slot label - Sets the label text for the input.
|
|
5024
|
+
* @slot displayValue - Allows custom HTML content to display in place of the value when the input is not focused.
|
|
5015
5025
|
*
|
|
5016
5026
|
* @csspart wrapper - Use for customizing the style of the root element
|
|
5017
5027
|
* @csspart label - Use for customizing the style of the label element
|
|
5018
5028
|
* @csspart helpText - Use for customizing the style of the helpText element
|
|
5029
|
+
* @csspart input - Use for customizing the style of the input element
|
|
5019
5030
|
* @csspart accentIcon - Use for customizing the style of the accentIcon element (e.g. credit card icon, calendar icon)
|
|
5020
5031
|
* @csspart iconContainer - Use for customizing the style of the iconContainer (e.g. X icon for clearing input value)
|
|
5032
|
+
* @csspart accent-left - Use for customizing the style of the left accent element (e.g. padding, margin)
|
|
5033
|
+
* @csspart accent-right - Use for customizing the style of the right accent element (e.g. padding, margin)
|
|
5021
5034
|
* @event input - Event fires when the value of an `auro-input` has been changed.
|
|
5022
5035
|
* @event auroFormElement-validated - Notifies that the `validity` and `errorMessage` value has changed.
|
|
5023
5036
|
*/
|
|
5024
5037
|
|
|
5025
|
-
class BaseInput extends AuroElement$
|
|
5038
|
+
class BaseInput extends AuroElement$2 {
|
|
5026
5039
|
|
|
5027
5040
|
constructor() {
|
|
5028
5041
|
super();
|
|
@@ -5115,7 +5128,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5115
5128
|
*/
|
|
5116
5129
|
a11yRole: {
|
|
5117
5130
|
type: String,
|
|
5118
|
-
attribute: true,
|
|
5119
5131
|
reflect: true
|
|
5120
5132
|
},
|
|
5121
5133
|
|
|
@@ -5124,7 +5136,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5124
5136
|
*/
|
|
5125
5137
|
a11yExpanded: {
|
|
5126
5138
|
type: Boolean,
|
|
5127
|
-
attribute: true,
|
|
5128
5139
|
reflect: true
|
|
5129
5140
|
},
|
|
5130
5141
|
|
|
@@ -5133,7 +5144,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5133
5144
|
*/
|
|
5134
5145
|
a11yControls: {
|
|
5135
5146
|
type: String,
|
|
5136
|
-
attribute: true,
|
|
5137
5147
|
reflect: true
|
|
5138
5148
|
},
|
|
5139
5149
|
|
|
@@ -5149,7 +5159,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5149
5159
|
* 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].
|
|
5150
5160
|
*/
|
|
5151
5161
|
autocapitalize: {
|
|
5152
|
-
type: String
|
|
5162
|
+
type: String,
|
|
5163
|
+
reflect: true
|
|
5153
5164
|
},
|
|
5154
5165
|
|
|
5155
5166
|
/**
|
|
@@ -5164,7 +5175,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5164
5175
|
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
5165
5176
|
*/
|
|
5166
5177
|
autocorrect: {
|
|
5167
|
-
type: String
|
|
5178
|
+
type: String,
|
|
5179
|
+
reflect: true
|
|
5168
5180
|
},
|
|
5169
5181
|
|
|
5170
5182
|
/**
|
|
@@ -5209,7 +5221,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5209
5221
|
/** Exposes inputmode attribute for input. */
|
|
5210
5222
|
inputmode: {
|
|
5211
5223
|
type: String,
|
|
5212
|
-
attribute: true,
|
|
5213
5224
|
reflect: true
|
|
5214
5225
|
},
|
|
5215
5226
|
|
|
@@ -5217,7 +5228,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5217
5228
|
* Defines the language of an element.
|
|
5218
5229
|
*/
|
|
5219
5230
|
lang: {
|
|
5220
|
-
type: String
|
|
5231
|
+
type: String,
|
|
5232
|
+
reflect: true
|
|
5221
5233
|
},
|
|
5222
5234
|
|
|
5223
5235
|
/**
|
|
@@ -5231,7 +5243,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5231
5243
|
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
5232
5244
|
*/
|
|
5233
5245
|
maxLength: {
|
|
5234
|
-
type: Number
|
|
5246
|
+
type: Number,
|
|
5247
|
+
reflect: true
|
|
5235
5248
|
},
|
|
5236
5249
|
|
|
5237
5250
|
/**
|
|
@@ -5245,14 +5258,25 @@ class BaseInput extends AuroElement$1 {
|
|
|
5245
5258
|
* 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`.
|
|
5246
5259
|
*/
|
|
5247
5260
|
minLength: {
|
|
5248
|
-
type: Number
|
|
5261
|
+
type: Number,
|
|
5262
|
+
reflect: true
|
|
5249
5263
|
},
|
|
5250
5264
|
|
|
5251
5265
|
/**
|
|
5252
5266
|
* Populates the `name` attribute on the input.
|
|
5253
5267
|
*/
|
|
5254
5268
|
name: {
|
|
5255
|
-
type: String
|
|
5269
|
+
type: String,
|
|
5270
|
+
reflect: true
|
|
5271
|
+
},
|
|
5272
|
+
|
|
5273
|
+
/**
|
|
5274
|
+
* Sets styles for nested operation - removes borders, hides help + error text, and
|
|
5275
|
+
* hides accents.
|
|
5276
|
+
*/
|
|
5277
|
+
nested: {
|
|
5278
|
+
type: Boolean,
|
|
5279
|
+
reflect: true
|
|
5256
5280
|
},
|
|
5257
5281
|
|
|
5258
5282
|
/**
|
|
@@ -5283,7 +5307,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5283
5307
|
* Define custom placeholder text, only supported by date input formats.
|
|
5284
5308
|
*/
|
|
5285
5309
|
placeholder: {
|
|
5286
|
-
type: String
|
|
5310
|
+
type: String,
|
|
5311
|
+
reflect: true
|
|
5287
5312
|
},
|
|
5288
5313
|
|
|
5289
5314
|
/**
|
|
@@ -5372,6 +5397,14 @@ class BaseInput extends AuroElement$1 {
|
|
|
5372
5397
|
type: String
|
|
5373
5398
|
},
|
|
5374
5399
|
|
|
5400
|
+
/**
|
|
5401
|
+
* borderless
|
|
5402
|
+
*/
|
|
5403
|
+
simple: {
|
|
5404
|
+
type: Boolean,
|
|
5405
|
+
reflect: true
|
|
5406
|
+
},
|
|
5407
|
+
|
|
5375
5408
|
/**
|
|
5376
5409
|
* Custom help text message for email type validity.
|
|
5377
5410
|
*/
|
|
@@ -5383,7 +5416,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5383
5416
|
* 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`.
|
|
5384
5417
|
*/
|
|
5385
5418
|
spellcheck: {
|
|
5386
|
-
type: String
|
|
5419
|
+
type: String,
|
|
5420
|
+
reflect: true
|
|
5387
5421
|
},
|
|
5388
5422
|
|
|
5389
5423
|
/**
|
|
@@ -5398,7 +5432,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
5398
5432
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
5399
5433
|
*/
|
|
5400
5434
|
value: {
|
|
5401
|
-
type: String
|
|
5435
|
+
type: String,
|
|
5436
|
+
reflect: true
|
|
5402
5437
|
},
|
|
5403
5438
|
|
|
5404
5439
|
/**
|
|
@@ -5678,7 +5713,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
5678
5713
|
|
|
5679
5714
|
/**
|
|
5680
5715
|
* Function to set element focus.
|
|
5681
|
-
* @private
|
|
5682
5716
|
* @return {void}
|
|
5683
5717
|
*/
|
|
5684
5718
|
focus() {
|
|
@@ -5896,8 +5930,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
5896
5930
|
|
|
5897
5931
|
this.requestUpdate();
|
|
5898
5932
|
|
|
5899
|
-
|
|
5900
|
-
// return this.format ? this.format.toUpperCase() : 'MM/DD/YYYY';
|
|
5933
|
+
return this.placeholderStr;
|
|
5901
5934
|
}
|
|
5902
5935
|
|
|
5903
5936
|
/**
|
|
@@ -6064,7 +6097,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
6064
6097
|
// See LICENSE in the project root for license information.
|
|
6065
6098
|
|
|
6066
6099
|
|
|
6067
|
-
|
|
6100
|
+
class AuroDependencyVersioning {
|
|
6068
6101
|
|
|
6069
6102
|
/**
|
|
6070
6103
|
* Generates a unique string to be used for child auro element naming.
|
|
@@ -6098,7 +6131,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6098
6131
|
|
|
6099
6132
|
return tag;
|
|
6100
6133
|
}
|
|
6101
|
-
}
|
|
6134
|
+
}
|
|
6102
6135
|
|
|
6103
6136
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
6104
6137
|
// See LICENSE in the project root for license information.
|
|
@@ -6110,7 +6143,7 @@ let AuroDependencyVersioning$1 = class AuroDependencyVersioning {
|
|
|
6110
6143
|
* @attr {Boolean} hiddenAudible - If present, the component will be hidden from screen readers, but seen visually
|
|
6111
6144
|
*/
|
|
6112
6145
|
|
|
6113
|
-
class AuroElement extends i$2 {
|
|
6146
|
+
let AuroElement$1 = class AuroElement extends i$2 {
|
|
6114
6147
|
|
|
6115
6148
|
// function to define props used within the scope of this component
|
|
6116
6149
|
static get properties() {
|
|
@@ -6134,7 +6167,7 @@ class AuroElement extends i$2 {
|
|
|
6134
6167
|
|
|
6135
6168
|
return 'false'
|
|
6136
6169
|
}
|
|
6137
|
-
}
|
|
6170
|
+
};
|
|
6138
6171
|
|
|
6139
6172
|
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>"};
|
|
6140
6173
|
|
|
@@ -6178,7 +6211,7 @@ var styleCss$3 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.u
|
|
|
6178
6211
|
*/
|
|
6179
6212
|
|
|
6180
6213
|
// build the component class
|
|
6181
|
-
class BaseIcon extends AuroElement {
|
|
6214
|
+
class BaseIcon extends AuroElement$1 {
|
|
6182
6215
|
constructor() {
|
|
6183
6216
|
super();
|
|
6184
6217
|
this.onDark = false;
|
|
@@ -6261,7 +6294,7 @@ var colorCss$3 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){
|
|
|
6261
6294
|
|
|
6262
6295
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
6263
6296
|
|
|
6264
|
-
let AuroLibraryRuntimeUtils$
|
|
6297
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
6265
6298
|
|
|
6266
6299
|
/* eslint-disable jsdoc/require-param */
|
|
6267
6300
|
|
|
@@ -6343,7 +6376,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6343
6376
|
*/
|
|
6344
6377
|
privateDefaults() {
|
|
6345
6378
|
this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
|
|
6346
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
6379
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
6347
6380
|
}
|
|
6348
6381
|
|
|
6349
6382
|
// function to define props used within the scope of this component
|
|
@@ -6425,7 +6458,7 @@ class AuroIcon extends BaseIcon {
|
|
|
6425
6458
|
*
|
|
6426
6459
|
*/
|
|
6427
6460
|
static register(name = "auro-icon") {
|
|
6428
|
-
AuroLibraryRuntimeUtils$
|
|
6461
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroIcon);
|
|
6429
6462
|
}
|
|
6430
6463
|
|
|
6431
6464
|
connectedCallback() {
|
|
@@ -6446,8 +6479,12 @@ class AuroIcon extends BaseIcon {
|
|
|
6446
6479
|
async firstUpdated() {
|
|
6447
6480
|
await super.firstUpdated();
|
|
6448
6481
|
|
|
6449
|
-
|
|
6450
|
-
|
|
6482
|
+
/**
|
|
6483
|
+
* icons provide a description for screen readers. Icon only instances Auro-button
|
|
6484
|
+
* depend on this description to provide context for the user using a screen reader.
|
|
6485
|
+
* Removes the SVG description for screen reader if ariaHidden is set to true.
|
|
6486
|
+
*/
|
|
6487
|
+
if (this.hasAttribute('ariaHidden') && this.svg) {
|
|
6451
6488
|
const svgDesc = this.svg.querySelector('desc');
|
|
6452
6489
|
|
|
6453
6490
|
if (svgDesc) {
|
|
@@ -6491,123 +6528,481 @@ class AuroIcon extends BaseIcon {
|
|
|
6491
6528
|
}
|
|
6492
6529
|
}
|
|
6493
6530
|
|
|
6494
|
-
var iconVersion = '8.0.
|
|
6531
|
+
var iconVersion = '8.0.4';
|
|
6495
6532
|
|
|
6496
|
-
|
|
6497
|
-
|
|
6533
|
+
/**
|
|
6534
|
+
* Private module-level WeakMap to hold MutationObservers for each host element.
|
|
6535
|
+
*/
|
|
6536
|
+
const _observers = new WeakMap();
|
|
6498
6537
|
|
|
6538
|
+
/**
|
|
6539
|
+
* Private module-level WeakMap to hold attribute matchers and targets for each host element.
|
|
6540
|
+
* Structure: {
|
|
6541
|
+
* host: {
|
|
6542
|
+
* matchers: Set<Function>,
|
|
6543
|
+
* targets: Map<HTMLElement, Map<Function, {removeOriginal: boolean, currentAttributes: Map<string, string>}>>
|
|
6544
|
+
* }
|
|
6545
|
+
* }
|
|
6546
|
+
*/
|
|
6547
|
+
const _transportConfig = new WeakMap();
|
|
6499
6548
|
|
|
6500
|
-
|
|
6549
|
+
/**
|
|
6550
|
+
* Transfers all matching attributes from a host element to a target element and observes for future changes.
|
|
6551
|
+
*
|
|
6552
|
+
* @param {Object} params - The parameters for the function.
|
|
6553
|
+
* @param {HTMLElement} params.host - The host element from which attributes will be transported.
|
|
6554
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6555
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove the attributes from the host element.
|
|
6556
|
+
* @param {boolean} [params.observe=true] - Whether to attach a MutationObserver to the host element.
|
|
6557
|
+
* @returns {Function} A function to detach the observer when no longer needed.
|
|
6558
|
+
* @throws {TypeError} If the host or target parameters are not instances of HTMLElement.
|
|
6559
|
+
*/
|
|
6560
|
+
const transportAttributes = ({ host, target, match, removeOriginal = true }) => {
|
|
6561
|
+
// Guard Clause: Ensure host is valid HTMLElement instance
|
|
6562
|
+
if (typeof host !== 'object' || !(host instanceof HTMLElement)) {
|
|
6563
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "host" parameter must be an instance of HTMLElement.');
|
|
6564
|
+
}
|
|
6501
6565
|
|
|
6502
|
-
|
|
6503
|
-
|
|
6504
|
-
|
|
6505
|
-
|
|
6506
|
-
* @param {string} version - Version of the component that will be appended to the baseName.
|
|
6507
|
-
* @returns {string} - Unique string to be used for naming.
|
|
6508
|
-
*/
|
|
6509
|
-
generateElementName(baseName, version) {
|
|
6510
|
-
let result = baseName;
|
|
6566
|
+
// Guard Clause: Ensure target is valid HTMLElement instance
|
|
6567
|
+
if (typeof target !== 'object' || !(target instanceof HTMLElement)) {
|
|
6568
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "target" parameter must be an instance of HTMLElement.');
|
|
6569
|
+
}
|
|
6511
6570
|
|
|
6512
|
-
|
|
6513
|
-
|
|
6571
|
+
// Guard Clause: Ensure match is a function
|
|
6572
|
+
if (typeof match !== 'function') {
|
|
6573
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "match" parameter must be a function.');
|
|
6574
|
+
}
|
|
6514
6575
|
|
|
6515
|
-
|
|
6576
|
+
// Guard Clause: Ensure removeOriginal is a boolean
|
|
6577
|
+
if (typeof removeOriginal !== 'boolean') {
|
|
6578
|
+
throw new TypeError('a11yUtilities.js | transportAttributes | The "removeOriginal" parameter must be a boolean.');
|
|
6516
6579
|
}
|
|
6580
|
+
|
|
6581
|
+
// Register this transport and get cleanup function
|
|
6582
|
+
return _registerTransport({
|
|
6583
|
+
host,
|
|
6584
|
+
target,
|
|
6585
|
+
matcher: match,
|
|
6586
|
+
removeOriginal
|
|
6587
|
+
});
|
|
6588
|
+
};
|
|
6517
6589
|
|
|
6518
|
-
|
|
6519
|
-
|
|
6520
|
-
|
|
6521
|
-
|
|
6522
|
-
|
|
6523
|
-
|
|
6524
|
-
|
|
6525
|
-
|
|
6526
|
-
|
|
6590
|
+
/**
|
|
6591
|
+
* Registers a matcher and target for a host element and attaches an observer if needed.
|
|
6592
|
+
*
|
|
6593
|
+
* @param {Object} params - The parameters object.
|
|
6594
|
+
* @param {HTMLElement} params.host - The host element to observe.
|
|
6595
|
+
* @param {HTMLElement} params.target - The target element to receive attributes.
|
|
6596
|
+
* @param {Function} params.matcher - Function that determines which attributes to transport.
|
|
6597
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes.
|
|
6598
|
+
* @param {boolean} [params.observe=true] - Whether to observe for attribute changes.
|
|
6599
|
+
* @returns {Function} Function to detach the specific matcher and target pairing.
|
|
6600
|
+
* @private
|
|
6601
|
+
*/
|
|
6602
|
+
const _registerTransport = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6603
|
+
// Initialize config for this host if it doesn't exist
|
|
6604
|
+
if (!_transportConfig.has(host)) {
|
|
6605
|
+
_transportConfig.set(host, {
|
|
6606
|
+
matchers: new Set(),
|
|
6607
|
+
targets: new Map()
|
|
6608
|
+
});
|
|
6609
|
+
}
|
|
6527
6610
|
|
|
6528
|
-
|
|
6529
|
-
|
|
6611
|
+
const config = _transportConfig.get(host);
|
|
6612
|
+
|
|
6613
|
+
// Add the matcher to the set of matchers for this host
|
|
6614
|
+
config.matchers.add(matcher);
|
|
6615
|
+
|
|
6616
|
+
// Initialize target entry if it doesn't exist
|
|
6617
|
+
if (!config.targets.has(target)) {
|
|
6618
|
+
config.targets.set(target, new Map());
|
|
6619
|
+
}
|
|
6620
|
+
|
|
6621
|
+
// Store the matcher with its removeOriginal setting for this target
|
|
6622
|
+
config.targets.get(target).set(matcher, {
|
|
6623
|
+
removeOriginal,
|
|
6624
|
+
currentAttributes: new Map()
|
|
6625
|
+
});
|
|
6626
|
+
|
|
6627
|
+
// Perform initial attribute transport
|
|
6628
|
+
_transportAttributes({ host, target, matcher, removeOriginal });
|
|
6629
|
+
|
|
6630
|
+
// Attach observer
|
|
6631
|
+
_attachObserver(host);
|
|
6632
|
+
|
|
6633
|
+
// Return cleanup function and utility functions
|
|
6634
|
+
return {
|
|
6635
|
+
cleanup: () => _cleanupTransport(host, target, matcher),
|
|
6636
|
+
getObservedAttributes: () => _getObservedAttributes(host, target, matcher),
|
|
6637
|
+
getObservedAttribute: (attr) => _getObservedAttribute(host, target, matcher, attr),
|
|
6638
|
+
}
|
|
6639
|
+
};
|
|
6640
|
+
|
|
6641
|
+
/**
|
|
6642
|
+
* Cleans up resources associated with a specific matcher and target for a host element.
|
|
6643
|
+
*
|
|
6644
|
+
* @param {HTMLElement} host - The host element
|
|
6645
|
+
* @param {HTMLElement} target - The target element
|
|
6646
|
+
* @param {Function} matcher - The matcher function
|
|
6647
|
+
* @private
|
|
6648
|
+
*/
|
|
6649
|
+
const _cleanupTransport = (host, target, matcher) => {
|
|
6650
|
+
const config = _transportConfig.get(host);
|
|
6651
|
+
if (!config) return;
|
|
6652
|
+
|
|
6653
|
+
// Remove this matcher from this target
|
|
6654
|
+
const targetMatchers = config.targets.get(target);
|
|
6655
|
+
if (targetMatchers) {
|
|
6656
|
+
targetMatchers.delete(matcher);
|
|
6657
|
+
|
|
6658
|
+
// If this target has no more matchers, remove it
|
|
6659
|
+
if (targetMatchers.size === 0) {
|
|
6660
|
+
config.targets.delete(target);
|
|
6661
|
+
}
|
|
6662
|
+
}
|
|
6663
|
+
|
|
6664
|
+
// Check if this matcher is still used by any target
|
|
6665
|
+
let matcherStillUsed = false;
|
|
6666
|
+
for (const matcherMap of config.targets.values()) {
|
|
6667
|
+
if (matcherMap.has(matcher)) {
|
|
6668
|
+
matcherStillUsed = true;
|
|
6669
|
+
break;
|
|
6670
|
+
}
|
|
6671
|
+
}
|
|
6672
|
+
|
|
6673
|
+
// If not used anymore, remove from matchers set
|
|
6674
|
+
if (!matcherStillUsed) {
|
|
6675
|
+
config.matchers.delete(matcher);
|
|
6676
|
+
}
|
|
6677
|
+
|
|
6678
|
+
// If no more targets or matchers, detach observer
|
|
6679
|
+
if (config.targets.size === 0 || config.matchers.size === 0) {
|
|
6680
|
+
_detachObserver(host);
|
|
6681
|
+
}
|
|
6682
|
+
};
|
|
6683
|
+
|
|
6684
|
+
/**
|
|
6685
|
+
* Generic function to transport attributes from a host element to a target element.
|
|
6686
|
+
*
|
|
6687
|
+
* @param {Object} params - The parameters object.
|
|
6688
|
+
* @param {HTMLElement} params.host - The host element from which to transport attributes.
|
|
6689
|
+
* @param {HTMLElement} params.target - The target element to which attributes will be transported.
|
|
6690
|
+
* @param {Function} params.matcher - Function that takes an attribute name and returns true if it should be transported.
|
|
6691
|
+
* @param {boolean} [params.removeOriginal=true] - Whether to remove original attributes from host.
|
|
6692
|
+
* @returns {void}
|
|
6693
|
+
* @private
|
|
6694
|
+
*/
|
|
6695
|
+
const _transportAttributes = ({ host, target, matcher, removeOriginal = true }) => {
|
|
6696
|
+
// Get a list of all matching attributes on the host element and their values
|
|
6697
|
+
const matchingAttributes = host.getAttributeNames()
|
|
6698
|
+
.filter(attr => matcher(attr))
|
|
6699
|
+
.reduce((acc, attr) => {
|
|
6700
|
+
acc[attr] = host.getAttribute(attr);
|
|
6701
|
+
return acc;
|
|
6702
|
+
}, {});
|
|
6703
|
+
|
|
6704
|
+
// Move matching attributes to the target element, removing them from the host if removeOriginal is true
|
|
6705
|
+
Object.entries(matchingAttributes).forEach(([key, value]) => {
|
|
6706
|
+
_setObservedAttribute(host, target, matcher, key, value);
|
|
6707
|
+
target.setAttribute(key, value);
|
|
6708
|
+
if (removeOriginal) {
|
|
6709
|
+
host.removeAttribute(key);
|
|
6530
6710
|
}
|
|
6711
|
+
});
|
|
6712
|
+
};
|
|
6531
6713
|
|
|
6532
|
-
|
|
6714
|
+
/**
|
|
6715
|
+
* Attaches a MutationObserver to the host element to monitor attribute changes.
|
|
6716
|
+
*
|
|
6717
|
+
* @param {HTMLElement} host - The element to observe for attribute changes.
|
|
6718
|
+
* @returns {MutationObserver} The observer instance.
|
|
6719
|
+
* @private
|
|
6720
|
+
*/
|
|
6721
|
+
const _attachObserver = (host) => {
|
|
6722
|
+
// If an observer for this host already exists, return it
|
|
6723
|
+
if (_observers.has(host)) {
|
|
6724
|
+
return _observers.get(host);
|
|
6725
|
+
}
|
|
6726
|
+
|
|
6727
|
+
// Create a new MutationObserver
|
|
6728
|
+
const observer = new MutationObserver((mutations) => {
|
|
6729
|
+
const config = _transportConfig.get(host);
|
|
6730
|
+
if (!config) return;
|
|
6731
|
+
|
|
6732
|
+
// For each mutation affecting attributes
|
|
6733
|
+
mutations
|
|
6734
|
+
.filter(mutation => mutation.type === 'attributes')
|
|
6735
|
+
.forEach(mutation => {
|
|
6736
|
+
const attributeName = mutation.attributeName;
|
|
6737
|
+
|
|
6738
|
+
// Find matchers that care about this attribute
|
|
6739
|
+
for (const matcher of config.matchers) {
|
|
6740
|
+
if (matcher(attributeName)) {
|
|
6741
|
+
// For each target that uses this matcher
|
|
6742
|
+
for (const [target, matcherConfigs] of config.targets.entries()) {
|
|
6743
|
+
if (matcherConfigs.has(matcher)) {
|
|
6744
|
+
const { removeOriginal } = matcherConfigs.get(matcher);
|
|
6745
|
+
_transportAttributes({
|
|
6746
|
+
host,
|
|
6747
|
+
target,
|
|
6748
|
+
matcher,
|
|
6749
|
+
removeOriginal
|
|
6750
|
+
});
|
|
6751
|
+
}
|
|
6752
|
+
}
|
|
6753
|
+
}
|
|
6754
|
+
}
|
|
6755
|
+
});
|
|
6756
|
+
});
|
|
6757
|
+
|
|
6758
|
+
// Start observing attribute changes
|
|
6759
|
+
observer.observe(host, { attributes: true });
|
|
6760
|
+
|
|
6761
|
+
// Store the observer
|
|
6762
|
+
_observers.set(host, observer);
|
|
6763
|
+
|
|
6764
|
+
return observer;
|
|
6765
|
+
};
|
|
6766
|
+
|
|
6767
|
+
/**
|
|
6768
|
+
* Detaches and cleans up the MutationObserver for a given host element.
|
|
6769
|
+
*
|
|
6770
|
+
* @param {HTMLElement} host - The element whose observer should be detached.
|
|
6771
|
+
* @private
|
|
6772
|
+
*/
|
|
6773
|
+
const _detachObserver = (host) => {
|
|
6774
|
+
if (_observers.has(host)) {
|
|
6775
|
+
const observer = _observers.get(host);
|
|
6776
|
+
observer.disconnect();
|
|
6777
|
+
_observers.delete(host);
|
|
6533
6778
|
}
|
|
6534
|
-
|
|
6779
|
+
|
|
6780
|
+
// Clean up the transport config as well
|
|
6781
|
+
if (_transportConfig.has(host)) {
|
|
6782
|
+
_transportConfig.delete(host);
|
|
6783
|
+
}
|
|
6784
|
+
};
|
|
6535
6785
|
|
|
6536
|
-
|
|
6537
|
-
|
|
6786
|
+
/**
|
|
6787
|
+
* Gets the matcher configuration for a specific host, target, and matcher
|
|
6788
|
+
* @param {HTMLElement} host - The host element
|
|
6789
|
+
* @param {HTMLElement} target - The target element
|
|
6790
|
+
* @param {Function} matcher - The matcher function
|
|
6791
|
+
* @returns {Object|undefined} The matcher configuration if found
|
|
6792
|
+
* @private
|
|
6793
|
+
*/
|
|
6794
|
+
const _getMatcherConfig = (host, target, matcher) => {
|
|
6795
|
+
const config = _transportConfig.get(host);
|
|
6796
|
+
if (!config) return undefined;
|
|
6797
|
+
|
|
6798
|
+
const targetMatchers = config.targets.get(target);
|
|
6799
|
+
if (!targetMatchers) return undefined;
|
|
6800
|
+
|
|
6801
|
+
return targetMatchers.get(matcher);
|
|
6802
|
+
};
|
|
6538
6803
|
|
|
6539
|
-
|
|
6804
|
+
/**
|
|
6805
|
+
* Sets an observed attribute value
|
|
6806
|
+
* @param {HTMLElement} host - The host element
|
|
6807
|
+
* @param {HTMLElement} target - The target element
|
|
6808
|
+
* @param {Function} matcher - The matcher function
|
|
6809
|
+
* @param {string} key - The attribute name
|
|
6810
|
+
* @param {string} value - The attribute value
|
|
6811
|
+
* @private
|
|
6812
|
+
*/
|
|
6813
|
+
const _setObservedAttribute = (host, target, matcher, key, value) => {
|
|
6814
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6815
|
+
if (matcherConfig) {
|
|
6816
|
+
matcherConfig.currentAttributes.set(key, value);
|
|
6817
|
+
}
|
|
6818
|
+
};
|
|
6540
6819
|
|
|
6541
|
-
|
|
6820
|
+
const _getObservedAttribute = (host, target, matcher, attr) => {
|
|
6821
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6822
|
+
if (matcherConfig) return matcherConfig.currentAttributes.get(attr);
|
|
6823
|
+
return undefined;
|
|
6824
|
+
};
|
|
6542
6825
|
|
|
6543
|
-
|
|
6826
|
+
const _getObservedAttributes = (host, target, matcher) => {
|
|
6827
|
+
const matcherConfig = _getMatcherConfig(host, target, matcher);
|
|
6828
|
+
if (matcherConfig) return Array.from(matcherConfig.currentAttributes.entries());
|
|
6829
|
+
return [];
|
|
6830
|
+
};
|
|
6544
6831
|
|
|
6545
|
-
|
|
6832
|
+
const _matchers = {
|
|
6833
|
+
'aria-': attr => attr.startsWith('aria-'),
|
|
6834
|
+
'role': attr => attr.match(/^role$/)
|
|
6835
|
+
};
|
|
6836
|
+
|
|
6837
|
+
const transportAllA11yAttributes = ({ host, target, removeOriginal = true }) => {
|
|
6838
|
+
return transportAttributes({
|
|
6839
|
+
host,
|
|
6840
|
+
target,
|
|
6841
|
+
match: attr => {
|
|
6842
|
+
for (const key in _matchers) {
|
|
6843
|
+
if (_matchers[key](attr)) return true;
|
|
6844
|
+
}
|
|
6845
|
+
return false;
|
|
6846
|
+
},
|
|
6847
|
+
removeOriginal
|
|
6848
|
+
});
|
|
6849
|
+
};
|
|
6850
|
+
|
|
6851
|
+
class AuroElement extends i$2 {
|
|
6546
6852
|
|
|
6547
6853
|
/**
|
|
6548
|
-
*
|
|
6549
|
-
* @
|
|
6550
|
-
* @
|
|
6551
|
-
* @
|
|
6854
|
+
* @type {Object} return object from transportAttributes via a11yUtilities
|
|
6855
|
+
* @property {Function} cleanup - Function to clean up the attribute watcher.
|
|
6856
|
+
* @property {Function} getCurrentAttributes - Function to get the current attributes being watched and their values.
|
|
6857
|
+
* @property {Function} getObservedAttribute - Function to get the value of a specific observed attribute by name.
|
|
6858
|
+
* @private
|
|
6552
6859
|
*/
|
|
6553
|
-
|
|
6554
|
-
|
|
6555
|
-
|
|
6860
|
+
attributeWatcher;
|
|
6861
|
+
|
|
6862
|
+
static get properties() {
|
|
6863
|
+
return {
|
|
6864
|
+
|
|
6865
|
+
/**
|
|
6866
|
+
* Defines the layout of an element.
|
|
6867
|
+
* @default {'default'}
|
|
6868
|
+
*/
|
|
6869
|
+
layout: {
|
|
6870
|
+
type: String,
|
|
6871
|
+
attribute: "layout",
|
|
6872
|
+
reflect: true
|
|
6873
|
+
},
|
|
6874
|
+
|
|
6875
|
+
/**
|
|
6876
|
+
* Defines the shape of an element.
|
|
6877
|
+
* @property {'default', 'rounded', 'pill', 'circle'}
|
|
6878
|
+
* @default {'default'}
|
|
6879
|
+
*/
|
|
6880
|
+
shape: {
|
|
6881
|
+
type: String,
|
|
6882
|
+
attribute: "shape",
|
|
6883
|
+
reflect: true
|
|
6884
|
+
},
|
|
6885
|
+
|
|
6886
|
+
/**
|
|
6887
|
+
* Defines the size of an element.
|
|
6888
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'}
|
|
6889
|
+
* @default {'md'}
|
|
6890
|
+
*/
|
|
6891
|
+
size: {
|
|
6892
|
+
type: String,
|
|
6893
|
+
attribute: "size",
|
|
6894
|
+
reflect: true
|
|
6895
|
+
},
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* This Boolean attribute lets you specify that the element should be rendered in dark mode.
|
|
6899
|
+
* @default {false}
|
|
6900
|
+
*/
|
|
6901
|
+
onDark: {
|
|
6902
|
+
type: Boolean,
|
|
6903
|
+
attribute: "ondark",
|
|
6904
|
+
reflect: true
|
|
6905
|
+
},
|
|
6906
|
+
|
|
6907
|
+
/**
|
|
6908
|
+
* A reference to the wrapper element in the shadow DOM.
|
|
6909
|
+
* This is used to apply layout and shape classes dynamically.
|
|
6910
|
+
* @type {HTMLElement|null}
|
|
6911
|
+
* @default {null}
|
|
6912
|
+
* @private
|
|
6913
|
+
*/
|
|
6914
|
+
wrapper: {
|
|
6915
|
+
type: HTMLElement,
|
|
6916
|
+
attribute: false,
|
|
6917
|
+
reflect: false
|
|
6918
|
+
}
|
|
6919
|
+
};
|
|
6920
|
+
}
|
|
6921
|
+
|
|
6922
|
+
|
|
6923
|
+
|
|
6924
|
+
resetShapeClasses() {
|
|
6925
|
+
if (this.shape && this.size) {
|
|
6926
|
+
|
|
6927
|
+
if (this.wrapper) {
|
|
6928
|
+
this.wrapper.classList.forEach((className) => {
|
|
6929
|
+
if (className.startsWith('shape-')) {
|
|
6930
|
+
this.wrapper.classList.remove(className);
|
|
6931
|
+
}
|
|
6932
|
+
});
|
|
6933
|
+
|
|
6934
|
+
this.wrapper.classList.add(`shape-${this.shape.toLowerCase()}-${this.size.toLowerCase()}`);
|
|
6935
|
+
}
|
|
6556
6936
|
}
|
|
6557
6937
|
}
|
|
6558
6938
|
|
|
6559
|
-
|
|
6560
|
-
|
|
6561
|
-
|
|
6562
|
-
|
|
6563
|
-
|
|
6564
|
-
|
|
6565
|
-
|
|
6566
|
-
|
|
6567
|
-
|
|
6568
|
-
|
|
6569
|
-
|
|
6570
|
-
|
|
6571
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
6572
|
-
) {
|
|
6573
|
-
return __Closest(base);
|
|
6939
|
+
resetLayoutClasses() {
|
|
6940
|
+
if (this.layout) {
|
|
6941
|
+
if (this.wrapper) {
|
|
6942
|
+
this.wrapper.classList.forEach((className) => {
|
|
6943
|
+
if (className.startsWith('layout-')) {
|
|
6944
|
+
this.wrapper.classList.remove(className);
|
|
6945
|
+
}
|
|
6946
|
+
});
|
|
6947
|
+
|
|
6948
|
+
this.wrapper.classList.add(`layout-${this.layout.toLowerCase()}`);
|
|
6949
|
+
}
|
|
6950
|
+
}
|
|
6574
6951
|
}
|
|
6575
|
-
/* eslint-enable jsdoc/require-param */
|
|
6576
6952
|
|
|
6577
|
-
|
|
6578
|
-
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
* @returns {void}
|
|
6582
|
-
*/
|
|
6583
|
-
handleComponentTagRename(elem, tagName) {
|
|
6584
|
-
const tag = tagName.toLowerCase();
|
|
6585
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6953
|
+
updateComponentArchitecture() {
|
|
6954
|
+
this.resetLayoutClasses();
|
|
6955
|
+
this.resetShapeClasses();
|
|
6956
|
+
}
|
|
6586
6957
|
|
|
6587
|
-
|
|
6588
|
-
|
|
6958
|
+
updated(changedProperties) {
|
|
6959
|
+
if (changedProperties.has('layout') || changedProperties.has('shape') || changedProperties.has('size')) {
|
|
6960
|
+
this.updateComponentArchitecture();
|
|
6589
6961
|
}
|
|
6590
6962
|
}
|
|
6591
6963
|
|
|
6592
|
-
|
|
6593
|
-
|
|
6594
|
-
* @param {Object} elem - The element to validate.
|
|
6595
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
6596
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
6597
|
-
*/
|
|
6598
|
-
elementMatch(elem, tagName) {
|
|
6599
|
-
const tag = tagName.toLowerCase();
|
|
6600
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
6964
|
+
firstUpdated() {
|
|
6965
|
+
super.firstUpdated();
|
|
6601
6966
|
|
|
6602
|
-
|
|
6967
|
+
// Set a reference to the wrapper element in the shadow DOM
|
|
6968
|
+
this.wrapper = this.shadowRoot.querySelector('.wrapper');
|
|
6969
|
+
|
|
6970
|
+
// Initialize the transportation of ARIA attributes to the target element and get the disconnect function for cleanup
|
|
6971
|
+
this.attributeWatcher = transportAllA11yAttributes({ host: this, target: this.shadowRoot.querySelector('.wrapper') });
|
|
6603
6972
|
}
|
|
6604
|
-
};
|
|
6605
6973
|
|
|
6606
|
-
|
|
6974
|
+
disconnectedCallback() {
|
|
6975
|
+
super.disconnectedCallback();
|
|
6976
|
+
|
|
6977
|
+
// Cleanup the ARIA observer if it exists
|
|
6978
|
+
if (this.attributeWatcher) {
|
|
6979
|
+
this.attributeWatcher.cleanup();
|
|
6980
|
+
this.attributeWatcher = null;
|
|
6981
|
+
}
|
|
6982
|
+
}
|
|
6983
|
+
|
|
6984
|
+
// Try to render the defined `this.layout` layout. If that fails, fall back to the default layout.
|
|
6985
|
+
// This will catch if an invalid layout value is passed in and render the default layout if so.
|
|
6986
|
+
render() {
|
|
6987
|
+
try {
|
|
6988
|
+
return this.renderLayout();
|
|
6989
|
+
} catch (error) {
|
|
6990
|
+
// failed to get the defined layout
|
|
6991
|
+
console.error('Failed to get the defined layout - using the default layout', error); // eslint-disable-line no-console
|
|
6992
|
+
|
|
6993
|
+
// fallback to the default layout
|
|
6994
|
+
return this.getLayout('default');
|
|
6995
|
+
}
|
|
6996
|
+
}
|
|
6997
|
+
}
|
|
6998
|
+
|
|
6999
|
+
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}`;
|
|
7000
|
+
|
|
7001
|
+
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)}`;
|
|
6607
7002
|
|
|
6608
|
-
var
|
|
7003
|
+
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}`;
|
|
6609
7004
|
|
|
6610
|
-
var
|
|
7005
|
+
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}`;
|
|
6611
7006
|
|
|
6612
7007
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6613
7008
|
// See LICENSE in the project root for license information.
|
|
@@ -6826,14 +7221,13 @@ class AuroLoader extends i$2 {
|
|
|
6826
7221
|
|
|
6827
7222
|
var loaderVersion = '5.0.0';
|
|
6828
7223
|
|
|
6829
|
-
/* eslint-disable max-lines */
|
|
7224
|
+
/* eslint-disable max-lines, curly */
|
|
6830
7225
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
6831
7226
|
// See LICENSE in the project root for license information.
|
|
6832
7227
|
|
|
6833
7228
|
|
|
6834
7229
|
/**
|
|
6835
7230
|
* @slot - Default slot for the text of the button.
|
|
6836
|
-
* @slot icon - Slot to provide auro-icon for the button.
|
|
6837
7231
|
* @csspart button - Apply CSS to HTML5 button.
|
|
6838
7232
|
* @csspart loader - Apply CSS to auro-loader.
|
|
6839
7233
|
* @csspart text - Apply CSS to text slot.
|
|
@@ -6842,7 +7236,18 @@ var loaderVersion = '5.0.0';
|
|
|
6842
7236
|
|
|
6843
7237
|
/* eslint-disable lit/no-invalid-html, lit/binding-positions */
|
|
6844
7238
|
|
|
6845
|
-
|
|
7239
|
+
const ICON_ONLY_SHAPES = ['circle'];
|
|
7240
|
+
|
|
7241
|
+
/**
|
|
7242
|
+
* AuroButton is a custom element that provides a styled, accessible button with support for various states and form association.
|
|
7243
|
+
* It is designed to be flexible, supporting loading states, icon slots, and integration with HTML5 forms.
|
|
7244
|
+
* @property {'default', 'rounded', 'pill', 'circle'} shape - Defines the shape of the button.
|
|
7245
|
+
* @property {'xs', 'sm', 'md', 'lg', 'xl'} size - Defines the size of the button.
|
|
7246
|
+
* @property {'primary', 'secondary', 'tertiary', 'ghost', 'flat'} variant - Sets the button variant.
|
|
7247
|
+
* @property {'submit', 'reset', 'button'} type - The type of button. Matches HTML5 Button Spec.
|
|
7248
|
+
* @property {boolean} onDark - Indicates if the button is rendered in dark mode.
|
|
7249
|
+
*/
|
|
7250
|
+
class AuroButton extends AuroElement {
|
|
6846
7251
|
|
|
6847
7252
|
/**
|
|
6848
7253
|
* Enables form association for this element.
|
|
@@ -6857,13 +7262,10 @@ class AuroButton extends i$2 {
|
|
|
6857
7262
|
super();
|
|
6858
7263
|
this.autofocus = false;
|
|
6859
7264
|
this.disabled = false;
|
|
6860
|
-
this.iconOnly = false;
|
|
6861
7265
|
this.loading = false;
|
|
7266
|
+
this.size = "md";
|
|
7267
|
+
this.shape = "rounded";
|
|
6862
7268
|
this.onDark = false;
|
|
6863
|
-
this.secondary = false;
|
|
6864
|
-
this.tertiary = false;
|
|
6865
|
-
this.rounded = false;
|
|
6866
|
-
this.slim = false;
|
|
6867
7269
|
this.fluid = false;
|
|
6868
7270
|
this.loadingText = this.loadingText || 'Loading...';
|
|
6869
7271
|
|
|
@@ -6892,43 +7294,38 @@ class AuroButton extends i$2 {
|
|
|
6892
7294
|
return [
|
|
6893
7295
|
tokensCss$2,
|
|
6894
7296
|
styleCss$2,
|
|
6895
|
-
colorCss$2
|
|
7297
|
+
colorCss$2,
|
|
7298
|
+
shapeSize
|
|
6896
7299
|
];
|
|
6897
7300
|
}
|
|
6898
7301
|
|
|
6899
7302
|
static get properties() {
|
|
6900
7303
|
return {
|
|
6901
7304
|
|
|
6902
|
-
|
|
6903
|
-
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6904
|
-
*/
|
|
6905
|
-
autofocus: {
|
|
6906
|
-
type: Boolean,
|
|
6907
|
-
reflect: true
|
|
6908
|
-
},
|
|
7305
|
+
...super.properties,
|
|
6909
7306
|
|
|
6910
7307
|
/**
|
|
6911
|
-
*
|
|
7308
|
+
* Override layout since it isn't used in this component.
|
|
7309
|
+
* @private
|
|
6912
7310
|
*/
|
|
6913
|
-
|
|
7311
|
+
layout: {
|
|
6914
7312
|
type: Boolean,
|
|
6915
|
-
|
|
7313
|
+
attribute: false,
|
|
7314
|
+
reflect: false
|
|
6916
7315
|
},
|
|
6917
7316
|
|
|
6918
7317
|
/**
|
|
6919
|
-
*
|
|
6920
|
-
* @deprecated
|
|
7318
|
+
* This Boolean attribute lets you specify that the button should have input focus when the page loads, unless overridden by the user.
|
|
6921
7319
|
*/
|
|
6922
|
-
|
|
7320
|
+
autofocus: {
|
|
6923
7321
|
type: Boolean,
|
|
6924
7322
|
reflect: true
|
|
6925
7323
|
},
|
|
6926
7324
|
|
|
6927
7325
|
/**
|
|
6928
|
-
*
|
|
6929
|
-
* @deprecated
|
|
7326
|
+
* If set to true, button will become disabled and not allow for interactions.
|
|
6930
7327
|
*/
|
|
6931
|
-
|
|
7328
|
+
disabled: {
|
|
6932
7329
|
type: Boolean,
|
|
6933
7330
|
reflect: true
|
|
6934
7331
|
},
|
|
@@ -6936,15 +7333,7 @@ class AuroButton extends i$2 {
|
|
|
6936
7333
|
/**
|
|
6937
7334
|
* Alters the shape of the button to be full width of its parent container.
|
|
6938
7335
|
*/
|
|
6939
|
-
fluid:
|
|
6940
|
-
type: Boolean,
|
|
6941
|
-
reflect: true
|
|
6942
|
-
},
|
|
6943
|
-
|
|
6944
|
-
/**
|
|
6945
|
-
* If set to true, the button will contain an icon with no additional content.
|
|
6946
|
-
*/
|
|
6947
|
-
iconOnly: {
|
|
7336
|
+
fluid: {
|
|
6948
7337
|
type: Boolean,
|
|
6949
7338
|
reflect: true
|
|
6950
7339
|
},
|
|
@@ -6952,7 +7341,7 @@ class AuroButton extends i$2 {
|
|
|
6952
7341
|
/**
|
|
6953
7342
|
* If set to true button text will be replaced with `auro-loader` and become disabled.
|
|
6954
7343
|
*/
|
|
6955
|
-
loading:
|
|
7344
|
+
loading: {
|
|
6956
7345
|
type: Boolean,
|
|
6957
7346
|
reflect: true
|
|
6958
7347
|
},
|
|
@@ -6960,34 +7349,10 @@ class AuroButton extends i$2 {
|
|
|
6960
7349
|
/**
|
|
6961
7350
|
* 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.
|
|
6962
7351
|
*/
|
|
6963
|
-
loadingText:
|
|
7352
|
+
loadingText: {
|
|
6964
7353
|
type: String
|
|
6965
7354
|
},
|
|
6966
7355
|
|
|
6967
|
-
/**
|
|
6968
|
-
* Set value for on-dark version of auro-button.
|
|
6969
|
-
*/
|
|
6970
|
-
onDark: {
|
|
6971
|
-
type: Boolean,
|
|
6972
|
-
reflect: true
|
|
6973
|
-
},
|
|
6974
|
-
|
|
6975
|
-
/**
|
|
6976
|
-
* If set to true, the button will have a rounded shape.
|
|
6977
|
-
*/
|
|
6978
|
-
rounded: {
|
|
6979
|
-
type: Boolean,
|
|
6980
|
-
reflect: true
|
|
6981
|
-
},
|
|
6982
|
-
|
|
6983
|
-
/**
|
|
6984
|
-
* Set value for slim version of auro-button.
|
|
6985
|
-
*/
|
|
6986
|
-
slim: {
|
|
6987
|
-
type: Boolean,
|
|
6988
|
-
reflect: true
|
|
6989
|
-
},
|
|
6990
|
-
|
|
6991
7356
|
/**
|
|
6992
7357
|
* Populates `tabIndex` to define the focusable sequence in keyboard navigation.
|
|
6993
7358
|
*/
|
|
@@ -6996,48 +7361,10 @@ class AuroButton extends i$2 {
|
|
|
6996
7361
|
reflect: true
|
|
6997
7362
|
},
|
|
6998
7363
|
|
|
6999
|
-
/**
|
|
7000
|
-
* Populates the `aria-hidden` attribute to hide the button from a11y API.
|
|
7001
|
-
*/
|
|
7002
|
-
ariahidden: {
|
|
7003
|
-
type: String,
|
|
7004
|
-
reflect: true,
|
|
7005
|
-
},
|
|
7006
|
-
|
|
7007
|
-
/**
|
|
7008
|
-
* Populates the `aria-label` attribute that is used to define a string that labels the current element.
|
|
7009
|
-
* Use it in cases where a text label is not visible on the screen.
|
|
7010
|
-
* If there is visible text labeling the element, use `aria-labelledby` instead.
|
|
7011
|
-
*/
|
|
7012
|
-
arialabel: {
|
|
7013
|
-
type: String,
|
|
7014
|
-
reflect: true
|
|
7015
|
-
},
|
|
7016
|
-
|
|
7017
|
-
/**
|
|
7018
|
-
* Populates the `aria-labelledby` attribute that establishes relationships between objects and their label(s),
|
|
7019
|
-
* and its value should be one or more element IDs, which refer to elements that have the text needed for labeling.
|
|
7020
|
-
* List multiple element IDs in a space delimited fashion.
|
|
7021
|
-
*/
|
|
7022
|
-
arialabelledby: {
|
|
7023
|
-
type: String,
|
|
7024
|
-
reflect: true
|
|
7025
|
-
},
|
|
7026
|
-
|
|
7027
|
-
/**
|
|
7028
|
-
* Populates the `aria-expanded` attribute that indicates whether the element,
|
|
7029
|
-
* or another grouping element it controls, is currently expanded or collapsed.
|
|
7030
|
-
* This is an optional attribute for buttons.
|
|
7031
|
-
*/
|
|
7032
|
-
ariaexpanded: {
|
|
7033
|
-
type: Boolean,
|
|
7034
|
-
reflect: true
|
|
7035
|
-
},
|
|
7036
|
-
|
|
7037
7364
|
/**
|
|
7038
7365
|
* Sets title attribute. The information is most often shown as a tooltip text when the mouse moves over the element.
|
|
7039
7366
|
*/
|
|
7040
|
-
title:
|
|
7367
|
+
title: {
|
|
7041
7368
|
type: String,
|
|
7042
7369
|
reflect: true
|
|
7043
7370
|
},
|
|
@@ -7045,7 +7372,7 @@ class AuroButton extends i$2 {
|
|
|
7045
7372
|
/**
|
|
7046
7373
|
* The type of the button. Possible values are: `submit`, `reset`, `button`.
|
|
7047
7374
|
*/
|
|
7048
|
-
type:
|
|
7375
|
+
type: {
|
|
7049
7376
|
type: String,
|
|
7050
7377
|
reflect: true
|
|
7051
7378
|
},
|
|
@@ -7053,19 +7380,19 @@ class AuroButton extends i$2 {
|
|
|
7053
7380
|
/**
|
|
7054
7381
|
* Defines the value associated with the button which is submitted with the form data.
|
|
7055
7382
|
*/
|
|
7056
|
-
value:
|
|
7383
|
+
value: {
|
|
7057
7384
|
type: String,
|
|
7058
7385
|
reflect: true
|
|
7059
7386
|
},
|
|
7060
7387
|
|
|
7061
7388
|
/**
|
|
7062
|
-
* Sets button variant option.
|
|
7389
|
+
* Sets button variant option.
|
|
7390
|
+
* @default primary
|
|
7063
7391
|
*/
|
|
7064
|
-
variant:
|
|
7392
|
+
variant: {
|
|
7065
7393
|
type: String,
|
|
7066
7394
|
reflect: true
|
|
7067
7395
|
},
|
|
7068
|
-
ready: { type: Boolean },
|
|
7069
7396
|
};
|
|
7070
7397
|
}
|
|
7071
7398
|
|
|
@@ -7078,7 +7405,7 @@ class AuroButton extends i$2 {
|
|
|
7078
7405
|
*
|
|
7079
7406
|
*/
|
|
7080
7407
|
static register(name = "auro-button") {
|
|
7081
|
-
AuroLibraryRuntimeUtils$
|
|
7408
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroButton);
|
|
7082
7409
|
}
|
|
7083
7410
|
|
|
7084
7411
|
/**
|
|
@@ -7090,17 +7417,6 @@ class AuroButton extends i$2 {
|
|
|
7090
7417
|
this.renderRoot.querySelector('button').focus();
|
|
7091
7418
|
}
|
|
7092
7419
|
|
|
7093
|
-
updated() {
|
|
7094
|
-
// support the old `secondary` and `tertiary` attributes` that are deprecated
|
|
7095
|
-
if (this.secondary) {
|
|
7096
|
-
this.setAttribute('variant', 'secondary');
|
|
7097
|
-
}
|
|
7098
|
-
|
|
7099
|
-
if (this.tertiary) {
|
|
7100
|
-
this.setAttribute('variant', 'tertiary');
|
|
7101
|
-
}
|
|
7102
|
-
}
|
|
7103
|
-
|
|
7104
7420
|
/**
|
|
7105
7421
|
* Submits the form that this button is associated with.
|
|
7106
7422
|
* @private
|
|
@@ -7121,25 +7437,57 @@ class AuroButton extends i$2 {
|
|
|
7121
7437
|
return this.internals ? this.internals.form : null;
|
|
7122
7438
|
}
|
|
7123
7439
|
|
|
7124
|
-
|
|
7440
|
+
/**
|
|
7441
|
+
* @private
|
|
7442
|
+
* @returns {Boolean}
|
|
7443
|
+
*/
|
|
7444
|
+
get hideText() {
|
|
7445
|
+
return ICON_ONLY_SHAPES.includes(this.shape);
|
|
7446
|
+
}
|
|
7447
|
+
|
|
7448
|
+
/**
|
|
7449
|
+
* Returns the current value of the projected `aria-label` attribute or undefined if not set.
|
|
7450
|
+
* @returns {string | undefined}
|
|
7451
|
+
* @private
|
|
7452
|
+
*/
|
|
7453
|
+
get currentAriaLabel() {
|
|
7454
|
+
if (!this.attributeWatcher) return undefined;
|
|
7455
|
+
|
|
7456
|
+
const ariaLabel = this.attributeWatcher.getObservedAttribute("aria-label");
|
|
7457
|
+
return ariaLabel || undefined;
|
|
7458
|
+
}
|
|
7459
|
+
|
|
7460
|
+
/**
|
|
7461
|
+
* Returns the current value of the projected `aria-labelledby` attribute or undefined if not set.
|
|
7462
|
+
* @returns {string | undefined}
|
|
7463
|
+
* @private
|
|
7464
|
+
*/
|
|
7465
|
+
get currentAriaLabelledBy() {
|
|
7466
|
+
if (!this.attributeWatcher) return undefined;
|
|
7467
|
+
|
|
7468
|
+
const ariaLabelledBy = this.attributeWatcher.getObservedAttribute("aria-labelledby");
|
|
7469
|
+
return ariaLabelledBy || undefined;
|
|
7470
|
+
}
|
|
7471
|
+
|
|
7472
|
+
/**
|
|
7473
|
+
* Renders the default layout for the button.
|
|
7474
|
+
* @returns {TemplateResult}
|
|
7475
|
+
* @private
|
|
7476
|
+
*/
|
|
7477
|
+
renderLayoutDefault() {
|
|
7125
7478
|
const classes = {
|
|
7126
|
-
|
|
7127
|
-
|
|
7128
|
-
|
|
7129
|
-
|
|
7130
|
-
|
|
7131
|
-
'auro-button--iconOnly': this.iconOnly,
|
|
7132
|
-
'auro-button--iconOnlySlim': this.iconOnly && this.slim,
|
|
7133
|
-
'loading': this.loading
|
|
7479
|
+
"util_insetLg--squish": true,
|
|
7480
|
+
"auro-button": true,
|
|
7481
|
+
"icon-only": this.hideText,
|
|
7482
|
+
wrapper: true,
|
|
7483
|
+
loading: this.loading,
|
|
7134
7484
|
};
|
|
7135
7485
|
|
|
7136
7486
|
return u$2`
|
|
7137
7487
|
<button
|
|
7138
7488
|
part="button"
|
|
7139
|
-
aria-
|
|
7140
|
-
aria-
|
|
7141
|
-
aria-labelledby="${o(this.arialabelledby ? this.arialabelledby : undefined)}"
|
|
7142
|
-
aria-expanded="${o(this.ariaexpanded)}"
|
|
7489
|
+
aria-label="${o(this.loading ? this.loadingText : this.currentAriaLabel || undefined)}"
|
|
7490
|
+
aria-labelledby="${o(this.loading ? undefined : this.currentAriaLabelledBy || undefined)}"
|
|
7143
7491
|
tabIndex="${o(this.tIndex)}"
|
|
7144
7492
|
?autofocus="${this.autofocus}"
|
|
7145
7493
|
class="${e(classes)}"
|
|
@@ -7156,19 +7504,24 @@ class AuroButton extends i$2 {
|
|
|
7156
7504
|
|
|
7157
7505
|
<span class="contentWrapper">
|
|
7158
7506
|
<span class="textSlot" part="text">
|
|
7159
|
-
|
|
7160
|
-
</span>
|
|
7161
|
-
|
|
7162
|
-
<span part="icon">
|
|
7163
|
-
<slot name="icon"></slot>
|
|
7507
|
+
<slot></slot>
|
|
7164
7508
|
</span>
|
|
7165
7509
|
</span>
|
|
7166
7510
|
</button>
|
|
7167
7511
|
`;
|
|
7168
7512
|
}
|
|
7513
|
+
|
|
7514
|
+
/**
|
|
7515
|
+
* Renders the layout of the button
|
|
7516
|
+
* @returns {TemplateResult}
|
|
7517
|
+
* @private
|
|
7518
|
+
*/
|
|
7519
|
+
renderLayout() {
|
|
7520
|
+
return this.renderLayoutDefault();
|
|
7521
|
+
}
|
|
7169
7522
|
}
|
|
7170
7523
|
|
|
7171
|
-
var buttonVersion = '
|
|
7524
|
+
var buttonVersion = '11.0.0';
|
|
7172
7525
|
|
|
7173
7526
|
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)}`;
|
|
7174
7527
|
|
|
@@ -7391,7 +7744,7 @@ class AuroInput extends BaseInput {
|
|
|
7391
7744
|
/**
|
|
7392
7745
|
* Generate unique names for dependency components.
|
|
7393
7746
|
*/
|
|
7394
|
-
const versioning = new AuroDependencyVersioning
|
|
7747
|
+
const versioning = new AuroDependencyVersioning();
|
|
7395
7748
|
|
|
7396
7749
|
/**
|
|
7397
7750
|
* @private
|
|
@@ -7436,6 +7789,7 @@ class AuroInput extends BaseInput {
|
|
|
7436
7789
|
*/
|
|
7437
7790
|
get commonLabelClasses() {
|
|
7438
7791
|
return {
|
|
7792
|
+
'is-disabled': this.disabled,
|
|
7439
7793
|
'withValue': this.value && this.value.length > 0,
|
|
7440
7794
|
'util_displayHiddenVisually': this.hasDisplayValueContent && !this.hasFocus && this.value && this.value.length > 0
|
|
7441
7795
|
};
|
|
@@ -7472,11 +7826,23 @@ class AuroInput extends BaseInput {
|
|
|
7472
7826
|
get commonWrapperClasses() {
|
|
7473
7827
|
return {
|
|
7474
7828
|
'wrapper': true,
|
|
7829
|
+
'simple': this.simple,
|
|
7475
7830
|
'withValue': this.value && this.value.length > 0,
|
|
7476
7831
|
'hasFocus': this.hasFocus
|
|
7477
7832
|
};
|
|
7478
7833
|
}
|
|
7479
7834
|
|
|
7835
|
+
/**
|
|
7836
|
+
* Returns classmap configuration for accent elements in each layout.
|
|
7837
|
+
* @private
|
|
7838
|
+
* @returns {object} - Returns classmap.
|
|
7839
|
+
*/
|
|
7840
|
+
get commonAccentClasses() {
|
|
7841
|
+
return {
|
|
7842
|
+
'util_displayHidden': false
|
|
7843
|
+
};
|
|
7844
|
+
}
|
|
7845
|
+
|
|
7480
7846
|
/**
|
|
7481
7847
|
* Returns classmap configuration for helpText elements in each layout.
|
|
7482
7848
|
* @private
|
|
@@ -7499,7 +7865,7 @@ class AuroInput extends BaseInput {
|
|
|
7499
7865
|
*
|
|
7500
7866
|
*/
|
|
7501
7867
|
static register(name = "auro-input") {
|
|
7502
|
-
AuroLibraryRuntimeUtils$
|
|
7868
|
+
AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroInput);
|
|
7503
7869
|
}
|
|
7504
7870
|
|
|
7505
7871
|
/**
|
|
@@ -7572,28 +7938,33 @@ class AuroInput extends BaseInput {
|
|
|
7572
7938
|
: this.commonInputClasses;
|
|
7573
7939
|
|
|
7574
7940
|
return u$2`
|
|
7575
|
-
<label for=${this.
|
|
7941
|
+
<label for=${this.inputId} class="${e(this.commonLabelClasses)}" part="label">
|
|
7576
7942
|
<slot name="label">
|
|
7577
7943
|
${this.label}
|
|
7578
7944
|
</slot>
|
|
7579
7945
|
</label>
|
|
7946
|
+
|
|
7947
|
+
<!-- Attributes are grouped into: basic attributes, event handlers, ARIA attributes, and input-specific attributes -->
|
|
7580
7948
|
<input
|
|
7581
7949
|
@blur="${this.handleBlur}"
|
|
7582
7950
|
@focusin="${this.handleFocusin}"
|
|
7583
7951
|
@focusout="${this.handleFocusout}"
|
|
7584
7952
|
@input="${this.handleInput}"
|
|
7953
|
+
.placeholder=${this.placeholderStr}
|
|
7954
|
+
.role=${this.a11yRole}
|
|
7585
7955
|
?activeLabel="${this.activeLabel}"
|
|
7586
7956
|
?disabled="${this.disabled}"
|
|
7587
7957
|
?required="${this.required}"
|
|
7588
|
-
|
|
7958
|
+
aria-controls=${o(this.a11yControls)}
|
|
7589
7959
|
aria-describedby="${this.uniqueId}"
|
|
7960
|
+
aria-expanded=${o(this.a11yExpanded)}
|
|
7590
7961
|
aria-invalid="${this.validity !== 'valid'}"
|
|
7591
|
-
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7592
7962
|
autocomplete="${o(this.autocomplete ? this.autocomplete : undefined)}"
|
|
7963
|
+
autocapitalize="${o(this.autocapitalize ? this.autocapitalize : undefined)}"
|
|
7593
7964
|
autocorrect="${o(this.autocorrect ? this.autocorrect : undefined)}"
|
|
7594
7965
|
class="${e(inputOverrideClasses)}"
|
|
7595
7966
|
id="${this.inputId}"
|
|
7596
|
-
|
|
7967
|
+
inputmode="${o(this.inputmode ? this.inputmode : undefined)}"
|
|
7597
7968
|
lang="${o(this.lang)}"
|
|
7598
7969
|
maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
|
|
7599
7970
|
minlength="${o(this.minLength ? this.minLength : undefined)}"
|
|
@@ -7601,7 +7972,8 @@ class AuroInput extends BaseInput {
|
|
|
7601
7972
|
part="input"
|
|
7602
7973
|
pattern="${o(this.definePattern())}"
|
|
7603
7974
|
spellcheck="${o(this.spellcheck ? this.spellcheck : undefined)}"
|
|
7604
|
-
type="${this.type ===
|
|
7975
|
+
type="${this.type === "password" && this.showPassword ? "text" : this.getInputType(this.type)}"
|
|
7976
|
+
/>
|
|
7605
7977
|
<div class="${e(displayValueClasses)}" aria-hidden="true" part="displayValue">
|
|
7606
7978
|
<div class="displayValueWrapper">
|
|
7607
7979
|
<slot name="displayValue" @slotchange=${this.checkDisplayValueSlotChange}></slot>
|
|
@@ -7623,11 +7995,12 @@ class AuroInput extends BaseInput {
|
|
|
7623
7995
|
?onDark="${this.onDark}"
|
|
7624
7996
|
aria-label="${i18n(this.lang, 'clearInput')}"
|
|
7625
7997
|
class="notificationBtn clearBtn"
|
|
7626
|
-
|
|
7627
|
-
|
|
7998
|
+
shape="circle"
|
|
7999
|
+
size="sm"
|
|
8000
|
+
variant="ghost">
|
|
7628
8001
|
<${this.iconTag}
|
|
8002
|
+
?customColor="${this.onDark}"
|
|
7629
8003
|
category="interface"
|
|
7630
|
-
customColor
|
|
7631
8004
|
name="x-lg"
|
|
7632
8005
|
>
|
|
7633
8006
|
</${this.iconTag}>
|
|
@@ -7645,22 +8018,23 @@ class AuroInput extends BaseInput {
|
|
|
7645
8018
|
return u$2`
|
|
7646
8019
|
<div class="notification">
|
|
7647
8020
|
<${this.buttonTag}
|
|
7648
|
-
@click="${this.handleClickShowPassword}
|
|
8021
|
+
@click="${this.handleClickShowPassword}"
|
|
7649
8022
|
?onDark="${this.onDark}"
|
|
7650
|
-
aria-hidden="true"
|
|
7651
8023
|
class="notificationBtn passwordBtn"
|
|
7652
|
-
|
|
7653
|
-
|
|
8024
|
+
aria-label="${this.showPassword ? i18n(this.lang, "hidePassword") : i18n(this.lang, "showPassword")}"
|
|
8025
|
+
shape="circle"
|
|
8026
|
+
size="sm"
|
|
8027
|
+
variant="ghost">
|
|
7654
8028
|
<${this.iconTag}
|
|
8029
|
+
?customColor="${this.onDark}"
|
|
7655
8030
|
?hidden=${!this.showPassword}
|
|
7656
8031
|
category="interface"
|
|
7657
|
-
customColor
|
|
7658
8032
|
name="hide-password-stroke">
|
|
7659
8033
|
</${this.iconTag}>
|
|
7660
8034
|
<${this.iconTag}
|
|
8035
|
+
?customColor="${this.onDark}"
|
|
7661
8036
|
?hidden=${this.showPassword}
|
|
7662
8037
|
category="interface"
|
|
7663
|
-
customColor
|
|
7664
8038
|
name="view-password-stroke">
|
|
7665
8039
|
</${this.iconTag}>
|
|
7666
8040
|
</${this.buttonTag}>
|
|
@@ -7740,19 +8114,25 @@ class AuroInput extends BaseInput {
|
|
|
7740
8114
|
* @returns {import("lit").TemplateResult} - Returns HTML for the classic layout.
|
|
7741
8115
|
*/
|
|
7742
8116
|
renderLayoutClassic() {
|
|
8117
|
+
const classicClassMap = {
|
|
8118
|
+
...this.commonWrapperClasses,
|
|
8119
|
+
'thin': !this.simple
|
|
8120
|
+
};
|
|
8121
|
+
|
|
7743
8122
|
return u$2`
|
|
7744
8123
|
<div
|
|
7745
8124
|
@click="${this.handleClick}"
|
|
7746
|
-
class="${e(
|
|
8125
|
+
class="${e(classicClassMap)}"
|
|
7747
8126
|
part="wrapper">
|
|
7748
|
-
<div class="accents left">
|
|
8127
|
+
<div part="accent-left" class="accents left ${e(this.commonAccentClasses)}">
|
|
7749
8128
|
${this.renderHtmlTypeIcon()}
|
|
7750
8129
|
</div>
|
|
7751
8130
|
<div class="mainContent">
|
|
7752
8131
|
${this.renderHtmlInput(true)}
|
|
7753
8132
|
</div>
|
|
7754
|
-
<div class="accents right">
|
|
8133
|
+
<div part="accent-right" class="accents right ${e(this.commonAccentClasses)}">
|
|
7755
8134
|
${this.renderValidationErrorIconHtml()}
|
|
8135
|
+
${this.hasValue && this.type === 'password' ? this.renderHtmlNotificationPassword() : undefined}
|
|
7756
8136
|
${this.hasValue ? u$2`
|
|
7757
8137
|
${!this.disabled && !this.readonly ? u$2`
|
|
7758
8138
|
${this.renderHtmlActionClear()}
|
|
@@ -7777,7 +8157,7 @@ class AuroInput extends BaseInput {
|
|
|
7777
8157
|
@click="${this.handleClick}"
|
|
7778
8158
|
class="${e(this.commonWrapperClasses)}"
|
|
7779
8159
|
part="wrapper">
|
|
7780
|
-
<div class="accents left">
|
|
8160
|
+
<div class="accents left ${this.commonAccentClasses}">
|
|
7781
8161
|
${this.layout.includes('left') ? u$2`
|
|
7782
8162
|
${this.renderValidationErrorIconHtml()}
|
|
7783
8163
|
` : undefined}
|
|
@@ -7785,7 +8165,7 @@ class AuroInput extends BaseInput {
|
|
|
7785
8165
|
<div class="mainContent">
|
|
7786
8166
|
${this.renderHtmlInput()}
|
|
7787
8167
|
</div>
|
|
7788
|
-
<div class="accents right">
|
|
8168
|
+
<div class="accents right ${this.commonAccentClasses}">
|
|
7789
8169
|
${this.layout.includes('right') || this.layout === "emphasized" ? u$2`
|
|
7790
8170
|
${this.renderValidationErrorIconHtml()}
|
|
7791
8171
|
` : undefined}
|