@aurodesignsystem-dev/auro-formkit 0.0.0-pr1628.8 → 0.0.0-pr1628.9

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 (92) hide show
  1. package/components/checkbox/README.md +1 -1
  2. package/components/checkbox/demo/accessibility.md +2 -2
  3. package/components/checkbox/demo/api.md +17 -17
  4. package/components/checkbox/demo/customize.md +16 -16
  5. package/components/checkbox/demo/customize.min.js +3 -3
  6. package/components/checkbox/demo/design.md +24 -24
  7. package/components/checkbox/demo/getting-started.md +33 -27
  8. package/components/checkbox/demo/getting-started.min.js +3 -3
  9. package/components/checkbox/demo/index.md +17 -17
  10. package/components/checkbox/demo/index.min.js +3 -3
  11. package/components/checkbox/demo/readme.md +1 -1
  12. package/components/checkbox/dist/auro-checkbox-group.d.ts +2 -2
  13. package/components/checkbox/dist/index.js +3 -3
  14. package/components/checkbox/dist/registered.js +3 -3
  15. package/components/combobox/demo/api.md +1 -1
  16. package/components/combobox/demo/customize.md +12 -12
  17. package/components/combobox/demo/customize.min.js +13 -13
  18. package/components/combobox/demo/getting-started.min.js +13 -13
  19. package/components/combobox/demo/index.min.js +13 -13
  20. package/components/combobox/dist/auro-combobox.d.ts +1 -1
  21. package/components/combobox/dist/index.js +12 -12
  22. package/components/combobox/dist/registered.js +12 -12
  23. package/components/counter/demo/customize.md +2 -2
  24. package/components/counter/demo/customize.min.js +8 -8
  25. package/components/counter/demo/getting-started.min.js +8 -8
  26. package/components/counter/demo/index.min.js +8 -8
  27. package/components/counter/demo/why-counter.md +1 -1
  28. package/components/counter/dist/index.js +8 -8
  29. package/components/counter/dist/registered.js +8 -8
  30. package/components/datepicker/demo/css-only.md +1 -1
  31. package/components/datepicker/demo/customize.md +2 -2
  32. package/components/datepicker/demo/customize.min.js +25 -20
  33. package/components/datepicker/demo/getting-started.min.js +25 -20
  34. package/components/datepicker/demo/index.min.js +25 -20
  35. package/components/datepicker/demo/why-datepicker.md +1 -1
  36. package/components/datepicker/dist/auro-calendar.d.ts +4 -9
  37. package/components/datepicker/dist/index.js +25 -20
  38. package/components/datepicker/dist/registered.js +25 -20
  39. package/components/datepicker/dist/utilitiesCalendar.d.ts +5 -2
  40. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +5 -2
  41. package/components/dropdown/demo/customize.min.js +7 -7
  42. package/components/dropdown/demo/getting-started.min.js +10 -10
  43. package/components/dropdown/demo/index.min.js +7 -7
  44. package/components/dropdown/demo/voiceover.md +1 -1
  45. package/components/dropdown/demo/why-dropdown.md +1 -1
  46. package/components/dropdown/dist/auro-dropdown.d.ts +6 -6
  47. package/components/dropdown/dist/index.js +7 -7
  48. package/components/dropdown/dist/registered.js +7 -7
  49. package/components/form/demo/api.md +1 -1
  50. package/components/form/demo/customize.md +2 -0
  51. package/components/form/demo/customize.min.js +62 -57
  52. package/components/form/demo/getting-started.md +2 -0
  53. package/components/form/demo/getting-started.min.js +62 -57
  54. package/components/form/demo/index.min.js +62 -57
  55. package/components/form/demo/registerDemoDeps.min.js +61 -56
  56. package/components/form/demo/voiceover.md +2 -2
  57. package/components/form/dist/auro-form.d.ts +1 -1
  58. package/components/form/dist/index.js +1 -1
  59. package/components/form/dist/registered.js +1 -1
  60. package/components/input/demo/api.md +1 -1
  61. package/components/input/demo/css-only.md +1 -1
  62. package/components/input/demo/customize.md +3 -3
  63. package/components/input/demo/customize.min.js +3 -3
  64. package/components/input/demo/getting-started.md +2 -2
  65. package/components/input/demo/getting-started.min.js +3 -3
  66. package/components/input/demo/index.min.js +3 -3
  67. package/components/input/demo/why-input.md +1 -1
  68. package/components/input/dist/base-input.d.ts +2 -2
  69. package/components/input/dist/index.js +3 -3
  70. package/components/input/dist/registered.js +3 -3
  71. package/components/menu/demo/api.md +1 -1
  72. package/components/menu/demo/css-only.md +3 -3
  73. package/components/menu/demo/getting-started.md +1 -1
  74. package/components/menu/demo/index.min.js +1 -1
  75. package/components/menu/dist/auro-menu.d.ts +1 -1
  76. package/components/menu/dist/index.js +1 -1
  77. package/components/menu/dist/registered.js +1 -1
  78. package/components/radio/demo/customize.min.js +1 -1
  79. package/components/radio/demo/getting-started.min.js +1 -1
  80. package/components/radio/demo/index.min.js +1 -1
  81. package/components/radio/demo/why-radio.md +1 -1
  82. package/components/radio/dist/index.js +1 -1
  83. package/components/radio/dist/registered.js +1 -1
  84. package/components/select/demo/customize.md +1 -1
  85. package/components/select/demo/customize.min.js +9 -9
  86. package/components/select/demo/getting-started.min.js +9 -9
  87. package/components/select/demo/index.md +1 -1
  88. package/components/select/demo/index.min.js +9 -9
  89. package/components/select/dist/index.js +8 -8
  90. package/components/select/dist/registered.js +8 -8
  91. package/custom-elements.json +23 -17
  92. package/package.json +1 -1
