@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.7 → 0.0.0-pr1628.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/accessibility.md +2 -2
- package/components/checkbox/demo/api.md +17 -17
- package/components/checkbox/demo/customize.md +16 -16
- package/components/checkbox/demo/customize.min.js +3 -3
- package/components/checkbox/demo/design.md +24 -24
- package/components/checkbox/demo/getting-started.md +33 -27
- package/components/checkbox/demo/getting-started.min.js +3 -3
- package/components/checkbox/demo/index.md +17 -17
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.md +3 -3
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.md +12 -12
- package/components/combobox/demo/customize.min.js +22 -19
- package/components/combobox/demo/getting-started.min.js +22 -19
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +22 -19
- package/components/combobox/dist/auro-combobox.d.ts +6 -4
- package/components/combobox/dist/index.js +21 -18
- package/components/combobox/dist/registered.js +21 -18
- package/components/counter/demo/accessibility.md +1 -1
- 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 -12
- package/components/counter/demo/getting-started.min.js +12 -12
- package/components/counter/demo/index.min.js +12 -12
- package/components/counter/demo/why-counter.md +3 -3
- package/components/counter/dist/auro-counter-group.d.ts +2 -3
- package/components/counter/dist/index.js +12 -12
- package/components/counter/dist/registered.js +12 -12
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +2 -2
- package/components/datepicker/demo/css-only.md +4 -4
- package/components/datepicker/demo/customize.md +3 -3
- package/components/datepicker/demo/customize.min.js +128 -113
- package/components/datepicker/demo/design.md +2 -2
- package/components/datepicker/demo/getting-started.md +1 -1
- package/components/datepicker/demo/getting-started.min.js +128 -113
- package/components/datepicker/demo/index.md +2 -2
- package/components/datepicker/demo/index.min.js +128 -113
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +3 -3
- package/components/datepicker/demo/why-datepicker.md +3 -3
- package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
- package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
- package/components/datepicker/dist/auro-calendar.d.ts +43 -42
- package/components/datepicker/dist/auro-datepicker.d.ts +9 -7
- package/components/datepicker/dist/index.js +128 -113
- package/components/datepicker/dist/registered.js +128 -113
- package/components/datepicker/dist/utilities.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +9 -4
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +9 -6
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/customize.min.js +8 -7
- package/components/dropdown/demo/getting-started.min.js +13 -12
- package/components/dropdown/demo/index.min.js +8 -7
- package/components/dropdown/demo/voiceover.md +1 -1
- package/components/dropdown/demo/why-dropdown.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +7 -6
- package/components/dropdown/dist/index.js +8 -7
- package/components/dropdown/dist/registered.js +8 -7
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +1 -1
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +185 -168
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +185 -168
- package/components/form/demo/index.min.js +185 -168
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +184 -167
- package/components/form/demo/voiceover.md +2 -2
- package/components/form/dist/auro-form.d.ts +1 -1
- package/components/form/dist/index.js +1 -1
- package/components/form/dist/registered.js +1 -1
- package/components/input/demo/api.md +1 -1
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +4 -4
- package/components/input/demo/customize.min.js +5 -5
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.md +2 -2
- package/components/input/demo/getting-started.min.js +5 -5
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +5 -5
- package/components/input/demo/why-input.md +2 -2
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +3 -3
- package/components/input/dist/index.js +5 -5
- package/components/input/dist/registered.js +5 -5
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +4 -4
- package/components/menu/demo/getting-started.md +2 -2
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/dist/registered.js +1 -1
- package/components/radio/demo/api.md +4 -4
- package/components/radio/demo/customize.md +14 -4
- package/components/radio/demo/customize.min.js +4 -6
- package/components/radio/demo/getting-started.md +2 -2
- package/components/radio/demo/getting-started.min.js +4 -6
- package/components/radio/demo/index.min.js +4 -6
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +3 -5
- package/components/radio/dist/index.js +4 -6
- package/components/radio/dist/registered.js +4 -6
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +11 -10
- package/components/select/demo/getting-started.min.js +11 -10
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +11 -10
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/index.js +10 -9
- package/components/select/dist/registered.js +10 -9
- package/custom-elements.json +88 -84
- package/package.json +1 -1
|
@@ -1166,7 +1166,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
};
|
|
1168
1168
|
|
|
1169
|
-
var formkitVersion$1 = '
|
|
1169
|
+
var formkitVersion$1 = '202611090436';
|
|
1170
1170
|
|
|
1171
1171
|
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
1172
1172
|
// See LICENSE in the project root for license information.
|
|
@@ -5781,7 +5781,7 @@ class AuroHelpText extends i$1 {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
|
|
5784
|
-
var formkitVersion = '
|
|
5784
|
+
var formkitVersion = '202611090436';
|
|
5785
5785
|
|
|
5786
5786
|
/**
|
|
5787
5787
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -6277,6 +6277,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6277
6277
|
/**
|
|
6278
6278
|
* Removes the trigger's border, background, and shadow.
|
|
6279
6279
|
* Applies only when `shape` and `size` are both set.
|
|
6280
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
6280
6281
|
* @category ui
|
|
6281
6282
|
*/
|
|
6282
6283
|
simple: {
|
|
@@ -6569,6 +6570,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6569
6570
|
/**
|
|
6570
6571
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6571
6572
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6573
|
+
* @default 0
|
|
6572
6574
|
* @category a11y
|
|
6573
6575
|
*/
|
|
6574
6576
|
tabIndex: {
|
|
@@ -7260,7 +7262,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7260
7262
|
*
|
|
7261
7263
|
* @private
|
|
7262
7264
|
* @method handleDefaultSlot
|
|
7263
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
7264
7265
|
*/
|
|
7265
7266
|
handleDefaultSlot() {
|
|
7266
7267
|
|
|
@@ -7273,7 +7274,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7273
7274
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
7274
7275
|
* @private
|
|
7275
7276
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
7276
|
-
* @returns {
|
|
7277
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
7277
7278
|
*/
|
|
7278
7279
|
renderBasicHtml(helpTextClasses) {
|
|
7279
7280
|
return u$6`
|
|
@@ -7335,7 +7336,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7335
7336
|
/**
|
|
7336
7337
|
* Renders the classic layout.
|
|
7337
7338
|
* @private
|
|
7338
|
-
* @returns {
|
|
7339
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
7339
7340
|
*/
|
|
7340
7341
|
renderLayoutClassic() {
|
|
7341
7342
|
// TODO: check with Doug why this was never used?
|
|
@@ -7351,7 +7352,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7351
7352
|
/**
|
|
7352
7353
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
7353
7354
|
* @private
|
|
7354
|
-
* @returns {
|
|
7355
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
7355
7356
|
*/
|
|
7356
7357
|
renderLayoutSnowflake() {
|
|
7357
7358
|
const helpTextClasses = {
|
|
@@ -7368,7 +7369,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7368
7369
|
/**
|
|
7369
7370
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
7370
7371
|
* @private
|
|
7371
|
-
* @returns {
|
|
7372
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
7372
7373
|
*/
|
|
7373
7374
|
renderLayoutEmphasized() {
|
|
7374
7375
|
const helpTextClasses = {
|
|
@@ -7386,7 +7387,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7386
7387
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
7387
7388
|
* @private
|
|
7388
7389
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
7389
|
-
* @returns {
|
|
7390
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
7390
7391
|
*/
|
|
7391
7392
|
renderLayout(ForcedLayout) {
|
|
7392
7393
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7771,7 +7772,7 @@ class AuroBibtemplate extends i$1 {
|
|
|
7771
7772
|
}
|
|
7772
7773
|
|
|
7773
7774
|
/**
|
|
7774
|
-
* Called
|
|
7775
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7775
7776
|
* @param {Event} event - The `touchmove` event.
|
|
7776
7777
|
* @returns {void}
|
|
7777
7778
|
*/
|
|
@@ -8725,9 +8726,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8725
8726
|
}
|
|
8726
8727
|
|
|
8727
8728
|
/**
|
|
8728
|
-
*
|
|
8729
|
-
*
|
|
8730
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
8729
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
8730
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
8731
8731
|
*
|
|
8732
8732
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
8733
8733
|
* @private
|
|
@@ -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 = '202611090436';
|
|
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.
|
|
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
|
|
5782
|
-
var formkitVersion = '
|
|
5782
|
+
var formkitVersion = '202611090436';
|
|
5783
5783
|
|
|
5784
5784
|
/**
|
|
5785
5785
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -6275,6 +6275,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6275
6275
|
/**
|
|
6276
6276
|
* Removes the trigger's border, background, and shadow.
|
|
6277
6277
|
* Applies only when `shape` and `size` are both set.
|
|
6278
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
6278
6279
|
* @category ui
|
|
6279
6280
|
*/
|
|
6280
6281
|
simple: {
|
|
@@ -6567,6 +6568,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6567
6568
|
/**
|
|
6568
6569
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6569
6570
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6571
|
+
* @default 0
|
|
6570
6572
|
* @category a11y
|
|
6571
6573
|
*/
|
|
6572
6574
|
tabIndex: {
|
|
@@ -7258,7 +7260,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7258
7260
|
*
|
|
7259
7261
|
* @private
|
|
7260
7262
|
* @method handleDefaultSlot
|
|
7261
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
7262
7263
|
*/
|
|
7263
7264
|
handleDefaultSlot() {
|
|
7264
7265
|
|
|
@@ -7271,7 +7272,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7271
7272
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
7272
7273
|
* @private
|
|
7273
7274
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
7274
|
-
* @returns {
|
|
7275
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
7275
7276
|
*/
|
|
7276
7277
|
renderBasicHtml(helpTextClasses) {
|
|
7277
7278
|
return u$5`
|
|
@@ -7333,7 +7334,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7333
7334
|
/**
|
|
7334
7335
|
* Renders the classic layout.
|
|
7335
7336
|
* @private
|
|
7336
|
-
* @returns {
|
|
7337
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
7337
7338
|
*/
|
|
7338
7339
|
renderLayoutClassic() {
|
|
7339
7340
|
// TODO: check with Doug why this was never used?
|
|
@@ -7349,7 +7350,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7349
7350
|
/**
|
|
7350
7351
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
7351
7352
|
* @private
|
|
7352
|
-
* @returns {
|
|
7353
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
7353
7354
|
*/
|
|
7354
7355
|
renderLayoutSnowflake() {
|
|
7355
7356
|
const helpTextClasses = {
|
|
@@ -7366,7 +7367,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7366
7367
|
/**
|
|
7367
7368
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
7368
7369
|
* @private
|
|
7369
|
-
* @returns {
|
|
7370
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
7370
7371
|
*/
|
|
7371
7372
|
renderLayoutEmphasized() {
|
|
7372
7373
|
const helpTextClasses = {
|
|
@@ -7384,7 +7385,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7384
7385
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
7385
7386
|
* @private
|
|
7386
7387
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
7387
|
-
* @returns {
|
|
7388
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
7388
7389
|
*/
|
|
7389
7390
|
renderLayout(ForcedLayout) {
|
|
7390
7391
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7769,7 +7770,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7769
7770
|
}
|
|
7770
7771
|
|
|
7771
7772
|
/**
|
|
7772
|
-
* Called
|
|
7773
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7773
7774
|
* @param {Event} event - The `touchmove` event.
|
|
7774
7775
|
* @returns {void}
|
|
7775
7776
|
*/
|
|
@@ -8723,9 +8724,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8723
8724
|
}
|
|
8724
8725
|
|
|
8725
8726
|
/**
|
|
8726
|
-
*
|
|
8727
|
-
*
|
|
8728
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
8727
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
8728
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
8729
8729
|
*
|
|
8730
8730
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
8731
8731
|
* @private
|
|
@@ -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 = '202611090436';
|
|
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.
|
|
@@ -5779,7 +5779,7 @@ class AuroHelpText extends i$2 {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
}
|
|
5781
5781
|
|
|
5782
|
-
var formkitVersion = '
|
|
5782
|
+
var formkitVersion = '202611090436';
|
|
5783
5783
|
|
|
5784
5784
|
/**
|
|
5785
5785
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -6275,6 +6275,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6275
6275
|
/**
|
|
6276
6276
|
* Removes the trigger's border, background, and shadow.
|
|
6277
6277
|
* Applies only when `shape` and `size` are both set.
|
|
6278
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
6278
6279
|
* @category ui
|
|
6279
6280
|
*/
|
|
6280
6281
|
simple: {
|
|
@@ -6567,6 +6568,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6567
6568
|
/**
|
|
6568
6569
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6569
6570
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6571
|
+
* @default 0
|
|
6570
6572
|
* @category a11y
|
|
6571
6573
|
*/
|
|
6572
6574
|
tabIndex: {
|
|
@@ -7258,7 +7260,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7258
7260
|
*
|
|
7259
7261
|
* @private
|
|
7260
7262
|
* @method handleDefaultSlot
|
|
7261
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
7262
7263
|
*/
|
|
7263
7264
|
handleDefaultSlot() {
|
|
7264
7265
|
|
|
@@ -7271,7 +7272,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7271
7272
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
7272
7273
|
* @private
|
|
7273
7274
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
7274
|
-
* @returns {
|
|
7275
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
7275
7276
|
*/
|
|
7276
7277
|
renderBasicHtml(helpTextClasses) {
|
|
7277
7278
|
return u$5`
|
|
@@ -7333,7 +7334,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7333
7334
|
/**
|
|
7334
7335
|
* Renders the classic layout.
|
|
7335
7336
|
* @private
|
|
7336
|
-
* @returns {
|
|
7337
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
7337
7338
|
*/
|
|
7338
7339
|
renderLayoutClassic() {
|
|
7339
7340
|
// TODO: check with Doug why this was never used?
|
|
@@ -7349,7 +7350,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7349
7350
|
/**
|
|
7350
7351
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
7351
7352
|
* @private
|
|
7352
|
-
* @returns {
|
|
7353
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
7353
7354
|
*/
|
|
7354
7355
|
renderLayoutSnowflake() {
|
|
7355
7356
|
const helpTextClasses = {
|
|
@@ -7366,7 +7367,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7366
7367
|
/**
|
|
7367
7368
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
7368
7369
|
* @private
|
|
7369
|
-
* @returns {
|
|
7370
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
7370
7371
|
*/
|
|
7371
7372
|
renderLayoutEmphasized() {
|
|
7372
7373
|
const helpTextClasses = {
|
|
@@ -7384,7 +7385,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7384
7385
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
7385
7386
|
* @private
|
|
7386
7387
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
7387
|
-
* @returns {
|
|
7388
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
7388
7389
|
*/
|
|
7389
7390
|
renderLayout(ForcedLayout) {
|
|
7390
7391
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7769,7 +7770,7 @@ class AuroBibtemplate extends i$2 {
|
|
|
7769
7770
|
}
|
|
7770
7771
|
|
|
7771
7772
|
/**
|
|
7772
|
-
* Called
|
|
7773
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7773
7774
|
* @param {Event} event - The `touchmove` event.
|
|
7774
7775
|
* @returns {void}
|
|
7775
7776
|
*/
|
|
@@ -8723,9 +8724,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8723
8724
|
}
|
|
8724
8725
|
|
|
8725
8726
|
/**
|
|
8726
|
-
*
|
|
8727
|
-
*
|
|
8728
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
8727
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
8728
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
8729
8729
|
*
|
|
8730
8730
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
8731
8731
|
* @private
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<p>Native number inputs have limited screen reader support. The browser-rendered increment/decrement buttons are often small, difficult to interact with, and announced inconsistently.</p>
|
|
5
5
|
<p><code>auro-counter</code> provides:</p>
|
|
6
6
|
<ul>
|
|
7
|
-
<li><strong>ARIA spinbutton pattern</strong>: The component uses <code>role="spinbutton"</code> with <code>aria-valuemin</code>, <code>aria-valuemax</code>, <code>aria-valuenow</code>, and <code>aria-valuetext</code
|
|
7
|
+
<li><strong>ARIA spinbutton pattern</strong>: The component uses <code>role="spinbutton"</code> with <code>aria-valuemin</code>, <code>aria-valuemax</code>, <code>aria-valuenow</code>, and <code>aria-valuetext</code>, so screen readers announce its range and current value. It doesn't currently set <code>aria-invalid</code>.</li>
|
|
8
8
|
<li><strong>Labeled controls</strong>: Increment and decrement buttons take their ARIA labels from the <code>ariaLabel.plus</code> and <code>ariaLabel.minus</code> slots.</li>
|
|
9
9
|
<li><strong>Single tab stop</strong>: The Up Arrow and Down Arrow keys change the value, and the increment and decrement buttons stay out of the tab order, so each counter is one tab stop.</li>
|
|
10
10
|
<li><strong>Focus delegation</strong>: <code>delegatesFocus</code> ensures focus reaches the interactive control regardless of where the user clicks.</li>
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<li>An aggregate <code>total</code> computed from all child counters</li>
|
|
26
26
|
<li>Group-level <code>min</code> and <code>max</code> constraints applied across all children</li>
|
|
27
27
|
<li>A <code>value</code> object with named entries, such as <code>{ adults: 2, children: 1 }</code></li>
|
|
28
|
-
<li>Dynamic button disabling: when the group total reaches max
|
|
28
|
+
<li>Dynamic button disabling: when the group total reaches <code>max</code>, all increment buttons disable; when it reaches <code>min</code>, all decrement buttons disable</li>
|
|
29
29
|
<li>Group-level validation that aggregates individual counter errors</li>
|
|
30
30
|
<li>Optional dropdown presentation with <code>isDropdown</code> for compact UI</li>
|
|
31
31
|
</ul>
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
<tr>
|
|
68
68
|
<td>ARIA spinbutton semantics</td>
|
|
69
69
|
<td>No</td>
|
|
70
|
-
<td>
|
|
70
|
+
<td>Yes, except <code>aria-invalid</code></td>
|
|
71
71
|
</tr>
|
|
72
72
|
<tr>
|
|
73
73
|
<td>Auto-disable at min/max</td>
|
|
@@ -297,9 +297,8 @@ export class AuroCounterGroup extends AuroElement {
|
|
|
297
297
|
*/
|
|
298
298
|
private iconTag;
|
|
299
299
|
/**
|
|
300
|
-
*
|
|
301
|
-
*
|
|
302
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
300
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
301
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
303
302
|
*
|
|
304
303
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
305
304
|
* @private
|
|
@@ -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 = '202611090436';
|
|
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.
|
|
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
|
|
|
5711
5711
|
}
|
|
5712
5712
|
}
|
|
5713
5713
|
|
|
5714
|
-
var formkitVersion = '
|
|
5714
|
+
var formkitVersion = '202611090436';
|
|
5715
5715
|
|
|
5716
5716
|
/**
|
|
5717
5717
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -6207,6 +6207,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6207
6207
|
/**
|
|
6208
6208
|
* Removes the trigger's border, background, and shadow.
|
|
6209
6209
|
* Applies only when `shape` and `size` are both set.
|
|
6210
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
6210
6211
|
* @category ui
|
|
6211
6212
|
*/
|
|
6212
6213
|
simple: {
|
|
@@ -6499,6 +6500,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6499
6500
|
/**
|
|
6500
6501
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6501
6502
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6503
|
+
* @default 0
|
|
6502
6504
|
* @category a11y
|
|
6503
6505
|
*/
|
|
6504
6506
|
tabIndex: {
|
|
@@ -7190,7 +7192,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7190
7192
|
*
|
|
7191
7193
|
* @private
|
|
7192
7194
|
* @method handleDefaultSlot
|
|
7193
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
7194
7195
|
*/
|
|
7195
7196
|
handleDefaultSlot() {
|
|
7196
7197
|
|
|
@@ -7203,7 +7204,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7203
7204
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
7204
7205
|
* @private
|
|
7205
7206
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
7206
|
-
* @returns {
|
|
7207
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
7207
7208
|
*/
|
|
7208
7209
|
renderBasicHtml(helpTextClasses) {
|
|
7209
7210
|
return html`
|
|
@@ -7265,7 +7266,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7265
7266
|
/**
|
|
7266
7267
|
* Renders the classic layout.
|
|
7267
7268
|
* @private
|
|
7268
|
-
* @returns {
|
|
7269
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
7269
7270
|
*/
|
|
7270
7271
|
renderLayoutClassic() {
|
|
7271
7272
|
// TODO: check with Doug why this was never used?
|
|
@@ -7281,7 +7282,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7281
7282
|
/**
|
|
7282
7283
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
7283
7284
|
* @private
|
|
7284
|
-
* @returns {
|
|
7285
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
7285
7286
|
*/
|
|
7286
7287
|
renderLayoutSnowflake() {
|
|
7287
7288
|
const helpTextClasses = {
|
|
@@ -7298,7 +7299,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7298
7299
|
/**
|
|
7299
7300
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
7300
7301
|
* @private
|
|
7301
|
-
* @returns {
|
|
7302
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
7302
7303
|
*/
|
|
7303
7304
|
renderLayoutEmphasized() {
|
|
7304
7305
|
const helpTextClasses = {
|
|
@@ -7316,7 +7317,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7316
7317
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
7317
7318
|
* @private
|
|
7318
7319
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
7319
|
-
* @returns {
|
|
7320
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
7320
7321
|
*/
|
|
7321
7322
|
renderLayout(ForcedLayout) {
|
|
7322
7323
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7701,7 +7702,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
7701
7702
|
}
|
|
7702
7703
|
|
|
7703
7704
|
/**
|
|
7704
|
-
* Called
|
|
7705
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7705
7706
|
* @param {Event} event - The `touchmove` event.
|
|
7706
7707
|
* @returns {void}
|
|
7707
7708
|
*/
|
|
@@ -8655,9 +8656,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8655
8656
|
}
|
|
8656
8657
|
|
|
8657
8658
|
/**
|
|
8658
|
-
*
|
|
8659
|
-
*
|
|
8660
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
8659
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
8660
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
8661
8661
|
*
|
|
8662
8662
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
8663
8663
|
* @private
|
|
@@ -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 = '202611090436';
|
|
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.
|
|
@@ -5711,7 +5711,7 @@ class AuroHelpText extends LitElement {
|
|
|
5711
5711
|
}
|
|
5712
5712
|
}
|
|
5713
5713
|
|
|
5714
|
-
var formkitVersion = '
|
|
5714
|
+
var formkitVersion = '202611090436';
|
|
5715
5715
|
|
|
5716
5716
|
/**
|
|
5717
5717
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -6207,6 +6207,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6207
6207
|
/**
|
|
6208
6208
|
* Removes the trigger's border, background, and shadow.
|
|
6209
6209
|
* Applies only when `shape` and `size` are both set.
|
|
6210
|
+
* @relevantWhen shape !== undefined && size !== undefined
|
|
6210
6211
|
* @category ui
|
|
6211
6212
|
*/
|
|
6212
6213
|
simple: {
|
|
@@ -6499,6 +6500,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
6499
6500
|
/**
|
|
6500
6501
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6501
6502
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6503
|
+
* @default 0
|
|
6502
6504
|
* @category a11y
|
|
6503
6505
|
*/
|
|
6504
6506
|
tabIndex: {
|
|
@@ -7190,7 +7192,6 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7190
7192
|
*
|
|
7191
7193
|
* @private
|
|
7192
7194
|
* @method handleDefaultSlot
|
|
7193
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
7194
7195
|
*/
|
|
7195
7196
|
handleDefaultSlot() {
|
|
7196
7197
|
|
|
@@ -7203,7 +7204,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7203
7204
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
7204
7205
|
* @private
|
|
7205
7206
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
7206
|
-
* @returns {
|
|
7207
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
7207
7208
|
*/
|
|
7208
7209
|
renderBasicHtml(helpTextClasses) {
|
|
7209
7210
|
return html`
|
|
@@ -7265,7 +7266,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7265
7266
|
/**
|
|
7266
7267
|
* Renders the classic layout.
|
|
7267
7268
|
* @private
|
|
7268
|
-
* @returns {
|
|
7269
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
7269
7270
|
*/
|
|
7270
7271
|
renderLayoutClassic() {
|
|
7271
7272
|
// TODO: check with Doug why this was never used?
|
|
@@ -7281,7 +7282,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7281
7282
|
/**
|
|
7282
7283
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
7283
7284
|
* @private
|
|
7284
|
-
* @returns {
|
|
7285
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
7285
7286
|
*/
|
|
7286
7287
|
renderLayoutSnowflake() {
|
|
7287
7288
|
const helpTextClasses = {
|
|
@@ -7298,7 +7299,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7298
7299
|
/**
|
|
7299
7300
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
7300
7301
|
* @private
|
|
7301
|
-
* @returns {
|
|
7302
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
7302
7303
|
*/
|
|
7303
7304
|
renderLayoutEmphasized() {
|
|
7304
7305
|
const helpTextClasses = {
|
|
@@ -7316,7 +7317,7 @@ class AuroDropdown extends AuroElement$1 {
|
|
|
7316
7317
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
7317
7318
|
* @private
|
|
7318
7319
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
7319
|
-
* @returns {
|
|
7320
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
7320
7321
|
*/
|
|
7321
7322
|
renderLayout(ForcedLayout) {
|
|
7322
7323
|
const layout = ForcedLayout || this.layout;
|
|
@@ -7701,7 +7702,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
7701
7702
|
}
|
|
7702
7703
|
|
|
7703
7704
|
/**
|
|
7704
|
-
* Called
|
|
7705
|
+
* Called when a `touchmove` event reaches the element. Stops the page behind the bib from scrolling when the touch is on the bibtemplate's own layout, such as its padding, instead of on slotted content.
|
|
7705
7706
|
* @param {Event} event - The `touchmove` event.
|
|
7706
7707
|
* @returns {void}
|
|
7707
7708
|
*/
|
|
@@ -8655,9 +8656,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8655
8656
|
}
|
|
8656
8657
|
|
|
8657
8658
|
/**
|
|
8658
|
-
*
|
|
8659
|
-
*
|
|
8660
|
-
* If the total value is at or below the minimum, the counter's decrement button is disabled; if at or above the maximum, the increment button is disabled.
|
|
8659
|
+
* Turns a counter's minus and plus buttons on or off based on the group's total.
|
|
8660
|
+
* The minus button turns off when the total is at or below `min`; otherwise, the plus button turns off when the total is at or above `max`.
|
|
8661
8661
|
*
|
|
8662
8662
|
* @param {HTMLElement} counter - The counter element to potentially disable.
|
|
8663
8663
|
* @private
|
|
@@ -37,5 +37,5 @@ Use the <code><auro-datepicker></code> element when people need to:
|
|
|
37
37
|
|
|
38
38
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./docs/partials/readmeGettingStarted.md) -->
|
|
39
39
|
<!-- The below content is automatically added from ./docs/partials/readmeGettingStarted.md -->
|
|
40
|
-
For
|
|
40
|
+
For getting started instructions, visit the [`auro-datepicker` getting started page](https://auro.alaskaair.com/components/auro/datepicker/getting-started).
|
|
41
41
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<auro-header level="1" id="overview">Datepicker
|
|
1
|
+
<auro-header level="1" id="overview">Datepicker: Accessibility</auro-header>
|
|
2
2
|
<div class="contentWrapper">
|
|
3
3
|
<div class="mainContent">
|
|
4
4
|
<div class="scrollWrapper">
|
|
@@ -37,7 +37,7 @@ The calendar uses the WAI-ARIA grid pattern for screen reader navigation:
|
|
|
37
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`, 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
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 screen readers don't browse into it. No `aria-hidden` or `role="presentation"` is applied. |
|
|
40
|
-
| `aria-disabled="true"` | Blackout date cell | Cells for the dates in `blackoutDates`. Unlike out-of-range cells, blackout cells **remain
|
|
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). |
|
|
43
43
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<auro-header level="1">CSS only with native date input</auro-header>
|
|
2
2
|
<p>For situations where the <code><auro-datepicker></code> web component can't be used, a native HTML <code><input type="date"></code> element can be styled with the Auro Design System tokens to approximate the visual appearance of <code>auro-datepicker</code>. Unlike <auro-hyperlink href="https://auro.alaskaair.com/components/auro/hyperlink/css-only" target="_blank">auro-hyperlink</auro-hyperlink>, <auro-hyperlink href="https://alaskaairlines.github.io/WebCoreStyleSheets/" target="_blank">Web Core Style Sheets</auro-hyperlink> doesn't provide a prebuilt <code>.datepicker</code> class, so the styling must be authored manually using Auro design tokens.</p>
|
|
3
3
|
<auro-header level="2">Styling a native date input</auro-header>
|
|
4
|
-
<p>
|
|
4
|
+
<p>Reset and restyle the native date input with the Auro design tokens published by <auro-hyperlink href="https://github.com/AlaskaAirlines/AuroDesignTokens" target="_blank">@aurodesignsystem/design-tokens</auro-hyperlink>. The pattern below replicates the size, border, and focus-state colors used by <code>auro-datepicker</code>. Note that the browser-controlled calendar UI rendered by <code><input type="date"></code> can't be styled; only the input chrome (the field itself) responds to CSS.</p>
|
|
5
5
|
<pre><code>/* Color tokens */
|
|
6
6
|
@import "./node_modules/@aurodesignsystem/design-tokens/dist/themes/alaska/CSSCustomProperties--alaska.css";
|
|
7
7
|
/* Size, border-radius, and typography tokens */
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
<auro-header level="3">Date range selection</auro-header>
|
|
59
59
|
<p>HTML has no native concept of a date range picker. Building one from two <code><input type="date"></code> elements requires custom logic for coordinating values, enforcing start-before-end ordering, and providing a unified visual experience. <code>auro-datepicker</code> handles this with a single <code>range</code> attribute, providing two coordinated input fields, visual range highlighting across the calendar grid, customizable ARIA labels for range positions, and automatic value coordination between the start and end dates.</p>
|
|
60
60
|
<auro-header level="3">Blackout dates</auro-header>
|
|
61
|
-
<p>Native date inputs have no mechanism to mark specific dates as unavailable. <code>min</code> and <code>max</code> can restrict to a contiguous range, but they can't express "these specific dates within the range are not selectable." <code>auro-datepicker</code> supports a <code>blackoutDates</code> array of ISO date strings that are visually styled as unavailable, announced to screen readers with a customizable label,
|
|
61
|
+
<p>Native date inputs have no mechanism to mark specific dates as unavailable. <code>min</code> and <code>max</code> can restrict to a contiguous range, but they can't express "these specific dates within the range are not selectable." <code>auro-datepicker</code> supports a <code>blackoutDates</code> array of ISO date strings that are visually styled as unavailable, announced to screen readers with a customizable label, reachable with the arrow keys but not selectable, and validated on typed input to surface a <code>customError</code> validity state.</p>
|
|
62
62
|
<auro-header level="3">Custom validation</auro-header>
|
|
63
|
-
<p>Native date validation is limited to <code>required</code>, <code>min</code>, and <code>max</code>, and error messages are browser-controlled. <code>auro-datepicker</code> integrates with the Auro form validation system, exposing per-constraint setters (<code>setCustomValidityValueMissing</code>, <code>setCustomValidityRangeOverflow</code>, <code>setCustomValidityRangeUnderflow</code>, <code>setCustomValidityCustomError</code>), running validation when focus leaves the datepicker, when the end date of a range changes, and when <code>blackoutDates</code> changes, dispatching <code>auroFormElement-validated</code> events, and
|
|
63
|
+
<p>Native date validation is limited to <code>required</code>, <code>min</code>, and <code>max</code>, and error messages are browser-controlled. <code>auro-datepicker</code> integrates with the Auro form validation system, exposing per-constraint setters (<code>setCustomValidityValueMissing</code>, <code>setCustomValidityRangeOverflow</code>, <code>setCustomValidityRangeUnderflow</code>, <code>setCustomValidityCustomError</code>), running validation when focus leaves the datepicker, when the end date of a range changes, and when <code>blackoutDates</code> changes, dispatching <code>auroFormElement-validated</code> events, and showing the error message below the datepicker in place of the help text.</p>
|
|
64
64
|
<auro-header level="3">Responsive layout</auro-header>
|
|
65
65
|
<p>Native date inputs render a small, browser-controlled popup that can't be styled or repositioned. <code>auro-datepicker</code> adapts to viewport size: on desktop the calendar opens in a dropdown positioned next to the input and always behaves as a modal, keeping focus inside the calendar and making the rest of the page inert; on mobile it opens as a fullscreen dialog via <code>showModal()</code> with a configurable <code>fullscreenBreakpoint</code>; and on desktop range mode it can display two months side-by-side.</p>
|
|
66
66
|
<auro-header level="3">Localization</auro-header>
|
|
@@ -127,7 +127,7 @@
|
|
|
127
127
|
<tr>
|
|
128
128
|
<td>Localization</td>
|
|
129
129
|
<td>Browser locale only</td>
|
|
130
|
-
<td>
|
|
130
|
+
<td>Most labels and names, except the Done button and the word "selected"</td>
|
|
131
131
|
</tr>
|
|
132
132
|
<tr>
|
|
133
133
|
<td>Dark background support</td>
|