@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.16 → 0.0.0-pr1628.17

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.
Files changed (79) hide show
  1. package/components/checkbox/demo/customize.min.js +1 -1
  2. package/components/checkbox/demo/getting-started.min.js +1 -1
  3. package/components/checkbox/demo/index.min.js +1 -1
  4. package/components/checkbox/dist/index.js +1 -1
  5. package/components/checkbox/dist/registered.js +1 -1
  6. package/components/combobox/demo/customize.min.js +29 -35
  7. package/components/combobox/demo/getting-started.min.js +29 -35
  8. package/components/combobox/demo/index.min.js +29 -35
  9. package/components/combobox/dist/auro-combobox.d.ts +2 -0
  10. package/components/combobox/dist/index.js +27 -33
  11. package/components/combobox/dist/registered.js +27 -33
  12. package/components/counter/demo/accessibility.md +1 -1
  13. package/components/counter/demo/css-only.md +5 -5
  14. package/components/counter/demo/customize.min.js +15 -13
  15. package/components/counter/demo/getting-started.min.js +15 -13
  16. package/components/counter/demo/index.min.js +15 -13
  17. package/components/counter/demo/voiceover.md +1 -1
  18. package/components/counter/demo/why-counter.md +3 -3
  19. package/components/counter/dist/auro-counter-group.d.ts +1 -0
  20. package/components/counter/dist/index.js +15 -13
  21. package/components/counter/dist/registered.js +15 -13
  22. package/components/datepicker/demo/customize.min.js +22 -19
  23. package/components/datepicker/demo/getting-started.min.js +22 -19
  24. package/components/datepicker/demo/index.min.js +22 -19
  25. package/components/datepicker/dist/index.js +22 -19
  26. package/components/datepicker/dist/registered.js +22 -19
  27. package/components/dropdown/demo/api.md +1 -1
  28. package/components/dropdown/demo/customize.min.js +8 -7
  29. package/components/dropdown/demo/getting-started.min.js +15 -13
  30. package/components/dropdown/demo/index.min.js +8 -7
  31. package/components/dropdown/dist/auro-dropdown.d.ts +1 -1
  32. package/components/dropdown/dist/index.js +8 -7
  33. package/components/dropdown/dist/registered.js +8 -7
  34. package/components/form/demo/api.md +1 -1
  35. package/components/form/demo/customize.min.js +106 -112
  36. package/components/form/demo/getting-started.min.js +106 -112
  37. package/components/form/demo/index.min.js +106 -112
  38. package/components/form/demo/registerDemoDeps.min.js +105 -111
  39. package/components/form/demo/why-form.md +1 -1
  40. package/components/form/dist/auro-form.d.ts +1 -1
  41. package/components/form/dist/index.js +1 -1
  42. package/components/form/dist/registered.js +1 -1
  43. package/components/input/demo/api.md +6 -6
  44. package/components/input/demo/customize.min.js +7 -6
  45. package/components/input/demo/getting-started.min.js +7 -6
  46. package/components/input/demo/index.min.js +7 -6
  47. package/components/input/dist/auro-input.d.ts +1 -1
  48. package/components/input/dist/base-input.d.ts +2 -1
  49. package/components/input/dist/index.js +7 -6
  50. package/components/input/dist/registered.js +7 -6
  51. package/components/layoutElement/dist/auroElement.d.ts +4 -3
  52. package/components/layoutElement/dist/index.js +4 -3
  53. package/components/layoutElement/dist/registered.js +4 -3
  54. package/components/menu/demo/api.md +1 -1
  55. package/components/menu/demo/index.min.js +6 -5
  56. package/components/menu/dist/auro-menu.d.ts +8 -3
  57. package/components/menu/dist/auro-menuoption.d.ts +2 -2
  58. package/components/menu/dist/index.js +6 -5
  59. package/components/menu/dist/registered.js +6 -5
  60. package/components/radio/demo/api.md +16 -16
  61. package/components/radio/demo/customize.md +1 -1
  62. package/components/radio/demo/customize.min.js +4 -4
  63. package/components/radio/demo/getting-started.min.js +4 -4
  64. package/components/radio/demo/index.min.js +4 -4
  65. package/components/radio/dist/auro-radio-group.d.ts +2 -2
  66. package/components/radio/dist/auro-radio.d.ts +1 -1
  67. package/components/radio/dist/index.js +4 -4
  68. package/components/radio/dist/registered.js +4 -4
  69. package/components/select/demo/api.md +47 -47
  70. package/components/select/demo/css-only.md +1 -1
  71. package/components/select/demo/customize.min.js +25 -32
  72. package/components/select/demo/getting-started.min.js +25 -32
  73. package/components/select/demo/index.md +1 -1
  74. package/components/select/demo/index.min.js +25 -32
  75. package/components/select/dist/auro-select.d.ts +4 -3
  76. package/components/select/dist/index.js +23 -30
  77. package/components/select/dist/registered.js +23 -30
  78. package/custom-elements.json +20 -20
  79. package/package.json +1 -1
