@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.12 → 0.0.0-pr1628.14
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/api.md +39 -38
- package/components/combobox/demo/css-only.md +2 -2
- package/components/combobox/demo/customize.md +50 -2
- package/components/combobox/demo/customize.min.js +14 -17
- package/components/combobox/demo/design.md +2 -0
- package/components/combobox/demo/getting-started.md +9 -7
- package/components/combobox/demo/getting-started.min.js +14 -17
- package/components/combobox/demo/index.md +4 -0
- package/components/combobox/demo/index.min.js +14 -17
- package/components/combobox/dist/auro-combobox.d.ts +10 -1
- package/components/combobox/dist/index.js +14 -17
- package/components/combobox/dist/registered.js +14 -17
- package/components/counter/demo/api.md +28 -28
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +12 -11
- package/components/counter/demo/getting-started.md +2 -2
- package/components/counter/demo/getting-started.min.js +12 -11
- package/components/counter/demo/index.min.js +12 -11
- package/components/counter/demo/voiceover.md +2 -2
- package/components/counter/demo/why-counter.md +1 -1
- package/components/counter/dist/auro-counter-group.d.ts +7 -6
- package/components/counter/dist/auro-counter.d.ts +3 -3
- package/components/counter/dist/index.js +12 -11
- package/components/counter/dist/registered.js +12 -11
- package/components/datepicker/demo/accessibility.md +3 -3
- package/components/datepicker/demo/api.md +7 -8
- package/components/datepicker/demo/css-only.md +1 -1
- package/components/datepicker/demo/customize.md +2 -2
- package/components/datepicker/demo/customize.min.js +26 -38
- package/components/datepicker/demo/getting-started.md +6 -3
- package/components/datepicker/demo/getting-started.min.js +26 -38
- package/components/datepicker/demo/index.min.js +26 -38
- package/components/datepicker/demo/voiceover.md +2 -2
- package/components/datepicker/dist/auro-calendar-cell.d.ts +3 -2
- package/components/datepicker/dist/auro-calendar-month.d.ts +2 -1
- package/components/datepicker/dist/auro-calendar.d.ts +8 -7
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -9
- package/components/datepicker/dist/index.js +26 -38
- package/components/datepicker/dist/registered.js +26 -38
- package/components/datepicker/dist/utilities.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +1 -1
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +3 -15
- 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 +60 -86
- package/components/form/demo/getting-started.min.js +60 -86
- package/components/form/demo/index.min.js +60 -86
- package/components/form/demo/registerDemoDeps.min.js +60 -86
- package/components/input/demo/api.md +12 -12
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +4 -4
- package/components/input/demo/customize.min.js +2 -14
- package/components/input/demo/getting-started.min.js +2 -14
- package/components/input/demo/index.min.js +2 -14
- package/components/input/demo/voiceover.md +1 -1
- package/components/input/demo/why-input.md +2 -2
- package/components/input/dist/base-input.d.ts +0 -12
- package/components/input/dist/index.js +2 -14
- package/components/input/dist/registered.js +2 -14
- 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/api.md +46 -46
- package/components/select/demo/customize.md +48 -0
- package/components/select/demo/customize.min.js +4 -4
- package/components/select/demo/design.md +6 -0
- package/components/select/demo/getting-started.min.js +4 -4
- package/components/select/demo/index.md +2 -0
- package/components/select/demo/index.min.js +4 -4
- package/components/select/demo/keyboard-behavior.md +1 -1
- package/components/select/demo/voiceover.md +5 -5
- package/components/select/dist/auro-select.d.ts +2 -2
- package/components/select/dist/index.js +4 -4
- package/components/select/dist/registered.js +4 -4
- package/custom-elements.json +233 -2462
- package/package.json +1 -1
|
@@ -1164,7 +1164,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
|
|
1167
|
-
var formkitVersion$1 = '
|
|
1167
|
+
var formkitVersion$1 = '202611092100';
|
|
1168
1168
|
|
|
1169
1169
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1170
1170
|
// See LICENSE in the project root for license information.
|
|
@@ -1480,7 +1480,7 @@ class AuroCounter extends i$2 {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
/**
|
|
1483
|
-
* Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1483
|
+
* Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.
|
|
1484
1484
|
* @method increment
|
|
1485
1485
|
* @param {number} [value] - The amount to add. Defaults to 1.
|
|
1486
1486
|
* @returns {void}
|
|
@@ -1494,7 +1494,7 @@ class AuroCounter extends i$2 {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
1496
|
/**
|
|
1497
|
-
* Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1497
|
+
* Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.
|
|
1498
1498
|
* @method decrement
|
|
1499
1499
|
* @param {number} [value] - The amount to subtract. Defaults to 1.
|
|
1500
1500
|
* @returns {void}
|
|
@@ -1576,7 +1576,7 @@ class AuroCounter extends i$2 {
|
|
|
1576
1576
|
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Checks the counter's value against `min`, `max`, and the `error` attribute, and updates `validity`.
|
|
1579
|
-
* @param {boolean} [force=false] - If true,
|
|
1579
|
+
* @param {boolean} [force=false] - If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.
|
|
1580
1580
|
*/
|
|
1581
1581
|
validate(force = false) {
|
|
1582
1582
|
this.validation.validate(this, force);
|
|
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
|
|
5782
|
-
var formkitVersion = '
|
|
5782
|
+
var formkitVersion = '202611092100';
|
|
5783
5783
|
|
|
5784
5784
|
/**
|
|
5785
5785
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -8559,7 +8559,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8559
8559
|
},
|
|
8560
8560
|
|
|
8561
8561
|
/**
|
|
8562
|
-
* Sets the shape of the dropdown.
|
|
8562
|
+
* Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.
|
|
8563
8563
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
8564
8564
|
* @relevantWhen isDropdown
|
|
8565
8565
|
* @category ui
|
|
@@ -8572,7 +8572,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8572
8572
|
},
|
|
8573
8573
|
|
|
8574
8574
|
/**
|
|
8575
|
-
* Sets the
|
|
8575
|
+
* Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.
|
|
8576
8576
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
8577
8577
|
* @relevantWhen isDropdown
|
|
8578
8578
|
* @category ui
|
|
@@ -8742,9 +8742,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8742
8742
|
}
|
|
8743
8743
|
|
|
8744
8744
|
/**
|
|
8745
|
-
*
|
|
8746
|
-
*
|
|
8747
|
-
*
|
|
8745
|
+
* Sets up every `auro-counter` and `[auro-counter]` element in the group.
|
|
8746
|
+
* For each counter, this method copies the group's `appearance` and `onDark` values,
|
|
8747
|
+
* calls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.
|
|
8748
|
+
* It then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.
|
|
8748
8749
|
* @private
|
|
8749
8750
|
*/
|
|
8750
8751
|
configureCounters() {
|
|
@@ -8928,7 +8929,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8928
8929
|
* Called when the `bib.fullscreen.headline` or `bib.fullscreen.footer` slot changes.
|
|
8929
8930
|
* Moves the slotted content into the bib template's header or footer.
|
|
8930
8931
|
* @private
|
|
8931
|
-
* @param {Event} event - `slotchange` event.
|
|
8932
|
+
* @param {Event} event - The `slotchange` event.
|
|
8932
8933
|
* @returns {void}
|
|
8933
8934
|
*/
|
|
8934
8935
|
handleSlotChange(event) {
|
|
@@ -1164,7 +1164,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$2 {
|
|
|
1164
1164
|
}
|
|
1165
1165
|
};
|
|
1166
1166
|
|
|
1167
|
-
var formkitVersion$1 = '
|
|
1167
|
+
var formkitVersion$1 = '202611092100';
|
|
1168
1168
|
|
|
1169
1169
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1170
1170
|
// See LICENSE in the project root for license information.
|
|
@@ -1480,7 +1480,7 @@ class AuroCounter extends i$2 {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
|
|
1482
1482
|
/**
|
|
1483
|
-
* Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1483
|
+
* Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.
|
|
1484
1484
|
* @method increment
|
|
1485
1485
|
* @param {number} [value] - The amount to add. Defaults to 1.
|
|
1486
1486
|
* @returns {void}
|
|
@@ -1494,7 +1494,7 @@ class AuroCounter extends i$2 {
|
|
|
1494
1494
|
}
|
|
1495
1495
|
|
|
1496
1496
|
/**
|
|
1497
|
-
* Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1497
|
+
* Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.
|
|
1498
1498
|
* @method decrement
|
|
1499
1499
|
* @param {number} [value] - The amount to subtract. Defaults to 1.
|
|
1500
1500
|
* @returns {void}
|
|
@@ -1576,7 +1576,7 @@ class AuroCounter extends i$2 {
|
|
|
1576
1576
|
|
|
1577
1577
|
/**
|
|
1578
1578
|
* Checks the counter's value against `min`, `max`, and the `error` attribute, and updates `validity`.
|
|
1579
|
-
* @param {boolean} [force=false] - If true,
|
|
1579
|
+
* @param {boolean} [force=false] - If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.
|
|
1580
1580
|
*/
|
|
1581
1581
|
validate(force = false) {
|
|
1582
1582
|
this.validation.validate(this, force);
|
|
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
|
|
5782
|
-
var formkitVersion = '
|
|
5782
|
+
var formkitVersion = '202611092100';
|
|
5783
5783
|
|
|
5784
5784
|
/**
|
|
5785
5785
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -8559,7 +8559,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8559
8559
|
},
|
|
8560
8560
|
|
|
8561
8561
|
/**
|
|
8562
|
-
* Sets the shape of the dropdown.
|
|
8562
|
+
* Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.
|
|
8563
8563
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
8564
8564
|
* @relevantWhen isDropdown
|
|
8565
8565
|
* @category ui
|
|
@@ -8572,7 +8572,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8572
8572
|
},
|
|
8573
8573
|
|
|
8574
8574
|
/**
|
|
8575
|
-
* Sets the
|
|
8575
|
+
* Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.
|
|
8576
8576
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
8577
8577
|
* @relevantWhen isDropdown
|
|
8578
8578
|
* @category ui
|
|
@@ -8742,9 +8742,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8742
8742
|
}
|
|
8743
8743
|
|
|
8744
8744
|
/**
|
|
8745
|
-
*
|
|
8746
|
-
*
|
|
8747
|
-
*
|
|
8745
|
+
* Sets up every `auro-counter` and `[auro-counter]` element in the group.
|
|
8746
|
+
* For each counter, this method copies the group's `appearance` and `onDark` values,
|
|
8747
|
+
* calls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.
|
|
8748
|
+
* It then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.
|
|
8748
8749
|
* @private
|
|
8749
8750
|
*/
|
|
8750
8751
|
configureCounters() {
|
|
@@ -8928,7 +8929,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8928
8929
|
* Called when the `bib.fullscreen.headline` or `bib.fullscreen.footer` slot changes.
|
|
8929
8930
|
* Moves the slotted content into the bib template's header or footer.
|
|
8930
8931
|
* @private
|
|
8931
|
-
* @param {Event} event - `slotchange` event.
|
|
8932
|
+
* @param {Event} event - The `slotchange` event.
|
|
8932
8933
|
* @returns {void}
|
|
8933
8934
|
*/
|
|
8934
8935
|
handleSlotChange(event) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<auro-header level="3" id="voiceOverFocusAnnouncement">Focus</auro-header>
|
|
5
5
|
<p>When focus moves to a counter's spinbutton, VoiceOver announces:</p>
|
|
6
6
|
<ol>
|
|
7
|
-
<li><strong>Label:</strong> The counter label
|
|
7
|
+
<li><strong>Label:</strong> The counter's label from the default slot, plus any text in the <code>description</code> slot</li>
|
|
8
8
|
<li><strong>Role:</strong> <em>"incrementable"</em> or <em>"stepper"</em> (spinbutton)</li>
|
|
9
9
|
<li><strong>Current value:</strong> The current numeric value</li>
|
|
10
10
|
<li><strong>Range:</strong> <em>"from [min] to [max]"</em>, using <code>min</code> and <code>max</code> or their defaults of 0 and 9</li>
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
<ol>
|
|
62
62
|
<li><strong>Focus trigger:</strong> Announces the label and current summary value</li>
|
|
63
63
|
<li><strong>Open | Expand:</strong> Opens a fullscreen modal dialog; focus moves to the close button</li>
|
|
64
|
-
<li><strong>Navigate counters:</strong> Swipe or Tab through
|
|
64
|
+
<li><strong>Navigate counters:</strong> Swipe through each counter's controls, or Tab through the counters</li>
|
|
65
65
|
<li><strong>Close:</strong> Activate the close button or use the scrub gesture (two-finger zigzag) to dismiss</li>
|
|
66
66
|
</ol>
|
|
67
67
|
<auro-header level="2" id="voiceOverStates">Impact of state</auro-header>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
<p>Native number inputs render browser-specific controls that can't be styled consistently.</p>
|
|
50
50
|
<p><code>auro-counter</code> is built with the Auro Design System:</p>
|
|
51
51
|
<ul>
|
|
52
|
-
<li>Consistent visual language with
|
|
52
|
+
<li>Consistent visual language with minus and plus buttons</li>
|
|
53
53
|
<li>Light and dark theme support (<code>appearance</code>)</li>
|
|
54
54
|
<li>CSS <code>::part()</code> selectors (<code>counterControl</code>, <code>controlPlus</code>, <code>controlMinus</code>, <code>helpText</code>)</li>
|
|
55
55
|
<li>Design token integration for sizing and spacing</li>
|
|
@@ -99,7 +99,7 @@ export class AuroCounterGroup extends AuroElement {
|
|
|
99
99
|
*/
|
|
100
100
|
layout: "classic" | "snowflake";
|
|
101
101
|
/**
|
|
102
|
-
* Sets the shape of the dropdown.
|
|
102
|
+
* Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.
|
|
103
103
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
104
104
|
* @relevantWhen isDropdown
|
|
105
105
|
* @category ui
|
|
@@ -107,7 +107,7 @@ export class AuroCounterGroup extends AuroElement {
|
|
|
107
107
|
*/
|
|
108
108
|
shape: "box" | "classic" | "pill" | "pill-left" | "pill-right" | "rounded" | "snowflake";
|
|
109
109
|
/**
|
|
110
|
-
* Sets the
|
|
110
|
+
* Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.
|
|
111
111
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
112
112
|
* @relevantWhen isDropdown
|
|
113
113
|
* @category ui
|
|
@@ -305,9 +305,10 @@ export class AuroCounterGroup extends AuroElement {
|
|
|
305
305
|
*/
|
|
306
306
|
private manageDisabled;
|
|
307
307
|
/**
|
|
308
|
-
*
|
|
309
|
-
*
|
|
310
|
-
*
|
|
308
|
+
* Sets up every `auro-counter` and `[auro-counter]` element in the group.
|
|
309
|
+
* For each counter, this method copies the group's `appearance` and `onDark` values,
|
|
310
|
+
* calls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.
|
|
311
|
+
* It then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.
|
|
311
312
|
* @private
|
|
312
313
|
*/
|
|
313
314
|
private configureCounters;
|
|
@@ -361,7 +362,7 @@ export class AuroCounterGroup extends AuroElement {
|
|
|
361
362
|
* Called when the `bib.fullscreen.headline` or `bib.fullscreen.footer` slot changes.
|
|
362
363
|
* Moves the slotted content into the bib template's header or footer.
|
|
363
364
|
* @private
|
|
364
|
-
* @param {Event} event - `slotchange` event.
|
|
365
|
+
* @param {Event} event - The `slotchange` event.
|
|
365
366
|
* @returns {void}
|
|
366
367
|
*/
|
|
367
368
|
private handleSlotChange;
|
|
@@ -106,14 +106,14 @@ export class AuroCounter extends LitElement {
|
|
|
106
106
|
private runtimeUtils;
|
|
107
107
|
_value: number | undefined;
|
|
108
108
|
/**
|
|
109
|
-
* Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
109
|
+
* Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.
|
|
110
110
|
* @method increment
|
|
111
111
|
* @param {number} [value] - The amount to add. Defaults to 1.
|
|
112
112
|
* @returns {void}
|
|
113
113
|
*/
|
|
114
114
|
increment(value?: number): void;
|
|
115
115
|
/**
|
|
116
|
-
* Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
116
|
+
* Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.
|
|
117
117
|
* @method decrement
|
|
118
118
|
* @param {number} [value] - The amount to subtract. Defaults to 1.
|
|
119
119
|
* @returns {void}
|
|
@@ -156,7 +156,7 @@ export class AuroCounter extends LitElement {
|
|
|
156
156
|
private isIncrementDisabled;
|
|
157
157
|
/**
|
|
158
158
|
* Checks the counter's value against `min`, `max`, and the `error` attribute, and updates `validity`.
|
|
159
|
-
* @param {boolean} [force=false] - If true,
|
|
159
|
+
* @param {boolean} [force=false] - If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.
|
|
160
160
|
*/
|
|
161
161
|
validate(force?: boolean): void;
|
|
162
162
|
/**
|
|
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
1117
|
-
var formkitVersion$1 = '
|
|
1117
|
+
var formkitVersion$1 = '202611092100';
|
|
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.
|
|
@@ -1430,7 +1430,7 @@ class AuroCounter extends LitElement {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
1433
|
-
* Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1433
|
+
* Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.
|
|
1434
1434
|
* @method increment
|
|
1435
1435
|
* @param {number} [value] - The amount to add. Defaults to 1.
|
|
1436
1436
|
* @returns {void}
|
|
@@ -1444,7 +1444,7 @@ class AuroCounter extends LitElement {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
/**
|
|
1447
|
-
* Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1447
|
+
* Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.
|
|
1448
1448
|
* @method decrement
|
|
1449
1449
|
* @param {number} [value] - The amount to subtract. Defaults to 1.
|
|
1450
1450
|
* @returns {void}
|
|
@@ -1526,7 +1526,7 @@ class AuroCounter extends LitElement {
|
|
|
1526
1526
|
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Checks the counter's value against `min`, `max`, and the `error` attribute, and updates `validity`.
|
|
1529
|
-
* @param {boolean} [force=false] - If true,
|
|
1529
|
+
* @param {boolean} [force=false] - If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.
|
|
1530
1530
|
*/
|
|
1531
1531
|
validate(force = false) {
|
|
1532
1532
|
this.validation.validate(this, force);
|
|
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
|
|
|
5711
5711
|
}
|
|
5712
5712
|
}
|
|
5713
5713
|
|
|
5714
|
-
var formkitVersion = '
|
|
5714
|
+
var formkitVersion = '202611092100';
|
|
5715
5715
|
|
|
5716
5716
|
/**
|
|
5717
5717
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -8491,7 +8491,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8491
8491
|
},
|
|
8492
8492
|
|
|
8493
8493
|
/**
|
|
8494
|
-
* Sets the shape of the dropdown.
|
|
8494
|
+
* Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.
|
|
8495
8495
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
8496
8496
|
* @relevantWhen isDropdown
|
|
8497
8497
|
* @category ui
|
|
@@ -8504,7 +8504,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8504
8504
|
},
|
|
8505
8505
|
|
|
8506
8506
|
/**
|
|
8507
|
-
* Sets the
|
|
8507
|
+
* Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.
|
|
8508
8508
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
8509
8509
|
* @relevantWhen isDropdown
|
|
8510
8510
|
* @category ui
|
|
@@ -8674,9 +8674,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
|
|
8676
8676
|
/**
|
|
8677
|
-
*
|
|
8678
|
-
*
|
|
8679
|
-
*
|
|
8677
|
+
* Sets up every `auro-counter` and `[auro-counter]` element in the group.
|
|
8678
|
+
* For each counter, this method copies the group's `appearance` and `onDark` values,
|
|
8679
|
+
* calls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.
|
|
8680
|
+
* It then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.
|
|
8680
8681
|
* @private
|
|
8681
8682
|
*/
|
|
8682
8683
|
configureCounters() {
|
|
@@ -8860,7 +8861,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8860
8861
|
* Called when the `bib.fullscreen.headline` or `bib.fullscreen.footer` slot changes.
|
|
8861
8862
|
* Moves the slotted content into the bib template's header or footer.
|
|
8862
8863
|
* @private
|
|
8863
|
-
* @param {Event} event - `slotchange` event.
|
|
8864
|
+
* @param {Event} event - The `slotchange` event.
|
|
8864
8865
|
* @returns {void}
|
|
8865
8866
|
*/
|
|
8866
8867
|
handleSlotChange(event) {
|
|
@@ -1114,7 +1114,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
1114
1114
|
}
|
|
1115
1115
|
};
|
|
1116
1116
|
|
|
1117
|
-
var formkitVersion$1 = '
|
|
1117
|
+
var formkitVersion$1 = '202611092100';
|
|
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.
|
|
@@ -1430,7 +1430,7 @@ class AuroCounter extends LitElement {
|
|
|
1430
1430
|
}
|
|
1431
1431
|
|
|
1432
1432
|
/**
|
|
1433
|
-
* Increases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1433
|
+
* Increases the value by 1, or by the given amount. Does nothing while the plus button is off: when the counter is disabled, its value is at or above `max`, or its group's total has reached the group's `max`. It doesn't cap a larger step at `max`.
|
|
1434
1434
|
* @method increment
|
|
1435
1435
|
* @param {number} [value] - The amount to add. Defaults to 1.
|
|
1436
1436
|
* @returns {void}
|
|
@@ -1444,7 +1444,7 @@ class AuroCounter extends LitElement {
|
|
|
1444
1444
|
}
|
|
1445
1445
|
|
|
1446
1446
|
/**
|
|
1447
|
-
* Decreases the value by 1, or by the given amount. Does nothing when the counter is disabled
|
|
1447
|
+
* Decreases the value by 1, or by the given amount. Does nothing while the minus button is off: when the counter is disabled, its value is at or below `min`, or its group's total is at or below the group's `min`. It doesn't stop a larger step at `min`.
|
|
1448
1448
|
* @method decrement
|
|
1449
1449
|
* @param {number} [value] - The amount to subtract. Defaults to 1.
|
|
1450
1450
|
* @returns {void}
|
|
@@ -1526,7 +1526,7 @@ class AuroCounter extends LitElement {
|
|
|
1526
1526
|
|
|
1527
1527
|
/**
|
|
1528
1528
|
* Checks the counter's value against `min`, `max`, and the `error` attribute, and updates `validity`.
|
|
1529
|
-
* @param {boolean} [force=false] - If true,
|
|
1529
|
+
* @param {boolean} [force=false] - If true, checks `min` and `max` even while the counter has focus. If false, skips those checks while the counter has focus.
|
|
1530
1530
|
*/
|
|
1531
1531
|
validate(force = false) {
|
|
1532
1532
|
this.validation.validate(this, force);
|
|
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
|
|
|
5711
5711
|
}
|
|
5712
5712
|
}
|
|
5713
5713
|
|
|
5714
|
-
var formkitVersion = '
|
|
5714
|
+
var formkitVersion = '202611092100';
|
|
5715
5715
|
|
|
5716
5716
|
/**
|
|
5717
5717
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -8491,7 +8491,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8491
8491
|
},
|
|
8492
8492
|
|
|
8493
8493
|
/**
|
|
8494
|
-
* Sets the shape of the dropdown.
|
|
8494
|
+
* Sets the shape of the dropdown's trigger. Use `classic` with the `classic` layout and `snowflake` with the `snowflake` layout; when not set, it matches the layout. Applies only when `isDropdown` is set.
|
|
8495
8495
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
8496
8496
|
* @relevantWhen isDropdown
|
|
8497
8497
|
* @category ui
|
|
@@ -8504,7 +8504,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8504
8504
|
},
|
|
8505
8505
|
|
|
8506
8506
|
/**
|
|
8507
|
-
* Sets the
|
|
8507
|
+
* Sets the height of the dropdown's trigger, from `xs`, the shortest, to `xl`, the tallest. The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them. Applies only when `isDropdown` is set.
|
|
8508
8508
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
8509
8509
|
* @relevantWhen isDropdown
|
|
8510
8510
|
* @category ui
|
|
@@ -8674,9 +8674,10 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8674
8674
|
}
|
|
8675
8675
|
|
|
8676
8676
|
/**
|
|
8677
|
-
*
|
|
8678
|
-
*
|
|
8679
|
-
*
|
|
8677
|
+
* Sets up every `auro-counter` and `[auro-counter]` element in the group.
|
|
8678
|
+
* For each counter, this method copies the group's `appearance` and `onDark` values,
|
|
8679
|
+
* calls `updateValue()` on `input`, and calls `updateValidity()` on `auroFormElement-validated`.
|
|
8680
|
+
* It then calls `updateValue()` and `updateValidity()` once to sync the group's total and validity.
|
|
8680
8681
|
* @private
|
|
8681
8682
|
*/
|
|
8682
8683
|
configureCounters() {
|
|
@@ -8860,7 +8861,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8860
8861
|
* Called when the `bib.fullscreen.headline` or `bib.fullscreen.footer` slot changes.
|
|
8861
8862
|
* Moves the slotted content into the bib template's header or footer.
|
|
8862
8863
|
* @private
|
|
8863
|
-
* @param {Event} event - `slotchange` event.
|
|
8864
|
+
* @param {Event} event - The `slotchange` event.
|
|
8864
8865
|
* @returns {void}
|
|
8865
8866
|
*/
|
|
8866
8867
|
handleSlotChange(event) {
|
|
@@ -34,9 +34,9 @@ The calendar uses the WAI-ARIA grid pattern for screen reader navigation:
|
|
|
34
34
|
| `role="grid"` | Calendar table | Identifies each month's days as a grid. The month heading above the grid is visible text that screen readers can reach, but it isn't linked to the grid as its name. The live region described below announces month changes. |
|
|
35
35
|
| `role="rowgroup"` | Body group | Groups the week rows. |
|
|
36
36
|
| `role="row"` | Week row | Groups each week of date cells. |
|
|
37
|
-
| `role="columnheader"` | Day-of-week header | Each weekday cell in the header row
|
|
37
|
+
| `role="columnheader"` | Day-of-week header | Each weekday cell in the header row shows the narrow day name, such as "S" in `en-US`, and gives screen readers the full localized day name with `aria-label`, for example `aria-label="Sunday"`. |
|
|
38
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
|
|
39
|
+
| Out-of-range date cell | Cells outside the `minDate` to `maxDate` 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 screen readers don't browse into it. No `aria-hidden` or `role="presentation"` is applied. |
|
|
40
40
|
| `aria-disabled="true"` | Blackout date cell | Cells for the dates in `blackoutDates`. Unlike out-of-range cells, blackout cells **remain reachable** with the arrow keys, so screen reader users can discover them. The cell's label adds the `blackoutLabel` text, ", unavailable" by default, to say the date can't be selected. |
|
|
41
41
|
| `aria-selected` | Date cell host | `"true"` for the selected date(s), `"false"` for all other in-range cells. |
|
|
42
42
|
| Accessible name | Date cell host | Provided via `aria-label` on the cell host element, kept in sync as the date and selection change, 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, such as a price, any popover slot content, the range position label, such as "range start", and availability status (", unavailable" for blackout dates). |
|
|
@@ -73,7 +73,7 @@ WCAG 2.1 SC 4.1.3 (Status Messages) generally recommends `aria-live="polite"` fo
|
|
|
73
73
|
- **Interruption mitigation**: The calendar waits 150 ms after the last arrow key before it announces, so screen readers hear only the final cell after a burst of arrow keys. Rapid navigation produces one announcement per pause, not one per keystroke, which minimizes the interruption cost of `assertive`.
|
|
74
74
|
- **Scope**: The same live region is reused for date selection and month-change announcements, all of which are user-initiated and expected. It's never used for background/system-generated updates.
|
|
75
75
|
|
|
76
|
-
|
|
76
|
+
If you audit against APG or WCAG 4.1.3, treat this as an intentional, documented trade-off between spec-preferred politeness and reliable VoiceOver support.
|
|
77
77
|
|
|
78
78
|
<auro-header level="2" id="accessibleLabels">Accessible labels</auro-header>
|
|
79
79
|
- The `fromLabel` slot content is used as the accessible name for the first date input. It's also forwarded to the dropdown bib as the dialog's accessible name (`aria-labelledby`).
|
|
@@ -63,12 +63,12 @@ A date field that lets people type a date or choose it from a calendar, includin
|
|
|
63
63
|
| minDateObject | | readonly | Date \| undefined | | behavior | | Gets `minDate` as a `Date` object, or `undefined` when `minDate` is empty or isn't a valid date. |
|
|
64
64
|
| noValidate | novalidate | | boolean | `false` | behavior | | Turns off the automatic validation that runs when focus leaves the datepicker. Changing the end date of a range or `blackoutDates` still validates it. |
|
|
65
65
|
| range | range | | boolean | `false` | behavior | | Lets people choose a start date and an end date. Adds a second input for the end date, and on larger screens the calendar shows two months side by side. |
|
|
66
|
-
| required | required | | boolean | `false` | behavior |
|
|
67
|
-
| setCustomValidity | setcustomvalidity | | string | | behavior |
|
|
68
|
-
| setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior |
|
|
69
|
-
| setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior |
|
|
70
|
-
| setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior |
|
|
71
|
-
| setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior |
|
|
66
|
+
| required | required | | boolean | `false` | behavior | | Makes a date required. When it's empty, validation fails with `valueMissing`, and in a range, both dates are required. When not set, each input's label shows "(optional)". |
|
|
67
|
+
| setCustomValidity | setcustomvalidity | | string | | behavior | | Sets one error message for every kind of validation error except a blackout date, in place of the built-in messages and the other `setCustomValidity` messages. For a blackout date, use `setCustomValidityCustomError`. |
|
|
68
|
+
| setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior | | Sets the error message shown when `validity` is `customError`, in place of the `error` text. It also replaces the "Selected date is unavailable" message shown when someone types a blackout date. |
|
|
69
|
+
| setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior | | Sets the error message shown when the date is later than `maxDate` (`rangeOverflow`). |
|
|
70
|
+
| setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior | | Sets the error message shown when the date is earlier than `minDate` (`rangeUnderflow`). |
|
|
71
|
+
| setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior | | Sets the error message shown when `required` is set and no date is chosen (`valueMissing`). |
|
|
72
72
|
| validity | validity | | string | `undefined` | behavior | | Reports the datepicker's current validation state, such as `valid`, `valueMissing`, `rangeOverflow`, or `customError`. The datepicker sets it when it validates, so read it instead of setting it. |
|
|
73
73
|
| value | value | | string | `undefined` | behavior | | Sets the chosen date, or the start date of a range, as an ISO date string such as `2025-04-21`. |
|
|
74
74
|
| valueEnd | valueend | | string | `undefined` | behavior | `range` | Sets the end date of a range, as an ISO date string such as `2025-04-28`. When it's earlier than `value`, the datepicker clears it. |
|
|
@@ -91,12 +91,11 @@ A date field that lets people type a date or choose it from a calendar, includin
|
|
|
91
91
|
|
|
92
92
|
| Name | Parameters | Return | Description |
|
|
93
93
|
| --------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
94
|
-
| clear | None | void | Clears the chosen dates
|
|
94
|
+
| clear | None | void | Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date. |
|
|
95
95
|
| focus | `focusInput` (String) - The input to focus. Use `endDate` for the end date input of a range, or leave it out for the start date input. | void | Moves keyboard focus to the start date input, or to the end date input of a range. |
|
|
96
96
|
| hideBib | None | void | Closes the calendar if it's open. |
|
|
97
97
|
| register | `name` (string) - The tag name to register the element under. | | Registers the element with the browser under a tag name. |
|
|
98
98
|
| reset | None | void | Clears the chosen dates and the validation state. |
|
|
99
|
-
| resetInputs | None | | Clears the chosen dates. Unlike `reset()`, the datepicker still counts as used, so the next validation can report a missing date. |
|
|
100
99
|
| resetLayoutClasses | None | void | Sets the `layout-*` class on the `.wrapper` element to match the current `layout`, such as `layout-classic`. Does nothing when `layout` isn't set or there's no `.wrapper` element. |
|
|
101
100
|
| resetShapeClasses | None | void | Sets the `shape-*` class on the `.wrapper` element to match the current `shape` and `size`, such as `shape-rounded-lg`, or to `shape-none` when either isn't set. Does nothing when there's no `.wrapper` element. |
|
|
102
101
|
| showBib | None | void | Opens the calendar if it's closed. |
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
height: var(--ds-size-600, 3rem);
|
|
14
14
|
padding: 0 var(--ds-size-200, 1rem);
|
|
15
15
|
border: 1px solid var(--ds-basic-color-border-bold, #585e67);
|
|
16
|
-
border-radius: var(--ds-border-radius,
|
|
16
|
+
border-radius: var(--ds-border-radius, 0.375rem);
|
|
17
17
|
background-color: var(--ds-basic-color-surface-default, #ffffff);
|
|
18
18
|
color: var(--ds-basic-color-texticon-default, #2a2a2a);
|
|
19
19
|
font-family: var(--ds-font-family-default, sans-serif);
|
|
@@ -892,7 +892,7 @@
|
|
|
892
892
|
<!-- The below content is automatically added from ./../apiExamples/validity.html -->
|
|
893
893
|
<auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
894
894
|
<span slot="ariaLabel.bib.close">Close calendar</span>
|
|
895
|
-
<span slot="bib.fullscreen.headline">
|
|
895
|
+
<span slot="bib.fullscreen.headline">Custom validation example</span>
|
|
896
896
|
<span slot="fromLabel">Choose a date</span>
|
|
897
897
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
898
898
|
</auro-datepicker>
|
|
@@ -905,7 +905,7 @@
|
|
|
905
905
|
|
|
906
906
|
<pre class="language-html"><code class="language-html"><auro-datepicker required setCustomValidityValueMissing="Please select a departure date.">
|
|
907
907
|
<span slot="ariaLabel.bib.close">Close calendar</span>
|
|
908
|
-
<span slot="bib.fullscreen.headline">
|
|
908
|
+
<span slot="bib.fullscreen.headline">Custom validation example</span>
|
|
909
909
|
<span slot="fromLabel">Choose a date</span>
|
|
910
910
|
<span slot="bib.fullscreen.fromLabel">Choose a date</span>
|
|
911
911
|
</auro-datepicker></code></pre>
|