@aurodesignsystem-dev/auro-formkit 0.0.0-pr794.2 → 0.0.0-pr794.3
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/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/combobox/demo/api.min.js +26 -71
- package/components/combobox/demo/index.min.js +26 -71
- package/components/combobox/dist/index.js +19 -69
- package/components/combobox/dist/registered.js +19 -69
- package/components/counter/demo/api.min.js +20 -70
- package/components/counter/demo/index.min.js +20 -70
- package/components/counter/dist/index.js +19 -69
- package/components/counter/dist/registered.js +19 -69
- package/components/datepicker/demo/api.min.js +90 -106
- package/components/datepicker/demo/index.min.js +90 -106
- package/components/datepicker/dist/auro-datepicker.d.ts +14 -1
- package/components/datepicker/dist/index.js +89 -105
- package/components/datepicker/dist/registered.js +89 -105
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +20 -70
- package/components/dropdown/demo/index.min.js +20 -70
- package/components/dropdown/dist/auro-dropdown.d.ts +2 -7
- package/components/dropdown/dist/index.js +19 -69
- package/components/dropdown/dist/registered.js +19 -69
- package/components/dropdown/dist/styles/style-css.d.ts +2 -0
- package/components/form/demo/api.min.js +1 -1
- package/components/form/demo/index.min.js +1 -1
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/menu/demo/api.md +12 -13
- package/components/menu/demo/api.min.js +7 -2
- package/components/menu/demo/index.min.js +7 -2
- package/components/menu/dist/auro-menu.d.ts +6 -1
- package/components/menu/dist/index.js +6 -1
- package/components/menu/dist/registered.js +6 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/select/demo/api.min.js +26 -71
- package/components/select/demo/index.min.js +26 -71
- package/components/select/dist/index.js +19 -69
- package/components/select/dist/registered.js +19 -69
- package/package.json +3 -3
|
@@ -9,7 +9,7 @@ const t$2=globalThis,e$4=t$2.ShadowRoot&&(void 0===t$2.ShadyCSS||t$2.ShadyCSS.na
|
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2017 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
|
-
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e
|
|
12
|
+
*/const{is:i$4,defineProperty:e$3,getOwnPropertyDescriptor:h$1,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a$2=globalThis,c$1=a$2.trustedTypes,l$2=c$1?c$1.emptyScript:"",p$1=a$2.reactiveElementPolyfillSupport,d$1=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l$2:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$1=(t,s)=>!i$4(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f$1};Symbol.metadata??=Symbol("metadata"),a$2.litPropertyMetadata??=new WeakMap;let y$1 = class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$3(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$1(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d$1("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d$1("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d$1("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S$1(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u$2).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u$2;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$1)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}};y$1.elementStyles=[],y$1.shadowRootOptions={mode:"open"},y$1[d$1("elementProperties")]=new Map,y$1[d$1("finalized")]=new Map,p$1?.({ReactiveElement:y$1}),(a$2.reactiveElementVersions??=[]).push("2.1.1");
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
@@ -4944,6 +4944,7 @@ class AuroFloatingUI {
|
|
|
4944
4944
|
this.element.bib.style.left = "0px";
|
|
4945
4945
|
this.element.bib.style.width = '';
|
|
4946
4946
|
this.element.bib.style.height = '';
|
|
4947
|
+
this.element.style.contain = '';
|
|
4947
4948
|
|
|
4948
4949
|
// reset the size that was mirroring `size` css-part
|
|
4949
4950
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4968,6 +4969,7 @@ class AuroFloatingUI {
|
|
|
4968
4969
|
this.element.bib.style.position = '';
|
|
4969
4970
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4970
4971
|
this.element.isBibFullscreen = false;
|
|
4972
|
+
this.element.style.contain = 'layout';
|
|
4971
4973
|
}
|
|
4972
4974
|
|
|
4973
4975
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -5733,7 +5735,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
5733
5735
|
return _fetchMap$1.get(uri);
|
|
5734
5736
|
};
|
|
5735
5737
|
|
|
5736
|
-
var styleCss$
|
|
5738
|
+
var styleCss$3$1 = i$5`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5737
5739
|
|
|
5738
5740
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5739
5741
|
// See LICENSE in the project root for license information.
|
|
@@ -5776,7 +5778,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
5776
5778
|
|
|
5777
5779
|
static get styles() {
|
|
5778
5780
|
return i$5`
|
|
5779
|
-
${styleCss$
|
|
5781
|
+
${styleCss$3$1}
|
|
5780
5782
|
`;
|
|
5781
5783
|
}
|
|
5782
5784
|
|
|
@@ -5978,7 +5980,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
5978
5980
|
return [
|
|
5979
5981
|
super.styles,
|
|
5980
5982
|
i$5`${tokensCss$2$1}`,
|
|
5981
|
-
i$5`${styleCss$
|
|
5983
|
+
i$5`${styleCss$3$1}`,
|
|
5982
5984
|
i$5`${colorCss$3$1}`
|
|
5983
5985
|
];
|
|
5984
5986
|
}
|
|
@@ -6064,7 +6066,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6064
6066
|
|
|
6065
6067
|
var iconVersion$1 = '6.1.2';
|
|
6066
6068
|
|
|
6067
|
-
var styleCss$
|
|
6069
|
+
var styleCss$2$1 = i$5`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
6068
6070
|
|
|
6069
6071
|
var colorCss$2$1 = i$5`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
6070
6072
|
|
|
@@ -6106,7 +6108,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
6106
6108
|
|
|
6107
6109
|
static get styles() {
|
|
6108
6110
|
return [
|
|
6109
|
-
styleCss$
|
|
6111
|
+
styleCss$2$1,
|
|
6110
6112
|
colorCss$2$1,
|
|
6111
6113
|
tokensCss$1$1
|
|
6112
6114
|
];
|
|
@@ -6267,13 +6269,15 @@ var shapeSizeCss = i$5`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
6267
6269
|
|
|
6268
6270
|
var colorCss$1$1 = i$5`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
6269
6271
|
|
|
6272
|
+
var styleCss$1$1 = i$5`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
6273
|
+
|
|
6270
6274
|
var classicColorCss = i$5``;
|
|
6271
6275
|
|
|
6272
|
-
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
6276
|
+
var classicLayoutCss = i$5`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
6273
6277
|
|
|
6274
|
-
var styleEmphasizedCss = i$5
|
|
6278
|
+
var styleEmphasizedCss = i$5`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6275
6279
|
|
|
6276
|
-
var styleSnowflakeCss = i$5`:host
|
|
6280
|
+
var styleSnowflakeCss = i$5`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6277
6281
|
|
|
6278
6282
|
var colorCss$5 = i$5`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6279
6283
|
|
|
@@ -6580,6 +6584,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6580
6584
|
// See LICENSE in the project root for license information.
|
|
6581
6585
|
|
|
6582
6586
|
|
|
6587
|
+
|
|
6583
6588
|
/*
|
|
6584
6589
|
* @slot - Default slot for the popover content.
|
|
6585
6590
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -6846,7 +6851,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6846
6851
|
* If true, the dropdown bib is displayed.
|
|
6847
6852
|
*/
|
|
6848
6853
|
isPopoverVisible: {
|
|
6849
|
-
type: Boolean
|
|
6854
|
+
type: Boolean,
|
|
6855
|
+
reflect: true,
|
|
6856
|
+
attribute: 'open'
|
|
6850
6857
|
},
|
|
6851
6858
|
|
|
6852
6859
|
/**
|
|
@@ -6982,6 +6989,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6982
6989
|
|
|
6983
6990
|
static get styles() {
|
|
6984
6991
|
return [
|
|
6992
|
+
styleCss$1$1,
|
|
6985
6993
|
tokensCss$1$1,
|
|
6986
6994
|
colorCss$1$1,
|
|
6987
6995
|
|
|
@@ -7162,64 +7170,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7162
7170
|
this.hasFocus = false;
|
|
7163
7171
|
}
|
|
7164
7172
|
|
|
7165
|
-
/**
|
|
7166
|
-
* Determines if the element or any children are focusable.
|
|
7167
|
-
* @private
|
|
7168
|
-
* @param {HTMLElement} element - Element to check.
|
|
7169
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7170
|
-
*/
|
|
7171
|
-
containsFocusableElement(element) {
|
|
7172
|
-
this.showTriggerBorders = true;
|
|
7173
|
-
|
|
7174
|
-
const nodes = [
|
|
7175
|
-
element,
|
|
7176
|
-
...element.children
|
|
7177
|
-
];
|
|
7178
|
-
|
|
7179
|
-
const focusableElements = [
|
|
7180
|
-
'a',
|
|
7181
|
-
'auro-hyperlink',
|
|
7182
|
-
'button',
|
|
7183
|
-
'auro-button',
|
|
7184
|
-
'input',
|
|
7185
|
-
'auro-input',
|
|
7186
|
-
];
|
|
7187
|
-
|
|
7188
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7189
|
-
|
|
7190
|
-
const result = nodes.some((node) => {
|
|
7191
|
-
const tagName = node.tagName.toLowerCase();
|
|
7192
|
-
|
|
7193
|
-
if (node.tabIndex > -1) {
|
|
7194
|
-
return true;
|
|
7195
|
-
}
|
|
7196
|
-
|
|
7197
|
-
if (focusableElements.includes(tagName)) {
|
|
7198
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7199
|
-
return true;
|
|
7200
|
-
}
|
|
7201
|
-
if (!node.hasAttribute('disabled')) {
|
|
7202
|
-
return true;
|
|
7203
|
-
}
|
|
7204
|
-
}
|
|
7205
|
-
|
|
7206
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7207
|
-
return true;
|
|
7208
|
-
}
|
|
7209
|
-
|
|
7210
|
-
return false;
|
|
7211
|
-
});
|
|
7212
|
-
|
|
7213
|
-
if (result) {
|
|
7214
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7215
|
-
const tagName = node.tagName.toLowerCase();
|
|
7216
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7217
|
-
});
|
|
7218
|
-
}
|
|
7219
|
-
|
|
7220
|
-
return result;
|
|
7221
|
-
}
|
|
7222
|
-
|
|
7223
7173
|
/**
|
|
7224
7174
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7225
7175
|
* @private
|
|
@@ -7331,7 +7281,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7331
7281
|
if (triggerContentNodes) {
|
|
7332
7282
|
|
|
7333
7283
|
// See if any of them are focusable elements
|
|
7334
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7284
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7335
7285
|
|
|
7336
7286
|
// If any of them are focusable elements
|
|
7337
7287
|
if (this.triggerContentFocusable) {
|
|
@@ -7403,7 +7353,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7403
7353
|
<div
|
|
7404
7354
|
id="trigger"
|
|
7405
7355
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
7406
|
-
tabindex="${this.tabIndex}"
|
|
7356
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7407
7357
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7408
7358
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7409
7359
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -4897,6 +4897,7 @@ class AuroFloatingUI {
|
|
|
4897
4897
|
this.element.bib.style.left = "0px";
|
|
4898
4898
|
this.element.bib.style.width = '';
|
|
4899
4899
|
this.element.bib.style.height = '';
|
|
4900
|
+
this.element.style.contain = '';
|
|
4900
4901
|
|
|
4901
4902
|
// reset the size that was mirroring `size` css-part
|
|
4902
4903
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4921,6 +4922,7 @@ class AuroFloatingUI {
|
|
|
4921
4922
|
this.element.bib.style.position = '';
|
|
4922
4923
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4923
4924
|
this.element.isBibFullscreen = false;
|
|
4925
|
+
this.element.style.contain = 'layout';
|
|
4924
4926
|
}
|
|
4925
4927
|
|
|
4926
4928
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -5686,7 +5688,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
5686
5688
|
return _fetchMap$1.get(uri);
|
|
5687
5689
|
};
|
|
5688
5690
|
|
|
5689
|
-
var styleCss$
|
|
5691
|
+
var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5690
5692
|
|
|
5691
5693
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5692
5694
|
// See LICENSE in the project root for license information.
|
|
@@ -5729,7 +5731,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
5729
5731
|
|
|
5730
5732
|
static get styles() {
|
|
5731
5733
|
return css`
|
|
5732
|
-
${styleCss$
|
|
5734
|
+
${styleCss$3$1}
|
|
5733
5735
|
`;
|
|
5734
5736
|
}
|
|
5735
5737
|
|
|
@@ -5931,7 +5933,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
5931
5933
|
return [
|
|
5932
5934
|
super.styles,
|
|
5933
5935
|
css`${tokensCss$2$1}`,
|
|
5934
|
-
css`${styleCss$
|
|
5936
|
+
css`${styleCss$3$1}`,
|
|
5935
5937
|
css`${colorCss$3$1}`
|
|
5936
5938
|
];
|
|
5937
5939
|
}
|
|
@@ -6017,7 +6019,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6017
6019
|
|
|
6018
6020
|
var iconVersion$1 = '6.1.2';
|
|
6019
6021
|
|
|
6020
|
-
var styleCss$
|
|
6022
|
+
var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
6021
6023
|
|
|
6022
6024
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
6023
6025
|
|
|
@@ -6059,7 +6061,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
6059
6061
|
|
|
6060
6062
|
static get styles() {
|
|
6061
6063
|
return [
|
|
6062
|
-
styleCss$
|
|
6064
|
+
styleCss$2$1,
|
|
6063
6065
|
colorCss$2$1,
|
|
6064
6066
|
tokensCss$1$1
|
|
6065
6067
|
];
|
|
@@ -6220,13 +6222,15 @@ var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
6220
6222
|
|
|
6221
6223
|
var colorCss$1$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
6222
6224
|
|
|
6225
|
+
var styleCss$1$1 = css`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
6226
|
+
|
|
6223
6227
|
var classicColorCss = css``;
|
|
6224
6228
|
|
|
6225
|
-
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
6229
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
6226
6230
|
|
|
6227
|
-
var styleEmphasizedCss = css
|
|
6231
|
+
var styleEmphasizedCss = css`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6228
6232
|
|
|
6229
|
-
var styleSnowflakeCss = css`:host
|
|
6233
|
+
var styleSnowflakeCss = css`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6230
6234
|
|
|
6231
6235
|
var colorCss$5 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6232
6236
|
|
|
@@ -6533,6 +6537,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
6533
6537
|
// See LICENSE in the project root for license information.
|
|
6534
6538
|
|
|
6535
6539
|
|
|
6540
|
+
|
|
6536
6541
|
/*
|
|
6537
6542
|
* @slot - Default slot for the popover content.
|
|
6538
6543
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -6799,7 +6804,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6799
6804
|
* If true, the dropdown bib is displayed.
|
|
6800
6805
|
*/
|
|
6801
6806
|
isPopoverVisible: {
|
|
6802
|
-
type: Boolean
|
|
6807
|
+
type: Boolean,
|
|
6808
|
+
reflect: true,
|
|
6809
|
+
attribute: 'open'
|
|
6803
6810
|
},
|
|
6804
6811
|
|
|
6805
6812
|
/**
|
|
@@ -6935,6 +6942,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6935
6942
|
|
|
6936
6943
|
static get styles() {
|
|
6937
6944
|
return [
|
|
6945
|
+
styleCss$1$1,
|
|
6938
6946
|
tokensCss$1$1,
|
|
6939
6947
|
colorCss$1$1,
|
|
6940
6948
|
|
|
@@ -7115,64 +7123,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7115
7123
|
this.hasFocus = false;
|
|
7116
7124
|
}
|
|
7117
7125
|
|
|
7118
|
-
/**
|
|
7119
|
-
* Determines if the element or any children are focusable.
|
|
7120
|
-
* @private
|
|
7121
|
-
* @param {HTMLElement} element - Element to check.
|
|
7122
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7123
|
-
*/
|
|
7124
|
-
containsFocusableElement(element) {
|
|
7125
|
-
this.showTriggerBorders = true;
|
|
7126
|
-
|
|
7127
|
-
const nodes = [
|
|
7128
|
-
element,
|
|
7129
|
-
...element.children
|
|
7130
|
-
];
|
|
7131
|
-
|
|
7132
|
-
const focusableElements = [
|
|
7133
|
-
'a',
|
|
7134
|
-
'auro-hyperlink',
|
|
7135
|
-
'button',
|
|
7136
|
-
'auro-button',
|
|
7137
|
-
'input',
|
|
7138
|
-
'auro-input',
|
|
7139
|
-
];
|
|
7140
|
-
|
|
7141
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7142
|
-
|
|
7143
|
-
const result = nodes.some((node) => {
|
|
7144
|
-
const tagName = node.tagName.toLowerCase();
|
|
7145
|
-
|
|
7146
|
-
if (node.tabIndex > -1) {
|
|
7147
|
-
return true;
|
|
7148
|
-
}
|
|
7149
|
-
|
|
7150
|
-
if (focusableElements.includes(tagName)) {
|
|
7151
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7152
|
-
return true;
|
|
7153
|
-
}
|
|
7154
|
-
if (!node.hasAttribute('disabled')) {
|
|
7155
|
-
return true;
|
|
7156
|
-
}
|
|
7157
|
-
}
|
|
7158
|
-
|
|
7159
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7160
|
-
return true;
|
|
7161
|
-
}
|
|
7162
|
-
|
|
7163
|
-
return false;
|
|
7164
|
-
});
|
|
7165
|
-
|
|
7166
|
-
if (result) {
|
|
7167
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7168
|
-
const tagName = node.tagName.toLowerCase();
|
|
7169
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7170
|
-
});
|
|
7171
|
-
}
|
|
7172
|
-
|
|
7173
|
-
return result;
|
|
7174
|
-
}
|
|
7175
|
-
|
|
7176
7126
|
/**
|
|
7177
7127
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7178
7128
|
* @private
|
|
@@ -7284,7 +7234,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7284
7234
|
if (triggerContentNodes) {
|
|
7285
7235
|
|
|
7286
7236
|
// See if any of them are focusable elements
|
|
7287
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7237
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7288
7238
|
|
|
7289
7239
|
// If any of them are focusable elements
|
|
7290
7240
|
if (this.triggerContentFocusable) {
|
|
@@ -7356,7 +7306,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7356
7306
|
<div
|
|
7357
7307
|
id="trigger"
|
|
7358
7308
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
7359
|
-
tabindex="${this.tabIndex}"
|
|
7309
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7360
7310
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7361
7311
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7362
7312
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -4897,6 +4897,7 @@ class AuroFloatingUI {
|
|
|
4897
4897
|
this.element.bib.style.left = "0px";
|
|
4898
4898
|
this.element.bib.style.width = '';
|
|
4899
4899
|
this.element.bib.style.height = '';
|
|
4900
|
+
this.element.style.contain = '';
|
|
4900
4901
|
|
|
4901
4902
|
// reset the size that was mirroring `size` css-part
|
|
4902
4903
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4921,6 +4922,7 @@ class AuroFloatingUI {
|
|
|
4921
4922
|
this.element.bib.style.position = '';
|
|
4922
4923
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4923
4924
|
this.element.isBibFullscreen = false;
|
|
4925
|
+
this.element.style.contain = 'layout';
|
|
4924
4926
|
}
|
|
4925
4927
|
|
|
4926
4928
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -5686,7 +5688,7 @@ const cacheFetch$1 = (uri, options = {}) => {
|
|
|
5686
5688
|
return _fetchMap$1.get(uri);
|
|
5687
5689
|
};
|
|
5688
5690
|
|
|
5689
|
-
var styleCss$
|
|
5691
|
+
var styleCss$3$1 = css`:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.ico_squareLarge{fill:currentColor;height:var(--auro-size-lg, var(--ds-size-300, 1.5rem))}.ico_squareSmall{fill:currentColor;height:.6rem}.ico_squareMed{fill:currentColor;height:var(--auro-size-md, var(--ds-size-200, 1rem))}.ico_squareSml{fill:currentColor;height:var(--auro-size-sm, var(--ds-size-150, 0.75rem))}:host{color:currentColor;vertical-align:middle;line-height:1;display:inline-block}svg{min-width:var(--ds-auro-icon-size, 1.5rem) !important;width:var(--ds-auro-icon-size, 1.5rem) !important;height:var(--ds-auro-icon-size, 1.5rem) !important}.componentWrapper{display:flex}.svgWrapper{height:var(--ds-auro-icon-size);width:var(--ds-auro-icon-size)}.labelWrapper{margin-left:var(--ds-size-50, 0.25rem);line-height:1.8}`;
|
|
5690
5692
|
|
|
5691
5693
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
5692
5694
|
// See LICENSE in the project root for license information.
|
|
@@ -5729,7 +5731,7 @@ let BaseIcon$1 = class BaseIcon extends AuroElement$1$1 {
|
|
|
5729
5731
|
|
|
5730
5732
|
static get styles() {
|
|
5731
5733
|
return css`
|
|
5732
|
-
${styleCss$
|
|
5734
|
+
${styleCss$3$1}
|
|
5733
5735
|
`;
|
|
5734
5736
|
}
|
|
5735
5737
|
|
|
@@ -5931,7 +5933,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
5931
5933
|
return [
|
|
5932
5934
|
super.styles,
|
|
5933
5935
|
css`${tokensCss$2$1}`,
|
|
5934
|
-
css`${styleCss$
|
|
5936
|
+
css`${styleCss$3$1}`,
|
|
5935
5937
|
css`${colorCss$3$1}`
|
|
5936
5938
|
];
|
|
5937
5939
|
}
|
|
@@ -6017,7 +6019,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
|
|
|
6017
6019
|
|
|
6018
6020
|
var iconVersion$1 = '6.1.2';
|
|
6019
6021
|
|
|
6020
|
-
var styleCss$
|
|
6022
|
+
var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}`;
|
|
6021
6023
|
|
|
6022
6024
|
var colorCss$2$1 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
6023
6025
|
|
|
@@ -6059,7 +6061,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
6059
6061
|
|
|
6060
6062
|
static get styles() {
|
|
6061
6063
|
return [
|
|
6062
|
-
styleCss$
|
|
6064
|
+
styleCss$2$1,
|
|
6063
6065
|
colorCss$2$1,
|
|
6064
6066
|
tokensCss$1$1
|
|
6065
6067
|
];
|
|
@@ -6220,13 +6222,15 @@ var shapeSizeCss = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
6220
6222
|
|
|
6221
6223
|
var colorCss$1$1 = css`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}`;
|
|
6222
6224
|
|
|
6225
|
+
var styleCss$1$1 = css`:host{display:block;position:relative}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
6226
|
+
|
|
6223
6227
|
var classicColorCss = css``;
|
|
6224
6228
|
|
|
6225
|
-
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}
|
|
6229
|
+
var classicLayoutCss = css`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .wrapper{display:flex;flex-direction:row;box-shadow:inset 0 0 0 1px var(--ds-auro-dropdown-trigger-outline-color)}@media(hover: hover){:host([layout*=classic]) .wrapper:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;justify-content:start;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;padding-right:var(--ds-size-150, 0.75rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}`;
|
|
6226
6230
|
|
|
6227
|
-
var styleEmphasizedCss = css
|
|
6231
|
+
var styleEmphasizedCss = css`.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{width:calc(100% - var(--ds-size-300, 1.5rem));margin-right:var(--ds-size-300, 1.5rem)}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6228
6232
|
|
|
6229
|
-
var styleSnowflakeCss = css`:host
|
|
6233
|
+
var styleSnowflakeCss = css`:host([layout*=snowflake]) .leftIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-left:var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .rightIndent{width:calc(100% - var(--ds-size-600, 3rem));margin-right:var(--ds-size-300, 1.5rem)}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
6230
6234
|
|
|
6231
6235
|
var colorCss$5 = css`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error-subtle, #fbc6c6)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
6232
6236
|
|
|
@@ -6533,6 +6537,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
6533
6537
|
// See LICENSE in the project root for license information.
|
|
6534
6538
|
|
|
6535
6539
|
|
|
6540
|
+
|
|
6536
6541
|
/*
|
|
6537
6542
|
* @slot - Default slot for the popover content.
|
|
6538
6543
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -6799,7 +6804,9 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6799
6804
|
* If true, the dropdown bib is displayed.
|
|
6800
6805
|
*/
|
|
6801
6806
|
isPopoverVisible: {
|
|
6802
|
-
type: Boolean
|
|
6807
|
+
type: Boolean,
|
|
6808
|
+
reflect: true,
|
|
6809
|
+
attribute: 'open'
|
|
6803
6810
|
},
|
|
6804
6811
|
|
|
6805
6812
|
/**
|
|
@@ -6935,6 +6942,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
6935
6942
|
|
|
6936
6943
|
static get styles() {
|
|
6937
6944
|
return [
|
|
6945
|
+
styleCss$1$1,
|
|
6938
6946
|
tokensCss$1$1,
|
|
6939
6947
|
colorCss$1$1,
|
|
6940
6948
|
|
|
@@ -7115,64 +7123,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7115
7123
|
this.hasFocus = false;
|
|
7116
7124
|
}
|
|
7117
7125
|
|
|
7118
|
-
/**
|
|
7119
|
-
* Determines if the element or any children are focusable.
|
|
7120
|
-
* @private
|
|
7121
|
-
* @param {HTMLElement} element - Element to check.
|
|
7122
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7123
|
-
*/
|
|
7124
|
-
containsFocusableElement(element) {
|
|
7125
|
-
this.showTriggerBorders = true;
|
|
7126
|
-
|
|
7127
|
-
const nodes = [
|
|
7128
|
-
element,
|
|
7129
|
-
...element.children
|
|
7130
|
-
];
|
|
7131
|
-
|
|
7132
|
-
const focusableElements = [
|
|
7133
|
-
'a',
|
|
7134
|
-
'auro-hyperlink',
|
|
7135
|
-
'button',
|
|
7136
|
-
'auro-button',
|
|
7137
|
-
'input',
|
|
7138
|
-
'auro-input',
|
|
7139
|
-
];
|
|
7140
|
-
|
|
7141
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7142
|
-
|
|
7143
|
-
const result = nodes.some((node) => {
|
|
7144
|
-
const tagName = node.tagName.toLowerCase();
|
|
7145
|
-
|
|
7146
|
-
if (node.tabIndex > -1) {
|
|
7147
|
-
return true;
|
|
7148
|
-
}
|
|
7149
|
-
|
|
7150
|
-
if (focusableElements.includes(tagName)) {
|
|
7151
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7152
|
-
return true;
|
|
7153
|
-
}
|
|
7154
|
-
if (!node.hasAttribute('disabled')) {
|
|
7155
|
-
return true;
|
|
7156
|
-
}
|
|
7157
|
-
}
|
|
7158
|
-
|
|
7159
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7160
|
-
return true;
|
|
7161
|
-
}
|
|
7162
|
-
|
|
7163
|
-
return false;
|
|
7164
|
-
});
|
|
7165
|
-
|
|
7166
|
-
if (result) {
|
|
7167
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7168
|
-
const tagName = node.tagName.toLowerCase();
|
|
7169
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7170
|
-
});
|
|
7171
|
-
}
|
|
7172
|
-
|
|
7173
|
-
return result;
|
|
7174
|
-
}
|
|
7175
|
-
|
|
7176
7126
|
/**
|
|
7177
7127
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7178
7128
|
* @private
|
|
@@ -7284,7 +7234,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7284
7234
|
if (triggerContentNodes) {
|
|
7285
7235
|
|
|
7286
7236
|
// See if any of them are focusable elements
|
|
7287
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7237
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7288
7238
|
|
|
7289
7239
|
// If any of them are focusable elements
|
|
7290
7240
|
if (this.triggerContentFocusable) {
|
|
@@ -7356,7 +7306,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7356
7306
|
<div
|
|
7357
7307
|
id="trigger"
|
|
7358
7308
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
7359
|
-
tabindex="${this.tabIndex}"
|
|
7309
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7360
7310
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7361
7311
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7362
7312
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|