hys-ui 0.5.0 → 0.7.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/CHANGELOG.md +16 -0
- package/LICENSE +19 -0
- package/dist/components/HysDataGrid/HysDataGrid.vue.js +1 -1
- package/dist/components/HysDataGrid/HysDataGrid2.vue.js +1055 -753
- package/dist/components/HysDataGrid/gridColumnLayout.js +46 -0
- package/dist/components/HysDataGrid/gridPresentation.js +17 -0
- package/dist/components/HysDataGrid/useGridContextMenu.js +33 -0
- package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
- package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
- package/dist/components/HysDrawer/HysDrawer.vue.js +1 -1
- package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
- package/dist/components/HysForm/HysForm2.vue.js +9 -8
- package/dist/components/HysIcon/HysIcon.vue.js +373 -0
- package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
- package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
- package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
- package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
- package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
- package/dist/components/HysIcon/builtins/access.js +180 -0
- package/dist/components/HysIcon/builtins/actions.js +327 -0
- package/dist/components/HysIcon/builtins/business.js +364 -0
- package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
- package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
- package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
- package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
- package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
- package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
- package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
- package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
- package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
- package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
- package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
- package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
- package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
- package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
- package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
- package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
- package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
- package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
- package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
- package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
- package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
- package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
- package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
- package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
- package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
- package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
- package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
- package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
- package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
- package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
- package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
- package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
- package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
- package/dist/components/HysIcon/builtins/communication.js +314 -0
- package/dist/components/HysIcon/builtins/documents.js +315 -0
- package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
- package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
- package/dist/components/HysIcon/builtins/media.js +255 -0
- package/dist/components/HysIcon/builtins/navigation.js +276 -0
- package/dist/components/HysIcon/builtins/technology.js +189 -0
- package/dist/components/HysIcon/iconBuiltins.js +228 -0
- package/dist/components/HysIcon/iconConfig.js +30 -0
- package/dist/components/HysIcon/iconRegistry.js +183 -0
- package/dist/components/HysIcon/iconSafety.js +191 -0
- package/dist/components/HysIcon/iconStyle.js +70 -0
- package/dist/components/HysIcon/useIconResource.js +75 -0
- package/dist/components/HysModal/HysModal.vue.js +2 -2
- package/dist/components/HysModal/HysModal2.vue.js +38 -38
- package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
- package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
- package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
- package/dist/components/HysResult/HysResult.vue.js +7 -0
- package/dist/components/HysResult/HysResult2.vue.js +124 -0
- package/dist/components/HysSearch/HysSearch.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
- package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
- package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
- package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
- package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
- package/dist/components/HysSortableList/geometry.js +230 -0
- package/dist/components/HysSortableList/model.js +254 -0
- package/dist/components/HysSortableList/transactions.js +281 -0
- package/dist/components/HysSortableList/useSortDrag.js +270 -0
- package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
- package/dist/components/HysSortableList/useSortWindow.js +144 -0
- package/dist/components/HysSpace/HysSpace.vue.js +7 -0
- package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
- package/dist/components/HysSpace/spaceItems.js +17 -0
- package/dist/components/HysSpin/HysSpin.vue.js +7 -0
- package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
- package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
- package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
- package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
- package/dist/components/HysSpin/spinCatalog.js +35 -0
- package/dist/components/HysSpin/spinConfig.js +32 -0
- package/dist/components/HysSpin/spinService.js +160 -0
- package/dist/components/HysSpin/spinStyle.js +39 -0
- package/dist/components/HysSpin/useHysSpinTask.js +92 -0
- package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
- package/dist/components/HysSpin/useSpinVisibility.js +59 -0
- package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
- package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
- package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
- package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
- package/dist/components/HysTable/HysTable.vue.js +3 -3
- package/dist/components/HysTable/HysTable2.vue.js +412 -383
- package/dist/components/HysTable/tableSearch.js +24 -0
- package/dist/components/HysTabs/HysTabs.vue.js +172 -5
- package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
- package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
- package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
- package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
- package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
- package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
- package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
- package/dist/components/HysTabs/tabsConfig.js +35 -0
- package/dist/components/HysTabs/tabsItems.js +79 -0
- package/dist/components/HysTabs/tabsPersistence.js +118 -0
- package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
- package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
- package/dist/components/HysTabs/useTabsNav.js +127 -0
- package/dist/components/HysTabs/useTabsOverlays.js +52 -0
- package/dist/components/HysTabs/useTabsPanels.js +101 -0
- package/dist/components/HysTabs/useTabsPointer.js +131 -0
- package/dist/components/HysTabs/useTabsState.js +263 -0
- package/dist/components/HysToast/HysToast.vue.js +3 -3
- package/dist/components/HysToast/HysToast2.vue.js +379 -107
- package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
- package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
- package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
- package/dist/components/HysToast/toastPresentation.js +98 -0
- package/dist/components/HysToast/useToastActions.js +62 -0
- package/dist/components/HysToast/useToastSwipe.js +48 -0
- package/dist/components/HysToast/useToastTimer.js +90 -0
- package/dist/composables/formLayout.js +20 -42
- package/dist/composables/popupReferenceBinding.js +41 -0
- package/dist/composables/popupSurfaceStyle.js +30 -0
- package/dist/composables/toastEscape.js +18 -10
- package/dist/composables/toastQueue.js +276 -0
- package/dist/composables/toastQueueModel.js +86 -0
- package/dist/composables/toastTasks.js +58 -0
- package/dist/composables/useContainerWidth.js +24 -0
- package/dist/composables/useFloating.js +28 -28
- package/dist/composables/useHysToast.js +117 -135
- package/dist/composables/usePageVisibility.js +19 -0
- package/dist/composables/usePopupSurface.js +181 -356
- package/dist/composables/usePopupSurfaceInteractions.js +173 -0
- package/dist/composables/useSplitPaneDrag.js +29 -26
- package/dist/composables/useSvgInstanceId.js +15 -0
- package/dist/composables/useTable.js +321 -306
- package/dist/composables/useTabularRowNavigation.js +46 -0
- package/dist/index.js +231 -185
- package/dist/internal/MultiSplitPane.vue.js +246 -205
- package/dist/internal/PopupSurfacePanel.vue.js +2 -2
- package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
- package/dist/style.css +1 -1
- package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
- package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
- package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
- package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
- package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
- package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
- package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
- package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
- package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
- package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
- package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
- package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
- package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
- package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
- package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
- package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
- package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
- package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
- package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
- package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
- package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
- package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
- package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
- package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
- package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
- package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
- package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
- package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
- package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
- package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
- package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
- package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
- package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
- package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
- package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
- package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
- package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
- package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
- package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
- package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
- package/dist/types/components/HysSortableList/model.d.ts +61 -0
- package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
- package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
- package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
- package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
- package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
- package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
- package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
- package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
- package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
- package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
- package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
- package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
- package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
- package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
- package/dist/types/components/HysSpin/spinService.d.ts +7 -0
- package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
- package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
- package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
- package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
- package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
- package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
- package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
- package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
- package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
- package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
- package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
- package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
- package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
- package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
- package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
- package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
- package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
- package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
- package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
- package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
- package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
- package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
- package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
- package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
- package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
- package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
- package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
- package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
- package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
- package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
- package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
- package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
- package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
- package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
- package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
- package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
- package/dist/types/composables/dataGrid.d.ts +34 -0
- package/dist/types/composables/formLayout.d.ts +1 -2
- package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
- package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
- package/dist/types/composables/table.d.ts +10 -1
- package/dist/types/composables/toastEscape.d.ts +1 -1
- package/dist/types/composables/toastQueue.d.ts +121 -0
- package/dist/types/composables/toastQueueModel.d.ts +116 -0
- package/dist/types/composables/toastTasks.d.ts +2 -0
- package/dist/types/composables/useColorPicker.d.ts +1 -1
- package/dist/types/composables/useContainerWidth.d.ts +2 -0
- package/dist/types/composables/useContextMenu.d.ts +1 -1
- package/dist/types/composables/useFloating.d.ts +2 -2
- package/dist/types/composables/useHysToast.d.ts +4 -48
- package/dist/types/composables/usePageVisibility.d.ts +1 -0
- package/dist/types/composables/usePopupSurface.d.ts +28 -22
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +35 -0
- package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
- package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
- package/dist/types/composables/useTable.d.ts +2 -0
- package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
- package/dist/types/index.d.ts +33 -6
- package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
- package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
- package/package.json +1 -1
|
@@ -181,11 +181,12 @@ export interface HysTablePagination {
|
|
|
181
181
|
hideOnSinglePage?: boolean;
|
|
182
182
|
}
|
|
183
183
|
export interface HysTableQuery<T extends object = Record<string, unknown>> {
|
|
184
|
-
action: "sort" | "filter" | "page" | "pageSize";
|
|
184
|
+
action: "sort" | "filter" | "page" | "pageSize" | "search";
|
|
185
185
|
page: number;
|
|
186
186
|
pageSize: number;
|
|
187
187
|
sorts: HysTableSort[];
|
|
188
188
|
filters: HysTableFilters;
|
|
189
|
+
search?: string;
|
|
189
190
|
currentData: T[];
|
|
190
191
|
}
|
|
191
192
|
export interface HysTableLoadContext {
|
|
@@ -290,6 +291,7 @@ export interface HysTableProps<T extends object> {
|
|
|
290
291
|
selectionColumn?: HysTableSelectionColumn;
|
|
291
292
|
getSelectionProps?: (row: T, index: number) => HysTableSelectionProps;
|
|
292
293
|
highlightCurrentRow?: boolean;
|
|
294
|
+
keyboardNavigation?: boolean;
|
|
293
295
|
currentRowKey?: HysTableKey | null;
|
|
294
296
|
defaultCurrentRowKey?: HysTableKey;
|
|
295
297
|
showIndex?: boolean;
|
|
@@ -303,6 +305,10 @@ export interface HysTableProps<T extends object> {
|
|
|
303
305
|
showSorterTooltip?: boolean | HysTableOverflowTooltipOptions;
|
|
304
306
|
filters?: HysTableFilters;
|
|
305
307
|
defaultFilters?: HysTableFilters;
|
|
308
|
+
search?: string;
|
|
309
|
+
defaultSearch?: string;
|
|
310
|
+
searchColumns?: readonly string[];
|
|
311
|
+
searchMethod?: (search: string, row: T) => boolean;
|
|
306
312
|
filterColumnKey?: string | null;
|
|
307
313
|
filterPlacement?: Placement;
|
|
308
314
|
appendFilterTo?: string | HTMLElement | false;
|
|
@@ -376,6 +382,9 @@ export interface HysTableInstance<T extends object = Record<string, unknown>> {
|
|
|
376
382
|
setSort: (sort: HysTableSort | readonly HysTableSort[] | null) => void;
|
|
377
383
|
clearFilter: (keys?: readonly string[]) => void;
|
|
378
384
|
setFilter: (key: string, values: readonly HysTableFilterValue[]) => void;
|
|
385
|
+
setSearch: (search: string) => void;
|
|
386
|
+
clearSearch: () => void;
|
|
387
|
+
focusRow: (row: T | HysTableKey) => boolean;
|
|
379
388
|
showFilter: (key: string) => Promise<boolean>;
|
|
380
389
|
hideFilter: () => Promise<boolean>;
|
|
381
390
|
setPage: (page: number) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function registerToastEscape(close: () => void): () => void;
|
|
1
|
+
export declare function registerToastEscape(close: (event: KeyboardEvent) => void, element: () => HTMLElement | undefined): (() => void) | undefined;
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import type { HysToastApi, HysToastCloseContext, HysToastConfig, HysToastType } from "../components/HysToast/toastTypes";
|
|
2
|
+
import { type ToastEntry, type ToastInstance } from "./toastQueueModel";
|
|
3
|
+
export declare function createToastQueue(config: HysToastConfig, host: {
|
|
4
|
+
mount: () => void;
|
|
5
|
+
empty: () => void;
|
|
6
|
+
}, reportError: (error: unknown) => void): {
|
|
7
|
+
api: HysToastApi;
|
|
8
|
+
records: import("vue").ShallowReactive<Map<string, ToastEntry>>;
|
|
9
|
+
settings: import("vue").ShallowRef<{
|
|
10
|
+
maxCount?: number;
|
|
11
|
+
maxQueue?: number;
|
|
12
|
+
overflow?: "replace" | "queue";
|
|
13
|
+
queueOrder?: "fifo" | "lifo";
|
|
14
|
+
queueScope?: "global" | "position" | "type" | "group";
|
|
15
|
+
layout?: "vertical" | "horizontal" | "layered";
|
|
16
|
+
gap?: number;
|
|
17
|
+
collapsedCount?: number;
|
|
18
|
+
layerCount?: number;
|
|
19
|
+
layerTrigger?: "hover" | "click" | "both";
|
|
20
|
+
grouping?: boolean;
|
|
21
|
+
dedupe?: "ignore" | "merge";
|
|
22
|
+
dedupeWindow?: number;
|
|
23
|
+
appendTo?: string | HTMLElement | ShadowRoot;
|
|
24
|
+
progress?: import("./useHysToast").HysToastProgress | undefined;
|
|
25
|
+
type?: HysToastType | undefined;
|
|
26
|
+
width?: string | number | undefined;
|
|
27
|
+
direction?: import("./useHysToast").HysToastDirection | undefined;
|
|
28
|
+
offset?: number | undefined;
|
|
29
|
+
duration?: number | undefined;
|
|
30
|
+
animation?: (import("./useHysToast").HysToastAnimation | import("./useHysToast").HysToastMotionPreset) | undefined;
|
|
31
|
+
closable?: boolean | undefined;
|
|
32
|
+
showIcon?: boolean | undefined;
|
|
33
|
+
beforeClose?: ((context: HysToastCloseContext) => boolean | void | Promise<boolean | void>) | undefined;
|
|
34
|
+
easing?: string | ((progress: number) => number) | undefined;
|
|
35
|
+
plain?: boolean | undefined;
|
|
36
|
+
locale?: Partial<import("./useHysToast").HysToastLocale> | undefined;
|
|
37
|
+
position?: import("./useHysToast").HysToastPosition | undefined;
|
|
38
|
+
animationDuration?: number | undefined;
|
|
39
|
+
zIndex?: number | undefined;
|
|
40
|
+
maxLines?: number | undefined;
|
|
41
|
+
actions?: readonly import("./useHysToast").HysToastAction[] | undefined;
|
|
42
|
+
closeOnEscape?: boolean | undefined;
|
|
43
|
+
live?: "polite" | "assertive" | "off" | undefined;
|
|
44
|
+
coordinates?: import("./useHysToast").HysToastCoordinates | undefined;
|
|
45
|
+
glass?: boolean | undefined;
|
|
46
|
+
swipe?: boolean | undefined;
|
|
47
|
+
persistent?: boolean | undefined;
|
|
48
|
+
closeOnClick?: boolean | undefined;
|
|
49
|
+
keyboardDismiss?: boolean | undefined;
|
|
50
|
+
pauseOnHover?: boolean | undefined;
|
|
51
|
+
pauseOnBlur?: boolean | undefined;
|
|
52
|
+
interactive?: boolean | undefined;
|
|
53
|
+
offsetX?: number | undefined;
|
|
54
|
+
offsetY?: number | undefined;
|
|
55
|
+
toastStyle?: import("vue").CSSProperties | undefined;
|
|
56
|
+
progressStyle?: import("vue").CSSProperties | undefined;
|
|
57
|
+
showProgress?: boolean | undefined;
|
|
58
|
+
countdown?: boolean | undefined;
|
|
59
|
+
copyable?: boolean | undefined;
|
|
60
|
+
actionLayout?: "inline" | "footer" | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
maxCount?: number;
|
|
63
|
+
maxQueue?: number;
|
|
64
|
+
overflow?: "replace" | "queue";
|
|
65
|
+
queueOrder?: "fifo" | "lifo";
|
|
66
|
+
queueScope?: "global" | "position" | "type" | "group";
|
|
67
|
+
layout?: "vertical" | "horizontal" | "layered";
|
|
68
|
+
gap?: number;
|
|
69
|
+
collapsedCount?: number;
|
|
70
|
+
layerCount?: number;
|
|
71
|
+
layerTrigger?: "hover" | "click" | "both";
|
|
72
|
+
grouping?: boolean;
|
|
73
|
+
dedupe?: "ignore" | "merge";
|
|
74
|
+
dedupeWindow?: number;
|
|
75
|
+
appendTo?: string | HTMLElement | ShadowRoot;
|
|
76
|
+
progress?: import("./useHysToast").HysToastProgress | undefined;
|
|
77
|
+
type?: HysToastType | undefined;
|
|
78
|
+
width?: string | number | undefined;
|
|
79
|
+
direction?: import("./useHysToast").HysToastDirection | undefined;
|
|
80
|
+
offset?: number | undefined;
|
|
81
|
+
duration?: number | undefined;
|
|
82
|
+
animation?: (import("./useHysToast").HysToastAnimation | import("./useHysToast").HysToastMotionPreset) | undefined;
|
|
83
|
+
closable?: boolean | undefined;
|
|
84
|
+
showIcon?: boolean | undefined;
|
|
85
|
+
beforeClose?: ((context: HysToastCloseContext) => boolean | void | Promise<boolean | void>) | undefined;
|
|
86
|
+
easing?: string | ((progress: number) => number) | undefined;
|
|
87
|
+
plain?: boolean | undefined;
|
|
88
|
+
locale?: Partial<import("./useHysToast").HysToastLocale> | undefined;
|
|
89
|
+
position?: import("./useHysToast").HysToastPosition | undefined;
|
|
90
|
+
animationDuration?: number | undefined;
|
|
91
|
+
zIndex?: number | undefined;
|
|
92
|
+
maxLines?: number | undefined;
|
|
93
|
+
actions?: readonly import("./useHysToast").HysToastAction[] | undefined;
|
|
94
|
+
closeOnEscape?: boolean | undefined;
|
|
95
|
+
live?: "polite" | "assertive" | "off" | undefined;
|
|
96
|
+
coordinates?: import("./useHysToast").HysToastCoordinates | undefined;
|
|
97
|
+
glass?: boolean | undefined;
|
|
98
|
+
swipe?: boolean | undefined;
|
|
99
|
+
persistent?: boolean | undefined;
|
|
100
|
+
closeOnClick?: boolean | undefined;
|
|
101
|
+
keyboardDismiss?: boolean | undefined;
|
|
102
|
+
pauseOnHover?: boolean | undefined;
|
|
103
|
+
pauseOnBlur?: boolean | undefined;
|
|
104
|
+
interactive?: boolean | undefined;
|
|
105
|
+
offsetX?: number | undefined;
|
|
106
|
+
offsetY?: number | undefined;
|
|
107
|
+
toastStyle?: import("vue").CSSProperties | undefined;
|
|
108
|
+
progressStyle?: import("vue").CSSProperties | undefined;
|
|
109
|
+
showProgress?: boolean | undefined;
|
|
110
|
+
countdown?: boolean | undefined;
|
|
111
|
+
copyable?: boolean | undefined;
|
|
112
|
+
actionLayout?: "inline" | "footer" | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
order: (a: ToastEntry, b: ToastEntry) => number;
|
|
115
|
+
notify: <T extends unknown[]>(callback: ((...args: T) => void) | undefined, ...args: T) => void;
|
|
116
|
+
begin: (entry: ToastEntry, closeContext: HysToastCloseContext) => void;
|
|
117
|
+
finish: (entry: ToastEntry) => void;
|
|
118
|
+
setInstance: (entry: ToastEntry, instance: ToastInstance | null, stack: string) => void;
|
|
119
|
+
suspend: (permanent?: boolean) => void;
|
|
120
|
+
resume: () => void;
|
|
121
|
+
};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import type { ToastClock } from "../components/HysToast/useToastTimer";
|
|
2
|
+
import type { HysToastCloseContext, HysToastCloseReason, HysToastConfig, HysToastContext, HysToastFilter, HysToastHandle, HysToastOptions, HysToastSnapshot, HysToastStatus } from "../components/HysToast/toastTypes";
|
|
3
|
+
export interface ToastInstance {
|
|
4
|
+
close(reason?: HysToastCloseReason, event?: Event, force?: boolean): Promise<boolean>;
|
|
5
|
+
restart(): void;
|
|
6
|
+
extend(milliseconds: number): void;
|
|
7
|
+
snapshotClock(): ToastClock;
|
|
8
|
+
restoreClock(clock: ToastClock): void;
|
|
9
|
+
}
|
|
10
|
+
export interface ToastEntry {
|
|
11
|
+
id: string;
|
|
12
|
+
serial: number;
|
|
13
|
+
options: HysToastOptions;
|
|
14
|
+
status: HysToastStatus;
|
|
15
|
+
repeat: number;
|
|
16
|
+
lastSeen: number;
|
|
17
|
+
paused: boolean;
|
|
18
|
+
extending: number;
|
|
19
|
+
clock?: ToastClock;
|
|
20
|
+
shown?: boolean;
|
|
21
|
+
entered?: boolean;
|
|
22
|
+
closeContext?: HysToastCloseContext;
|
|
23
|
+
handle: HysToastHandle;
|
|
24
|
+
resolve: () => void;
|
|
25
|
+
}
|
|
26
|
+
export declare const nextToastSequence: () => number;
|
|
27
|
+
export declare const asOptions: (value: string | HysToastOptions) => HysToastOptions;
|
|
28
|
+
export declare function presentation(options: HysToastOptions): {
|
|
29
|
+
message?: string;
|
|
30
|
+
title?: string;
|
|
31
|
+
type?: import("./useHysToast").HysToastType;
|
|
32
|
+
duration?: number;
|
|
33
|
+
persistent?: boolean;
|
|
34
|
+
closable?: boolean;
|
|
35
|
+
closeOnClick?: boolean;
|
|
36
|
+
closeOnEscape?: boolean;
|
|
37
|
+
keyboardDismiss?: boolean;
|
|
38
|
+
pauseOnHover?: boolean;
|
|
39
|
+
pauseOnBlur?: boolean;
|
|
40
|
+
swipe?: boolean;
|
|
41
|
+
interactive?: boolean;
|
|
42
|
+
position?: import("./useHysToast").HysToastPosition;
|
|
43
|
+
offset?: number;
|
|
44
|
+
offsetX?: number;
|
|
45
|
+
offsetY?: number;
|
|
46
|
+
coordinates?: import("./useHysToast").HysToastCoordinates;
|
|
47
|
+
zIndex?: number;
|
|
48
|
+
width?: string | number;
|
|
49
|
+
showIcon?: boolean;
|
|
50
|
+
plain?: boolean;
|
|
51
|
+
glass?: boolean;
|
|
52
|
+
theme?: import("..").HysTheme;
|
|
53
|
+
toastStyle?: import("vue").CSSProperties;
|
|
54
|
+
progressStyle?: import("vue").CSSProperties;
|
|
55
|
+
progress?: import("./useHysToast").HysToastProgress;
|
|
56
|
+
showProgress?: boolean;
|
|
57
|
+
countdown?: boolean;
|
|
58
|
+
maxLines?: number;
|
|
59
|
+
copyable?: boolean;
|
|
60
|
+
copyText?: string;
|
|
61
|
+
actionLayout?: "inline" | "footer";
|
|
62
|
+
actions?: readonly import("./useHysToast").HysToastAction[];
|
|
63
|
+
animation?: import("./useHysToast").HysToastAnimation | import("./useHysToast").HysToastMotionPreset;
|
|
64
|
+
direction?: import("./useHysToast").HysToastDirection;
|
|
65
|
+
animationDuration?: number;
|
|
66
|
+
easing?: string | ((progress: number) => number);
|
|
67
|
+
live?: "polite" | "assertive" | "off";
|
|
68
|
+
locale?: Partial<import("./useHysToast").HysToastLocale>;
|
|
69
|
+
beforeClose?: (context: HysToastCloseContext) => boolean | void | Promise<boolean | void>;
|
|
70
|
+
};
|
|
71
|
+
export declare function toastStackKey(options: HysToastOptions): string;
|
|
72
|
+
export declare function defaults(config: HysToastConfig): {
|
|
73
|
+
grouping?: boolean;
|
|
74
|
+
dedupe?: "ignore" | "merge";
|
|
75
|
+
dedupeWindow?: number;
|
|
76
|
+
progress?: import("./useHysToast").HysToastProgress | undefined;
|
|
77
|
+
type?: import("./useHysToast").HysToastType | undefined;
|
|
78
|
+
width?: string | number | undefined;
|
|
79
|
+
direction?: import("./useHysToast").HysToastDirection | undefined;
|
|
80
|
+
offset?: number | undefined;
|
|
81
|
+
duration?: number | undefined;
|
|
82
|
+
animation?: (import("./useHysToast").HysToastAnimation | import("./useHysToast").HysToastMotionPreset) | undefined;
|
|
83
|
+
closable?: boolean | undefined;
|
|
84
|
+
showIcon?: boolean | undefined;
|
|
85
|
+
beforeClose?: ((context: HysToastCloseContext) => boolean | void | Promise<boolean | void>) | undefined;
|
|
86
|
+
easing?: string | ((progress: number) => number) | undefined;
|
|
87
|
+
plain?: boolean | undefined;
|
|
88
|
+
locale?: Partial<import("./useHysToast").HysToastLocale> | undefined;
|
|
89
|
+
position?: import("./useHysToast").HysToastPosition | undefined;
|
|
90
|
+
animationDuration?: number | undefined;
|
|
91
|
+
zIndex?: number | undefined;
|
|
92
|
+
maxLines?: number | undefined;
|
|
93
|
+
actions?: readonly import("./useHysToast").HysToastAction[] | undefined;
|
|
94
|
+
closeOnEscape?: boolean | undefined;
|
|
95
|
+
live?: "polite" | "assertive" | "off" | undefined;
|
|
96
|
+
coordinates?: import("./useHysToast").HysToastCoordinates | undefined;
|
|
97
|
+
glass?: boolean | undefined;
|
|
98
|
+
swipe?: boolean | undefined;
|
|
99
|
+
persistent?: boolean | undefined;
|
|
100
|
+
closeOnClick?: boolean | undefined;
|
|
101
|
+
keyboardDismiss?: boolean | undefined;
|
|
102
|
+
pauseOnHover?: boolean | undefined;
|
|
103
|
+
pauseOnBlur?: boolean | undefined;
|
|
104
|
+
interactive?: boolean | undefined;
|
|
105
|
+
offsetX?: number | undefined;
|
|
106
|
+
offsetY?: number | undefined;
|
|
107
|
+
toastStyle?: import("vue").CSSProperties | undefined;
|
|
108
|
+
progressStyle?: import("vue").CSSProperties | undefined;
|
|
109
|
+
showProgress?: boolean | undefined;
|
|
110
|
+
countdown?: boolean | undefined;
|
|
111
|
+
copyable?: boolean | undefined;
|
|
112
|
+
actionLayout?: "inline" | "footer" | undefined;
|
|
113
|
+
};
|
|
114
|
+
export declare function context(entry: ToastEntry): HysToastContext;
|
|
115
|
+
export declare function snapshot(entry: ToastEntry): HysToastSnapshot;
|
|
116
|
+
export declare function matches(entry: ToastEntry, filter?: HysToastFilter): boolean;
|
|
@@ -44,7 +44,7 @@ export declare function useColorPicker(props: HysColorPickerProps, emit: (name:
|
|
|
44
44
|
placement: import("vue").Ref<import("./useFloating").Placement, import("./useFloating").Placement>;
|
|
45
45
|
update: () => void;
|
|
46
46
|
show: (force?: boolean) => Promise<void>;
|
|
47
|
-
close: (restore?: boolean, force?: boolean) => void;
|
|
47
|
+
close: (restore?: boolean, force?: boolean, source?: "outside" | "escape" | "anchor") => void;
|
|
48
48
|
toggle: () => void | Promise<void>;
|
|
49
49
|
restoringFocus: import("vue").Ref<boolean, boolean>;
|
|
50
50
|
schedule: () => void;
|
|
@@ -44,7 +44,7 @@ export declare function useContextMenu<N extends object>(props: HysContextMenuPr
|
|
|
44
44
|
placement: Ref<import("./useFloating").Placement, import("./useFloating").Placement>;
|
|
45
45
|
update: () => void;
|
|
46
46
|
show: (force?: boolean) => Promise<void>;
|
|
47
|
-
close: (restore?: boolean, force?: boolean) => void;
|
|
47
|
+
close: (restore?: boolean, force?: boolean, source?: "outside" | "escape" | "anchor") => void;
|
|
48
48
|
toggle: () => void | Promise<void>;
|
|
49
49
|
restoringFocus: Ref<boolean, boolean>;
|
|
50
50
|
schedule: () => void;
|
|
@@ -21,7 +21,7 @@ export declare function useFloating(anchor: Readonly<Ref<FloatingAnchor | undefi
|
|
|
21
21
|
matchWidth?: boolean | "min" | (() => boolean | "min");
|
|
22
22
|
width?: () => number | string | undefined;
|
|
23
23
|
maxWidth?: () => number | string | undefined;
|
|
24
|
-
requestOpen?: (open: boolean, restoreFocus?: boolean) => boolean | void;
|
|
24
|
+
requestOpen?: (open: boolean, restoreFocus?: boolean, source?: "outside" | "escape" | "anchor") => boolean | void;
|
|
25
25
|
closeOnTab?: boolean;
|
|
26
26
|
closeOnEscape?: boolean;
|
|
27
27
|
closeOnOutside?: boolean;
|
|
@@ -37,7 +37,7 @@ export declare function useFloating(anchor: Readonly<Ref<FloatingAnchor | undefi
|
|
|
37
37
|
placement: Ref<Placement, Placement>;
|
|
38
38
|
update: () => void;
|
|
39
39
|
show: (force?: boolean) => Promise<void>;
|
|
40
|
-
close: (restore?: boolean, force?: boolean) => void;
|
|
40
|
+
close: (restore?: boolean, force?: boolean, source?: "outside" | "escape" | "anchor") => void;
|
|
41
41
|
toggle: () => void | Promise<void>;
|
|
42
42
|
restoringFocus: Ref<boolean, boolean>;
|
|
43
43
|
schedule: () => void;
|
|
@@ -1,50 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import { type HysConfig } from '../config';
|
|
4
|
-
export interface HysToastOptions {
|
|
5
|
-
id?: string;
|
|
6
|
-
message?: string;
|
|
7
|
-
content?: VNodeChild | (() => VNodeChild);
|
|
8
|
-
type?: HysToastType;
|
|
9
|
-
duration?: number;
|
|
10
|
-
closable?: boolean;
|
|
11
|
-
position?: HysToastPosition;
|
|
12
|
-
offset?: number;
|
|
13
|
-
zIndex?: number;
|
|
14
|
-
showIcon?: boolean;
|
|
15
|
-
icon?: VNodeChild | (() => VNodeChild);
|
|
16
|
-
plain?: boolean;
|
|
17
|
-
pauseOnHover?: boolean;
|
|
18
|
-
closeOnEscape?: boolean;
|
|
19
|
-
grouping?: boolean;
|
|
20
|
-
onClose?: () => void;
|
|
21
|
-
onAfterClose?: () => void;
|
|
22
|
-
}
|
|
23
|
-
export interface HysToastConfig extends Omit<HysToastOptions, 'id' | 'message' | 'content' | 'icon' | 'onClose' | 'onAfterClose'> {
|
|
24
|
-
maxCount?: number;
|
|
25
|
-
appendTo?: string | HTMLElement | ShadowRoot;
|
|
26
|
-
}
|
|
27
|
-
export interface HysToastHandle {
|
|
28
|
-
readonly id: string;
|
|
29
|
-
readonly closed: Promise<void>;
|
|
30
|
-
close(): void;
|
|
31
|
-
update(value: string | Omit<Partial<HysToastOptions>, 'id'>): void;
|
|
32
|
-
}
|
|
33
|
-
export interface HysToastApi {
|
|
34
|
-
show(value: string | HysToastOptions): HysToastHandle;
|
|
35
|
-
success(value: string | Omit<HysToastOptions, 'type'>): HysToastHandle;
|
|
36
|
-
info(value: string | Omit<HysToastOptions, 'type'>): HysToastHandle;
|
|
37
|
-
warning(value: string | Omit<HysToastOptions, 'type'>): HysToastHandle;
|
|
38
|
-
error(value: string | Omit<HysToastOptions, 'type'>): HysToastHandle;
|
|
39
|
-
loading(value: string | Omit<HysToastOptions, 'type'>): HysToastHandle;
|
|
40
|
-
closeAll(): void;
|
|
41
|
-
}
|
|
42
|
-
export interface HysToastServiceConfig extends HysToastConfig, HysConfig {
|
|
43
|
-
}
|
|
44
|
-
export interface HysToastService extends HysToastApi {
|
|
45
|
-
dispose(): void;
|
|
46
|
-
}
|
|
47
|
-
/** Call during setup. Messages inherit the owner's theme and are removed when its scope leaves. */
|
|
1
|
+
import type { HysToastApi, HysToastConfig, HysToastService, HysToastServiceConfig } from "../components/HysToast/toastTypes";
|
|
2
|
+
export type * from "../components/HysToast/toastTypes";
|
|
48
3
|
export declare function useHysToast(config?: HysToastConfig): HysToastApi;
|
|
49
|
-
/** Create a shared service for callers outside setup; dispose it when the owning application ends. */
|
|
50
4
|
export declare function createHysToast(config?: HysToastServiceConfig): HysToastService;
|
|
5
|
+
export declare function configureHysToast(config: HysToastServiceConfig): void;
|
|
6
|
+
export declare const hysToast: HysToastService;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function usePageVisibility(): Readonly<import("vue").Ref<boolean, boolean>>;
|
|
@@ -1,6 +1,32 @@
|
|
|
1
1
|
import { type CSSProperties, type HTMLAttributes } from "vue";
|
|
2
2
|
import type { HysPopupSurfaceContext, HysPopupSurfaceProps } from "./popupSurface";
|
|
3
|
-
|
|
3
|
+
import { type PopupCloseSource } from "./usePopupSurfaceInteractions";
|
|
4
|
+
export declare function usePopupSurface(props: HysPopupSurfaceProps, kind: "tooltip" | "popover", emit: (name: string, ...args: any[]) => void, hooks?: {
|
|
5
|
+
allowClose?: (source: PopupCloseSource) => boolean;
|
|
6
|
+
onDismiss?: (source: PopupCloseSource) => void;
|
|
7
|
+
allowTabExit?: boolean;
|
|
8
|
+
shouldRestoreFocus?: () => boolean;
|
|
9
|
+
}): {
|
|
10
|
+
afterEnter: () => Promise<void>;
|
|
11
|
+
afterLeave: () => Promise<void>;
|
|
12
|
+
inactive: () => void;
|
|
13
|
+
request: (value: boolean, restore?: boolean, source?: PopupCloseSource, notifyDismiss?: boolean) => Promise<boolean>;
|
|
14
|
+
show: () => Promise<boolean>;
|
|
15
|
+
hide: () => Promise<boolean>;
|
|
16
|
+
toggle: () => Promise<boolean>;
|
|
17
|
+
updatePosition: () => void;
|
|
18
|
+
focus: () => void | undefined;
|
|
19
|
+
pointerEnter: () => void;
|
|
20
|
+
pointerLeave: () => void;
|
|
21
|
+
panelEnter: () => void;
|
|
22
|
+
panelLeave: () => void;
|
|
23
|
+
focusIn: (event: FocusEvent) => void;
|
|
24
|
+
focusOut: (event: FocusEvent) => void;
|
|
25
|
+
panelFocusIn: () => void;
|
|
26
|
+
panelFocusOut: (event: FocusEvent) => void;
|
|
27
|
+
click: (event: MouseEvent) => void;
|
|
28
|
+
contextmenu: (event: MouseEvent) => void;
|
|
29
|
+
key: (event: KeyboardEvent) => void;
|
|
4
30
|
wrapper: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
5
31
|
referenceElement: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
6
32
|
panel: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
@@ -12,7 +38,7 @@ export declare function usePopupSurface(props: HysPopupSurfaceProps, kind: "tool
|
|
|
12
38
|
placement: import("vue").Ref<import("./useFloating").Placement, import("./useFloating").Placement>;
|
|
13
39
|
active: import("vue").ComputedRef<boolean>;
|
|
14
40
|
mounted: import("vue").ComputedRef<boolean>;
|
|
15
|
-
teleportTo: import("vue").ComputedRef<Element>;
|
|
41
|
+
teleportTo: import("vue").ComputedRef<string | Element>;
|
|
16
42
|
arrowStyle: import("vue").Ref<{
|
|
17
43
|
[x: `--${string}`]: string | number | undefined;
|
|
18
44
|
accentColor?: import("csstype").Property.AccentColor | undefined;
|
|
@@ -3318,24 +3344,4 @@ export declare function usePopupSurface(props: HysPopupSurfaceProps, kind: "tool
|
|
|
3318
3344
|
contentStyle: import("vue").ComputedRef<CSSProperties>;
|
|
3319
3345
|
scope: import("vue").ComputedRef<HysPopupSurfaceContext>;
|
|
3320
3346
|
wrapperAttrs: import("vue").ComputedRef<HTMLAttributes>;
|
|
3321
|
-
pointerEnter: () => void;
|
|
3322
|
-
pointerLeave: () => void;
|
|
3323
|
-
panelEnter: () => void;
|
|
3324
|
-
panelLeave: () => void;
|
|
3325
|
-
focusIn: (event: FocusEvent) => void;
|
|
3326
|
-
focusOut: (event: FocusEvent) => void;
|
|
3327
|
-
panelFocusIn: () => void;
|
|
3328
|
-
panelFocusOut: (event: FocusEvent) => void;
|
|
3329
|
-
click: (event: MouseEvent) => void;
|
|
3330
|
-
contextmenu: (event: MouseEvent) => void;
|
|
3331
|
-
key: (event: KeyboardEvent) => void;
|
|
3332
|
-
afterEnter: () => Promise<void>;
|
|
3333
|
-
afterLeave: () => Promise<void>;
|
|
3334
|
-
inactive: () => void;
|
|
3335
|
-
request: (value: boolean, restore?: boolean) => Promise<boolean>;
|
|
3336
|
-
show: () => Promise<boolean>;
|
|
3337
|
-
hide: () => Promise<boolean>;
|
|
3338
|
-
toggle: () => Promise<boolean>;
|
|
3339
|
-
updatePosition: () => void;
|
|
3340
|
-
focus: () => void | undefined;
|
|
3341
3347
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { type Ref } from "vue";
|
|
2
|
+
import type { HysPopupSurfaceProps } from "./popupSurface";
|
|
3
|
+
import type { FloatingAnchor, useFloating } from "./useFloating";
|
|
4
|
+
export declare const popupFocusControls = "button,a[href],input,select,textarea,[tabindex]:not([tabindex=\"-1\"]),[contenteditable=\"true\"]";
|
|
5
|
+
export type PopupCloseSource = "trigger" | "outside" | "escape" | "tab" | "anchor" | "auto" | "programmatic";
|
|
6
|
+
export declare function usePopupSurfaceInteractions(props: HysPopupSurfaceProps, kind: "tooltip" | "popover", { available, anchor, actualReference, panel, floating, restoreReferenceFocus, request, allowTabExit, }: {
|
|
7
|
+
available: Readonly<Ref<boolean>>;
|
|
8
|
+
anchor: Readonly<Ref<FloatingAnchor | undefined>>;
|
|
9
|
+
actualReference: Readonly<Ref<HTMLElement | undefined>>;
|
|
10
|
+
panel: Readonly<Ref<HTMLElement | undefined>>;
|
|
11
|
+
floating: Pick<ReturnType<typeof useFloating>, "open" | "isTop" | "restoringFocus">;
|
|
12
|
+
restoreReferenceFocus: () => void;
|
|
13
|
+
request: (open: boolean, restore?: boolean, source?: PopupCloseSource) => Promise<boolean>;
|
|
14
|
+
allowTabExit?: boolean;
|
|
15
|
+
}): {
|
|
16
|
+
clearDelays: () => void;
|
|
17
|
+
clearAuto: () => void;
|
|
18
|
+
resetReasons: () => void;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
startAuto: () => void;
|
|
21
|
+
tab: (event: KeyboardEvent) => Promise<void>;
|
|
22
|
+
handlers: {
|
|
23
|
+
pointerEnter: () => void;
|
|
24
|
+
pointerLeave: () => void;
|
|
25
|
+
panelEnter: () => void;
|
|
26
|
+
panelLeave: () => void;
|
|
27
|
+
focusIn: (event: FocusEvent) => void;
|
|
28
|
+
focusOut: (event: FocusEvent) => void;
|
|
29
|
+
panelFocusIn: () => void;
|
|
30
|
+
panelFocusOut: (event: FocusEvent) => void;
|
|
31
|
+
click: (event: MouseEvent) => void;
|
|
32
|
+
contextmenu: (event: MouseEvent) => void;
|
|
33
|
+
key: (event: KeyboardEvent) => void;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
@@ -5,10 +5,10 @@ interface DragSettings {
|
|
|
5
5
|
initial: number;
|
|
6
6
|
constrain: (value: number) => number;
|
|
7
7
|
}
|
|
8
|
-
export declare function useSplitPaneDrag(update: (value: number) => void, ended: (value: number, cancelled: boolean, notify: boolean) => void): {
|
|
8
|
+
export declare function useSplitPaneDrag(update: (value: number) => void, ended: (value: number, cancelled: boolean, notify: boolean, byInput: boolean) => void): {
|
|
9
9
|
start: (event: PointerEvent, settings: DragSettings) => boolean;
|
|
10
10
|
cancel: (event: PointerEvent) => void;
|
|
11
|
-
finish: (cancelled: boolean, notify?: boolean) => void;
|
|
11
|
+
finish: (cancelled: boolean, notify?: boolean, byInput?: boolean) => void;
|
|
12
12
|
active: () => boolean;
|
|
13
13
|
};
|
|
14
14
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSvgInstanceId(suffix: string): import("vue").Ref<string, string>;
|
|
@@ -19,6 +19,7 @@ export declare function useTable<T extends object>(props: HysTableProps<T>, colu
|
|
|
19
19
|
selectionPage: import("vue").ComputedRef<TableNode<T>[]>;
|
|
20
20
|
sorts: import("vue").ComputedRef<HysTableSort[]>;
|
|
21
21
|
filters: import("vue").ComputedRef<HysTableFilters>;
|
|
22
|
+
search: import("vue").ComputedRef<string>;
|
|
22
23
|
processed: import("vue").ComputedRef<{
|
|
23
24
|
roots: TableNode<T>[];
|
|
24
25
|
children: Map<string, TableNode<T>[]>;
|
|
@@ -47,6 +48,7 @@ export declare function useTable<T extends object>(props: HysTableProps<T>, colu
|
|
|
47
48
|
setSort: (value: HysTableSort | readonly HysTableSort[] | null) => void;
|
|
48
49
|
setFilter: (key: string, values: readonly HysTableFilterValue[]) => void;
|
|
49
50
|
clearFilter: (keys?: readonly string[]) => void;
|
|
51
|
+
setSearch: (value: string) => void;
|
|
50
52
|
requestPage: (n: number, action?: "page" | "pageSize") => void;
|
|
51
53
|
changeSize: (n: number) => void;
|
|
52
54
|
toggleRowSelection: (value: T | HysTableKey, checked?: boolean, options?: boolean | HysTableRowSelectionOptions) => Promise<boolean>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export declare function useTabularRowNavigation(options: {
|
|
2
|
+
enabled: () => boolean;
|
|
3
|
+
table: () => HTMLElement | null | undefined;
|
|
4
|
+
tokens: () => readonly string[];
|
|
5
|
+
attribute: string;
|
|
6
|
+
toggle: (token: string) => boolean;
|
|
7
|
+
}): {
|
|
8
|
+
focusRow: (token: string) => boolean;
|
|
9
|
+
rowNavigationAttrs: (token: string) => {
|
|
10
|
+
tabindex: number;
|
|
11
|
+
onFocus: () => void;
|
|
12
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
13
|
+
} | {
|
|
14
|
+
tabindex?: undefined;
|
|
15
|
+
onFocus?: undefined;
|
|
16
|
+
onKeydown?: undefined;
|
|
17
|
+
};
|
|
18
|
+
};
|