@aurodesignsystem-dev/auro-formkit 0.0.0-pr1512.0 → 0.0.0-pr1513.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/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +96 -119
- package/components/combobox/demo/getting-started.min.js +96 -119
- package/components/combobox/demo/index.min.js +96 -119
- package/components/combobox/dist/index.js +95 -118
- package/components/combobox/dist/registered.js +95 -118
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +2 -2
- package/components/counter/dist/registered.js +2 -2
- package/components/datepicker/demo/accessibility.md +2 -1
- package/components/datepicker/demo/api.md +63 -62
- package/components/datepicker/demo/customize.md +12 -1
- package/components/datepicker/demo/customize.min.js +716 -336
- package/components/datepicker/demo/index.min.js +716 -336
- package/components/datepicker/dist/{src/auro-calendar-cell.d.ts → auro-calendar-cell.d.ts} +14 -3
- package/components/datepicker/dist/{src/auro-calendar.d.ts → auro-calendar.d.ts} +91 -6
- package/components/datepicker/dist/{src/auro-datepicker.d.ts → auro-datepicker.d.ts} +78 -5
- package/components/datepicker/dist/blackoutUtils.d.ts +43 -0
- package/components/datepicker/dist/index.js +716 -336
- package/components/datepicker/dist/registered.js +716 -336
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +918 -584
- package/components/form/demo/getting-started.min.js +918 -584
- package/components/form/demo/index.min.js +918 -584
- package/components/form/demo/registerDemoDeps.min.js +918 -584
- package/components/input/demo/api.md +5 -5
- package/components/input/demo/customize.md +8 -8
- package/components/input/demo/customize.min.js +93 -116
- package/components/input/demo/getting-started.min.js +93 -116
- package/components/input/demo/index.min.js +93 -116
- package/components/input/dist/base-input.d.ts +44 -33
- package/components/input/dist/index.js +94 -129
- package/components/input/dist/registered.js +93 -116
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +1996 -1914
- package/package.json +6 -2
- package/components/checkbox/demo/customize.js +0 -22
- package/components/checkbox/demo/demo-support.js +0 -1
- package/components/checkbox/demo/getting-started.js +0 -22
- package/components/checkbox/demo/index.js +0 -8
- package/components/checkbox/demo/styles.scss +0 -1
- package/components/combobox/demo/customize.js +0 -24
- package/components/combobox/demo/demo-support.js +0 -1
- package/components/combobox/demo/getting-started.js +0 -21
- package/components/combobox/demo/index.js +0 -23
- package/components/combobox/demo/styles.scss +0 -1
- package/components/counter/demo/customize.js +0 -21
- package/components/counter/demo/demo-support.js +0 -1
- package/components/counter/demo/index.js +0 -21
- package/components/counter/demo/styles.scss +0 -1
- package/components/datepicker/demo/customize.js +0 -17
- package/components/datepicker/demo/demo-support.js +0 -1
- package/components/datepicker/demo/index.js +0 -23
- package/components/datepicker/demo/styles.scss +0 -1
- package/components/dropdown/demo/customize.js +0 -9
- package/components/dropdown/demo/demo-support.js +0 -1
- package/components/dropdown/demo/getting-started.js +0 -9
- package/components/dropdown/demo/index.js +0 -16
- package/components/dropdown/demo/styles.scss +0 -1
- package/components/form/demo/customize.js +0 -28
- package/components/form/demo/demo-support.js +0 -1
- package/components/form/demo/getting-started.js +0 -9
- package/components/form/demo/index.js +0 -5
- package/components/form/demo/registerDemoDeps.js +0 -23
- package/components/form/demo/styles.scss +0 -1
- package/components/input/demo/customize.js +0 -25
- package/components/input/demo/demo-support.js +0 -1
- package/components/input/demo/getting-started.js +0 -8
- package/components/input/demo/index.js +0 -8
- package/components/input/demo/styles.css +0 -974
- package/components/input/demo/styles.scss +0 -1
- package/components/menu/demo/demo-support.js +0 -1
- package/components/menu/demo/index.js +0 -25
- package/components/menu/demo/styles.scss +0 -1
- package/components/radio/demo/customize.js +0 -22
- package/components/radio/demo/demo-support.js +0 -1
- package/components/radio/demo/getting-started.js +0 -24
- package/components/radio/demo/index.js +0 -8
- package/components/radio/demo/styles.scss +0 -1
- package/components/select/demo/customize.js +0 -11
- package/components/select/demo/demo-support.js +0 -1
- package/components/select/demo/getting-started.js +0 -26
- package/components/select/demo/index.js +0 -11
- package/components/select/demo/styles.scss +0 -1
- /package/components/datepicker/dist/{src/auro-calendar-month.d.ts → auro-calendar-month.d.ts} +0 -0
- /package/components/datepicker/dist/{src/buttonVersion.d.ts → buttonVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/datepickerKeyboardStrategy.d.ts → datepickerKeyboardStrategy.d.ts} +0 -0
- /package/components/datepicker/dist/{src/iconVersion.d.ts → iconVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/index.d.ts → index.d.ts} +0 -0
- /package/components/datepicker/dist/{src/popoverVersion.d.ts → popoverVersion.d.ts} +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/classic/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/color-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/shapeSize-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/color-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/snowflake/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-cell-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-auro-calendar-month-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/style-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/styles → styles}/tokens-css.d.ts +0 -0
- /package/components/datepicker/dist/{src/utilities.d.ts → utilities.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendar.d.ts → utilitiesCalendar.d.ts} +0 -0
- /package/components/datepicker/dist/{src/utilitiesCalendarRender.d.ts → utilitiesCalendarRender.d.ts} +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/day.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
- /package/components/datepicker/dist/{src/vendor → vendor}/wc-range-datepicker/range-datepicker.d.ts +0 -0
|
@@ -4806,7 +4806,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4806
4806
|
}
|
|
4807
4807
|
};
|
|
4808
4808
|
|
|
4809
|
-
var formkitVersion$2 = '
|
|
4809
|
+
var formkitVersion$2 = '202606291440';
|
|
4810
4810
|
|
|
4811
4811
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4812
4812
|
static get properties() {
|
|
@@ -16524,13 +16524,6 @@ class AuroInputUtilities {
|
|
|
16524
16524
|
* @returns {string | undefined}
|
|
16525
16525
|
*/
|
|
16526
16526
|
toFormattedValue(valueObject, format) {
|
|
16527
|
-
// Exposed publicly via `AuroInputUtil.toFormattedValue`, so a missing
|
|
16528
|
-
// `format` argument has to fail gracefully rather than throw on
|
|
16529
|
-
// `format.toLowerCase()`. Treat any falsy value (undefined, null, '')
|
|
16530
|
-
// as "no format → no display value".
|
|
16531
|
-
if (!format) {
|
|
16532
|
-
return undefined;
|
|
16533
|
-
}
|
|
16534
16527
|
const normalizedFormat = format.toLowerCase();
|
|
16535
16528
|
const maskOptions = this.getMaskOptions('date', normalizedFormat);
|
|
16536
16529
|
|
|
@@ -16681,18 +16674,79 @@ class BaseInput extends AuroElement$1 {
|
|
|
16681
16674
|
constructor() {
|
|
16682
16675
|
super();
|
|
16683
16676
|
|
|
16684
|
-
|
|
16685
|
-
|
|
16686
|
-
|
|
16687
|
-
|
|
16688
|
-
|
|
16689
|
-
|
|
16690
|
-
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16677
|
+
this.appearance = "default";
|
|
16678
|
+
this.disabled = false;
|
|
16679
|
+
this.layout = 'classic';
|
|
16680
|
+
this.locale = 'en-US';
|
|
16681
|
+
this.max = undefined;
|
|
16682
|
+
this._maxObject = undefined;
|
|
16683
|
+
this.maxLength = undefined;
|
|
16684
|
+
this.min = undefined;
|
|
16685
|
+
this._minObject = undefined;
|
|
16686
|
+
this.minLength = undefined;
|
|
16687
|
+
this.required = false;
|
|
16688
|
+
this.onDark = false;
|
|
16689
|
+
this.setCustomValidityForType = undefined;
|
|
16690
|
+
this.size = 'lg';
|
|
16691
|
+
this.shape = 'classic';
|
|
16692
|
+
this.value = undefined;
|
|
16693
|
+
this._valueObject = undefined;
|
|
16694
|
+
|
|
16695
|
+
this._initializePrivateDefaults();
|
|
16696
|
+
}
|
|
16697
|
+
|
|
16698
|
+
/**
|
|
16699
|
+
* Internal Defaults.
|
|
16700
|
+
* @private
|
|
16701
|
+
* @returns {void}
|
|
16702
|
+
*/
|
|
16703
|
+
_initializePrivateDefaults() {
|
|
16694
16704
|
this.activeLabel = false;
|
|
16695
|
-
|
|
16705
|
+
this.appearance = "default";
|
|
16706
|
+
this.icon = false;
|
|
16707
|
+
this.disabled = false;
|
|
16708
|
+
this.dvInputOnly = false;
|
|
16709
|
+
this.hideLabelVisually = false;
|
|
16710
|
+
this.max = undefined;
|
|
16711
|
+
this.maxLength = undefined;
|
|
16712
|
+
this.min = undefined;
|
|
16713
|
+
this.minLength = undefined;
|
|
16714
|
+
this.noValidate = false;
|
|
16715
|
+
this.onDark = false;
|
|
16716
|
+
this.required = false;
|
|
16717
|
+
this.setCustomValidityForType = undefined;
|
|
16718
|
+
|
|
16719
|
+
// Used for storing raw values returned from input mask.
|
|
16720
|
+
this._rawMaskValue = undefined;
|
|
16721
|
+
|
|
16722
|
+
/**
|
|
16723
|
+
* @private
|
|
16724
|
+
*/
|
|
16725
|
+
this.layout = 'classic';
|
|
16726
|
+
|
|
16727
|
+
/**
|
|
16728
|
+
* @private
|
|
16729
|
+
*/
|
|
16730
|
+
this.shape = 'classic';
|
|
16731
|
+
|
|
16732
|
+
/**
|
|
16733
|
+
* @private
|
|
16734
|
+
*/
|
|
16735
|
+
this.size = 'lg';
|
|
16736
|
+
|
|
16737
|
+
this.touched = false;
|
|
16738
|
+
this.util = new AuroInputUtilities({
|
|
16739
|
+
locale: "en-US",
|
|
16740
|
+
format: this.format
|
|
16741
|
+
});
|
|
16742
|
+
this.validation = new AuroFormValidation();
|
|
16743
|
+
this.inputIconName = undefined;
|
|
16744
|
+
this.showPassword = false;
|
|
16745
|
+
this.validationCCLength = undefined;
|
|
16746
|
+
this.hasValue = false;
|
|
16747
|
+
this.label = 'Input label is undefined';
|
|
16748
|
+
|
|
16749
|
+
|
|
16696
16750
|
this.allowedInputTypes = [
|
|
16697
16751
|
"text",
|
|
16698
16752
|
"number",
|
|
@@ -16701,8 +16755,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
16701
16755
|
"credit-card",
|
|
16702
16756
|
"tel"
|
|
16703
16757
|
];
|
|
16704
|
-
this.
|
|
16705
|
-
/** @private */
|
|
16758
|
+
this.icon = false;
|
|
16706
16759
|
this.dateFormatMap = {
|
|
16707
16760
|
'mm/dd/yyyy': 'dateMMDDYYYY',
|
|
16708
16761
|
'dd/mm/yyyy': 'dateDDMMYYYY',
|
|
@@ -16719,57 +16772,27 @@ class BaseInput extends AuroElement$1 {
|
|
|
16719
16772
|
'dd/mm': 'dateDDMM',
|
|
16720
16773
|
'mm/dd': 'dateMMDD'
|
|
16721
16774
|
};
|
|
16722
|
-
this.disabled = false;
|
|
16723
|
-
/** @private */
|
|
16724
16775
|
this.domHandler = new DomHandler();
|
|
16725
16776
|
this.dvInputOnly = false;
|
|
16726
16777
|
this.hasValue = false;
|
|
16727
|
-
this.hideLabelVisually = false;
|
|
16728
|
-
this.icon = false;
|
|
16729
|
-
/** @private */
|
|
16730
16778
|
this.inputIconName = undefined;
|
|
16731
|
-
/** @private */
|
|
16732
16779
|
this.label = 'Input label is undefined';
|
|
16733
|
-
this.layout = 'classic';
|
|
16734
|
-
this.locale = 'en-US';
|
|
16735
|
-
this.max = undefined;
|
|
16736
|
-
this._maxObject = undefined;
|
|
16737
|
-
this.maxLength = undefined;
|
|
16738
|
-
this.min = undefined;
|
|
16739
|
-
this._minObject = undefined;
|
|
16740
|
-
this.minLength = undefined;
|
|
16741
16780
|
this.noValidate = false;
|
|
16742
|
-
this.
|
|
16743
|
-
// Raw values returned from the input mask before model normalization.
|
|
16744
|
-
this._rawMaskValue = undefined;
|
|
16745
|
-
this.required = false;
|
|
16746
|
-
this.setCustomValidityForType = undefined;
|
|
16747
|
-
// Credit Card is intentionally excluded — its mask manages the cursor
|
|
16748
|
-
// itself, and listing it here caused cursor placement issues in Safari.
|
|
16749
|
-
/** @private */
|
|
16781
|
+
this._rawMaskValue = undefined; // Used for storing raw values returned from input mask.
|
|
16750
16782
|
this.setSelectionInputTypes = [
|
|
16751
16783
|
"text",
|
|
16752
16784
|
"password",
|
|
16753
16785
|
"email"
|
|
16754
|
-
];
|
|
16755
|
-
this.shape = 'classic';
|
|
16756
|
-
/** @private */
|
|
16786
|
+
]; // Credit Card is not included as this caused cursor placement issues in Safari.
|
|
16757
16787
|
this.showPassword = false;
|
|
16758
|
-
this.size = 'lg';
|
|
16759
16788
|
this.touched = false;
|
|
16760
|
-
/** @private */
|
|
16761
16789
|
this.uniqueId = new UniqueId().create();
|
|
16762
|
-
/** @private */
|
|
16763
16790
|
this.util = new AuroInputUtilities({
|
|
16764
16791
|
locale: this.locale,
|
|
16765
16792
|
format: this.format
|
|
16766
16793
|
});
|
|
16767
|
-
/** @private */
|
|
16768
16794
|
this.validation = new AuroFormValidation();
|
|
16769
|
-
/** @private */
|
|
16770
16795
|
this.validationCCLength = undefined;
|
|
16771
|
-
this.value = undefined;
|
|
16772
|
-
this._valueObject = undefined;
|
|
16773
16796
|
}
|
|
16774
16797
|
|
|
16775
16798
|
// function to define props used within the scope of this component
|
|
@@ -17317,15 +17340,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17317
17340
|
|
|
17318
17341
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
17319
17342
|
|
|
17320
|
-
// Normalize the format token to lowercase so case-mixed values supplied
|
|
17321
|
-
// via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
|
|
17322
|
-
// lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
|
|
17323
|
-
// format silently misses the map and leaves `setCustomValidityForType`
|
|
17324
|
-
// unset.
|
|
17325
|
-
if (this.format) {
|
|
17326
|
-
this.format = this.format.toLowerCase();
|
|
17327
|
-
}
|
|
17328
|
-
|
|
17329
17343
|
// use validity message override if declared when initializing the component
|
|
17330
17344
|
if (this.hasAttribute('setCustomValidity')) {
|
|
17331
17345
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
@@ -17759,38 +17773,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17759
17773
|
this.touched = true;
|
|
17760
17774
|
this.validation.validate(this);
|
|
17761
17775
|
}
|
|
17762
|
-
|
|
17763
|
-
// Prevents cursor jumping in Safari. Setting `this.value` triggers a Lit
|
|
17764
|
-
// update that can re-render the input and reset the native cursor; we
|
|
17765
|
-
// capture the caret position before that update commits and restore it
|
|
17766
|
-
// via `setSelectionRange` once the update has flushed. Gated on
|
|
17767
|
-
// `setSelectionInputTypes` so credit-card (and other masked types whose
|
|
17768
|
-
// formatter manages the cursor itself) doesn't get a competing write.
|
|
17769
|
-
// Capture the caret position INSIDE the gate — reading `selectionStart`
|
|
17770
|
-
// on input types that don't support text selection (number, email in
|
|
17771
|
-
// some browsers) throws InvalidStateError, which would crash all input
|
|
17772
|
-
// handling. Wrap the read in try/catch belt-and-suspenders even though
|
|
17773
|
-
// the gated types currently support it, since the list is a public
|
|
17774
|
-
// property a consumer could mutate.
|
|
17775
|
-
if (this.setSelectionInputTypes.includes(this.type)) {
|
|
17776
|
-
let selectionStart;
|
|
17777
|
-
try {
|
|
17778
|
-
selectionStart = this.inputElement.selectionStart;
|
|
17779
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17780
|
-
return;
|
|
17781
|
-
}
|
|
17782
|
-
if (typeof selectionStart !== 'number') {
|
|
17783
|
-
return;
|
|
17784
|
-
}
|
|
17785
|
-
this.updateComplete.then(() => {
|
|
17786
|
-
try {
|
|
17787
|
-
this.inputElement.setSelectionRange(selectionStart, selectionStart);
|
|
17788
|
-
} catch (error) { // eslint-disable-line no-unused-vars
|
|
17789
|
-
// Some input types (number/email in certain UAs) throw on
|
|
17790
|
-
// setSelectionRange; swallow and let the native cursor stand.
|
|
17791
|
-
}
|
|
17792
|
-
});
|
|
17793
|
-
}
|
|
17794
17776
|
}
|
|
17795
17777
|
|
|
17796
17778
|
/**
|
|
@@ -18417,7 +18399,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18417
18399
|
}
|
|
18418
18400
|
};
|
|
18419
18401
|
|
|
18420
|
-
var formkitVersion$1 = '
|
|
18402
|
+
var formkitVersion$1 = '202606291440';
|
|
18421
18403
|
|
|
18422
18404
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18423
18405
|
// See LICENSE in the project root for license information.
|
|
@@ -18920,7 +18902,6 @@ class AuroInput extends BaseInput {
|
|
|
18920
18902
|
<${this.buttonTag}
|
|
18921
18903
|
@click="${this.handleClickShowPassword}"
|
|
18922
18904
|
appearance="${this.onDark ? 'inverse' : this.appearance}"
|
|
18923
|
-
aria-pressed="${this.showPassword ? 'true' : 'false'}"
|
|
18924
18905
|
class="notificationBtn passwordBtn"
|
|
18925
18906
|
shape="circle"
|
|
18926
18907
|
size="sm"
|
|
@@ -18994,29 +18975,25 @@ class AuroInput extends BaseInput {
|
|
|
18994
18975
|
* @returns {html} - Returns HTML for the help text and error message.
|
|
18995
18976
|
*/
|
|
18996
18977
|
renderHtmlHelpText() {
|
|
18997
|
-
// Single `<p>` with stable identity across validity transitions —
|
|
18998
|
-
// previously two distinct templates (valid vs invalid) caused Lit to
|
|
18999
|
-
// replace the node entirely on a flip, and VoiceOver wouldn't
|
|
19000
|
-
// re-announce because the live-region element it was watching had been
|
|
19001
|
-
// removed and a new one inserted. Keeping one node means the `role`,
|
|
19002
|
-
// `aria-live`, and text content all change in-place, which AT does
|
|
19003
|
-
// observe and announce.
|
|
19004
|
-
const isError = this.validity && this.validity !== 'valid';
|
|
19005
18978
|
return html`
|
|
19006
|
-
|
|
19007
|
-
|
|
19008
|
-
|
|
19009
|
-
|
|
19010
|
-
|
|
19011
|
-
|
|
19012
|
-
|
|
19013
|
-
|
|
19014
|
-
|
|
19015
|
-
|
|
19016
|
-
|
|
18979
|
+
${!this.validity || this.validity === undefined || this.validity === 'valid'
|
|
18980
|
+
? html`
|
|
18981
|
+
<${this.helpTextTag}
|
|
18982
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
18983
|
+
<p id="${this.uniqueId}" part="helpText">
|
|
18984
|
+
<slot name="helpText">${this.getHelpText()}</slot>
|
|
18985
|
+
</p>
|
|
18986
|
+
</${this.helpTextTag}>
|
|
18987
|
+
`
|
|
18988
|
+
: html`
|
|
18989
|
+
<${this.helpTextTag} error
|
|
18990
|
+
appearance="${this.onDark ? 'inverse' : this.appearance}">
|
|
18991
|
+
<p id="${this.uniqueId}" role="alert" aria-live="assertive" part="helpText">
|
|
18992
|
+
${this.errorMessage}
|
|
18993
|
+
</p>
|
|
18994
|
+
</${this.helpTextTag}>
|
|
18995
|
+
`
|
|
19017
18996
|
}
|
|
19018
|
-
</p>
|
|
19019
|
-
</${this.helpTextTag}>
|
|
19020
18997
|
`;
|
|
19021
18998
|
}
|
|
19022
18999
|
|
|
@@ -19543,7 +19520,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19543
19520
|
}
|
|
19544
19521
|
}
|
|
19545
19522
|
|
|
19546
|
-
var formkitVersion = '
|
|
19523
|
+
var formkitVersion = '202606291440';
|
|
19547
19524
|
|
|
19548
19525
|
var styleCss$1 = css`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}:host{display:block;text-align:left}:host [auro-dropdown]{--ds-auro-dropdown-trigger-background-color: transparent}:host #inputInBib::part(wrapper){box-shadow:none}:host #inputInBib::part(accent-left){display:none}:host([layout*=classic]) [auro-input]{width:100%}:host([layout*=classic]) [auro-input]::part(helpText){display:none}:host([layout*=classic]) #slotHolder{display:none}`;
|
|
19549
19526
|
|
|
@@ -1099,7 +1099,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
|
-
var formkitVersion$1 = '
|
|
1102
|
+
var formkitVersion$1 = '202606291440';
|
|
1103
1103
|
|
|
1104
1104
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1105
1105
|
// See LICENSE in the project root for license information.
|
|
@@ -5445,7 +5445,7 @@ class AuroHelpText extends i$2 {
|
|
|
5445
5445
|
}
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
|
-
var formkitVersion = '
|
|
5448
|
+
var formkitVersion = '202606291440';
|
|
5449
5449
|
|
|
5450
5450
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5451
5451
|
static get properties() {
|
|
@@ -1099,7 +1099,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1099
1099
|
}
|
|
1100
1100
|
};
|
|
1101
1101
|
|
|
1102
|
-
var formkitVersion$1 = '
|
|
1102
|
+
var formkitVersion$1 = '202606291440';
|
|
1103
1103
|
|
|
1104
1104
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1105
1105
|
// See LICENSE in the project root for license information.
|
|
@@ -5445,7 +5445,7 @@ class AuroHelpText extends i$2 {
|
|
|
5445
5445
|
}
|
|
5446
5446
|
}
|
|
5447
5447
|
|
|
5448
|
-
var formkitVersion = '
|
|
5448
|
+
var formkitVersion = '202606291440';
|
|
5449
5449
|
|
|
5450
5450
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5451
5451
|
static get properties() {
|
|
@@ -1049,7 +1049,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
|
|
1052
|
-
var formkitVersion$1 = '
|
|
1052
|
+
var formkitVersion$1 = '202606291440';
|
|
1053
1053
|
|
|
1054
1054
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1055
1055
|
// See LICENSE in the project root for license information.
|
|
@@ -5377,7 +5377,7 @@ class AuroHelpText extends LitElement {
|
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
5379
5379
|
|
|
5380
|
-
var formkitVersion = '
|
|
5380
|
+
var formkitVersion = '202606291440';
|
|
5381
5381
|
|
|
5382
5382
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5383
5383
|
static get properties() {
|
|
@@ -1049,7 +1049,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1049
1049
|
}
|
|
1050
1050
|
};
|
|
1051
1051
|
|
|
1052
|
-
var formkitVersion$1 = '
|
|
1052
|
+
var formkitVersion$1 = '202606291440';
|
|
1053
1053
|
|
|
1054
1054
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1055
1055
|
// See LICENSE in the project root for license information.
|
|
@@ -5377,7 +5377,7 @@ class AuroHelpText extends LitElement {
|
|
|
5377
5377
|
}
|
|
5378
5378
|
}
|
|
5379
5379
|
|
|
5380
|
-
var formkitVersion = '
|
|
5380
|
+
var formkitVersion = '202606291440';
|
|
5381
5381
|
|
|
5382
5382
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5383
5383
|
static get properties() {
|
|
@@ -83,7 +83,8 @@ When `range` is set, each date cell's label includes its position relative to th
|
|
|
83
83
|
| `rangeLabelEnd` | "range end" | Announced for the range end date. |
|
|
84
84
|
| `rangeLabelBeforeRange` | "before range" | Announced for dates before the range start. |
|
|
85
85
|
| `rangeLabelInRange` | "in range" | Announced for dates within the selected range. |
|
|
86
|
-
| `rangeLabelAfterRange` | "after range" | Announced for dates after
|
|
86
|
+
| `rangeLabelAfterRange` | "after range" | Announced for dates after a fully selected range. |
|
|
87
|
+
| `rangeLabelEndPreview` | "previewing range end" | Announced for the focused cell while picking the range end (`dateFrom` set, `dateTo` not yet selected) so AT users know that pressing Enter would commit this cell as the range end. |
|
|
87
88
|
|
|
88
89
|
<auro-header level="2" id="fullscreenBehavior">Fullscreen (Modal) Behavior</auro-header>
|
|
89
90
|
On smaller viewports, the calendar bib opens as a fullscreen modal dialog:
|
|
@@ -7,68 +7,69 @@ The `auro-datepicker` component provides users with a way to select a date or da
|
|
|
7
7
|
|
|
8
8
|
## Properties
|
|
9
9
|
|
|
10
|
-
| Property | Attribute | Modifiers | Type | Default
|
|
11
|
-
|
|
12
|
-
| `appearance` | `appearance` | | `'default' \| 'inverse'` | "'default'"
|
|
13
|
-
| `autoPlacement` | `autoPlacement` | | `boolean` | "false"
|
|
14
|
-
| `blackoutDates` | `blackoutDates` | | `array` | []
|
|
15
|
-
| `blackoutLabel` | `blackoutLabel` | | `string` | "unavailable" | Label announced for blackout (disabled but in-range) date cells. |
|
|
16
|
-
| `calendarEndDate` | `calendarEndDate` | | `string` | "undefined"
|
|
17
|
-
| `calendarEndDateObject` | | readonly | `Date \| undefined` |
|
|
18
|
-
| `calendarFocusDate` | `calendarFocusDate` | | `string` | "value"
|
|
19
|
-
| `calendarFocusDateObject` | | readonly | `Date \| undefined` |
|
|
20
|
-
| `calendarGridLabel` | `calendarGridLabel` | | `string` | "Calendar days of the month" | Accessible label for the calendar grid containing the days of the month. |
|
|
21
|
-
| `calendarStartDate` | `calendarStartDate` | | `string` | "undefined"
|
|
22
|
-
| `calendarStartDateObject` | | readonly | `Date \| undefined` |
|
|
23
|
-
| `centralDate` | `centralDate` | | `string` |
|
|
24
|
-
| `centralDateObject` | | readonly | `Date \| undefined` |
|
|
25
|
-
| `disabled` | `disabled` | | `boolean` | false
|
|
26
|
-
| `dvInputOnly` | `dvInputOnly` | | `boolean` | false
|
|
27
|
-
| `error` | `error` | | `string` |
|
|
28
|
-
| `format` | `format` | | `string` |
|
|
29
|
-
| `fullscreenBreakpoint` | `fullscreenBreakpoint` | | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'"
|
|
30
|
-
| `hasError` | | readonly | `boolean` |
|
|
31
|
-
| `inputmode` | `inputmode` | | `string` |
|
|
32
|
-
| `largeFullscreenHeadline` | `largeFullscreenHeadline` | | `boolean` | false
|
|
33
|
-
| `layout` | `layout` | | `'classic' \| 'snowflake'` | "'classic'"
|
|
34
|
-
| `locale` | `locale` | | `string` |
|
|
35
|
-
| `maxDate` | `maxDate` | | `string` |
|
|
36
|
-
| `maxDateObject` | | readonly | `Date \| undefined` |
|
|
37
|
-
| `minDate` | `minDate` | | `string` |
|
|
38
|
-
| `minDateObject` | | readonly | `Date \| undefined` |
|
|
39
|
-
| `monthNames` | `monthNames` | | `array` |
|
|
40
|
-
| `navLabelNextMonth` | `navLabelNextMonth` | | `string` | "Next month" | Accessible label for the next month navigation button. |
|
|
41
|
-
| `navLabelPrevMonth` | `navLabelPrevMonth` | | `string` | "Previous month" | Accessible label for the previous month navigation button. |
|
|
42
|
-
| `noFlip` | `noFlip` | | `boolean` | false
|
|
43
|
-
| `noValidate` | `noValidate` | | `boolean` | false
|
|
44
|
-
| `offset` | `offset` | | `number` | "0"
|
|
45
|
-
| `onDark` | `onDark` | | `boolean` | false
|
|
46
|
-
| `placeholder` | `placeholder` | | `string` |
|
|
47
|
-
| `placeholderEndDate` | `placeholderEndDate` | | `string` |
|
|
48
|
-
| `placement` | `placement` | | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'"
|
|
49
|
-
| `range` | `range` | | `boolean` | false
|
|
50
|
-
| `rangeLabelAfterRange` | `rangeLabelAfterRange` | | `string` | "after range" | Label announced for cells after
|
|
51
|
-
| `rangeLabelBeforeRange` | `rangeLabelBeforeRange` | | `string` | "before range" | Label announced for cells before the range start. |
|
|
52
|
-
| `rangeLabelEnd` | `rangeLabelEnd` | | `string` | "range end" | Label announced for the range end date cell. |
|
|
53
|
-
| `
|
|
54
|
-
| `
|
|
55
|
-
| `
|
|
56
|
-
| `
|
|
57
|
-
| `
|
|
58
|
-
| `
|
|
59
|
-
| `
|
|
60
|
-
| `
|
|
61
|
-
| `
|
|
62
|
-
| `
|
|
63
|
-
| `
|
|
64
|
-
| `
|
|
65
|
-
| `
|
|
66
|
-
| `
|
|
67
|
-
| `
|
|
68
|
-
| `
|
|
69
|
-
| `
|
|
70
|
-
| `
|
|
71
|
-
| `
|
|
10
|
+
| Property | Attribute | Modifiers | Type | Default | Description |
|
|
11
|
+
|-----------------------------------|-----------------------------------|-----------|--------------------------------------------------|--------------------------------|--------------------------------------------------|
|
|
12
|
+
| `appearance` | `appearance` | | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
|
+
| `autoPlacement` | `autoPlacement` | | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
14
|
+
| `blackoutDates` | `blackoutDates` | | `array` | [] | Array of dates that cannot be selected. Dates should be in ISO format (YYYY-MM-DD). |
|
|
15
|
+
| `blackoutLabel` | `blackoutLabel` | | `string` | "'unavailable'" | Label announced for blackout (disabled but in-range) date cells. |
|
|
16
|
+
| `calendarEndDate` | `calendarEndDate` | | `string` | "undefined" | The last date that may be displayed in the calendar. |
|
|
17
|
+
| `calendarEndDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `calendarEndDate`. Returns `undefined` when `calendarEndDate` is empty or not a valid date. |
|
|
18
|
+
| `calendarFocusDate` | `calendarFocusDate` | | `string` | "value" | The date that will first be visually rendered to the user in the calendar. |
|
|
19
|
+
| `calendarFocusDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `calendarFocusDate`. Returns `undefined` when `calendarFocusDate` is empty or not a valid date. |
|
|
20
|
+
| `calendarGridLabel` | `calendarGridLabel` | | `string` | "'Calendar days of the month'" | Accessible label for the calendar grid containing the days of the month. |
|
|
21
|
+
| `calendarStartDate` | `calendarStartDate` | | `string` | "undefined" | The first date that may be displayed in the calendar. |
|
|
22
|
+
| `calendarStartDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `calendarStartDate`. Returns `undefined` when `calendarStartDate` is empty or not a valid date. |
|
|
23
|
+
| `centralDate` | `centralDate` | | `string` | | The date that determines the currently visible month. |
|
|
24
|
+
| `centralDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `centralDate`. Returns `undefined` when `centralDate` is empty or not a valid date. |
|
|
25
|
+
| `disabled` | `disabled` | | `boolean` | false | If set, disables the datepicker. |
|
|
26
|
+
| `dvInputOnly` | `dvInputOnly` | | `boolean` | false | If defined, the display value slot content will only mask the HTML5 input element. The input's label will not be masked. |
|
|
27
|
+
| `error` | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
28
|
+
| `format` | `format` | | `string` | | Specifies the date format. The default is `mm/dd/yyyy`. |
|
|
29
|
+
| `fullscreenBreakpoint` | `fullscreenBreakpoint` | | `'xs' \| 'sm' \| 'md' \| 'lg' \| 'xl' \| 'disabled'` | "'sm'" | Defines the screen size breakpoint at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
30
|
+
| `hasError` | | readonly | `boolean` | | Returns `true` when the datepicker has an active validation error. |
|
|
31
|
+
| `inputmode` | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
|
|
32
|
+
| `largeFullscreenHeadline` | `largeFullscreenHeadline` | | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
33
|
+
| `layout` | `layout` | | `'classic' \| 'snowflake'` | "'classic'" | Sets the layout of the datepicker. |
|
|
34
|
+
| `locale` | `locale` | | `string` | | Defines the locale of the element. Used to derive the date format when `format` is not explicitly set. |
|
|
35
|
+
| `maxDate` | `maxDate` | | `string` | | Maximum date. All dates after will be disabled. |
|
|
36
|
+
| `maxDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `maxDate`. Returns `undefined` when `maxDate` is empty or not a valid date. |
|
|
37
|
+
| `minDate` | `minDate` | | `string` | | Minimum date. All dates before will be disabled. |
|
|
38
|
+
| `minDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `minDate`. Returns `undefined` when `minDate` is empty or not a valid date. |
|
|
39
|
+
| `monthNames` | `monthNames` | | `array` | | Names of all 12 months to render in the calendar.<br />When omitted, month names will be automatically populated from the active `locale` (falling back to `en-US`). |
|
|
40
|
+
| `navLabelNextMonth` | `navLabelNextMonth` | | `string` | "'Next month'" | Accessible label for the next month navigation button. |
|
|
41
|
+
| `navLabelPrevMonth` | `navLabelPrevMonth` | | `string` | "'Previous month'" | Accessible label for the previous month navigation button. |
|
|
42
|
+
| `noFlip` | `noFlip` | | `boolean` | false | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
43
|
+
| `noValidate` | `noValidate` | | `boolean` | false | If set, disables auto-validation on blur. |
|
|
44
|
+
| `offset` | `offset` | | `number` | "0" | Gap between the trigger element and bib. |
|
|
45
|
+
| `onDark` | `onDark` | | `boolean` | false | DEPRECATED - use `appearance="inverse"` instead. |
|
|
46
|
+
| `placeholder` | `placeholder` | | `string` | | Placeholder text to display in the input(s) when no value is set. |
|
|
47
|
+
| `placeholderEndDate` | `placeholderEndDate` | | `string` | | Optional placeholder text to display in the second input when using date range.<br />By default, datepicker will use `placeholder` for both inputs if placeholder is<br />specified, but placeholderEndDate is not. |
|
|
48
|
+
| `placement` | `placement` | | `'top' \| 'right' \| 'bottom' \| 'left' \| 'bottom-start' \| 'top-start' \| 'top-end' \| 'right-start' \| 'right-end' \| 'bottom-end' \| 'left-start' \| 'left-end'` | "'bottom-start'" | Position where the bib should appear relative to the trigger. |
|
|
49
|
+
| `range` | `range` | | `boolean` | false | If set, turns on date range functionality in auro-calendar. |
|
|
50
|
+
| `rangeLabelAfterRange` | `rangeLabelAfterRange` | | `string` | "'after range'" | Label announced for cells after a fully selected range (both<br />`dateFrom` and `dateTo` are set). While a range is still being<br />picked (`dateFrom` set, `dateTo` unset), focused cells past the<br />start use `rangeLabelEndPreview` instead. |
|
|
51
|
+
| `rangeLabelBeforeRange` | `rangeLabelBeforeRange` | | `string` | "'before range'" | Label announced for cells before the range start. |
|
|
52
|
+
| `rangeLabelEnd` | `rangeLabelEnd` | | `string` | "'range end'" | Label announced for the range end date cell. |
|
|
53
|
+
| `rangeLabelEndPreview` | `rangeLabelEndPreview` | | `string` | "'previewing range end'" | Label announced for the focused cell while previewing a range end<br />(dateFrom set, dateTo not yet selected). Tells AT users that<br />pressing Enter would commit this cell as the range end. |
|
|
54
|
+
| `rangeLabelInRange` | `rangeLabelInRange` | | `string` | "'in range'" | Label announced for cells within the selected range. |
|
|
55
|
+
| `rangeLabelStart` | `rangeLabelStart` | | `string` | "'range start'" | Label announced for the range start date cell. |
|
|
56
|
+
| `referenceDates` | `referenceDates` | | `array` | | Dates that the user should have for reference as part of their decision-making when selecting a date.<br />This should be a JSON string array of ISO date strings (`YYYY-MM-DD`). |
|
|
57
|
+
| `required` | `required` | | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
58
|
+
| `setCustomValidity` | `setCustomValidity` | | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
59
|
+
| `setCustomValidityCustomError` | `setCustomValidityCustomError` | | `string` | | Custom help text message to display when validity = `customError`.<br />Also used as the validation message when a blackout date is typed into the input. |
|
|
60
|
+
| `setCustomValidityRangeOverflow` | `setCustomValidityRangeOverflow` | | `string` | | Custom help text message to display when validity = `rangeOverflow`. |
|
|
61
|
+
| `setCustomValidityRangeUnderflow` | `setCustomValidityRangeUnderflow` | | `string` | | Custom help text message to display when validity = `rangeUnderflow`. |
|
|
62
|
+
| `setCustomValidityValueMissing` | `setCustomValidityValueMissing` | | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
63
|
+
| `shape` | | | `string` | "classic" | |
|
|
64
|
+
| `shift` | `shift` | | `boolean` | false | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
65
|
+
| `size` | | | `string` | "lg" | |
|
|
66
|
+
| `stacked` | `stacked` | | `boolean` | false | Set true to make datepicker stacked style. |
|
|
67
|
+
| `validity` | `validity` | | `string` | "undefined" | Specifies the `validityState` this element is in. |
|
|
68
|
+
| `value` | `value` | | `string` | "undefined" | Value selected for the datepicker. |
|
|
69
|
+
| `valueEnd` | `valueEnd` | | `string` | "undefined" | Value selected for the second datepicker when using date range. |
|
|
70
|
+
| `valueEndObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `valueEnd`. Returns `undefined` when `valueEnd` is empty or not a valid date. |
|
|
71
|
+
| `valueObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `value`. Returns `undefined` when `value` is empty or not a valid date. |
|
|
72
|
+
| `values` | | readonly | `string[]` | | A convenience wrapper for `value` and `valueEnd`, uses the new Auro "array value pattern". |
|
|
72
73
|
|
|
73
74
|
## Methods
|
|
74
75
|
|