@aurodesignsystem-dev/auro-formkit 0.0.0-pr1532.1 → 0.0.0-pr1533.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 +118 -50
- package/components/combobox/demo/getting-started.min.js +118 -50
- package/components/combobox/demo/index.min.js +118 -50
- package/components/combobox/dist/auro-combobox.d.ts +10 -0
- package/components/combobox/dist/index.js +118 -50
- package/components/combobox/dist/registered.js +118 -50
- 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 +17 -8
- package/components/datepicker/demo/api.md +1 -1
- package/components/datepicker/demo/customize.min.js +229 -72
- package/components/datepicker/demo/index.min.js +229 -72
- package/components/datepicker/demo/keyboard-behavior.md +3 -3
- package/components/datepicker/demo/voiceover.md +4 -4
- package/components/datepicker/demo/why-datepicker.md +2 -2
- package/components/datepicker/dist/auro-calendar-cell.d.ts +11 -0
- package/components/datepicker/dist/auro-calendar.d.ts +26 -2
- package/components/datepicker/dist/auro-datepicker.d.ts +9 -1
- package/components/datepicker/dist/index.js +229 -72
- package/components/datepicker/dist/registered.js +229 -72
- 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 +408 -172
- package/components/form/demo/getting-started.min.js +408 -172
- package/components/form/demo/index.min.js +408 -172
- package/components/form/demo/registerDemoDeps.min.js +408 -172
- package/components/input/demo/customize.min.js +56 -45
- package/components/input/demo/getting-started.min.js +56 -45
- package/components/input/demo/index.min.js +56 -45
- package/components/input/dist/base-input.d.ts +20 -4
- package/components/input/dist/index.js +56 -45
- package/components/input/dist/registered.js +56 -45
- 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 +4349 -4251
- package/package.json +1 -1
|
@@ -4812,7 +4812,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
4812
4812
|
}
|
|
4813
4813
|
};
|
|
4814
4814
|
|
|
4815
|
-
var formkitVersion$2 = '
|
|
4815
|
+
var formkitVersion$2 = '202607061903';
|
|
4816
4816
|
|
|
4817
4817
|
let AuroElement$2 = class AuroElement extends LitElement {
|
|
4818
4818
|
static get properties() {
|
|
@@ -16820,14 +16820,16 @@ class BaseInput extends AuroElement$1 {
|
|
|
16820
16820
|
this.label = 'Input label is undefined';
|
|
16821
16821
|
this.layout = 'classic';
|
|
16822
16822
|
this.locale = 'en-US';
|
|
16823
|
+
this._format = undefined;
|
|
16824
|
+
|
|
16825
|
+
/** @private */
|
|
16826
|
+
this._userSetFormat = false;
|
|
16823
16827
|
this.max = undefined;
|
|
16824
16828
|
this.maxLength = undefined;
|
|
16825
16829
|
this.min = undefined;
|
|
16826
16830
|
this.minLength = undefined;
|
|
16827
16831
|
this.noValidate = false;
|
|
16828
16832
|
this.onDark = false;
|
|
16829
|
-
// Raw values returned from the input mask before model normalization.
|
|
16830
|
-
this._rawMaskValue = undefined;
|
|
16831
16833
|
this.required = false;
|
|
16832
16834
|
this.setCustomValidityForType = undefined;
|
|
16833
16835
|
// Credit Card is intentionally excluded — its mask manages the cursor
|
|
@@ -16985,7 +16987,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
16985
16987
|
*/
|
|
16986
16988
|
format: {
|
|
16987
16989
|
type: String,
|
|
16988
|
-
reflect: true
|
|
16990
|
+
reflect: true,
|
|
16991
|
+
noAccessor: true
|
|
16989
16992
|
},
|
|
16990
16993
|
|
|
16991
16994
|
/**
|
|
@@ -17323,6 +17326,34 @@ class BaseInput extends AuroElement$1 {
|
|
|
17323
17326
|
return this.max && dateFormatter.isValidDate(this.max) ? dateFormatter.stringToDateInstance(this.max) : undefined;
|
|
17324
17327
|
}
|
|
17325
17328
|
|
|
17329
|
+
get format() {
|
|
17330
|
+
return this._format;
|
|
17331
|
+
}
|
|
17332
|
+
|
|
17333
|
+
/**
|
|
17334
|
+
* Overrides LitElement's generated accessor so we can track whether the
|
|
17335
|
+
* consumer explicitly set `format`. Locale-derived updates use
|
|
17336
|
+
* `_setFormatFromLocale` instead, which skips this flag.
|
|
17337
|
+
*/
|
|
17338
|
+
set format(value) {
|
|
17339
|
+
const oldValue = this._format;
|
|
17340
|
+
this._format = value ? value.toLowerCase() : value;
|
|
17341
|
+
this._userSetFormat = Boolean(value);
|
|
17342
|
+
this.requestUpdate('format', oldValue);
|
|
17343
|
+
}
|
|
17344
|
+
|
|
17345
|
+
/**
|
|
17346
|
+
* Sets format without marking it as user-set. Used by locale auto-derive
|
|
17347
|
+
* so that a subsequent locale change can still update the format.
|
|
17348
|
+
* @private
|
|
17349
|
+
* @param {string} value
|
|
17350
|
+
*/
|
|
17351
|
+
_setFormatFromLocale(value) {
|
|
17352
|
+
const oldValue = this._format;
|
|
17353
|
+
this._format = value ? value.toLowerCase() : value;
|
|
17354
|
+
this.requestUpdate('format', oldValue);
|
|
17355
|
+
}
|
|
17356
|
+
|
|
17326
17357
|
connectedCallback() {
|
|
17327
17358
|
super.connectedCallback();
|
|
17328
17359
|
|
|
@@ -17370,15 +17401,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17370
17401
|
|
|
17371
17402
|
this.inputId = this.id ? `${this.id}-input` : window.crypto.randomUUID();
|
|
17372
17403
|
|
|
17373
|
-
// Normalize the format token to lowercase so case-mixed values supplied
|
|
17374
|
-
// via attribute (e.g. `format="MM/DD/YYYY"`) hit the `dateFormatMap`
|
|
17375
|
-
// lookup inside `setCustomHelpTextMessage`. Without this, an uppercase
|
|
17376
|
-
// format silently misses the map and leaves `setCustomValidityForType`
|
|
17377
|
-
// unset.
|
|
17378
|
-
if (this.format) {
|
|
17379
|
-
this.format = this.format.toLowerCase();
|
|
17380
|
-
}
|
|
17381
|
-
|
|
17382
17404
|
// use validity message override if declared when initializing the component
|
|
17383
17405
|
if (this.hasAttribute('setCustomValidity')) {
|
|
17384
17406
|
this.ValidityMessageOverride = this.setCustomValidity;
|
|
@@ -17485,12 +17507,10 @@ class BaseInput extends AuroElement$1 {
|
|
|
17485
17507
|
updated(changedProperties) {
|
|
17486
17508
|
super.updated(changedProperties);
|
|
17487
17509
|
|
|
17488
|
-
// When locale changes
|
|
17489
|
-
// Only runs if the current format is still the previous locale's default (not user-overridden).
|
|
17510
|
+
// When locale changes, auto-derive format unless the consumer explicitly set one.
|
|
17490
17511
|
if (changedProperties.has('locale') && !changedProperties.has('format') && this.type === 'date') {
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
this.format = getDateFormatFromLocale(this.locale);
|
|
17512
|
+
if (!this._userSetFormat) {
|
|
17513
|
+
this._setFormatFromLocale(getDateFormatFromLocale(this.locale));
|
|
17494
17514
|
}
|
|
17495
17515
|
}
|
|
17496
17516
|
|
|
@@ -17661,9 +17681,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17661
17681
|
this.maskInstance.on('accept', () => {
|
|
17662
17682
|
if (this._configuringMask) return;
|
|
17663
17683
|
this.value = this.util.toModelValue(this.maskInstance.value, this.format);
|
|
17664
|
-
if (this.type === "date") {
|
|
17665
|
-
this._rawMaskValue = this.maskInstance.value;
|
|
17666
|
-
}
|
|
17667
17684
|
});
|
|
17668
17685
|
|
|
17669
17686
|
// Mask fires 'complete' on the restore step below for any value that
|
|
@@ -17671,9 +17688,6 @@ class BaseInput extends AuroElement$1 {
|
|
|
17671
17688
|
this.maskInstance.on('complete', () => {
|
|
17672
17689
|
if (this._configuringMask) return;
|
|
17673
17690
|
this.value = this.util.toModelValue(this.maskInstance.value, this.format);
|
|
17674
|
-
if (this.type === "date") {
|
|
17675
|
-
this._rawMaskValue = this.maskInstance.value;
|
|
17676
|
-
}
|
|
17677
17691
|
});
|
|
17678
17692
|
|
|
17679
17693
|
// Write existingValue through the mask (not the input directly) so
|
|
@@ -17694,14 +17708,17 @@ class BaseInput extends AuroElement$1 {
|
|
|
17694
17708
|
* @returns {void}
|
|
17695
17709
|
*/
|
|
17696
17710
|
notifyValueChanged() {
|
|
17697
|
-
|
|
17698
|
-
|
|
17699
|
-
|
|
17711
|
+
// This echoes Lit's reactive value update (and handleClickClear's
|
|
17712
|
+
// programmatic clear) — it is NOT a fresh user-input event. Mark it
|
|
17713
|
+
// `isProgrammatic` so consumers (e.g. auro-combobox) can distinguish
|
|
17714
|
+
// it from genuine user typing and skip clobbering their own
|
|
17715
|
+
// programmatic state during init-time renders.
|
|
17716
|
+
const inputEvent = new Event('input', {
|
|
17700
17717
|
bubbles: true,
|
|
17701
17718
|
composed: true,
|
|
17702
17719
|
});
|
|
17720
|
+
inputEvent.isProgrammatic = true;
|
|
17703
17721
|
|
|
17704
|
-
// Dispatched event to alert outside shadow DOM context of event firing.
|
|
17705
17722
|
this.dispatchEvent(inputEvent);
|
|
17706
17723
|
}
|
|
17707
17724
|
|
|
@@ -17910,8 +17927,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17910
17927
|
|
|
17911
17928
|
// Set default date format if type=date and no format is defined
|
|
17912
17929
|
if (this.type === "date" && !this.format) {
|
|
17913
|
-
|
|
17914
|
-
this.format = this.util.getDateMaskFromLocale().toLowerCase();
|
|
17930
|
+
this._setFormatFromLocale(this.util.getDateMaskFromLocale().toLowerCase());
|
|
17915
17931
|
this.util.updateFormat(this.format);
|
|
17916
17932
|
}
|
|
17917
17933
|
}
|
|
@@ -17940,7 +17956,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17940
17956
|
const creditCard = this.matchInputValueToCreditCard();
|
|
17941
17957
|
const previousFormat = this.format;
|
|
17942
17958
|
|
|
17943
|
-
this.
|
|
17959
|
+
this._setFormatFromLocale(creditCard.maskFormat);
|
|
17944
17960
|
|
|
17945
17961
|
this.maxLength = creditCard.formatLength;
|
|
17946
17962
|
this.minLength = creditCard.formatMinLength;
|
|
@@ -18414,7 +18430,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
18414
18430
|
}
|
|
18415
18431
|
};
|
|
18416
18432
|
|
|
18417
|
-
var formkitVersion$1 = '
|
|
18433
|
+
var formkitVersion$1 = '202607061903';
|
|
18418
18434
|
|
|
18419
18435
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
18420
18436
|
// See LICENSE in the project root for license information.
|
|
@@ -18700,20 +18716,15 @@ class AuroInput extends BaseInput {
|
|
|
18700
18716
|
* @returns {void}
|
|
18701
18717
|
*/
|
|
18702
18718
|
checkDisplayValueSlotChange() {
|
|
18703
|
-
|
|
18704
|
-
|
|
18705
|
-
//
|
|
18706
|
-
|
|
18707
|
-
|
|
18708
|
-
|
|
18709
|
-
|
|
18710
|
-
let hasContent = false;
|
|
18719
|
+
// flatten:true resolves through auro-combobox's forwarding slot
|
|
18720
|
+
// (<slot name="displayValue" slot="displayValue">) so a clone appended
|
|
18721
|
+
// directly to auro-input's light DOM alongside the forwarder still
|
|
18722
|
+
// counts as content. The prior nodes[0].tagName === 'SLOT' recursion
|
|
18723
|
+
// discarded any siblings past the forwarder.
|
|
18724
|
+
const slot = this.shadowRoot.querySelector('slot[name="displayValue"]');
|
|
18725
|
+
const nodes = slot.assignedNodes({ flatten: true });
|
|
18711
18726
|
|
|
18712
|
-
|
|
18713
|
-
hasContent = true;
|
|
18714
|
-
}
|
|
18715
|
-
|
|
18716
|
-
this.hasDisplayValueContent = hasContent;
|
|
18727
|
+
this.hasDisplayValueContent = nodes.length > 0;
|
|
18717
18728
|
}
|
|
18718
18729
|
|
|
18719
18730
|
firstUpdated() {
|
|
@@ -19540,7 +19551,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
19540
19551
|
}
|
|
19541
19552
|
}
|
|
19542
19553
|
|
|
19543
|
-
var formkitVersion = '
|
|
19554
|
+
var formkitVersion = '202607061903';
|
|
19544
19555
|
|
|
19545
19556
|
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}`;
|
|
19546
19557
|
|
|
@@ -20639,9 +20650,19 @@ class AuroCombobox extends AuroElement {
|
|
|
20639
20650
|
/**
|
|
20640
20651
|
* Processes hidden state of all menu options and determines if there are any available options not hidden.
|
|
20641
20652
|
* @private
|
|
20653
|
+
* @param {object} [options={}] - Optional flag bag.
|
|
20654
|
+
* @param {boolean} [options.preferComboboxValue=false] - When true,
|
|
20655
|
+
* handleMenuOptions matches the selected option against `this.value`
|
|
20656
|
+
* first instead of `this.input.value`. Needed on mount and re-mount
|
|
20657
|
+
* because under `persistInput` the consumer's typedValue prop can drift
|
|
20658
|
+
* from the framework value (Svelte `{#key}` re-mount after a swap, or
|
|
20659
|
+
* SPA preselect after route change) and the old input-first match would
|
|
20660
|
+
* then pick the stale text. Only handleSlotChange passes this; typing
|
|
20661
|
+
* and clearing paths keep the input-first match so user clears aren't
|
|
20662
|
+
* undone.
|
|
20642
20663
|
* @returns {void}
|
|
20643
20664
|
*/
|
|
20644
|
-
handleMenuOptions() {
|
|
20665
|
+
handleMenuOptions({ preferComboboxValue = false } = {}) {
|
|
20645
20666
|
this.generateOptionsArray();
|
|
20646
20667
|
this.availableOptions = [];
|
|
20647
20668
|
// Single source of truth for the menu's filter/highlight token per call.
|
|
@@ -20662,7 +20683,20 @@ class AuroCombobox extends AuroElement {
|
|
|
20662
20683
|
option.setAttribute('aria-posinset', index + 1);
|
|
20663
20684
|
});
|
|
20664
20685
|
|
|
20665
|
-
|
|
20686
|
+
// On mount/re-mount (via handleSlotChange), prefer the framework-set
|
|
20687
|
+
// `this.value` when it matches a menu option. Covers SPA preselect and
|
|
20688
|
+
// consumer swap patterns (e.g. Svelte `{#key}` re-mount) where
|
|
20689
|
+
// `this.value` is authoritative but `this.input.value` may be empty or
|
|
20690
|
+
// carry stale typed text from another field. Event-driven callers do
|
|
20691
|
+
// not pass the flag, otherwise user clears would be undone by
|
|
20692
|
+
// re-syncing to the previous combobox.value.
|
|
20693
|
+
if (preferComboboxValue &&
|
|
20694
|
+
this.value &&
|
|
20695
|
+
this.menu.options?.some((opt) => opt.value === this.value)) {
|
|
20696
|
+
this.setMenuValue(this.value);
|
|
20697
|
+
this.syncValuesAndStates();
|
|
20698
|
+
} else if (this.input.value &&
|
|
20699
|
+
this.menu.options?.some((opt) => opt.value === this.input.value)) {
|
|
20666
20700
|
this.setMenuValue(this.input.value);
|
|
20667
20701
|
this.syncValuesAndStates();
|
|
20668
20702
|
}
|
|
@@ -21099,7 +21133,25 @@ class AuroCombobox extends AuroElement {
|
|
|
21099
21133
|
this.optionActive = evt.detail;
|
|
21100
21134
|
|
|
21101
21135
|
if (this.input) {
|
|
21102
|
-
|
|
21136
|
+
// setActiveDescendant runs after Lit's update finishes because the
|
|
21137
|
+
// template's `.a11yActivedescendant` binding calls setAttribute on
|
|
21138
|
+
// the internal <input> in auro-input.updated(), which clears the
|
|
21139
|
+
// reflected ariaActiveDescendantElement property. Setting the ref
|
|
21140
|
+
// synchronously here would get overwritten by that attribute write.
|
|
21141
|
+
// Awaiting updateComplete lets the attribute write finish first,
|
|
21142
|
+
// then the ref sticks and screen readers can cross the shadow-DOM
|
|
21143
|
+
// boundary to the auro-menuoption in light DOM.
|
|
21144
|
+
//
|
|
21145
|
+
// The equality check covers the async gap: this.optionActive can
|
|
21146
|
+
// change before the callback runs (user arrowed elsewhere, or the
|
|
21147
|
+
// menu closed and cleared it to null), so we bail if the target
|
|
21148
|
+
// no longer matches to avoid reinstating a stale ref.
|
|
21149
|
+
const targetOption = this.optionActive;
|
|
21150
|
+
this.updateComplete.then(() => {
|
|
21151
|
+
if (this.input && this.optionActive === targetOption) {
|
|
21152
|
+
this.input.setActiveDescendant(targetOption);
|
|
21153
|
+
}
|
|
21154
|
+
});
|
|
21103
21155
|
}
|
|
21104
21156
|
|
|
21105
21157
|
// In fullscreen mode the menu sits inside a nested <dialog> shadow root,
|
|
@@ -21236,6 +21288,18 @@ class AuroCombobox extends AuroElement {
|
|
|
21236
21288
|
}
|
|
21237
21289
|
}
|
|
21238
21290
|
|
|
21291
|
+
// SPA preselect guard: on init render, auro-input's notifyValueChanged
|
|
21292
|
+
// echoes an empty value through as an isProgrammatic input event before
|
|
21293
|
+
// the framework-set combobox.value has propagated down to the input.
|
|
21294
|
+
// Without this bail, the `this.value = this.input.value` below clobbers
|
|
21295
|
+
// the framework value with '' and clear() wipes optionSelected. Scoped
|
|
21296
|
+
// to the exact shape of that echo (isProgrammatic + non-empty combobox
|
|
21297
|
+
// value + empty input.value) so it doesn't affect the swap/typed paths
|
|
21298
|
+
// where value/input already track each other through the sync helpers.
|
|
21299
|
+
if (event && event.isProgrammatic && this.value && !this.input.value) {
|
|
21300
|
+
return;
|
|
21301
|
+
}
|
|
21302
|
+
|
|
21239
21303
|
this.value = this.input.value;
|
|
21240
21304
|
|
|
21241
21305
|
// Ignore re-entrant input events caused by programmatic value sets.
|
|
@@ -21668,7 +21732,11 @@ class AuroCombobox extends AuroElement {
|
|
|
21668
21732
|
}
|
|
21669
21733
|
});
|
|
21670
21734
|
|
|
21671
|
-
|
|
21735
|
+
// Slot change (mount/re-mount): pass `preferComboboxValue` so that a
|
|
21736
|
+
// framework-set `this.value` wins over any stale `input.value` when
|
|
21737
|
+
// matching against the newly-available options. Fixes the display
|
|
21738
|
+
// for SPA preselect and Svelte `{#key}` re-mount swap patterns.
|
|
21739
|
+
this.handleMenuOptions({ preferComboboxValue: true });
|
|
21672
21740
|
|
|
21673
21741
|
break;
|
|
21674
21742
|
|
|
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
1117
|
-
var formkitVersion$1 = '
|
|
1117
|
+
var formkitVersion$1 = '202607061903';
|
|
1118
1118
|
|
|
1119
1119
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1120
1120
|
// See LICENSE in the project root for license information.
|
|
@@ -5460,7 +5460,7 @@ class AuroHelpText extends i$2 {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
5462
5462
|
|
|
5463
|
-
var formkitVersion = '
|
|
5463
|
+
var formkitVersion = '202607061903';
|
|
5464
5464
|
|
|
5465
5465
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5466
5466
|
static get properties() {
|
|
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
1117
|
-
var formkitVersion$1 = '
|
|
1117
|
+
var formkitVersion$1 = '202607061903';
|
|
1118
1118
|
|
|
1119
1119
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1120
1120
|
// See LICENSE in the project root for license information.
|
|
@@ -5460,7 +5460,7 @@ class AuroHelpText extends i$2 {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
5462
5462
|
|
|
5463
|
-
var formkitVersion = '
|
|
5463
|
+
var formkitVersion = '202607061903';
|
|
5464
5464
|
|
|
5465
5465
|
let AuroElement$1 = class AuroElement extends i$2 {
|
|
5466
5466
|
static get properties() {
|
|
@@ -1064,7 +1064,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
|
|
1067
|
-
var formkitVersion$1 = '
|
|
1067
|
+
var formkitVersion$1 = '202607061903';
|
|
1068
1068
|
|
|
1069
1069
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1070
1070
|
// See LICENSE in the project root for license information.
|
|
@@ -5392,7 +5392,7 @@ class AuroHelpText extends LitElement {
|
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
5394
|
|
|
5395
|
-
var formkitVersion = '
|
|
5395
|
+
var formkitVersion = '202607061903';
|
|
5396
5396
|
|
|
5397
5397
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5398
5398
|
static get properties() {
|
|
@@ -1064,7 +1064,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1064
1064
|
}
|
|
1065
1065
|
};
|
|
1066
1066
|
|
|
1067
|
-
var formkitVersion$1 = '
|
|
1067
|
+
var formkitVersion$1 = '202607061903';
|
|
1068
1068
|
|
|
1069
1069
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1070
1070
|
// See LICENSE in the project root for license information.
|
|
@@ -5392,7 +5392,7 @@ class AuroHelpText extends LitElement {
|
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
5394
5394
|
|
|
5395
|
-
var formkitVersion = '
|
|
5395
|
+
var formkitVersion = '202607061903';
|
|
5396
5396
|
|
|
5397
5397
|
let AuroElement$1 = class AuroElement extends LitElement {
|
|
5398
5398
|
static get properties() {
|
|
@@ -32,20 +32,20 @@ The calendar uses the WAI-ARIA grid pattern for screen reader navigation:
|
|
|
32
32
|
| Attribute | Applied to | Description |
|
|
33
33
|
|---|---|---|
|
|
34
34
|
| `role="grid"` | Calendar table | Identifies the calendar as a grid. The month heading is rendered as visible text adjacent to the grid but is excluded from the accessibility tree (announcements are handled via the live region described below). |
|
|
35
|
-
| `role="rowgroup"` | Body group | Groups the week rows.
|
|
35
|
+
| `role="rowgroup"` | Body group | Groups the week rows. |
|
|
36
36
|
| `role="row"` | Week row | Groups each week of date cells. |
|
|
37
|
-
| Day-of-week header |
|
|
38
|
-
| `role="gridcell"` | In-range date cell
|
|
39
|
-
|
|
|
37
|
+
| `role="columnheader"` | Day-of-week header | Each weekday cell in the header row exposes the abbreviated day name as visible text and the full localized day name via `aria-label` (e.g. `aria-label="Sunday"`). |
|
|
38
|
+
| `role="gridcell"` | In-range date cell | Each selectable date cell. Includes `aria-selected`, `aria-current="date"` (for today), and an `aria-label` on the host with the full localized date string. |
|
|
39
|
+
| Out-of-range date cell | Cells outside the valid min/max range | The button uses the native `disabled` attribute (spec-compliant way to express "not actionable" on a `<button>`) and is filtered out of keyboard navigation. The host cell drops its `role` and `aria-label` so assistive tech does not browse into it — no `aria-hidden` or `role="presentation"` is applied. |
|
|
40
40
|
| `aria-disabled="true"` | Blackout date cell | Cells matching the `blackout` dates list. Unlike out-of-range cells, blackout cells **remain focusable** via arrow-key navigation so screen reader users can discover them. The cell's label includes ", unavailable" to communicate that the date cannot be selected. |
|
|
41
41
|
| `aria-selected` | Date cell button | `"true"` for the selected date(s), `"false"` for all other in-range cells. |
|
|
42
|
-
| Accessible name | Date cell
|
|
42
|
+
| Accessible name | Date cell host | Provided via `aria-label` on the cell host element (set by `updateHostAria()` on each render), with the button's inner content marked `aria-hidden="true"` so screen readers don't double-announce. Localized label built from `Intl.DateTimeFormat` (weekday, month, day, year), plus any date slot content (e.g. prices), the range position label (e.g., "range start"), and availability status (", unavailable" for blackout dates). |
|
|
43
43
|
|
|
44
44
|
<auro-header level="2" id="focusManagement">Focus Management</auro-header>
|
|
45
45
|
The component uses `delegatesFocus: true` on its shadow root, meaning focus is automatically delegated to the first focusable element inside the component (the date input).
|
|
46
46
|
|
|
47
|
-
<auro-header level="3" id="
|
|
48
|
-
The calendar
|
|
47
|
+
<auro-header level="3" id="activeCellTracking">Active Cell Tracking</auro-header>
|
|
48
|
+
The calendar tracks a single active cell across the rendered month(s). DOM focus stays on the `#calendarGrid` wrapper the entire time — arrow keys never move focus onto individual cell buttons. `setActiveCell()` imperatively marks the chosen cell (adds the `active` property on the cell host and an `.activeCell` class on its button) without a Lit re-render. Screen-reader awareness of the active cell is provided by an `aria-live` region rather than by `aria-activedescendant`, so the reader is never asked to shift its point of regard on every arrow keypress — a debounce coalesces bursts (see [Screen Reader Announcements](#screenReaderAnnouncements)).
|
|
49
49
|
|
|
50
50
|
The active cell receives an `.activeCell` CSS class to display a visible focus ring, since the native `:focus-visible` pseudo-class applies to the grid wrapper (which holds actual DOM focus), not to individual cells.
|
|
51
51
|
|
|
@@ -57,7 +57,7 @@ The initial active cell is determined in priority order:
|
|
|
57
57
|
4. The first past enabled date.
|
|
58
58
|
|
|
59
59
|
<auro-header level="3" id="focusOnOpen">Focus on Open</auro-header>
|
|
60
|
-
When the calendar bib opens, focus moves to the calendar grid wrapper (`#calendarGrid`). The
|
|
60
|
+
When the calendar bib opens, focus moves to the calendar grid wrapper (`#calendarGrid`). The initial active cell is marked via `setActiveCell()`, and the `aria-live` region announces its full localized label so screen readers describe the starting position. This applies to both desktop and fullscreen modes.
|
|
61
61
|
|
|
62
62
|
<auro-header level="2" id="screenReaderAnnouncements">Screen Reader Announcements</auro-header>
|
|
63
63
|
- **Date selection** — When a date is selected, the calendar's live region (`aria-live="assertive"`) announces the formatted date (e.g., "Wednesday, January 15, 2025"). For range datepickers, both the start and end date selections are announced.
|
|
@@ -66,6 +66,15 @@ When the calendar bib opens, focus moves to the calendar grid wrapper (`#calenda
|
|
|
66
66
|
- **Validation errors** — When a validation error occurs, the error message is rendered with `role="alert"` and `aria-live="assertive"`, causing it to be announced immediately without requiring focus.
|
|
67
67
|
- **Help text** — The help text content is associated with the input so that screen readers announce it as part of the element description when focused.
|
|
68
68
|
|
|
69
|
+
<auro-header level="3" id="ariaLiveDeviation">Documented Deviation: `aria-live="assertive"` for Arrow-Key Navigation</auro-header>
|
|
70
|
+
WCAG 2.1 SC 4.1.3 (Status Messages) generally recommends `aria-live="polite"` for non-critical status updates so screen readers don't interrupt the user. The calendar's navigation live region intentionally uses `aria-live="assertive"` instead. This is a knowing deviation, made for the following reasons:
|
|
71
|
+
|
|
72
|
+
- **VoiceOver behavior** — VoiceOver treats `polite` announcements as "wait until idle," and during active arrow-key traversal the screen reader is never idle. Polite announcements are silently dropped, leaving keyboard users with no feedback about which cell is now active. `assertive` is the only reliable way to communicate the newly focused date on macOS/iOS VoiceOver during navigation.
|
|
73
|
+
- **Interruption mitigation** — A 150 ms debounce is applied in [`announceFocusDebounced`](../../src/auro-calendar.js) so only the final cell after a burst of arrow keys is announced. Rapid navigation produces one announcement per pause, not one per keystroke, which minimizes the interruption cost of `assertive`.
|
|
74
|
+
- **Scope** — The same live region is reused for date selection and month-change announcements, all of which are user-initiated and expected. It is never used for background/system-generated updates.
|
|
75
|
+
|
|
76
|
+
Consumers auditing against APG or WCAG 4.1.3 should treat this as an intentional, documented trade-off between spec-preferred politeness and reliable VoiceOver support.
|
|
77
|
+
|
|
69
78
|
<auro-header level="2" id="accessibleLabels">Accessible Labels</auro-header>
|
|
70
79
|
- The `fromLabel` slot content is used as the accessible name for the first date input. It is also forwarded to the dropdown bib as the dialog's accessible name (`aria-labelledby`).
|
|
71
80
|
- When `range` is set, the `toLabel` slot content provides the accessible name for the second date input.
|
|
@@ -11,7 +11,7 @@ The `auro-datepicker` component provides users with a way to select a date or da
|
|
|
11
11
|
|-----------------------------------|-----------------------------------|-----------|--------------------------------------------------|--------------------------------|--------------------------------------------------|
|
|
12
12
|
| `appearance` | `appearance` | | `'default' \| 'inverse'` | "'default'" | Defines whether the component will be on lighter or darker backgrounds. |
|
|
13
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). |
|
|
14
|
+
| `blackoutDates` | `blackoutDates` | | `array` | [] | Array of dates that cannot be selected. Dates should be in ISO format (YYYY-MM-DD).<br /><br />**Immutable update required.** The datepicker treats this array as<br />immutable and memoizes a lookup Set keyed on the array's reference<br />identity — matching Lit's own reactivity semantics for array<br />properties. In-place mutations (`blackoutDates.push(...)`,<br />`blackoutDates[i] = ...`, `blackoutDates.splice(...)`) will not<br />invalidate the cache and the new entries will be silently ignored.<br />To update, reassign the property: `el.blackoutDates = [...el.blackoutDates, '2024-12-25']`. |
|
|
15
15
|
| `blackoutLabel` | `blackoutLabel` | | `string` | "'unavailable'" | Label announced for blackout (disabled but in-range) date cells. |
|
|
16
16
|
| `calendarEndDate` | `calendarEndDate` | | `string` | "undefined" | The last date that may be displayed in the calendar. |
|
|
17
17
|
| `calendarEndDateObject` | | readonly | `Date \| undefined` | | Read-only `Date` object derived from `calendarEndDate`. Returns `undefined` when `calendarEndDate` is empty or not a valid date. |
|