@aurodesignsystem-dev/auro-formkit 0.0.0-pr1510.3 → 0.0.0-pr1511.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 (128) hide show
  1. package/components/checkbox/demo/customize.js +22 -0
  2. package/components/checkbox/demo/customize.min.js +1 -1
  3. package/components/checkbox/demo/demo-support.js +1 -0
  4. package/components/checkbox/demo/getting-started.js +22 -0
  5. package/components/checkbox/demo/getting-started.min.js +1 -1
  6. package/components/checkbox/demo/index.js +8 -0
  7. package/components/checkbox/demo/index.min.js +1 -1
  8. package/components/checkbox/demo/styles.scss +1 -0
  9. package/components/checkbox/dist/index.js +1 -1
  10. package/components/checkbox/dist/registered.js +1 -1
  11. package/components/combobox/demo/customize.js +24 -0
  12. package/components/combobox/demo/customize.min.js +4 -3
  13. package/components/combobox/demo/demo-support.js +1 -0
  14. package/components/combobox/demo/getting-started.js +21 -0
  15. package/components/combobox/demo/getting-started.min.js +4 -3
  16. package/components/combobox/demo/index.js +23 -0
  17. package/components/combobox/demo/index.min.js +4 -3
  18. package/components/combobox/demo/styles.scss +1 -0
  19. package/components/combobox/dist/index.js +4 -3
  20. package/components/combobox/dist/registered.js +4 -3
  21. package/components/counter/demo/customize.js +21 -0
  22. package/components/counter/demo/customize.min.js +3 -2
  23. package/components/counter/demo/demo-support.js +1 -0
  24. package/components/counter/demo/index.js +21 -0
  25. package/components/counter/demo/index.min.js +3 -2
  26. package/components/counter/demo/styles.scss +1 -0
  27. package/components/counter/dist/index.js +3 -2
  28. package/components/counter/dist/registered.js +3 -2
  29. package/components/datepicker/demo/accessibility.md +1 -2
  30. package/components/datepicker/demo/api.md +62 -63
  31. package/components/datepicker/demo/customize.js +17 -0
  32. package/components/datepicker/demo/customize.md +1 -12
  33. package/components/datepicker/demo/customize.min.js +200 -608
  34. package/components/datepicker/demo/demo-support.js +1 -0
  35. package/components/datepicker/demo/index.js +23 -0
  36. package/components/datepicker/demo/index.min.js +200 -608
  37. package/components/datepicker/demo/styles.scss +1 -0
  38. package/components/datepicker/dist/index.js +200 -608
  39. package/components/datepicker/dist/registered.js +200 -608
  40. package/components/datepicker/dist/{auro-calendar-cell.d.ts → src/auro-calendar-cell.d.ts} +3 -14
  41. package/components/datepicker/dist/{auro-calendar.d.ts → src/auro-calendar.d.ts} +6 -90
  42. package/components/datepicker/dist/{auro-datepicker.d.ts → src/auro-datepicker.d.ts} +5 -78
  43. package/components/dropdown/demo/customize.js +9 -0
  44. package/components/dropdown/demo/customize.min.js +2 -1
  45. package/components/dropdown/demo/demo-support.js +1 -0
  46. package/components/dropdown/demo/getting-started.js +9 -0
  47. package/components/dropdown/demo/getting-started.min.js +2 -1
  48. package/components/dropdown/demo/index.js +16 -0
  49. package/components/dropdown/demo/index.min.js +2 -1
  50. package/components/dropdown/demo/styles.scss +1 -0
  51. package/components/dropdown/dist/index.js +2 -1
  52. package/components/dropdown/dist/registered.js +2 -1
  53. package/components/form/demo/customize.js +28 -0
  54. package/components/form/demo/customize.min.js +348 -677
  55. package/components/form/demo/demo-support.js +1 -0
  56. package/components/form/demo/getting-started.js +9 -0
  57. package/components/form/demo/getting-started.min.js +348 -677
  58. package/components/form/demo/index.js +5 -0
  59. package/components/form/demo/index.min.js +348 -677
  60. package/components/form/demo/registerDemoDeps.js +23 -0
  61. package/components/form/demo/registerDemoDeps.min.js +348 -677
  62. package/components/form/demo/styles.scss +1 -0
  63. package/components/input/demo/customize.js +25 -0
  64. package/components/input/demo/customize.min.js +1 -1
  65. package/components/input/demo/demo-support.js +1 -0
  66. package/components/input/demo/getting-started.js +8 -0
  67. package/components/input/demo/getting-started.min.js +1 -1
  68. package/components/input/demo/index.js +8 -0
  69. package/components/input/demo/index.min.js +1 -1
  70. package/components/input/demo/styles.css +974 -0
  71. package/components/input/demo/styles.scss +1 -0
  72. package/components/input/dist/index.js +1 -1
  73. package/components/input/dist/registered.js +1 -1
  74. package/components/menu/demo/demo-support.js +1 -0
  75. package/components/menu/demo/index.js +25 -0
  76. package/components/menu/demo/styles.scss +1 -0
  77. package/components/radio/demo/customize.js +22 -0
  78. package/components/radio/demo/customize.min.js +1 -1
  79. package/components/radio/demo/demo-support.js +1 -0
  80. package/components/radio/demo/getting-started.js +24 -0
  81. package/components/radio/demo/getting-started.min.js +1 -1
  82. package/components/radio/demo/index.js +8 -0
  83. package/components/radio/demo/index.min.js +1 -1
  84. package/components/radio/demo/styles.scss +1 -0
  85. package/components/radio/dist/index.js +1 -1
  86. package/components/radio/dist/registered.js +1 -1
  87. package/components/select/demo/customize.js +11 -0
  88. package/components/select/demo/customize.min.js +132 -55
  89. package/components/select/demo/demo-support.js +1 -0
  90. package/components/select/demo/getting-started.js +26 -0
  91. package/components/select/demo/getting-started.min.js +132 -55
  92. package/components/select/demo/index.js +11 -0
  93. package/components/select/demo/index.min.js +132 -55
  94. package/components/select/demo/keyboard-behavior.md +18 -4
  95. package/components/select/demo/styles.scss +1 -0
  96. package/components/select/dist/auro-select.d.ts +20 -8
  97. package/components/select/dist/index.js +132 -55
  98. package/components/select/dist/registered.js +132 -55
  99. package/custom-elements.json +577 -863
  100. package/package.json +2 -6
  101. package/components/datepicker/dist/blackoutUtils.d.ts +0 -43
  102. /package/components/datepicker/dist/{auro-calendar-month.d.ts → src/auro-calendar-month.d.ts} +0 -0
  103. /package/components/datepicker/dist/{buttonVersion.d.ts → src/buttonVersion.d.ts} +0 -0
  104. /package/components/datepicker/dist/{datepickerKeyboardStrategy.d.ts → src/datepickerKeyboardStrategy.d.ts} +0 -0
  105. /package/components/datepicker/dist/{iconVersion.d.ts → src/iconVersion.d.ts} +0 -0
  106. /package/components/datepicker/dist/{index.d.ts → src/index.d.ts} +0 -0
  107. /package/components/datepicker/dist/{popoverVersion.d.ts → src/popoverVersion.d.ts} +0 -0
  108. /package/components/datepicker/dist/{styles → src/styles}/classic/color-css.d.ts +0 -0
  109. /package/components/datepicker/dist/{styles → src/styles}/classic/style-css.d.ts +0 -0
  110. /package/components/datepicker/dist/{styles → src/styles}/color-calendar-css.d.ts +0 -0
  111. /package/components/datepicker/dist/{styles → src/styles}/color-cell-css.d.ts +0 -0
  112. /package/components/datepicker/dist/{styles → src/styles}/color-css.d.ts +0 -0
  113. /package/components/datepicker/dist/{styles → src/styles}/color-month-css.d.ts +0 -0
  114. /package/components/datepicker/dist/{styles → src/styles}/shapeSize-css.d.ts +0 -0
  115. /package/components/datepicker/dist/{styles → src/styles}/snowflake/color-css.d.ts +0 -0
  116. /package/components/datepicker/dist/{styles → src/styles}/snowflake/style-css.d.ts +0 -0
  117. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-cell-css.d.ts +0 -0
  118. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-css.d.ts +0 -0
  119. /package/components/datepicker/dist/{styles → src/styles}/style-auro-calendar-month-css.d.ts +0 -0
  120. /package/components/datepicker/dist/{styles → src/styles}/style-css.d.ts +0 -0
  121. /package/components/datepicker/dist/{styles → src/styles}/tokens-css.d.ts +0 -0
  122. /package/components/datepicker/dist/{utilities.d.ts → src/utilities.d.ts} +0 -0
  123. /package/components/datepicker/dist/{utilitiesCalendar.d.ts → src/utilitiesCalendar.d.ts} +0 -0
  124. /package/components/datepicker/dist/{utilitiesCalendarRender.d.ts → src/utilitiesCalendarRender.d.ts} +0 -0
  125. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/day.d.ts +0 -0
  126. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-calendar.d.ts +0 -0
  127. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker-cell.d.ts +0 -0
  128. /package/components/datepicker/dist/{vendor → src/vendor}/wc-range-datepicker/range-datepicker.d.ts +0 -0
