@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.0 → 0.0.0-pr1628.10
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/accessibility.md +1 -1
- package/components/combobox/demo/api.md +3 -3
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.md +13 -12
- package/components/combobox/demo/customize.min.js +79 -59
- package/components/combobox/demo/getting-started.md +4 -4
- package/components/combobox/demo/getting-started.min.js +79 -59
- package/components/combobox/demo/index.md +2 -2
- package/components/combobox/demo/index.min.js +79 -59
- package/components/combobox/demo/voiceover.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +35 -31
- package/components/combobox/dist/index.js +68 -49
- package/components/combobox/dist/registered.js +68 -49
- package/components/counter/demo/accessibility.md +1 -1
- package/components/counter/demo/api.md +18 -18
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.md +2 -2
- package/components/counter/demo/customize.min.js +28 -28
- package/components/counter/demo/design.md +1 -1
- package/components/counter/demo/getting-started.md +29 -2
- package/components/counter/demo/getting-started.min.js +28 -28
- package/components/counter/demo/index.min.js +28 -28
- package/components/counter/demo/why-counter.md +3 -3
- package/components/counter/dist/auro-counter-group.d.ts +13 -14
- package/components/counter/dist/auro-counter.d.ts +1 -1
- package/components/counter/dist/index.js +28 -28
- package/components/counter/dist/registered.js +28 -28
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +5 -5
- package/components/datepicker/demo/api.md +3 -3
- package/components/datepicker/demo/css-only.md +4 -4
- package/components/datepicker/demo/customize.md +12 -12
- package/components/datepicker/demo/customize.min.js +186 -132
- package/components/datepicker/demo/design.md +11 -11
- package/components/datepicker/demo/getting-started.md +4 -4
- package/components/datepicker/demo/getting-started.min.js +186 -132
- package/components/datepicker/demo/index.md +5 -5
- package/components/datepicker/demo/index.min.js +186 -132
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +4 -4
- 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 +44 -43
- package/components/datepicker/dist/auro-datepicker.d.ts +12 -10
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -0
- package/components/datepicker/dist/index.js +186 -132
- package/components/datepicker/dist/registered.js +186 -132
- package/components/datepicker/dist/utilities.d.ts +4 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +12 -4
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +12 -6
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker-calendar.d.ts +4 -4
- package/components/datepicker/dist/vendor/wc-range-datepicker/range-datepicker.d.ts +7 -7
- package/components/dropdown/demo/api.md +7 -7
- package/components/dropdown/demo/css-only.md +2 -2
- package/components/dropdown/demo/customize.md +1 -1
- package/components/dropdown/demo/customize.min.js +10 -9
- package/components/dropdown/demo/design.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +31 -16
- package/components/dropdown/demo/index.min.js +10 -9
- 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 +9 -8
- package/components/dropdown/dist/index.js +10 -9
- package/components/dropdown/dist/registered.js +10 -9
- package/components/form/README.md +1 -1
- package/components/form/demo/api.md +7 -7
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.md +2 -0
- package/components/form/demo/customize.min.js +345 -257
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +345 -257
- package/components/form/demo/index.md +2 -2
- package/components/form/demo/index.min.js +345 -257
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +343 -255
- package/components/form/demo/voiceover.md +3 -3
- package/components/form/demo/why-form.md +1 -1
- package/components/form/dist/auro-form.d.ts +2 -2
- package/components/form/dist/index.js +2 -2
- package/components/form/dist/registered.js +2 -2
- package/components/input/demo/api.md +58 -58
- package/components/input/demo/css-only.md +4 -4
- package/components/input/demo/customize.md +11 -11
- package/components/input/demo/customize.min.js +21 -7
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.md +5 -5
- package/components/input/demo/getting-started.min.js +21 -7
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +21 -7
- package/components/input/demo/why-input.md +3 -3
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +6 -5
- package/components/input/dist/index.js +21 -7
- package/components/input/dist/registered.js +21 -7
- package/components/input/dist/utilities.d.ts +11 -0
- package/components/menu/demo/accessibility.md +1 -1
- package/components/menu/demo/api.md +1 -1
- package/components/menu/demo/css-only.md +4 -4
- package/components/menu/demo/customize.md +1 -1
- package/components/menu/demo/design.md +1 -1
- package/components/menu/demo/getting-started.md +3 -3
- package/components/menu/demo/index.min.js +11 -10
- package/components/menu/demo/keyboard-behavior.md +1 -1
- package/components/menu/demo/voiceover.md +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/menu/dist/auro-menu.d.ts +10 -9
- package/components/menu/dist/auro-menuoption.d.ts +1 -1
- package/components/menu/dist/index.js +11 -10
- package/components/menu/dist/registered.js +11 -10
- package/components/radio/demo/accessibility.md +1 -1
- package/components/radio/demo/api.md +10 -10
- package/components/radio/demo/customize.md +15 -5
- package/components/radio/demo/customize.min.js +10 -12
- package/components/radio/demo/design.md +1 -1
- package/components/radio/demo/getting-started.md +6 -6
- package/components/radio/demo/getting-started.min.js +10 -12
- package/components/radio/demo/index.md +1 -1
- package/components/radio/demo/index.min.js +10 -12
- package/components/radio/demo/keyboard-behavior.md +1 -1
- package/components/radio/demo/voiceover.md +1 -1
- package/components/radio/demo/why-radio.md +1 -1
- package/components/radio/dist/auro-radio-group.d.ts +6 -8
- package/components/radio/dist/auro-radio.d.ts +3 -3
- package/components/radio/dist/index.js +10 -12
- package/components/radio/dist/registered.js +10 -12
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.md +1 -1
- package/components/select/demo/customize.min.js +27 -24
- package/components/select/demo/getting-started.min.js +27 -24
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +27 -24
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/auro-select.d.ts +4 -3
- package/components/select/dist/index.js +16 -14
- package/components/select/dist/registered.js +16 -14
- package/custom-elements.json +159 -143
- package/package.json +1 -1
|
@@ -5232,7 +5232,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
5232
5232
|
}
|
|
5233
5233
|
};
|
|
5234
5234
|
|
|
5235
|
-
var formkitVersion$2 = '
|
|
5235
|
+
var formkitVersion$2 = '202611091558';
|
|
5236
5236
|
|
|
5237
5237
|
/**
|
|
5238
5238
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -5398,8 +5398,8 @@ let AuroElement$2 = class AuroElement extends LitElement {
|
|
|
5398
5398
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
5399
5399
|
* @csspart size - A hidden sizing element whose `width`, `height`, `max-width`, and `max-height` are copied to the bib. Applies only when `matchWidth` is set.
|
|
5400
5400
|
* @csspart helpText - The help text container. Not currently rendered, so styles set on it have no effect; style the content in the `helpText` slot instead.
|
|
5401
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
5402
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
5401
|
+
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space. A click currently fires it twice: first with `event.detail.expanded`, then again without a detail, bubbling. With `disableEventShow` set, only the second one fires, and Enter and Space don't fire it.
|
|
5402
|
+
* @event auroDropdown-toggled - Notifies that the bib opened or closed, with `event.detail.expanded` set to true when it opened. When it closed, `event.detail.eventType` says why, such as `click`, `keydown`, or `focusloss`.
|
|
5403
5403
|
* @event auroDropdown-idAdded - Notifies that the dropdown has an ID you can use to reference its bib, such as in `aria-controls`. The detail's `id` is the dropdown's own `id`, generated when not set, and the bib's ID is that value followed by `-floater-bib`.
|
|
5404
5404
|
*/
|
|
5405
5405
|
class AuroDropdown extends AuroElement$2 {
|
|
@@ -5728,6 +5728,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
5728
5728
|
/**
|
|
5729
5729
|
* Removes the trigger's border, background, and shadow.
|
|
5730
5730
|
* Applies only when `shape` and `size` are both set.
|
|
5731
|
+
* @relevantWhen shape !== undefined
|
|
5731
5732
|
* @category ui
|
|
5732
5733
|
*/
|
|
5733
5734
|
simple: {
|
|
@@ -6020,6 +6021,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6020
6021
|
/**
|
|
6021
6022
|
* Sets the trigger's position in the keyboard tab order (the trigger's `tabindex`).
|
|
6022
6023
|
* Applies only when the `trigger` slot content isn't focusable.
|
|
6024
|
+
* @default 0
|
|
6023
6025
|
* @category a11y
|
|
6024
6026
|
*/
|
|
6025
6027
|
tabIndex: {
|
|
@@ -6711,7 +6713,6 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6711
6713
|
*
|
|
6712
6714
|
* @private
|
|
6713
6715
|
* @method handleDefaultSlot
|
|
6714
|
-
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
6715
6716
|
*/
|
|
6716
6717
|
handleDefaultSlot() {
|
|
6717
6718
|
|
|
@@ -6724,7 +6725,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6724
6725
|
* Renders the markup that every layout shares: the trigger, the help text, and the bib.
|
|
6725
6726
|
* @private
|
|
6726
6727
|
* @param {Object} helpTextClasses - The classes to apply to the help text container.
|
|
6727
|
-
* @returns {
|
|
6728
|
+
* @returns {import('lit').TemplateResult} The template for the shared markup.
|
|
6728
6729
|
*/
|
|
6729
6730
|
renderBasicHtml(helpTextClasses) {
|
|
6730
6731
|
return html`
|
|
@@ -6786,7 +6787,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6786
6787
|
/**
|
|
6787
6788
|
* Renders the classic layout.
|
|
6788
6789
|
* @private
|
|
6789
|
-
* @returns {
|
|
6790
|
+
* @returns {import('lit').TemplateResult} The template for the classic layout.
|
|
6790
6791
|
*/
|
|
6791
6792
|
renderLayoutClassic() {
|
|
6792
6793
|
// TODO: check with Doug why this was never used?
|
|
@@ -6802,7 +6803,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6802
6803
|
/**
|
|
6803
6804
|
* Renders the snowflake layout, which indents the help text on both sides.
|
|
6804
6805
|
* @private
|
|
6805
|
-
* @returns {
|
|
6806
|
+
* @returns {import('lit').TemplateResult} The template for the snowflake layout.
|
|
6806
6807
|
*/
|
|
6807
6808
|
renderLayoutSnowflake() {
|
|
6808
6809
|
const helpTextClasses = {
|
|
@@ -6819,7 +6820,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6819
6820
|
/**
|
|
6820
6821
|
* Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
|
|
6821
6822
|
* @private
|
|
6822
|
-
* @returns {
|
|
6823
|
+
* @returns {import('lit').TemplateResult} The template for the emphasized layout.
|
|
6823
6824
|
*/
|
|
6824
6825
|
renderLayoutEmphasized() {
|
|
6825
6826
|
const helpTextClasses = {
|
|
@@ -6837,7 +6838,7 @@ class AuroDropdown extends AuroElement$2 {
|
|
|
6837
6838
|
* Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
|
|
6838
6839
|
* @private
|
|
6839
6840
|
* @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
|
|
6840
|
-
* @returns {
|
|
6841
|
+
* @returns {import('lit').TemplateResult} The template for the layout.
|
|
6841
6842
|
*/
|
|
6842
6843
|
renderLayout(ForcedLayout) {
|
|
6843
6844
|
const layout = ForcedLayout || this.layout;
|
|
@@ -16986,6 +16987,9 @@ function cleanEscapedString(input) {
|
|
|
16986
16987
|
return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, "'");
|
|
16987
16988
|
}
|
|
16988
16989
|
|
|
16990
|
+
/**
|
|
16991
|
+
* Helpers that set up input masks and convert between the text shown in the field, `Date` objects, and ISO date strings (`YYYY-MM-DD`), for one locale and date format.
|
|
16992
|
+
*/
|
|
16989
16993
|
class AuroInputUtilities {
|
|
16990
16994
|
|
|
16991
16995
|
/**
|
|
@@ -17005,7 +17009,17 @@ class AuroInputUtilities {
|
|
|
17005
17009
|
} else {
|
|
17006
17010
|
this.locale = 'en-US';
|
|
17007
17011
|
}
|
|
17012
|
+
|
|
17013
|
+
/**
|
|
17014
|
+
* Sets the date format to use instead of the locale's format, such as `mm/dd/yyyy`. `updateFormat()` also sets it.
|
|
17015
|
+
* @type {string|undefined}
|
|
17016
|
+
*/
|
|
17008
17017
|
this.overrideFormat = config.format;
|
|
17018
|
+
|
|
17019
|
+
/**
|
|
17020
|
+
* The `Intl.DateTimeFormat` date formatter for the helpers' locale. The helpers don't currently use it.
|
|
17021
|
+
* @type {Intl.DateTimeFormat}
|
|
17022
|
+
*/
|
|
17009
17023
|
this.formatter = new Intl.DateTimeFormat(this.locale);
|
|
17010
17024
|
|
|
17011
17025
|
// Bindings - many of these are passed into IMask callbacks,
|
|
@@ -17436,7 +17450,7 @@ class BaseInput extends AuroElement$1 {
|
|
|
17436
17450
|
// The initial-load focus theft was caused by the static `autofocus`
|
|
17437
17451
|
// attribute on the bib input (now conditional), not by delegatesFocus.
|
|
17438
17452
|
/**
|
|
17439
|
-
*
|
|
17453
|
+
* Gets the options Lit uses to create the shadow root.
|
|
17440
17454
|
* @internal
|
|
17441
17455
|
*/
|
|
17442
17456
|
static get shadowRootOptions() {
|
|
@@ -17596,8 +17610,9 @@ class BaseInput extends AuroElement$1 {
|
|
|
17596
17610
|
},
|
|
17597
17611
|
|
|
17598
17612
|
/**
|
|
17599
|
-
* Sets the shape of the field's border.
|
|
17600
|
-
* and `pill
|
|
17613
|
+
* Sets the shape of the field's border. `classic` and `rounded` have slightly rounded corners, `box` has square corners,
|
|
17614
|
+
* and `pill` has fully rounded ends, or only the left or right end for `pill-left` and `pill-right`.
|
|
17615
|
+
* The emphasized layouts support `pill`, `pill-left`, and `pill-right`, and the snowflake layout uses `snowflake`.
|
|
17601
17616
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
17602
17617
|
* @default 'classic'
|
|
17603
17618
|
* @category ui
|
|
@@ -17609,8 +17624,8 @@ class BaseInput extends AuroElement$1 {
|
|
|
17609
17624
|
},
|
|
17610
17625
|
|
|
17611
17626
|
/**
|
|
17612
|
-
* Sets the field's
|
|
17613
|
-
* emphasized layouts support only `xl`.
|
|
17627
|
+
* Sets the field's height. The `classic` and `snowflake` shapes are the same height at every size,
|
|
17628
|
+
* and the emphasized layouts support only `xl`.
|
|
17614
17629
|
* @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
|
|
17615
17630
|
* @default 'lg'
|
|
17616
17631
|
* @category ui
|
|
@@ -19406,7 +19421,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
19406
19421
|
}
|
|
19407
19422
|
};
|
|
19408
19423
|
|
|
19409
|
-
var formkitVersion$1 = '
|
|
19424
|
+
var formkitVersion$1 = '202611091558';
|
|
19410
19425
|
|
|
19411
19426
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
19412
19427
|
// See LICENSE in the project root for license information.
|
|
@@ -19865,7 +19880,7 @@ class AuroInput extends BaseInput {
|
|
|
19865
19880
|
|
|
19866
19881
|
/**
|
|
19867
19882
|
* Gets the `pattern` for the inner `<input>` element. For credit card numbers,
|
|
19868
|
-
* builds a length check from `minLength` and `maxLength` instead.
|
|
19883
|
+
* builds a length check from `minLength` and `maxLength` instead, unless `noValidate` is set.
|
|
19869
19884
|
* @private
|
|
19870
19885
|
* @returns {string}
|
|
19871
19886
|
*/
|
|
@@ -20596,7 +20611,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
20596
20611
|
}
|
|
20597
20612
|
|
|
20598
20613
|
/**
|
|
20599
|
-
* Called
|
|
20614
|
+
* 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.
|
|
20600
20615
|
* @param {Event} event - The `touchmove` event.
|
|
20601
20616
|
* @returns {void}
|
|
20602
20617
|
*/
|
|
@@ -20692,7 +20707,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
20692
20707
|
}
|
|
20693
20708
|
}
|
|
20694
20709
|
|
|
20695
|
-
var formkitVersion = '
|
|
20710
|
+
var formkitVersion = '202611091558';
|
|
20696
20711
|
|
|
20697
20712
|
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}`;
|
|
20698
20713
|
|
|
@@ -21161,7 +21176,7 @@ function getOptionLabel(option) {
|
|
|
21161
21176
|
*
|
|
21162
21177
|
* @slot - The `<auro-menu>` that holds the options. {@requiredWhen always} {@category ui}
|
|
21163
21178
|
* @slot {HTMLSlotElement} optionalLabel - Text shown after the label when `required` isn't set, such as a translated "(optional)". Defaults to "(optional)". {@relevantWhen !required} {@category ui}
|
|
21164
|
-
* @slot ariaLabel.input.clear - Text screen readers announce for the clear button, such as "Clear destination". The combobox has no default text, so without it the clear button has no accessible name. In the fullscreen bib, the clear button currently uses "Clear Input" instead. {@category a11y}
|
|
21179
|
+
* @slot ariaLabel.input.clear - Text screen readers announce for the clear button, such as "Clear destination". The combobox has no default text, so without it the clear button has no accessible name. In the fullscreen bib, the clear button currently uses "Clear Input" instead. {@requiredWhen always} {@category a11y}
|
|
21165
21180
|
* @slot ariaLabel.bib.close - Text screen readers announce for the close button in the fullscreen bib, such as "Close destination list". Defaults to "Close". {@requiredWhen always} {@category a11y}
|
|
21166
21181
|
* @slot bib.fullscreen.headline - Headline shown above the options in the fullscreen bib, such as "Choose a destination". {@requiredWhen always} {@category ui}
|
|
21167
21182
|
* @slot label - Label that names the combobox. Screen readers announce it as the name of the input and of the fullscreen dialog. {@requiredWhen always} {@category ui}
|
|
@@ -21264,9 +21279,9 @@ class AuroCombobox extends AuroElement {
|
|
|
21264
21279
|
}
|
|
21265
21280
|
|
|
21266
21281
|
/**
|
|
21267
|
-
* Wraps setTimeout and records the timer
|
|
21268
|
-
* can cancel any outstanding callbacks. The
|
|
21269
|
-
* once the callback fires so the set doesn't
|
|
21282
|
+
* Wraps `setTimeout` and records the timer ID so `disconnectedCallback`
|
|
21283
|
+
* can cancel any outstanding callbacks. The ID is removed from the set
|
|
21284
|
+
* once the callback fires, so the set doesn't keep growing.
|
|
21270
21285
|
* @param {Function} fn - The callback to run.
|
|
21271
21286
|
* @param {number} ms - The delay in milliseconds.
|
|
21272
21287
|
* @returns {number} The timer id.
|
|
@@ -21324,7 +21339,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21324
21339
|
},
|
|
21325
21340
|
|
|
21326
21341
|
/**
|
|
21327
|
-
*
|
|
21342
|
+
* Holds the options shown in the menu: every option that isn't hidden,
|
|
21328
21343
|
* such as by filtering on the typed text, plus `persistent` options.
|
|
21329
21344
|
* @private
|
|
21330
21345
|
* @type {HTMLElement[]}
|
|
@@ -21381,7 +21396,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21381
21396
|
},
|
|
21382
21397
|
|
|
21383
21398
|
/**
|
|
21384
|
-
* ID
|
|
21399
|
+
* Holds the dropdown's ID, which the trigger input uses for `aria-controls`.
|
|
21385
21400
|
* @private
|
|
21386
21401
|
*/
|
|
21387
21402
|
dropdownId: {
|
|
@@ -21391,7 +21406,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21391
21406
|
},
|
|
21392
21407
|
|
|
21393
21408
|
/**
|
|
21394
|
-
*
|
|
21409
|
+
* Records whether the bib is open.
|
|
21395
21410
|
* @private
|
|
21396
21411
|
*/
|
|
21397
21412
|
dropdownOpen: {
|
|
@@ -21443,7 +21458,8 @@ class AuroCombobox extends AuroElement {
|
|
|
21443
21458
|
},
|
|
21444
21459
|
|
|
21445
21460
|
/**
|
|
21446
|
-
* Sets the overall style of the combobox.
|
|
21461
|
+
* Sets the overall style of the combobox. Use `emphasized` for a large, prominent combobox on light backgrounds,
|
|
21462
|
+
* and `snowflake` only on dark backgrounds with `appearance="inverse"`. The `emphasized` layout also shows larger menu options.
|
|
21447
21463
|
* @type {'classic' | 'emphasized' | 'snowflake'}
|
|
21448
21464
|
* @default 'classic'
|
|
21449
21465
|
* @category ui
|
|
@@ -21455,8 +21471,9 @@ class AuroCombobox extends AuroElement {
|
|
|
21455
21471
|
},
|
|
21456
21472
|
|
|
21457
21473
|
/**
|
|
21458
|
-
* Sets the shape of the trigger.
|
|
21459
|
-
*
|
|
21474
|
+
* Sets the shape of the trigger. Use `classic` with the `classic` layout, `pill`, `pill-left`, or `pill-right` with the
|
|
21475
|
+
* `emphasized` layout, and `snowflake` with the `snowflake` layout. In the `snowflake` layout, the menu options use the
|
|
21476
|
+
* same shape unless the `<auro-menu>` sets its own `shape`.
|
|
21460
21477
|
* @type {'box' | 'classic' | 'pill' | 'pill-left' | 'pill-right' | 'rounded' | 'snowflake'}
|
|
21461
21478
|
* @default 'classic'
|
|
21462
21479
|
* @category ui
|
|
@@ -21740,7 +21757,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21740
21757
|
},
|
|
21741
21758
|
|
|
21742
21759
|
/**
|
|
21743
|
-
*
|
|
21760
|
+
* Holds the active (highlighted) option.
|
|
21744
21761
|
* @private
|
|
21745
21762
|
* @type {HTMLElement}
|
|
21746
21763
|
*/
|
|
@@ -21917,7 +21934,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21917
21934
|
}
|
|
21918
21935
|
|
|
21919
21936
|
/**
|
|
21920
|
-
*
|
|
21937
|
+
* Sets the menu's `matchWord` to the input text, then updates the input text and `displayValue` content from the selected option's label, or from `value` when no option is selected.
|
|
21921
21938
|
* @private
|
|
21922
21939
|
* @returns {void}
|
|
21923
21940
|
*/
|
|
@@ -21997,7 +22014,7 @@ class AuroCombobox extends AuroElement {
|
|
|
21997
22014
|
}
|
|
21998
22015
|
|
|
21999
22016
|
/**
|
|
22000
|
-
* Writes nextValue to the trigger input and the bib input when their current
|
|
22017
|
+
* Writes `nextValue` to the trigger input and the bib input when their current
|
|
22001
22018
|
* value differs, then re-asserts imask after Lit's update flushes.
|
|
22002
22019
|
* @param {string} nextValue - The value to write to both inputs.
|
|
22003
22020
|
* @returns {Promise<void>} The promise that resolves after both inputs flush and imask
|
|
@@ -22050,10 +22067,10 @@ class AuroCombobox extends AuroElement {
|
|
|
22050
22067
|
* @param {boolean} [options.preferComboboxValue=false] - If true,
|
|
22051
22068
|
* matches the selected option against `this.value` first. If false,
|
|
22052
22069
|
* matches against `this.input.value` first. Matching `this.value` first is needed on mount and re-mount
|
|
22053
|
-
* because under `persistInput` the consumer's typedValue prop can drift
|
|
22070
|
+
* because under `persistInput` the consumer's `typedValue` prop can drift
|
|
22054
22071
|
* from the framework value (Svelte `{#key}` re-mount after a swap, or
|
|
22055
22072
|
* SPA preselect after route change) and the old input-first match would
|
|
22056
|
-
* then pick the stale text. Only handleSlotChange passes this; typing
|
|
22073
|
+
* then pick the stale text. Only `handleSlotChange` passes this; typing
|
|
22057
22074
|
* and clearing paths keep the input-first match so user clears aren't
|
|
22058
22075
|
* undone.
|
|
22059
22076
|
* @returns {void}
|
|
@@ -22659,20 +22676,20 @@ class AuroCombobox extends AuroElement {
|
|
|
22659
22676
|
|
|
22660
22677
|
/**
|
|
22661
22678
|
* Flags genuine clear-button activations on an auro-input so the SPA-preselect
|
|
22662
|
-
* guard in handleInputValueChange doesn't swallow them.
|
|
22679
|
+
* guard in `handleInputValueChange` doesn't swallow them.
|
|
22663
22680
|
*
|
|
22664
|
-
* The auro-input clear button fires an `isProgrammatic` input event (
|
|
22665
|
-
* notifyValueChanged) that
|
|
22666
|
-
*
|
|
22667
|
-
*
|
|
22668
|
-
*
|
|
22681
|
+
* The auro-input clear button fires an `isProgrammatic` input event (through
|
|
22682
|
+
* `notifyValueChanged`) that has the same shape as the SPA-preselect echo
|
|
22683
|
+
* that guard bails on (`isProgrammatic`, a set value, and an empty input).
|
|
22684
|
+
* Without this one-shot flag, clicking clear would leave `value` and
|
|
22685
|
+
* `optionSelected` stale (AB#1634257).
|
|
22669
22686
|
*
|
|
22670
|
-
* Delegated on the shadow root so it works
|
|
22671
|
-
*
|
|
22672
|
-
*
|
|
22673
|
-
* the
|
|
22674
|
-
* (handleClickClear) fires its synchronous input event,
|
|
22675
|
-
* handleInputValueChange reads the flag.
|
|
22687
|
+
* Delegated on the shadow root so it works whenever `.clearBtn` renders
|
|
22688
|
+
* (it only exists after a value is set), and covers both real clicks and
|
|
22689
|
+
* programmatic `clearBtn.click()` calls, which no `focusin` precedes.
|
|
22690
|
+
* Registered in the capture phase so the flag is set before the button's own
|
|
22691
|
+
* `@click` handler (`handleClickClear`) fires its synchronous input event,
|
|
22692
|
+
* which is when `handleInputValueChange` reads the flag.
|
|
22676
22693
|
* @private
|
|
22677
22694
|
* @param {Element} inputEl - The auro-input whose clear button to track.
|
|
22678
22695
|
* @returns {void}
|
|
@@ -22733,7 +22750,9 @@ class AuroCombobox extends AuroElement {
|
|
|
22733
22750
|
}
|
|
22734
22751
|
|
|
22735
22752
|
/**
|
|
22736
|
-
*
|
|
22753
|
+
* Called when the text in the trigger input or the fullscreen bib input changes.
|
|
22754
|
+
* Keeps both inputs and `value` in sync, clears the combobox when the input is emptied,
|
|
22755
|
+
* validates when focus is outside the combobox unless `noValidate` is set, and fires `inputValue`.
|
|
22737
22756
|
* @private
|
|
22738
22757
|
* @param {Event} event - The input event triggered by the input element.
|
|
22739
22758
|
* @returns {void}
|
|
@@ -22843,9 +22862,9 @@ class AuroCombobox extends AuroElement {
|
|
|
22843
22862
|
}
|
|
22844
22863
|
|
|
22845
22864
|
/**
|
|
22846
|
-
*
|
|
22847
|
-
* Refreshes menu options and filtering,
|
|
22848
|
-
*
|
|
22865
|
+
* Called when the text in the trigger input changes.
|
|
22866
|
+
* Refreshes the menu's options and filtering, passes the change to `handleInputValueChange`,
|
|
22867
|
+
* and keeps focus in the fullscreen bib input while that bib is open.
|
|
22849
22868
|
* @private
|
|
22850
22869
|
* @param {Event} event - The input event from the trigger input element.
|
|
22851
22870
|
* @returns {void}
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</section>
|
|
24
24
|
<section>
|
|
25
25
|
<auro-header level="2" id="disabledState">Disabled state</auro-header>
|
|
26
|
-
<p>
|
|
26
|
+
<p>A disabled counter sets <code>aria-disabled="true"</code> on its spinbutton, leaves the keyboard tab order, and turns off its minus and plus buttons. Screen readers announce that the counter is disabled.</p>
|
|
27
27
|
</section>
|
|
28
28
|
<section>
|
|
29
29
|
<auro-header level="2" id="dropdownA11y">Dropdown accessibility</auro-header>
|
|
@@ -22,17 +22,17 @@ A counter that lets people choose a number, such as how many passengers are trav
|
|
|
22
22
|
|
|
23
23
|
### Properties and attributes
|
|
24
24
|
|
|
25
|
-
| Properties | Attributes | Modifiers | Type | Default | Category | Range | Description
|
|
26
|
-
| ---------- | ---------- | --------- | ---------------------- | --------- | -------- | ----- |
|
|
27
|
-
| appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the colors to match the background behind the counter. Use `inverse` on dark backgrounds and `default` on light ones.
|
|
28
|
-
| disabled | disabled | | boolean | | ui | | Turns the counter off. A disabled counter is shown in a muted style, its buttons can't be clicked, and it's removed from the keyboard tab order.
|
|
29
|
-
| onDark | ondark | | boolean | | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Shows the counter in colors for dark backgrounds.
|
|
30
|
-
| error | error | | string | | behavior | | Sets a custom error message, such as "Select at least one adult", and marks the counter invalid. The message replaces the help text. Set
|
|
31
|
-
| max | max | | number | `9` | behavior | 0–9 | Sets the highest value the counter allows. The plus button turns off at this value.
|
|
32
|
-
| min | min | | number | `0` | behavior | 0–9 | Sets the lowest value the counter allows. The counter starts at this value, and the minus button turns off at it.
|
|
33
|
-
| name | name | | string | | behavior | | Sets the key for this counter's entry in the group's `value` object, such as `adults`. Applies only inside `auro-counter-group`, which uses `counter-0`, `counter-1`, and so on for counters without a name.
|
|
34
|
-
| validity | validity | readonly | string | | behavior | | Reports whether the counter passes validation: `valid`, or the reason it fails, such as `customError`, `rangeOverflow`, or `rangeUnderflow`.
|
|
35
|
-
| value | value | | number \| undefined | | behavior | | Sets the counter's value. A value outside `min` and `max` (0–9 by default) isn't moved back into range; it marks the counter invalid instead. A value that's `undefined`, `null`, or not a number clears the value to `undefined`.
|
|
25
|
+
| Properties | Attributes | Modifiers | Type | Default | Category | Range | Description |
|
|
26
|
+
| ---------- | ---------- | --------- | ---------------------- | --------- | -------- | ----- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
27
|
+
| appearance | appearance | | `default` \| `inverse` | `default` | ui | | Sets the colors to match the background behind the counter. Use `inverse` on dark backgrounds and `default` on light ones. |
|
|
28
|
+
| disabled | disabled | | boolean | | ui | | Turns the counter off. A disabled counter is shown in a muted style, its buttons can't be clicked, and it's removed from the keyboard tab order. |
|
|
29
|
+
| onDark | ondark | | boolean | | ui | | Deprecated: Use `appearance="inverse"` instead.<br>Shows the counter in colors for dark backgrounds. |
|
|
30
|
+
| error | error | | string | | behavior | | Sets a custom error message, such as "Select at least one adult", and marks the counter invalid. The message replaces the help text. Set the `error` attribute before the counter first renders, or call `validate()` after changing it: setting only the property, or changing the attribute later, doesn't currently update `validity`. |
|
|
31
|
+
| max | max | | number | `9` | behavior | 0–9 | Sets the highest value the counter allows. The plus button turns off at this value. |
|
|
32
|
+
| min | min | | number | `0` | behavior | 0–9 | Sets the lowest value the counter allows. The counter starts at this value, and the minus button turns off at it. |
|
|
33
|
+
| name | name | | string | | behavior | | Sets the key for this counter's entry in the group's `value` object, such as `adults`. Applies only inside `auro-counter-group`, which uses `counter-0`, `counter-1`, and so on for counters without a name. |
|
|
34
|
+
| validity | validity | readonly | string | | behavior | | Reports whether the counter passes validation: `valid`, or the reason it fails, such as `customError`, `rangeOverflow`, or `rangeUnderflow`. |
|
|
35
|
+
| value | value | | number \| undefined | | behavior | | Sets the counter's value. A value outside `min` and `max` (0–9 by default) isn't moved back into range; it marks the counter invalid instead. A value that's `undefined`, `null`, or not a number clears the value to `undefined`. |
|
|
36
36
|
|
|
37
37
|
### Methods
|
|
38
38
|
|
|
@@ -46,9 +46,9 @@ A counter that lets people choose a number, such as how many passengers are trav
|
|
|
46
46
|
|
|
47
47
|
### Events
|
|
48
48
|
|
|
49
|
-
| Name | Description
|
|
50
|
-
| ----- |
|
|
51
|
-
| input |
|
|
49
|
+
| Name | Description |
|
|
50
|
+
| ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| input | Fires whenever `value` changes, including when the counter sets its starting value, with the new number in `event.detail.value`. It doesn't currently bubble, so listen on the counter itself. |
|
|
52
52
|
|
|
53
53
|
### Slots
|
|
54
54
|
|
|
@@ -134,10 +134,10 @@ Groups related counters, such as passenger types, so they share one total and on
|
|
|
134
134
|
|
|
135
135
|
### Events
|
|
136
136
|
|
|
137
|
-
| Name | Description
|
|
138
|
-
| ------------------------- |
|
|
139
|
-
| auroFormElement-validated | Fires each time the group is validated, with the result in `event.detail.validity` and `event.detail.message`.
|
|
140
|
-
| input | Fires when any counter's value changes, with the new `total` and `value` in `event.detail`.
|
|
137
|
+
| Name | Description |
|
|
138
|
+
| ------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
139
|
+
| auroFormElement-validated | Fires each time the group is validated, with the result in `event.detail.validity` and `event.detail.message`. |
|
|
140
|
+
| input | Fires when any counter's value changes, with the new `total` and `value` in `event.detail`. It doesn't currently bubble, so listen on the group itself. |
|
|
141
141
|
|
|
142
142
|
### Slots
|
|
143
143
|
|
|
@@ -143,7 +143,7 @@
|
|
|
143
143
|
<tr>
|
|
144
144
|
<td>Spinbutton ARIA semantics</td>
|
|
145
145
|
<td>Not supported</td>
|
|
146
|
-
<td><code>role="spinbutton"</code> with
|
|
146
|
+
<td><code>role="spinbutton"</code> with value, range, and label attributes</td>
|
|
147
147
|
</tr>
|
|
148
148
|
<tr>
|
|
149
149
|
<td>Validation messages</td>
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/custom-tokens.html) -->
|
|
114
114
|
<!-- The below content is automatically added from ./../apiExamples/custom-tokens.html -->
|
|
115
115
|
<style>
|
|
116
|
-
#customTokensCounter {
|
|
116
|
+
#customTokensCounter auro-counter {
|
|
117
117
|
--ds-auro-counter-control-background-color: #e8d5f5;
|
|
118
118
|
--ds-auro-counter-control-border-color: #7b2d8e;
|
|
119
119
|
--ds-auro-counter-icon-color: #7b2d8e;
|
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/custom-tokens.html) -->
|
|
143
143
|
<!-- The below code snippet is automatically added from ./../apiExamples/custom-tokens.html -->
|
|
144
144
|
<pre class="language-html"><code class="language-html"><style>
|
|
145
|
-
#customTokensCounter {
|
|
145
|
+
#customTokensCounter auro-counter {
|
|
146
146
|
--ds-auro-counter-control-background-color: #e8d5f5;
|
|
147
147
|
--ds-auro-counter-control-border-color: #7b2d8e;
|
|
148
148
|
--ds-auro-counter-icon-color: #7b2d8e;
|