@aurodesignsystem-dev/auro-formkit 0.0.0-pr1475.5 → 0.0.0-pr1477.0

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/bibtemplate/dist/auro-bibtemplate.d.ts +0 -7
  2. package/components/bibtemplate/dist/index.js +1 -9
  3. package/components/bibtemplate/dist/registered.js +1 -9
  4. package/components/checkbox/demo/customize.min.js +1 -1
  5. package/components/checkbox/demo/getting-started.min.js +1 -1
  6. package/components/checkbox/demo/index.min.js +1 -1
  7. package/components/checkbox/dist/index.js +1 -1
  8. package/components/checkbox/dist/registered.js +1 -1
  9. package/components/combobox/demo/customize.min.js +18 -234
  10. package/components/combobox/demo/getting-started.min.js +18 -234
  11. package/components/combobox/demo/index.min.js +18 -234
  12. package/components/combobox/demo/keyboard-behavior.md +68 -8
  13. package/components/combobox/dist/index.js +18 -234
  14. package/components/combobox/dist/registered.js +18 -234
  15. package/components/counter/demo/customize.min.js +15 -231
  16. package/components/counter/demo/index.min.js +15 -231
  17. package/components/counter/demo/keyboard-behavior.md +0 -1
  18. package/components/counter/dist/index.js +2 -10
  19. package/components/counter/dist/registered.js +2 -10
  20. package/components/datepicker/demo/accessibility.md +3 -51
  21. package/components/datepicker/demo/api.md +0 -9
  22. package/components/datepicker/demo/customize.html +0 -2
  23. package/components/datepicker/demo/customize.md +8 -72
  24. package/components/datepicker/demo/design.md +1 -3
  25. package/components/datepicker/demo/index.js +1 -5
  26. package/components/datepicker/demo/index.md +2 -82
  27. package/components/datepicker/demo/index.min.js +94 -1338
  28. package/components/datepicker/demo/keyboard-behavior.md +2 -201
  29. package/components/datepicker/demo/voiceover.md +12 -19
  30. package/components/datepicker/dist/index.js +112 -1280
  31. package/components/datepicker/dist/registered.js +112 -1280
  32. package/components/datepicker/dist/src/auro-calendar-cell.d.ts +1 -64
  33. package/components/datepicker/dist/src/auro-calendar-month.d.ts +0 -28
  34. package/components/datepicker/dist/src/auro-calendar.d.ts +0 -84
  35. package/components/datepicker/dist/src/auro-datepicker.d.ts +0 -80
  36. package/components/datepicker/dist/src/datepickerKeyboardStrategy.d.ts +3 -5
  37. package/components/dropdown/demo/accessibility.md +0 -11
  38. package/components/dropdown/demo/api.md +0 -1
  39. package/components/dropdown/demo/customize.md +0 -3
  40. package/components/dropdown/demo/customize.min.js +13 -221
  41. package/components/dropdown/demo/getting-started.min.js +13 -221
  42. package/components/dropdown/demo/index.min.js +13 -221
  43. package/components/dropdown/demo/keyboard-behavior.md +0 -1
  44. package/components/dropdown/dist/auro-dropdown.d.ts +1 -31
  45. package/components/dropdown/dist/index.js +13 -221
  46. package/components/dropdown/dist/registered.js +13 -221
  47. package/components/form/demo/customize.min.js +163 -1977
  48. package/components/form/demo/getting-started.min.js +163 -1977
  49. package/components/form/demo/index.min.js +163 -1977
  50. package/components/form/demo/registerDemoDeps.min.js +163 -1977
  51. package/components/input/demo/customize.min.js +1 -1
  52. package/components/input/demo/getting-started.min.js +1 -1
  53. package/components/input/demo/index.min.js +1 -1
  54. package/components/input/dist/index.js +1 -1
  55. package/components/input/dist/registered.js +1 -1
  56. package/components/radio/demo/getting-started.js +1 -1
  57. package/components/radio/demo/getting-started.md +1 -1
  58. package/components/radio/demo/index.min.js +1 -1
  59. package/components/radio/dist/index.js +1 -1
  60. package/components/radio/dist/registered.js +1 -1
  61. package/components/select/demo/customize.min.js +33 -247
  62. package/components/select/demo/getting-started.min.js +33 -247
  63. package/components/select/demo/index.min.js +33 -247
  64. package/components/select/demo/keyboard-behavior.md +54 -9
  65. package/components/select/dist/index.js +33 -247
  66. package/components/select/dist/registered.js +33 -247
  67. package/custom-elements.json +5 -677
  68. package/package.json +2 -2
  69. package/components/datepicker/demo/customize.js +0 -19
  70. package/components/datepicker/demo/customize.min.js +0 -25805
  71. package/components/radio/demo/customize.min.js +0 -2186
  72. package/components/radio/demo/demo-support.min.js +0 -55807
  73. package/components/radio/demo/getting-started.min.js +0 -2205
