@aurodesignsystem/auro-formkit 3.3.0 → 3.4.1-rc-602.2.1

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 (52) hide show
  1. package/CHANGELOG.md +3 -1742
  2. package/components/checkbox/README.md +1 -1
  3. package/components/checkbox/demo/api.md +0 -1
  4. package/components/checkbox/demo/api.min.js +3 -1
  5. package/components/checkbox/demo/index.min.js +3 -1
  6. package/components/checkbox/demo/readme.md +1 -1
  7. package/components/checkbox/dist/auro-checkbox.d.ts +1 -0
  8. package/components/checkbox/dist/index.js +3 -1
  9. package/components/checkbox/dist/registered.js +3 -1
  10. package/components/combobox/README.md +1 -1
  11. package/components/combobox/demo/api.md +44 -0
  12. package/components/combobox/demo/api.min.js +18 -3
  13. package/components/combobox/demo/index.min.js +18 -3
  14. package/components/combobox/demo/readme.md +1 -1
  15. package/components/combobox/dist/auro-combobox.d.ts +6 -0
  16. package/components/combobox/dist/index.js +18 -3
  17. package/components/combobox/dist/registered.js +18 -3
  18. package/components/counter/README.md +1 -1
  19. package/components/counter/demo/readme.md +1 -1
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +30 -0
  22. package/components/datepicker/demo/api.min.js +18 -3
  23. package/components/datepicker/demo/index.min.js +18 -3
  24. package/components/datepicker/demo/readme.md +1 -1
  25. package/components/datepicker/dist/auro-datepicker.d.ts +6 -0
  26. package/components/datepicker/dist/index.js +18 -3
  27. package/components/datepicker/dist/registered.js +18 -3
  28. package/components/dropdown/README.md +1 -1
  29. package/components/dropdown/demo/readme.md +1 -1
  30. package/components/form/README.md +1 -1
  31. package/components/form/demo/readme.md +1 -1
  32. package/components/input/README.md +1 -1
  33. package/components/input/demo/api.md +24 -0
  34. package/components/input/demo/api.min.js +10 -3
  35. package/components/input/demo/index.min.js +10 -3
  36. package/components/input/demo/readme.md +1 -1
  37. package/components/input/dist/base-input.d.ts +7 -0
  38. package/components/input/dist/index.js +10 -3
  39. package/components/input/dist/registered.js +10 -3
  40. package/components/menu/README.md +1 -1
  41. package/components/menu/demo/readme.md +1 -1
  42. package/components/radio/README.md +1 -1
  43. package/components/radio/demo/api.md +0 -1
  44. package/components/radio/demo/api.min.js +7 -1
  45. package/components/radio/demo/index.min.js +7 -1
  46. package/components/radio/demo/readme.md +1 -1
  47. package/components/radio/dist/auro-radio.d.ts +5 -0
  48. package/components/radio/dist/index.js +7 -1
  49. package/components/radio/dist/registered.js +7 -1
  50. package/components/select/README.md +1 -1
  51. package/components/select/demo/readme.md +1 -1
  52. package/package.json +1 -1
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
106
106
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
107
107
 
108
108
  ```html
109
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-checkbox/+esm"></script>
109
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-checkbox/+esm"></script>
110
110
  ```
111
111
  <!-- AURO-GENERATED-CONTENT:END -->
112
112
 
