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

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 (98) hide show
  1. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
  2. package/components/bibtemplate/dist/index.js +1 -1
  3. package/components/bibtemplate/dist/registered.js +1 -1
  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/api.md +2 -2
  10. package/components/combobox/demo/css-only.md +3 -3
  11. package/components/combobox/demo/customize.min.js +12 -9
  12. package/components/combobox/demo/getting-started.min.js +12 -9
  13. package/components/combobox/demo/index.md +1 -1
  14. package/components/combobox/demo/index.min.js +12 -9
  15. package/components/combobox/dist/auro-combobox.d.ts +5 -3
  16. package/components/combobox/dist/index.js +12 -9
  17. package/components/combobox/dist/registered.js +12 -9
  18. package/components/counter/demo/accessibility.md +1 -1
  19. package/components/counter/demo/css-only.md +1 -1
  20. package/components/counter/demo/customize.min.js +6 -6
  21. package/components/counter/demo/getting-started.min.js +6 -6
  22. package/components/counter/demo/index.min.js +6 -6
  23. package/components/counter/demo/why-counter.md +2 -2
  24. package/components/counter/dist/auro-counter-group.d.ts +2 -3
  25. package/components/counter/dist/index.js +6 -6
  26. package/components/counter/dist/registered.js +6 -6
  27. package/components/datepicker/README.md +1 -1
  28. package/components/datepicker/demo/accessibility.md +2 -2
  29. package/components/datepicker/demo/css-only.md +3 -3
  30. package/components/datepicker/demo/customize.md +1 -1
  31. package/components/datepicker/demo/customize.min.js +106 -96
  32. package/components/datepicker/demo/design.md +2 -2
  33. package/components/datepicker/demo/getting-started.md +1 -1
  34. package/components/datepicker/demo/getting-started.min.js +106 -96
  35. package/components/datepicker/demo/index.md +2 -2
  36. package/components/datepicker/demo/index.min.js +106 -96
  37. package/components/datepicker/demo/keyboard-behavior.md +1 -1
  38. package/components/datepicker/demo/readme.md +1 -1
  39. package/components/datepicker/demo/voiceover.md +3 -3
  40. package/components/datepicker/demo/why-datepicker.md +2 -2
  41. package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
  42. package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
  43. package/components/datepicker/dist/auro-calendar.d.ts +39 -33
  44. package/components/datepicker/dist/auro-datepicker.d.ts +9 -7
  45. package/components/datepicker/dist/index.js +106 -96
  46. package/components/datepicker/dist/registered.js +106 -96
  47. package/components/datepicker/dist/utilities.d.ts +1 -1
  48. package/components/datepicker/dist/utilitiesCalendar.d.ts +4 -2
  49. package/components/datepicker/dist/utilitiesCalendarRender.d.ts +4 -4
  50. package/components/dropdown/demo/api.md +1 -1
  51. package/components/dropdown/demo/customize.min.js +2 -1
  52. package/components/dropdown/demo/getting-started.min.js +5 -4
  53. package/components/dropdown/demo/index.min.js +2 -1
  54. package/components/dropdown/demo/voiceover.md +1 -1
  55. package/components/dropdown/dist/auro-dropdown.d.ts +1 -0
  56. package/components/dropdown/dist/index.js +2 -1
  57. package/components/dropdown/dist/registered.js +2 -1
  58. package/components/form/README.md +1 -1
  59. package/components/form/demo/css-only.md +1 -1
  60. package/components/form/demo/customize.min.js +136 -124
  61. package/components/form/demo/getting-started.min.js +136 -124
  62. package/components/form/demo/index.min.js +136 -124
  63. package/components/form/demo/keyboard-behavior.md +1 -1
  64. package/components/form/demo/readme.md +1 -1
  65. package/components/form/demo/registerDemoDeps.min.js +136 -124
  66. package/components/input/demo/css-only.md +3 -3
  67. package/components/input/demo/customize.md +1 -1
  68. package/components/input/demo/customize.min.js +3 -3
  69. package/components/input/demo/design.md +2 -2
  70. package/components/input/demo/getting-started.min.js +3 -3
  71. package/components/input/demo/index.md +1 -1
  72. package/components/input/demo/index.min.js +3 -3
  73. package/components/input/demo/why-input.md +1 -1
  74. package/components/input/dist/auro-input.d.ts +1 -1
  75. package/components/input/dist/base-input.d.ts +1 -1
  76. package/components/input/dist/index.js +3 -3
  77. package/components/input/dist/registered.js +3 -3
  78. package/components/menu/demo/css-only.md +1 -1
  79. package/components/menu/demo/getting-started.md +1 -1
  80. package/components/menu/demo/why-menu.md +3 -3
  81. package/components/radio/demo/api.md +4 -4
  82. package/components/radio/demo/customize.md +14 -4
  83. package/components/radio/demo/customize.min.js +4 -6
  84. package/components/radio/demo/getting-started.md +2 -2
  85. package/components/radio/demo/getting-started.min.js +4 -6
  86. package/components/radio/demo/index.min.js +4 -6
  87. package/components/radio/dist/auro-radio-group.d.ts +3 -5
  88. package/components/radio/dist/index.js +4 -6
  89. package/components/radio/dist/registered.js +4 -6
  90. package/components/select/demo/css-only.md +1 -1
  91. package/components/select/demo/customize.min.js +4 -3
  92. package/components/select/demo/getting-started.min.js +4 -3
  93. package/components/select/demo/index.min.js +4 -3
  94. package/components/select/demo/voiceover.md +1 -1
  95. package/components/select/dist/index.js +4 -3
  96. package/components/select/dist/registered.js +4 -3
  97. package/custom-elements.json +66 -68
  98. package/package.json +1 -1