@@ -49,7 +49,7 @@
49
49
  <p>For example, a mobile phone or a very small desktop browser window.</p>
50
50
  <ol>
51
51
  <li><strong>Focus trigger:</strong> Announces the trigger label and state.</li>
52
- <li><strong>Open | Expand:</strong> Opens a fullscreen modal and keeps focus in the bib content.</li>
52
+ <li><strong>Open | Expand:</strong> Opens the bib as a fullscreen modal when the screen is at or below the <code>fullscreenBreakpoint</code> width, and keeps focus in the bib content.</li>
53
53
  <li><strong>Navigate bib content:</strong> Swipe or Tab through focusable elements.</li>
54
54
  <li><strong>Close:</strong> Activate a close button in the bib content, such as the one <code>auro-bibtemplate</code> provides, or use the scrub gesture (two-finger zigzag) to dismiss.</li>
55
55
  </ol>
@@ -6,7 +6,7 @@
6
6
  <ul>
7
7
  <li><strong>Focus trapping:</strong> In desktop modal mode, Tab and Shift+Tab cycle within the dropdown content. The rest of the page becomes inert. The implementation handles focus across shadow DOM boundaries.</li>
8
8
  <li><strong>Native dialog semantics:</strong> On screens at or below the <code>fullscreenBreakpoint</code> you set, the dropdown opens via <code>showModal()</code>, which provides browser-native focus trapping and background inert behavior.</li>
9
- <li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>. The dropdown bib can have an accessible dialog label.</li>
9
+ <li><strong>ARIA attributes:</strong> The trigger has a configurable <code>role</code> (default: <code>button</code>), and with other roles, such as <code>combobox</code>, it also carries <code>aria-expanded</code> and <code>aria-controls</code>. Components that wrap the dropdown, such as <code>auro-select</code>, <code>auro-combobox</code>, and <code>auro-datepicker</code>, give the bib's dialog an accessible name from their own label.</li>
10
10
  <li><strong>Focus routing:</strong> The <code>focus()</code> method moves focus to the first focusable element in the open bib, or to the trigger when the bib is closed.</li>
11
11
  <li><strong>Escape to close:</strong> Pressing <code>Escape</code> closes the open bib.</li>
12
12
  </ul>
