@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
|
@@ -24,7 +24,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
24
24
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark.html) -->
|
|
25
25
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/ondark.html -->
|
|
26
26
|
<auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
27
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
27
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
28
28
|
<span slot="label">Date</span>
|
|
29
29
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
30
30
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -36,7 +36,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
36
36
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark.html) -->
|
|
37
37
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/ondark.html -->
|
|
38
38
|
<auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
39
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
39
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
40
40
|
<span slot="label">Date</span>
|
|
41
41
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
42
42
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -51,7 +51,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
51
51
|
|
|
52
52
|
```html
|
|
53
53
|
<auro-datepicker layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
54
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
54
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
55
55
|
<span slot="label">Date</span>
|
|
56
56
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
57
57
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -66,7 +66,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
66
66
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark-range.html) -->
|
|
67
67
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/ondark-range.html -->
|
|
68
68
|
<auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
69
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
69
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
70
70
|
<span slot="label">Dates</span>
|
|
71
71
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
72
72
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -78,7 +78,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
78
78
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/snowflake/ondark-range.html) -->
|
|
79
79
|
<!-- The below content is automatically added from ./../apiExamples/snowflake/ondark-range.html -->
|
|
80
80
|
<auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
81
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
81
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
82
82
|
<span slot="label">Dates</span>
|
|
83
83
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
84
84
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -93,7 +93,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
93
93
|
|
|
94
94
|
```html
|
|
95
95
|
<auro-datepicker range layout="snowflake" shape="snowflake" ondark placeholder="MM/DD">
|
|
96
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
96
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
97
97
|
<span slot="label">Dates</span>
|
|
98
98
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
99
99
|
<span slot="fromLabel">Choose a date</span>
|
|
@@ -109,7 +109,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
110
110
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
111
111
|
<auro-datepicker required="">
|
|
112
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
112
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
113
113
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
114
114
|
<span slot="fromLabel">Choose a date</span>
|
|
115
115
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -120,7 +120,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
120
120
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
121
121
|
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
122
122
|
<auro-datepicker onDark>
|
|
123
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
123
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
124
124
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
125
125
|
<span slot="fromLabel">Choose a date</span>
|
|
126
126
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -134,7 +134,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
134
134
|
|
|
135
135
|
```html
|
|
136
136
|
<auro-datepicker required="">
|
|
137
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
137
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
138
138
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
139
139
|
<span slot="fromLabel">Choose a date</span>
|
|
140
140
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -144,7 +144,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
144
144
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/onDark.html) -->
|
|
145
145
|
<!-- The below content is automatically added from ./../apiExamples/onDark.html -->
|
|
146
146
|
<auro-datepicker onDark>
|
|
147
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
147
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
148
148
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
149
149
|
<span slot="fromLabel">Choose a date</span>
|
|
150
150
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -158,7 +158,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
158
158
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
159
159
|
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
160
160
|
<auro-datepicker range minDate="07/08/2025">
|
|
161
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
161
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
162
162
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
163
163
|
<span slot="fromLabel">Departure</span>
|
|
164
164
|
<span slot="toLabel">Return</span>
|
|
@@ -184,7 +184,7 @@ The `<auro-datepicker>` element should be used in situations where users may:
|
|
|
184
184
|
|
|
185
185
|
```html
|
|
186
186
|
<auro-datepicker range minDate="07/08/2025">
|
|
187
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
187
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
188
188
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
189
189
|
<span slot="fromLabel">Departure</span>
|
|
190
190
|
<span slot="toLabel">Return</span>
|
|
@@ -1133,7 +1133,7 @@ const t$1=globalThis,e$1=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
1133
1133
|
* @license
|
|
1134
1134
|
* Copyright 2017 Google LLC
|
|
1135
1135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1136
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$1}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$1=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l: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=(t,s)=>!i$1(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;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(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(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("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r$2(t),...o$3(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(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
|
|
1136
|
+
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r$2,getOwnPropertySymbols:o$3,getPrototypeOf:n$1}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p$1=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u$2={toAttribute(t,s){switch(s){case Boolean:t=t?l: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=(t,s)=>!i$1(t,s),b={attribute:true,type:String,converter:u$2,reflect:false,useDefault:false,hasChanged:f};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;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(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h(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("elementProperties")))return;const t=n$1(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r$2(t),...o$3(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(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)(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.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p$1?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.1");
|
|
1137
1137
|
|
|
1138
1138
|
/**
|
|
1139
1139
|
* @license
|
|
@@ -1297,7 +1297,7 @@ class UtilitiesCalendarRender {
|
|
|
1297
1297
|
}
|
|
1298
1298
|
}
|
|
1299
1299
|
|
|
1300
|
-
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;margin:0 auto}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}.dpTriggerContent{width:100%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1300
|
+
var styleCss$e = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.accents{flex-grow:0;flex-shrink:0;display:flex;align-items:center;justify-content:center}.accents.left{padding-right:var(--ds-size-100, 0.5rem)}.accents.right{width:var(--ds-size-400, 2rem)}.accents .notification:not(.util_displayHidden){display:flex;align-items:center;justify-content:center}.mainContent{height:100%;max-height:100%;flex-grow:1;display:flex;flex-direction:column;justify-content:center;align-items:center;overflow:hidden}.inputSection{display:flex;flex-direction:row;align-items:center;width:100%;margin:0 auto}.inputContainer{display:flex;flex-direction:row;align-items:center;width:100%}.inputContainer:first-of-type{justify-content:flex-end}.inputContainer:last-of-type{justify-content:flex-start}.dpTriggerContent{width:100%}@media screen and (max-width: 576px){::part(popover){position:fixed !important;top:0 !important;left:0 !important;width:100vw !important;height:100vh !important;margin-bottom:var(--ds-size-200, 1rem);transform:unset !important}.calendarWrapper{display:flex;height:100dvh;flex-direction:row;justify-content:center}}`;
|
|
1301
1301
|
|
|
1302
1302
|
var colorCss$d = i$2`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host label{color:var(--ds-auro-datepicker-label-text-color)}:host .inputDivider{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host .error{color:var(--ds-auro-datepicker-error-icon-color)}[auro-input]::part(wrapper){--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}.dpTriggerContent [auro-input]:nth-child(2):before{background-color:var(--ds-auro-datepicker-range-input-divider-color)}:host(:not([ondark])[disabled]){--ds-auro-datepicker-border-color: var(--ds-basic-color-border-subtle, #dddddd);--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-datepicker-placeholder-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host([ondark][disabled]){--ds-auro-datepicker-border-color: var(--ds-advanced-color-button-primary-border-inverse-disabled, rgba(255, 255, 255, 0.75));--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-datepicker-placeholder-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}`;
|
|
1303
1303
|
|
|
@@ -14245,7 +14245,7 @@ class AuroCalendar extends RangeDatepicker {
|
|
|
14245
14245
|
?large="${this.largeFullscreenHeadline}"
|
|
14246
14246
|
?isFullscreen="${this.isFullscreen}"
|
|
14247
14247
|
@close-click="${this.utilCal.requestDismiss}">
|
|
14248
|
-
<span slot="ariaLabel.close">${this.slots["ariaLabel.close"]}</span>
|
|
14248
|
+
<span slot="ariaLabel.close">${this.slots["ariaLabel.bib.close"]}</span>
|
|
14249
14249
|
|
|
14250
14250
|
<span slot="header">${this.slots["bib.fullscreen.headline"]}</span>
|
|
14251
14251
|
|
|
@@ -16108,6 +16108,7 @@ class AuroFloatingUI {
|
|
|
16108
16108
|
this.element.bib.style.left = "0px";
|
|
16109
16109
|
this.element.bib.style.width = '';
|
|
16110
16110
|
this.element.bib.style.height = '';
|
|
16111
|
+
this.element.style.contain = '';
|
|
16111
16112
|
|
|
16112
16113
|
// reset the size that was mirroring `size` css-part
|
|
16113
16114
|
const bibContent = this.element.bib.shadowRoot.querySelector(".container");
|
|
@@ -16132,6 +16133,7 @@ class AuroFloatingUI {
|
|
|
16132
16133
|
this.element.bib.style.position = '';
|
|
16133
16134
|
this.element.bib.removeAttribute('isfullscreen');
|
|
16134
16135
|
this.element.isBibFullscreen = false;
|
|
16136
|
+
this.element.style.contain = 'layout';
|
|
16135
16137
|
}
|
|
16136
16138
|
|
|
16137
16139
|
const isChanged = this.strategy && this.strategy !== value;
|
|
@@ -17746,6 +17748,7 @@ let AuroElement$4 = class AuroElement extends i {
|
|
|
17746
17748
|
// See LICENSE in the project root for license information.
|
|
17747
17749
|
|
|
17748
17750
|
|
|
17751
|
+
|
|
17749
17752
|
/*
|
|
17750
17753
|
* @slot - Default slot for the popover content.
|
|
17751
17754
|
* @slot helpText - Defines the content of the helpText.
|
|
@@ -18328,64 +18331,6 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18328
18331
|
this.hasFocus = false;
|
|
18329
18332
|
}
|
|
18330
18333
|
|
|
18331
|
-
/**
|
|
18332
|
-
* Determines if the element or any children are focusable.
|
|
18333
|
-
* @private
|
|
18334
|
-
* @param {HTMLElement} element - Element to check.
|
|
18335
|
-
* @returns {Boolean} - True if the element or any children are focusable.
|
|
18336
|
-
*/
|
|
18337
|
-
containsFocusableElement(element) {
|
|
18338
|
-
this.showTriggerBorders = true;
|
|
18339
|
-
|
|
18340
|
-
const nodes = [
|
|
18341
|
-
element,
|
|
18342
|
-
...element.children
|
|
18343
|
-
];
|
|
18344
|
-
|
|
18345
|
-
const focusableElements = [
|
|
18346
|
-
'a',
|
|
18347
|
-
'auro-hyperlink',
|
|
18348
|
-
'button',
|
|
18349
|
-
'auro-button',
|
|
18350
|
-
'input',
|
|
18351
|
-
'auro-input',
|
|
18352
|
-
];
|
|
18353
|
-
|
|
18354
|
-
const focusableElementsThatNeedBorders = ['auro-input'];
|
|
18355
|
-
|
|
18356
|
-
const result = nodes.some((node) => {
|
|
18357
|
-
const tagName = node.tagName.toLowerCase();
|
|
18358
|
-
|
|
18359
|
-
if (node.tabIndex > -1) {
|
|
18360
|
-
return true;
|
|
18361
|
-
}
|
|
18362
|
-
|
|
18363
|
-
if (focusableElements.includes(tagName)) {
|
|
18364
|
-
if ((tagName === 'a' || tagName === 'auro-hyperlink' || node.hasAttribute('auro-hyperlink')) && node.hasAttribute('href')) {
|
|
18365
|
-
return true;
|
|
18366
|
-
}
|
|
18367
|
-
if (!node.hasAttribute('disabled')) {
|
|
18368
|
-
return true;
|
|
18369
|
-
}
|
|
18370
|
-
}
|
|
18371
|
-
|
|
18372
|
-
if (focusableElements.some((focusableElement) => focusableElement.startsWith('auro-') && (focusableElement === tagName || node.hasAttribute(focusableElement)))) {
|
|
18373
|
-
return true;
|
|
18374
|
-
}
|
|
18375
|
-
|
|
18376
|
-
return false;
|
|
18377
|
-
});
|
|
18378
|
-
|
|
18379
|
-
if (result) {
|
|
18380
|
-
this.showTriggerBorders = !nodes.some((node) => {
|
|
18381
|
-
const tagName = node.tagName.toLowerCase();
|
|
18382
|
-
return focusableElements.includes(tagName) && !focusableElementsThatNeedBorders.includes(tagName);
|
|
18383
|
-
});
|
|
18384
|
-
}
|
|
18385
|
-
|
|
18386
|
-
return result;
|
|
18387
|
-
}
|
|
18388
|
-
|
|
18389
18334
|
/**
|
|
18390
18335
|
* Creates and dispatches a duplicate focus event on the trigger element.
|
|
18391
18336
|
* @private
|
|
@@ -18497,7 +18442,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18497
18442
|
if (triggerContentNodes) {
|
|
18498
18443
|
|
|
18499
18444
|
// See if any of them are focusable elements
|
|
18500
|
-
this.triggerContentFocusable = triggerContentNodes.some((node) =>
|
|
18445
|
+
this.triggerContentFocusable = triggerContentNodes.some((node) => getFocusableElements(node).length > 0);
|
|
18501
18446
|
|
|
18502
18447
|
// If any of them are focusable elements
|
|
18503
18448
|
if (this.triggerContentFocusable) {
|
|
@@ -18569,7 +18514,7 @@ class AuroDropdown extends AuroElement$4 {
|
|
|
18569
18514
|
<div
|
|
18570
18515
|
id="trigger"
|
|
18571
18516
|
class="${e$2(this.commonWrapperClasses)}" part="wrapper"
|
|
18572
|
-
tabindex="${this.tabIndex}"
|
|
18517
|
+
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
18573
18518
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
18574
18519
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
18575
18520
|
aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
@@ -24073,8 +24018,7 @@ class BaseInput extends AuroElement$2 {
|
|
|
24073
24018
|
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
24074
24019
|
*/
|
|
24075
24020
|
value: {
|
|
24076
|
-
type: String
|
|
24077
|
-
reflect: true
|
|
24021
|
+
type: String
|
|
24078
24022
|
},
|
|
24079
24023
|
|
|
24080
24024
|
/**
|
|
@@ -27795,7 +27739,7 @@ var iconVersion = '8.0.1';
|
|
|
27795
27739
|
// See https://git.io/JJ6SJ for "How to document your components using JSDoc"
|
|
27796
27740
|
/**
|
|
27797
27741
|
* @slot helpText - Defines the content of the helpText.
|
|
27798
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
27742
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
27799
27743
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
27800
27744
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
27801
27745
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -27927,6 +27871,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
27927
27871
|
*/
|
|
27928
27872
|
this.helpTextTag = versioning.generateTag('auro-formkit-input-helptext', helpTextVersion, AuroHelpText);
|
|
27929
27873
|
|
|
27874
|
+
/** @private */
|
|
27875
|
+
this.handleClick = this.handleClick.bind(this);
|
|
27876
|
+
|
|
27930
27877
|
// Layout Config
|
|
27931
27878
|
this.layout = 'classic';
|
|
27932
27879
|
this.shape = 'classic';
|
|
@@ -28326,10 +28273,10 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28326
28273
|
* @returns {void}
|
|
28327
28274
|
*/
|
|
28328
28275
|
focus(focusInput = '') {
|
|
28276
|
+
this.hasFocus = true;
|
|
28329
28277
|
this.range && focusInput === 'endDate' ? this.inputList[1].focus() : this.inputList[0].focus();
|
|
28330
28278
|
}
|
|
28331
28279
|
|
|
28332
|
-
|
|
28333
28280
|
/**
|
|
28334
28281
|
* Converts valid time number to format used by wc-date-range API.
|
|
28335
28282
|
* @private
|
|
@@ -28531,15 +28478,18 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28531
28478
|
this.hasFocus = true;
|
|
28532
28479
|
});
|
|
28533
28480
|
|
|
28534
|
-
this.addEventListener('focusout', (
|
|
28481
|
+
this.addEventListener('focusout', () => {
|
|
28535
28482
|
this.hasFocus = false;
|
|
28536
|
-
if (!this.noValidate && !evt.detail.expanded && this.touched) {
|
|
28537
|
-
if (!this.contains(document.activeElement)) {
|
|
28538
|
-
this.validation.validate(this.inputList[0]);
|
|
28539
28483
|
|
|
28540
|
-
|
|
28541
|
-
|
|
28542
|
-
|
|
28484
|
+
if (this.noValidate) {
|
|
28485
|
+
return;
|
|
28486
|
+
}
|
|
28487
|
+
|
|
28488
|
+
if (!this.contains(document.activeElement)) {
|
|
28489
|
+
this.validation.validate(this.inputList[0]);
|
|
28490
|
+
|
|
28491
|
+
if (this.inputList[1]) {
|
|
28492
|
+
this.validation.validate(this.inputList[1]);
|
|
28543
28493
|
}
|
|
28544
28494
|
}
|
|
28545
28495
|
});
|
|
@@ -28791,8 +28741,8 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28791
28741
|
this.calendarRenderUtil.updateCentralDate(this, this.formattedValue);
|
|
28792
28742
|
}
|
|
28793
28743
|
|
|
28794
|
-
this.validate();
|
|
28795
28744
|
this.setHasValue();
|
|
28745
|
+
this.validate();
|
|
28796
28746
|
}
|
|
28797
28747
|
|
|
28798
28748
|
if (changedProperties.has('valueEnd') && this.inputList[1]) {
|
|
@@ -28948,6 +28898,39 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28948
28898
|
this.calendar.injectSlot(event.target.name, slot.cloneNode(true));
|
|
28949
28899
|
}
|
|
28950
28900
|
|
|
28901
|
+
/**
|
|
28902
|
+
* Handles click events on the datepicker.
|
|
28903
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
28904
|
+
* @private
|
|
28905
|
+
* @returns {void}
|
|
28906
|
+
*/
|
|
28907
|
+
handleClick(event) {
|
|
28908
|
+
|
|
28909
|
+
// Get the initial target of the click event
|
|
28910
|
+
const [initTarget] = event.composedPath();
|
|
28911
|
+
|
|
28912
|
+
// Determine if the current layout requires special handling
|
|
28913
|
+
const layoutRequiresHandling = ['snowflake'].includes(this.layout);
|
|
28914
|
+
|
|
28915
|
+
// Determine if the target is an input element
|
|
28916
|
+
const targetIsInput = initTarget.tagName === 'INPUT';
|
|
28917
|
+
|
|
28918
|
+
if (layoutRequiresHandling && !targetIsInput) {
|
|
28919
|
+
|
|
28920
|
+
// Focus the first input
|
|
28921
|
+
this.inputList[0].focus();
|
|
28922
|
+
}
|
|
28923
|
+
}
|
|
28924
|
+
|
|
28925
|
+
/**
|
|
28926
|
+
* Set up click handling for the datepicker.
|
|
28927
|
+
* @private
|
|
28928
|
+
* @returns {void}
|
|
28929
|
+
*/
|
|
28930
|
+
configureClickHandler() {
|
|
28931
|
+
this.addEventListener('click', this.handleClick);
|
|
28932
|
+
}
|
|
28933
|
+
|
|
28951
28934
|
firstUpdated() {
|
|
28952
28935
|
// Add the tag name as an attribute if it is different than the component name
|
|
28953
28936
|
this.runtimeUtils.handleComponentTagRename(this, 'auro-datepicker');
|
|
@@ -28956,6 +28939,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28956
28939
|
this.configureInput();
|
|
28957
28940
|
this.configureCalendar();
|
|
28958
28941
|
this.configureDatepicker();
|
|
28942
|
+
this.configureClickHandler();
|
|
28959
28943
|
|
|
28960
28944
|
window.addEventListener('resize', () => {
|
|
28961
28945
|
this.handleReadOnly();
|
|
@@ -28966,11 +28950,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
28966
28950
|
super.connectedCallback();
|
|
28967
28951
|
|
|
28968
28952
|
this.monthFirst = this.format.indexOf('mm') < this.format.indexOf('yyyy');
|
|
28969
|
-
|
|
28970
|
-
// setup focus/blur event listeners
|
|
28971
|
-
this.addEventListener('focus', () => {
|
|
28972
|
-
this.focus();
|
|
28973
|
-
}, true);
|
|
28974
28953
|
}
|
|
28975
28954
|
|
|
28976
28955
|
// layout render methods
|
|
@@ -29015,9 +28994,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29015
28994
|
</div>
|
|
29016
28995
|
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29017
28996
|
${this.hasError
|
|
29018
|
-
|
|
29019
|
-
|
|
29020
|
-
|
|
28997
|
+
? this.renderHtmlIconError()
|
|
28998
|
+
: this.renderHtmlActionClear()
|
|
28999
|
+
}
|
|
29021
29000
|
</div>
|
|
29022
29001
|
</div>
|
|
29023
29002
|
`;
|
|
@@ -29062,9 +29041,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29062
29041
|
</div>
|
|
29063
29042
|
<div class="accents right ${e$2(accentsClassMap)}">
|
|
29064
29043
|
${this.hasError
|
|
29065
|
-
|
|
29066
|
-
|
|
29067
|
-
|
|
29044
|
+
? this.renderHtmlIconError()
|
|
29045
|
+
: this.renderHtmlActionClear()
|
|
29046
|
+
}
|
|
29068
29047
|
</div>
|
|
29069
29048
|
</div>
|
|
29070
29049
|
`;
|
|
@@ -29114,9 +29093,9 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29114
29093
|
<div>
|
|
29115
29094
|
<div class="displayValueText">
|
|
29116
29095
|
${dateValue && this.util.validDateStr(dateValue, this.format)
|
|
29117
|
-
|
|
29118
|
-
|
|
29119
|
-
|
|
29096
|
+
? this.formatShortDate(dateValue)
|
|
29097
|
+
: undefined
|
|
29098
|
+
}
|
|
29120
29099
|
</div>
|
|
29121
29100
|
</div>
|
|
29122
29101
|
`;
|
|
@@ -29158,13 +29137,13 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29158
29137
|
inputmode="${o(this.inputmode)}"
|
|
29159
29138
|
>
|
|
29160
29139
|
${this.layout !== "classic"
|
|
29161
|
-
|
|
29140
|
+
? u$3`
|
|
29162
29141
|
<span slot="displayValue">
|
|
29163
29142
|
${this.renderDisplayTextDate(this.value)}
|
|
29164
29143
|
</span>
|
|
29165
29144
|
`
|
|
29166
|
-
|
|
29167
|
-
|
|
29145
|
+
: undefined
|
|
29146
|
+
}
|
|
29168
29147
|
<span slot="label"><slot name="fromLabel"></slot></span>
|
|
29169
29148
|
</${this.inputTag}>
|
|
29170
29149
|
</div>
|
|
@@ -29195,13 +29174,13 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29195
29174
|
?disabled="${this.disabled}"
|
|
29196
29175
|
part="input">
|
|
29197
29176
|
${this.layout !== "classic"
|
|
29198
|
-
|
|
29177
|
+
? u$3`
|
|
29199
29178
|
<span slot="displayValue">
|
|
29200
29179
|
${this.renderDisplayTextDate(this.valueEnd)}
|
|
29201
29180
|
</span>
|
|
29202
29181
|
`
|
|
29203
|
-
|
|
29204
|
-
|
|
29182
|
+
: undefined
|
|
29183
|
+
}
|
|
29205
29184
|
<span slot="label"><slot name="toLabel"></slot></span>
|
|
29206
29185
|
</${this.inputTag}>
|
|
29207
29186
|
</div>
|
|
@@ -29241,7 +29220,6 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29241
29220
|
?customColor="${this.onDark}"
|
|
29242
29221
|
category="interface"
|
|
29243
29222
|
name="x-lg"
|
|
29244
|
-
slot="icon"
|
|
29245
29223
|
>
|
|
29246
29224
|
</${this.iconTag}>
|
|
29247
29225
|
</${this.buttonTag}>
|
|
@@ -29298,21 +29276,21 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29298
29276
|
renderHtmlHelpText() {
|
|
29299
29277
|
return u$3`
|
|
29300
29278
|
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
29301
|
-
|
|
29279
|
+
? u$3`
|
|
29302
29280
|
<${this.helpTextTag} ?onDark="${this.onDark}">
|
|
29303
29281
|
<p id="${this.uniqueId}" part="helpText">
|
|
29304
29282
|
<slot name="helpText"></slot>
|
|
29305
29283
|
</p>
|
|
29306
29284
|
</${this.helpTextTag}>
|
|
29307
29285
|
`
|
|
29308
|
-
|
|
29286
|
+
: u$3`
|
|
29309
29287
|
<${this.helpTextTag} error ?onDark="${this.onDark}">
|
|
29310
29288
|
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
29311
29289
|
${this.errorMessage}
|
|
29312
29290
|
</p>
|
|
29313
29291
|
</${this.helpTextTag}>
|
|
29314
29292
|
`
|
|
29315
|
-
|
|
29293
|
+
}
|
|
29316
29294
|
`;
|
|
29317
29295
|
}
|
|
29318
29296
|
|
|
@@ -29335,7 +29313,7 @@ class AuroDatePicker extends AuroElement$1 {
|
|
|
29335
29313
|
.monthNames="${this.monthNames}"
|
|
29336
29314
|
part="calendar"
|
|
29337
29315
|
>
|
|
29338
|
-
<slot name="ariaLabel.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
|
|
29316
|
+
<slot name="ariaLabel.bib.close" slot="ariaLabel.close" @slotchange="${this.handleSlotToSlot}">Close</slot>
|
|
29339
29317
|
<slot slot="bib.fullscreen.headline" name="bib.fullscreen.headline" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29340
29318
|
<slot slot="bib.fullscreen.dateLabel" name="bib.fullscreen.dateLabel" @slotchange="${this.handleSlotToSlot}"></slot>
|
|
29341
29319
|
<span slot="bib.fullscreen.fromStr">${this.value || u$3`<span class="placeholderDate">${this.format.toUpperCase()}</span>`}</span>
|
|
@@ -84,7 +84,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
86
|
<auro-datepicker required="">
|
|
87
|
-
<span slot="ariaLabel.close">Close Calendar</span>
|
|
87
|
+
<span slot="ariaLabel.bib.close">Close Calendar</span>
|
|
88
88
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
89
89
|
<span slot="fromLabel">Choose a date</span>
|
|
90
90
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @slot helpText - Defines the content of the helpText.
|
|
3
|
-
* @slot ariaLabel.close - Sets aria-label on close button in fullscreen bib
|
|
3
|
+
* @slot ariaLabel.bib.close - Sets aria-label on close button in fullscreen bib
|
|
4
4
|
* @slot bib.fullscreen.headline - Defines the headline to display above bib.fullscreen.dateLabels in the mobile layout.
|
|
5
5
|
* @slot bib.fullscreen.dateLabel - Defines the content to display above selected dates in the mobile layout.
|
|
6
6
|
* @slot toLabel - Defines the label content for the second input when the `range` attribute is used.
|
|
@@ -355,6 +355,13 @@ export class AuroDatePicker extends AuroElement {
|
|
|
355
355
|
* @private
|
|
356
356
|
*/
|
|
357
357
|
private helpTextTag;
|
|
358
|
+
/**
|
|
359
|
+
* Handles click events on the datepicker.
|
|
360
|
+
* @param {PointerEvent} event - The pointer event object.
|
|
361
|
+
* @private
|
|
362
|
+
* @returns {void}
|
|
363
|
+
*/
|
|
364
|
+
private handleClick;
|
|
358
365
|
layout: string;
|
|
359
366
|
shape: string;
|
|
360
367
|
size: string;
|
|
@@ -381,6 +388,7 @@ export class AuroDatePicker extends AuroElement {
|
|
|
381
388
|
* @returns {void}
|
|
382
389
|
*/
|
|
383
390
|
focus(focusInput?: string): void;
|
|
391
|
+
hasFocus: boolean;
|
|
384
392
|
/**
|
|
385
393
|
* Converts valid time number to format used by wc-date-range API.
|
|
386
394
|
* @private
|
|
@@ -449,7 +457,6 @@ export class AuroDatePicker extends AuroElement {
|
|
|
449
457
|
* @returns {void}
|
|
450
458
|
*/
|
|
451
459
|
private configureDatepicker;
|
|
452
|
-
hasFocus: boolean;
|
|
453
460
|
/**
|
|
454
461
|
* Hides the dropdown bib if its open.
|
|
455
462
|
* @returns {void}
|
|
@@ -537,6 +544,12 @@ export class AuroDatePicker extends AuroElement {
|
|
|
537
544
|
* @throws {Error} Throws an error if the slot cannot be found or injected.
|
|
538
545
|
*/
|
|
539
546
|
private handleSlotToSlot;
|
|
547
|
+
/**
|
|
548
|
+
* Set up click handling for the datepicker.
|
|
549
|
+
* @private
|
|
550
|
+
* @returns {void}
|
|
551
|
+
*/
|
|
552
|
+
private configureClickHandler;
|
|
540
553
|
firstUpdated(): void;
|
|
541
554
|
/**
|
|
542
555
|
* Renders the snowflake layout for the datepicker.
|