@@ -35,13 +35,11 @@
35
35
  </li>
36
36
  </ul>
37
37
  <auro-header level="4" id="calendar">Calendar</auro-header>
38
- <p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking, tapping, or using arrow keys to navigate date cells and Enter/Space to select. The calendar supports:</p>
38
+ <p>The calendar displays one or more months in a grid layout. Users interact with the calendar by clicking on individual date cells. The calendar supports:</p>
39
39
  <ul>
40
40
  <li>Navigating between months using previous/next arrows.</li>
41
- <li>Arrow-key navigation between date cells with automatic cross-month boundary handling.</li>
42
41
  <li>Date range highlighting when <code>range</code> is set.</li>
43
42
  <li>Disabled dates outside the <code>minDate</code>/<code>maxDate</code> bounds.</li>
44
- <li>Blackout dates that are focusable but not selectable.</li>
45
43
  <li>Custom cell content via the <code>date_MM_DD_YYYY</code> slot.</li>
46
44
  <li>Cell popovers via the <code>popover_MM_DD_YYYY</code> slot.</li>
47
45
  </ul>
@@ -1,5 +1,4 @@
1
1
  import { AuroDatePicker } from '../src/auro-datepicker.js';
2
- import { blackoutLabelExample } from '../apiExamples/blackout-label.js';
3
2
 
4
3
  AuroDatePicker.register(); // registering to auro-datepicker
5
4
  AuroDatePicker.register('custom-datepicker');
