@vizejs/ui 0.715.0 → 0.717.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.
- package/dist/{accordion-B8xySJ9Z.mjs → accordion-DCZpHYPr.mjs} +1 -1
- package/dist/accordion.d.mts +1 -1
- package/dist/accordion.mjs +1 -1
- package/dist/{action-sheet-CTfduiVj.mjs → action-sheet-BUUgo0WP.mjs} +1 -1
- package/dist/action-sheet.d.mts +1 -1
- package/dist/action-sheet.mjs +3 -3
- package/dist/{alert-dialog-DGbpHYVc.mjs → alert-dialog-BI00j7h7.mjs} +1 -1
- package/dist/alert-dialog.d.mts +1 -1
- package/dist/alert-dialog.mjs +2 -2
- package/dist/{announcer-ClXq46zr.d.mts → announcer-DqH760YF.d.mts} +27 -17
- package/dist/announcer.d.mts +1 -1
- package/dist/autocomplete.d.mts +1 -1
- package/dist/avatar.d.mts +1 -1
- package/dist/badge.d.mts +1 -1
- package/dist/banner.d.mts +1 -1
- package/dist/block-ui.d.mts +1 -1
- package/dist/blockquote.d.mts +1 -1
- package/dist/{breadcrumb-SsZSEerN.d.mts → breadcrumb-aITc0VLc.d.mts} +1 -1
- package/dist/breadcrumb.d.mts +1 -1
- package/dist/{calendar-year-select.vue-BohqVCaU.d.mts → calendar-year-select.vue-BQcKQTQK.d.mts} +3 -1
- package/dist/calendar.d.mts +2 -2
- package/dist/callout.d.mts +1 -1
- package/dist/card.d.mts +1 -1
- package/dist/{cascader-Cjq1lBSV.d.mts → cascader-CpuiN9gN.d.mts} +1 -1
- package/dist/cascader.d.mts +1 -1
- package/dist/catalog.d.mts +4 -0
- package/dist/catalog.mjs +7 -0
- package/dist/chart.d.mts +1 -1
- package/dist/checkbox.d.mts +1 -1
- package/dist/code.d.mts +1 -1
- package/dist/{collapsible-773Rn_1a.mjs → collapsible-Bu1EaVPo.mjs} +1 -0
- package/dist/collapsible.d.mts +1 -1
- package/dist/collapsible.mjs +1 -1
- package/dist/{collection-BaPf8lgw.d.mts → collection-uZxHxJXO.d.mts} +3 -3
- package/dist/collection.d.mts +1 -1
- package/dist/color-picker.d.mts +1 -1
- package/dist/combobox.d.mts +1 -1
- package/dist/{command-CAH0yrMT.d.mts → command-DNIK2Qo6.d.mts} +1 -1
- package/dist/{command-palette-CUiAda3h.mjs → command-palette-CFM0cW96.mjs} +2 -2
- package/dist/command-palette.d.mts +1 -1
- package/dist/command-palette.mjs +1 -1
- package/dist/command.d.mts +1 -1
- package/dist/{composite-navigation-i7ocwmio.d.mts → composite-navigation-DZZ5cAZL.d.mts} +11 -9
- package/dist/composite-navigation.d.mts +1 -1
- package/dist/{confirm-5iLHxupT.mjs → confirm-CocH5VBh.mjs} +2 -2
- package/dist/confirm.d.mts +1 -1
- package/dist/confirm.mjs +1 -1
- package/dist/{context-menu-D2ZLeqYu.mjs → context-menu-CRDvogFb.mjs} +1 -1
- package/dist/context-menu.d.mts +1 -1
- package/dist/context-menu.mjs +2 -2
- package/dist/copy-button.d.mts +1 -1
- package/dist/{data-grid-CM7Aerqz.d.mts → data-grid-C9kLgc3P.d.mts} +9 -9
- package/dist/data-grid.d.mts +1 -1
- package/dist/{date-picker-LEtopwTI.d.mts → date-picker-M__fXGCG.d.mts} +2 -2
- package/dist/date-picker.d.mts +2 -2
- package/dist/date-range-picker.d.mts +3 -3
- package/dist/{dialog-trigger-B7JM7Ay9.mjs → dialog-trigger-DZKuwAL4.mjs} +1 -0
- package/dist/dialog.d.mts +1 -1
- package/dist/dialog.mjs +1 -1
- package/dist/direction.d.mts +1 -1
- package/dist/{dismissable-layer-CTWSFZwj.d.mts → dismissable-layer-CmHNmp14.d.mts} +5 -5
- package/dist/dismissable-layer.d.mts +1 -1
- package/dist/{drag-and-drop-yh1y-FD_.d.mts → drag-and-drop-BEX1UhUa.d.mts} +1 -1
- package/dist/{drag-and-drop-controller-types-oM5xTtD2.d.mts → drag-and-drop-controller-types-D35h2Y8Q.d.mts} +8 -8
- package/dist/drag-and-drop.d.mts +2 -2
- package/dist/{drawer-Dxl5hMPT.mjs → drawer-DNHxUgXG.mjs} +1 -1
- package/dist/drawer.d.mts +1 -1
- package/dist/drawer.mjs +2 -2
- package/dist/{dropdown-menu-DddzcuXj.mjs → dropdown-menu-Dz5rgVcY.mjs} +1 -1
- package/dist/dropdown-menu.d.mts +1 -1
- package/dist/dropdown-menu.mjs +2 -2
- package/dist/duration-field.d.mts +1 -1
- package/dist/{emoji-picker-DNPPdAXl.d.mts → emoji-picker-BVj6pvRu.d.mts} +2 -0
- package/dist/emoji-picker.d.mts +1 -1
- package/dist/empty-state.d.mts +1 -1
- package/dist/fieldset.d.mts +1 -1
- package/dist/file-upload.d.mts +1 -1
- package/dist/floating-action-button.d.mts +1 -1
- package/dist/{focus-eObxGOtP.d.mts → focus-GaPcm0qz.d.mts} +3 -3
- package/dist/{focus-guards-BZa7vm6O.d.mts → focus-guards-Bu_N_Vb9.d.mts} +5 -3
- package/dist/focus-guards.d.mts +1 -1
- package/dist/{focus-scope-CsnioDR4.d.mts → focus-scope-BEIV6tFj.d.mts} +8 -8
- package/dist/focus-scope.d.mts +1 -1
- package/dist/focus-visible.d.mts +1 -1
- package/dist/focus.d.mts +1 -1
- package/dist/{form-wizard-D_B-Cydo.d.mts → form-wizard-mErOrBg3.d.mts} +2 -2
- package/dist/form-wizard.d.mts +1 -1
- package/dist/fullscreen-button.d.mts +1 -1
- package/dist/{grid-list-BBlRg22H.d.mts → grid-list-kQwU09ec.d.mts} +1 -1
- package/dist/grid-list.d.mts +1 -1
- package/dist/heading.d.mts +1 -1
- package/dist/{history-BkcOSOWb.d.mts → history-CU1beAvx.d.mts} +7 -5
- package/dist/history.d.mts +1 -1
- package/dist/{hotspot-QUJJ382M.d.mts → hotspot-Cc89VVie.d.mts} +1 -1
- package/dist/hotspot.d.mts +1 -1
- package/dist/{hover-ZiPRiZkb.d.mts → hover-CQGn1F67.d.mts} +3 -3
- package/dist/hover-card.d.mts +1 -1
- package/dist/hover.d.mts +1 -1
- package/dist/icon-button.d.mts +1 -1
- package/dist/icon.d.mts +1 -1
- package/dist/index.d.mts +48 -48
- package/dist/index.mjs +17 -17
- package/dist/{inert-outside-B6KdwAHY.d.mts → inert-outside-C8Hfd6HF.d.mts} +1 -1
- package/dist/inert-outside.d.mts +1 -1
- package/dist/{input-D4Zvmf67.d.mts → input-C0fgeRnS.d.mts} +2 -2
- package/dist/input.d.mts +1 -1
- package/dist/{interaction-hooks-sD63_AhA.d.mts → interaction-hooks-B1b-CbUb.d.mts} +16 -4
- package/dist/interaction-hooks.d.mts +5 -5
- package/dist/interaction-hooks.mjs +2 -0
- package/dist/{interaction-modality-BTiZ7j98.d.mts → interaction-modality-Bz6QN_p7.d.mts} +1 -1
- package/dist/interaction-modality.d.mts +1 -1
- package/dist/kbd.d.mts +1 -1
- package/dist/landmark.d.mts +1 -1
- package/dist/{lightbox-BC5VnUsG.mjs → lightbox-CDqJQ7QF.mjs} +1 -1
- package/dist/lightbox.mjs +1 -1
- package/dist/list.d.mts +1 -1
- package/dist/{listbox-grid-BifoC9TP.d.mts → listbox-grid-BPMnoDF2.d.mts} +1 -1
- package/dist/listbox-grid.d.mts +1 -1
- package/dist/listbox.d.mts +1 -1
- package/dist/locale.d.mts +1 -1
- package/dist/{long-press-DyYxp191.d.mts → long-press-r7IluMf6.d.mts} +10 -4
- package/dist/long-press.d.mts +1 -1
- package/dist/media-preferences.d.mts +1 -1
- package/dist/{mention-RayImxP_.d.mts → mention-Cz_qL9-F.d.mts} +1 -1
- package/dist/mention.d.mts +1 -1
- package/dist/{menu-zVLPQ3qq.mjs → menu-D0jsX5ex.mjs} +6 -0
- package/dist/menu.d.mts +1 -1
- package/dist/menu.mjs +1 -1
- package/dist/{menubar-D0qmUnA8.mjs → menubar-FFAqwU2g.mjs} +1 -1
- package/dist/menubar.d.mts +1 -1
- package/dist/menubar.mjs +2 -2
- package/dist/month-picker.d.mts +1 -1
- package/dist/{move-BJGaV7Y9.d.mts → move-Pkfnke5x.d.mts} +3 -3
- package/dist/move.d.mts +1 -1
- package/dist/native-select.d.mts +1 -1
- package/dist/navigation-rail.d.mts +1 -1
- package/dist/{notification-center-CNfcvQ0r.mjs → notification-center-BFgDx8Os.mjs} +1 -0
- package/dist/notification-center.d.mts +1 -1
- package/dist/notification-center.mjs +1 -1
- package/dist/pager.d.mts +1 -1
- package/dist/pagination.d.mts +1 -1
- package/dist/{pointer-grace-CAFcO4om.d.mts → pointer-grace-Dw_EQOrW.d.mts} +1 -1
- package/dist/pointer-grace.d.mts +1 -1
- package/dist/popconfirm.d.mts +1 -1
- package/dist/{popover-types-DCcody_B.d.mts → popover-types-C1qIeZbC.d.mts} +2 -2
- package/dist/popover.d.mts +3 -3
- package/dist/{presence-Bhv1qtvn.d.mts → presence-BSRPHC4s.d.mts} +1 -1
- package/dist/{presence-types-CRB4HbML.d.mts → presence-types-B9oh0msp.d.mts} +2 -2
- package/dist/presence.d.mts +2 -2
- package/dist/{press-types-DfTNpqby.d.mts → press-types-VAT8E1Qh.d.mts} +5 -5
- package/dist/{press-R0_juZq2.d.mts → press-vCzBqNpZ.d.mts} +1 -1
- package/dist/press.d.mts +2 -2
- package/dist/print-button.d.mts +1 -1
- package/dist/progress-bar.d.mts +1 -1
- package/dist/radio-group.d.mts +1 -1
- package/dist/{range-calendar-Ck_L_GjZ.d.mts → range-calendar-X_JI9xZN.d.mts} +1 -1
- package/dist/range-calendar.d.mts +2 -2
- package/dist/scroll-area.d.mts +1 -1
- package/dist/{scroll-spy-UzNvEzBk.d.mts → scroll-spy-CpVd2rt1.d.mts} +1 -1
- package/dist/scroll-spy.d.mts +1 -1
- package/dist/{search-field-DzW31UHM.d.mts → search-field-Biw9vApG.d.mts} +2 -2
- package/dist/search-field.d.mts +1 -1
- package/dist/select.d.mts +1 -1
- package/dist/share-button.d.mts +1 -1
- package/dist/{shortcut-DAZJ9LEd.d.mts → shortcut-BYDNeoht.d.mts} +1 -1
- package/dist/{shortcut-CvA_o0_F.mjs → shortcut-Bke2M083.mjs} +1 -0
- package/dist/shortcut.d.mts +1 -1
- package/dist/shortcut.mjs +1 -1
- package/dist/{sidebar-YNcuialf.mjs → sidebar-997KLhQT.mjs} +4 -2
- package/dist/sidebar.d.mts +1 -1
- package/dist/sidebar.mjs +1 -1
- package/dist/{sortable-CmSh0mgo.d.mts → sortable-CLTG4F2W.d.mts} +5 -5
- package/dist/sortable.d.mts +1 -1
- package/dist/{spatial-navigation-BPVJGSiJ.d.mts → spatial-navigation-DbKs6xex.d.mts} +12 -5
- package/dist/spatial-navigation.d.mts +1 -1
- package/dist/{split-button-B7xnT9vz.mjs → split-button-DOop3cSq.mjs} +1 -1
- package/dist/split-button.d.mts +1 -1
- package/dist/split-button.mjs +2 -2
- package/dist/splitter.d.mts +1 -1
- package/dist/status-light.d.mts +1 -1
- package/dist/stepper.d.mts +1 -1
- package/dist/surface.d.mts +1 -1
- package/dist/switch.d.mts +1 -1
- package/dist/tabs.d.mts +1 -1
- package/dist/tags-input.d.mts +1 -1
- package/dist/text.d.mts +1 -1
- package/dist/{textarea-D7V5lLPX.d.mts → textarea-4eIDNcvv.d.mts} +2 -2
- package/dist/textarea.d.mts +1 -1
- package/dist/{theme-CNK06Pja.d.mts → theme-BxObVL1d.d.mts} +1 -1
- package/dist/theme-scope.d.mts +1 -1
- package/dist/{theme-types-CkIa4Sa3.d.mts → theme-types-DhXLFvar.d.mts} +1 -1
- package/dist/theme.d.mts +2 -2
- package/dist/toggle.d.mts +1 -1
- package/dist/tooltip.d.mts +1 -1
- package/dist/tour.d.mts +1 -1
- package/dist/{transition-BtIWNEFU.d.mts → transition-BKw2vyI9.d.mts} +1 -1
- package/dist/transition.d.mts +1 -1
- package/dist/tree.d.mts +1 -1
- package/dist/{typeahead-Dl6w5PAN.d.mts → typeahead-C1RHCOuj.d.mts} +3 -3
- package/dist/typeahead.d.mts +1 -1
- package/dist/{virtualizer-D9qfT4wS.d.mts → virtualizer-CZLyY4kq.d.mts} +4 -4
- package/dist/virtualizer.d.mts +1 -1
- package/dist/{webcam-capture-D5JRu3ab.d.mts → webcam-capture-DWdP7sr4.d.mts} +3 -3
- package/dist/webcam-capture.d.mts +1 -1
- package/dist/week-picker.d.mts +2 -2
- package/package.json +2 -2
- package/registry/files/families/accessibility/focus/focus-types.ts +3 -3
- package/registry/files/families/accessibility/focus-guards/focus-guards-types.ts +5 -3
- package/registry/files/families/accessibility/focus-scope/focus-scope-types.ts +8 -8
- package/registry/files/families/accessibility/inert-outside/inert-outside-types.ts +1 -1
- package/registry/files/families/accessibility/interaction-modality/interaction-modality-types.ts +1 -1
- package/registry/files/families/accessibility/landmark/landmark-types.ts +1 -1
- package/registry/files/families/data/data-grid/data-grid-model.ts +4 -4
- package/registry/files/families/data/data-grid/data-grid-types.ts +5 -5
- package/registry/files/families/date-time/calendar/calendar-locale.ts +3 -1
- package/registry/files/families/date-time/calendar/calendar-selection.ts +2 -2
- package/registry/files/families/date-time/week-picker/week-picker-selection.ts +1 -0
- package/registry/files/families/disclosure/collapsible/collapsible-context.ts +1 -0
- package/registry/files/families/feedback/notification-center/notification-center-context.ts +1 -0
- package/registry/files/families/form/tags-input/tags-input-value.ts +1 -1
- package/registry/files/families/foundations/collection/collection-types.ts +3 -3
- package/registry/files/families/foundations/command/command-types.ts +1 -1
- package/registry/files/families/foundations/composite-navigation/composite-navigation-types.ts +9 -7
- package/registry/files/families/foundations/theme/theme-types.ts +1 -1
- package/registry/files/families/interaction/drag-and-drop/drag-and-drop-controller-types.ts +8 -8
- package/registry/files/families/interaction/history/history-types.ts +7 -5
- package/registry/files/families/interaction/hover/hover-types.ts +3 -3
- package/registry/files/families/interaction/interaction-hooks/interaction-hooks-types.ts +10 -0
- package/registry/files/families/interaction/interaction-hooks/interaction-hooks.ts +2 -0
- package/registry/files/families/interaction/long-press/long-press-types.ts +9 -3
- package/registry/files/families/interaction/move/move-types.ts +3 -3
- package/registry/files/families/interaction/pointer-grace/pointer-grace-types.ts +1 -1
- package/registry/files/families/interaction/press/press-types.ts +5 -5
- package/registry/files/families/interaction/scroll-spy/scroll-spy-types.ts +1 -1
- package/registry/files/families/interaction/shortcut/shortcut-parse.ts +1 -0
- package/registry/files/families/interaction/shortcut/shortcut-types.ts +1 -1
- package/registry/files/families/interaction/sortable/sortable-types.ts +4 -4
- package/registry/files/families/interaction/spatial-navigation/spatial-navigation-types.ts +11 -4
- package/registry/files/families/interaction/typeahead/typeahead-types.ts +2 -2
- package/registry/files/families/interaction/virtualizer/virtualizer-infinite.ts +3 -3
- package/registry/files/families/interaction/virtualizer/virtualizer-types.ts +1 -1
- package/registry/files/families/layout/icon/icon-types.ts +2 -0
- package/registry/files/families/layout/sidebar/sidebar-context.ts +2 -0
- package/registry/files/families/media/webcam-capture/webcam-capture-media.ts +3 -3
- package/registry/files/families/menus/menu/menu-context.ts +6 -0
- package/registry/files/families/menus/menu/menu-item-runtime.ts +4 -3
- package/registry/files/families/menus/menu/menu-root-runtime.ts +6 -0
- package/registry/files/families/navigation/pagination/pagination-range.ts +3 -2
- package/registry/files/families/overlays/dialog/dialog-context.ts +1 -0
- package/registry/files/families/overlays/dismissable-layer/dismissable-layer-types.ts +5 -5
- package/registry/files/families/overlays/presence/presence-types.ts +2 -2
- package/registry/files/families/selection/emoji-picker/emoji-picker-model.ts +2 -0
- package/registry/files/families/selection/listbox-grid/listbox-grid-model.ts +1 -1
- package/registry/files/families/selection/select/select-collection.ts +1 -1
- package/registry/registry.json +138 -138
package/dist/typeahead.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as TypeaheadOptions, i as TypeaheadMatch, n as useTypeahead, o as TypeaheadProps, r as TypeaheadController, t as createTypeahead } from "./typeahead-
|
|
1
|
+
import { a as TypeaheadOptions, i as TypeaheadMatch, n as useTypeahead, o as TypeaheadProps, r as TypeaheadController, t as createTypeahead } from "./typeahead-C1RHCOuj.mjs";
|
|
2
2
|
export { type TypeaheadController, type TypeaheadMatch, type TypeaheadOptions, type TypeaheadProps, createTypeahead, useTypeahead };
|
|
@@ -133,7 +133,7 @@ interface VirtualizerOptions {
|
|
|
133
133
|
* @default 0
|
|
134
134
|
*/
|
|
135
135
|
readonly initialScrollOffset?: number;
|
|
136
|
-
/** Called after the visible range changes, including to `null`. */
|
|
136
|
+
/** Called after the visible range changes, including to `null`. @default undefined */
|
|
137
137
|
readonly onRangeChange?: (range: VirtualRange | null) => void;
|
|
138
138
|
}
|
|
139
139
|
/** Windowing controller for one scroll axis. */
|
|
@@ -321,11 +321,11 @@ interface InfiniteLoaderOptions {
|
|
|
321
321
|
* @default false
|
|
322
322
|
*/
|
|
323
323
|
readonly canLoadForward?: MaybeRefOrGetter<boolean | undefined>;
|
|
324
|
-
/** Load earlier items. Resolve after the collection is updated. */
|
|
324
|
+
/** Load earlier items. Resolve after the collection is updated. @default undefined */
|
|
325
325
|
readonly onLoadBackward?: (context: InfiniteLoadContext) => Promise<void> | void;
|
|
326
|
-
/** Load later items. Resolve after the collection is updated. */
|
|
326
|
+
/** Load later items. Resolve after the collection is updated. @default undefined */
|
|
327
327
|
readonly onLoadForward?: (context: InfiniteLoadContext) => Promise<void> | void;
|
|
328
|
-
/** Called when a non-stale load rejects. Without it, the rejection is rethrown. */
|
|
328
|
+
/** Called when a non-stale load rejects. Without it, the rejection is rethrown. @default undefined */
|
|
329
329
|
readonly onLoadError?: (direction: InfiniteLoadDirection, error: unknown) => void;
|
|
330
330
|
}
|
|
331
331
|
/** Bidirectional infinite loading controller. */
|
package/dist/virtualizer.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { S as VirtualizerScrollSnapshot, _ as VirtualizerAlignment, a as InfiniteLoaderOptions, b as VirtualizerOrientation, c as GridVirtualizerController, d as createGridVirtualizer, f as useGridVirtualizer, g as VirtualRange, h as VirtualItem, i as InfiniteLoaderController, l as GridVirtualizerOptions, m as useVirtualizer, n as InfiniteLoadDirection, o as createInfiniteLoader, p as createVirtualizer, r as InfiniteLoadStatus, s as useInfiniteLoader, t as InfiniteLoadContext, u as VirtualGridCell, v as VirtualizerController, x as VirtualizerRect, y as VirtualizerOptions } from "./virtualizer-
|
|
1
|
+
import { S as VirtualizerScrollSnapshot, _ as VirtualizerAlignment, a as InfiniteLoaderOptions, b as VirtualizerOrientation, c as GridVirtualizerController, d as createGridVirtualizer, f as useGridVirtualizer, g as VirtualRange, h as VirtualItem, i as InfiniteLoaderController, l as GridVirtualizerOptions, m as useVirtualizer, n as InfiniteLoadDirection, o as createInfiniteLoader, p as createVirtualizer, r as InfiniteLoadStatus, s as useInfiniteLoader, t as InfiniteLoadContext, u as VirtualGridCell, v as VirtualizerController, x as VirtualizerRect, y as VirtualizerOptions } from "./virtualizer-CZLyY4kq.mjs";
|
|
2
2
|
export { type GridVirtualizerController, type GridVirtualizerOptions, type InfiniteLoadContext, type InfiniteLoadDirection, type InfiniteLoadStatus, type InfiniteLoaderController, type InfiniteLoaderOptions, type VirtualGridCell, type VirtualItem, type VirtualRange, type VirtualizerAlignment, type VirtualizerController, type VirtualizerOptions, type VirtualizerOrientation, type VirtualizerRect, type VirtualizerScrollSnapshot, createGridVirtualizer, createInfiniteLoader, createVirtualizer, useGridVirtualizer, useInfiniteLoader, useVirtualizer };
|
|
@@ -638,13 +638,13 @@ declare function normalizeUserMediaError(error: unknown): WebcamCaptureErrorCode
|
|
|
638
638
|
declare function stopWebcamStream(stream: WebcamMediaStreamLike): void;
|
|
639
639
|
/** Options for {@link createWebcamConstraints}. */
|
|
640
640
|
interface CreateWebcamConstraintsOptions {
|
|
641
|
-
/** Extra video constraints, merged under the facing mode or device. */
|
|
641
|
+
/** Extra video constraints, merged under the facing mode or device. @default undefined */
|
|
642
642
|
readonly video?: MediaTrackConstraints | undefined;
|
|
643
643
|
/** Requested facing direction when no device is selected. */
|
|
644
644
|
readonly facingMode: WebcamFacingMode;
|
|
645
|
-
/** Exact device to open; wins over `facingMode`. */
|
|
645
|
+
/** Exact device to open; wins over `facingMode`. @default undefined */
|
|
646
646
|
readonly deviceId?: string | undefined;
|
|
647
|
-
/** Also request the microphone. */
|
|
647
|
+
/** Also request the microphone. @default false */
|
|
648
648
|
readonly audio?: boolean | undefined;
|
|
649
649
|
}
|
|
650
650
|
/** Build `getUserMedia` constraints for one camera request. */
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as WebcamCapturePhotoResult, B as WebcamMediaTrackLike, C as WebcamCaptureDevice, D as WebcamCaptureImageType, E as WebcamCaptureFailure, F as WebcamCaptureVideoExpose, I as WebcamFacingMode, L as WebcamMediaDeviceLike, M as WebcamCaptureSlotState, N as WebcamCaptureStatus, O as WebcamCaptureMessages, P as WebcamCaptureStatusExpose, R as WebcamMediaHost, S as WebcamCaptureButtonExpose, T as WebcamCaptureErrorCode, _ as _default, a as stopWebcamStream, b as CaptureFrameOptions, c as WebcamCaptureError, d as _default$8, f as _default$7, g as _default$3, h as _default$4, i as resolveWebcamCaptureMessages, j as WebcamCaptureRootExpose, k as WebcamCapturePhotoExpose, l as captureFrame, m as _default$5, n as createWebcamConstraints, o as toWebcamDevices, p as _default$6, r as normalizeUserMediaError, s as webcamCaptureDefaultMessages, t as CreateWebcamConstraintsOptions, u as captureGeometry, v as _default$2, w as WebcamCaptureDeviceSelectExpose, x as CaptureGeometry, y as _default$1, z as WebcamMediaStreamLike } from "./webcam-capture-
|
|
1
|
+
import { A as WebcamCapturePhotoResult, B as WebcamMediaTrackLike, C as WebcamCaptureDevice, D as WebcamCaptureImageType, E as WebcamCaptureFailure, F as WebcamCaptureVideoExpose, I as WebcamFacingMode, L as WebcamMediaDeviceLike, M as WebcamCaptureSlotState, N as WebcamCaptureStatus, O as WebcamCaptureMessages, P as WebcamCaptureStatusExpose, R as WebcamMediaHost, S as WebcamCaptureButtonExpose, T as WebcamCaptureErrorCode, _ as _default, a as stopWebcamStream, b as CaptureFrameOptions, c as WebcamCaptureError, d as _default$8, f as _default$7, g as _default$3, h as _default$4, i as resolveWebcamCaptureMessages, j as WebcamCaptureRootExpose, k as WebcamCapturePhotoExpose, l as captureFrame, m as _default$5, n as createWebcamConstraints, o as toWebcamDevices, p as _default$6, r as normalizeUserMediaError, s as webcamCaptureDefaultMessages, t as CreateWebcamConstraintsOptions, u as captureGeometry, v as _default$2, w as WebcamCaptureDeviceSelectExpose, x as CaptureGeometry, y as _default$1, z as WebcamMediaStreamLike } from "./webcam-capture-DWdP7sr4.mjs";
|
|
2
2
|
export { type CaptureFrameOptions, type CaptureGeometry, type CreateWebcamConstraintsOptions, _default as WebcamCapture, _default as WebcamCaptureRoot, type WebcamCaptureButtonExpose, type WebcamCaptureDevice, _default$1 as WebcamCaptureDeviceSelect, type WebcamCaptureDeviceSelectExpose, WebcamCaptureError, type WebcamCaptureErrorCode, type WebcamCaptureFailure, type WebcamCaptureImageType, type WebcamCaptureMessages, _default$2 as WebcamCapturePhoto, type WebcamCapturePhotoExpose, type WebcamCapturePhotoResult, type WebcamCaptureRootExpose, _default$3 as WebcamCaptureShutter, type WebcamCaptureSlotState, _default$4 as WebcamCaptureStartButton, type WebcamCaptureStatus, type WebcamCaptureStatusExpose, _default$5 as WebcamCaptureStatusMessage, _default$6 as WebcamCaptureStopButton, _default$7 as WebcamCaptureSwitchCamera, _default$8 as WebcamCaptureVideo, type WebcamCaptureVideoExpose, type WebcamFacingMode, type WebcamMediaDeviceLike, type WebcamMediaHost, type WebcamMediaStreamLike, type WebcamMediaTrackLike, captureFrame, captureGeometry, createWebcamConstraints, normalizeUserMediaError, resolveWebcamCaptureMessages, stopWebcamStream, toWebcamDevices, webcamCaptureDefaultMessages };
|
package/dist/week-picker.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { S as formatIsoDate, i as IsoWeek, r as DateRange, s as PlainDate, z as parseIsoDate } from "./plain-date-By3bTWQG.mjs";
|
|
2
|
-
import { Bb as weekOf, Rb as WeekPickerRootExpose, Vb as _default, zb as WeekSelection } from "./announcer-
|
|
3
|
-
import { a as _default$2, i as _default$3, n as _default$5, o as _default$1, r as _default$4, t as _default$6 } from "./calendar-year-select.vue-
|
|
2
|
+
import { Bb as weekOf, Rb as WeekPickerRootExpose, Vb as _default, zb as WeekSelection } from "./announcer-DqH760YF.mjs";
|
|
3
|
+
import { a as _default$2, i as _default$3, n as _default$5, o as _default$1, r as _default$4, t as _default$6 } from "./calendar-year-select.vue-BQcKQTQK.mjs";
|
|
4
4
|
export { type DateRange, type IsoWeek, type PlainDate, _default as WeekPicker, _default as WeekPickerRoot, _default$1 as WeekPickerGrid, _default$2 as WeekPickerHeading, _default$3 as WeekPickerMonthSelect, _default$4 as WeekPickerNext, _default$5 as WeekPickerPrev, type WeekPickerRootExpose, _default$6 as WeekPickerYearSelect, type WeekSelection, formatIsoDate, parseIsoDate, weekOf };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizejs/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.717.0",
|
|
4
4
|
"description": "Accessible, headless, Native CSS-first UI primitives",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessibility",
|
|
@@ -1171,7 +1171,7 @@
|
|
|
1171
1171
|
"@tsdown/css": "0.22.14",
|
|
1172
1172
|
"@types/node": "25.9.2",
|
|
1173
1173
|
"@vitejs/plugin-vue": "6.0.7",
|
|
1174
|
-
"@vizejs/native": "0.
|
|
1174
|
+
"@vizejs/native": "0.717.0",
|
|
1175
1175
|
"@vue/compiler-sfc": "3.5.35",
|
|
1176
1176
|
"@vue/test-utils": "2.4.10",
|
|
1177
1177
|
"happy-dom": "21.0.4",
|
|
@@ -72,13 +72,13 @@ export interface FocusOptions {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly autoFocus?: boolean;
|
|
74
74
|
|
|
75
|
-
/** Called after focus ownership is acquired. */
|
|
75
|
+
/** Called after focus ownership is acquired. @default undefined */
|
|
76
76
|
readonly onFocus?: (event: FocusEvent) => void;
|
|
77
77
|
|
|
78
|
-
/** Called after focus ownership is released. */
|
|
78
|
+
/** Called after focus ownership is released. @default undefined */
|
|
79
79
|
readonly onBlur?: (event: FocusEvent) => void;
|
|
80
80
|
|
|
81
|
-
/** Called after each distinct focus-state transition. */
|
|
81
|
+
/** Called after each distinct focus-state transition. @default undefined */
|
|
82
82
|
readonly onFocusChange?: (isFocused: boolean, event: FocusEvent) => void;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -34,7 +34,7 @@ export interface FocusGuardsOptions {
|
|
|
34
34
|
/** Primary guarded region. It may be `null` during SSR and before mount. */
|
|
35
35
|
readonly root: MaybeRefOrGetter<Element | null | undefined>;
|
|
36
36
|
|
|
37
|
-
/** Portalled regions that share the primary region's focus order. */
|
|
37
|
+
/** Portalled regions that share the primary region's focus order. @default undefined */
|
|
38
38
|
readonly branches?: MaybeRefOrGetter<readonly Element[] | null | undefined>;
|
|
39
39
|
|
|
40
40
|
/** Whether an activated pair participates in its document's guard stack. @default true */
|
|
@@ -43,15 +43,17 @@ export interface FocusGuardsOptions {
|
|
|
43
43
|
/** Avoid scrolling when a sentinel redirects focus. @default true */
|
|
44
44
|
readonly preventScroll?: MaybeRefOrGetter<boolean | undefined>;
|
|
45
45
|
|
|
46
|
-
/** Additional filter applied after native sequential-focus checks. */
|
|
46
|
+
/** Additional filter applied after native sequential-focus checks. @default undefined */
|
|
47
47
|
readonly accept?: (element: HTMLElement) => boolean;
|
|
48
48
|
|
|
49
|
-
/** Fallback used when no sequentially focusable descendant remains. */
|
|
49
|
+
/** Fallback used when no sequentially focusable descendant remains. @default undefined */
|
|
50
50
|
readonly fallbackFocus?: () => HTMLElement | null | undefined;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* Called before focus is redirected. If `preventDefault` retains sentinel focus, the consumer
|
|
54
54
|
* must move focus elsewhere or provide a visible focus indicator.
|
|
55
|
+
*
|
|
56
|
+
* @default undefined
|
|
55
57
|
*/
|
|
56
58
|
readonly onRedirect?: (event: FocusGuardRedirectEvent) => void;
|
|
57
59
|
}
|
|
@@ -10,7 +10,7 @@ export interface FocusScopeAutoFocusEvent {
|
|
|
10
10
|
|
|
11
11
|
/** Programmatic movement options shared by the focus manager methods. */
|
|
12
12
|
export interface FocusScopeMoveOptions {
|
|
13
|
-
/** Element from which traversal begins.
|
|
13
|
+
/** Element from which traversal begins. @default the deep active element */
|
|
14
14
|
readonly from?: Element | null;
|
|
15
15
|
|
|
16
16
|
/**
|
|
@@ -34,7 +34,7 @@ export interface FocusScopeMoveOptions {
|
|
|
34
34
|
*/
|
|
35
35
|
readonly preventScroll?: boolean;
|
|
36
36
|
|
|
37
|
-
/** Additional consumer filter applied after native focusability checks. */
|
|
37
|
+
/** Additional consumer filter applied after native focusability checks. @default undefined */
|
|
38
38
|
readonly accept?: (element: HTMLElement) => boolean;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -64,22 +64,22 @@ export interface FocusScopeOptions {
|
|
|
64
64
|
*/
|
|
65
65
|
readonly restoreFocus?: MaybeRefOrGetter<boolean | undefined>;
|
|
66
66
|
|
|
67
|
-
/** Preferred initial target. It must resolve inside the current scope. */
|
|
67
|
+
/** Preferred initial target. It must resolve inside the current scope. @default undefined */
|
|
68
68
|
readonly initialFocus?: () => HTMLElement | null | undefined;
|
|
69
69
|
|
|
70
|
-
/** Explicit restoration target, evaluated at deactivation time. */
|
|
70
|
+
/** Explicit restoration target, evaluated at deactivation time. @default undefined */
|
|
71
71
|
readonly restoreTarget?: () => HTMLElement | null | undefined;
|
|
72
72
|
|
|
73
|
-
/** Fallback target when a scope has no tabbable descendants. */
|
|
73
|
+
/** Fallback target when a scope has no tabbable descendants. @default undefined */
|
|
74
74
|
readonly fallbackFocus?: () => HTMLElement | null | undefined;
|
|
75
75
|
|
|
76
|
-
/** Consumer filter applied to automatically discovered focusable descendants. */
|
|
76
|
+
/** Consumer filter applied to automatically discovered focusable descendants. @default undefined */
|
|
77
77
|
readonly accept?: (element: HTMLElement) => boolean;
|
|
78
78
|
|
|
79
|
-
/** Called before automatic entry focus. Call `preventDefault` to retain focus. */
|
|
79
|
+
/** Called before automatic entry focus. Call `preventDefault` to retain focus. @default undefined */
|
|
80
80
|
readonly onMountAutoFocus?: (event: FocusScopeAutoFocusEvent) => void;
|
|
81
81
|
|
|
82
|
-
/** Called before automatic restoration. Call `preventDefault` to retain focus. */
|
|
82
|
+
/** Called before automatic restoration. Call `preventDefault` to retain focus. @default undefined */
|
|
83
83
|
readonly onUnmountAutoFocus?: (event: FocusScopeAutoFocusEvent) => void;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -8,7 +8,7 @@ export interface InertOutsideOptions {
|
|
|
8
8
|
/** Primary allowed root. It may be `null` during SSR and before mount. */
|
|
9
9
|
readonly root: MaybeRefOrGetter<Element | null | undefined>;
|
|
10
10
|
|
|
11
|
-
/** Additional portalled or exceptional roots that remain available. */
|
|
11
|
+
/** Additional portalled or exceptional roots that remain available. @default undefined */
|
|
12
12
|
readonly branches?: MaybeRefOrGetter<readonly Element[] | undefined>;
|
|
13
13
|
|
|
14
14
|
/** Whether an activated controller currently isolates outside content. @default true */
|
package/registry/files/families/accessibility/interaction-modality/interaction-modality-types.ts
CHANGED
|
@@ -48,7 +48,7 @@ export interface InteractionModalityOptions {
|
|
|
48
48
|
*/
|
|
49
49
|
readonly initialModality?: InteractionModality | null;
|
|
50
50
|
|
|
51
|
-
/** Called synchronously after each distinct change. */
|
|
51
|
+
/** Called synchronously after each distinct change. @default undefined */
|
|
52
52
|
readonly onChange?: (change: InteractionModalityChange) => void;
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -118,7 +118,7 @@ export interface LandmarkNavigationOptions {
|
|
|
118
118
|
*/
|
|
119
119
|
readonly previousKey?: MaybeRefOrGetter<LandmarkKeyBinding | null | undefined>;
|
|
120
120
|
|
|
121
|
-
/** Called after focus moves to a landmark. */
|
|
121
|
+
/** Called after focus moves to a landmark. @default undefined */
|
|
122
122
|
readonly onNavigate?: (landmark: LandmarkInfo, event: KeyboardEvent | null) => void;
|
|
123
123
|
}
|
|
124
124
|
|
|
@@ -68,18 +68,18 @@ export interface DataGridOptions<Row, Column extends DataGridColumn<Row>> {
|
|
|
68
68
|
readonly pageSize?: MaybeRefOrGetter<number | undefined>;
|
|
69
69
|
/** Reading direction for horizontal arrow keys. @default "ltr" */
|
|
70
70
|
readonly dir?: MaybeRefOrGetter<"ltr" | "rtl" | undefined>;
|
|
71
|
-
/** Controlled state slices; `undefined` leaves
|
|
71
|
+
/** Controlled state slices; `undefined` leaves every slice uncontrolled. @default undefined */
|
|
72
72
|
readonly state?: {
|
|
73
73
|
readonly [Key in DataGridStateKey]?: MaybeRefOrGetter<DataGridState[Key] | undefined>;
|
|
74
74
|
};
|
|
75
|
-
/** Initial uncontrolled state slices. */
|
|
75
|
+
/** Initial uncontrolled state slices; omitted slices use their built-in empty state. @default undefined */
|
|
76
76
|
readonly defaultState?: MaybeRefOrGetter<Partial<DataGridState> | undefined>;
|
|
77
|
-
/** Called after any slice changes (controlled or not). */
|
|
77
|
+
/** Called after any slice changes (controlled or not). @default undefined */
|
|
78
78
|
readonly onStateChange?: <Key extends DataGridStateKey>(
|
|
79
79
|
key: Key,
|
|
80
80
|
value: DataGridState[Key],
|
|
81
81
|
) => void;
|
|
82
|
-
/** Called when an edit commits. The grid never mutates rows. */
|
|
82
|
+
/** Called when an edit commits. The grid never mutates rows. @default undefined */
|
|
83
83
|
readonly onCellEdit?: (event: DataGridCellEditEvent<Row>) => void;
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -77,7 +77,7 @@ export interface DataGridPinning {
|
|
|
77
77
|
|
|
78
78
|
/** Behavior shared by every column kind; `Value` is the resolved cell value. */
|
|
79
79
|
export interface DataGridColumnOptions<Row, Value> {
|
|
80
|
-
/** Visible header label, also used for the column header's accessible name. */
|
|
80
|
+
/** Visible header label, also used for the column header's accessible name. @default the column id */
|
|
81
81
|
readonly header?: string;
|
|
82
82
|
|
|
83
83
|
/** Allow sorting by this column. Display columns are never sortable. @default true */
|
|
@@ -117,19 +117,19 @@ export interface DataGridColumnOptions<Row, Value> {
|
|
|
117
117
|
*/
|
|
118
118
|
readonly editable?: boolean | ((row: Row) => boolean);
|
|
119
119
|
|
|
120
|
-
/** Order two values
|
|
120
|
+
/** Order two values. @default locale-aware, numeric, `null`-last comparison */
|
|
121
121
|
compare?(left: Value, right: Value, leftRow: Row, rightRow: Row): number;
|
|
122
122
|
|
|
123
|
-
/** Keep a row when this column's filter value is set. */
|
|
123
|
+
/** Keep a row when this column's filter value is set. @default case-insensitive formatted substring matching */
|
|
124
124
|
filter?(value: Value, filterValue: unknown, row: Row): boolean;
|
|
125
125
|
|
|
126
|
-
/** Text used for display fallbacks, the global filter, and the editor draft. */
|
|
126
|
+
/** Text used for display fallbacks, the global filter, and the editor draft. @default built-in primitive and ISO date formatter */
|
|
127
127
|
format?(value: Value, row: Row): string;
|
|
128
128
|
|
|
129
129
|
/** Convert editor text back into a value. @default identity for string values */
|
|
130
130
|
parse?(input: string, row: Row): Value;
|
|
131
131
|
|
|
132
|
-
/** Return an error message to reject an edited value. */
|
|
132
|
+
/** Return an error message to reject an edited value. @default no validation error */
|
|
133
133
|
validate?(value: Value, row: Row): string | null;
|
|
134
134
|
}
|
|
135
135
|
|
|
@@ -24,10 +24,12 @@ export interface CalendarLocaleOptions {
|
|
|
24
24
|
/**
|
|
25
25
|
* Intl calendar used for display only (for example `japanese` or `buddhist`).
|
|
26
26
|
* Grid structure always follows ISO months.
|
|
27
|
+
*
|
|
28
|
+
* @default the locale's calendar
|
|
27
29
|
*/
|
|
28
30
|
readonly calendar?: string | undefined;
|
|
29
31
|
|
|
30
|
-
/** Intl numbering system for day numbers and years. */
|
|
32
|
+
/** Intl numbering system for day numbers and years. @default the locale's numbering system */
|
|
31
33
|
readonly numberingSystem?: string | undefined;
|
|
32
34
|
}
|
|
33
35
|
|
|
@@ -20,7 +20,7 @@ export interface SingleCalendarSelectionOptions {
|
|
|
20
20
|
previous: PlainDate | null,
|
|
21
21
|
event: Event | null,
|
|
22
22
|
) => void;
|
|
23
|
-
/** Called for every user activation of a selectable date, even when unchanged. */
|
|
23
|
+
/** Called for every user activation of a selectable date, even when unchanged. @default undefined */
|
|
24
24
|
readonly onSelect?: (value: PlainDate, event: Event) => void;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -105,7 +105,7 @@ export interface MultipleCalendarSelectionOptions {
|
|
|
105
105
|
previous: readonly PlainDate[],
|
|
106
106
|
event: Event | null,
|
|
107
107
|
) => void;
|
|
108
|
-
/** Called for every user toggle with the date and whether it is now selected. */
|
|
108
|
+
/** Called for every user toggle with the date and whether it is now selected. @default undefined */
|
|
109
109
|
readonly onToggle?: (date: PlainDate, selected: boolean, event: Event) => void;
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -17,4 +17,5 @@ export interface CollapsibleContextValue {
|
|
|
17
17
|
readonly toggle: (event?: Event | null) => boolean;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
/** Required context shared by one Collapsible compound component tree. */
|
|
20
21
|
export const collapsibleContext = createContext<CollapsibleContextValue>("Collapsible");
|
|
@@ -25,6 +25,7 @@ export interface NotificationCenterContextValue {
|
|
|
25
25
|
readonly itemId: (id: string) => string;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
+
/** Required context shared by one NotificationCenter compound component tree. */
|
|
28
29
|
export const notificationCenterContext =
|
|
29
30
|
createContext<NotificationCenterContextValue>("NotificationCenter");
|
|
30
31
|
|
|
@@ -20,7 +20,7 @@ export interface TagsInputEvaluateOptions<T> {
|
|
|
20
20
|
/** Consumer validator, if any. */
|
|
21
21
|
readonly validate: TagsInputValidator<T> | undefined;
|
|
22
22
|
|
|
23
|
-
/** Index being replaced by an inline edit; it is excluded from duplicate and max checks. */
|
|
23
|
+
/** Index being replaced by an inline edit; it is excluded from duplicate and max checks. @default undefined */
|
|
24
24
|
readonly replaceIndex?: number;
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -93,10 +93,10 @@ export interface CollectionRegistryOptions<Key extends CollectionKey> {
|
|
|
93
93
|
*/
|
|
94
94
|
readonly disabledBehavior?: CollectionDisabledBehavior;
|
|
95
95
|
|
|
96
|
-
/** Locale-aware comparator used by typeahead matching. */
|
|
96
|
+
/** Locale-aware comparator used by typeahead matching. @default an accent-insensitive search collator for the host locale */
|
|
97
97
|
readonly collator?: Intl.Collator;
|
|
98
98
|
|
|
99
|
-
/** Called synchronously after a distinct active-key transition. */
|
|
99
|
+
/** Called synchronously after a distinct active-key transition. @default undefined */
|
|
100
100
|
readonly onActiveKeyChange?: (change: CollectionActiveChange<Key>) => void;
|
|
101
101
|
}
|
|
102
102
|
|
|
@@ -140,7 +140,7 @@ export interface CollectionTextSearchOptions<Key extends CollectionKey> {
|
|
|
140
140
|
*/
|
|
141
141
|
readonly loop?: boolean;
|
|
142
142
|
|
|
143
|
-
/** Per-search locale comparator override. */
|
|
143
|
+
/** Per-search locale comparator override. @default the registry collator */
|
|
144
144
|
readonly collator?: Intl.Collator;
|
|
145
145
|
}
|
|
146
146
|
|
|
@@ -88,7 +88,7 @@ export interface CommandRouterOptions<Id extends string = string> {
|
|
|
88
88
|
*/
|
|
89
89
|
readonly isDisabled?: MaybeRefOrGetter<boolean | undefined>;
|
|
90
90
|
|
|
91
|
-
/** Observer called after every dispatch that found its command. */
|
|
91
|
+
/** Observer called after every dispatch that found its command. @default undefined */
|
|
92
92
|
readonly onDidExecute?: (dispatch: CommandDispatch<Id>) => void;
|
|
93
93
|
}
|
|
94
94
|
|
package/registry/files/families/foundations/composite-navigation/composite-navigation-types.ts
CHANGED
|
@@ -74,25 +74,27 @@ export interface CompositeNavigationBaseOptions<Key extends CollectionKey, Value
|
|
|
74
74
|
*/
|
|
75
75
|
readonly direction?: MaybeRefOrGetter<CompositeDirection | undefined>;
|
|
76
76
|
|
|
77
|
-
/** Wrap arrow navigation at collection boundaries. */
|
|
77
|
+
/** Wrap arrow navigation at collection boundaries. @default false */
|
|
78
78
|
readonly loop?: MaybeRefOrGetter<boolean | undefined>;
|
|
79
79
|
|
|
80
|
-
/** Suppress keyboard and pointer navigation while retaining active state. */
|
|
80
|
+
/** Suppress keyboard and pointer navigation while retaining active state. @default false */
|
|
81
81
|
readonly isDisabled?: MaybeRefOrGetter<boolean | undefined>;
|
|
82
82
|
|
|
83
|
-
/** Number of logical items traversed by PageUp and PageDown. */
|
|
83
|
+
/** Number of logical items traversed by PageUp and PageDown. @default 10 */
|
|
84
84
|
readonly pageSize?: MaybeRefOrGetter<number | undefined>;
|
|
85
85
|
|
|
86
|
-
/** Optional buffered typeahead integrated into the same active state. */
|
|
86
|
+
/** Optional buffered typeahead integrated into the same active state. @default false */
|
|
87
87
|
readonly typeahead?: false | Omit<TypeaheadOptions<Key, Value>, "registry">;
|
|
88
88
|
|
|
89
|
-
/** Called after the active item and DOM focus representation are synchronized. */
|
|
89
|
+
/** Called after the active item and DOM focus representation are synchronized. @default undefined */
|
|
90
90
|
readonly onNavigate?: (change: CompositeNavigationChange<Key>) => void;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
93
|
* Custom visibility policy for virtualized or scroll-managed collections.
|
|
94
94
|
* The default calls `scrollIntoView({block: "nearest", inline: "nearest"})`
|
|
95
95
|
* when the method exists and DOM focus did not already scroll the item.
|
|
96
|
+
*
|
|
97
|
+
* @default nearest-block and nearest-inline scrolling
|
|
96
98
|
*/
|
|
97
99
|
readonly scrollIntoView?: (item: CollectionItem<Key, Value>, originalEvent: Event | null) => void;
|
|
98
100
|
}
|
|
@@ -105,10 +107,10 @@ export interface RovingNavigationOptions<
|
|
|
105
107
|
/** @default "roving" */
|
|
106
108
|
readonly focusStrategy?: "roving";
|
|
107
109
|
|
|
108
|
-
/** Avoid browser scrolling when DOM focus moves; custom scrolling still runs. */
|
|
110
|
+
/** Avoid browser scrolling when DOM focus moves; custom scrolling still runs. @default false */
|
|
109
111
|
readonly preventScroll?: MaybeRefOrGetter<boolean | undefined>;
|
|
110
112
|
|
|
111
|
-
/** Optional stable ID projection for item props. */
|
|
113
|
+
/** Optional stable ID projection for item props. @default undefined */
|
|
112
114
|
readonly getItemId?: (item: CollectionItem<Key, Value>) => string | undefined;
|
|
113
115
|
}
|
|
114
116
|
|
|
@@ -115,7 +115,7 @@ export type ThemeScopeAttributes = Partial<Record<ThemeScopeAttributeName, strin
|
|
|
115
115
|
|
|
116
116
|
/** Options for a declarative theme scope. */
|
|
117
117
|
export interface ThemeScopeOptions {
|
|
118
|
-
/** Opt-in preset name or array-composed preset names. */
|
|
118
|
+
/** Opt-in preset name or array-composed preset names. @default undefined */
|
|
119
119
|
readonly presets?: ThemePresetName | readonly ThemePresetName[];
|
|
120
120
|
|
|
121
121
|
/**
|
|
@@ -72,13 +72,13 @@ export interface DragAndDropOptions<Data = unknown> {
|
|
|
72
72
|
*/
|
|
73
73
|
readonly announcements?: DragAnnouncements<Data>;
|
|
74
74
|
|
|
75
|
-
/** Called exactly once when a session starts. */
|
|
75
|
+
/** Called exactly once when a session starts. @default undefined */
|
|
76
76
|
readonly onDragStart?: (event: DragStartEvent<Data>) => void;
|
|
77
77
|
|
|
78
|
-
/** Called for pointer movement and keyboard target changes inside a session. */
|
|
78
|
+
/** Called for pointer movement and keyboard target changes inside a session. @default undefined */
|
|
79
79
|
readonly onDragMove?: (event: DragMoveEvent<Data>) => void;
|
|
80
80
|
|
|
81
|
-
/** Called exactly once after a session drops or cancels. */
|
|
81
|
+
/** Called exactly once after a session drops or cancels. @default undefined */
|
|
82
82
|
readonly onDragEnd?: (event: DragEndEvent<Data>) => void;
|
|
83
83
|
}
|
|
84
84
|
|
|
@@ -87,7 +87,7 @@ export interface DragSourceOptions<Data = unknown> {
|
|
|
87
87
|
/** Stable key unique among this controller's sources. */
|
|
88
88
|
readonly key: string;
|
|
89
89
|
|
|
90
|
-
/** Dragged item element used for geometry; the handle receives `sourceProps`. */
|
|
90
|
+
/** Dragged item element used for geometry; the handle receives `sourceProps`. @default undefined */
|
|
91
91
|
readonly element?: MaybeRefOrGetter<Element | null | undefined>;
|
|
92
92
|
|
|
93
93
|
/**
|
|
@@ -187,16 +187,16 @@ export interface DropTargetOptions<Data = unknown> {
|
|
|
187
187
|
*/
|
|
188
188
|
readonly label?: MaybeRefOrGetter<string | undefined>;
|
|
189
189
|
|
|
190
|
-
/** Called when the drag enters this target. */
|
|
190
|
+
/** Called when the drag enters this target. @default undefined */
|
|
191
191
|
readonly onEnter?: (event: DropTargetEvent<Data>) => void;
|
|
192
192
|
|
|
193
|
-
/** Called when the drag moves inside this target or its edge changes. */
|
|
193
|
+
/** Called when the drag moves inside this target or its edge changes. @default undefined */
|
|
194
194
|
readonly onMove?: (event: DropTargetEvent<Data>) => void;
|
|
195
195
|
|
|
196
|
-
/** Called when the drag leaves this target without dropping. */
|
|
196
|
+
/** Called when the drag leaves this target without dropping. @default undefined */
|
|
197
197
|
readonly onLeave?: (event: DropTargetEvent<Data>) => void;
|
|
198
198
|
|
|
199
|
-
/** Called when the session drops on this target. */
|
|
199
|
+
/** Called when the session drops on this target. @default undefined */
|
|
200
200
|
readonly onDrop?: (event: DropTargetEvent<Data>) => void;
|
|
201
201
|
}
|
|
202
202
|
|
|
@@ -8,12 +8,14 @@ export interface HistoryEntry {
|
|
|
8
8
|
/** Re-apply the change after it was undone. */
|
|
9
9
|
readonly redo: () => void;
|
|
10
10
|
|
|
11
|
-
/** Human-readable label for Undo/Redo menu items. */
|
|
11
|
+
/** Human-readable label for Undo/Redo menu items. @default undefined */
|
|
12
12
|
readonly label?: string;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Adjacent pushes carrying the same key merge into one step while they
|
|
16
16
|
* arrive within the coalescing window and nothing was undone in between.
|
|
17
|
+
*
|
|
18
|
+
* @default undefined
|
|
17
19
|
*/
|
|
18
20
|
readonly coalesceKey?: string;
|
|
19
21
|
}
|
|
@@ -29,10 +31,10 @@ export interface HistorySnapshotOptions<Value> {
|
|
|
29
31
|
/** Writer invoked with `before` on undo and `after` on redo. */
|
|
30
32
|
readonly apply: (value: Value) => void;
|
|
31
33
|
|
|
32
|
-
/** Human-readable label for Undo/Redo menu items. */
|
|
34
|
+
/** Human-readable label for Undo/Redo menu items. @default undefined */
|
|
33
35
|
readonly label?: string;
|
|
34
36
|
|
|
35
|
-
/** Coalescing key; see {@link HistoryEntry.coalesceKey}. */
|
|
37
|
+
/** Coalescing key; see {@link HistoryEntry.coalesceKey}. @default undefined */
|
|
36
38
|
readonly coalesceKey?: string;
|
|
37
39
|
|
|
38
40
|
/**
|
|
@@ -135,10 +137,10 @@ export interface EditableTransactionOptions<Value> {
|
|
|
135
137
|
/** Write a value back into the editor. */
|
|
136
138
|
readonly write: (value: Value) => void;
|
|
137
139
|
|
|
138
|
-
/** Label recorded on committed steps. */
|
|
140
|
+
/** Label recorded on committed steps. @default undefined */
|
|
139
141
|
readonly label?: string;
|
|
140
142
|
|
|
141
|
-
/** Coalescing key recorded on committed steps. */
|
|
143
|
+
/** Coalescing key recorded on committed steps. @default undefined */
|
|
142
144
|
readonly coalesceKey?: string;
|
|
143
145
|
|
|
144
146
|
/**
|
|
@@ -51,13 +51,13 @@ export interface HoverOptions {
|
|
|
51
51
|
*/
|
|
52
52
|
readonly pointerType?: MaybeRefOrGetter<HoverPointerType | undefined>;
|
|
53
53
|
|
|
54
|
-
/** Called after hover state becomes active. */
|
|
54
|
+
/** Called after hover state becomes active. @default undefined */
|
|
55
55
|
readonly onHoverStart?: (event: HoverEvent) => void;
|
|
56
56
|
|
|
57
|
-
/** Called after hover ends or is canceled. */
|
|
57
|
+
/** Called after hover ends or is canceled. @default undefined */
|
|
58
58
|
readonly onHoverEnd?: (event: HoverEvent) => void;
|
|
59
59
|
|
|
60
|
-
/** Called for every distinct hover-state transition. */
|
|
60
|
+
/** Called for every distinct hover-state transition. @default undefined */
|
|
61
61
|
readonly onHoverChange?: (isHovered: boolean) => void;
|
|
62
62
|
}
|
|
63
63
|
|
|
@@ -14,6 +14,7 @@ import type {
|
|
|
14
14
|
import type { HoverController, HoverOptions, HoverProps } from "../hover/hover.ts";
|
|
15
15
|
import type { PressController, PressOptions, PressProps } from "../press/press.ts";
|
|
16
16
|
|
|
17
|
+
/** Disabled, configured, or default-enabled options for one interaction feature. */
|
|
17
18
|
export type InteractionFeatureOptions<Options> = false | Options | undefined;
|
|
18
19
|
|
|
19
20
|
/** Platform family used to resolve `Mod` in host-scoped shortcuts. */
|
|
@@ -104,7 +105,9 @@ export interface InteractionShortcutController {
|
|
|
104
105
|
readonly dispose: () => void;
|
|
105
106
|
}
|
|
106
107
|
|
|
108
|
+
/** Features composed into one host's interaction props and controller state. */
|
|
107
109
|
export interface InteractionHooksOptions {
|
|
110
|
+
/** Disable every configured host interaction while preserving its state. @default false */
|
|
108
111
|
readonly isDisabled?: MaybeRefOrGetter<boolean | undefined>;
|
|
109
112
|
/**
|
|
110
113
|
* Track document-level keyboard, pointer, touch, and virtual input modality.
|
|
@@ -112,9 +115,13 @@ export interface InteractionHooksOptions {
|
|
|
112
115
|
* @default false
|
|
113
116
|
*/
|
|
114
117
|
readonly modality?: InteractionFeatureOptions<InteractionModalityOptions>;
|
|
118
|
+
/** Configure direct-target focus-ring tracking. @default enabled with default options */
|
|
115
119
|
readonly focusRing?: InteractionFeatureOptions<FocusRingOptions>;
|
|
120
|
+
/** Configure descendant focus tracking. @default enabled with default options */
|
|
116
121
|
readonly focusWithin?: InteractionFeatureOptions<FocusWithinOptions>;
|
|
122
|
+
/** Configure hover normalization. @default enabled with default options */
|
|
117
123
|
readonly hover?: InteractionFeatureOptions<HoverOptions>;
|
|
124
|
+
/** Configure press normalization. @default enabled with default options */
|
|
118
125
|
readonly press?: InteractionFeatureOptions<PressOptions>;
|
|
119
126
|
/**
|
|
120
127
|
* Route element-scoped or explicitly attached keyboard shortcuts.
|
|
@@ -149,6 +156,7 @@ type ShortcutFeature<Options> = Options extends { readonly shortcuts: infer Feat
|
|
|
149
156
|
type FeatureController<Feature, Controller> = [Feature] extends [false] ? null : Controller;
|
|
150
157
|
type FeatureProps<Feature, Props> = [Feature] extends [false] ? object : Props;
|
|
151
158
|
|
|
159
|
+
/** Native host props contributed by the statically configured features. */
|
|
152
160
|
export type InteractionHooksProps<Options extends InteractionHooksOptions = {}> = FeatureProps<
|
|
153
161
|
PressFeature<Options>,
|
|
154
162
|
PressProps
|
|
@@ -158,6 +166,7 @@ export type InteractionHooksProps<Options extends InteractionHooksOptions = {}>
|
|
|
158
166
|
FeatureProps<FocusWithinFeature<Options>, FocusProps> &
|
|
159
167
|
FeatureProps<ShortcutFeature<Options>, InteractionShortcutProps>;
|
|
160
168
|
|
|
169
|
+
/** Whether each feature had transient interaction state to cancel. */
|
|
161
170
|
export interface InteractionHooksCancelResult {
|
|
162
171
|
readonly focusRing: boolean;
|
|
163
172
|
readonly focusWithin: boolean;
|
|
@@ -166,6 +175,7 @@ export interface InteractionHooksCancelResult {
|
|
|
166
175
|
readonly shortcuts: boolean;
|
|
167
176
|
}
|
|
168
177
|
|
|
178
|
+
/** Composed feature controllers, state, host props, and lifecycle operations. */
|
|
169
179
|
export interface InteractionHooksController<Options extends InteractionHooksOptions = {}> {
|
|
170
180
|
readonly modalityTracker: FeatureController<ModalityFeature<Options>, InteractionModalityTracker>;
|
|
171
181
|
readonly shortcutController: FeatureController<
|
|
@@ -239,6 +239,7 @@ function surfaceErrors(errors: readonly unknown[]): void {
|
|
|
239
239
|
if (errors.length > 1) throw new AggregateError(errors, "Interaction hook cleanup failed");
|
|
240
240
|
}
|
|
241
241
|
|
|
242
|
+
/** Create explicitly disposable interaction features and merged host props. */
|
|
242
243
|
export function createInteractionHooks<const Options extends InteractionHooksOptions = {}>(
|
|
243
244
|
options: Options = {} as Options,
|
|
244
245
|
): InteractionHooksController<Options> {
|
|
@@ -305,6 +306,7 @@ export function createInteractionHooks<const Options extends InteractionHooksOpt
|
|
|
305
306
|
}) as InteractionHooksController<Options>;
|
|
306
307
|
}
|
|
307
308
|
|
|
309
|
+
/** Scope {@link createInteractionHooks} to the active Vue effect scope. */
|
|
308
310
|
export function useInteractionHooks<const Options extends InteractionHooksOptions = {}>(
|
|
309
311
|
options: Options = {} as Options,
|
|
310
312
|
): InteractionHooksController<Options> {
|