@@ -3357,8 +3357,8 @@ var iconVersion$1 = '9.2.0';
3357
3357
  */class e extends i$4{constructor(i){if(super(i),this.it=A$1,i.type!==t$2.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A$1||null==r)return this._t=void 0,this.it=r;if(r===E)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;
3358
3358
 
3359
3359
  /**
3360
- * Creates a snapshot of the dropdown's display state for one keydown event.
3361
- * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
3360
+ * Creates a snapshot of the dropdown's display state for one `keydown` event.
3361
+ * Handles a missing dropdown without throwing, so callers don't need their own checks.
3362
3362
  *
3363
3363
  * @param {HTMLElement} component - The component with a dropdown reference.
3364
3364
  * @param {Object} [options] - The optional settings.
@@ -4107,16 +4107,17 @@ let AuroHelpText$1 = class AuroHelpText extends i {
4107
4107
  }
4108
4108
  };
4109
4109
 
4110
- var formkitVersion$1 = '202611121719';
4110
+ var formkitVersion$1 = '202611121951';
4111
4111
 
4112
4112
  /**
4113
4113
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
4114
4114
  *
4115
4115
  * It declares the `onDark` property and provides helpers that apply the
4116
4116
  * `layout-*` and `shape-*` classes for the current `layout`, `shape`, and `size`
4117
- * to the subclass's `.wrapper` element. Each subclass declares its own `layout`,
4118
- * `shape`, and `size` properties with its own values and defaults, and
4119
- * implements `renderLayout()`, which `render()` calls.
4117
+ * to the subclass's `.wrapper` element. Subclasses declare the `layout`,
4118
+ * `shape`, and `size` properties they use, each with its own values and
4119
+ * default. The base `render()` calls `renderLayout()`, which a subclass
4120
+ * implements unless it overrides `render()`.
4120
4121
  *
4121
4122
  * **Key capabilities**
4122
4123
  * - **Layout and shape classes**: The base class updates the `.wrapper` element's `layout-*` and `shape-*` classes whenever `layout`, `shape`, or `size` changes, unless a subclass overrides `updated()` without calling `super.updated()`.
@@ -4775,7 +4776,7 @@ class AuroDropdown extends AuroElement$1 {
4775
4776
  /**
4776
4777
  * Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.
4777
4778
  * Applies only when `shape` is also set.
4778
- * The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them.
4779
+ * Each shape has styles for only some sizes: `box` for all five; `pill`, `pill-left`, and `pill-right` for `md` and `xl`; `rounded` for `lg`; and `classic` and `snowflake` for one fixed height at any size.
4779
4780
  * @relevantWhen shape !== undefined
4780
4781
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
4781
4782
  * @category ui
@@ -10272,9 +10273,10 @@ class AuroFormValidation {
10272
10273
  *
10273
10274
  * It declares the `onDark` property and provides helpers that apply the
10274
10275
  * `layout-*` and `shape-*` classes for the current `layout`, `shape`, and `size`
10275
- * to the subclass's `.wrapper` element. Each subclass declares its own `layout`,
10276
- * `shape`, and `size` properties with its own values and defaults, and
10277
- * implements `renderLayout()`, which `render()` calls.
10276
+ * to the subclass's `.wrapper` element. Subclasses declare the `layout`,
10277
+ * `shape`, and `size` properties they use, each with its own values and
10278
+ * default. The base `render()` calls `renderLayout()`, which a subclass
10279
+ * implements unless it overrides `render()`.
10278
10280
  *
10279
10281
  * **Key capabilities**
10280
10282
  * - **Layout and shape classes**: The base class updates the `.wrapper` element's `layout-*` and `shape-*` classes whenever `layout`, `shape`, or `size` changes, unless a subclass overrides `updated()` without calling `super.updated()`.
@@ -16320,7 +16322,7 @@ class DomHandler {
16320
16322
 
16321
16323
  /**
16322
16324
  * Shared base class for `auro-input` that handles the value, formatting, and validation.
16323
- * @event input - Fires when the value changes, whether the user types or code sets the value. Events from code changes have `isProgrammatic` set to `true`.
16325
+ * @event input - Fires when the value changes. Typing fires the browser's `input` event, and every change to `value` also fires an `input` event with `isProgrammatic` set to `true`. To respond only to typing, skip events that have `isProgrammatic` set.
16324
16326
  * @event auroFormElement-validated - Fires each time the input is validated, with the result in `event.detail.validity` and `event.detail.message`.
16325
16327
  * @event auroInput-validityChange - Fires when `validity` changes.
16326
16328
  */
@@ -18291,7 +18293,7 @@ class AuroHelpText extends i {
18291
18293
  }
18292
18294
  }
18293
18295
 
18294
- var formkitVersion = '202611121719';
18296
+ var formkitVersion = '202611121951';
18295
18297
 
18296
18298
  // Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
18297
18299
  // See LICENSE in the project root for license information.
@@ -18302,7 +18304,7 @@ var formkitVersion = '202611121719';
18302
18304
  *
18303
18305
  * **Key capabilities**
18304
18306
  * - **Formatting as people type**: Set `type` to `credit-card`, `tel`, or `date`, or set `format`, to format the value as the user types.
18305
- * - **Validation messages**: Set `required`, `minlength`, `maxlength`, `pattern`, `min`, or `max` to show an error message below the field when the value doesn't meet the rule.
18307
+ * - **Validation messages**: Set `required`, `minlength`, `maxlength`, or `pattern` to show an error message below the field when the value doesn't meet the rule; `min` and `max` work only with `type="number"`, or with `type="date"` and a `format` that has a day, month, and year.
18306
18308
  * - **Clear button**: The input always shows a button that clears the value when the field has a value, isn't disabled or read-only, and the user hovers over it or moves focus into it.
18307
18309
  * - **Password visibility**: Set `type="password"` to add a button that shows or hides the password in the `classic` layout.
18308
18310
  * - **Dark backgrounds**: Set `appearance="inverse"` to use colors made for dark backgrounds.
@@ -3384,8 +3384,8 @@ var iconVersion = '9.2.0';
3384
3384
  */class e extends i$3{constructor(i){if(super(i),this.it=A,i.type!==t$1.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(r){if(r===A||null==r)return this._t=void 0,this.it=r;if(r===E)return r;if("string"!=typeof r)throw Error(this.constructor.directiveName+"() called with a non-string value");if(r===this.it)return this._t;this.it=r;const s=[r];return s.raw=s,this._t={_$litType$:this.constructor.resultType,strings:s,values:[]}}}e.directiveName="unsafeHTML",e.resultType=1;
3385
3385
 
3386
3386
  /**
3387
- * Creates a snapshot of the dropdown's display state for one keydown event.
3388
- * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
3387
+ * Creates a snapshot of the dropdown's display state for one `keydown` event.
3388
+ * Handles a missing dropdown without throwing, so callers don't need their own checks.
3389
3389
  *
3390
3390
  * @param {HTMLElement} component - The component with a dropdown reference.
3391
3391
  * @param {Object} [options] - The optional settings.
@@ -4134,16 +4134,17 @@ class AuroHelpText extends i {
4134
4134
  }
4135
4135
  }
4136
4136
 
4137
- var formkitVersion = '202611121719';
4137
+ var formkitVersion = '202611121951';
4138
4138
 
4139
4139
  /**
4140
4140
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
4141
4141
  *
4142
4142
  * It declares the `onDark` property and provides helpers that apply the
4143
4143
  * `layout-*` and `shape-*` classes for the current `layout`, `shape`, and `size`
4144
- * to the subclass's `.wrapper` element. Each subclass declares its own `layout`,
4145
- * `shape`, and `size` properties with its own values and defaults, and
4146
- * implements `renderLayout()`, which `render()` calls.
4144
+ * to the subclass's `.wrapper` element. Subclasses declare the `layout`,
4145
+ * `shape`, and `size` properties they use, each with its own values and
4146
+ * default. The base `render()` calls `renderLayout()`, which a subclass
4147
+ * implements unless it overrides `render()`.
4147
4148
  *
4148
4149
  * **Key capabilities**
4149
4150
  * - **Layout and shape classes**: The base class updates the `.wrapper` element's `layout-*` and `shape-*` classes whenever `layout`, `shape`, or `size` changes, unless a subclass overrides `updated()` without calling `super.updated()`.
@@ -4802,7 +4803,7 @@ class AuroDropdown extends AuroElement {
4802
4803
  /**
4803
4804
  * Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.
4804
4805
  * Applies only when `shape` is also set.
4805
- * The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them.
4806
+ * Each shape has styles for only some sizes: `box` for all five; `pill`, `pill-left`, and `pill-right` for `md` and `xl`; `rounded` for `lg`; and `classic` and `snowflake` for one fixed height at any size.
4806
4807
  * @relevantWhen shape !== undefined
4807
4808
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
4808
4809
  * @category ui
@@ -244,7 +244,7 @@ export class AuroDropdown extends AuroElement {
244
244
  /**
245
245
  * Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.
246
246
  * Applies only when `shape` is also set.
247
- * The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them.
247
+ * Each shape has styles for only some sizes: `box` for all five; `pill`, `pill-left`, and `pill-right` for `md` and `xl`; `rounded` for `lg`; and `classic` and `snowflake` for one fixed height at any size.
248
248
  * @relevantWhen shape !== undefined
249
249
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
250
250
  * @category ui
@@ -3289,8 +3289,8 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
3289
3289
  var iconVersion = '9.2.0';
3290
3290
 
3291
3291
  /**
3292
- * Creates a snapshot of the dropdown's display state for one keydown event.
3293
- * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
3292
+ * Creates a snapshot of the dropdown's display state for one `keydown` event.
3293
+ * Handles a missing dropdown without throwing, so callers don't need their own checks.
3294
3294
  *
3295
3295
  * @param {HTMLElement} component - The component with a dropdown reference.
3296
3296
  * @param {Object} [options] - The optional settings.
@@ -4039,16 +4039,17 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611121719';
4042
+ var formkitVersion = '202611121951';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
4046
4046
  *
4047
4047
  * It declares the `onDark` property and provides helpers that apply the
4048
4048
  * `layout-*` and `shape-*` classes for the current `layout`, `shape`, and `size`
4049
- * to the subclass's `.wrapper` element. Each subclass declares its own `layout`,
4050
- * `shape`, and `size` properties with its own values and defaults, and
4051
- * implements `renderLayout()`, which `render()` calls.
4049
+ * to the subclass's `.wrapper` element. Subclasses declare the `layout`,
4050
+ * `shape`, and `size` properties they use, each with its own values and
4051
+ * default. The base `render()` calls `renderLayout()`, which a subclass
4052
+ * implements unless it overrides `render()`.
4052
4053
  *
4053
4054
  * **Key capabilities**
4054
4055
  * - **Layout and shape classes**: The base class updates the `.wrapper` element's `layout-*` and `shape-*` classes whenever `layout`, `shape`, or `size` changes, unless a subclass overrides `updated()` without calling `super.updated()`.
@@ -4707,7 +4708,7 @@ class AuroDropdown extends AuroElement {
4707
4708
  /**
4708
4709
  * Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.
4709
4710
  * Applies only when `shape` is also set.
4710
- * The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them.
4711
+ * Each shape has styles for only some sizes: `box` for all five; `pill`, `pill-left`, and `pill-right` for `md` and `xl`; `rounded` for `lg`; and `classic` and `snowflake` for one fixed height at any size.
4711
4712
  * @relevantWhen shape !== undefined
4712
4713
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
4713
4714
  * @category ui
@@ -3289,8 +3289,8 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
3289
3289
  var iconVersion = '9.2.0';
3290
3290
 
3291
3291
  /**
3292
- * Creates a snapshot of the dropdown's display state for one keydown event.
3293
- * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
3292
+ * Creates a snapshot of the dropdown's display state for one `keydown` event.
3293
+ * Handles a missing dropdown without throwing, so callers don't need their own checks.
3294
3294
  *
3295
3295
  * @param {HTMLElement} component - The component with a dropdown reference.
3296
3296
  * @param {Object} [options] - The optional settings.
@@ -4039,16 +4039,17 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611121719';
4042
+ var formkitVersion = '202611121951';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
4046
4046
  *
4047
4047
  * It declares the `onDark` property and provides helpers that apply the
4048
4048
  * `layout-*` and `shape-*` classes for the current `layout`, `shape`, and `size`
4049
- * to the subclass's `.wrapper` element. Each subclass declares its own `layout`,
4050
- * `shape`, and `size` properties with its own values and defaults, and
4051
- * implements `renderLayout()`, which `render()` calls.
4049
+ * to the subclass's `.wrapper` element. Subclasses declare the `layout`,
4050
+ * `shape`, and `size` properties they use, each with its own values and
4051
+ * default. The base `render()` calls `renderLayout()`, which a subclass
4052
+ * implements unless it overrides `render()`.
4052
4053
  *
4053
4054
  * **Key capabilities**
4054
4055
  * - **Layout and shape classes**: The base class updates the `.wrapper` element's `layout-*` and `shape-*` classes whenever `layout`, `shape`, or `size` changes, unless a subclass overrides `updated()` without calling `super.updated()`.
@@ -4707,7 +4708,7 @@ class AuroDropdown extends AuroElement {
4707
4708
  /**
4708
4709
  * Sets the height of the trigger, from `xs`, the shortest, to `xl`, the tallest.
4709
4710
  * Applies only when `shape` is also set.
4710
- * The `classic` and `snowflake` shapes have a fixed height, so `size` doesn't change them.
4711
+ * Each shape has styles for only some sizes: `box` for all five; `pill`, `pill-left`, and `pill-right` for `md` and `xl`; `rounded` for `lg`; and `classic` and `snowflake` for one fixed height at any size.
4711
4712
  * @relevantWhen shape !== undefined
4712
4713
  * @type {'xs' | 'sm' | 'md' | 'lg' | 'xl'}
4713
4714
  * @category ui
@@ -24,7 +24,7 @@ Collects the values and validity of the Auro form elements inside it, and handle
24
24
 
25
25
  | Properties | Attributes | Modifiers | Type | Default | Category | Description |
26
26
  | ----------------- | ---------- | --------- | ----------------------------------------------------------------------------------------- | ------- | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
27
- | isInitialState | | readonly | boolean | | behavior | Checks whether the form is unchanged, with every field still holding its starting value, the value it had when the form first found it. The form counts as changed while any field's value differs from its starting value or any field has failed validation, so changing a value back makes this true again. |
27
+ | isInitialState | | readonly | boolean | | behavior | Checks whether the form is unchanged, with every field still holding its starting value, the value it had when the form first found it. The form counts as changed while any field's value differs from its starting value or any field has failed validation. |
28
28
  | validity | | readonly | "valid" \| "invalid" \| null | | behavior | Gets the form's overall validity: `invalid` when any enabled field has failed validation or is required but empty, and `valid` otherwise. Stays `null` while `isInitialState` is true, so you can hold back error messages until the user changes something. |
29
29
  | value | | readonly | Record<string, string \| number \| boolean \| string[] \| Record<string, number> \| null> | | behavior | Gets the current values of all named, enabled form elements as one object, keyed by each element's `name` attribute. Each value is the child component's own `.value`, so its shape depends on the element type: for example, `auro-checkbox-group` gives an array, `auro-counter-group` gives an object keyed by counter name, and `auro-select` with `multiSelect` gives a JSON-encoded string. The one form-specific exception is a `range` `auro-datepicker`, which gives its `.values` array (`[start, end]`) instead of its single `.value` string once the user has entered dates. |
30
30
  | buttonElementTags | | readonly | string[] | | | Gets the tag names of the buttons the form can use as submit and reset buttons, when they have `type="submit"` or `type="reset"`. |