@aurodesignsystem-dev/auro-formkit 0.0.0-pr1514.12 → 0.0.0-pr1514.2
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/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/customize.min.js +97 -121
- package/components/combobox/demo/getting-started.min.js +97 -121
- package/components/combobox/demo/index.min.js +97 -121
- package/components/combobox/dist/index.js +96 -120
- package/components/combobox/dist/registered.js +96 -120
- package/components/counter/demo/customize.min.js +3 -11
- package/components/counter/demo/index.min.js +3 -11
- package/components/counter/dist/index.js +3 -11
- package/components/counter/dist/registered.js +3 -11
- package/components/datepicker/demo/customize.min.js +137 -271
- package/components/datepicker/demo/index.min.js +137 -271
- package/components/datepicker/dist/auro-calendar-cell.d.ts +0 -6
- package/components/datepicker/dist/auro-calendar.d.ts +7 -26
- package/components/datepicker/dist/index.js +137 -271
- package/components/datepicker/dist/registered.js +137 -271
- package/components/dropdown/demo/customize.min.js +1 -2
- package/components/dropdown/demo/getting-started.min.js +1 -2
- package/components/dropdown/demo/index.min.js +1 -2
- package/components/dropdown/dist/index.js +1 -2
- package/components/dropdown/dist/registered.js +1 -2
- package/components/form/demo/customize.min.js +396 -709
- package/components/form/demo/getting-started.min.js +396 -709
- package/components/form/demo/index.min.js +396 -709
- package/components/form/demo/registerDemoDeps.min.js +396 -709
- package/components/input/demo/api.md +5 -5
- package/components/input/demo/customize.md +8 -8
- package/components/input/demo/customize.min.js +93 -116
- package/components/input/demo/getting-started.min.js +93 -116
- package/components/input/demo/index.min.js +93 -116
- package/components/input/dist/base-input.d.ts +44 -33
- package/components/input/dist/index.js +94 -129
- package/components/input/dist/registered.js +93 -116
- 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.md +0 -86
- package/components/select/demo/customize.min.js +63 -187
- package/components/select/demo/getting-started.min.js +110 -189
- package/components/select/demo/index.min.js +63 -187
- package/components/select/demo/keyboard-behavior.md +4 -18
- package/components/select/dist/auro-select.d.ts +8 -20
- package/components/select/dist/index.js +63 -187
- package/components/select/dist/registered.js +63 -187
- package/custom-elements.json +1791 -1997
- package/package.json +1 -1
|
@@ -253,12 +253,6 @@ export class AuroCalendarCell extends LitElement {
|
|
|
253
253
|
* Buttons stay tabindex="-1" because DOM focus stays on the grid wrapper —
|
|
254
254
|
* arrow keys move the active cell imperatively and the live region carries
|
|
255
255
|
* the SR announcement.
|
|
256
|
-
*
|
|
257
|
-
* Refuses to activate out-of-range cells: those are aria-hidden, have no
|
|
258
|
-
* click/focus handlers, and are filtered out of `getFocusableCells`. The
|
|
259
|
-
* active class showing on a disabled cell would be visually misleading,
|
|
260
|
-
* so this guard is the single source of truth across every code path
|
|
261
|
-
* that might call setActive (keyboard nav, focus restore, cell click).
|
|
262
256
|
* @returns {void}
|
|
263
257
|
*/
|
|
264
258
|
setActive(): void;
|
|
@@ -152,10 +152,8 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
152
152
|
*/
|
|
153
153
|
private activeCellDate;
|
|
154
154
|
/**
|
|
155
|
-
* Cached reference to the active cell host
|
|
156
|
-
*
|
|
157
|
-
* or missing). Lets scrollToActiveCell skip a full cell scan on each
|
|
158
|
-
* arrow key.
|
|
155
|
+
* Cached reference to the active cell host, set by setActiveCell.
|
|
156
|
+
* Lets scrollToActiveCell skip a full cell scan on each arrow key.
|
|
159
157
|
* @private
|
|
160
158
|
*/
|
|
161
159
|
private _activeCell;
|
|
@@ -471,28 +469,11 @@ export class AuroCalendar extends RangeDatepicker {
|
|
|
471
469
|
*/
|
|
472
470
|
private hoveredDateChanged;
|
|
473
471
|
/**
|
|
474
|
-
* Scrolls the calendar
|
|
475
|
-
*
|
|
476
|
-
*
|
|
477
|
-
*
|
|
478
|
-
*
|
|
479
|
-
* ancestor's viewport. Native `scrollIntoView` is not used because the
|
|
480
|
-
* cell sits inside multiple nested scroll containers (the dropdown bib's
|
|
481
|
-
* `<dialog>`, the bibtemplate's `#bodyContainer`) and the algorithm only
|
|
482
|
-
* scrolls one of them on its own, leaving the cell short of the
|
|
483
|
-
* viewport in mobile fullscreen.
|
|
484
|
-
*
|
|
485
|
-
* Uses `behavior: 'auto'` (the spec's universally-supported non-animated
|
|
486
|
-
* value) so each `scrollBy` resolves synchronously and the next
|
|
487
|
-
* iteration's `getBoundingClientRect` reads post-scroll positions
|
|
488
|
-
* accurately. This also satisfies `prefers-reduced-motion` users — the
|
|
489
|
-
* scroll containers do not set CSS `scroll-behavior: smooth`, so `auto`
|
|
490
|
-
* is effectively instant.
|
|
491
|
-
*
|
|
492
|
-
* The active cell is looked up from the cache populated by
|
|
493
|
-
* `setActiveCell`. On a cache miss (stale or absent) the cache is
|
|
494
|
-
* refreshed from a single full scan so subsequent calls stay on the
|
|
495
|
-
* fast path.
|
|
472
|
+
* Scrolls the calendar to ensure the active cell is visible.
|
|
473
|
+
* Targets the cell itself (not its month) so that same-month vertical
|
|
474
|
+
* navigation in mobile fullscreen — where a single month can exceed the
|
|
475
|
+
* viewport height — scrolls to the target row. `block: 'nearest'` is a
|
|
476
|
+
* no-op when the cell is already in view, preserving desktop behavior.
|
|
496
477
|
* @private
|
|
497
478
|
* @returns {void}
|
|
498
479
|
*/
|