@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.11 → 0.0.0-pr1628.13

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 (73) 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 +15 -23
  7. package/components/combobox/demo/getting-started.min.js +15 -23
  8. package/components/combobox/demo/index.min.js +15 -23
  9. package/components/combobox/dist/index.js +4 -16
  10. package/components/combobox/dist/registered.js +4 -16
  11. package/components/counter/demo/api.md +28 -28
  12. package/components/counter/demo/css-only.md +1 -1
  13. package/components/counter/demo/customize.md +2 -2
  14. package/components/counter/demo/customize.min.js +12 -11
  15. package/components/counter/demo/getting-started.md +2 -2
  16. package/components/counter/demo/getting-started.min.js +12 -11
  17. package/components/counter/demo/index.min.js +12 -11
  18. package/components/counter/demo/voiceover.md +2 -2
  19. package/components/counter/demo/why-counter.md +1 -1
  20. package/components/counter/dist/auro-counter-group.d.ts +7 -6
  21. package/components/counter/dist/auro-counter.d.ts +3 -3
  22. package/components/counter/dist/index.js +12 -11
  23. package/components/counter/dist/registered.js +12 -11
  24. package/components/datepicker/demo/customize.min.js +5 -17
  25. package/components/datepicker/demo/getting-started.min.js +5 -17
  26. package/components/datepicker/demo/index.min.js +5 -17
  27. package/components/datepicker/dist/index.js +5 -17
  28. package/components/datepicker/dist/registered.js +5 -17
  29. package/components/dropdown/demo/customize.min.js +1 -1
  30. package/components/dropdown/demo/getting-started.min.js +3 -15
  31. package/components/dropdown/demo/index.min.js +1 -1
  32. package/components/dropdown/dist/index.js +1 -1
  33. package/components/dropdown/dist/registered.js +1 -1
  34. package/components/form/demo/customize.min.js +40 -71
  35. package/components/form/demo/getting-started.min.js +40 -71
  36. package/components/form/demo/index.min.js +40 -71
  37. package/components/form/demo/registerDemoDeps.min.js +40 -71
  38. package/components/input/demo/api.md +12 -12
  39. package/components/input/demo/css-only.md +4 -4
  40. package/components/input/demo/customize.md +4 -4
  41. package/components/input/demo/customize.min.js +2 -14
  42. package/components/input/demo/getting-started.min.js +2 -14
  43. package/components/input/demo/index.min.js +2 -14
  44. package/components/input/demo/voiceover.md +1 -1
  45. package/components/input/demo/why-input.md +2 -2
  46. package/components/input/dist/base-input.d.ts +0 -12
  47. package/components/input/dist/index.js +2 -14
  48. package/components/input/dist/registered.js +2 -14
  49. package/components/menu/demo/api.md +18 -7
  50. package/components/menu/demo/index.min.js +11 -7
  51. package/components/menu/dist/auro-menu.d.ts +5 -3
  52. package/components/menu/dist/auro-menuoption.d.ts +6 -4
  53. package/components/menu/dist/index.js +11 -7
  54. package/components/menu/dist/registered.js +11 -7
  55. package/components/radio/demo/customize.min.js +1 -1
  56. package/components/radio/demo/getting-started.min.js +1 -1
  57. package/components/radio/demo/index.min.js +1 -1
  58. package/components/radio/dist/index.js +1 -1
  59. package/components/radio/dist/registered.js +1 -1
  60. package/components/select/demo/api.md +46 -46
  61. package/components/select/demo/customize.md +48 -0
  62. package/components/select/demo/customize.min.js +15 -11
  63. package/components/select/demo/design.md +6 -0
  64. package/components/select/demo/getting-started.min.js +15 -11
  65. package/components/select/demo/index.md +2 -0
  66. package/components/select/demo/index.min.js +15 -11
  67. package/components/select/demo/keyboard-behavior.md +1 -1
  68. package/components/select/demo/voiceover.md +5 -5
  69. package/components/select/dist/auro-select.d.ts +2 -2
  70. package/components/select/dist/index.js +4 -4
  71. package/components/select/dist/registered.js +4 -4
  72. package/custom-elements.json +23 -71
  73. package/package.json +1 -1