@@ -8,10 +7,7 @@ export function initExamples(initCount) {
8
7
  initCount = initCount || 0;
9
8
 
10
9
  try {
11
- // Only run when the demo element exists on the current page
12
- if (document.querySelector('#blackoutLabelExample')) {
13
- blackoutLabelExample();
14
- }
10
+ // example();
15
11
  } catch {
16
12
  if (initCount <= 20) {
17
13
  // setTimeout handles issue where content is sometimes loaded after the functions get called
@@ -10,8 +10,6 @@
10
10
  <auro-anchorlink fluid href="#selectRange" class="level2 body-xs">Select a Range</auro-anchorlink>
11
11
  <auro-anchorlink fluid href="#presetValue" class="level2 body-xs">Preset Value</auro-anchorlink>
12
12
  <auro-anchorlink fluid href="#skipSelection" class="level2 body-xs">Skip Selection</auro-anchorlink>
13
- <auro-anchorlink fluid href="#popoverSlot" class="level2 body-xs">Date Popover</auro-anchorlink>
14
- <auro-anchorlink fluid href="#blackoutDates" class="level2 body-xs">Blackout Dates</auro-anchorlink>
15
13
  <auro-anchorlink fluid href="#viewportSize" class="level2 body-xs">Viewport Size</auro-anchorlink>
16
14
  </auro-nav>
17
15
  </nav>
@@ -40,21 +38,15 @@
40
38
  Click the input or press <kbd>Enter</kbd> / <kbd>Space</kbd> to open the calendar
41
39
  <div class="note">
42
40
  <p>
43
- The calendar bib opens and displays the current month. The focused cell is determined in the following priority order:
41
+ The calendar bib opens and displays the current month. Focus moves into the calendar on the current date or, if a <code>calendarFocusDate</code> is set, on that date.
44
42
  </p>
45
- <ol>
46
- <li>The currently selected date (if one exists and is within the valid min/max range).</li>
47
- <li>Today's date (if it is enabled — within the min/max range).</li>
48
- <li>The first future enabled date.</li>
49
- <li>The first past enabled date.</li>
50
- </ol>
51
43
  </div>
52
44
  </li>
53
45
  <li>
54
46
  Select a date by clicking a calendar cell or by typing a date directly into the input
55
47
  <div class="note">
56
48
  <p>
57
- When a valid date is selected, the <code>value</code> property is updated. The calendar remains open so additional dates can be reviewed. Close the calendar by pressing Escape, clicking outside, or activating the Done button. If the user types a date, it must match the configured <code>format</code> (default <code>mm/dd/yyyy</code>).
49
+ When a valid date is selected, the <code>value</code> property is updated and the calendar closes (on desktop). If the user types a date, it must match the configured <code>format</code> (default <code>mm/dd/yyyy</code>).
58
50
  </p>
59
51
  </div>
60
52
  </li>
@@ -175,78 +167,6 @@
175
167
  <auro-header level="3" id="skipSelection">Skip selection</auro-header>
176
168
  <p>The datepicker does not force the user to select a date. If no selection is made and the field is not <code>required</code>, the user can move past the datepicker without entering a value.</p>
177
169
  <p>If the field is <code>required</code>, moving focus away without selecting a date triggers validation and renders the <code>valueMissing</code> error state.</p>
178
- <auro-header level="3" id="popoverSlot">Popover slot</auro-header>
179
- <p>Use the <code>popover_MM_DD_YYYY</code> slot to display additional information when the user hovers over a calendar cell. This is useful for showing pricing, availability, or other contextual details for specific dates.</p>
180
- <div class="exampleWrapper">
181
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/popover-slot.html) -->
182
- <!-- The below content is automatically added from ./../apiExamples/popover-slot.html -->
183
- <auro-datepicker centralDate="12/03/2023" calendarStartDate="12/01/2023" calendarEndDate="12/31/2023" minDate="12/04/2023" maxDate="12/09/2023">
184
- <span slot="bib.fullscreen.headline">Popover Slot Example</span>
185
- <span slot="fromLabel">Choose a date</span>
186
- <span slot="bib.fullscreen.fromLabel">Choose a date</span>
187
- <span slot="popover_12_03_2023">Tickets for this day are sold out</span>
188
- <span slot="date_12_03_2023">$560</span>
189
- <span slot="popover_12_04_2023">34 seats available</span>
190
- <span slot="date_12_04_2023">$245</span>
191
- <span slot="popover_12_05_2023">18 seats available</span>
192
- <span slot="date_12_05_2023">$312</span>
193
- <span slot="popover_12_06_2023">Tickets for this day are sold out</span>
194
- <span slot="date_12_06_2023">$489</span>
195
- <span slot="popover_12_07_2023">52 seats available</span>
196
- <span slot="date_12_07_2023">$198</span>
197
- <span slot="popover_12_08_2023">7 seats available</span>
198
- <span slot="date_12_08_2023">$375</span>
199
- <span slot="popover_12_09_2023">41 seats available</span>
200
- <span slot="date_12_09_2023">$220</span>
201
- </auro-datepicker>
202
- <!-- AURO-GENERATED-CONTENT:END -->
203
- </div>
204
- <auro-accordion alignRight>
205
- <span slot="trigger">See code</span>
206
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/popover-slot.html) -->
207
- <!-- The below code snippet is automatically added from ./../apiExamples/popover-slot.html -->
208
- <pre class="language-html"><code class="language-html">&lt;auro-datepicker centralDate="12/03/2023" calendarStartDate="12/01/2023" calendarEndDate="12/31/2023" minDate="12/04/2023" maxDate="12/09/2023"&gt;
209
- &lt;span slot="bib.fullscreen.headline"&gt;Popover Slot Example&lt;/span&gt;
210
- &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
211
- &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
212
- &lt;span slot="popover_12_03_2023"&gt;Tickets for this day are sold out&lt;/span&gt;
213
- &lt;span slot="date_12_03_2023"&gt;$560&lt;/span&gt;
214
- &lt;span slot="popover_12_04_2023"&gt;34 seats available&lt;/span&gt;
215
- &lt;span slot="date_12_04_2023"&gt;$245&lt;/span&gt;
216
- &lt;span slot="popover_12_05_2023"&gt;18 seats available&lt;/span&gt;
217
- &lt;span slot="date_12_05_2023"&gt;$312&lt;/span&gt;
218
- &lt;span slot="popover_12_06_2023"&gt;Tickets for this day are sold out&lt;/span&gt;
219
- &lt;span slot="date_12_06_2023"&gt;$489&lt;/span&gt;
220
- &lt;span slot="popover_12_07_2023"&gt;52 seats available&lt;/span&gt;
221
- &lt;span slot="date_12_07_2023"&gt;$198&lt;/span&gt;
222
- &lt;span slot="popover_12_08_2023"&gt;7 seats available&lt;/span&gt;
223
- &lt;span slot="date_12_08_2023"&gt;$375&lt;/span&gt;
224
- &lt;span slot="popover_12_09_2023"&gt;41 seats available&lt;/span&gt;
225
- &lt;span slot="date_12_09_2023"&gt;$220&lt;/span&gt;
226
- &lt;/auro-datepicker&gt;</code></pre>
227
- <!-- AURO-GENERATED-CONTENT:END -->
228
- </auro-accordion>
229
- <auro-header level="3" id="blackoutDates">Blackout dates with custom label</auro-header>
230
- <p>Use the <code>blackoutLabel</code> attribute to customize the screen reader announcement for blackout (disabled but in-range) dates. The default label is <code>"unavailable"</code>. This is useful when you want to provide more context about why a date cannot be selected, such as <code>"sold out"</code>.</p>
231
- <div class="exampleWrapper">
232
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/blackout-label.html) -->
233
- <!-- The below content is automatically added from ./../apiExamples/blackout-label.html -->
234
- <auro-datepicker id="blackoutLabelExample" blackoutLabel="sold out">
235
- <span slot="fromLabel">Choose a date</span>
236
- <span slot="bib.fullscreen.fromLabel">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/blackout-label.html) -->
243
- <!-- The below code snippet is automatically added from ./../apiExamples/blackout-label.html -->
244
- <pre class="language-html"><code class="language-html">&lt;auro-datepicker id="blackoutLabelExample" blackoutLabel="sold out"&gt;
245
- &lt;span slot="fromLabel"&gt;Choose a date&lt;/span&gt;
246
- &lt;span slot="bib.fullscreen.fromLabel"&gt;Choose a date&lt;/span&gt;
247
- &lt;/auro-datepicker&gt;</code></pre>
248
- <!-- AURO-GENERATED-CONTENT:END -->
249
- </auro-accordion>
250
170
  <auro-header level="3" id="viewportSize">Viewport size</auro-header>
251
171
  <p>The datepicker automatically adapts its presentation based on viewport size. On larger screens, the calendar opens in a floating popover anchored to the trigger. On smaller screens, the calendar opens in a fullscreen dialog.</p>
252
172
  <p>The breakpoint at which the fullscreen behavior activates is controlled by the <code>fullscreenBreakpoint</code> attribute. The default value is <code>sm</code>. Supported values are <code>xs</code>, <code>sm</code>, <code>md</code>, <code>lg</code>, <code>xl</code>, and <code>disabled</code>.</p>