@@ -136,35 +136,35 @@ export class AuroCalendarCell extends LitElement {
136
136
  */
137
137
  private dateChanged;
138
138
  /**
139
- * Handles user click events and calls datepicker to update the value(s).
139
+ * Called when someone clicks the cell's button, or presses Enter or Space while it's the active cell.
140
+ * Selects the cell's date unless the cell is turned off or the date is a blackout date, and fires
141
+ * `calendar-cell-activate` so the calendar makes the cell the active cell.
140
142
  * @private
141
143
  * @returns {void}
142
144
  */
143
145
  private handleTap;
144
146
  /**
145
- * Handles user hover events and dispatches a custom event.
146
- * Does NOT set any reactive properties; the range preview is handled
147
- * imperatively by the calendar component to avoid O(N) re-renders.
147
+ * Called when the pointer moves over the cell's button. Fires `date-is-hovered` with the cell's date.
148
+ * Doesn't set any reactive properties, because the calendar updates the range preview
149
+ * directly to avoid re-rendering every cell.
148
150
  * @private
149
151
  * @returns {void}
150
152
  */
151
153
  private handleHover;
152
154
  /**
153
- * Handles focus events on the cell button.
154
- * Dispatches a lightweight event for the calendar to handle screen reader
155
- * announcements and range preview updates without triggering
156
- * any Lit lifecycle updates.
155
+ * Called when the cell's button gets focus. Fires `calendar-cell-focused` so the calendar can
156
+ * announce the date to screen readers and update the range preview without re-rendering the cell.
157
157
  * @private
158
158
  * @returns {void}
159
159
  */
160
160
  private handleFocus;
161
161
  /**
162
- * Checks if the current date is outside the valid min/max range.
163
- * Out-of-range cells are not focusable and are hidden from screen readers.
162
+ * Checks whether the cell's date is earlier than `min` or later than `max`.
163
+ * Out-of-range cells aren't focusable and are hidden from screen readers.
164
164
  * @private
165
- * @param {Object} day - An object containing the dateFrom and day of month values.
166
- * @param {Number} min - The minimum date value.
167
- * @param {Number} max - The maximum date value.
165
+ * @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
166
+ * @param {Number} min - The earliest date people can choose, as a Unix timestamp in seconds.
167
+ * @param {Number} max - The latest date people can choose, as a Unix timestamp in seconds.
168
168
  * @returns {Boolean} True if the date is out of range; false otherwise.
169
169
  */
170
170
  private isOutOfRange;
@@ -176,29 +176,28 @@ export class AuroCalendarCell extends LitElement {
176
176
  */
177
177
  private isBlackout;
178
178
  /**
179
- * Checks if the current date is disabled based on min/max range or the
180
- * legacy disabledDays timestamp list. Sets the `disabled` attribute on the
181
- * host when the date falls outside the allowed range or appears in
182
- * disabledDays. Note: blackout dates are handled separately by `isBlackout()`.
179
+ * Checks whether the cell's date is turned off because it's outside `min` and `max` or in the
180
+ * deprecated `disabledDays`, and sets the host's `disabled` attribute to match. Despite its name,
181
+ * it returns true for a turned-off date. Blackout dates are handled separately by `isBlackout()`.
183
182
  * @private
184
- * @param {Object} day - An object containing the dateFrom and day of month values.
185
- * @param {Number} min - The minimum date value.
186
- * @param {Number} max - The maximum date value.
187
- * @param {Array} disabledDays - An array of disabled dates.
188
- * @returns {Boolean} True if the date is disabled; false otherwise.
183
+ * @param {Object} day - The day this cell shows: an object with `date`, a Unix timestamp in seconds, and `title`, the day of the month.
184
+ * @param {Number} min - The earliest date people can choose, as a Unix timestamp in seconds.
185
+ * @param {Number} max - The latest date people can choose, as a Unix timestamp in seconds.
186
+ * @param {Array} disabledDays - The deprecated array of dates people can't select, as Unix timestamps in seconds.
187
+ * @returns {Boolean} True if the date is turned off; false otherwise.
189
188
  */
190
189
  private isEnabled;
191
190
  /**
192
- * Generates a unique cell ID in the format cell-YYYY-MM-DD.
191
+ * Generates a unique cell ID in the format `cell-YYYY-MM-DD`.
193
192
  * @private
194
- * @returns {String} The unique cell ID.
193
+ * @returns {String} The unique cell ID, or an empty string when the cell has no date.
195
194
  */
196
195
  private getCellId;
197
196
  /**
198
- * Generates a localized aria-label for the cell button using Intl.DateTimeFormat.
199
- * Includes range position and blackout status.
197
+ * Generates the cell's localized `aria-label` with `Intl.DateTimeFormat`.
198
+ * Adds the date slot and popover content, the range position, and the blackout label.
200
199
  * @private
201
- * @returns {String} The aria-label string.
200
+ * @returns {String} The `aria-label` text, or an empty string when the cell has no date.
202
201
  */
203
202
  private getAriaLabel;
204
203
  /**
@@ -250,10 +249,10 @@ export class AuroCalendarCell extends LitElement {
250
249
  */
251
250
  isReferenceDate(dateStr: string): boolean;
252
251
  /**
253
- * Determines the title of the auro-calendar-cell.
252
+ * Formats a date as a full date in the cell's `locale`, such as "Monday, April 21, 2025" for `en-US`.
254
253
  * @private
255
- * @param {Number} date - The date of the auro-calendar-cell.
256
- * @returns {String} The title of the auro-calendar-cell in the user's locale.
254
+ * @param {Number} date - The date, as a Unix timestamp in seconds.
255
+ * @returns {String} The formatted date, or an empty string when `date` is undefined.
257
256
  */
258
257
  private getTitle;
259
258
  _titleFormatter: Intl.DateTimeFormat | undefined;
@@ -265,7 +264,7 @@ export class AuroCalendarCell extends LitElement {
265
264
  */
266
265
  private setDateSlotName;
267
266
  /**
268
- * Remove existing cell slot content and clone any current slot content from the root `auro-datepicker` which matches this cells date.
267
+ * Removes the cell's copied slot content, then copies in the `date_YYYY_MM_DD` and `popover_YYYY_MM_DD` content for the cell's date from `auro-datepicker`.
269
268
  * @private
270
269
  * @returns {void}
271
270
  */
@@ -298,8 +297,8 @@ export class AuroCalendarCell extends LitElement {
298
297
  auroPopover: any;
299
298
  updated(properties: any): void;
300
299
  /**
301
- * Sets host-level ARIA so each cell exposes its date, selection state,
302
- * and blackout status to assistive tech browsing the month grid.
300
+ * Sets ARIA attributes on the cell so screen reader users browsing the month grid hear its date,
301
+ * whether it's selected, and whether it's a blackout date. Removes them for a date outside `min` and `max`.
303
302
  * @private
304
303
  * @returns {void}
305
304
  */
@@ -52,10 +52,10 @@ export class AuroCalendarMonth extends RangeDatepickerCalendar {
52
52
  private updated;
53
53
  dayFullNames: any[] | undefined;
54
54
  /**
55
- * Renders a day-of-week column header that shows the short day name and gives screen readers the full name with `aria-label`.
55
+ * Renders a day-of-week column header that shows the narrow day name, such as "S" for Sunday in `en-US`, and gives screen readers the full name with `aria-label`.
56
56
  * @private
57
- * @param {String} dayOfWeek - The short day name.
58
- * @param {Number} index - The index in the dayNamesOfTheWeek array.
57
+ * @param {String} dayOfWeek - The narrow day name, such as "S".
58
+ * @param {Number} index - The column's index in `dayNamesOfTheWeek`, from 0 for Sunday.
59
59
  * @returns {Object} The header HTML.
60
60
  */
61
61
  private renderDayOfWeek;
@@ -65,17 +65,17 @@ export class AuroCalendarMonth extends RangeDatepickerCalendar {
65
65
  */
66
66
  getFocusableCells(): any[];
67
67
  /**
68
- * Overrides the base class handler to prevent setting `this.hoveredDate`
69
- * as a reactive property. Instead, just dispatches the event upward so
70
- * the calendar can handle range preview imperatively.
68
+ * Called when a cell fires `date-is-hovered`. Fires `hovered-date-changed` with the date
69
+ * instead of setting the base class's reactive `hoveredDate`, so the calendar can update
70
+ * the range preview without re-rendering.
71
71
  * @private
72
72
  * @param {CustomEvent} event - The date-is-hovered event from a cell.
73
73
  * @returns {void}
74
74
  */
75
75
  private handleDateHovered;
76
76
  /**
77
- * Dispatches a bubbling event when the mouse leaves the date grid body
78
- * so the parent calendar can clear the range hover preview.
77
+ * Called when the pointer leaves the month's date grid. Fires a bubbling
78
+ * `calendar-month-mouseleave` event so the calendar can clear the range preview.
79
79
  * @private
80
80
  * @returns {void}
81
81
  */
@@ -303,9 +303,10 @@ export class AuroCalendar extends RangeDatepicker {
303
303
  */
304
304
  private _afterMonthRender;
305
305
  /**
306
- * Renders all of the auro-calendar-months HTML.
306
+ * Renders the calendar's `auro-formkit-calendar-month` elements, one for each month shown.
307
+ * Renders nothing until `visible` is set.
307
308
  * @private
308
- * @returns {Object} The auro-calendar-months HTML.
309
+ * @returns {Object|undefined} The months' template, or undefined when `visible` isn't set.
309
310
  */
310
311
  private renderAllCalendars;
311
312
  firstRenderedMonth: any;
@@ -358,14 +359,16 @@ export class AuroCalendar extends RangeDatepicker {
358
359
  */
359
360
  focusActiveCell(): void;
360
361
  /**
361
- * Shows the activeCell ring when the grid gains focus.
362
+ * Called when focus moves into the calendar grid. Shows the focus ring on the active cell
363
+ * when the grid itself gets focus, not a cell inside it.
362
364
  * @private
363
365
  * @param {FocusEvent} [event] - The focusin event.
364
366
  * @returns {void}
365
367
  */
366
368
  private handleGridFocusIn;
367
369
  /**
368
- * Hides the activeCell ring when the grid loses focus.
370
+ * Called when the calendar grid or an element in it loses focus. Removes the focus ring from
371
+ * every cell, and clears the range preview while the range doesn't have both dates.
369
372
  * @private
370
373
  * @returns {void}
371
374
  */
@@ -406,15 +409,17 @@ export class AuroCalendar extends RangeDatepicker {
406
409
  /**
407
410
  * Computes the initial active date from data properties alone, without the DOM.
408
411
  * Priority:
409
- * 1. Selected date (dateFrom) if within range
410
- * 2. Today's date if not disabled (in-range and not blackout)
411
- * 3. First future non-disabled date (scans day-by-day from today up to 1 year)
412
- * 4. First previous non-disabled date (scans day-by-day from today up to 1 year)
413
- * 5. First enabled date in finite [min, max] range
414
- * 5b. First enabled date scanning forward from finite min (unbounded max)
415
- * 5c. First enabled date scanning backward from finite max (unbounded min)
416
- * 6. First in-range date (even if blackout) so focus can land somewhere
417
- * 7. Undefined: no valid target.
412
+ * 1. The selected date (`dateFrom`), if it's within range.
413
+ * 2. When `centralDate` is in a different month than today, the first enabled date in that month, or else its first in-range date.
414
+ * 3. Today's date, if it's enabled (in range and not a blackout date).
415
+ * 4. The first enabled date in the visible months, or else their first in-range date.
416
+ * 5. The first enabled date after today, scanning day by day for up to a year.
417
+ * 6. The first enabled date before today, scanning day by day for up to a year.
418
+ * 7. The first enabled date in a finite [min, max] range.
419
+ * 7b. The first enabled date scanning forward from a finite min (unbounded max).
420
+ * 7c. The first enabled date scanning backward from a finite max (unbounded min).
421
+ * 8. An in-range date, even if it's a blackout date, so focus can land somewhere: min when it's finite, or else today.
422
+ * 9. Undefined: no valid target.
418
423
  *
419
424
  * @private
420
425
  * @param {Object} [options] - The optional settings.
@@ -434,32 +439,34 @@ export class AuroCalendar extends RangeDatepicker {
434
439
  */
435
440
  private isDateInRange;
436
441
  /**
437
- * Handles arrow key navigation on the calendar grid wrapper.
438
- * Focus stays on the grid wrapper; only the visual active-cell indicator
439
- * changes. The live region announces the new active cell.
442
+ * Called when a key is pressed while the calendar grid has focus. The arrow keys move the
443
+ * active cell, into another month when needed, and Enter or Space selects the active date
444
+ * unless it's a blackout date. Focus stays on the grid, and the live region announces the new active cell.
440
445
  * @private
441
446
  * @param {KeyboardEvent} event - The keyboard event.
442
447
  * @returns {void}
443
448
  */
444
449
  private handleGridKeyDown;
445
450
  /**
446
- * Handles cross-month boundary navigation events from month components.
451
+ * Called when the calendar receives a `calendar-month-boundary` event. Moves the active cell
452
+ * across a month boundary for the arrow key in `event.detail.key`. Nothing in the datepicker
453
+ * currently fires this event.
447
454
  * @private
448
455
  * @param {CustomEvent} event - The boundary event with direction and source date info.
449
456
  * @returns {void}
450
457
  */
451
458
  private handleMonthBoundary;
452
459
  /**
453
- * Handles cell activation events from month components.
460
+ * Called when a cell fires `calendar-cell-activate` after someone selects it. Makes that cell
461
+ * the active cell without moving focus to the grid.
454
462
  * @private
455
463
  * @param {CustomEvent} event - The activation event with target date.
456
464
  * @returns {void}
457
465
  */
458
466
  private handleCellActivate;
459
467
  /**
460
- * Handles focus events from calendar cells.
461
- * Updates the live region with a screen reader announcement and triggers
462
- * the imperative range preview if applicable.
468
+ * Called when a cell's button gets focus, and after the arrow keys move the active cell.
469
+ * Announces the date to screen readers through the live region and updates the range preview.
463
470
  * @private
464
471
  * @param {CustomEvent} event - The calendar-cell-focused event.
465
472
  * @returns {void}
@@ -531,7 +538,7 @@ export class AuroCalendar extends RangeDatepicker {
531
538
  *
532
539
  * The cell's `applyCommittedRangeClasses` reuses the same
533
540
  * `isInRange`/`isDepartDate`/`isReturnDate` helpers `renderCellButton`
534
- * uses, so we don't parse dateFrom/dateTo here; the helpers already
541
+ * uses, so this method doesn't parse `dateFrom` or `dateTo`; the helpers already
535
542
  * normalize their inputs (midnight-truncation, string→int) internally.
536
543
  * @private
537
544
  * @returns {void}
@@ -551,8 +558,8 @@ export class AuroCalendar extends RangeDatepicker {
551
558
  */
552
559
  private scheduleCommittedRangeClassRefresh;
553
560
  /**
554
- * Overrides the base class handler to prevent setting `this.hoveredDate`
555
- * as a reactive property. Instead, handles the range preview imperatively.
561
+ * Called when a month fires `hovered-date-changed`. Updates the range preview directly
562
+ * instead of setting the base class's reactive `hoveredDate`, so the cells don't re-render.
556
563
  * @private
557
564
  * @param {CustomEvent} event - The hovered-date-changed event from a month.
558
565
  * @returns {void}
@@ -564,7 +571,7 @@ export class AuroCalendar extends RangeDatepicker {
564
571
  * Walks the flat tree (rendered, slot-aware) outward from the active
565
572
  * cell's button and calls `scrollBy` on every vertically-scrollable
566
573
  * ancestor by whatever delta still separates the cell from that
567
- * ancestor's viewport. Native `scrollIntoView` is not used because the
574
+ * ancestor's viewport. Native `scrollIntoView` isn't used because the
568
575
  * cell sits inside multiple nested scroll containers (the dropdown bib's
569
576
  * `<dialog>`, the bibtemplate's `#bodyContainer`) and the algorithm only
570
577
  * scrolls one of them on its own, leaving the cell short of the
@@ -574,7 +581,7 @@ export class AuroCalendar extends RangeDatepicker {
574
581
  * value) so each `scrollBy` resolves synchronously and the next
575
582
  * iteration's `getBoundingClientRect` reads post-scroll positions
576
583
  * accurately. This also satisfies `prefers-reduced-motion` users: the
577
- * scroll containers do not set CSS `scroll-behavior: smooth`, so `auto`
584
+ * scroll containers don't set CSS `scroll-behavior: smooth`, so `auto`
578
585
  * is effectively instant.
579
586
  *
580
587
  * The active cell is looked up from the cache populated by
@@ -630,16 +637,15 @@ export class AuroCalendar extends RangeDatepicker {
630
637
  */
631
638
  private _deliverAnnouncement;
632
639
  /**
633
- * Debounced version of announceSelection for focus navigation.
634
- * Uses the assertive live region with a 150ms debounce so only the
635
- * final cell after rapid arrow-key traversal is announced. We
636
- * originally tried aria-live="polite" here, but VoiceOver treats
637
- * polite as "wait until idle", which never happens during active
638
- * keyboard navigation, so the announcements were silently dropped.
640
+ * Announces a date to screen readers after a 150 ms pause, so only the
641
+ * last cell reached with the arrow keys is announced.
642
+ * Uses the assertive live region, because VoiceOver waits for the page to
643
+ * be idle before it reads a polite one, which never happens during
644
+ * arrow-key navigation, so polite announcements were dropped.
639
645
  *
640
646
  * This is a documented deviation from WCAG 2.1 SC 4.1.3, which
641
647
  * prefers `polite` for status messages. See the "Documented
642
- * Deviation" section in components/datepicker/docs/pages/accessibility.md.
648
+ * deviation" section in `components/datepicker/docs/pages/accessibility.md`.
643
649
  * @private
644
650
  * @param {String} dateStr - The localized date string to announce.
645
651
  * @returns {void}
@@ -516,7 +516,7 @@ export class AuroDatePicker extends AuroElement {
516
516
  reflect: boolean;
517
517
  };
518
518
  /**
519
- * Indicates whether the datepicker is in a dirty state (has been interacted with).
519
+ * Marks the datepicker as used once it gets focus, so validation can report a missing required date. `reset()` clears it.
520
520
  * @private
521
521
  */
522
522
  touched: {
@@ -563,7 +563,7 @@ export class AuroDatePicker extends AuroElement {
563
563
  * Per-class dedup set used by `_warnInvalidLocale`. Static so the dedup
564
564
  * spans every datepicker instance on the page; lives on the class (not
565
565
  * at module scope) so it stays an encapsulated implementation detail of
566
- * this component and does not interfere with WCA's class-JSDoc
566
+ * this component and doesn't interfere with WCA's class-JSDoc
567
567
  * attachment.
568
568
  * @private
569
569
  */
@@ -673,7 +673,8 @@ export class AuroDatePicker extends AuroElement {
673
673
  */
674
674
  private helpTextTag;
675
675
  /**
676
- * Handles click events on the datepicker.
676
+ * Called when someone clicks the datepicker. Stops a click on the inert trigger from closing the open calendar,
677
+ * and in the `snowflake` layout, moves focus to the start date input when the click isn't on an input or the calendar and no input has focus.
677
678
  * @param {PointerEvent} event - The pointer event object.
678
679
  * @private
679
680
  * @returns {void}
@@ -695,7 +696,7 @@ export class AuroDatePicker extends AuroElement {
695
696
  */
696
697
  private _listenerAbortController;
697
698
  /**
698
- * Handles click on the clear button.
699
+ * Called when someone selects the clear button. Clears the chosen dates and moves focus to the start date input.
699
700
  * @private
700
701
  * @param {MouseEvent} event - The mouse event from the clear button click.
701
702
  * @returns {void}
@@ -740,7 +741,7 @@ export class AuroDatePicker extends AuroElement {
740
741
  */
741
742
  private get commonDisplayValueWrapperClasses();
742
743
  /**
743
- * Checks whether the `displayValue` slot has content to render.
744
+ * Called when the `displayValue` slot's content changes. Records whether the slot has content to show.
744
745
  * @private
745
746
  * @returns {void}
746
747
  */
@@ -972,7 +973,7 @@ export class AuroDatePicker extends AuroElement {
972
973
  get hasError(): boolean;
973
974
  /**
974
975
  * Logs a one-time `console.debug` when an unsupported locale falls back to
975
- * en-US. Deduped by the offending tag so noisy re-renders that resurface
976
+ * `en-US`. Deduped by the offending tag so noisy re-renders that resurface
976
977
  * the same bad value stay quiet, but each new bad value still signals so
977
978
  * consumers can spot the typo or missing tag.
978
979
  * @private
@@ -992,7 +993,8 @@ export class AuroDatePicker extends AuroElement {
992
993
  previousTabIndex: string | null | undefined;
993
994
  wasCellClick: boolean | undefined;
994
995
  /**
995
- * Handles the transfer of content between slots in the component.
996
+ * Called when a slot the datepicker passes to the calendar changes, such as `bib.fullscreen.headline`.
997
+ * Copies the slot's content into the calendar.
996
998
  *
997
999
  * @private
998
1000
  * @method handleSlotToSlot