@@ -41,7 +41,7 @@ A single-line text field that lets people type a value, such as a name, email ad
41
41
  | autocapitalize | autocapitalize | | `off` \| `none` \| `on` \| `sentences` \| `words` \| `characters` | | behavior | | Sets whether mobile keyboards capitalize text as the user types, such as `words` for names<br>(the input's `autocapitalize`). Does not currently apply: the input clears this value on every<br>update, unless `spellcheck="false"`, which sets it to `none`. |
42
42
  | autocomplete | autocomplete | | string | | behavior | | Sets what the browser can suggest when filling in the field, such as `off` to turn off<br>autofill suggestions (the input's `autocomplete`). Only `autocomplete="off"` is currently supported. |
43
43
  | autocorrect | autocorrect | | `on` \| `off` | | behavior | | Sets whether Safari on iOS corrects words as the user types. Use `off` for names, codes, and<br>other text that isn't made of dictionary words. Always `off` when `spellcheck="false"`. |
44
- | customValidityTypeEmail | customvaliditytypeemail | | string | | behavior | `!noValidate` | Does not currently change any message. To set the error message for an invalid email address,<br>use `setCustomValidityForType`. |
44
+ | customValidityTypeEmail | customvaliditytypeemail | | string | | behavior | | Does not currently change any message. To set the error message for an invalid email address,<br>use `setCustomValidityForType`. |
45
45
  | error | error | | string | | behavior | | Shows an error that stays until you remove the attribute, and sets `validity` to `customError`.<br>The attribute value is the error message, unless `setCustomValidityCustomError` or `setCustomValidity` is set. |
46
46
  | errorMessage | errormessage | | string | | behavior | | Holds the error message shown below the field for the current `validity`.<br>Validation sets it, so read it instead of setting it. |
47
47
  | format | format | | string | | behavior | | Sets the pattern the value is formatted to as the user types, such as `mm/dd/yyyy` for a date or<br>`+1 (000) 000-0000` for a phone number. Outside dates, `0` stands for a digit, `a` for a letter, and `*` for any character.<br>For `type="date"`, it replaces the format that `locale` would set. |
@@ -61,17 +61,17 @@ A single-line text field that lets people type a value, such as a name, email ad
61
61
  | noValidate | novalidate | | boolean | `false` | behavior | | Turns off validation when the input loses focus. Validation still runs when code sets the value<br>or when `validateOnInput` is set. |
62
62
  | pattern | pattern | | string | | behavior | | Sets a regular expression the whole value must match to be valid, such as `[a-z]{1,15}`<br>(the input's `pattern`). Use `setCustomValidityPatternMismatch` to set the error message. |
63
63
  | readonly | readonly | | boolean | | behavior | | Stops the user from editing the value, while code can still set it.<br>A read-only input can still get focus, and doesn't show the clear button. |
64
- | required | required | | boolean | `false` | behavior | `!noValidate` | Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.<br>Use `setCustomValidityValueMissing` to set the error message. |
65
- | setCustomValidity | setcustomvalidity | | string | | behavior | `!noValidate` | Sets one error message for every kind of validation error. When set, it replaces the messages from<br>`error` and every other `setCustomValidity*` property. |
66
- | setCustomValidityBadInput | setcustomvaliditybadinput | | string | | behavior | `!noValidate` | Sets the error message for `validity="badInput"`. Does not currently change any message,<br>because the input never reports `badInput`. |
67
- | setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior | `!noValidate` | Sets the error message shown while the `error` attribute is set, in place of the `error` value. |
68
- | setCustomValidityForType | setcustomvalidityfortype | | string | `undefined` | behavior | `!noValidate` | Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,<br>an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message. |
69
- | setCustomValidityPatternMismatch | setcustomvaliditypatternmismatch | | string | | behavior | `!noValidate` | Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.<br>For `pattern`, it does not currently work when set only as a property, so set the attribute instead. |
70
- | setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is above `max`. |
71
- | setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior | `!noValidate` | Sets the error message shown when the value is below `min`. |
72
- | setCustomValidityTooLong | setcustomvaliditytoolong | | string | | behavior | `!noValidate` | Sets the error message shown when the value is longer than `maxlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
73
- | setCustomValidityTooShort | setcustomvaliditytooshort | | string | | behavior | `!noValidate` | Sets the error message shown when the value is shorter than `minlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
74
- | setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior | `!noValidate` | Sets the error message shown when a `required` input is left empty. |
64
+ | required | required | | boolean | `false` | behavior | | Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.<br>Use `setCustomValidityValueMissing` to set the error message. |
65
+ | setCustomValidity | setcustomvalidity | | string | | behavior | | Sets one error message for every kind of validation error. When set, it replaces the messages from<br>`error` and every other `setCustomValidity*` property. |
66
+ | setCustomValidityBadInput | setcustomvaliditybadinput | | string | | behavior | | Sets the error message for `validity="badInput"`. Does not currently change any message,<br>because the input never reports `badInput`. |
67
+ | setCustomValidityCustomError | setcustomvaliditycustomerror | | string | | behavior | | Sets the error message shown while the `error` attribute is set, in place of the `error` value. |
68
+ | setCustomValidityForType | setcustomvalidityfortype | | string | `undefined` | behavior | | Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,<br>an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message. |
69
+ | setCustomValidityPatternMismatch | setcustomvaliditypatternmismatch | | string | | behavior | | Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.<br>For `pattern`, it does not currently work when set only as a property, so set the attribute instead. |
70
+ | setCustomValidityRangeOverflow | setcustomvalidityrangeoverflow | | string | | behavior | | Sets the error message shown when the value is above `max`. |
71
+ | setCustomValidityRangeUnderflow | setcustomvalidityrangeunderflow | | string | | behavior | | Sets the error message shown when the value is below `min`. |
72
+ | setCustomValidityTooLong | setcustomvaliditytoolong | | string | | behavior | | Sets the error message shown when the value is longer than `maxlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
73
+ | setCustomValidityTooShort | setcustomvaliditytooshort | | string | | behavior | | Sets the error message shown when the value is shorter than `minlength`.<br>Does not currently work when set only as a property, so set the attribute instead. |
74
+ | setCustomValidityValueMissing | setcustomvalidityvaluemissing | | string | | behavior | | Sets the error message shown when a `required` input is left empty. |
75
75
  | spellcheck | spellcheck | | `true` \| `false` | | behavior | | Sets whether the browser checks the value for spelling mistakes (the input's `spellcheck`).<br>Use `false` for codes, names, and other text that isn't made of dictionary words; it also sets `autocorrect` to `off`<br>and `autocapitalize` to `none`. Password inputs always use `false`. |
76
76
  | type | type | | `text` \| `password` \| `email` \| `credit-card` \| `tel` \| `number` \| `date` | `text` | behavior | | Sets the kind of value the input expects, which controls its formatting, validation, and mobile keyboard.<br>`credit-card`, `tel`, and `date` format the value as the user types, and `password` hides the text and adds a show/hide button.<br>The show/hide button appears only in the `classic` layout. |
77
77
  | validateOnInput | validateoninput | | boolean | | behavior | | Validates the value as the user types, instead of waiting until the input loses focus.<br>Use it with `pattern` when the user needs feedback before leaving the field. |
@@ -18,7 +18,7 @@
18
18
  color: var(--ds-basic-color-texticon-default, #2a2a2a);
19
19
  background-color: var(--ds-basic-color-surface-default, #ffffff);
20
20
  border: 1px solid var(--ds-basic-color-border-bold, #585e67);
21
- border-radius: var(--ds-border-radius, 4px);
21
+ border-radius: var(--ds-border-radius, 0.375rem);
22
22
  outline: none;
23
23
  }
24
24
  &#10;.input-field:focus-visible {
@@ -127,12 +127,12 @@
127
127
  <tr>
128
128
  <td>Credit-card detection and formatting</td>
129
129
  <td>Not supported</td>
130
- <td>Auto-detect with icon</td>
130
+ <td>Auto-detect, with an optional icon</td>
131
131
  </tr>
132
132
  <tr>
133
133
  <td>Password show/hide toggle</td>
134
134
  <td>Not supported</td>
135
- <td>Built-in</td>
135
+ <td>Built-in in the <code>classic</code> layout</td>
136
136
  </tr>
137
137
  <tr>
138
138
  <td>Clear button</td>
@@ -152,7 +152,7 @@
152
152
  <tr>
153
153
  <td>Floating label</td>
154
154
  <td>Manual</td>
155
- <td>Automatic</td>
155
+ <td>Automatic in the <code>classic</code> layout</td>
156
156
  </tr>
157
157
  <tr>
158
158
  <td>Display value slot</td>
@@ -314,7 +314,7 @@
314
314
  <p class="body-sm"><strong>en-US with explicit <code>format="yyyy.mm.dd"</code></strong></p>
315
315
  <auro-input type="date" locale="en-US" format="yyyy.mm.dd">
316
316
  <span slot="ariaLabel.clear">Clear date</span>
317
- <span slot="label">en-US with yyyy.mm.dd format</span>
317
+ <span slot="label">en-US with <code>yyyy.mm.dd</code> format</span>
318
318
  <span slot="helpText">Help text</span>
319
319
  </auro-input>
320
320
  <p class="body-sm"><strong>Inherited de-DE (via <code>data-locale</code>)</strong></p>
@@ -354,7 +354,7 @@
354
354
  &#10;&lt;p class="body-sm"&gt;&lt;strong&gt;en-US with explicit &lt;code&gt;format="yyyy.mm.dd"&lt;/code&gt;&lt;/strong&gt;&lt;/p&gt;
355
355
  &lt;auro-input type="date" locale="en-US" format="yyyy.mm.dd"&gt;
356
356
  &lt;span slot="ariaLabel.clear"&gt;Clear date&lt;/span&gt;
357
- &lt;span slot="label"&gt;en-US with yyyy.mm.dd format&lt;/span&gt;
357
+ &lt;span slot="label"&gt;en-US with &lt;code&gt;yyyy.mm.dd&lt;/code&gt; format&lt;/span&gt;
358
358
  &lt;span slot="helpText"&gt;Help text&lt;/span&gt;
359
359
  &lt;/auro-input&gt;
360
360
  &#10;&lt;p class="body-sm"&gt;&lt;strong&gt;Inherited de-DE (via &lt;code&gt;data-locale&lt;/code&gt;)&lt;/strong&gt;&lt;/p&gt;
@@ -972,7 +972,7 @@
972
972
  <div class="exampleWrapper">
973
973
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
974
974
  <!-- The below content is automatically added from ../apiExamples/pattern.html -->
975
- <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Use only lowercase letters, with no spaces.">
975
+ <auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Use 1 to 15 lowercase letters, with no spaces.">
976
976
  <span slot="label">Username</span>
977
977
  <span slot="helpText">Please enter a username.</span>
978
978
  </auro-input>
@@ -982,7 +982,7 @@
982
982
  <span slot="trigger">See code</span>
983
983
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/pattern.html) -->
984
984
  <!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
985
- <pre class="language-html"><code class="language-html">&lt;auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Use only lowercase letters, with no spaces."&gt;
985
+ <pre class="language-html"><code class="language-html">&lt;auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Use 1 to 15 lowercase letters, with no spaces."&gt;
986
986
  &lt;span slot="label"&gt;Username&lt;/span&gt;
987
987
  &lt;span slot="helpText"&gt;Please enter a username.&lt;/span&gt;
988
988
  &lt;/auro-input&gt;</code></pre>
@@ -89,7 +89,7 @@ const watchedItems = new Set();
89
89
  /**
90
90
  * Sets an element's `lang` to the page's language.
91
91
  * @private
92
- * @param {object} item - An element from `watchedItems`.
92
+ * @param {object} item - The element to update.
93
93
  * @param {string} lang - The page's current language.
94
94
  */
95
95
  function setLang(item, lang) {
@@ -10940,7 +10940,6 @@ class BaseInput extends AuroElement {
10940
10940
  /**
10941
10941
  * Does not currently change any message. To set the error message for an invalid email address,
10942
10942
  * use `setCustomValidityForType`.
10943
- * @relevantWhen !noValidate
10944
10943
  * @category behavior
10945
10944
  */
10946
10945
  customValidityTypeEmail: {
@@ -11209,7 +11208,6 @@ class BaseInput extends AuroElement {
11209
11208
  /**
11210
11209
  * Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.
11211
11210
  * Use `setCustomValidityValueMissing` to set the error message.
11212
- * @relevantWhen !noValidate
11213
11211
  * @category behavior
11214
11212
  */
11215
11213
  required: {
@@ -11220,7 +11218,6 @@ class BaseInput extends AuroElement {
11220
11218
  /**
11221
11219
  * Sets one error message for every kind of validation error. When set, it replaces the messages from
11222
11220
  * `error` and every other `setCustomValidity*` property.
11223
- * @relevantWhen !noValidate
11224
11221
  * @category behavior
11225
11222
  */
11226
11223
  setCustomValidity: {
@@ -11231,7 +11228,6 @@ class BaseInput extends AuroElement {
11231
11228
  /**
11232
11229
  * Sets the error message for `validity="badInput"`. Does not currently change any message,
11233
11230
  * because the input never reports `badInput`.
11234
- * @relevantWhen !noValidate
11235
11231
  * @category behavior
11236
11232
  */
11237
11233
  setCustomValidityBadInput: {
@@ -11241,7 +11237,6 @@ class BaseInput extends AuroElement {
11241
11237
 
11242
11238
  /**
11243
11239
  * Sets the error message shown while the `error` attribute is set, in place of the `error` value.
11244
- * @relevantWhen !noValidate
11245
11240
  * @category behavior
11246
11241
  */
11247
11242
  setCustomValidityCustomError: {
@@ -11252,7 +11247,6 @@ class BaseInput extends AuroElement {
11252
11247
  /**
11253
11248
  * Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,
11254
11249
  * an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.
11255
- * @relevantWhen !noValidate
11256
11250
  * @category behavior
11257
11251
  */
11258
11252
  setCustomValidityForType: {
@@ -11263,7 +11257,6 @@ class BaseInput extends AuroElement {
11263
11257
  /**
11264
11258
  * Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.
11265
11259
  * For `pattern`, it does not currently work when set only as a property, so set the attribute instead.
11266
- * @relevantWhen !noValidate
11267
11260
  * @category behavior
11268
11261
  */
11269
11262
  setCustomValidityPatternMismatch: {
@@ -11273,7 +11266,6 @@ class BaseInput extends AuroElement {
11273
11266
 
11274
11267
  /**
11275
11268
  * Sets the error message shown when the value is above `max`.
11276
- * @relevantWhen !noValidate
11277
11269
  * @category behavior
11278
11270
  */
11279
11271
  setCustomValidityRangeOverflow: {
@@ -11283,7 +11275,6 @@ class BaseInput extends AuroElement {
11283
11275
 
11284
11276
  /**
11285
11277
  * Sets the error message shown when the value is below `min`.
11286
- * @relevantWhen !noValidate
11287
11278
  * @category behavior
11288
11279
  */
11289
11280
  setCustomValidityRangeUnderflow: {
@@ -11294,7 +11285,6 @@ class BaseInput extends AuroElement {
11294
11285
  /**
11295
11286
  * Sets the error message shown when the value is longer than `maxlength`.
11296
11287
  * Does not currently work when set only as a property, so set the attribute instead.
11297
- * @relevantWhen !noValidate
11298
11288
  * @category behavior
11299
11289
  */
11300
11290
  setCustomValidityTooLong: {
@@ -11305,7 +11295,6 @@ class BaseInput extends AuroElement {
11305
11295
  /**
11306
11296
  * Sets the error message shown when the value is shorter than `minlength`.
11307
11297
  * Does not currently work when set only as a property, so set the attribute instead.
11308
- * @relevantWhen !noValidate
11309
11298
  * @category behavior
11310
11299
  */
11311
11300
  setCustomValidityTooShort: {
@@ -11315,7 +11304,6 @@ class BaseInput extends AuroElement {
11315
11304
 
11316
11305
  /**
11317
11306
  * Sets the error message shown when a `required` input is left empty.
11318
- * @relevantWhen !noValidate
11319
11307
  * @category behavior
11320
11308
  */
11321
11309
  setCustomValidityValueMissing: {
@@ -12622,7 +12610,7 @@ class AuroHelpText extends i$3 {
12622
12610
  }
12623
12611
  }
12624
12612
 
12625
- var formkitVersion = '202611091610';
12613
+ var formkitVersion = '202611091925';
12626
12614
 
12627
12615
  /**
12628
12616
  * @license
@@ -89,7 +89,7 @@ const watchedItems = new Set();
89
89
  /**
90
90
  * Sets an element's `lang` to the page's language.
91
91
  * @private
92
- * @param {object} item - An element from `watchedItems`.
92
+ * @param {object} item - The element to update.
93
93
  * @param {string} lang - The page's current language.
94
94
  */
95
95
  function setLang(item, lang) {
@@ -10940,7 +10940,6 @@ class BaseInput extends AuroElement {
10940
10940
  /**
10941
10941
  * Does not currently change any message. To set the error message for an invalid email address,
10942
10942
  * use `setCustomValidityForType`.
10943
- * @relevantWhen !noValidate
10944
10943
  * @category behavior
10945
10944
  */
10946
10945
  customValidityTypeEmail: {
@@ -11209,7 +11208,6 @@ class BaseInput extends AuroElement {
11209
11208
  /**
11210
11209
  * Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.
11211
11210
  * Use `setCustomValidityValueMissing` to set the error message.
11212
- * @relevantWhen !noValidate
11213
11211
  * @category behavior
11214
11212
  */
11215
11213
  required: {
@@ -11220,7 +11218,6 @@ class BaseInput extends AuroElement {
11220
11218
  /**
11221
11219
  * Sets one error message for every kind of validation error. When set, it replaces the messages from
11222
11220
  * `error` and every other `setCustomValidity*` property.
11223
- * @relevantWhen !noValidate
11224
11221
  * @category behavior
11225
11222
  */
11226
11223
  setCustomValidity: {
@@ -11231,7 +11228,6 @@ class BaseInput extends AuroElement {
11231
11228
  /**
11232
11229
  * Sets the error message for `validity="badInput"`. Does not currently change any message,
11233
11230
  * because the input never reports `badInput`.
11234
- * @relevantWhen !noValidate
11235
11231
  * @category behavior
11236
11232
  */
11237
11233
  setCustomValidityBadInput: {
@@ -11241,7 +11237,6 @@ class BaseInput extends AuroElement {
11241
11237
 
11242
11238
  /**
11243
11239
  * Sets the error message shown while the `error` attribute is set, in place of the `error` value.
11244
- * @relevantWhen !noValidate
11245
11240
  * @category behavior
11246
11241
  */
11247
11242
  setCustomValidityCustomError: {
@@ -11252,7 +11247,6 @@ class BaseInput extends AuroElement {
11252
11247
  /**
11253
11248
  * Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,
11254
11249
  * an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.
11255
- * @relevantWhen !noValidate
11256
11250
  * @category behavior
11257
11251
  */
11258
11252
  setCustomValidityForType: {
@@ -11263,7 +11257,6 @@ class BaseInput extends AuroElement {
11263
11257
  /**
11264
11258
  * Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.
11265
11259
  * For `pattern`, it does not currently work when set only as a property, so set the attribute instead.
11266
- * @relevantWhen !noValidate
11267
11260
  * @category behavior
11268
11261
  */
11269
11262
  setCustomValidityPatternMismatch: {
@@ -11273,7 +11266,6 @@ class BaseInput extends AuroElement {
11273
11266
 
11274
11267
  /**
11275
11268
  * Sets the error message shown when the value is above `max`.
11276
- * @relevantWhen !noValidate
11277
11269
  * @category behavior
11278
11270
  */
11279
11271
  setCustomValidityRangeOverflow: {
@@ -11283,7 +11275,6 @@ class BaseInput extends AuroElement {
11283
11275
 
11284
11276
  /**
11285
11277
  * Sets the error message shown when the value is below `min`.
11286
- * @relevantWhen !noValidate
11287
11278
  * @category behavior
11288
11279
  */
11289
11280
  setCustomValidityRangeUnderflow: {
@@ -11294,7 +11285,6 @@ class BaseInput extends AuroElement {
11294
11285
  /**
11295
11286
  * Sets the error message shown when the value is longer than `maxlength`.
11296
11287
  * Does not currently work when set only as a property, so set the attribute instead.
11297
- * @relevantWhen !noValidate
11298
11288
  * @category behavior
11299
11289
  */
11300
11290
  setCustomValidityTooLong: {
@@ -11305,7 +11295,6 @@ class BaseInput extends AuroElement {
11305
11295
  /**
11306
11296
  * Sets the error message shown when the value is shorter than `minlength`.
11307
11297
  * Does not currently work when set only as a property, so set the attribute instead.
11308
- * @relevantWhen !noValidate
11309
11298
  * @category behavior
11310
11299
  */
11311
11300
  setCustomValidityTooShort: {
@@ -11315,7 +11304,6 @@ class BaseInput extends AuroElement {
11315
11304
 
11316
11305
  /**
11317
11306
  * Sets the error message shown when a `required` input is left empty.
11318
- * @relevantWhen !noValidate
11319
11307
  * @category behavior
11320
11308
  */
11321
11309
  setCustomValidityValueMissing: {
@@ -12622,7 +12610,7 @@ class AuroHelpText extends i$3 {
12622
12610
  }
12623
12611
  }
12624
12612
 
12625
- var formkitVersion = '202611091610';
12613
+ var formkitVersion = '202611091925';
12626
12614
 
12627
12615
  /**
12628
12616
  * @license
@@ -89,7 +89,7 @@ const watchedItems = new Set();
89
89
  /**
90
90
  * Sets an element's `lang` to the page's language.
91
91
  * @private
92
- * @param {object} item - An element from `watchedItems`.
92
+ * @param {object} item - The element to update.
93
93
  * @param {string} lang - The page's current language.
94
94
  */
95
95
  function setLang(item, lang) {
@@ -10940,7 +10940,6 @@ class BaseInput extends AuroElement {
10940
10940
  /**
10941
10941
  * Does not currently change any message. To set the error message for an invalid email address,
10942
10942
  * use `setCustomValidityForType`.
10943
- * @relevantWhen !noValidate
10944
10943
  * @category behavior
10945
10944
  */
10946
10945
  customValidityTypeEmail: {
@@ -11209,7 +11208,6 @@ class BaseInput extends AuroElement {
11209
11208
  /**
11210
11209
  * Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.
11211
11210
  * Use `setCustomValidityValueMissing` to set the error message.
11212
- * @relevantWhen !noValidate
11213
11211
  * @category behavior
11214
11212
  */
11215
11213
  required: {
@@ -11220,7 +11218,6 @@ class BaseInput extends AuroElement {
11220
11218
  /**
11221
11219
  * Sets one error message for every kind of validation error. When set, it replaces the messages from
11222
11220
  * `error` and every other `setCustomValidity*` property.
11223
- * @relevantWhen !noValidate
11224
11221
  * @category behavior
11225
11222
  */
11226
11223
  setCustomValidity: {
@@ -11231,7 +11228,6 @@ class BaseInput extends AuroElement {
11231
11228
  /**
11232
11229
  * Sets the error message for `validity="badInput"`. Does not currently change any message,
11233
11230
  * because the input never reports `badInput`.
11234
- * @relevantWhen !noValidate
11235
11231
  * @category behavior
11236
11232
  */
11237
11233
  setCustomValidityBadInput: {
@@ -11241,7 +11237,6 @@ class BaseInput extends AuroElement {
11241
11237
 
11242
11238
  /**
11243
11239
  * Sets the error message shown while the `error` attribute is set, in place of the `error` value.
11244
- * @relevantWhen !noValidate
11245
11240
  * @category behavior
11246
11241
  */
11247
11242
  setCustomValidityCustomError: {
@@ -11252,7 +11247,6 @@ class BaseInput extends AuroElement {
11252
11247
  /**
11253
11248
  * Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,
11254
11249
  * an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.
11255
- * @relevantWhen !noValidate
11256
11250
  * @category behavior
11257
11251
  */
11258
11252
  setCustomValidityForType: {
@@ -11263,7 +11257,6 @@ class BaseInput extends AuroElement {
11263
11257
  /**
11264
11258
  * Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.
11265
11259
  * For `pattern`, it does not currently work when set only as a property, so set the attribute instead.
11266
- * @relevantWhen !noValidate
11267
11260
  * @category behavior
11268
11261
  */
11269
11262
  setCustomValidityPatternMismatch: {
@@ -11273,7 +11266,6 @@ class BaseInput extends AuroElement {
11273
11266
 
11274
11267
  /**
11275
11268
  * Sets the error message shown when the value is above `max`.
11276
- * @relevantWhen !noValidate
11277
11269
  * @category behavior
11278
11270
  */
11279
11271
  setCustomValidityRangeOverflow: {
@@ -11283,7 +11275,6 @@ class BaseInput extends AuroElement {
11283
11275
 
11284
11276
  /**
11285
11277
  * Sets the error message shown when the value is below `min`.
11286
- * @relevantWhen !noValidate
11287
11278
  * @category behavior
11288
11279
  */
11289
11280
  setCustomValidityRangeUnderflow: {
@@ -11294,7 +11285,6 @@ class BaseInput extends AuroElement {
11294
11285
  /**
11295
11286
  * Sets the error message shown when the value is longer than `maxlength`.
11296
11287
  * Does not currently work when set only as a property, so set the attribute instead.
11297
- * @relevantWhen !noValidate
11298
11288
  * @category behavior
11299
11289
  */
11300
11290
  setCustomValidityTooLong: {
@@ -11305,7 +11295,6 @@ class BaseInput extends AuroElement {
11305
11295
  /**
11306
11296
  * Sets the error message shown when the value is shorter than `minlength`.
11307
11297
  * Does not currently work when set only as a property, so set the attribute instead.
11308
- * @relevantWhen !noValidate
11309
11298
  * @category behavior
11310
11299
  */
11311
11300
  setCustomValidityTooShort: {
@@ -11315,7 +11304,6 @@ class BaseInput extends AuroElement {
11315
11304
 
11316
11305
  /**
11317
11306
  * Sets the error message shown when a `required` input is left empty.
11318
- * @relevantWhen !noValidate
11319
11307
  * @category behavior
11320
11308
  */
11321
11309
  setCustomValidityValueMissing: {
@@ -12622,7 +12610,7 @@ class AuroHelpText extends i$3 {
12622
12610
  }
12623
12611
  }
12624
12612
 
12625
- var formkitVersion = '202611091610';
12613
+ var formkitVersion = '202611091925';
12626
12614
 
12627
12615
  /**
12628
12616
  * @license
@@ -53,7 +53,7 @@
53
53
  <li>Tab skips the element, because the inner <code>&lt;input&gt;</code> element is disabled.</li>
54
54
  <li>The user can't interact with it: they can't enter text, and the clear button isn't shown.</li>
55
55
  </ul>
56
- <p>Key distinction from <code>aria-hidden</code>: A disabled element is <em>reachable but not operable</em>. If you want VoiceOver to skip it entirely, you would need <code>aria-hidden="true"</code> or <code>tabindex="-1"</code>, but that's generally not recommended for disabled controls, because users benefit from knowing the field exists and why it may be unavailable.</p>
56
+ <p>Key distinction from <code>aria-hidden</code>: A disabled element is <em>reachable but not operable</em>. Tab skips it, but VoiceOver can still move to it and read it. If you want VoiceOver to skip it entirely, you would need <code>aria-hidden="true"</code>, but that's generally not recommended for disabled controls, because users benefit from knowing the field exists and why it may be unavailable.</p>
57
57
  <p>This is consistent across NVDA and JAWS as well, though the announcement wording differs. For example, NVDA says <em>"unavailable"</em>.</p>
58
58
  <auro-header level="3" id="voiceOverStateInvalid">Invalid</auro-header>
59
59
  <p>When an <code>&lt;auro-input&gt;</code> is invalid the following occurs:</p>
@@ -78,7 +78,7 @@
78
78
  <tr>
79
79
  <td>Credit card detection</td>
80
80
  <td>No</td>
81
- <td>Auto-detect with icon and formatting</td>
81
+ <td>Auto-detect and formatting, with an optional icon</td>
82
82
  </tr>
83
83
  <tr>
84
84
  <td>Custom validation messages</td>
@@ -93,7 +93,7 @@
93
93
  <tr>
94
94
  <td>Password show/hide</td>
95
95
  <td>No</td>
96
- <td>Built-in toggle</td>
96
+ <td>Built-in toggle in the <code>classic</code> layout</td>
97
97
  </tr>
98
98
  <tr>
99
99
  <td>Display value masking</td>
@@ -128,7 +128,6 @@ export default class BaseInput extends AuroElement {
128
128
  /**
129
129
  * Does not currently change any message. To set the error message for an invalid email address,
130
130
  * use `setCustomValidityForType`.
131
- * @relevantWhen !noValidate
132
131
  * @category behavior
133
132
  */
134
133
  customValidityTypeEmail: {
@@ -370,7 +369,6 @@ export default class BaseInput extends AuroElement {
370
369
  /**
371
370
  * Makes the input invalid when it's left empty, and removes the " (optional)" text after the label.
372
371
  * Use `setCustomValidityValueMissing` to set the error message.
373
- * @relevantWhen !noValidate
374
372
  * @category behavior
375
373
  */
376
374
  required: {
@@ -380,7 +378,6 @@ export default class BaseInput extends AuroElement {
380
378
  /**
381
379
  * Sets one error message for every kind of validation error. When set, it replaces the messages from
382
380
  * `error` and every other `setCustomValidity*` property.
383
- * @relevantWhen !noValidate
384
381
  * @category behavior
385
382
  */
386
383
  setCustomValidity: {
@@ -390,7 +387,6 @@ export default class BaseInput extends AuroElement {
390
387
  /**
391
388
  * Sets the error message for `validity="badInput"`. Does not currently change any message,
392
389
  * because the input never reports `badInput`.
393
- * @relevantWhen !noValidate
394
390
  * @category behavior
395
391
  */
396
392
  setCustomValidityBadInput: {
@@ -399,7 +395,6 @@ export default class BaseInput extends AuroElement {
399
395
  };
400
396
  /**
401
397
  * Sets the error message shown while the `error` attribute is set, in place of the `error` value.
402
- * @relevantWhen !noValidate
403
398
  * @category behavior
404
399
  */
405
400
  setCustomValidityCustomError: {
@@ -409,7 +404,6 @@ export default class BaseInput extends AuroElement {
409
404
  /**
410
405
  * Sets the error message shown when the value doesn't fit its `type`, such as a badly formed email address,
411
406
  * an incomplete card number, or an incomplete date. When not set, `email`, `credit-card`, and most `date` inputs use a built-in message.
412
- * @relevantWhen !noValidate
413
407
  * @category behavior
414
408
  */
415
409
  setCustomValidityForType: {
@@ -419,7 +413,6 @@ export default class BaseInput extends AuroElement {
419
413
  /**
420
414
  * Sets the error message shown when the value doesn't match `pattern`, or when a date isn't a real calendar date.
421
415
  * For `pattern`, it does not currently work when set only as a property, so set the attribute instead.
422
- * @relevantWhen !noValidate
423
416
  * @category behavior
424
417
  */
425
418
  setCustomValidityPatternMismatch: {
@@ -428,7 +421,6 @@ export default class BaseInput extends AuroElement {
428
421
  };
429
422
  /**
430
423
  * Sets the error message shown when the value is above `max`.
431
- * @relevantWhen !noValidate
432
424
  * @category behavior
433
425
  */
434
426
  setCustomValidityRangeOverflow: {
@@ -437,7 +429,6 @@ export default class BaseInput extends AuroElement {
437
429
  };
438
430
  /**
439
431
  * Sets the error message shown when the value is below `min`.
440
- * @relevantWhen !noValidate
441
432
  * @category behavior
442
433
  */
443
434
  setCustomValidityRangeUnderflow: {
@@ -447,7 +438,6 @@ export default class BaseInput extends AuroElement {
447
438
  /**
448
439
  * Sets the error message shown when the value is longer than `maxlength`.
449
440
  * Does not currently work when set only as a property, so set the attribute instead.
450
- * @relevantWhen !noValidate
451
441
  * @category behavior
452
442
  */
453
443
  setCustomValidityTooLong: {
@@ -457,7 +447,6 @@ export default class BaseInput extends AuroElement {
457
447
  /**
458
448
  * Sets the error message shown when the value is shorter than `minlength`.
459
449
  * Does not currently work when set only as a property, so set the attribute instead.
460
- * @relevantWhen !noValidate
461
450
  * @category behavior
462
451
  */
463
452
  setCustomValidityTooShort: {
@@ -466,7 +455,6 @@ export default class BaseInput extends AuroElement {
466
455
  };
467
456
  /**
468
457
  * Sets the error message shown when a `required` input is left empty.
469
- * @relevantWhen !noValidate
470
458
  * @category behavior
471
459
  */
472
460
  setCustomValidityValueMissing: {