@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.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +1 -1
- package/components/bibtemplate/dist/registered.js +1 -1
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/api.md +2 -2
- package/components/combobox/demo/css-only.md +3 -3
- package/components/combobox/demo/customize.min.js +12 -9
- package/components/combobox/demo/getting-started.min.js +12 -9
- package/components/combobox/demo/index.md +1 -1
- package/components/combobox/demo/index.min.js +12 -9
- package/components/combobox/dist/auro-combobox.d.ts +5 -3
- package/components/combobox/dist/index.js +12 -9
- package/components/combobox/dist/registered.js +12 -9
- package/components/counter/demo/accessibility.md +1 -1
- package/components/counter/demo/css-only.md +1 -1
- package/components/counter/demo/customize.min.js +6 -6
- package/components/counter/demo/getting-started.min.js +6 -6
- package/components/counter/demo/index.min.js +6 -6
- package/components/counter/demo/why-counter.md +2 -2
- package/components/counter/dist/auro-counter-group.d.ts +2 -3
- package/components/counter/dist/index.js +6 -6
- package/components/counter/dist/registered.js +6 -6
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/accessibility.md +2 -2
- package/components/datepicker/demo/css-only.md +3 -3
- package/components/datepicker/demo/customize.md +1 -1
- package/components/datepicker/demo/customize.min.js +106 -96
- package/components/datepicker/demo/design.md +2 -2
- package/components/datepicker/demo/getting-started.md +1 -1
- package/components/datepicker/demo/getting-started.min.js +106 -96
- package/components/datepicker/demo/index.md +2 -2
- package/components/datepicker/demo/index.min.js +106 -96
- package/components/datepicker/demo/keyboard-behavior.md +1 -1
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/demo/voiceover.md +3 -3
- package/components/datepicker/demo/why-datepicker.md +2 -2
- package/components/datepicker/dist/auro-calendar-cell.d.ts +32 -33
- package/components/datepicker/dist/auro-calendar-month.d.ts +8 -8
- package/components/datepicker/dist/auro-calendar.d.ts +39 -33
- package/components/datepicker/dist/auro-datepicker.d.ts +9 -7
- package/components/datepicker/dist/index.js +106 -96
- package/components/datepicker/dist/registered.js +106 -96
- package/components/datepicker/dist/utilities.d.ts +1 -1
- package/components/datepicker/dist/utilitiesCalendar.d.ts +4 -2
- package/components/datepicker/dist/utilitiesCalendarRender.d.ts +4 -4
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/customize.min.js +2 -1
- package/components/dropdown/demo/getting-started.min.js +5 -4
- package/components/dropdown/demo/index.min.js +2 -1
- package/components/dropdown/demo/voiceover.md +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -0
- package/components/dropdown/dist/index.js +2 -1
- package/components/dropdown/dist/registered.js +2 -1
- package/components/form/README.md +1 -1
- package/components/form/demo/css-only.md +1 -1
- package/components/form/demo/customize.min.js +136 -124
- package/components/form/demo/getting-started.min.js +136 -124
- package/components/form/demo/index.min.js +136 -124
- package/components/form/demo/keyboard-behavior.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/form/demo/registerDemoDeps.min.js +136 -124
- package/components/input/demo/css-only.md +3 -3
- package/components/input/demo/customize.md +1 -1
- package/components/input/demo/customize.min.js +3 -3
- package/components/input/demo/design.md +2 -2
- package/components/input/demo/getting-started.min.js +3 -3
- package/components/input/demo/index.md +1 -1
- package/components/input/demo/index.min.js +3 -3
- package/components/input/demo/why-input.md +1 -1
- package/components/input/dist/auro-input.d.ts +1 -1
- package/components/input/dist/base-input.d.ts +1 -1
- package/components/input/dist/index.js +3 -3
- package/components/input/dist/registered.js +3 -3
- package/components/menu/demo/css-only.md +1 -1
- package/components/menu/demo/getting-started.md +1 -1
- package/components/menu/demo/why-menu.md +3 -3
- package/components/radio/demo/api.md +4 -4
- package/components/radio/demo/customize.md +14 -4
- package/components/radio/demo/customize.min.js +4 -6
- package/components/radio/demo/getting-started.md +2 -2
- package/components/radio/demo/getting-started.min.js +4 -6
- package/components/radio/demo/index.min.js +4 -6
- package/components/radio/dist/auro-radio-group.d.ts +3 -5
- package/components/radio/dist/index.js +4 -6
- package/components/radio/dist/registered.js +4 -6
- package/components/select/demo/css-only.md +1 -1
- package/components/select/demo/customize.min.js +4 -3
- package/components/select/demo/getting-started.min.js +4 -3
- package/components/select/demo/index.min.js +4 -3
- package/components/select/demo/voiceover.md +1 -1
- package/components/select/dist/index.js +4 -3
- package/components/select/dist/registered.js +4 -3
- package/custom-elements.json +66 -68
- package/package.json +1 -1
|
@@ -136,35 +136,35 @@ export class AuroCalendarCell extends LitElement {
|
|
|
136
136
|
*/
|
|
137
137
|
private dateChanged;
|
|
138
138
|
/**
|
|
139
|
-
*
|
|
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
|
-
*
|
|
146
|
-
*
|
|
147
|
-
*
|
|
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
|
-
*
|
|
154
|
-
*
|
|
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
|
|
163
|
-
* Out-of-range cells
|
|
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 -
|
|
166
|
-
* @param {Number} min - The
|
|
167
|
-
* @param {Number} max - The
|
|
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
|
|
180
|
-
*
|
|
181
|
-
*
|
|
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 -
|
|
185
|
-
* @param {Number} min - The
|
|
186
|
-
* @param {Number} max - The
|
|
187
|
-
* @param {Array} disabledDays -
|
|
188
|
-
* @returns {Boolean} True if the date is
|
|
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
|
|
199
|
-
*
|
|
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
|
-
*
|
|
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
|
|
256
|
-
* @returns {String} The
|
|
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
|
-
*
|
|
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
|
|
302
|
-
* and blackout
|
|
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
|
|
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
|
|
58
|
-
* @param {Number} index - The index in
|
|
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
|
-
*
|
|
69
|
-
*
|
|
70
|
-
* the
|
|
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
|
-
*
|
|
78
|
-
* so the
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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.
|
|
410
|
-
* 2.
|
|
411
|
-
* 3.
|
|
412
|
-
* 4.
|
|
413
|
-
* 5.
|
|
414
|
-
*
|
|
415
|
-
*
|
|
416
|
-
*
|
|
417
|
-
*
|
|
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
|
-
*
|
|
438
|
-
*
|
|
439
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
461
|
-
*
|
|
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
|
|
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
|
-
*
|
|
555
|
-
*
|
|
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`
|
|
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
|
|
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
|
-
*
|
|
634
|
-
*
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
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
|