@aurodesignsystem-dev/auro-formkit 0.0.0-pr788.0 → 0.0.0-pr788.1
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 +2 -2
- package/components/checkbox/demo/index.min.js +2 -2
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +2 -2
- package/components/combobox/demo/api.md +6 -6
- package/components/combobox/demo/api.min.js +12 -68
- package/components/combobox/demo/index.md +12 -12
- package/components/combobox/demo/index.min.js +12 -68
- package/components/combobox/demo/readme.md +2 -2
- package/components/combobox/dist/auro-combobox.d.ts +2 -2
- package/components/combobox/dist/index.js +11 -67
- package/components/combobox/dist/registered.js +11 -67
- package/components/counter/demo/api.md +9 -9
- package/components/counter/demo/api.min.js +8 -63
- package/components/counter/demo/index.md +6 -6
- package/components/counter/demo/index.min.js +8 -63
- package/components/counter/dist/auro-counter-group.d.ts +1 -1
- package/components/counter/dist/index.js +7 -62
- package/components/counter/dist/registered.js +7 -62
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +11 -11
- package/components/datepicker/demo/api.min.js +78 -100
- package/components/datepicker/demo/index.md +12 -12
- package/components/datepicker/demo/index.min.js +78 -100
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +15 -2
- package/components/datepicker/dist/index.js +77 -99
- package/components/datepicker/dist/registered.js +77 -99
- package/components/dropdown/demo/api.min.js +6 -61
- package/components/dropdown/demo/index.min.js +6 -61
- package/components/dropdown/dist/auro-dropdown.d.ts +0 -7
- package/components/dropdown/dist/index.js +5 -60
- package/components/dropdown/dist/registered.js +5 -60
- 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 +2 -3
- package/components/input/demo/index.min.js +2 -3
- package/components/input/dist/base-input.d.ts +0 -1
- package/components/input/dist/index.js +1 -2
- package/components/input/dist/registered.js +1 -2
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/api.md +3 -3
- package/components/select/demo/api.min.js +10 -65
- package/components/select/demo/index.md +8 -8
- package/components/select/demo/index.min.js +10 -65
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/auro-select.d.ts +1 -1
- package/components/select/dist/index.js +9 -64
- package/components/select/dist/registered.js +9 -64
- package/package.json +4 -4
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
|
|
78
78
|
| Name | Description |
|
|
79
79
|
|---------------------------|--------------------------------------------------|
|
|
80
|
-
| `ariaLabel.close`
|
|
80
|
+
| `ariaLabel.bib.close` | Sets aria-label on close button in fullscreen bib |
|
|
81
81
|
| `bib.fullscreen.footer` | Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true. |
|
|
82
82
|
| `bib.fullscreen.headline` | Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required. |
|
|
83
83
|
| [default](#default) | Slot for counter elements. |
|
|
@@ -297,7 +297,7 @@ counter.addEventListener('input', (event) => {
|
|
|
297
297
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-value-text.html -->
|
|
298
298
|
<div style="max-width: 350px;">
|
|
299
299
|
<auro-counter-group isDropdown>
|
|
300
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
300
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
301
301
|
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
302
302
|
<div slot="valueText">Custom value text</div>
|
|
303
303
|
<div slot="label"></div>
|
|
@@ -325,7 +325,7 @@ counter.addEventListener('input', (event) => {
|
|
|
325
325
|
```html
|
|
326
326
|
<div style="max-width: 350px;">
|
|
327
327
|
<auro-counter-group isDropdown>
|
|
328
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
328
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
329
329
|
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
330
330
|
<div slot="valueText">Custom value text</div>
|
|
331
331
|
<div slot="label"></div>
|
|
@@ -394,7 +394,7 @@ A counter dropdown with counters in an errored state will display the errors for
|
|
|
394
394
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-basic.html) -->
|
|
395
395
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-basic.html -->
|
|
396
396
|
<auro-counter-group isDropdown>
|
|
397
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
397
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
398
398
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
399
399
|
<div slot="label">Passengers</div>
|
|
400
400
|
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
@@ -415,7 +415,7 @@ A counter dropdown with counters in an errored state will display the errors for
|
|
|
415
415
|
|
|
416
416
|
```html
|
|
417
417
|
<auro-counter-group isDropdown>
|
|
418
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
418
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
419
419
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
420
420
|
<div slot="label">Passengers</div>
|
|
421
421
|
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
@@ -439,7 +439,7 @@ The error message for a dropdown counter with errored counters can also be overr
|
|
|
439
439
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-error-custom.html) -->
|
|
440
440
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-error-custom.html -->
|
|
441
441
|
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
442
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
442
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
443
443
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
444
444
|
<div slot="label">Passengers</div>
|
|
445
445
|
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
@@ -460,7 +460,7 @@ The error message for a dropdown counter with errored counters can also be overr
|
|
|
460
460
|
|
|
461
461
|
```html
|
|
462
462
|
<auro-counter-group error="Please select the appropriate number of passengers" isDropdown>
|
|
463
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
463
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
464
464
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
465
465
|
<div slot="label">Passengers</div>
|
|
466
466
|
<auro-counter error="Cannot have less than 1 adult passenger">
|
|
@@ -671,7 +671,7 @@ You can also set `bib.fullscreen.footer` slot to add any additional options on f
|
|
|
671
671
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-mobile-properties.html -->
|
|
672
672
|
<div style="max-width: 350px;">
|
|
673
673
|
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
674
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
674
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
675
675
|
<span slot="label">Passengers</span>
|
|
676
676
|
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
677
677
|
<div slot="helpText">This is help text</div>
|
|
@@ -703,7 +703,7 @@ You can also set `bib.fullscreen.footer` slot to add any additional options on f
|
|
|
703
703
|
```html
|
|
704
704
|
<div style="max-width: 350px;">
|
|
705
705
|
<auro-counter-group id="dropdownCouterExample" isDropdown fullscreenBreakpoint="lg">
|
|
706
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
706
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
707
707
|
<span slot="label">Passengers</span>
|
|
708
708
|
<span slot="bib.fullscreen.headline">Passengers</span>
|
|
709
709
|
<div slot="helpText">This is help text</div>
|
|
@@ -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
|
|
@@ -4946,6 +4946,7 @@ class AuroFloatingUI {
|
|
|
4946
4946
|
this.element.bib.style.left = "0px";
|
|
4947
4947
|
this.element.bib.style.width = '';
|
|
4948
4948
|
this.element.bib.style.height = '';
|
|
4949
|
+
this.element.style.contain = '';
|
|
4949
4950
|
|
|
4950
4951
|
// reset the size that was mirroring `size` css-part
|
|
4951
4952
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4970,6 +4971,7 @@ class AuroFloatingUI {
|
|
|
4970
4971
|
this.element.bib.style.position = '';
|
|
4971
4972
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4972
4973
|
this.element.isBibFullscreen = false;
|
|
4974
|
+
this.element.style.contain = 'layout';
|
|
4973
4975
|
}
|
|
4974
4976
|
|
|
4975
4977
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -6584,6 +6586,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6584
6586
|
// See LICENSE in the project root for license information.
|
|
6585
6587
|
|
|
6586
6588
|
|
|
6589
|
+
|
|
6587
6590
|
/*
|
|
6588
6591
|
* @slot - Default slot for the popover content.
|
|
6589
6592
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -7166,64 +7169,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7166
7169
|
this.hasFocus = false;
|
|
7167
7170
|
}
|
|
7168
7171
|
|
|
7169
|
-
/**
|
|
7170
|
-
* Determines if the element or any children are focusable.
|
|
7171
|
-
* @private
|
|
7172
|
-
* @param {HTMLElement} element - Element to check.
|
|
7173
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7174
|
-
*/
|
|
7175
|
-
containsFocusableElement(element) {
|
|
7176
|
-
this.showTriggerBorders = true;
|
|
7177
|
-
|
|
7178
|
-
const nodes = [
|
|
7179
|
-
element,
|
|
7180
|
-
...element.children
|
|
7181
|
-
];
|
|
7182
|
-
|
|
7183
|
-
const focusableElements = [
|
|
7184
|
-
'a',
|
|
7185
|
-
'auro-hyperlink',
|
|
7186
|
-
'button',
|
|
7187
|
-
'auro-button',
|
|
7188
|
-
'input',
|
|
7189
|
-
'auro-input',
|
|
7190
|
-
];
|
|
7191
|
-
|
|
7192
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7193
|
-
|
|
7194
|
-
const result = nodes.some((node) => {
|
|
7195
|
-
const tagName = node.tagName.toLowerCase();
|
|
7196
|
-
|
|
7197
|
-
if (node.tabIndex > -1) {
|
|
7198
|
-
return true;
|
|
7199
|
-
}
|
|
7200
|
-
|
|
7201
|
-
if (focusableElements.includes(tagName)) {
|
|
7202
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7203
|
-
return true;
|
|
7204
|
-
}
|
|
7205
|
-
if (!node.hasAttribute('disabled')) {
|
|
7206
|
-
return true;
|
|
7207
|
-
}
|
|
7208
|
-
}
|
|
7209
|
-
|
|
7210
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7211
|
-
return true;
|
|
7212
|
-
}
|
|
7213
|
-
|
|
7214
|
-
return false;
|
|
7215
|
-
});
|
|
7216
|
-
|
|
7217
|
-
if (result) {
|
|
7218
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7219
|
-
const tagName = node.tagName.toLowerCase();
|
|
7220
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7221
|
-
});
|
|
7222
|
-
}
|
|
7223
|
-
|
|
7224
|
-
return result;
|
|
7225
|
-
}
|
|
7226
|
-
|
|
7227
7172
|
/**
|
|
7228
7173
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7229
7174
|
* @private
|
|
@@ -7335,7 +7280,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7335
7280
|
if (triggerContentNodes) {
|
|
7336
7281
|
|
|
7337
7282
|
// See if any of them are focusable elements
|
|
7338
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7283
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7339
7284
|
|
|
7340
7285
|
// If any of them are focusable elements
|
|
7341
7286
|
if (this.triggerContentFocusable) {
|
|
@@ -7407,7 +7352,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7407
7352
|
<div
|
|
7408
7353
|
id="trigger"
|
|
7409
7354
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
7410
|
-
tabindex="${this.tabIndex}"
|
|
7355
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7411
7356
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7412
7357
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7413
7358
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -9633,7 +9578,7 @@ class AuroElement extends i$2 {
|
|
|
9633
9578
|
* @element auro-counter-group
|
|
9634
9579
|
* @extends LitElement
|
|
9635
9580
|
* @slot default - Slot for counter elements.
|
|
9636
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
9581
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
9637
9582
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
9638
9583
|
* @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
|
|
9639
9584
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
@@ -10321,7 +10266,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10321
10266
|
renderBibTemplate() {
|
|
10322
10267
|
return u`
|
|
10323
10268
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
10324
|
-
<slot name="ariaLabel.close" slot="ariaLabel.close"></slot>
|
|
10269
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close"></slot>
|
|
10325
10270
|
${this.renderCounterGroup(true)}
|
|
10326
10271
|
</${this.bibtemplateTag}>
|
|
10327
10272
|
`;
|
|
@@ -260,7 +260,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
260
260
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown-basic.html) -->
|
|
261
261
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-basic.html -->
|
|
262
262
|
<auro-counter-group isDropdown>
|
|
263
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
263
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
264
264
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
265
265
|
<div slot="label">Passengers</div>
|
|
266
266
|
<auro-counter>
|
|
@@ -296,7 +296,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
296
296
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
297
297
|
<!-- Example of counter-group properties -->
|
|
298
298
|
<auro-counter-group max="10" min="2" isDropdown layout="snowflake">
|
|
299
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
299
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
300
300
|
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
301
301
|
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
302
302
|
<div slot="label">Snowflake Dropdown Group</div>
|
|
@@ -315,7 +315,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
315
315
|
<!-- The below content is automatically added from ./../apiExamples/onDark-dropdown-snowflake.html -->
|
|
316
316
|
<!-- Example of counter-group properties -->
|
|
317
317
|
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" ondark>
|
|
318
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
318
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
319
319
|
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
320
320
|
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
321
321
|
<div slot="label">Snowflake Dropdown Group</div>
|
|
@@ -335,7 +335,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
335
335
|
<!-- The below code snippet is automatically added from ./../apiExamples/dropdown-basic.html -->
|
|
336
336
|
```html
|
|
337
337
|
<auro-counter-group isDropdown>
|
|
338
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
338
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
339
339
|
<div slot="bib.fullscreen.headline">Passengers</div>
|
|
340
340
|
<div slot="label">Passengers</div>
|
|
341
341
|
<auro-counter>
|
|
@@ -368,7 +368,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
368
368
|
<!-- The below content is automatically added from ./../apiExamples/dropdown-snowflake.html -->
|
|
369
369
|
<!-- Example of counter-group properties -->
|
|
370
370
|
<auro-counter-group max="10" min="2" isDropdown layout="snowflake">
|
|
371
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
371
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
372
372
|
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
373
373
|
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
374
374
|
<div slot="label">Snowflake Dropdown Group</div>
|
|
@@ -385,7 +385,7 @@ When using a dropdown, an additional layout, `snowflake`, is available for use:
|
|
|
385
385
|
<!-- The below content is automatically added from ./../apiExamples/onDark-dropdown-snowflake.html -->
|
|
386
386
|
<!-- Example of counter-group properties -->
|
|
387
387
|
<auro-counter-group max="10" min="2" isDropdown layout="snowflake" ondark>
|
|
388
|
-
<span slot="ariaLabel.close">Close Popup</span>
|
|
388
|
+
<span slot="ariaLabel.bib.close">Close Popup</span>
|
|
389
389
|
<div slot="bib.fullscreen.headline">Group fullscreen label</div>
|
|
390
390
|
<auro-icon slot="typeIcon" category="interface" name="account-stroke" customColor></auro-icon>
|
|
391
391
|
<div slot="label">Snowflake Dropdown Group</div>
|
|
@@ -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
|
|
@@ -4946,6 +4946,7 @@ class AuroFloatingUI {
|
|
|
4946
4946
|
this.element.bib.style.left = "0px";
|
|
4947
4947
|
this.element.bib.style.width = '';
|
|
4948
4948
|
this.element.bib.style.height = '';
|
|
4949
|
+
this.element.style.contain = '';
|
|
4949
4950
|
|
|
4950
4951
|
// reset the size that was mirroring `size` css-part
|
|
4951
4952
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4970,6 +4971,7 @@ class AuroFloatingUI {
|
|
|
4970
4971
|
this.element.bib.style.position = '';
|
|
4971
4972
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4972
4973
|
this.element.isBibFullscreen = false;
|
|
4974
|
+
this.element.style.contain = 'layout';
|
|
4973
4975
|
}
|
|
4974
4976
|
|
|
4975
4977
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -6584,6 +6586,7 @@ let AuroElement$3 = class AuroElement extends i$2 {
|
|
|
6584
6586
|
// See LICENSE in the project root for license information.
|
|
6585
6587
|
|
|
6586
6588
|
|
|
6589
|
+
|
|
6587
6590
|
/*
|
|
6588
6591
|
* @slot - Default slot for the popover content.
|
|
6589
6592
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -7166,64 +7169,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7166
7169
|
this.hasFocus = false;
|
|
7167
7170
|
}
|
|
7168
7171
|
|
|
7169
|
-
/**
|
|
7170
|
-
* Determines if the element or any children are focusable.
|
|
7171
|
-
* @private
|
|
7172
|
-
* @param {HTMLElement} element - Element to check.
|
|
7173
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7174
|
-
*/
|
|
7175
|
-
containsFocusableElement(element) {
|
|
7176
|
-
this.showTriggerBorders = true;
|
|
7177
|
-
|
|
7178
|
-
const nodes = [
|
|
7179
|
-
element,
|
|
7180
|
-
...element.children
|
|
7181
|
-
];
|
|
7182
|
-
|
|
7183
|
-
const focusableElements = [
|
|
7184
|
-
'a',
|
|
7185
|
-
'auro-hyperlink',
|
|
7186
|
-
'button',
|
|
7187
|
-
'auro-button',
|
|
7188
|
-
'input',
|
|
7189
|
-
'auro-input',
|
|
7190
|
-
];
|
|
7191
|
-
|
|
7192
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7193
|
-
|
|
7194
|
-
const result = nodes.some((node) => {
|
|
7195
|
-
const tagName = node.tagName.toLowerCase();
|
|
7196
|
-
|
|
7197
|
-
if (node.tabIndex > -1) {
|
|
7198
|
-
return true;
|
|
7199
|
-
}
|
|
7200
|
-
|
|
7201
|
-
if (focusableElements.includes(tagName)) {
|
|
7202
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7203
|
-
return true;
|
|
7204
|
-
}
|
|
7205
|
-
if (!node.hasAttribute('disabled')) {
|
|
7206
|
-
return true;
|
|
7207
|
-
}
|
|
7208
|
-
}
|
|
7209
|
-
|
|
7210
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7211
|
-
return true;
|
|
7212
|
-
}
|
|
7213
|
-
|
|
7214
|
-
return false;
|
|
7215
|
-
});
|
|
7216
|
-
|
|
7217
|
-
if (result) {
|
|
7218
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7219
|
-
const tagName = node.tagName.toLowerCase();
|
|
7220
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7221
|
-
});
|
|
7222
|
-
}
|
|
7223
|
-
|
|
7224
|
-
return result;
|
|
7225
|
-
}
|
|
7226
|
-
|
|
7227
7172
|
/**
|
|
7228
7173
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7229
7174
|
* @private
|
|
@@ -7335,7 +7280,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7335
7280
|
if (triggerContentNodes) {
|
|
7336
7281
|
|
|
7337
7282
|
// See if any of them are focusable elements
|
|
7338
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7283
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7339
7284
|
|
|
7340
7285
|
// If any of them are focusable elements
|
|
7341
7286
|
if (this.triggerContentFocusable) {
|
|
@@ -7407,7 +7352,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7407
7352
|
<div
|
|
7408
7353
|
id="trigger"
|
|
7409
7354
|
class="${e(this.commonWrapperClasses)}" part="wrapper"
|
|
7410
|
-
tabindex="${this.tabIndex}"
|
|
7355
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7411
7356
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7412
7357
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7413
7358
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -9633,7 +9578,7 @@ class AuroElement extends i$2 {
|
|
|
9633
9578
|
* @element auro-counter-group
|
|
9634
9579
|
* @extends LitElement
|
|
9635
9580
|
* @slot default - Slot for counter elements.
|
|
9636
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
9581
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
9637
9582
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
9638
9583
|
* @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
|
|
9639
9584
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
@@ -10321,7 +10266,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10321
10266
|
renderBibTemplate() {
|
|
10322
10267
|
return u`
|
|
10323
10268
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
10324
|
-
<slot name="ariaLabel.close" slot="ariaLabel.close"></slot>
|
|
10269
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close"></slot>
|
|
10325
10270
|
${this.renderCounterGroup(true)}
|
|
10326
10271
|
</${this.bibtemplateTag}>
|
|
10327
10272
|
`;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @element auro-counter-group
|
|
8
8
|
* @extends LitElement
|
|
9
9
|
* @slot default - Slot for counter elements.
|
|
10
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
10
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
11
11
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
12
12
|
* @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
|
|
13
13
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
@@ -4899,6 +4899,7 @@ class AuroFloatingUI {
|
|
|
4899
4899
|
this.element.bib.style.left = "0px";
|
|
4900
4900
|
this.element.bib.style.width = '';
|
|
4901
4901
|
this.element.bib.style.height = '';
|
|
4902
|
+
this.element.style.contain = '';
|
|
4902
4903
|
|
|
4903
4904
|
// reset the size that was mirroring `size` css-part
|
|
4904
4905
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -4923,6 +4924,7 @@ class AuroFloatingUI {
|
|
|
4923
4924
|
this.element.bib.style.position = '';
|
|
4924
4925
|
this.element.bib.removeAttribute('isfullscreen');
|
|
4925
4926
|
this.element.isBibFullscreen = false;
|
|
4927
|
+
this.element.style.contain = 'layout';
|
|
4926
4928
|
}
|
|
4927
4929
|
|
|
4928
4930
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -6537,6 +6539,7 @@ let AuroElement$3 = class AuroElement extends LitElement {
|
|
|
6537
6539
|
// See LICENSE in the project root for license information.
|
|
6538
6540
|
|
|
6539
6541
|
|
|
6542
|
+
|
|
6540
6543
|
/*
|
|
6541
6544
|
* @slot - Default slot for the popover content.
|
|
6542
6545
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -7119,64 +7122,6 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7119
7122
|
this.hasFocus = false;
|
|
7120
7123
|
}
|
|
7121
7124
|
|
|
7122
|
-
/**
|
|
7123
|
-
* Determines if the element or any children are focusable.
|
|
7124
|
-
* @private
|
|
7125
|
-
* @param {HTMLElement} element - Element to check.
|
|
7126
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
7127
|
-
*/
|
|
7128
|
-
containsFocusableElement(element) {
|
|
7129
|
-
this.showTriggerBorders = true;
|
|
7130
|
-
|
|
7131
|
-
const nodes = [
|
|
7132
|
-
element,
|
|
7133
|
-
...element.children
|
|
7134
|
-
];
|
|
7135
|
-
|
|
7136
|
-
const focusableElements = [
|
|
7137
|
-
'a',
|
|
7138
|
-
'auro-hyperlink',
|
|
7139
|
-
'button',
|
|
7140
|
-
'auro-button',
|
|
7141
|
-
'input',
|
|
7142
|
-
'auro-input',
|
|
7143
|
-
];
|
|
7144
|
-
|
|
7145
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
7146
|
-
|
|
7147
|
-
const result = nodes.some((node) => {
|
|
7148
|
-
const tagName = node.tagName.toLowerCase();
|
|
7149
|
-
|
|
7150
|
-
if (node.tabIndex > -1) {
|
|
7151
|
-
return true;
|
|
7152
|
-
}
|
|
7153
|
-
|
|
7154
|
-
if (focusableElements.includes(tagName)) {
|
|
7155
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
7156
|
-
return true;
|
|
7157
|
-
}
|
|
7158
|
-
if (!node.hasAttribute('disabled')) {
|
|
7159
|
-
return true;
|
|
7160
|
-
}
|
|
7161
|
-
}
|
|
7162
|
-
|
|
7163
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
7164
|
-
return true;
|
|
7165
|
-
}
|
|
7166
|
-
|
|
7167
|
-
return false;
|
|
7168
|
-
});
|
|
7169
|
-
|
|
7170
|
-
if (result) {
|
|
7171
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
7172
|
-
const tagName = node.tagName.toLowerCase();
|
|
7173
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
7174
|
-
});
|
|
7175
|
-
}
|
|
7176
|
-
|
|
7177
|
-
return result;
|
|
7178
|
-
}
|
|
7179
|
-
|
|
7180
7125
|
/**
|
|
7181
7126
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
7182
7127
|
* @private
|
|
@@ -7288,7 +7233,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7288
7233
|
if (triggerContentNodes) {
|
|
7289
7234
|
|
|
7290
7235
|
// See if any of them are focusable elements
|
|
7291
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
7236
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
7292
7237
|
|
|
7293
7238
|
// If any of them are focusable elements
|
|
7294
7239
|
if (this.triggerContentFocusable) {
|
|
@@ -7360,7 +7305,7 @@ class AuroDropdown extends AuroElement$3 {
|
|
|
7360
7305
|
<div
|
|
7361
7306
|
id="trigger"
|
|
7362
7307
|
class="${classMap(this.commonWrapperClasses)}" part="wrapper"
|
|
7363
|
-
tabindex="${this.tabIndex}"
|
|
7308
|
+
tabindex="${ifDefined(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
7364
7309
|
role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
7365
7310
|
aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
7366
7311
|
aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -9586,7 +9531,7 @@ class AuroElement extends LitElement {
|
|
|
9586
9531
|
* @element auro-counter-group
|
|
9587
9532
|
* @extends LitElement
|
|
9588
9533
|
* @slot default - Slot for counter elements.
|
|
9589
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
9534
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
9590
9535
|
* @slot bib.fullscreen.headline - Defines the headline to display above menu-options. Only used when `isDropdown` is true. Required.
|
|
9591
9536
|
* @slot bib.fullscreen.footer - Defines the footer to display at the bottom of fullscreen bib. Only used when `isDropdown` is true.
|
|
9592
9537
|
* @slot label - Dropdown label content. Only used when `isDropdown` is true.
|
|
@@ -10274,7 +10219,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
10274
10219
|
renderBibTemplate() {
|
|
10275
10220
|
return html$1`
|
|
10276
10221
|
<${this.bibtemplateTag} ?large="${this.largeFullscreenHeadline}">
|
|
10277
|
-
<slot name="ariaLabel.close" slot="ariaLabel.close"></slot>
|
|
10222
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close"></slot>
|
|
10278
10223
|
${this.renderCounterGroup(true)}
|
|
10279
10224
|
</${this.bibtemplateTag}>
|
|
10280
10225
|
`;
|