@aurodesignsystem-dev/auro-formkit 0.0.0-pr1480.0 → 0.0.0-pr1480.10
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/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/customize.min.js +3 -3
- package/components/combobox/demo/getting-started.min.js +3 -3
- package/components/combobox/demo/index.min.js +3 -3
- package/components/combobox/dist/index.js +3 -3
- package/components/combobox/dist/registered.js +3 -3
- package/components/counter/demo/customize.min.js +2 -2
- package/components/counter/demo/index.min.js +2 -2
- package/components/counter/dist/index.js +1 -1
- package/components/counter/dist/registered.js +1 -1
- package/components/datepicker/demo/customize.min.js +253 -96
- package/components/datepicker/demo/index.min.js +269 -101
- package/components/datepicker/dist/index.js +253 -96
- package/components/datepicker/dist/registered.js +253 -96
- package/components/datepicker/dist/src/auro-calendar-cell.d.ts +3 -4
- package/components/datepicker/dist/src/auro-calendar.d.ts +74 -5
- package/components/dropdown/demo/customize.min.js +1 -1
- package/components/dropdown/demo/getting-started.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/dist/registered.js +1 -1
- package/components/form/demo/customize.min.js +262 -105
- package/components/form/demo/getting-started.min.js +262 -105
- package/components/form/demo/index.min.js +262 -105
- package/components/form/demo/registerDemoDeps.min.js +262 -105
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/radio/demo/customize.min.js +1 -1
- package/components/radio/demo/getting-started.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +2 -2
- package/components/select/demo/getting-started.min.js +2 -2
- package/components/select/demo/index.min.js +2 -2
- package/components/select/dist/index.js +2 -2
- package/components/select/dist/registered.js +2 -2
- package/custom-elements.json +99 -5
- package/package.json +1 -1
|
@@ -238,14 +238,13 @@ export class AuroCalendarCell extends LitElement {
|
|
|
238
238
|
*/
|
|
239
239
|
focusButton(): void;
|
|
240
240
|
/**
|
|
241
|
-
* Imperatively marks this cell as active
|
|
242
|
-
*
|
|
241
|
+
* Imperatively marks this cell as active without triggering a Lit re-render.
|
|
242
|
+
* Note: buttons stay tabindex="-1" because the grid uses aria-activedescendant.
|
|
243
243
|
* @returns {void}
|
|
244
244
|
*/
|
|
245
245
|
setActive(): void;
|
|
246
246
|
/**
|
|
247
|
-
* Imperatively marks this cell as inactive
|
|
248
|
-
* triggering a Lit re-render.
|
|
247
|
+
* Imperatively marks this cell as inactive without triggering a Lit re-render.
|
|
249
248
|
* @returns {void}
|
|
250
249
|
*/
|
|
251
250
|
clearActive(): void;
|
|
@@ -129,6 +129,12 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
129
129
|
* @private
|
|
130
130
|
*/
|
|
131
131
|
private activeCellDate;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the #calendarGrid wrapper currently has focus.
|
|
134
|
+
* Used to determine whether the visualFocus ring should be shown.
|
|
135
|
+
* @private
|
|
136
|
+
*/
|
|
137
|
+
private _gridHasFocus;
|
|
132
138
|
/**
|
|
133
139
|
* @private
|
|
134
140
|
*/
|
|
@@ -154,16 +160,35 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
154
160
|
*/
|
|
155
161
|
private buttonTag;
|
|
156
162
|
dropdown: any;
|
|
163
|
+
/**
|
|
164
|
+
* Updates the month and year when the user navigates to the previous calendar month.
|
|
165
|
+
* @private
|
|
166
|
+
* @param {Object} [options] - Optional settings.
|
|
167
|
+
* @param {boolean} [options.skipActiveUpdate=false] - When true, skip the active cell
|
|
168
|
+
* recomputation. Used by arrow key handlers that manage the active cell themselves.
|
|
169
|
+
* @returns {void}
|
|
170
|
+
*/
|
|
171
|
+
private handlePrevMonth;
|
|
172
|
+
/**
|
|
173
|
+
* Updates the month and year when the user navigates to the next calendar month.
|
|
174
|
+
* @private
|
|
175
|
+
* @param {Object} [options] - Optional settings.
|
|
176
|
+
* @param {boolean} [options.skipActiveUpdate=false] - When true, skip the active cell
|
|
177
|
+
* recomputation. Used by arrow key handlers that manage the active cell themselves.
|
|
178
|
+
* @returns {void}
|
|
179
|
+
*/
|
|
180
|
+
private handleNextMonth;
|
|
157
181
|
/**
|
|
158
182
|
* Announces the current month and year via the live region after navigation.
|
|
159
183
|
* @private
|
|
160
184
|
* @returns {void}
|
|
161
185
|
*/
|
|
162
186
|
private announceMonthChange;
|
|
187
|
+
_focusAnnounceTimer: any;
|
|
163
188
|
/**
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
*
|
|
189
|
+
* Updates the active cell after month navigation (prev/next buttons).
|
|
190
|
+
* Always moves the active cell to the first enabled date in the newly
|
|
191
|
+
* visible months so that tabbing back to the grid lands on an enabled cell.
|
|
167
192
|
* @private
|
|
168
193
|
* @returns {void}
|
|
169
194
|
*/
|
|
@@ -210,11 +235,23 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
210
235
|
setActiveCell(date: number): void;
|
|
211
236
|
/**
|
|
212
237
|
* Focuses the calendar grid wrapper and sets the active cell.
|
|
213
|
-
* DOM focus stays on the grid wrapper;
|
|
238
|
+
* DOM focus stays on the grid wrapper; the aria-live region
|
|
214
239
|
* tells the screen reader which cell is "active".
|
|
215
240
|
* @returns {void}
|
|
216
241
|
*/
|
|
217
242
|
focusActiveCell(): void;
|
|
243
|
+
/**
|
|
244
|
+
* Shows the activeCell ring when the grid gains focus.
|
|
245
|
+
* @private
|
|
246
|
+
* @returns {void}
|
|
247
|
+
*/
|
|
248
|
+
private handleGridFocusIn;
|
|
249
|
+
/**
|
|
250
|
+
* Hides the activeCell ring when the grid loses focus.
|
|
251
|
+
* @private
|
|
252
|
+
* @returns {void}
|
|
253
|
+
*/
|
|
254
|
+
private handleGridFocusOut;
|
|
218
255
|
/**
|
|
219
256
|
* Computes the initial active date from data properties alone — no DOM required.
|
|
220
257
|
* Priority:
|
|
@@ -236,6 +273,15 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
236
273
|
* @returns {Number|undefined} Unix timestamp (seconds) of the date to activate, or undefined.
|
|
237
274
|
*/
|
|
238
275
|
private computeActiveDate;
|
|
276
|
+
/**
|
|
277
|
+
* Checks if a target date (unix seconds) is within the configured [min, max] range.
|
|
278
|
+
* Returns false if the date falls outside the range, preventing navigation
|
|
279
|
+
* to months where all dates are disabled.
|
|
280
|
+
* @private
|
|
281
|
+
* @param {Number} targetTs - Unix timestamp in seconds.
|
|
282
|
+
* @returns {Boolean} True if the date is within range.
|
|
283
|
+
*/
|
|
284
|
+
private isDateInRange;
|
|
239
285
|
/**
|
|
240
286
|
* Handles arrow key navigation on the calendar grid wrapper.
|
|
241
287
|
* Focus stays on the grid wrapper; only ariaActiveDescendantElement
|
|
@@ -319,8 +365,32 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
319
365
|
* @returns {void}
|
|
320
366
|
*/
|
|
321
367
|
private scrollToActiveCell;
|
|
368
|
+
/**
|
|
369
|
+
* Generates a unique ID for the live region scoped to this datepicker.
|
|
370
|
+
* Uses the datepicker host's id attribute if present, otherwise falls
|
|
371
|
+
* back to a random hash.
|
|
372
|
+
* @private
|
|
373
|
+
* @returns {string} The unique live region element ID.
|
|
374
|
+
*/
|
|
375
|
+
private _getLiveRegionId;
|
|
376
|
+
_liveRegionId: string | null | undefined;
|
|
377
|
+
/**
|
|
378
|
+
* Returns (and lazily creates) a document-level aria-live region.
|
|
379
|
+
* Chrome does not reliably observe aria-live regions inside shadow DOM
|
|
380
|
+
* (even one level up in a parent component's shadow root), so this
|
|
381
|
+
* element must be appended to document.body. Each datepicker instance
|
|
382
|
+
* gets its own uniquely-identified live region.
|
|
383
|
+
* @private
|
|
384
|
+
* @returns {HTMLElement} The live region element.
|
|
385
|
+
*/
|
|
386
|
+
private getOrCreateLiveRegion;
|
|
387
|
+
_liveRegion: HTMLElement | HTMLDivElement | null | undefined;
|
|
388
|
+
_announceRafId: any;
|
|
322
389
|
/**
|
|
323
390
|
* Announces a date selection or focus change via the live region.
|
|
391
|
+
* Uses requestAnimationFrame to ensure the clear and set happen in
|
|
392
|
+
* separate rendering frames — Chrome may coalesce synchronous or
|
|
393
|
+
* microtask-deferred mutations into a single accessibility tree update.
|
|
324
394
|
* @private
|
|
325
395
|
* @param {String} dateStr - The localized date string to announce.
|
|
326
396
|
* @returns {void}
|
|
@@ -336,7 +406,6 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
336
406
|
* @returns {void}
|
|
337
407
|
*/
|
|
338
408
|
private announceFocusDebounced;
|
|
339
|
-
_focusAnnounceTimer: any;
|
|
340
409
|
/**
|
|
341
410
|
* Formats a Unix timestamp (seconds) as a localized date string for SR announcements.
|
|
342
411
|
* @private
|