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
|
@@ -1,22 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronUp as
|
|
3
|
-
import { useHysRootAttrs as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { defineComponent as Te, useId as je, ref as B, computed as h, watch as O, onMounted as He, onActivated as Ne, onDeactivated as Ve, onBeforeUnmount as qe, openBlock as w, createElementBlock as C, mergeProps as te, unref as le, Fragment as F, renderList as ge, createElementVNode as J, normalizeStyle as We, renderSlot as ie, createTextVNode as Ue, toDisplayString as Fe, normalizeClass as Je, createBlock as Ge, resolveDynamicComponent as Qe, createCommentVNode as oe, nextTick as G } from "vue";
|
|
2
|
+
import { ChevronUp as Xe, ChevronRight as ze, ChevronLeft as we, ChevronDown as Ye } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as Ze } from "../config.js";
|
|
4
|
+
import { splitIsVertical as xe, cascadeSplitResize as ea, adjacentSplitResize as ke, splitPair as Se, splitSnapThreshold as aa, splitSnapCandidates as Ce, constrainSplitSize as Me } from "../components/HysSplitPane/splitPaneResize.js";
|
|
5
|
+
import { paneRatio as j, fitPaneSizes as ta, paneEpsilon as f } from "../composables/splitPaneSizes.js";
|
|
6
|
+
import { useSplitPaneDrag as la } from "../composables/useSplitPaneDrag.js";
|
|
7
|
+
import { useSplitPaneStorage as ia, readStoredPaneSizes as oa } from "../composables/useSplitPaneStorage.js";
|
|
8
|
+
const sa = ["data-layout"], na = ["id", "data-hys-pane", "inert"], ra = ["data-hys-separator"], ua = ["tabindex", "aria-label", "aria-controls", "aria-disabled", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "aria-keyshortcuts", "data-resizing", "onPointerdown", "onKeydown", "onDblclick"], ca = {
|
|
8
9
|
class: "hys-ui-splitter-grip",
|
|
9
10
|
"aria-hidden": "true"
|
|
10
|
-
},
|
|
11
|
+
}, va = ["aria-label", "aria-controls", "aria-expanded", "data-collapsed", "disabled", "onClick"], fa = {
|
|
11
12
|
key: 0,
|
|
12
13
|
class: "hys-ui-splitter-preview",
|
|
13
14
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
15
|
+
}, za = /* @__PURE__ */ Te({
|
|
15
16
|
__name: "MultiSplitPane",
|
|
16
17
|
props: {
|
|
17
18
|
panels: {},
|
|
18
19
|
sizes: {},
|
|
19
20
|
vertical: { type: Boolean },
|
|
21
|
+
responsiveBreakpoint: {},
|
|
22
|
+
resizeMode: {},
|
|
23
|
+
snapThreshold: {},
|
|
24
|
+
cancelBehavior: {},
|
|
20
25
|
disabled: { type: Boolean },
|
|
21
26
|
lazy: { type: Boolean },
|
|
22
27
|
step: {},
|
|
@@ -25,281 +30,317 @@ const Qe = ["id", "data-hys-pane", "inert"], Xe = ["data-hys-separator"], Ye = [
|
|
|
25
30
|
dividerSize: {},
|
|
26
31
|
doubleClickAction: {}
|
|
27
32
|
},
|
|
28
|
-
emits: ["update:sizes", "panelResizeStart", "panelResize", "panelResizeEnd", "panelCollapse"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
emits: ["update:sizes", "panelResizeStart", "panelResize", "panelResizeEnd", "panelCollapse", "layoutChange"],
|
|
34
|
+
setup(Q, { expose: Pe, emit: Re }) {
|
|
35
|
+
const s = Q, k = Re, Be = Ze(), Ee = je(), L = B(), v = B(0), X = B(0), m = h(() => xe(s.vertical, X.value, s.responsiveBreakpoint)), Y = h(() => m.value ? "vertical" : "horizontal");
|
|
36
|
+
O(Y, (e) => k("layoutChange", e));
|
|
37
|
+
const E = B(!1), H = B(), N = B();
|
|
38
|
+
ia(
|
|
39
|
+
() => s.sizes === void 0 && s.storageKey ? s.storageKey + ":panels" : void 0,
|
|
40
|
+
H,
|
|
41
|
+
oa
|
|
35
42
|
);
|
|
36
|
-
const
|
|
43
|
+
const I = B(), u = h(() => {
|
|
37
44
|
const e = /* @__PURE__ */ new Set();
|
|
38
|
-
return
|
|
39
|
-
}),
|
|
40
|
-
const e =
|
|
41
|
-
return u.value.map((
|
|
42
|
-
}),
|
|
43
|
-
const
|
|
44
|
-
return { min:
|
|
45
|
-
})), r =
|
|
46
|
-
const
|
|
47
|
-
return i === 0 && e.collapsible ? { preferred: i, min: 0, max: 0 } : { ...
|
|
48
|
-
}))),
|
|
49
|
-
|
|
50
|
-
() =>
|
|
45
|
+
return s.panels.filter((a) => e.has(a.id) ? !1 : (e.add(a.id), !0));
|
|
46
|
+
}), y = h(() => u.value.map((e) => e.id)), K = (e) => `${Ee}-${e}`, M = h(() => Math.max(0, u.value.length - 1)), V = h(() => {
|
|
47
|
+
const e = s.sizes ?? H.value;
|
|
48
|
+
return u.value.map((a) => e && Object.hasOwn(e, a.id) ? e[a.id] : a.size);
|
|
49
|
+
}), z = h(() => u.value.map((e) => {
|
|
50
|
+
const a = Math.min(100, j(e.min, v.value) ?? 0);
|
|
51
|
+
return { min: a, max: Math.max(a, Math.min(100, j(e.max, v.value) ?? 100)) };
|
|
52
|
+
})), r = h(() => ta(u.value.map((e, a) => {
|
|
53
|
+
const t = V.value[a], i = j(t, v.value);
|
|
54
|
+
return i === 0 && e.collapsible ? { preferred: i, min: 0, max: 0 } : { ...z.value[a], preferred: i, relative: typeof t == "string" && t.endsWith("%") };
|
|
55
|
+
}))), se = h(() => u.value.filter((e, a) => e.collapsible && r.value[a] <= f).map((e) => e.id)), q = (e) => e * v.value / 100, Z = (e, a) => typeof a == "number" ? q(e) : a != null && a.endsWith("px") ? `${q(e)}px` : `${e}%`, W = /* @__PURE__ */ new Map();
|
|
56
|
+
O(
|
|
57
|
+
() => y.value.map((e, a) => ({ key: e, ratio: r.value[a], length: V.value[a] })),
|
|
51
58
|
(e) => {
|
|
52
|
-
for (const
|
|
53
|
-
|
|
54
|
-
for (const
|
|
55
|
-
|
|
59
|
+
for (const a of e)
|
|
60
|
+
a.ratio > f && W.set(a.key, v.value > 0 ? Z(a.ratio, a.length) : a.length ?? Z(a.ratio, void 0));
|
|
61
|
+
for (const a of W.keys())
|
|
62
|
+
y.value.includes(a) || W.delete(a);
|
|
56
63
|
},
|
|
57
64
|
{ immediate: !0 }
|
|
58
|
-
),
|
|
59
|
-
for (const
|
|
60
|
-
for (const
|
|
65
|
+
), O(se, (e, a) => {
|
|
66
|
+
for (const t of a) !e.includes(t) && y.value.includes(t) && k("panelCollapse", t, !1);
|
|
67
|
+
for (const t of e) a.includes(t) || k("panelCollapse", t, !0);
|
|
61
68
|
});
|
|
62
|
-
function
|
|
63
|
-
return e.length ===
|
|
69
|
+
function U(e, a) {
|
|
70
|
+
return e.length === a.length && e.every((t, i) => Math.abs(t - a[i]) <= f);
|
|
64
71
|
}
|
|
65
|
-
function
|
|
66
|
-
if (
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
}
|
|
70
|
-
function le(e = r.value) {
|
|
71
|
-
return Object.fromEntries(f.value.map((t, a) => [t, _(e[a])]));
|
|
72
|
+
function A(e) {
|
|
73
|
+
if (U(e, r.value)) return;
|
|
74
|
+
const a = Object.fromEntries(y.value.map((t, i) => [t, Z(e[i], V.value[i])]));
|
|
75
|
+
s.sizes === void 0 && (H.value = a), k("update:sizes", a);
|
|
72
76
|
}
|
|
73
|
-
function
|
|
74
|
-
return
|
|
77
|
+
function ne(e = r.value) {
|
|
78
|
+
return Object.fromEntries(y.value.map((a, t) => [a, q(e[t])]));
|
|
75
79
|
}
|
|
76
|
-
function
|
|
77
|
-
|
|
78
|
-
return i[t + 1] = Math.max(0, e[t] + e[t + 1] - a), i[t] = a, i;
|
|
80
|
+
function x(e, a, t, i = r.value) {
|
|
81
|
+
return { separator: e, before: a, after: t, sizes: ne(i) };
|
|
79
82
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
+
const S = h(() => Array.from(
|
|
84
|
+
{ length: M.value },
|
|
85
|
+
(e, a) => s.resizeMode === "cascade" ? ea(r.value, z.value, u.value, a) : ke(r.value, z.value, a)
|
|
86
|
+
));
|
|
87
|
+
function re(e) {
|
|
88
|
+
var a, t;
|
|
89
|
+
return !s.disabled && ((a = u.value[e]) == null ? void 0 : a.resizable) !== !1 && ((t = u.value[e + 1]) == null ? void 0 : t.resizable) !== !1;
|
|
83
90
|
}
|
|
84
|
-
function
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
const { min: t, max: a } = R(e);
|
|
88
|
-
return a - t > d;
|
|
91
|
+
function T(e) {
|
|
92
|
+
const { min: a, max: t } = S.value[e];
|
|
93
|
+
return re(e) && t - a > f;
|
|
89
94
|
}
|
|
90
|
-
function
|
|
91
|
-
var
|
|
92
|
-
if (
|
|
93
|
-
const
|
|
94
|
-
if (i >
|
|
95
|
-
const l = Math.max(
|
|
96
|
-
if (o < l || o <=
|
|
97
|
-
const c =
|
|
95
|
+
function ee(e, a) {
|
|
96
|
+
var d;
|
|
97
|
+
if (s.disabled || !((d = u.value[e]) != null && d.collapsible) || a < 0 || a >= M.value || a !== e && a !== e - 1) return;
|
|
98
|
+
const t = a === e ? e + 1 : e - 1, i = r.value[e], n = i + r.value[t];
|
|
99
|
+
if (i > f) return n <= z.value[t].max + f ? 0 : void 0;
|
|
100
|
+
const l = Math.max(z.value[e].min, n - z.value[t].max), o = Math.min(z.value[e].max, n - z.value[t].min);
|
|
101
|
+
if (o < l || o <= f) return;
|
|
102
|
+
const c = j(W.get(y.value[e]) ?? u.value[e].size, v.value) || n / 2;
|
|
98
103
|
return Math.min(o, Math.max(l, c));
|
|
99
104
|
}
|
|
100
|
-
async function
|
|
105
|
+
async function ue(e, a, t) {
|
|
101
106
|
if (v.value <= 0) return !1;
|
|
102
|
-
const
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
const o =
|
|
107
|
-
|
|
108
|
-
const
|
|
109
|
-
|
|
107
|
+
const i = y.value.indexOf(e);
|
|
108
|
+
if (i < 0 || r.value[i] <= f === a) return !1;
|
|
109
|
+
const n = t === void 0 ? [i, i - 1] : [t];
|
|
110
|
+
for (const l of n) {
|
|
111
|
+
const o = ee(i, l);
|
|
112
|
+
if (o === void 0) continue;
|
|
113
|
+
const c = r.value[l] + r.value[l + 1];
|
|
114
|
+
b.finish(!0), A(Se(r.value, l, i === l ? o : c - o)), await G();
|
|
115
|
+
const d = y.value.indexOf(e);
|
|
116
|
+
return d >= 0 && r.value[d] <= f === a;
|
|
110
117
|
}
|
|
111
118
|
return !1;
|
|
112
119
|
}
|
|
113
|
-
|
|
114
|
-
return
|
|
120
|
+
function _(e, a) {
|
|
121
|
+
return ue(e, !se.value.includes(e), a);
|
|
122
|
+
}
|
|
123
|
+
async function ce() {
|
|
124
|
+
return s.disabled ? !1 : (b.finish(!0), s.sizes === void 0 && (H.value = void 0), k("update:sizes", {}), await G(), u.value.every((e, a) => e.size === V.value[a]));
|
|
115
125
|
}
|
|
116
|
-
async function
|
|
126
|
+
async function Ae(e, a, t) {
|
|
117
127
|
if (v.value <= 0) return !1;
|
|
118
|
-
const i =
|
|
119
|
-
if (i < 0 ||
|
|
128
|
+
const i = y.value.indexOf(e), n = j(a, v.value);
|
|
129
|
+
if (i < 0 || n === void 0) return !1;
|
|
120
130
|
const l = r.value[i];
|
|
121
|
-
if (
|
|
122
|
-
return l >
|
|
123
|
-
const o =
|
|
131
|
+
if (n === 0 && u.value[i].collapsible)
|
|
132
|
+
return l > f ? _(e, t) : !1;
|
|
133
|
+
const o = t === void 0 ? [i, i - 1] : [t];
|
|
124
134
|
let c;
|
|
125
|
-
for (const
|
|
126
|
-
if (
|
|
127
|
-
const
|
|
128
|
-
(
|
|
135
|
+
for (const p of o) {
|
|
136
|
+
if (p < 0 || p >= M.value || p !== i && p !== i - 1 || !re(p)) continue;
|
|
137
|
+
const R = r.value[p] + r.value[p + 1], de = p === i ? n : R - n, { min: he, max: me } = ke(r.value, z.value, p);
|
|
138
|
+
if (me - he <= f) continue;
|
|
139
|
+
const ye = Math.min(me, Math.max(he, de)), be = Math.abs(ye - de);
|
|
140
|
+
(!c || be < c.distance) && (c = { bar: p, first: ye, distance: be });
|
|
129
141
|
}
|
|
130
142
|
if (!c) return !1;
|
|
131
|
-
|
|
132
|
-
const
|
|
133
|
-
return
|
|
143
|
+
b.finish(!0), A(Se(r.value, c.bar, c.first)), await G();
|
|
144
|
+
const d = y.value.indexOf(e);
|
|
145
|
+
return d >= 0 && Math.abs(r.value[d] - l) > f;
|
|
134
146
|
}
|
|
135
|
-
function
|
|
136
|
-
const
|
|
137
|
-
return
|
|
147
|
+
function ae(e) {
|
|
148
|
+
const a = [e, e + 1].filter((t) => ee(t, e) !== void 0);
|
|
149
|
+
return a.find((t) => r.value[t] <= f) ?? a[0];
|
|
138
150
|
}
|
|
139
|
-
function
|
|
140
|
-
const
|
|
141
|
-
if (
|
|
151
|
+
function ve(e) {
|
|
152
|
+
const a = ae(e);
|
|
153
|
+
if (a !== void 0) return _(y.value[a], e);
|
|
142
154
|
}
|
|
143
|
-
function
|
|
144
|
-
|
|
155
|
+
function _e(e) {
|
|
156
|
+
s.doubleClickAction === "reset" ? ce() : s.doubleClickAction === "collapse" && ve(e);
|
|
145
157
|
}
|
|
146
|
-
function
|
|
147
|
-
var
|
|
148
|
-
const
|
|
149
|
-
return
|
|
158
|
+
function $e(e) {
|
|
159
|
+
var t;
|
|
160
|
+
const a = y.value.indexOf(e);
|
|
161
|
+
return a >= 0 ? ((t = L.value) == null ? void 0 : t.ownerDocument.getElementById(K(a))) ?? void 0 : void 0;
|
|
150
162
|
}
|
|
151
|
-
const $ =
|
|
163
|
+
const $ = h(() => u.value.map((e, a) => ({
|
|
152
164
|
panel: e,
|
|
153
|
-
index:
|
|
154
|
-
size:
|
|
155
|
-
collapsed: r.value[
|
|
156
|
-
toggle: () =>
|
|
165
|
+
index: a,
|
|
166
|
+
size: q(r.value[a]),
|
|
167
|
+
collapsed: r.value[a] <= f,
|
|
168
|
+
toggle: () => _(e.id)
|
|
157
169
|
})));
|
|
158
|
-
let
|
|
159
|
-
function
|
|
160
|
-
const e =
|
|
170
|
+
let P;
|
|
171
|
+
function D() {
|
|
172
|
+
const e = L.value;
|
|
161
173
|
if (!e) return;
|
|
162
|
-
const
|
|
163
|
-
|
|
174
|
+
const a = e.getBoundingClientRect(), t = e.querySelector(":scope > .hys-ui-splitter-bar");
|
|
175
|
+
X.value = e.clientWidth || a.width;
|
|
176
|
+
const i = m.value ? e.clientHeight || a.height : X.value, n = (m.value ? t == null ? void 0 : t.offsetHeight : t == null ? void 0 : t.offsetWidth) || s.dividerSize;
|
|
177
|
+
v.value = Math.max(0, i - n * M.value), E.value = getComputedStyle(e).direction === "rtl";
|
|
164
178
|
}
|
|
165
|
-
function
|
|
166
|
-
|
|
179
|
+
function fe() {
|
|
180
|
+
if (!(P || !L.value)) {
|
|
181
|
+
if (D(), typeof ResizeObserver != "function") {
|
|
182
|
+
window.addEventListener("resize", D);
|
|
183
|
+
return;
|
|
184
|
+
}
|
|
185
|
+
P = new ResizeObserver(D), P.observe(L.value);
|
|
186
|
+
}
|
|
167
187
|
}
|
|
168
|
-
function
|
|
169
|
-
|
|
188
|
+
function pe() {
|
|
189
|
+
b.finish(!0, !1), P == null || P.disconnect(), P = void 0, typeof window < "u" && window.removeEventListener("resize", D);
|
|
170
190
|
}
|
|
171
|
-
const
|
|
172
|
-
let
|
|
173
|
-
const
|
|
191
|
+
const De = h(() => m.value ? Xe : E.value ? ze : we), Oe = h(() => m.value ? Ye : E.value ? we : ze);
|
|
192
|
+
let g;
|
|
193
|
+
const b = la(
|
|
174
194
|
(e) => {
|
|
175
|
-
if (!
|
|
176
|
-
const { separator:
|
|
177
|
-
|
|
195
|
+
if (!g) return;
|
|
196
|
+
const { separator: a, before: t, after: i, apply: n } = g, l = n(e);
|
|
197
|
+
s.lazy ? I.value = { separator: a, ratio: l.slice(0, a + 1).reduce((o, c) => o + c, 0) } : (g.requested = l, A(l)), k("panelResize", x(a, t, i, l));
|
|
178
198
|
},
|
|
179
|
-
(e, t,
|
|
180
|
-
if (!
|
|
181
|
-
const { separator:
|
|
182
|
-
|
|
199
|
+
(e, a, t, i) => {
|
|
200
|
+
if (!g) return;
|
|
201
|
+
const { separator: n, before: l, after: o, initial: c, apply: d, requested: p } = g;
|
|
202
|
+
g = void 0, N.value = void 0, I.value = void 0, !a && s.lazy && A(d(e)), a && i && !s.lazy && s.cancelBehavior === "restore" && p && U(r.value, p) && A(c), t && G(() => k("panelResizeEnd", { ...x(n, l, o), cancelled: a }));
|
|
183
203
|
}
|
|
184
204
|
);
|
|
185
|
-
function
|
|
186
|
-
if (
|
|
187
|
-
const
|
|
188
|
-
if (
|
|
189
|
-
|
|
205
|
+
function Le(e, a) {
|
|
206
|
+
if (b.active() || e.button !== 0 || (D(), !T(a))) return;
|
|
207
|
+
const t = r.value, i = S.value[a], n = aa(s.snapThreshold, v.value), l = [];
|
|
208
|
+
if (n > 0) {
|
|
209
|
+
const d = Ce(
|
|
210
|
+
i.initial,
|
|
211
|
+
t[a],
|
|
212
|
+
t[a + 1],
|
|
213
|
+
v.value,
|
|
214
|
+
u.value[a].snapPoints
|
|
215
|
+
), p = Ce(
|
|
216
|
+
i.initial,
|
|
217
|
+
t[a],
|
|
218
|
+
t[a + 1],
|
|
219
|
+
v.value,
|
|
220
|
+
void 0,
|
|
221
|
+
u.value[a + 1].snapPoints
|
|
222
|
+
);
|
|
223
|
+
l.push(
|
|
224
|
+
...d.filter((R) => Math.abs(i.apply(R)[a] - t[a] - (R - i.initial)) <= f),
|
|
225
|
+
...p.filter((R) => Math.abs(t[a + 1] - i.apply(R)[a + 1] - (R - i.initial)) <= f)
|
|
226
|
+
);
|
|
227
|
+
}
|
|
228
|
+
if (!b.start(e, {
|
|
229
|
+
vertical: m.value,
|
|
190
230
|
available: v.value,
|
|
191
|
-
direction: !
|
|
192
|
-
initial:
|
|
193
|
-
constrain: (
|
|
231
|
+
direction: !m.value && E.value ? -1 : 1,
|
|
232
|
+
initial: i.initial,
|
|
233
|
+
constrain: (d) => Me(d, i, l, n)
|
|
194
234
|
})) return;
|
|
195
|
-
const [
|
|
196
|
-
|
|
235
|
+
const [o, c] = y.value.slice(a, a + 2);
|
|
236
|
+
g = { separator: a, before: o, after: c, initial: t, apply: i.apply }, N.value = a, k("panelResizeStart", x(a, o, c));
|
|
197
237
|
}
|
|
198
|
-
function
|
|
199
|
-
if (e.key === "Enter" && !
|
|
200
|
-
e.preventDefault(),
|
|
238
|
+
function Ie(e, a) {
|
|
239
|
+
if (e.key === "Enter" && !b.active() && ae(a) !== void 0) {
|
|
240
|
+
e.preventDefault(), ve(a);
|
|
201
241
|
return;
|
|
202
242
|
}
|
|
203
|
-
if (
|
|
243
|
+
if (b.active() || !T(a) || v.value <= 0 || !["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Home", "End"].includes(e.key)) return;
|
|
204
244
|
e.preventDefault();
|
|
205
|
-
const
|
|
206
|
-
|
|
245
|
+
const t = S.value[a], i = (Number.isFinite(s.step) && s.step > 0 ? s.step : 2) * (e.shiftKey ? 5 : 1), n = e.key === "ArrowDown" || e.key === (E.value && !m.value ? "ArrowLeft" : "ArrowRight"), l = e.key === "Home" ? t.min : e.key === "End" ? t.max : Me(t.initial + (n ? i : -i), t);
|
|
246
|
+
A(t.apply(l));
|
|
207
247
|
}
|
|
208
|
-
const
|
|
209
|
-
return
|
|
210
|
-
|
|
211
|
-
}, { flush: "post" }),
|
|
212
|
-
var
|
|
213
|
-
return
|
|
248
|
+
const Ke = h(() => JSON.stringify(u.value.map((e) => [e.id, e.min, e.max, e.resizable, e.collapsible, e.snapPoints])));
|
|
249
|
+
return O([Ke, v, E, m, () => s.disabled, () => s.lazy, () => s.resizeMode, () => s.snapThreshold], () => b.finish(!0), { flush: "sync" }), O(r, (e, a) => {
|
|
250
|
+
g && !U(e, a) && !U(e, g.requested ?? g.initial) && b.finish(!0);
|
|
251
|
+
}, { flush: "post" }), O([M, m, () => s.dividerSize], D, { flush: "post" }), He(fe), Ne(fe), Ve(pe), qe(pe), Pe({ togglePane: _, setPaneCollapsed: ue, getPanelSizes: ne, getPaneElement: $e, getLayout: () => Y.value, resizePane: Ae, resetSizes: ce }), (e, a) => {
|
|
252
|
+
var t, i;
|
|
253
|
+
return w(), C("div", te({
|
|
214
254
|
ref_key: "host",
|
|
215
|
-
ref:
|
|
216
|
-
},
|
|
217
|
-
class: ["hys-ui-ent-split hys-ui-multi-split", { "hys-ui-vertical":
|
|
255
|
+
ref: L
|
|
256
|
+
}, le(Be), {
|
|
257
|
+
class: ["hys-ui-ent-split hys-ui-multi-split", { "hys-ui-vertical": m.value }],
|
|
258
|
+
"data-layout": Y.value,
|
|
218
259
|
style: {
|
|
219
|
-
"--hys-ui-splitter-size":
|
|
220
|
-
"--hys-ui-divider-count":
|
|
221
|
-
"--hys-ui-split-preview": (((
|
|
222
|
-
"--hys-ui-preview-bar": (((i =
|
|
260
|
+
"--hys-ui-splitter-size": Q.dividerSize + "px",
|
|
261
|
+
"--hys-ui-divider-count": M.value,
|
|
262
|
+
"--hys-ui-split-preview": (((t = I.value) == null ? void 0 : t.ratio) ?? 0) / 100,
|
|
263
|
+
"--hys-ui-preview-bar": (((i = I.value) == null ? void 0 : i.separator) ?? 0) + 0.5
|
|
223
264
|
}
|
|
224
265
|
}), [
|
|
225
|
-
(
|
|
226
|
-
key:
|
|
266
|
+
(w(!0), C(F, null, ge($.value, (n, l) => (w(), C(F, {
|
|
267
|
+
key: n.panel.id
|
|
227
268
|
}, [
|
|
228
|
-
|
|
229
|
-
id:
|
|
269
|
+
J("div", {
|
|
270
|
+
id: K(l),
|
|
230
271
|
class: "hys-ui-splitter-pane",
|
|
231
|
-
"data-hys-pane":
|
|
232
|
-
inert:
|
|
233
|
-
style:
|
|
272
|
+
"data-hys-pane": n.panel.id,
|
|
273
|
+
inert: n.collapsed,
|
|
274
|
+
style: We({ "--hys-ui-split-ratio": r.value[l] / 100 })
|
|
234
275
|
}, [
|
|
235
|
-
|
|
236
|
-
|
|
276
|
+
ie(e.$slots, "panel", te({ ref_for: !0 }, n), () => [
|
|
277
|
+
Ue(Fe(n.panel.label), 1)
|
|
237
278
|
])
|
|
238
|
-
], 12,
|
|
239
|
-
l <
|
|
279
|
+
], 12, na),
|
|
280
|
+
l < M.value ? (w(), C("div", {
|
|
240
281
|
key: 0,
|
|
241
282
|
class: "hys-ui-splitter-bar",
|
|
242
283
|
"data-hys-separator": l
|
|
243
284
|
}, [
|
|
244
|
-
|
|
285
|
+
J("div", {
|
|
245
286
|
class: "hys-ui-ent-split-handle",
|
|
246
287
|
role: "separator",
|
|
247
|
-
tabindex:
|
|
248
|
-
"aria-label": `${
|
|
249
|
-
"aria-controls": `${
|
|
250
|
-
"aria-disabled": !
|
|
251
|
-
"aria-orientation":
|
|
252
|
-
"aria-valuenow":
|
|
253
|
-
"aria-valuemin": Math.min(
|
|
254
|
-
"aria-valuemax": Math.max(
|
|
255
|
-
"aria-keyshortcuts":
|
|
256
|
-
"data-resizing":
|
|
257
|
-
onPointerdown: (o) =>
|
|
258
|
-
onLostpointercapture:
|
|
259
|
-
(...o) =>
|
|
260
|
-
onKeydown: (o) =>
|
|
261
|
-
onDblclick: (o) =>
|
|
288
|
+
tabindex: T(l) ? 0 : -1,
|
|
289
|
+
"aria-label": `${Q.ariaLabel} ${l + 1}`,
|
|
290
|
+
"aria-controls": `${K(l)} ${K(l + 1)}`,
|
|
291
|
+
"aria-disabled": !T(l) || void 0,
|
|
292
|
+
"aria-orientation": m.value ? "horizontal" : "vertical",
|
|
293
|
+
"aria-valuenow": S.value[l].initial,
|
|
294
|
+
"aria-valuemin": Math.min(S.value[l].initial, S.value[l].min),
|
|
295
|
+
"aria-valuemax": Math.max(S.value[l].initial, S.value[l].max),
|
|
296
|
+
"aria-keyshortcuts": ae(l) === void 0 ? void 0 : "Enter",
|
|
297
|
+
"data-resizing": N.value === l || void 0,
|
|
298
|
+
onPointerdown: (o) => Le(o, l),
|
|
299
|
+
onLostpointercapture: a[0] || (a[0] = //@ts-ignore
|
|
300
|
+
(...o) => le(b).cancel && le(b).cancel(...o)),
|
|
301
|
+
onKeydown: (o) => Ie(o, l),
|
|
302
|
+
onDblclick: (o) => _e(l)
|
|
262
303
|
}, [
|
|
263
|
-
|
|
264
|
-
|
|
304
|
+
J("span", ca, [
|
|
305
|
+
ie(e.$slots, "handle", {
|
|
265
306
|
separator: l,
|
|
266
|
-
before:
|
|
307
|
+
before: n.panel.id,
|
|
267
308
|
after: u.value[l + 1].id,
|
|
268
|
-
vertical:
|
|
269
|
-
disabled: !
|
|
270
|
-
resizing:
|
|
309
|
+
vertical: m.value,
|
|
310
|
+
disabled: !T(l),
|
|
311
|
+
resizing: N.value === l
|
|
271
312
|
}, () => [
|
|
272
|
-
|
|
313
|
+
a[1] || (a[1] = J("span", { class: "hys-ui-splitter-dots" }, null, -1))
|
|
273
314
|
])
|
|
274
315
|
])
|
|
275
|
-
], 40,
|
|
276
|
-
(
|
|
277
|
-
u.value[o].collapsible ? (
|
|
316
|
+
], 40, ua),
|
|
317
|
+
(w(!0), C(F, null, ge([l, l + 1], (o) => (w(), C(F, { key: o }, [
|
|
318
|
+
u.value[o].collapsible ? (w(), C("button", {
|
|
278
319
|
key: 0,
|
|
279
|
-
class:
|
|
320
|
+
class: Je(["hys-ui-splitter-toggle", o === l ? "hys-ui-splitter-toggle-first" : "hys-ui-splitter-toggle-second"]),
|
|
280
321
|
type: "button",
|
|
281
322
|
"aria-label": ($.value[o].collapsed ? "展开" : "折叠") + (u.value[o].label ?? u.value[o].id),
|
|
282
|
-
"aria-controls":
|
|
323
|
+
"aria-controls": K(o),
|
|
283
324
|
"aria-expanded": !$.value[o].collapsed,
|
|
284
325
|
"data-collapsed": $.value[o].collapsed || void 0,
|
|
285
|
-
disabled:
|
|
286
|
-
onClick: (c) =>
|
|
326
|
+
disabled: ee(o, l) === void 0,
|
|
327
|
+
onClick: (c) => _(u.value[o].id, l)
|
|
287
328
|
}, [
|
|
288
|
-
|
|
329
|
+
ie(e.$slots, "panel-collapse", te({ ref_for: !0 }, $.value[o], {
|
|
289
330
|
side: o === l ? "start" : "end",
|
|
290
|
-
toggle: () =>
|
|
331
|
+
toggle: () => _(u.value[o].id, l)
|
|
291
332
|
}), () => [
|
|
292
|
-
(
|
|
333
|
+
(w(), Ge(Qe(o === l !== $.value[o].collapsed ? De.value : Oe.value), { size: 13 }))
|
|
293
334
|
])
|
|
294
|
-
], 10,
|
|
335
|
+
], 10, va)) : oe("", !0)
|
|
295
336
|
], 64))), 128))
|
|
296
|
-
], 8,
|
|
337
|
+
], 8, ra)) : oe("", !0)
|
|
297
338
|
], 64))), 128)),
|
|
298
|
-
|
|
299
|
-
], 16);
|
|
339
|
+
I.value ? (w(), C("div", fa)) : oe("", !0)
|
|
340
|
+
], 16, sa);
|
|
300
341
|
};
|
|
301
342
|
}
|
|
302
343
|
});
|
|
303
344
|
export {
|
|
304
|
-
|
|
345
|
+
za as default
|
|
305
346
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./PopupSurfacePanel2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const f = /* @__PURE__ */
|
|
3
|
+
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const f = /* @__PURE__ */ a(o, [["__scopeId", "data-v-0f25a470"]]);
|
|
5
5
|
export {
|
|
6
6
|
f as default
|
|
7
7
|
};
|