@aurodesignsystem-dev/auro-formkit 0.0.0-pr785.3 → 0.0.0-pr792.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/api.min.js +16 -5
- package/components/checkbox/demo/index.min.js +16 -5
- package/components/checkbox/dist/index.js +16 -5
- package/components/checkbox/dist/registered.js +16 -5
- package/components/combobox/demo/api.md +1 -0
- package/components/combobox/demo/api.min.js +63 -38
- package/components/combobox/demo/index.min.js +63 -38
- package/components/combobox/dist/auro-combobox.d.ts +5 -0
- package/components/combobox/dist/index.js +62 -37
- package/components/combobox/dist/registered.js +62 -37
- package/components/counter/demo/api.min.js +29 -17
- package/components/counter/demo/index.min.js +29 -17
- package/components/counter/dist/index.js +24 -12
- package/components/counter/dist/registered.js +24 -12
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +40 -19
- package/components/datepicker/demo/api.min.js +214 -110
- package/components/datepicker/demo/index.md +4 -4
- package/components/datepicker/demo/index.min.js +214 -110
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +55 -12
- package/components/datepicker/dist/index.js +214 -110
- package/components/datepicker/dist/registered.js +214 -110
- package/components/datepicker/dist/styles/classic/style-css.d.ts +2 -0
- package/components/input/demo/api.md +2 -1
- package/components/input/demo/api.min.js +34 -27
- package/components/input/demo/index.min.js +34 -27
- package/components/input/dist/auro-input.d.ts +0 -6
- package/components/input/dist/base-input.d.ts +5 -1
- package/components/input/dist/index.js +34 -27
- package/components/input/dist/registered.js +34 -27
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.min.js +16 -5
- package/components/radio/demo/index.min.js +16 -5
- package/components/radio/dist/index.js +16 -5
- package/components/radio/dist/registered.js +16 -5
- package/components/select/demo/api.min.js +19 -8
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.min.js +19 -8
- package/components/select/dist/index.js +18 -7
- package/components/select/dist/registered.js +18 -7
- package/package.json +5 -5
- /package/components/datepicker/dist/styles/{default → classic}/color-css.d.ts +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css, LitElement, html } from 'lit';
|
|
2
2
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
3
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
4
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
|
|
6
6
|
var tokens = css`:host(:not([ondark])){--ds-auro-counter-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-counter-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-counter-outline-color: transparent;--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15))}:host([ondark]){--ds-auro-counter-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-counter-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-counter-outline-color: transparent;--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider-inverse, rgba(255, 255, 255, 0.4))}`;
|
|
7
7
|
|
|
@@ -2234,13 +2234,24 @@ class AuroFormValidation {
|
|
|
2234
2234
|
this.getInputElements(elem);
|
|
2235
2235
|
this.getAuroInputs(elem);
|
|
2236
2236
|
|
|
2237
|
-
//
|
|
2237
|
+
// Check if validation should run
|
|
2238
2238
|
let validationShouldRun =
|
|
2239
|
+
|
|
2240
|
+
// If the validation was forced
|
|
2239
2241
|
force ||
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2242
|
+
|
|
2243
|
+
// If the validation should run on input
|
|
2244
|
+
elem.validateOnInput ||
|
|
2245
|
+
|
|
2246
|
+
// State-based checks
|
|
2247
|
+
(
|
|
2248
|
+
// Element is not currently focused
|
|
2249
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
2250
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
2251
|
+
|
|
2252
|
+
// And element has been touched or is untouched but has a value
|
|
2253
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
2254
|
+
);
|
|
2244
2255
|
|
|
2245
2256
|
if (elem.hasAttribute('error')) {
|
|
2246
2257
|
elem.validity = 'customError';
|
|
@@ -2969,14 +2980,15 @@ class AuroCounter extends LitElement {
|
|
|
2969
2980
|
</div>
|
|
2970
2981
|
<div
|
|
2971
2982
|
part="counterControl"
|
|
2972
|
-
aria-labelledby="counter-label"
|
|
2973
2983
|
aria-describedby="counter-description"
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
aria-valuemin="${this.min}"
|
|
2984
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
2985
|
+
aria-labelledby="counter-label"
|
|
2977
2986
|
aria-valuemax="${this.max}"
|
|
2987
|
+
aria-valuemin="${this.min}"
|
|
2978
2988
|
aria-valuenow="${this.value}"
|
|
2979
2989
|
aria-valuetext="${this.value !== undefined ? this.value : this.min}"
|
|
2990
|
+
role="spinbutton"
|
|
2991
|
+
tabindex="${this.disabled ? '-1' : '0'}"
|
|
2980
2992
|
>
|
|
2981
2993
|
<auro-counter-button
|
|
2982
2994
|
aria-hidden="true"
|
|
@@ -3011,7 +3023,7 @@ class AuroCounter extends LitElement {
|
|
|
3011
3023
|
}
|
|
3012
3024
|
}
|
|
3013
3025
|
|
|
3014
|
-
var counterGroupStyles = css`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-
|
|
3026
|
+
var counterGroupStyles = css`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout=classic]) .triggerContent{padding:0 0 0 var(--ds-size-100, 0.5rem)}:host([layout=snowflake]) [auro-dropdown] .mainContent{align-items:center}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}.mainContent{display:flex;overflow:hidden;width:100%;flex-direction:column;align-items:flex-start;justify-content:center}label{font-size:var(--ds-text-body-size-default, 1rem);line-height:20px}label.filled{font-size:var(--ds-text-body-size-xs, 0.75rem)}.accents ::slotted([slot=typeIcon]){margin-right:8px}.accents ::slotted(*):not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}slot[name=valueText]{font-size:var(--ds-text-body-size-default, 1rem);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(auro-counter:not(:first-of-type)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}[auro-helptext] [part=helpText]{display:flex;flex-direction:column}[auro-helptext] [part=helpText]>p{margin-block:0}`;
|
|
3015
3027
|
|
|
3016
3028
|
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
3017
3029
|
|
|
@@ -9214,7 +9226,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9214
9226
|
/**
|
|
9215
9227
|
* @private
|
|
9216
9228
|
*/
|
|
9217
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
9229
|
+
this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
|
|
9218
9230
|
}
|
|
9219
9231
|
|
|
9220
9232
|
static get styles() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { css, LitElement, html } from 'lit';
|
|
2
2
|
import { unsafeStatic, literal, html as html$1 } from 'lit/static-html.js';
|
|
3
|
-
import { classMap } from 'lit/directives/class-map.js';
|
|
4
3
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
|
4
|
+
import { classMap } from 'lit/directives/class-map.js';
|
|
5
5
|
|
|
6
6
|
var tokens = css`:host(:not([ondark])){--ds-auro-counter-border-color: var(--ds-basic-color-border-bold, #585e67);--ds-auro-counter-background-color: var(--ds-basic-color-surface-default, #ffffff);--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-placeholder-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-error-icon-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-counter-outline-color: transparent;--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background, rgba(0, 0, 0, 0.05));--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text, #01426a);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider, rgba(0, 0, 0, 0.15))}:host([ondark]){--ds-auro-counter-border-color: var(--ds-basic-color-border-inverse, #ffffff);--ds-auro-counter-background-color: var(--ds-advanced-color-shared-background-inverse, rgba(255, 255, 255, 0.15));--ds-auro-counter-label-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-placeholder-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-text-color: var(--ds-basic-color-texticon-inverse, #ffffff);--ds-auro-counter-error-icon-color: var(--ds-basic-color-status-error-subtle, #fbc6c6);--ds-auro-counter-outline-color: transparent;--ds-auro-counter-control-background-color: var(--ds-advanced-color-button-tertiary-background-inverse, rgba(255, 255, 255, 0.05));--ds-auro-counter-control-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-counter-description-text-color: var(--ds-basic-color-texticon-muted, #676767);--ds-auro-counter-icon-color: var(--ds-advanced-color-button-tertiary-text-inverse, #ffffff);--ds-auro-counter-quantity-text-color: var(--ds-basic-color-texticon-default, #2a2a2a);--ds-auro-counter-divider-color: var(--ds-basic-color-border-divider-inverse, rgba(255, 255, 255, 0.4))}`;
|
|
7
7
|
|
|
@@ -2234,13 +2234,24 @@ class AuroFormValidation {
|
|
|
2234
2234
|
this.getInputElements(elem);
|
|
2235
2235
|
this.getAuroInputs(elem);
|
|
2236
2236
|
|
|
2237
|
-
//
|
|
2237
|
+
// Check if validation should run
|
|
2238
2238
|
let validationShouldRun =
|
|
2239
|
+
|
|
2240
|
+
// If the validation was forced
|
|
2239
2241
|
force ||
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2242
|
+
|
|
2243
|
+
// If the validation should run on input
|
|
2244
|
+
elem.validateOnInput ||
|
|
2245
|
+
|
|
2246
|
+
// State-based checks
|
|
2247
|
+
(
|
|
2248
|
+
// Element is not currently focused
|
|
2249
|
+
!elem.contains(document.activeElement) && // native input is not focused directly
|
|
2250
|
+
!document.activeElement.shadowRoot?.contains(elem) && // native input is not focused in the shadow DOM of another component
|
|
2251
|
+
|
|
2252
|
+
// And element has been touched or is untouched but has a value
|
|
2253
|
+
( elem.touched || (!elem.touched && typeof elem.value !== "undefined") )
|
|
2254
|
+
);
|
|
2244
2255
|
|
|
2245
2256
|
if (elem.hasAttribute('error')) {
|
|
2246
2257
|
elem.validity = 'customError';
|
|
@@ -2969,14 +2980,15 @@ class AuroCounter extends LitElement {
|
|
|
2969
2980
|
</div>
|
|
2970
2981
|
<div
|
|
2971
2982
|
part="counterControl"
|
|
2972
|
-
aria-labelledby="counter-label"
|
|
2973
2983
|
aria-describedby="counter-description"
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
aria-valuemin="${this.min}"
|
|
2984
|
+
aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
|
|
2985
|
+
aria-labelledby="counter-label"
|
|
2977
2986
|
aria-valuemax="${this.max}"
|
|
2987
|
+
aria-valuemin="${this.min}"
|
|
2978
2988
|
aria-valuenow="${this.value}"
|
|
2979
2989
|
aria-valuetext="${this.value !== undefined ? this.value : this.min}"
|
|
2990
|
+
role="spinbutton"
|
|
2991
|
+
tabindex="${this.disabled ? '-1' : '0'}"
|
|
2980
2992
|
>
|
|
2981
2993
|
<auro-counter-button
|
|
2982
2994
|
aria-hidden="true"
|
|
@@ -3011,7 +3023,7 @@ class AuroCounter extends LitElement {
|
|
|
3011
3023
|
}
|
|
3012
3024
|
}
|
|
3013
3025
|
|
|
3014
|
-
var counterGroupStyles = css`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-
|
|
3026
|
+
var counterGroupStyles = css`:host(:not([layout=classic])) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout=classic]) .triggerContent{padding:0 0 0 var(--ds-size-100, 0.5rem)}:host([layout=snowflake]) [auro-dropdown] .mainContent{align-items:center}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}.mainContent{display:flex;overflow:hidden;width:100%;flex-direction:column;align-items:flex-start;justify-content:center}label{font-size:var(--ds-text-body-size-default, 1rem);line-height:20px}label.filled{font-size:var(--ds-text-body-size-xs, 0.75rem)}.accents ::slotted([slot=typeIcon]){margin-right:8px}.accents ::slotted(*):not(.util_displayHidden){display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px}slot[name=valueText]{font-size:var(--ds-text-body-size-default, 1rem);overflow-x:hidden;text-overflow:ellipsis;white-space:nowrap}.counters{display:flex;flex-direction:column;gap:var(--ds-size-300, 1.5rem)}.counters ::slotted(auro-counter:not(:first-of-type)){padding-top:var(--ds-size-300, 1.5rem);border-top-width:1px;border-top-style:solid}[auro-helptext] [part=helpText]{display:flex;flex-direction:column}[auro-helptext] [part=helpText]>p{margin-block:0}`;
|
|
3015
3027
|
|
|
3016
3028
|
var shapeSizeCss$1 = css`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset;box-shadow:none}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;box-shadow:unset;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset;box-shadow:none}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;box-shadow:unset;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset;box-shadow:none}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;box-shadow:unset;min-height:68px;max-height:68px}.shape-pill-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:44px;max-height:44px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset;box-shadow:none}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;box-shadow:unset;min-height:44px;max-height:44px}`;
|
|
3017
3029
|
|
|
@@ -9214,7 +9226,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
9214
9226
|
/**
|
|
9215
9227
|
* @private
|
|
9216
9228
|
*/
|
|
9217
|
-
this.buttonTag = versioning.generateTag('auro-formkit-
|
|
9229
|
+
this.buttonTag = versioning.generateTag('auro-formkit-bibtemplate-button', buttonVersion, AuroButton);
|
|
9218
9230
|
}
|
|
9219
9231
|
|
|
9220
9232
|
static get styles() {
|
|
@@ -83,7 +83,7 @@ This configuration enables proper module resolution for the component's TypeScri
|
|
|
83
83
|
<!-- The below code snippet is automatically added from ./apiExamples/basic.html -->
|
|
84
84
|
|
|
85
85
|
```html
|
|
86
|
-
<auro-datepicker>
|
|
86
|
+
<auro-datepicker required="">
|
|
87
87
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
88
88
|
<span slot="fromLabel">Choose a date</span>
|
|
89
89
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -50,17 +50,12 @@
|
|
|
50
50
|
|
|
51
51
|
| Method | Type | Description |
|
|
52
52
|
|-------------------------------|----------------------------------------|--------------------------------------------------|
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [renderHtmlIconCalendar](#renderHtmlIconCalendar) | `(): TemplateResult` | |
|
|
56
|
-
| [renderHtmlIconError](#renderHtmlIconError) | `(): TemplateResult` | |
|
|
57
|
-
| [renderHtmlInputs](#renderHtmlInputs) | `(): TemplateResult` | |
|
|
53
|
+
| [clear](#clear) | `(): void` | Clears the current value(s) of the datepicker. |
|
|
54
|
+
| [focus](#focus) | `(focusInput?: string): void` | Focuses the datepicker trigger input.<br /><br />**focusInput**: Pass in `endDate` to focus on the return input. No parameter is needed to focus on the depart input. |
|
|
58
55
|
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
59
56
|
| [resetLayoutClasses](#resetLayoutClasses) | `(): void` | |
|
|
60
57
|
| [resetShapeClasses](#resetShapeClasses) | `(): void` | |
|
|
61
58
|
| [resetValues](#resetValues) | `(): void` | Resets values without resetting validation. |
|
|
62
|
-
| [setHasFocus](#setHasFocus) | `(): void` | |
|
|
63
|
-
| [setHasValue](#setHasValue) | `(): void` | |
|
|
64
59
|
| [updateComponentArchitecture](#updateComponentArchitecture) | `(): void` | |
|
|
65
60
|
| [validate](#validate) | `(force?: boolean \| undefined): void` | Validates value.<br /><br />**force**: Whether to force validation. |
|
|
66
61
|
|
|
@@ -106,7 +101,7 @@
|
|
|
106
101
|
<div class="exampleWrapper">
|
|
107
102
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
108
103
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
109
|
-
<auro-datepicker>
|
|
104
|
+
<auro-datepicker required="">
|
|
110
105
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
111
106
|
<span slot="fromLabel">Choose a date</span>
|
|
112
107
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -119,7 +114,7 @@
|
|
|
119
114
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
120
115
|
|
|
121
116
|
```html
|
|
122
|
-
<auro-datepicker>
|
|
117
|
+
<auro-datepicker required="">
|
|
123
118
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
124
119
|
<span slot="fromLabel">Choose a date</span>
|
|
125
120
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -135,7 +130,7 @@ When used, the datepicker will display two inputs and the component will support
|
|
|
135
130
|
<div class="exampleWrapper">
|
|
136
131
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
137
132
|
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
138
|
-
<auro-datepicker range>
|
|
133
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
139
134
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
140
135
|
<span slot="fromLabel">Departure</span>
|
|
141
136
|
<span slot="toLabel">Return</span>
|
|
@@ -149,7 +144,7 @@ When used, the datepicker will display two inputs and the component will support
|
|
|
149
144
|
<!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
|
|
150
145
|
|
|
151
146
|
```html
|
|
152
|
-
<auro-datepicker range>
|
|
147
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
153
148
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
154
149
|
<span slot="fromLabel">Departure</span>
|
|
155
150
|
<span slot="toLabel">Return</span>
|
|
@@ -913,7 +908,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
|
|
|
913
908
|
<div class="exampleWrapper">
|
|
914
909
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
915
910
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
916
|
-
<auro-datepicker>
|
|
911
|
+
<auro-datepicker required="">
|
|
917
912
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
918
913
|
<span slot="fromLabel">Choose a date</span>
|
|
919
914
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -926,7 +921,7 @@ Sets the label used for the input. When the `range` attribute is used this is th
|
|
|
926
921
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
927
922
|
|
|
928
923
|
```html
|
|
929
|
-
<auro-datepicker>
|
|
924
|
+
<auro-datepicker required="">
|
|
930
925
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
931
926
|
<span slot="fromLabel">Choose a date</span>
|
|
932
927
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -974,7 +969,7 @@ To view this demo, set your window to a mobile screen size.
|
|
|
974
969
|
<div class="exampleWrapper">
|
|
975
970
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basic.html) -->
|
|
976
971
|
<!-- The below content is automatically added from ./../apiExamples/basic.html -->
|
|
977
|
-
<auro-datepicker>
|
|
972
|
+
<auro-datepicker required="">
|
|
978
973
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
979
974
|
<span slot="fromLabel">Choose a date</span>
|
|
980
975
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -987,7 +982,7 @@ To view this demo, set your window to a mobile screen size.
|
|
|
987
982
|
<!-- The below code snippet is automatically added from ./../apiExamples/basic.html -->
|
|
988
983
|
|
|
989
984
|
```html
|
|
990
|
-
<auro-datepicker>
|
|
985
|
+
<auro-datepicker required="">
|
|
991
986
|
<span slot="bib.fullscreen.headline">Datepicker Headline</span>
|
|
992
987
|
<span slot="fromLabel">Choose a date</span>
|
|
993
988
|
<span slot="bib.fullscreen.dateLabel">Choose a date</span>
|
|
@@ -1003,7 +998,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
|
|
|
1003
998
|
<div class="exampleWrapper">
|
|
1004
999
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
|
|
1005
1000
|
<!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
|
|
1006
|
-
<auro-datepicker range>
|
|
1001
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
1007
1002
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
1008
1003
|
<span slot="fromLabel">Departure</span>
|
|
1009
1004
|
<span slot="toLabel">Return</span>
|
|
@@ -1017,7 +1012,7 @@ Only for use with the `range` attribute. Sets the label for the second input.
|
|
|
1017
1012
|
<!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
|
|
1018
1013
|
|
|
1019
1014
|
```html
|
|
1020
|
-
<auro-datepicker range>
|
|
1015
|
+
<auro-datepicker range minDate="07/08/2025">
|
|
1021
1016
|
<span slot="bib.fullscreen.headline">Datepicker Range Headline</span>
|
|
1022
1017
|
<span slot="fromLabel">Departure</span>
|
|
1023
1018
|
<span slot="toLabel">Return</span>
|
|
@@ -1473,9 +1468,35 @@ The component may be restyled using the following code sample and changing the v
|
|
|
1473
1468
|
|
|
1474
1469
|
@use "@aurodesignsystem/design-tokens/dist/themes/alaska/SCSSVariables--alaska" as v;
|
|
1475
1470
|
|
|
1476
|
-
:host {
|
|
1477
|
-
|
|
1471
|
+
:host(:not([ondark])) {
|
|
1472
|
+
// datepicker
|
|
1478
1473
|
--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-border-bold, #{v.$ds-basic-color-border-bold});
|
|
1474
|
+
--ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error, #{v.$ds-basic-color-status-error});
|
|
1475
|
+
--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
1476
|
+
|
|
1477
|
+
// calendar
|
|
1478
|
+
--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1479
|
+
--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
|
|
1480
|
+
--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|
|
1481
|
+
--ds-auro-calendar-nav-btn-border-color: transparent;
|
|
1482
|
+
--ds-auro-calendar-nav-btn-chevron-color: var(--ds-basic-color-brand-primary, #{v.$ds-basic-color-brand-primary});
|
|
1483
|
+
--ds-auro-calendar-nav-btn-container-color: transparent;
|
|
1484
|
+
--ds-auro-calendar-month-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1485
|
+
--ds-auro-calendar-month-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
|
|
1486
|
+
--ds-auro-calendar-month-header-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1487
|
+
--ds-auro-calendar-cell-border-color: transparent;
|
|
1488
|
+
--ds-auro-calendar-cell-container-color: transparent;
|
|
1489
|
+
--ds-auro-calendar-cell-in-range-color: var(--ds-advanced-color-shared-background-muted, #{v.$ds-advanced-color-shared-background-muted});
|
|
1490
|
+
--ds-auro-calendar-cell-price-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1491
|
+
--ds-auro-calendar-cell-text-color: var(--ds-basic-color-texticon-default, #{v.$ds-basic-color-texticon-default});
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
:host([ondark]) {
|
|
1495
|
+
--ds-auro-datepicker-range-input-divider-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);
|
|
1496
|
+
--ds-auro-datepicker-error-icon-color: var(--ds-basic-color-status-error-subtle, v.$ds-basic-color-status-error-subtle);
|
|
1497
|
+
--ds-auro-datepicker-label-text-color: var(--ds-basic-color-texticon-inverse-muted, v.$ds-basic-color-texticon-inverse-muted);
|
|
1498
|
+
|
|
1499
|
+
// calendar
|
|
1479
1500
|
--ds-auro-calendar-mobile-header-container-color: var(--ds-basic-color-surface-default, #{v.$ds-basic-color-surface-default});
|
|
1480
1501
|
--ds-auro-calendar-mobile-header-divider-color: var(--ds-basic-color-border-divider, #{v.$ds-basic-color-border-divider});
|
|
1481
1502
|
--ds-auro-calendar-mobile-header-text-color: var(--ds-basic-color-texticon-muted, #{v.$ds-basic-color-texticon-muted});
|