@@ -100,6 +100,7 @@ export class AuroDropdown extends AuroElement {
100
100
  /**
101
101
  * Removes the trigger's border, background, and shadow.
102
102
  * Applies only when `shape` and `size` are both set.
103
+ * @relevantWhen shape !== undefined && size !== undefined
103
104
  * @category ui
104
105
  */
105
106
  simple: {
@@ -601,39 +602,38 @@ export class AuroDropdown extends AuroElement {
601
602
  *
602
603
  * @private
603
604
  * @method handleDefaultSlot
604
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
605
605
  */
606
606
  private handleDefaultSlot;
607
607
  /**
608
608
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
609
609
  * @private
610
610
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
611
- * @returns {html} - The template for the shared markup.
611
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
612
612
  */
613
613
  private renderBasicHtml;
614
614
  /**
615
615
  * Renders the classic layout.
616
616
  * @private
617
- * @returns {html} - The template for the classic layout.
617
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
618
618
  */
619
619
  private renderLayoutClassic;
620
620
  /**
621
621
  * Renders the snowflake layout, which indents the help text on both sides.
622
622
  * @private
623
- * @returns {html} - The template for the snowflake layout.
623
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
624
624
  */
625
625
  private renderLayoutSnowflake;
626
626
  /**
627
627
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
628
628
  * @private
629
- * @returns {html} - The template for the emphasized layout.
629
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
630
630
  */
631
631
  private renderLayoutEmphasized;
632
632
  /**
633
633
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
634
634
  * @private
635
635
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
636
- * @returns {HTMLCollection} - The template for the layout.
636
+ * @returns {import('lit').TemplateResult} The template for the layout.
637
637
  */
638
638
  private renderLayout;
639
639
  }
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611090134';
4042
+ var formkitVersion = '202611090436';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
4535
4535
  /**
4536
4536
  * Removes the trigger's border, background, and shadow.
4537
4537
  * Applies only when `shape` and `size` are both set.
4538
+ * @relevantWhen shape !== undefined && size !== undefined
4538
4539
  * @category ui
4539
4540
  */
4540
4541
  simple: {
@@ -5519,7 +5520,6 @@ class AuroDropdown extends AuroElement {
5519
5520
  *
5520
5521
  * @private
5521
5522
  * @method handleDefaultSlot
5522
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5523
5523
  */
5524
5524
  handleDefaultSlot() {
5525
5525
 
@@ -5532,7 +5532,7 @@ class AuroDropdown extends AuroElement {
5532
5532
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5533
5533
  * @private
5534
5534
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5535
- * @returns {html} - The template for the shared markup.
5535
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5536
5536
  */
5537
5537
  renderBasicHtml(helpTextClasses) {
5538
5538
  return html$1`
@@ -5594,7 +5594,7 @@ class AuroDropdown extends AuroElement {
5594
5594
  /**
5595
5595
  * Renders the classic layout.
5596
5596
  * @private
5597
- * @returns {html} - The template for the classic layout.
5597
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5598
5598
  */
5599
5599
  renderLayoutClassic() {
5600
5600
  // TODO: check with Doug why this was never used?
@@ -5610,7 +5610,7 @@ class AuroDropdown extends AuroElement {
5610
5610
  /**
5611
5611
  * Renders the snowflake layout, which indents the help text on both sides.
5612
5612
  * @private
5613
- * @returns {html} - The template for the snowflake layout.
5613
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5614
5614
  */
5615
5615
  renderLayoutSnowflake() {
5616
5616
  const helpTextClasses = {
@@ -5627,7 +5627,7 @@ class AuroDropdown extends AuroElement {
5627
5627
  /**
5628
5628
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5629
5629
  * @private
5630
- * @returns {html} - The template for the emphasized layout.
5630
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5631
5631
  */
5632
5632
  renderLayoutEmphasized() {
5633
5633
  const helpTextClasses = {
@@ -5645,7 +5645,7 @@ class AuroDropdown extends AuroElement {
5645
5645
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5646
5646
  * @private
5647
5647
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5648
- * @returns {HTMLCollection} - The template for the layout.
5648
+ * @returns {import('lit').TemplateResult} The template for the layout.
5649
5649
  */
5650
5650
  renderLayout(ForcedLayout) {
5651
5651
  const layout = ForcedLayout || this.layout;
@@ -4039,7 +4039,7 @@ class AuroHelpText extends LitElement {
4039
4039
  }
4040
4040
  }
4041
4041
 
4042
- var formkitVersion = '202611090134';
4042
+ var formkitVersion = '202611090436';
4043
4043
 
4044
4044
  /**
4045
4045
  * Shared base class for layout-aware Auro form components, such as `auro-input`, `auro-select`, and `auro-menu`.
@@ -4535,6 +4535,7 @@ class AuroDropdown extends AuroElement {
4535
4535
  /**
4536
4536
  * Removes the trigger's border, background, and shadow.
4537
4537
  * Applies only when `shape` and `size` are both set.
4538
+ * @relevantWhen shape !== undefined && size !== undefined
4538
4539
  * @category ui
4539
4540
  */
4540
4541
  simple: {
@@ -5519,7 +5520,6 @@ class AuroDropdown extends AuroElement {
5519
5520
  *
5520
5521
  * @private
5521
5522
  * @method handleDefaultSlot
5522
- * @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
5523
5523
  */
5524
5524
  handleDefaultSlot() {
5525
5525
 
@@ -5532,7 +5532,7 @@ class AuroDropdown extends AuroElement {
5532
5532
  * Renders the markup that every layout shares: the trigger, the help text, and the bib.
5533
5533
  * @private
5534
5534
  * @param {Object} helpTextClasses - The classes to apply to the help text container.
5535
- * @returns {html} - The template for the shared markup.
5535
+ * @returns {import('lit').TemplateResult} The template for the shared markup.
5536
5536
  */
5537
5537
  renderBasicHtml(helpTextClasses) {
5538
5538
  return html$1`
@@ -5594,7 +5594,7 @@ class AuroDropdown extends AuroElement {
5594
5594
  /**
5595
5595
  * Renders the classic layout.
5596
5596
  * @private
5597
- * @returns {html} - The template for the classic layout.
5597
+ * @returns {import('lit').TemplateResult} The template for the classic layout.
5598
5598
  */
5599
5599
  renderLayoutClassic() {
5600
5600
  // TODO: check with Doug why this was never used?
@@ -5610,7 +5610,7 @@ class AuroDropdown extends AuroElement {
5610
5610
  /**
5611
5611
  * Renders the snowflake layout, which indents the help text on both sides.
5612
5612
  * @private
5613
- * @returns {html} - The template for the snowflake layout.
5613
+ * @returns {import('lit').TemplateResult} The template for the snowflake layout.
5614
5614
  */
5615
5615
  renderLayoutSnowflake() {
5616
5616
  const helpTextClasses = {
@@ -5627,7 +5627,7 @@ class AuroDropdown extends AuroElement {
5627
5627
  /**
5628
5628
  * Renders the emphasized layout, which indents the help text on the rounded sides of a `pill` shape.
5629
5629
  * @private
5630
- * @returns {html} - The template for the emphasized layout.
5630
+ * @returns {import('lit').TemplateResult} The template for the emphasized layout.
5631
5631
  */
5632
5632
  renderLayoutEmphasized() {
5633
5633
  const helpTextClasses = {
@@ -5645,7 +5645,7 @@ class AuroDropdown extends AuroElement {
5645
5645
  * Renders the layout that `layout` sets, or the classic layout when it isn't set or isn't recognized.
5646
5646
  * @private
5647
5647
  * @param {string} [ForcedLayout] - The layout to render instead of `layout`, such as `emphasized`.
5648
- * @returns {HTMLCollection} - The template for the layout.
5648
+ * @returns {import('lit').TemplateResult} The template for the layout.
5649
5649
  */
5650
5650
  renderLayout(ForcedLayout) {
5651
5651
  const layout = ForcedLayout || this.layout;
@@ -9,7 +9,7 @@ Collects the values and validity of the Auro form elements inside it, and handle
9
9
  - **Collects values**: The form always gathers the value of every named, enabled Auro form element inside it, such as `auro-input` or `auro-select`, into one object in `value`.
10
10
  - **Tracks validity and changes**: The form always reports whether its fields pass validation in `validity`, and whether any field has changed from its starting value in `isInitialState`.
11
11
  - **Manages submit and reset buttons**: The form always turns on a `button` or `auro-button` with `type="submit"` only while no enabled field is invalid or required but empty, and one with `type="reset"` only when the form has changed or holds a value.
12
- - **Submits on Enter**: Pressing Enter in a named, enabled form element always runs `submit()`.
12
+ - **Submits on Enter**: Pressing Enter in a named, enabled form element runs `submit()`, except on the clear button in `auro-input` or `auro-combobox`.
13
13
  - **Skips disabled fields**: The form always leaves fields with the `disabled` attribute out of `value`, validation, and the `submit` event.
14
14
 
15
15
  **Example**
@@ -148,6 +148,7 @@
148
148
  <auro-combobox required name="destination">
149
149
  <span slot="label">To</span>
150
150
  <span slot="bib.fullscreen.headline">Search destinations</span>
151
+ <span slot="ariaLabel.input.clear">Clear destination</span>
151
152
  <span slot="ariaLabel.bib.close">Close</span>
152
153
  <auro-menu>
153
154
  <auro-menuoption value="HNL">Honolulu (HNL)</auro-menuoption>
@@ -321,6 +322,7 @@
321
322
  &#10; &lt;auro-combobox required name="destination"&gt;
322
323
  &lt;span slot="label"&gt;To&lt;/span&gt;
323
324
  &lt;span slot="bib.fullscreen.headline"&gt;Search destinations&lt;/span&gt;
325
+ &lt;span slot="ariaLabel.input.clear"&gt;Clear destination&lt;/span&gt;
324
326
  &lt;span slot="ariaLabel.bib.close"&gt;Close&lt;/span&gt;
325
327
  &lt;auro-menu&gt;
326
328
  &lt;auro-menuoption value="HNL"&gt;Honolulu (HNL)&lt;/auro-menuoption&gt;