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
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
const m = /* @__PURE__ */ new Set([
|
|
2
|
+
"g",
|
|
3
|
+
"path",
|
|
4
|
+
"circle",
|
|
5
|
+
"ellipse",
|
|
6
|
+
"rect",
|
|
7
|
+
"line",
|
|
8
|
+
"polyline",
|
|
9
|
+
"polygon",
|
|
10
|
+
"defs",
|
|
11
|
+
"linearGradient",
|
|
12
|
+
"radialGradient",
|
|
13
|
+
"stop",
|
|
14
|
+
"clipPath",
|
|
15
|
+
"mask"
|
|
16
|
+
]), x = /* @__PURE__ */ new Set([
|
|
17
|
+
"id",
|
|
18
|
+
"d",
|
|
19
|
+
"x",
|
|
20
|
+
"y",
|
|
21
|
+
"x1",
|
|
22
|
+
"y1",
|
|
23
|
+
"x2",
|
|
24
|
+
"y2",
|
|
25
|
+
"cx",
|
|
26
|
+
"cy",
|
|
27
|
+
"r",
|
|
28
|
+
"rx",
|
|
29
|
+
"ry",
|
|
30
|
+
"fx",
|
|
31
|
+
"fy",
|
|
32
|
+
"width",
|
|
33
|
+
"height",
|
|
34
|
+
"points",
|
|
35
|
+
"transform",
|
|
36
|
+
"opacity",
|
|
37
|
+
"fill",
|
|
38
|
+
"fill-opacity",
|
|
39
|
+
"fill-rule",
|
|
40
|
+
"stroke",
|
|
41
|
+
"stroke-width",
|
|
42
|
+
"stroke-opacity",
|
|
43
|
+
"stroke-linecap",
|
|
44
|
+
"stroke-linejoin",
|
|
45
|
+
"stroke-miterlimit",
|
|
46
|
+
"stroke-dasharray",
|
|
47
|
+
"stroke-dashoffset",
|
|
48
|
+
"vector-effect",
|
|
49
|
+
"clip-path",
|
|
50
|
+
"clip-rule",
|
|
51
|
+
"mask",
|
|
52
|
+
"gradientUnits",
|
|
53
|
+
"gradientTransform",
|
|
54
|
+
"spreadMethod",
|
|
55
|
+
"offset",
|
|
56
|
+
"stop-color",
|
|
57
|
+
"stop-opacity",
|
|
58
|
+
"maskUnits",
|
|
59
|
+
"maskContentUnits",
|
|
60
|
+
"clipPathUnits",
|
|
61
|
+
"pathLength"
|
|
62
|
+
]), f = /^[A-Za-z_][\w.-]*$/, h = /^url\(#([A-Za-z_][\w.-]*)\)$/, g = /^[^<>\\\x00-\x1f]{0,16000}$/, u = "http://www.w3.org/2000/svg";
|
|
63
|
+
function y(r) {
|
|
64
|
+
const n = r == null ? void 0 : r.trim().split(/[ ,]+/).map(Number);
|
|
65
|
+
return (n == null ? void 0 : n.length) === 4 && n.every(Number.isFinite) && n[2] > 0 && n[3] > 0 ? n.join(" ") : "0 0 24 24";
|
|
66
|
+
}
|
|
67
|
+
function v(r) {
|
|
68
|
+
if (g.test(r))
|
|
69
|
+
return /url\s*\(/i.test(r) ? h.test(r) ? r : void 0 : r;
|
|
70
|
+
}
|
|
71
|
+
function k(r, n) {
|
|
72
|
+
const i = {};
|
|
73
|
+
for (const [t, o] of Object.entries(r ?? {})) {
|
|
74
|
+
if (!x.has(t) || typeof o != "string" && typeof o != "number")
|
|
75
|
+
continue;
|
|
76
|
+
const e = String(o).trim();
|
|
77
|
+
if (g.test(e)) {
|
|
78
|
+
if (t === "id") {
|
|
79
|
+
f.test(e) && (i[t] = n + e);
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (/url\s*\(/i.test(e)) {
|
|
83
|
+
const c = h.exec(e);
|
|
84
|
+
c && ["fill", "stroke", "clip-path", "mask"].includes(t) && (i[t] = "url(#" + n + c[1] + ")");
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
(t === "clip-path" || t === "mask") && e !== "none" || (i[t] = e);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
return i;
|
|
91
|
+
}
|
|
92
|
+
function w(r, n = "") {
|
|
93
|
+
let i = 500;
|
|
94
|
+
function t(o, e) {
|
|
95
|
+
if (!Array.isArray(o) || e > 15) return [];
|
|
96
|
+
const c = [];
|
|
97
|
+
for (const a of o) {
|
|
98
|
+
if (--i < 0) break;
|
|
99
|
+
!a || !m.has(a.tag) || c.push({
|
|
100
|
+
tag: a.tag,
|
|
101
|
+
attrs: k(a.attrs, n),
|
|
102
|
+
children: t(a.children, e + 1)
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
return c;
|
|
106
|
+
}
|
|
107
|
+
return t(r, 0);
|
|
108
|
+
}
|
|
109
|
+
function b(r) {
|
|
110
|
+
var a, p;
|
|
111
|
+
if (typeof DOMParser > "u")
|
|
112
|
+
throw new Error("SVG import requires DOMParser");
|
|
113
|
+
if (r.length > 25e4 || /<!\s*(?:doctype|entity)/i.test(r))
|
|
114
|
+
throw new Error("SVG document is too large or contains a document type");
|
|
115
|
+
const n = new DOMParser().parseFromString(r, "image/svg+xml"), i = n.documentElement;
|
|
116
|
+
if (i.localName !== "svg" || i.namespaceURI && i.namespaceURI !== u || n.querySelector("parsererror"))
|
|
117
|
+
throw new Error("Invalid SVG document");
|
|
118
|
+
let t = 0;
|
|
119
|
+
function o(s, d) {
|
|
120
|
+
if (!(d > 15 || ++t > 500) && !(!m.has(s.localName) || s.namespaceURI && s.namespaceURI !== u))
|
|
121
|
+
return {
|
|
122
|
+
tag: s.localName,
|
|
123
|
+
attrs: Object.fromEntries(
|
|
124
|
+
[...s.attributes].map((l) => [
|
|
125
|
+
l.name,
|
|
126
|
+
l.value
|
|
127
|
+
])
|
|
128
|
+
),
|
|
129
|
+
children: [...s.children].map((l) => o(l, d + 1)).filter((l) => l !== void 0)
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
const e = [...i.children].map((s) => o(s, 1)).filter((s) => s !== void 0), c = w([
|
|
133
|
+
{
|
|
134
|
+
tag: "g",
|
|
135
|
+
attrs: Object.fromEntries(
|
|
136
|
+
[...i.attributes].map((s) => [
|
|
137
|
+
s.name,
|
|
138
|
+
s.value
|
|
139
|
+
])
|
|
140
|
+
),
|
|
141
|
+
children: e
|
|
142
|
+
}
|
|
143
|
+
]);
|
|
144
|
+
if (!((p = (a = c[0]) == null ? void 0 : a.children) != null && p.some((s) => s.tag !== "defs")))
|
|
145
|
+
throw new Error("SVG contains no supported graphics");
|
|
146
|
+
return {
|
|
147
|
+
type: "svg",
|
|
148
|
+
viewBox: y(i.getAttribute("viewBox") ?? void 0),
|
|
149
|
+
nodes: c
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
function S(r, n, i = !1) {
|
|
153
|
+
const t = r == null ? void 0 : r.trim();
|
|
154
|
+
if (!(!t || /[\\\x00-\x1f]/.test(t))) {
|
|
155
|
+
if (t.startsWith("#"))
|
|
156
|
+
return i && f.test(t.slice(1)) ? t : void 0;
|
|
157
|
+
try {
|
|
158
|
+
const o = typeof document > "u" ? "https://hys-ui.invalid/" : document.baseURI, e = new URL(t, o);
|
|
159
|
+
return !["https:", "http:"].includes(e.protocol) || e.username || e.password || n && e.origin !== new URL(o).origin && !n.includes(e.origin) || i && !f.test(e.hash.slice(1)) ? void 0 : t;
|
|
160
|
+
} catch {
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
function U(r, n) {
|
|
166
|
+
if (!r) return;
|
|
167
|
+
const i = [];
|
|
168
|
+
for (const t of r.split(",")) {
|
|
169
|
+
const [o, e, c] = t.trim().split(/\s+/), a = S(o, n);
|
|
170
|
+
if (!a || c || e && !/^\d+(?:\.\d+)?[wx]$/.test(e))
|
|
171
|
+
return;
|
|
172
|
+
i.push(e ? a + " " + e : a);
|
|
173
|
+
}
|
|
174
|
+
return i.join(", ");
|
|
175
|
+
}
|
|
176
|
+
function A(r) {
|
|
177
|
+
const n = (t) => t.replaceAll("&", "&").replaceAll('"', """).replaceAll("<", "<").replaceAll(">", ">"), i = (t) => {
|
|
178
|
+
const o = Object.entries(t.attrs ?? {}).map(([e, c]) => " " + e + '="' + n(String(c)) + '"').join("");
|
|
179
|
+
return "<" + t.tag + o + ">" + (t.children ?? []).map(i).join("") + "</" + t.tag + ">";
|
|
180
|
+
};
|
|
181
|
+
return '<svg xmlns="' + u + '" viewBox="' + y(r.viewBox) + '" fill="none" stroke="currentColor">' + w(r.nodes).map(i).join("") + "</svg>";
|
|
182
|
+
}
|
|
183
|
+
export {
|
|
184
|
+
S as iconAssetUrl,
|
|
185
|
+
v as iconPaint,
|
|
186
|
+
U as iconSrcset,
|
|
187
|
+
y as iconViewBox,
|
|
188
|
+
b as importHysIconSvg,
|
|
189
|
+
w as sanitizeIconNodes,
|
|
190
|
+
A as serializeHysIconSvg
|
|
191
|
+
};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
const h = {
|
|
2
|
+
xs: 12,
|
|
3
|
+
sm: 16,
|
|
4
|
+
md: 20,
|
|
5
|
+
lg: 28,
|
|
6
|
+
xl: 36
|
|
7
|
+
}, n = (e) => typeof e == "number" && Number.isFinite(e) ? e + "px" : typeof e == "string" ? e : void 0;
|
|
8
|
+
function a(e, i, c, r) {
|
|
9
|
+
return Number.isFinite(e) ? Math.min(r, Math.max(c, e)) : i;
|
|
10
|
+
}
|
|
11
|
+
const y = [
|
|
12
|
+
"none",
|
|
13
|
+
"spin",
|
|
14
|
+
"rotate",
|
|
15
|
+
"pulse",
|
|
16
|
+
"bounce",
|
|
17
|
+
"shake",
|
|
18
|
+
"swing",
|
|
19
|
+
"wiggle",
|
|
20
|
+
"float",
|
|
21
|
+
"breathing",
|
|
22
|
+
"scale",
|
|
23
|
+
"fade",
|
|
24
|
+
"slide",
|
|
25
|
+
"flip",
|
|
26
|
+
"spring",
|
|
27
|
+
"heartbeat",
|
|
28
|
+
"blink",
|
|
29
|
+
"draw",
|
|
30
|
+
"morph",
|
|
31
|
+
"gradient",
|
|
32
|
+
"loading"
|
|
33
|
+
];
|
|
34
|
+
function g(e, i, c) {
|
|
35
|
+
const r = n(
|
|
36
|
+
typeof e.size == "string" && Object.hasOwn(h, e.size) ? h[e.size] : e.size
|
|
37
|
+
) ?? "1em", s = y.includes(i), d = i === "none" ? "none" : s ? "hys-icon-" + i : i, t = a(e.duration, 900, 0, 6e4) / a(e.speed, 1, 0.05, 20), l = typeof e.iterations == "number" ? a(e.iterations, 1, 0, 1e5) : e.iterations ?? (e.animateOn === "click" || e.animateOn === "state" ? 1 : "infinite");
|
|
38
|
+
return {
|
|
39
|
+
"--hys-icon-width": n(e.width) ?? r,
|
|
40
|
+
"--hys-icon-height": n(e.height) ?? r,
|
|
41
|
+
"--hys-icon-font-size": n(e.height) ?? r,
|
|
42
|
+
"--hys-icon-padding": n(e.padding) ?? "0px",
|
|
43
|
+
"--hys-icon-gap": n(e.gap) ?? "6px",
|
|
44
|
+
"--hys-icon-radius": n(e.radius) ?? (e.shape === "circle" ? "50%" : e.shape === "square" ? "0px" : "7px"),
|
|
45
|
+
"--hys-icon-angle": a(e.rotate, 0, -36e3, 36e3) + "deg",
|
|
46
|
+
"--hys-icon-flip-x": e.flipX ? -1 : 1,
|
|
47
|
+
"--hys-icon-flip-y": e.flipY ? -1 : 1,
|
|
48
|
+
"--hys-icon-mirrored-x": e.flipX ? 1 : -1,
|
|
49
|
+
"--hys-icon-animation": d,
|
|
50
|
+
"--hys-icon-duration": t + "ms",
|
|
51
|
+
"--hys-icon-delay": a(e.animationDelay, 0, -6e4, 6e4) + "ms",
|
|
52
|
+
"--hys-icon-ease": e.easing ?? (["spin", "rotate", "loading", "draw"].includes(i) ? "linear" : "ease-in-out"),
|
|
53
|
+
"--hys-icon-repeat": l,
|
|
54
|
+
"--hys-icon-play": c ? "paused" : "running",
|
|
55
|
+
color: e.color,
|
|
56
|
+
opacity: a(e.opacity, 1, 0, 1),
|
|
57
|
+
background: e.background,
|
|
58
|
+
border: e.border,
|
|
59
|
+
boxShadow: e.shadow,
|
|
60
|
+
filter: e.glow ? "drop-shadow(" + e.glow + ")" : void 0,
|
|
61
|
+
verticalAlign: e.verticalAlign,
|
|
62
|
+
...e.animationStyle
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
export {
|
|
66
|
+
y as hysIconAnimations,
|
|
67
|
+
n as iconLength,
|
|
68
|
+
a as iconNumber,
|
|
69
|
+
g as iconStyle
|
|
70
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { shallowRef as d, computed as E, watch as R, onMounted as U, onActivated as x, onDeactivated as A, onBeforeUnmount as O } from "vue";
|
|
2
|
+
import { iconAssetUrl as h } from "./iconSafety.js";
|
|
3
|
+
function D(r) {
|
|
4
|
+
const a = d(), u = d(), c = d(!1);
|
|
5
|
+
let i = !1, o = 0;
|
|
6
|
+
const I = E(() => {
|
|
7
|
+
const e = r.registry();
|
|
8
|
+
e.revision.value;
|
|
9
|
+
const t = r.reference();
|
|
10
|
+
return typeof t == "string" ? e.resolve(t) : void 0;
|
|
11
|
+
});
|
|
12
|
+
function g(e) {
|
|
13
|
+
var n;
|
|
14
|
+
const t = (n = r.allowedOrigins) == null ? void 0 : n.call(r);
|
|
15
|
+
if (e.type === "image" && !h(e.src, t) || e.type === "sprite" && !h(e.href, t, !0))
|
|
16
|
+
throw new Error("Icon URL is not allowed");
|
|
17
|
+
a.value = e;
|
|
18
|
+
}
|
|
19
|
+
function f(e) {
|
|
20
|
+
a.value = void 0, u.value = e ?? new Error("Icon failed to load"), c.value = !1;
|
|
21
|
+
}
|
|
22
|
+
function s() {
|
|
23
|
+
const e = ++o;
|
|
24
|
+
u.value = void 0, c.value = !1;
|
|
25
|
+
const t = r.reference();
|
|
26
|
+
if (!t) {
|
|
27
|
+
a.value = void 0;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const n = r.registry(), w = r.variant();
|
|
31
|
+
try {
|
|
32
|
+
const l = typeof t == "string" ? n.get(t, w) : t;
|
|
33
|
+
if (l) {
|
|
34
|
+
g(l);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
if (a.value = void 0, typeof t != "string" || !n.resolve(t)) {
|
|
38
|
+
f(new Error("Icon not found: " + t));
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (c.value = !0, !i) return;
|
|
42
|
+
n.load(t, w).then((v) => {
|
|
43
|
+
e === o && (g(v), c.value = !1);
|
|
44
|
+
}).catch((v) => {
|
|
45
|
+
e === o && f(v);
|
|
46
|
+
});
|
|
47
|
+
} catch (l) {
|
|
48
|
+
f(l);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
R(
|
|
52
|
+
[
|
|
53
|
+
r.reference,
|
|
54
|
+
r.registry,
|
|
55
|
+
() => r.registry().revision.value,
|
|
56
|
+
r.variant,
|
|
57
|
+
() => {
|
|
58
|
+
var e;
|
|
59
|
+
return (e = r.allowedOrigins) == null ? void 0 : e.call(r);
|
|
60
|
+
}
|
|
61
|
+
],
|
|
62
|
+
s,
|
|
63
|
+
{ immediate: !0 }
|
|
64
|
+
);
|
|
65
|
+
function y() {
|
|
66
|
+
i || (i = !0, s());
|
|
67
|
+
}
|
|
68
|
+
function m() {
|
|
69
|
+
i = !1, o++;
|
|
70
|
+
}
|
|
71
|
+
return U(y), x(y), A(m), O(m), { source: a, loading: c, error: u, record: I, fail: f, reload: s };
|
|
72
|
+
}
|
|
73
|
+
export {
|
|
74
|
+
D as useIconResource
|
|
75
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysModal2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-a0062868"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
p as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as oe, useSlots as le, useAttrs as ie, ref as ne, useId as re, computed as g, mergeProps as B, openBlock as r, createBlock as C, Teleport as
|
|
1
|
+
import { defineComponent as oe, useSlots as le, useAttrs as ie, ref as ne, useId as re, computed as g, mergeProps as B, openBlock as r, createBlock as C, Teleport as se, createVNode as v, Transition as de, normalizeProps as y, guardReactiveProps as m, withCtx as w, unref as a, withDirectives as p, createElementBlock as u, renderSlot as h, createElementVNode as c, toDisplayString as b, createCommentVNode as d, normalizeStyle as z, normalizeClass as T, resolveDynamicComponent as D, createTextVNode as F, vShow as j, withModifiers as ue } from "vue";
|
|
2
2
|
import { Info as q, CircleHelp as ce, CircleX as ye, TriangleAlert as me, CircleCheck as fe, GripHorizontal as he, GripVertical as N, Minimize2 as ge, Maximize2 as ve, X as be, LoaderCircle as ke } from "lucide-vue-next";
|
|
3
3
|
import R from "../HysButton/HysButton.vue.js";
|
|
4
4
|
import { useHysRootAttrs as Be } from "../../config.js";
|
|
@@ -120,7 +120,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
120
120
|
l,
|
|
121
121
|
S,
|
|
122
122
|
(n, ...o) => X(n, ...o)
|
|
123
|
-
),
|
|
123
|
+
), s = t.fullscreen, f = g(() => ({
|
|
124
124
|
close: t.requestClose,
|
|
125
125
|
cancel: t.cancel,
|
|
126
126
|
confirm: t.confirm,
|
|
@@ -130,7 +130,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
130
130
|
error: t.error.value,
|
|
131
131
|
titleId: x,
|
|
132
132
|
descriptionId: P,
|
|
133
|
-
fullscreen:
|
|
133
|
+
fullscreen: s.value,
|
|
134
134
|
toggleFullscreen: t.toggleFullscreen
|
|
135
135
|
})), Y = g(
|
|
136
136
|
() => l.footer !== !1 && (l.footer === !0 || !!J.footer)
|
|
@@ -144,12 +144,12 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
144
144
|
"--hys-ui-modal-opacity": t.alpha(l.opacity) * 100 + "%",
|
|
145
145
|
background: `color-mix(in srgb,var(--hys-ui-surface,var(--hys-ui-theme-surface)) ${t.alpha(l.opacity) * 100}%,transparent)`
|
|
146
146
|
} : {},
|
|
147
|
-
width:
|
|
147
|
+
width: s.value ? "100%" : k(
|
|
148
148
|
((n = t.interaction.dimensions.value) == null ? void 0 : n.width) ?? we(l)
|
|
149
149
|
),
|
|
150
|
-
height:
|
|
151
|
-
maxWidth:
|
|
152
|
-
maxHeight:
|
|
150
|
+
height: s.value ? "100dvh" : k(((o = t.interaction.dimensions.value) == null ? void 0 : o.height) ?? l.height),
|
|
151
|
+
maxWidth: s.value ? "100%" : l.maxWidth ? `min(${l.maxWidth}px,100%)` : "100%",
|
|
152
|
+
maxHeight: s.value ? "100dvh" : k(l.maxHeight) ?? "calc(100dvh - 36px)",
|
|
153
153
|
"--hys-ui-modal-x": t.interaction.position.value.x + "px",
|
|
154
154
|
"--hys-ui-modal-y": t.interaction.position.value.y + "px"
|
|
155
155
|
};
|
|
@@ -160,7 +160,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
160
160
|
background: `color-mix(in srgb,#0b183d ${t.alpha(l.maskOpacity) * 100}%,transparent)`
|
|
161
161
|
} : {},
|
|
162
162
|
zIndex: t.state.zIndex.value,
|
|
163
|
-
...l.centered === !1 && !
|
|
163
|
+
...l.centered === !1 && !s.value ? { alignItems: "flex-start", paddingTop: k(l.top) ?? "15vh" } : {},
|
|
164
164
|
...l.transitionDuration !== void 0 ? {
|
|
165
165
|
"--hys-ui-modal-duration": Math.max(0, Math.min(5e3, l.transitionDuration)) + "ms"
|
|
166
166
|
} : {}
|
|
@@ -197,7 +197,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
197
197
|
open: t.shown,
|
|
198
198
|
closing: t.closing,
|
|
199
199
|
confirming: t.confirming,
|
|
200
|
-
fullscreen:
|
|
200
|
+
fullscreen: s,
|
|
201
201
|
get position() {
|
|
202
202
|
return t.interaction.getPosition();
|
|
203
203
|
},
|
|
@@ -218,11 +218,11 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
218
218
|
resetSize: t.interaction.resetSize,
|
|
219
219
|
setPosition: t.interaction.setPosition,
|
|
220
220
|
setSize: t.interaction.setSize
|
|
221
|
-
}), (n, o) => (r(), C(
|
|
221
|
+
}), (n, o) => (r(), C(se, {
|
|
222
222
|
to: e.appendTo || "body",
|
|
223
223
|
disabled: e.appendTo === !1
|
|
224
224
|
}, [
|
|
225
|
-
v(
|
|
225
|
+
v(de, y(m(te.value)), {
|
|
226
226
|
default: w(() => {
|
|
227
227
|
var E, M;
|
|
228
228
|
return [
|
|
@@ -230,7 +230,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
230
230
|
class: ["hys-ui-overlay hys-ui-modal-overlay", [
|
|
231
231
|
e.overlayClass,
|
|
232
232
|
{
|
|
233
|
-
"hys-ui-modal-fullscreen": a(
|
|
233
|
+
"hys-ui-modal-fullscreen": a(s),
|
|
234
234
|
"hys-ui-modal-no-mask": l.modal === !1,
|
|
235
235
|
"hys-ui-modal-penetrable": l.modal === !1 && e.modalPenetrable,
|
|
236
236
|
"hys-ui-modal-center": e.center,
|
|
@@ -251,7 +251,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
251
251
|
"aria-hidden": "true"
|
|
252
252
|
}, [
|
|
253
253
|
c("span", null, b(e.title || "移动位置"), 1)
|
|
254
|
-
], 512)) :
|
|
254
|
+
], 512)) : d("", !0),
|
|
255
255
|
c("section", B({
|
|
256
256
|
ref_key: "dialog",
|
|
257
257
|
ref: S
|
|
@@ -283,7 +283,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
283
283
|
e.headerClass,
|
|
284
284
|
"hys-ui-modal-header-" + (e.headerSize ?? "md"),
|
|
285
285
|
{
|
|
286
|
-
"hys-ui-modal-header-with-center-grip": e.draggable && !a(
|
|
286
|
+
"hys-ui-modal-header-with-center-grip": e.draggable && !a(s) && e.dragHandlePosition === "center"
|
|
287
287
|
}
|
|
288
288
|
]]),
|
|
289
289
|
style: z({
|
|
@@ -291,7 +291,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
291
291
|
minHeight: a(k)(e.headerHeight) ?? ((E = e.headerStyle) == null ? void 0 : E.minHeight)
|
|
292
292
|
})
|
|
293
293
|
}, [
|
|
294
|
-
e.draggable && !a(
|
|
294
|
+
e.draggable && !a(s) && e.dragHandlePosition === "center" ? (r(), u("button", {
|
|
295
295
|
key: 0,
|
|
296
296
|
type: "button",
|
|
297
297
|
class: "hys-ui-modal-drag-handle hys-ui-modal-drag-handle-center",
|
|
@@ -307,9 +307,9 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
307
307
|
size: 18,
|
|
308
308
|
"aria-hidden": "true"
|
|
309
309
|
})
|
|
310
|
-
], 32)) :
|
|
310
|
+
], 32)) : d("", !0),
|
|
311
311
|
c("div", Se, [
|
|
312
|
-
e.draggable && !a(
|
|
312
|
+
e.draggable && !a(s) && ["left", "both"].includes(e.dragHandlePosition) ? (r(), u("button", {
|
|
313
313
|
key: 0,
|
|
314
314
|
type: "button",
|
|
315
315
|
class: "hys-ui-modal-drag-handle",
|
|
@@ -325,7 +325,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
325
325
|
size: 16,
|
|
326
326
|
"aria-hidden": "true"
|
|
327
327
|
})
|
|
328
|
-
], 32)) :
|
|
328
|
+
], 32)) : d("", !0),
|
|
329
329
|
h(n.$slots, "header", y(m(f.value)), () => [
|
|
330
330
|
(r(), C(D("h" + Z.value), {
|
|
331
331
|
id: x,
|
|
@@ -340,7 +340,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
340
340
|
], !0)
|
|
341
341
|
]),
|
|
342
342
|
c("div", xe, [
|
|
343
|
-
e.draggable && !a(
|
|
343
|
+
e.draggable && !a(s) && ["right", "both"].includes(e.dragHandlePosition) ? (r(), u("button", {
|
|
344
344
|
key: 0,
|
|
345
345
|
type: "button",
|
|
346
346
|
class: "hys-ui-modal-drag-handle",
|
|
@@ -356,25 +356,25 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
356
356
|
size: 16,
|
|
357
357
|
"aria-hidden": "true"
|
|
358
358
|
})
|
|
359
|
-
], 32)) :
|
|
359
|
+
], 32)) : d("", !0),
|
|
360
360
|
e.showFullscreen ? (r(), u("button", {
|
|
361
361
|
key: 1,
|
|
362
362
|
type: "button",
|
|
363
363
|
class: "hys-ui-icon-action",
|
|
364
|
-
"aria-label": a(
|
|
365
|
-
title: a(
|
|
366
|
-
"aria-pressed": a(
|
|
364
|
+
"aria-label": a(s) ? e.restoreText : e.fullscreenText,
|
|
365
|
+
title: a(s) ? e.restoreText : e.fullscreenText,
|
|
366
|
+
"aria-pressed": a(s),
|
|
367
367
|
onClick: o[6] || (o[6] = //@ts-ignore
|
|
368
368
|
(...i) => a(t).toggleFullscreen && a(t).toggleFullscreen(...i))
|
|
369
369
|
}, [
|
|
370
370
|
h(n.$slots, "fullscreen-icon", y(m(f.value)), () => [
|
|
371
|
-
(r(), C(D(a(
|
|
371
|
+
(r(), C(D(a(s) ? a(ge) : a(ve)), { size: 16 }))
|
|
372
372
|
], !0)
|
|
373
|
-
], 8, Pe)) :
|
|
373
|
+
], 8, Pe)) : d("", !0),
|
|
374
374
|
e.showClose ? (r(), u("button", {
|
|
375
375
|
key: 2,
|
|
376
376
|
type: "button",
|
|
377
|
-
class: "hys-ui-icon-action",
|
|
377
|
+
class: "hys-ui-icon-action hys-ui-dialog-close",
|
|
378
378
|
"aria-label": e.closeText,
|
|
379
379
|
disabled: a(t).closing.value || a(t).confirming.value && !e.closeWhileConfirming,
|
|
380
380
|
onClick: o[7] || (o[7] = (i) => a(t).requestClose("button", i))
|
|
@@ -382,9 +382,9 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
382
382
|
h(n.$slots, "close-icon", y(m(f.value)), () => [
|
|
383
383
|
v(a(be), { size: 18 })
|
|
384
384
|
], !0)
|
|
385
|
-
], 8, He)) :
|
|
385
|
+
], 8, He)) : d("", !0)
|
|
386
386
|
])
|
|
387
|
-
], 6)) :
|
|
387
|
+
], 6)) : d("", !0),
|
|
388
388
|
c("div", {
|
|
389
389
|
class: T(["hys-ui-dialog-body", e.bodyClass]),
|
|
390
390
|
style: z(e.bodyStyle)
|
|
@@ -397,7 +397,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
397
397
|
}),
|
|
398
398
|
c("span", null, b(e.loadingText), 1)
|
|
399
399
|
], !0)
|
|
400
|
-
])) :
|
|
400
|
+
])) : d("", !0),
|
|
401
401
|
p(c("div", De, [
|
|
402
402
|
e.showIcon ?? e.type !== "default" ? (r(), u("span", {
|
|
403
403
|
key: 0,
|
|
@@ -408,19 +408,19 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
408
408
|
h(n.$slots, "icon", y(m(f.value)), () => [
|
|
409
409
|
(r(), C(D(ae.value), { size: 24 }))
|
|
410
410
|
], !0)
|
|
411
|
-
], 8, Fe)) :
|
|
411
|
+
], 8, Fe)) : d("", !0),
|
|
412
412
|
c("div", Ae, [
|
|
413
413
|
e.description ? (r(), u("p", {
|
|
414
414
|
key: 0,
|
|
415
415
|
id: P,
|
|
416
416
|
class: "hys-ui-modal-description"
|
|
417
|
-
}, b(e.description), 1)) :
|
|
417
|
+
}, b(e.description), 1)) : d("", !0),
|
|
418
418
|
h(n.$slots, "default", y(m(f.value)), void 0, !0)
|
|
419
419
|
])
|
|
420
420
|
], 512), [
|
|
421
421
|
[j, !e.loading]
|
|
422
422
|
]),
|
|
423
|
-
e.showError && a(t).error.value ? (r(), u("p", Oe, b(a(t).error.value), 1)) :
|
|
423
|
+
e.showError && a(t).error.value ? (r(), u("p", Oe, b(a(t).error.value), 1)) : d("", !0)
|
|
424
424
|
], 6),
|
|
425
425
|
Y.value ? (r(), u("footer", {
|
|
426
426
|
key: 1,
|
|
@@ -432,7 +432,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
432
432
|
...e.footerStyle,
|
|
433
433
|
minHeight: a(k)(e.footerHeight) ?? ((M = e.footerStyle) == null ? void 0 : M.minHeight),
|
|
434
434
|
justifyContent: e.footerAlign === "start" ? "flex-start" : e.footerAlign === "center" || e.center ? "center" : "flex-end",
|
|
435
|
-
paddingInlineEnd: e.resizable && !a(
|
|
435
|
+
paddingInlineEnd: e.resizable && !a(s) ? "38px" : void 0
|
|
436
436
|
})
|
|
437
437
|
}, [
|
|
438
438
|
h(n.$slots, "footer", y(m(f.value)), () => {
|
|
@@ -449,7 +449,7 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
449
449
|
F(b(e.cancelText), 1)
|
|
450
450
|
]),
|
|
451
451
|
_: 1
|
|
452
|
-
}, 16, ["variant", "size", "disabled", "onClick"])) :
|
|
452
|
+
}, 16, ["variant", "size", "disabled", "onClick"])) : d("", !0),
|
|
453
453
|
v(R, B(e.okButtonProps, {
|
|
454
454
|
"data-hys-modal-confirm": "",
|
|
455
455
|
variant: (($ = e.okButtonProps) == null ? void 0 : $.variant) ?? e.okVariant ?? "primary",
|
|
@@ -465,8 +465,8 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
465
465
|
}, 16, ["variant", "size", "loading", "disabled", "onClick"])
|
|
466
466
|
];
|
|
467
467
|
}, !0)
|
|
468
|
-
], 6)) :
|
|
469
|
-
e.resizable && !a(
|
|
468
|
+
], 6)) : d("", !0),
|
|
469
|
+
e.resizable && !a(s) ? (r(), u("button", {
|
|
470
470
|
key: 2,
|
|
471
471
|
type: "button",
|
|
472
472
|
class: "hys-ui-modal-resize-handle",
|
|
@@ -490,11 +490,11 @@ const ze = ["role", "aria-modal", "aria-label", "aria-labelledby", "aria-describ
|
|
|
490
490
|
"stroke-linecap": "round"
|
|
491
491
|
})
|
|
492
492
|
], -1)
|
|
493
|
-
])], 32)) :
|
|
493
|
+
])], 32)) : d("", !0)
|
|
494
494
|
], 16, ze)
|
|
495
495
|
], 16)), [
|
|
496
496
|
[j, a(t).shown.value]
|
|
497
|
-
]) :
|
|
497
|
+
]) : d("", !0)
|
|
498
498
|
];
|
|
499
499
|
}),
|
|
500
500
|
_: 3
|