@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.1 → 0.0.0-pr1628.11
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 +4 -4
- 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 +4 -4
- package/components/checkbox/demo/index.md +17 -17
- package/components/checkbox/demo/index.min.js +4 -4
- 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 +4 -4
- package/components/checkbox/dist/registered.js +4 -4
- 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 +53 -35
- package/components/combobox/demo/getting-started.min.js +53 -35
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +53 -35
- package/components/combobox/dist/auro-combobox.d.ts +6 -4
- package/components/combobox/dist/index.js +42 -25
- package/components/combobox/dist/registered.js +42 -25
- 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 +30 -30
- 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 +30 -30
- package/components/counter/demo/index.min.js +30 -30
- 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 +30 -30
- package/components/counter/dist/registered.js +30 -30
- 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 +189 -135
- 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 +189 -135
- package/components/datepicker/demo/index.md +5 -5
- package/components/datepicker/demo/index.min.js +189 -135
- 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 +189 -135
- package/components/datepicker/dist/registered.js +189 -135
- 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 +11 -10
- package/components/dropdown/demo/design.md +4 -4
- package/components/dropdown/demo/getting-started.min.js +33 -18
- package/components/dropdown/demo/index.min.js +11 -10
- 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 +11 -10
- package/components/dropdown/dist/registered.js +11 -10
- 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 +329 -243
- package/components/form/demo/getting-started.md +2 -0
- package/components/form/demo/getting-started.min.js +329 -243
- package/components/form/demo/index.md +2 -2
- package/components/form/demo/index.min.js +329 -243
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +327 -241
- 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/helptext/dist/auro-helptext.d.ts +1 -1
- package/components/helptext/dist/index.js +1 -1
- package/components/helptext/dist/registered.js +1 -1
- 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 +22 -8
- 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 +22 -8
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +22 -8
- 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 +22 -8
- package/components/input/dist/registered.js +22 -8
- 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 +11 -13
- 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 +11 -13
- package/components/radio/demo/index.md +1 -1
- package/components/radio/demo/index.min.js +11 -13
- 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 +11 -13
- package/components/radio/dist/registered.js +11 -13
- 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 +29 -26
- package/components/select/demo/getting-started.min.js +29 -26
- package/components/select/demo/index.md +1 -1
- package/components/select/demo/index.min.js +29 -26
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/auro-select.d.ts +4 -3
- package/components/select/dist/index.js +18 -16
- package/components/select/dist/registered.js +18 -16
- package/custom-elements.json +149 -133
- package/package.json +1 -1
|
@@ -5179,7 +5179,7 @@ let AuroHelpText$2 = class AuroHelpText extends LitElement {
|
|
|
5179
5179
|
}
|
|
5180
5180
|
|
|
5181
5181
|
/**
|
|
5182
|
-
* Called when the slot
|
|
5182
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
5183
5183
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
5184
5184
|
* @returns {void}
|
|
5185
5185
|
*/
|
|
@@ -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 = '202611091610';
|
|
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
|
|
@@ -19353,7 +19368,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
19353
19368
|
}
|
|
19354
19369
|
|
|
19355
19370
|
/**
|
|
19356
|
-
* Called when the slot
|
|
19371
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
19357
19372
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
19358
19373
|
* @returns {void}
|
|
19359
19374
|
*/
|
|
@@ -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 = '202611091610';
|
|
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 = '202611091610';
|
|
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
|
|
|
@@ -21031,7 +21046,7 @@ class AuroHelpText extends LitElement {
|
|
|
21031
21046
|
}
|
|
21032
21047
|
|
|
21033
21048
|
/**
|
|
21034
|
-
* Called when the slot
|
|
21049
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
21035
21050
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
21036
21051
|
* @returns {void}
|
|
21037
21052
|
*/
|
|
@@ -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}
|
|
@@ -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
|
|
@@ -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;
|
|
@@ -1113,7 +1113,7 @@ let AuroHelpText$1 = class AuroHelpText extends i$1 {
|
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
1115
1115
|
/**
|
|
1116
|
-
* Called when the slot
|
|
1116
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
1117
1117
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
1118
1118
|
* @returns {void}
|
|
1119
1119
|
*/
|
|
@@ -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 = '202611091610';
|
|
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.
|
|
@@ -1231,7 +1231,7 @@ const keyboardStrategy = {
|
|
|
1231
1231
|
* @csspart controlPlus - The plus button, which raises the value by 1.
|
|
1232
1232
|
* @csspart helpText - The paragraph that shows the help text, or the error message while the counter is invalid.
|
|
1233
1233
|
*
|
|
1234
|
-
* @event input -
|
|
1234
|
+
* @event 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.
|
|
1235
1235
|
*/
|
|
1236
1236
|
class AuroCounter extends i$1 {
|
|
1237
1237
|
|
|
@@ -1352,7 +1352,7 @@ class AuroCounter extends i$1 {
|
|
|
1352
1352
|
},
|
|
1353
1353
|
|
|
1354
1354
|
/**
|
|
1355
|
-
*
|
|
1355
|
+
* Holds the trimmed text of the default slot, which `auro-counter-group` shows in its dropdown summary.
|
|
1356
1356
|
* @private
|
|
1357
1357
|
*/
|
|
1358
1358
|
defaultSlot: {
|
|
@@ -1390,7 +1390,7 @@ class AuroCounter extends i$1 {
|
|
|
1390
1390
|
},
|
|
1391
1391
|
|
|
1392
1392
|
/**
|
|
1393
|
-
* Sets a custom error message, such as "Select at least one adult", and marks the counter invalid. The message replaces the help text. Set
|
|
1393
|
+
* 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`.
|
|
1394
1394
|
* @category behavior
|
|
1395
1395
|
*/
|
|
1396
1396
|
error: {
|
|
@@ -5728,7 +5728,7 @@ class AuroHelpText extends i$1 {
|
|
|
5728
5728
|
}
|
|
5729
5729
|
|
|
5730
5730
|
/**
|
|
5731
|
-
* Called when the slot
|
|
5731
|
+
* Called when nodes are added to or removed from the slot, and after each update. Checks whether the slot has text, so the element shows only when it does.
|
|
5732
5732
|
* @param {Event} [event] - The `slotchange` event, when called from one.
|
|
5733
5733
|
* @returns {void}
|
|
5734
5734
|
*/
|
|
@@ -5781,7 +5781,7 @@ class AuroHelpText extends i$1 {
|
|
|
5781
5781
|
}
|
|
5782
5782
|
}
|
|
5783
5783
|
|
|
5784
|
-
var formkitVersion = '
|
|
5784
|
+
var formkitVersion = '202611091610';
|
|
5785
5785
|
|
|
5786
5786
|
/**
|
|
5787
5787
|
* Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
|
|
@@ -5947,8 +5947,8 @@ let AuroElement$1 = class AuroElement extends i$1 {
|
|
|
5947
5947
|
* @csspart chevron - The container for the icon that shows whether the bib is open. Exists only when `chevron` is set.
|
|
5948
5948
|
* @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.
|
|
5949
5949
|
* @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.
|
|
5950
|
-
* @event auroDropdown-triggerClick - Notifies that the trigger was clicked, or activated with Enter or Space.
|
|
5951
|
-
* @event auroDropdown-toggled - Notifies that the bib opened or closed.
|
|
5950
|
+
* @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.
|
|
5951
|
+
* @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`.
|
|
5952
5952
|
* @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`.
|
|
5953
5953
|
*/
|
|
5954
5954
|
class AuroDropdown extends AuroElement$1 {
|
|
@@ -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
|
|
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
|
*/
|
|
@@ -8382,7 +8383,7 @@ const counterGroupKeyboardStrategy = {
|
|
|
8382
8383
|
* @csspart helpText - The paragraph that shows the help text, or the combined error message while a counter is invalid. Rendered only when `isDropdown` is set.
|
|
8383
8384
|
*
|
|
8384
8385
|
* @event auroFormElement-validated - Fires each time the group is validated, with the result in `event.detail.validity` and `event.detail.message`.
|
|
8385
|
-
* @event input - Fires when any counter's value changes, with the new `total` and `value` in `event.detail`.
|
|
8386
|
+
* @event 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.
|
|
8386
8387
|
*/
|
|
8387
8388
|
class AuroCounterGroup extends AuroElement {
|
|
8388
8389
|
constructor() {
|
|
@@ -8514,8 +8515,8 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8514
8515
|
},
|
|
8515
8516
|
|
|
8516
8517
|
/**
|
|
8517
|
-
*
|
|
8518
|
-
*
|
|
8518
|
+
* Holds the error message shown while the group is invalid.
|
|
8519
|
+
* Validation sets it, and it isn't available to consumers.
|
|
8519
8520
|
* @private
|
|
8520
8521
|
*/
|
|
8521
8522
|
errorMessage: {
|
|
@@ -8712,7 +8713,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8712
8713
|
},
|
|
8713
8714
|
|
|
8714
8715
|
/**
|
|
8715
|
-
*
|
|
8716
|
+
* Holds the text in the `valueText` slot.
|
|
8716
8717
|
* @category behavior
|
|
8717
8718
|
* @private
|
|
8718
8719
|
*/
|
|
@@ -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
|
|
@@ -8784,9 +8784,9 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8784
8784
|
};
|
|
8785
8785
|
|
|
8786
8786
|
/**
|
|
8787
|
-
* Synchronously recomputes this.validity
|
|
8788
|
-
* validity of the child counters. Extracted from updateValidity() so that
|
|
8789
|
-
* validate() can re-apply this aggregation immediately after the shared
|
|
8787
|
+
* Synchronously recomputes `this.validity` and `this.errorMessage` from the current
|
|
8788
|
+
* validity of the child counters. Extracted from `updateValidity()` so that
|
|
8789
|
+
* `validate()` can re-apply this aggregation immediately after the shared
|
|
8790
8790
|
* validation engine runs, instead of waiting on a deferred timer.
|
|
8791
8791
|
* @returns {void}
|
|
8792
8792
|
* @private
|
|
@@ -8871,9 +8871,9 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8871
8871
|
}
|
|
8872
8872
|
|
|
8873
8873
|
/**
|
|
8874
|
-
*
|
|
8875
|
-
*
|
|
8876
|
-
* and
|
|
8874
|
+
* Finds the dropdown and the counters slotted into its `auro-counter-wrapper`,
|
|
8875
|
+
* adds `input` and `auroFormElement-validated` listeners to each counter, and
|
|
8876
|
+
* updates `value` and the group's validity. Also sets up the bib template when `isDropdown` is set.
|
|
8877
8877
|
* @private
|
|
8878
8878
|
*/
|
|
8879
8879
|
configureDropdownCounters() {
|
|
@@ -8905,7 +8905,7 @@ class AuroCounterGroup extends AuroElement {
|
|
|
8905
8905
|
}
|
|
8906
8906
|
|
|
8907
8907
|
/**
|
|
8908
|
-
*
|
|
8908
|
+
* Finds the bib template, closes the dropdown when its close button is clicked, and moves focus to the close button when the fullscreen dropdown opens.
|
|
8909
8909
|
* @private
|
|
8910
8910
|
*/
|
|
8911
8911
|
configureBibtemplate() {
|
|
@@ -116,7 +116,7 @@
|
|
|
116
116
|
<auro-header level="2" id="shapeSizeLayout">Shape, size, and layout support</auro-header>
|
|
117
117
|
<p>The <code>auro-counter-group</code> component supports the <code>shape</code>, <code>size</code>, and <code>layout</code> feature set when <code>isDropdown</code> is set. The component defaults to <code>layout="classic"</code>, <code>shape="classic"</code>, and <code>size="xl"</code>.</p>
|
|
118
118
|
<auro-header level="3" id="classicLayout">Classic layout</auro-header>
|
|
119
|
-
<p>The <code>classic</code> layout is default for <code>auro-counter-group</code>.
|
|
119
|
+
<p>The <code>classic</code> layout is the default for <code>auro-counter-group</code>. You don't need to set anything to get this look.</p>
|
|
120
120
|
<div class="exampleWrapper">
|
|
121
121
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/dropdown.html) -->
|
|
122
122
|
<!-- The below content is automatically added from ./../apiExamples/dropdown.html -->
|