@@ -56,7 +56,6 @@ Custom element for the purpose of allowing users to select one or more options o
56
56
  | [id](#id) | `id` | `string` | | Sets the individual `id` per element. |
57
57
  | [name](#name) | `name` | `string` | | Accepts any string and is used to identify related checkboxes when submitting form data. |
58
58
  | [onDark](#onDark) | `onDark` | `boolean` | false | Sets onDark styles for component. |
59
- | [touched](#touched) | `touched` | `boolean` | false | Indicates whether the checkbox has been interacted with. |
60
59
  | [value](#value) | `value` | `string` | | Sets the element's input value. Must be unique within an auro-checkbox-group element. |
61
60
 
62
61
  ## Methods
@@ -231,10 +231,12 @@ class AuroCheckbox extends i$2 {
231
231
  /**
232
232
  * Indicates whether the checkbox has been interacted with.
233
233
  * @type {boolean}
234
+ * @private
234
235
  */
235
236
  touched: {
236
237
  type: Boolean,
237
- reflect: true
238
+ reflect: true,
239
+ attribute: false
238
240
  }
239
241
  };
240
242
  }
@@ -223,10 +223,12 @@ class AuroCheckbox extends i$2 {
223
223
  /**
224
224
  * Indicates whether the checkbox has been interacted with.
225
225
  * @type {boolean}
226
+ * @private
226
227
  */
227
228
  touched: {
228
229
  type: Boolean,
229
- reflect: true
230
+ reflect: true,
231
+ attribute: false
230
232
  }
231
233
  };
232
234
  }
@@ -106,7 +106,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
106
106
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
107
107
 
108
108
  ```html
109
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-checkbox/+esm"></script>
109
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-checkbox/+esm"></script>
110
110
  ```
111
111
  <!-- AURO-GENERATED-CONTENT:END -->
112
112
 
@@ -58,6 +58,7 @@ export class AuroCheckbox extends LitElement {
58
58
  /**
59
59
  * Indicates whether the checkbox has been interacted with.
60
60
  * @type {boolean}
61
+ * @private
61
62
  */
62
63
  touched: boolean;
63
64
  };
@@ -183,10 +183,12 @@ class AuroCheckbox extends LitElement {
183
183
  /**
184
184
  * Indicates whether the checkbox has been interacted with.
185
185
  * @type {boolean}
186
+ * @private
186
187
  */
187
188
  touched: {
188
189
  type: Boolean,
189
- reflect: true
190
+ reflect: true,
191
+ attribute: false
190
192
  }
191
193
  };
192
194
  }
@@ -183,10 +183,12 @@ class AuroCheckbox extends LitElement {
183
183
  /**
184
184
  * Indicates whether the checkbox has been interacted with.
185
185
  * @type {boolean}
186
+ * @private
186
187
  */
187
188
  touched: {
188
189
  type: Boolean,
189
- reflect: true
190
+ reflect: true,
191
+ attribute: false
190
192
  }
191
193
  };
192
194
  }
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
111
111
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
112
112
 
113
113
  ```html
114
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-combobox/+esm"></script>
114
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-combobox/+esm"></script>
115
115
  ```
116
116
  <!-- AURO-GENERATED-CONTENT:END -->
117
117
 
@@ -13,6 +13,7 @@
13
13
  | [disabled](#disabled) | `disabled` | `boolean` | | If set, disables the combobox. |
14
14
  | [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
15
15
  | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
16
+ | [inputmode](#inputmode) | `inputmode` | `string` | | Exposes inputmode attribute for input. |
16
17
  | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
17
18
  | [noFilter](#noFilter) | `noFilter` | `boolean` | | If set, combobox will not filter menuoptions based in input. |
18
19
  | [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
@@ -317,6 +318,49 @@ If set, disables the combobox.
317
318
  <!-- AURO-GENERATED-CONTENT:END -->
318
319
  </auro-accordion>
319
320
 
321
+ #### Input Mode
322
+
323
+ You can manually set the input mode for the input.
324
+
325
+ <div class="exampleWrapper">
326
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
327
+ <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
328
+ <auro-combobox inputmode="numeric">
329
+ <span slot="bib.fullscreen.headline">Bib Header</span>
330
+ <span slot="label">Name</span>
331
+ <auro-menu>
332
+ <auro-menuoption value="1" id="option-0">1</auro-menuoption>
333
+ <auro-menuoption value="2" id="option-1">2</auro-menuoption>
334
+ <auro-menuoption value="3" id="option-2">3</auro-menuoption>
335
+ <auro-menuoption value="4" id="option-3">4</auro-menuoption>
336
+ <auro-menuoption value="5" id="option-4">5</auro-menuoption>
337
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
338
+ </auro-menu>
339
+ </auro-combobox>
340
+ <!-- AURO-GENERATED-CONTENT:END -->
341
+ </div>
342
+ <auro-accordion alignRight>
343
+ <span slot="trigger">See code</span>
344
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inputmode.html) -->
345
+ <!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
346
+
347
+ ```html
348
+ <auro-combobox inputmode="numeric">
349
+ <span slot="bib.fullscreen.headline">Bib Header</span>
350
+ <span slot="label">Name</span>
351
+ <auro-menu>
352
+ <auro-menuoption value="1" id="option-0">1</auro-menuoption>
353
+ <auro-menuoption value="2" id="option-1">2</auro-menuoption>
354
+ <auro-menuoption value="3" id="option-2">3</auro-menuoption>
355
+ <auro-menuoption value="4" id="option-3">4</auro-menuoption>
356
+ <auro-menuoption value="5" id="option-4">5</auro-menuoption>
357
+ <auro-menuoption static nomatch>No matching option</auro-menuoption>
358
+ </auro-menu>
359
+ </auro-combobox>
360
+ ```
361
+ <!-- AURO-GENERATED-CONTENT:END -->
362
+ </auro-accordion>
363
+
320
364
  #### noFilter
321
365
 
322
366
  If set, combobox will not do suggestion filtering of the menuoptions. This option is useful when the `<auro-menuoption>` elements are being pre-filtered externally to combobox (e.g. using the citysearch API).
@@ -9836,6 +9836,13 @@ class BaseInput extends i$2 {
9836
9836
  type: String
9837
9837
  },
9838
9838
 
9839
+ /** Exposes inputmode attribute for input. */
9840
+ inputmode: {
9841
+ type: String,
9842
+ attribute: true,
9843
+ reflect: true
9844
+ },
9845
+
9839
9846
  /**
9840
9847
  * Defines the language of an element.
9841
9848
  */
@@ -10401,9 +10408,9 @@ class BaseInput extends i$2 {
10401
10408
 
10402
10409
  if (this.type in defaultLengths) {
10403
10410
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
10404
- this.inputMode = 'numeric';
10411
+ this.inputmode = this.inputmode || 'numeric';
10405
10412
  } else if (this.type === 'number') {
10406
- this.inputMode = 'numeric';
10413
+ this.inputmode = this.inputmode || 'numeric';
10407
10414
  }
10408
10415
 
10409
10416
  if (this.type === "date" && !this.format) {
@@ -11761,7 +11768,7 @@ class AuroInput extends BaseInput {
11761
11768
  pattern="${o(this.definePattern())}"
11762
11769
  maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
11763
11770
  minlength="${o(this.minLength ? this.minLength : undefined)}"
11764
- inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
11771
+ inputMode="${o(this.inputmode ? this.inputmode : undefined)}"
11765
11772
  ?required="${this.required}"
11766
11773
  ?disabled="${this.disabled}"
11767
11774
  aria-describedby="${this.uniqueId}"
@@ -12820,6 +12827,13 @@ class AuroCombobox extends i$2 {
12820
12827
  reflect: true
12821
12828
  },
12822
12829
 
12830
+ /** Exposes inputmode attribute for input. */
12831
+ inputmode: {
12832
+ type: String,
12833
+ attribute: true,
12834
+ reflect: true
12835
+ },
12836
+
12823
12837
  /**
12824
12838
  * If set, combobox will not filter menuoptions based in input.
12825
12839
  */
@@ -13700,6 +13714,7 @@ class AuroCombobox extends i$2 {
13700
13714
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
13701
13715
  .autocomplete="${this.autocomplete}"
13702
13716
  .type="${this.type}"
13717
+ inputmode="${o(this.inputmode)}"
13703
13718
  @input="${this.handleInputValueChange}">
13704
13719
  </${this.inputTag}>
13705
13720
 
@@ -9694,6 +9694,13 @@ class BaseInput extends i$2 {
9694
9694
  type: String
9695
9695
  },
9696
9696
 
9697
+ /** Exposes inputmode attribute for input. */
9698
+ inputmode: {
9699
+ type: String,
9700
+ attribute: true,
9701
+ reflect: true
9702
+ },
9703
+
9697
9704
  /**
9698
9705
  * Defines the language of an element.
9699
9706
  */
@@ -10259,9 +10266,9 @@ class BaseInput extends i$2 {
10259
10266
 
10260
10267
  if (this.type in defaultLengths) {
10261
10268
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
10262
- this.inputMode = 'numeric';
10269
+ this.inputmode = this.inputmode || 'numeric';
10263
10270
  } else if (this.type === 'number') {
10264
- this.inputMode = 'numeric';
10271
+ this.inputmode = this.inputmode || 'numeric';
10265
10272
  }
10266
10273
 
10267
10274
  if (this.type === "date" && !this.format) {
@@ -11619,7 +11626,7 @@ class AuroInput extends BaseInput {
11619
11626
  pattern="${o(this.definePattern())}"
11620
11627
  maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
11621
11628
  minlength="${o(this.minLength ? this.minLength : undefined)}"
11622
- inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
11629
+ inputMode="${o(this.inputmode ? this.inputmode : undefined)}"
11623
11630
  ?required="${this.required}"
11624
11631
  ?disabled="${this.disabled}"
11625
11632
  aria-describedby="${this.uniqueId}"
@@ -12678,6 +12685,13 @@ class AuroCombobox extends i$2 {
12678
12685
  reflect: true
12679
12686
  },
12680
12687
 
12688
+ /** Exposes inputmode attribute for input. */
12689
+ inputmode: {
12690
+ type: String,
12691
+ attribute: true,
12692
+ reflect: true
12693
+ },
12694
+
12681
12695
  /**
12682
12696
  * If set, combobox will not filter menuoptions based in input.
12683
12697
  */
@@ -13558,6 +13572,7 @@ class AuroCombobox extends i$2 {
13558
13572
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
13559
13573
  .autocomplete="${this.autocomplete}"
13560
13574
  .type="${this.type}"
13575
+ inputmode="${o(this.inputmode)}"
13561
13576
  @input="${this.handleInputValueChange}">
13562
13577
  </${this.inputTag}>
13563
13578
 
@@ -111,7 +111,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
111
111
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
112
112
 
113
113
  ```html
114
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-combobox/+esm"></script>
114
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-combobox/+esm"></script>
115
115
  ```
116
116
  <!-- AURO-GENERATED-CONTENT:END -->
117
117
 
@@ -62,6 +62,12 @@ export class AuroCombobox extends LitElement {
62
62
  type: StringConstructor;
63
63
  reflect: boolean;
64
64
  };
65
+ /** Exposes inputmode attribute for input. */
66
+ inputmode: {
67
+ type: StringConstructor;
68
+ attribute: boolean;
69
+ reflect: boolean;
70
+ };
65
71
  /**
66
72
  * If set, combobox will not filter menuoptions based in input.
67
73
  */
@@ -9612,6 +9612,13 @@ class BaseInput extends LitElement {
9612
9612
  type: String
9613
9613
  },
9614
9614
 
9615
+ /** Exposes inputmode attribute for input. */
9616
+ inputmode: {
9617
+ type: String,
9618
+ attribute: true,
9619
+ reflect: true
9620
+ },
9621
+
9615
9622
  /**
9616
9623
  * Defines the language of an element.
9617
9624
  */
@@ -10177,9 +10184,9 @@ class BaseInput extends LitElement {
10177
10184
 
10178
10185
  if (this.type in defaultLengths) {
10179
10186
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
10180
- this.inputMode = 'numeric';
10187
+ this.inputmode = this.inputmode || 'numeric';
10181
10188
  } else if (this.type === 'number') {
10182
- this.inputMode = 'numeric';
10189
+ this.inputmode = this.inputmode || 'numeric';
10183
10190
  }
10184
10191
 
10185
10192
  if (this.type === "date" && !this.format) {
@@ -11537,7 +11544,7 @@ class AuroInput extends BaseInput {
11537
11544
  pattern="${ifDefined(this.definePattern())}"
11538
11545
  maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
11539
11546
  minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
11540
- inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
11547
+ inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
11541
11548
  ?required="${this.required}"
11542
11549
  ?disabled="${this.disabled}"
11543
11550
  aria-describedby="${this.uniqueId}"
@@ -12596,6 +12603,13 @@ class AuroCombobox extends LitElement {
12596
12603
  reflect: true
12597
12604
  },
12598
12605
 
12606
+ /** Exposes inputmode attribute for input. */
12607
+ inputmode: {
12608
+ type: String,
12609
+ attribute: true,
12610
+ reflect: true
12611
+ },
12612
+
12599
12613
  /**
12600
12614
  * If set, combobox will not filter menuoptions based in input.
12601
12615
  */
@@ -13476,6 +13490,7 @@ class AuroCombobox extends LitElement {
13476
13490
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
13477
13491
  .autocomplete="${this.autocomplete}"
13478
13492
  .type="${this.type}"
13493
+ inputmode="${ifDefined(this.inputmode)}"
13479
13494
  @input="${this.handleInputValueChange}">
13480
13495
  </${this.inputTag}>
13481
13496
 
@@ -9612,6 +9612,13 @@ class BaseInput extends LitElement {
9612
9612
  type: String
9613
9613
  },
9614
9614
 
9615
+ /** Exposes inputmode attribute for input. */
9616
+ inputmode: {
9617
+ type: String,
9618
+ attribute: true,
9619
+ reflect: true
9620
+ },
9621
+
9615
9622
  /**
9616
9623
  * Defines the language of an element.
9617
9624
  */
@@ -10177,9 +10184,9 @@ class BaseInput extends LitElement {
10177
10184
 
10178
10185
  if (this.type in defaultLengths) {
10179
10186
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
10180
- this.inputMode = 'numeric';
10187
+ this.inputmode = this.inputmode || 'numeric';
10181
10188
  } else if (this.type === 'number') {
10182
- this.inputMode = 'numeric';
10189
+ this.inputmode = this.inputmode || 'numeric';
10183
10190
  }
10184
10191
 
10185
10192
  if (this.type === "date" && !this.format) {
@@ -11537,7 +11544,7 @@ class AuroInput extends BaseInput {
11537
11544
  pattern="${ifDefined(this.definePattern())}"
11538
11545
  maxlength="${ifDefined(this.maxLength ? this.maxLength : undefined)}"
11539
11546
  minlength="${ifDefined(this.minLength ? this.minLength : undefined)}"
11540
- inputMode="${ifDefined(this.inputMode ? this.inputMode : undefined)}"
11547
+ inputMode="${ifDefined(this.inputmode ? this.inputmode : undefined)}"
11541
11548
  ?required="${this.required}"
11542
11549
  ?disabled="${this.disabled}"
11543
11550
  aria-describedby="${this.uniqueId}"
@@ -12596,6 +12603,13 @@ class AuroCombobox extends LitElement {
12596
12603
  reflect: true
12597
12604
  },
12598
12605
 
12606
+ /** Exposes inputmode attribute for input. */
12607
+ inputmode: {
12608
+ type: String,
12609
+ attribute: true,
12610
+ reflect: true
12611
+ },
12612
+
12599
12613
  /**
12600
12614
  * If set, combobox will not filter menuoptions based in input.
12601
12615
  */
@@ -13476,6 +13490,7 @@ class AuroCombobox extends LitElement {
13476
13490
  setCustomValidityCustomError="${this.setCustomValidityCustomError}"
13477
13491
  .autocomplete="${this.autocomplete}"
13478
13492
  .type="${this.type}"
13493
+ inputmode="${ifDefined(this.inputmode)}"
13479
13494
  @input="${this.handleInputValueChange}">
13480
13495
  </${this.inputTag}>
13481
13496
 
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-counter/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -110,7 +110,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
110
110
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
111
111
 
112
112
  ```html
113
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-counter/+esm"></script>
113
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-counter/+esm"></script>
114
114
  ```
115
115
  <!-- AURO-GENERATED-CONTENT:END -->
116
116
 
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
104
104
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
105
105
 
106
106
  ```html
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
108
108
  ```
109
109
  <!-- AURO-GENERATED-CONTENT:END -->
110
110
 
@@ -16,6 +16,7 @@
16
16
  | [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
17
17
  | [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
18
18
  | [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
19
+ | [inputmode](#inputmode) | `inputmode` | | `string` | | Exposes inputmode attribute for input. |
19
20
  | [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
20
21
  | [maxDate](#maxDate) | `maxDate` | | `string` | | Maximum date. All dates after will be disabled. |
21
22
  | [minDate](#minDate) | `minDate` | | `string` | | Minimum date. All dates before will be disabled. |
@@ -222,6 +223,35 @@ export function errorExample() {
222
223
  <!-- AURO-GENERATED-CONTENT:END -->
223
224
  </auro-accordion>
224
225
 
226
+ #### Input Mode
227
+
228
+ You can manually set the input mode for the input.
229
+
230
+ <div class="exampleWrapper">
231
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/inputmode.html) -->
232
+ <!-- The below content is automatically added from ./../apiExamples/inputmode.html -->
233
+ <auro-datepicker inputmode="numeric">
234
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
235
+ <span slot="fromLabel">Choose a date</span>
236
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
237
+ </auro-datepicker>
238
+ <!-- AURO-GENERATED-CONTENT:END -->
239
+ </div>
240
+ <auro-accordion alignRight>
241
+ <span slot="trigger">See code</span>
242
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/inputmode.html) -->
243
+ <!-- The below code snippet is automatically added from ./../apiExamples/inputmode.html -->
244
+
245
+ ```html
246
+ <auro-datepicker inputmode="numeric">
247
+ <span slot="bib.fullscreen.headline">Datepicker Headline</span>
248
+ <span slot="fromLabel">Choose a date</span>
249
+ <span slot="bib.fullscreen.dateLabel">Choose a date</span>
250
+ </auro-datepicker>
251
+ ```
252
+ <!-- AURO-GENERATED-CONTENT:END -->
253
+ </auro-accordion>
254
+
225
255
  #### calendarStartDate & calendarEndDate
226
256
 
227
257
  The `calendarStartDate` and `calendarEndDate` properties may be used to explicitly control which calendar months _may_ be rendered in the calendar.
@@ -21306,6 +21306,13 @@ class BaseInput extends i$2 {
21306
21306
  type: String
21307
21307
  },
21308
21308
 
21309
+ /** Exposes inputmode attribute for input. */
21310
+ inputmode: {
21311
+ type: String,
21312
+ attribute: true,
21313
+ reflect: true
21314
+ },
21315
+
21309
21316
  /**
21310
21317
  * Defines the language of an element.
21311
21318
  */
@@ -21871,9 +21878,9 @@ class BaseInput extends i$2 {
21871
21878
 
21872
21879
  if (this.type in defaultLengths) {
21873
21880
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
21874
- this.inputMode = 'numeric';
21881
+ this.inputmode = this.inputmode || 'numeric';
21875
21882
  } else if (this.type === 'number') {
21876
- this.inputMode = 'numeric';
21883
+ this.inputmode = this.inputmode || 'numeric';
21877
21884
  }
21878
21885
 
21879
21886
  if (this.type === "date" && !this.format) {
@@ -23231,7 +23238,7 @@ class AuroInput extends BaseInput {
23231
23238
  pattern="${o(this.definePattern())}"
23232
23239
  maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
23233
23240
  minlength="${o(this.minLength ? this.minLength : undefined)}"
23234
- inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
23241
+ inputMode="${o(this.inputmode ? this.inputmode : undefined)}"
23235
23242
  ?required="${this.required}"
23236
23243
  ?disabled="${this.disabled}"
23237
23244
  aria-describedby="${this.uniqueId}"
@@ -23545,6 +23552,13 @@ class AuroDatePicker extends i$2 {
23545
23552
  reflect: true
23546
23553
  },
23547
23554
 
23555
+ /** Exposes inputmode attribute for input. */
23556
+ inputmode: {
23557
+ type: String,
23558
+ attribute: true,
23559
+ reflect: true
23560
+ },
23561
+
23548
23562
  /**
23549
23563
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
23550
23564
  * Otherwise, Heading 600.
@@ -24395,6 +24409,7 @@ class AuroDatePicker extends i$2 {
24395
24409
  setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
24396
24410
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
24397
24411
  ?disabled="${this.disabled}"
24412
+ inputmode="${o(this.inputmode)}"
24398
24413
  part="input">
24399
24414
  <span slot="label"><slot name="fromLabel"></slot></span>
24400
24415
  </${this.inputTag}>
@@ -21047,6 +21047,13 @@ class BaseInput extends i$2 {
21047
21047
  type: String
21048
21048
  },
21049
21049
 
21050
+ /** Exposes inputmode attribute for input. */
21051
+ inputmode: {
21052
+ type: String,
21053
+ attribute: true,
21054
+ reflect: true
21055
+ },
21056
+
21050
21057
  /**
21051
21058
  * Defines the language of an element.
21052
21059
  */
@@ -21612,9 +21619,9 @@ class BaseInput extends i$2 {
21612
21619
 
21613
21620
  if (this.type in defaultLengths) {
21614
21621
  this.lengthForType = this.format ? this.format.length : defaultLengths[this.type];
21615
- this.inputMode = 'numeric';
21622
+ this.inputmode = this.inputmode || 'numeric';
21616
21623
  } else if (this.type === 'number') {
21617
- this.inputMode = 'numeric';
21624
+ this.inputmode = this.inputmode || 'numeric';
21618
21625
  }
21619
21626
 
21620
21627
  if (this.type === "date" && !this.format) {
@@ -22972,7 +22979,7 @@ class AuroInput extends BaseInput {
22972
22979
  pattern="${o(this.definePattern())}"
22973
22980
  maxlength="${o(this.maxLength ? this.maxLength : undefined)}"
22974
22981
  minlength="${o(this.minLength ? this.minLength : undefined)}"
22975
- inputMode="${o(this.inputMode ? this.inputMode : undefined)}"
22982
+ inputMode="${o(this.inputmode ? this.inputmode : undefined)}"
22976
22983
  ?required="${this.required}"
22977
22984
  ?disabled="${this.disabled}"
22978
22985
  aria-describedby="${this.uniqueId}"
@@ -23286,6 +23293,13 @@ class AuroDatePicker extends i$2 {
23286
23293
  reflect: true
23287
23294
  },
23288
23295
 
23296
+ /** Exposes inputmode attribute for input. */
23297
+ inputmode: {
23298
+ type: String,
23299
+ attribute: true,
23300
+ reflect: true
23301
+ },
23302
+
23289
23303
  /**
23290
23304
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
23291
23305
  * Otherwise, Heading 600.
@@ -24136,6 +24150,7 @@ class AuroDatePicker extends i$2 {
24136
24150
  setCustomValidityRangeOverflow="${this.setCustomValidityRangeOverflow}"
24137
24151
  setCustomValidityRangeUnderflow="${this.setCustomValidityRangeUnderflow}"
24138
24152
  ?disabled="${this.disabled}"
24153
+ inputmode="${o(this.inputmode)}"
24139
24154
  part="input">
24140
24155
  <span slot="label"><slot name="fromLabel"></slot></span>
24141
24156
  </${this.inputTag}>
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
104
104
  In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
105
105
 
106
106
  ```html
107
- <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.3.0-beta.2/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@0.0.0/auro-datepicker/+esm"></script>
108
108
  ```
109
109
  <!-- AURO-GENERATED-CONTENT:END -->
110
110
 
@@ -89,6 +89,12 @@ export class AuroDatePicker extends LitElement {
89
89
  type: StringConstructor;
90
90
  reflect: boolean;
91
91
  };
92
+ /** Exposes inputmode attribute for input. */
93
+ inputmode: {
94
+ type: StringConstructor;
95
+ attribute: boolean;
96
+ reflect: boolean;
97
+ };
92
98
  /**
93
99
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
94
100
  * Otherwise, Heading 600.