@@ -25,14 +25,6 @@ export class AuroCalendarCell extends LitElement {
25
25
  type: BooleanConstructor;
26
26
  reflect: boolean;
27
27
  };
28
- /**
29
- * @deprecated Propagated from the legacy `auro-calendar.disabledDays`
30
- * Unix-timestamp array. The cell honors it for backward compatibility
31
- * (see the divergence-check fallback inside `isBlackout`), but
32
- * consumers should migrate to `auro-datepicker.blackoutDates`
33
- * (YYYY-MM-DD ISO strings). The calendar emits a one-time
34
- * deprecation warning the first time a non-empty value is observed.
35
- */
36
28
  disabledDays: {
37
29
  type: ArrayConstructor;
38
30
  };
@@ -219,7 +211,6 @@ export class AuroCalendarCell extends LitElement {
219
211
  */
220
212
  private handleSlotContent;
221
213
  firstUpdated(): void;
222
- calendar: any;
223
214
  datepicker: any;
224
215
  _slotContentHandler: (() => void) | undefined;
225
216
  _cachedButton: Element | null | undefined;
@@ -235,8 +226,8 @@ export class AuroCalendarCell extends LitElement {
235
226
  auroPopover: any;
236
227
  updated(properties: any): void;
237
228
  /**
238
- * Sets host-level ARIA so each cell exposes its date, selection state,
239
- * and blackout status to assistive tech browsing the month grid.
229
+ * Updates ARIA attributes on the host element so that
230
+ * ariaActiveDescendantElement can expose cell info to the SR.
240
231
  * @private
241
232
  * @returns {void}
242
233
  */
@@ -250,9 +241,7 @@ export class AuroCalendarCell extends LitElement {
250
241
  focusButton(): void;
251
242
  /**
252
243
  * Imperatively marks this cell as active without triggering a Lit re-render.
253
- * Buttons stay tabindex="-1" because DOM focus stays on the grid wrapper
254
- * arrow keys move the active cell imperatively and the live region carries
255
- * the SR announcement.
244
+ * Note: buttons stay tabindex="-1" because the grid uses aria-activedescendant.
256
245
  * @returns {void}
257
246
  */
258
247
  setActive(): void;
@@ -118,13 +118,6 @@ export class AuroCalendar extends RangeDatepicker {
118
118
  type: ArrayConstructor;
119
119
  };
120
120
  };
121
- /**
122
- * Per-class flag that gates the `disabledDays` deprecation warning so it
123
- * fires exactly once per page no matter how many calendars or rebuild
124
- * cycles encounter the legacy array.
125
- * @private
126
- */
127
- private static _warnedDisabledDaysDeprecation;
128
121
  /**
129
122
  * @private
130
123
  */
@@ -226,32 +219,6 @@ export class AuroCalendar extends RangeDatepicker {
226
219
  * @returns {void}
227
220
  */
228
221
  private updateActiveCellForVisibleMonth;
229
- /**
230
- * Schedules `callback` two animation frames out, giving the child
231
- * `auro-formkit-calendar-month` and `auro-formkit-calendar-cell` elements
232
- * a full render-and-paint cycle to settle before the callback reads or
233
- * mutates DOM.
234
- *
235
- * Why two frames, not one:
236
- * 1. Lit batches property updates and renders in a microtask, so frame N
237
- * schedules the render but the new DOM may not be painted yet.
238
- * 2. Cells re-cache `_cachedButton` inside their own `updateComplete.then`,
239
- * which also lands a tick later. Reading buttons from frame N+1
240
- * (after both renders + cache refresh have flushed) reliably hits the
241
- * new month's cells.
242
- *
243
- * Used by every code path that calls `handleNextMonth`/`handlePrevMonth`
244
- * and then needs to inspect the freshly-rendered cells (cross-month
245
- * keyboard nav, boundary events, `updateActiveCellForVisibleMonth`).
246
- * Do NOT collapse to a single rAF — it intermittently lands before
247
- * `_cachedButton` is refreshed, which silently breaks focus restoration
248
- * and `setActiveCell` lookups.
249
- * @private
250
- * @param {() => void} callback - Runs once after the month re-render and
251
- * the cells' button caches have refreshed.
252
- * @returns {void}
253
- */
254
- private _afterMonthRender;
255
222
  /**
256
223
  * Renders all of the auro-calendar-months HTML.
257
224
  * @private
@@ -277,20 +244,6 @@ export class AuroCalendar extends RangeDatepicker {
277
244
  * @returns {Array} Array of auro-formkit-calendar-month elements.
278
245
  */
279
246
  private getMonthComponents;
280
- /**
281
- * Picks the focusable cell whose date is closest to targetTs. Used as a
282
- * fallback after a month-boundary nav when the exact target date isn't
283
- * focusable — typically because the month re-render lagged or the date
284
- * was filtered out by isOutOfRange. When two cells are equidistant, the
285
- * navigation direction breaks the tie so the user moves the way they
286
- * pressed (forward → later cell, backward → earlier cell).
287
- * @private
288
- * @param {Array} cells - Focusable cells from getAllFocusableCells.
289
- * @param {Number} targetTs - Desired Unix timestamp (seconds).
290
- * @param {'next'|'prev'} direction - Navigation direction.
291
- * @returns {Object|null} The nearest cell, or null when cells is empty.
292
- */
293
- private pickNearestCell;
294
247
  /**
295
248
  * Gets all focusable cells across all rendered months.
296
249
  * @private
@@ -299,9 +252,9 @@ export class AuroCalendar extends RangeDatepicker {
299
252
  private getAllFocusableCells;
300
253
  /**
301
254
  * Sets the active cell across all months. Only one cell has tabindex="0" at a time.
302
- * Uses imperative DOM manipulation — no Lit re-render triggered. DOM focus
303
- * stays on the grid wrapper; the live region (see getOrCreateLiveRegion)
304
- * is what announces the active cell to assistive tech.
255
+ * Uses imperative DOM manipulation — no Lit re-render triggered.
256
+ * Also updates ariaActiveDescendantElement on the grid wrapper so
257
+ * screen readers announce the active cell without moving DOM focus.
305
258
  * @param {Number} date - Unix timestamp of the cell to activate.
306
259
  * @returns {void}
307
260
  */
@@ -325,28 +278,6 @@ export class AuroCalendar extends RangeDatepicker {
325
278
  * @returns {void}
326
279
  */
327
280
  private handleGridFocusOut;
328
- /**
329
- * Returns a memoized Set of blackout timestamps (seconds) drawn from both
330
- * the legacy `disabledDays` array and the datepicker's ISO `blackoutDates`.
331
- * The cache invalidates when either source array's reference changes, which
332
- * matches Lit's own reactive identity semantics for array properties.
333
- * @private
334
- * @returns {Set<Number>}
335
- */
336
- private _getBlackoutSet;
337
- _blackoutSet: Set<number> | undefined;
338
- _cachedBlackoutDisabledDays: any;
339
- _cachedBlackoutDates: any;
340
- /**
341
- * One-time `console.debug` directing consumers from the legacy
342
- * `disabledDays` Unix-timestamp API to the ISO `blackoutDates` API. Fires
343
- * the first time `_getBlackoutSet` rebuilds from a non-empty
344
- * `disabledDays`; subsequent calls (on this or any other AuroCalendar
345
- * instance on the page) are silent.
346
- * @private
347
- * @returns {void}
348
- */
349
- private _warnDisabledDaysDeprecated;
350
281
  /**
351
282
  * Computes the initial active date from data properties alone — no DOM required.
352
283
  * Priority:
@@ -379,8 +310,8 @@ export class AuroCalendar extends RangeDatepicker {
379
310
  private isDateInRange;
380
311
  /**
381
312
  * Handles arrow key navigation on the calendar grid wrapper.
382
- * Focus stays on the grid wrapper; only the visual active-cell indicator
383
- * changes. The live region announces the new active cell.
313
+ * Focus stays on the grid wrapper; only ariaActiveDescendantElement
314
+ * and the visual active-cell indicator change.
384
315
  * @private
385
316
  * @param {KeyboardEvent} event - The keyboard event.
386
317
  * @returns {void}
@@ -426,9 +357,7 @@ export class AuroCalendar extends RangeDatepicker {
426
357
  */
427
358
  private getRangePositionLabel;
428
359
  /**
429
- * Checks whether a given date is a blackout date. Delegates to the
430
- * memoized `_getBlackoutSet` so the YYYY-MM-DD parsing and the
431
- * legacy/ISO merge rules live in exactly one place (see `blackoutUtils.js`).
360
+ * Checks whether a given date is a blackout date.
432
361
  * @private
433
362
  * @param {Number} dateTs - Unix timestamp (seconds).
434
363
  * @returns {Boolean} True if the date is blacked out.
@@ -498,19 +427,6 @@ export class AuroCalendar extends RangeDatepicker {
498
427
  * @returns {void}
499
428
  */
500
429
  private announceSelection;
501
- /**
502
- * Writes `dateStr` to the live region. If the dropdown's dialog hasn't
503
- * mounted yet (so getOrCreateLiveRegion can't attach), retries on the
504
- * next animation frame up to MAX_LIVE_REGION_RETRIES instead of silently
505
- * dropping the announcement. The retry uses the same `_announceRafId`
506
- * the double-rAF below uses, so a newer announceSelection call (or
507
- * disconnectedCallback) cancels any in-flight retry.
508
- * @private
509
- * @param {String} dateStr - The localized date string to announce.
510
- * @param {Number} attempts - Number of prior retry attempts.
511
- * @returns {void}
512
- */
513
- private _deliverAnnouncement;
514
430
  /**
515
431
  * Debounced version of announceSelection for focus navigation.
516
432
  * Uses the assertive live region with a 150ms debounce so only the
@@ -61,7 +61,6 @@ export class AuroDatePicker extends AuroElement {
61
61
  };
62
62
  /**
63
63
  * Label announced for blackout (disabled but in-range) date cells.
64
- * @default 'unavailable'
65
64
  */
66
65
  blackoutLabel: {
67
66
  type: StringConstructor;
@@ -76,7 +75,6 @@ export class AuroDatePicker extends AuroElement {
76
75
  };
77
76
  /**
78
77
  * Accessible label for the calendar grid containing the days of the month.
79
- * @default 'Calendar days of the month'
80
78
  */
81
79
  calendarGridLabel: {
82
80
  type: StringConstructor;
@@ -213,7 +211,6 @@ export class AuroDatePicker extends AuroElement {
213
211
  };
214
212
  /**
215
213
  * Accessible label for the next month navigation button.
216
- * @default 'Next month'
217
214
  */
218
215
  navLabelNextMonth: {
219
216
  type: StringConstructor;
@@ -221,7 +218,6 @@ export class AuroDatePicker extends AuroElement {
221
218
  };
222
219
  /**
223
220
  * Accessible label for the previous month navigation button.
224
- * @default 'Previous month'
225
221
  */
226
222
  navLabelPrevMonth: {
227
223
  type: StringConstructor;
@@ -287,11 +283,7 @@ export class AuroDatePicker extends AuroElement {
287
283
  reflect: boolean;
288
284
  };
289
285
  /**
290
- * Label announced for cells after a fully selected range (both
291
- * `dateFrom` and `dateTo` are set). While a range is still being
292
- * picked (`dateFrom` set, `dateTo` unset), focused cells past the
293
- * start use `rangeLabelEndPreview` instead.
294
- * @default 'after range'
286
+ * Label announced for cells after the range (or after start when no end is selected).
295
287
  */
296
288
  rangeLabelAfterRange: {
297
289
  type: StringConstructor;
@@ -299,7 +291,6 @@ export class AuroDatePicker extends AuroElement {
299
291
  };
300
292
  /**
301
293
  * Label announced for cells before the range start.
302
- * @default 'before range'
303
294
  */
304
295
  rangeLabelBeforeRange: {
305
296
  type: StringConstructor;
@@ -307,25 +298,13 @@ export class AuroDatePicker extends AuroElement {
307
298
  };
308
299
  /**
309
300
  * Label announced for the range end date cell.
310
- * @default 'range end'
311
301
  */
312
302
  rangeLabelEnd: {
313
303
  type: StringConstructor;
314
304
  reflect: boolean;
315
305
  };
316
- /**
317
- * Label announced for the focused cell while previewing a range end
318
- * (dateFrom set, dateTo not yet selected). Tells AT users that
319
- * pressing Enter would commit this cell as the range end.
320
- * @default 'previewing range end'
321
- */
322
- rangeLabelEndPreview: {
323
- type: StringConstructor;
324
- reflect: boolean;
325
- };
326
306
  /**
327
307
  * Label announced for cells within the selected range.
328
- * @default 'in range'
329
308
  */
330
309
  rangeLabelInRange: {
331
310
  type: StringConstructor;
@@ -333,14 +312,13 @@ export class AuroDatePicker extends AuroElement {
333
312
  };
334
313
  /**
335
314
  * Label announced for the range start date cell.
336
- * @default 'range start'
337
315
  */
338
316
  rangeLabelStart: {
339
317
  type: StringConstructor;
340
318
  reflect: boolean;
341
319
  };
342
320
  /**
343
- * Dates that the user should have for reference as part of their decision-making when selecting a date.
321
+ * Dates that the user should have for reference as part of their decision making when selecting a date.
344
322
  * This should be a JSON string array of ISO date strings (`YYYY-MM-DD`).
345
323
  */
346
324
  referenceDates: {
@@ -438,15 +416,6 @@ export class AuroDatePicker extends AuroElement {
438
416
  *
439
417
  */
440
418
  static register(name?: string): void;
441
- /**
442
- * Per-class dedup set used by `_warnInvalidLocale`. Static so the dedup
443
- * spans every datepicker instance on the page; lives on the class (not
444
- * at module scope) so it stays an encapsulated implementation detail of
445
- * this component and does not interfere with WCA's class-JSDoc
446
- * attachment.
447
- * @private
448
- */
449
- private static _warnedInvalidLocales;
450
419
  /**
451
420
  * @private
452
421
  */
@@ -471,7 +440,6 @@ export class AuroDatePicker extends AuroElement {
471
440
  rangeLabelBeforeRange: string;
472
441
  rangeLabelInRange: string;
473
442
  rangeLabelAfterRange: string;
474
- rangeLabelEndPreview: string;
475
443
  blackoutDates: any[];
476
444
  blackoutLabel: string;
477
445
  navLabelPrevMonth: string;
@@ -552,21 +520,6 @@ export class AuroDatePicker extends AuroElement {
552
520
  * @returns {void}
553
521
  */
554
522
  private handleClick;
555
- /**
556
- * Single AbortController shared by every listener registered in the
557
- * configure* methods. Lets disconnectedCallback tear all of them down
558
- * with one abort() call.
559
- *
560
- * The genuine leak risk is the listeners attached to children that can
561
- * outlive the host if they get reparented — `this.dropdown`,
562
- * `this.calendar`, and the inputs inside the dropdown's slot.
563
- * Listeners attached to `this` (e.g. focusin/focusout on the host)
564
- * form a self-contained reference graph that the GC can collect with
565
- * the host anyway, but they share the same signal so the cleanup
566
- * pattern stays uniform across all configure* sites.
567
- * @private
568
- */
569
- private _listenerAbortController;
570
523
  /**
571
524
  * Handles click on the clear button.
572
525
  * @private
@@ -684,26 +637,10 @@ export class AuroDatePicker extends AuroElement {
684
637
  */
685
638
  get calendarFocusDateObject(): Date | undefined;
686
639
  /**
687
- * Converts a Unix timestamp (seconds) from the vendored range-datepicker
688
- * (`src/vendor/wc-range-datepicker/day.js`) to an ISO date string.
689
- *
690
- * Timezone contract:
691
- * - INPUT: `time` is assumed to be the seconds-since-epoch of **local
692
- * midnight** for the intended calendar day. The vendor's Day constructor
693
- * builds it via `date-fns format(date, 't')` from a locally-constructed
694
- * Date, so this assumption currently holds end-to-end.
695
- * - OUTPUT: `dateFormatter.toISOFormatString` reads the Date's local
696
- * getFullYear/getMonth/getDate components, so the returned YYYY-MM-DD
697
- * string matches the local calendar day.
698
- *
699
- * If the vendor ever switches to emitting UTC-midnight timestamps, this
700
- * conversion will silently shift the returned date by one day in zones
701
- * west of UTC. Any vendor swap should re-verify this contract; the TZ
702
- * regression suite (`npm run test:hst`, UTC-10) will catch the symptom.
703
- *
640
+ * Converts a Unix timestamp (seconds) from the vendor calendar to an ISO date string.
704
641
  * @private
705
- * @param {number} time - Unix timestamp (seconds), local midnight of the day.
706
- * @returns {string} ISO date string (yyyy-mm-dd) reflecting the local calendar day.
642
+ * @param {number} time - Unix timestamp in seconds.
643
+ * @returns {string} ISO date string (yyyy-mm-dd).
707
644
  */
708
645
  private convertWcTimeToDate;
709
646
  /**
@@ -835,16 +772,6 @@ export class AuroDatePicker extends AuroElement {
835
772
  * @returns {boolean}
836
773
  */
837
774
  get hasError(): boolean;
838
- /**
839
- * Logs a one-time `console.debug` when an unsupported locale falls back to
840
- * en-US. Deduped by the offending tag so noisy re-renders that resurface
841
- * the same bad value stay quiet, but each new bad value still signals so
842
- * consumers can spot the typo or missing tag.
843
- * @private
844
- * @param {string|undefined} badLocale - The locale value that failed.
845
- * @returns {void}
846
- */
847
- private _warnInvalidLocale;
848
775
  /**
849
776
  * Lifecycle method to check if the locale is valid.
850
777
  * @ignore
@@ -0,0 +1,9 @@
1
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
2
+
3
+ import { AuroDropdown } from '../src/auro-dropdown.js';
4
+ AuroDropdown.register();
5
+ AuroDropdown.register('custom-dropdown');
6
+
7
+ export function initExamples() {
8
+ // javascript example function calls to be added here upon creation to test examples
9
+ }
@@ -3942,7 +3942,7 @@ class AuroHelpText extends i {
3942
3942
  }
3943
3943
  }
3944
3944
 
3945
- var formkitVersion = '202606252324';
3945
+ var formkitVersion = '202606252142';
3946
3946
 
3947
3947
  class AuroElement extends i {
3948
3948
  static get properties() {
@@ -5214,6 +5214,7 @@ class AuroDropdown extends AuroElement {
5214
5214
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5215
5215
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5216
5216
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5217
+ aria-haspopup="${o(this.a11yRole === 'combobox' ? 'listbox' : undefined)}"
5217
5218
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5218
5219
  aria-disabled="${o(this.disabled ? 'true' : undefined)}"
5219
5220
  @focusin="${this.handleFocusin}"
@@ -0,0 +1 @@
1
+ export { renderPage, openAccordion } from '@aurodesignsystem/utils/demo-support';
@@ -0,0 +1,9 @@
1
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
2
+
3
+ import { AuroDropdown } from '../src/auro-dropdown.js';
4
+ AuroDropdown.register();
5
+ AuroDropdown.register('custom-dropdown');
6
+
7
+ export function initExamples() {
8
+ // javascript example function calls to be added here upon creation to test examples
9
+ }
@@ -3942,7 +3942,7 @@ class AuroHelpText extends i {
3942
3942
  }
3943
3943
  }
3944
3944
 
3945
- var formkitVersion = '202606252324';
3945
+ var formkitVersion = '202606252142';
3946
3946
 
3947
3947
  class AuroElement extends i {
3948
3948
  static get properties() {
@@ -5214,6 +5214,7 @@ class AuroDropdown extends AuroElement {
5214
5214
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5215
5215
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5216
5216
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5217
+ aria-haspopup="${o(this.a11yRole === 'combobox' ? 'listbox' : undefined)}"
5217
5218
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5218
5219
  aria-disabled="${o(this.disabled ? 'true' : undefined)}"
5219
5220
  @focusin="${this.handleFocusin}"
@@ -0,0 +1,16 @@
1
+ /* eslint-disable jsdoc/require-jsdoc, no-magic-numbers, no-param-reassign */
2
+
3
+ import { classicExample } from '../apiExamples/classic/basic.js';
4
+ import { classicInverseExample } from '../apiExamples/classic/appearance-inverse.js';
5
+ import { customExample } from '../apiExamples/custom.js';
6
+
7
+ import { AuroDropdown } from '../src/auro-dropdown.js';
8
+ AuroDropdown.register();
9
+ AuroDropdown.register('custom-dropdown');
10
+
11
+ export function initExamples() {
12
+ // javascript example function calls to be added here upon creation to test examples
13
+ classicExample();
14
+ classicInverseExample();
15
+ customExample();
16
+ }
@@ -3969,7 +3969,7 @@ class AuroHelpText extends i {
3969
3969
  }
3970
3970
  }
3971
3971
 
3972
- var formkitVersion = '202606252324';
3972
+ var formkitVersion = '202606252142';
3973
3973
 
3974
3974
  class AuroElement extends i {
3975
3975
  static get properties() {
@@ -5241,6 +5241,7 @@ class AuroDropdown extends AuroElement {
5241
5241
  role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5242
5242
  aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5243
5243
  aria-controls="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5244
+ aria-haspopup="${o(this.a11yRole === 'combobox' ? 'listbox' : undefined)}"
5244
5245
  aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5245
5246
  aria-disabled="${o(this.disabled ? 'true' : undefined)}"
5246
5247
  @focusin="${this.handleFocusin}"
@@ -0,0 +1 @@
1
+ @import '@aurodesignsystem/config/demo-styles';
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202606252324';
3877
+ var formkitVersion = '202606252142';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -5146,6 +5146,7 @@ class AuroDropdown extends AuroElement {
5146
5146
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5147
5147
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5148
5148
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5149
+ aria-haspopup="${ifDefined(this.a11yRole === 'combobox' ? 'listbox' : undefined)}"
5149
5150
  aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5150
5151
  aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
5151
5152
  @focusin="${this.handleFocusin}"
@@ -3874,7 +3874,7 @@ class AuroHelpText extends LitElement {
3874
3874
  }
3875
3875
  }
3876
3876
 
3877
- var formkitVersion = '202606252324';
3877
+ var formkitVersion = '202606252142';
3878
3878
 
3879
3879
  class AuroElement extends LitElement {
3880
3880
  static get properties() {
@@ -5146,6 +5146,7 @@ class AuroDropdown extends AuroElement {
5146
5146
  role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
5147
5147
  aria-expanded="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
5148
5148
  aria-controls="${ifDefined(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.dropdownId)}"
5149
+ aria-haspopup="${ifDefined(this.a11yRole === 'combobox' ? 'listbox' : undefined)}"
5149
5150
  aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
5150
5151
  aria-disabled="${ifDefined(this.disabled ? 'true' : undefined)}"
5151
5152
  @focusin="${this.handleFocusin}"
@@ -0,0 +1,28 @@
1
+ /* eslint-disable jsdoc/require-jsdoc */
2
+
3
+ import { AuroForm } from '../src/auro-form.js';
4
+ import './registerDemoDeps.js';
5
+ import { AuroInput } from '@aurodesignsystem/auro-input';
6
+ import { AuroDatePicker } from '@aurodesignsystem/auro-datepicker';
7
+ import { disabledExample } from '../apiExamples/disabled.js';
8
+ import { disableAfterEditExample } from '../apiExamples/disabled-after-edit.js';
9
+
10
+ AuroInput.register('input-two');
11
+ AuroDatePicker.register();
12
+ AuroForm.register();
13
+ AuroForm.register('custom-form');
14
+
15
+ export async function initExamples(initCount) {
16
+ initCount = initCount || 0;
17
+
18
+ try {
19
+ await disabledExample();
20
+ await disableAfterEditExample();
21
+ } catch (err) {
22
+ if (initCount <= 20) {
23
+ setTimeout(() => {
24
+ initExamples(initCount + 1);
25
+ }, 100);
26
+ }
27
+ }
28
+ }