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,346 @@
|
|
|
1
|
+
import { defineComponent as le, useSlots as ie, ref as re, computed as s, watch as _, openBlock as u, createElementBlock as x, mergeProps as se, unref as l, createVNode as H, withCtx as T, renderSlot as m, normalizeProps as v, guardReactiveProps as y, createBlock as R, createTextVNode as h, toDisplayString as g, createCommentVNode as C, createElementVNode as P, resolveDynamicComponent as ce, nextTick as W } from "vue";
|
|
2
|
+
import { CircleAlert as ue, TriangleAlert as de, CircleCheck as fe, Info as pe, CircleHelp as me } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as ve } from "../../config.js";
|
|
4
|
+
import { useHysControlState as ye } from "../../composables/formContext.js";
|
|
5
|
+
import { usePopupSurface as ge } from "../../composables/usePopupSurface.js";
|
|
6
|
+
import be from "../../internal/PopupReference.js";
|
|
7
|
+
import he from "../../internal/PopupSurfacePanel.vue.js";
|
|
8
|
+
import N from "../HysButton/HysButton.vue.js";
|
|
9
|
+
import { usePopconfirmAction as Ce } from "./usePopconfirmAction.js";
|
|
10
|
+
const we = ["data-external"], Be = ["data-tone"], xe = { class: "hys-popconfirm-body" }, Te = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "hys-popconfirm-icon",
|
|
13
|
+
"aria-hidden": "true"
|
|
14
|
+
}, Pe = { class: "hys-popconfirm-copy" }, ke = ["id"], De = {
|
|
15
|
+
key: 0,
|
|
16
|
+
class: "hys-popconfirm-error",
|
|
17
|
+
role: "alert"
|
|
18
|
+
}, Ee = ["data-align"], Se = {
|
|
19
|
+
class: "hys-popconfirm-sr",
|
|
20
|
+
role: "status"
|
|
21
|
+
}, Ne = /* @__PURE__ */ le({
|
|
22
|
+
__name: "HysPopconfirm",
|
|
23
|
+
props: {
|
|
24
|
+
trigger: { default: "click" },
|
|
25
|
+
triggerText: { default: "打开确认" },
|
|
26
|
+
title: { default: "确认操作?" },
|
|
27
|
+
description: {},
|
|
28
|
+
tone: { default: "warning" },
|
|
29
|
+
icon: { type: Boolean, default: void 0 },
|
|
30
|
+
showIcon: { type: Boolean, default: !0 },
|
|
31
|
+
confirmText: { default: "确认" },
|
|
32
|
+
cancelText: { default: "取消" },
|
|
33
|
+
pendingText: { default: "处理中…" },
|
|
34
|
+
errorText: {},
|
|
35
|
+
confirmVariant: {},
|
|
36
|
+
cancelVariant: { default: "secondary" },
|
|
37
|
+
size: { default: "sm" },
|
|
38
|
+
align: { default: "end" },
|
|
39
|
+
showCancel: { type: Boolean, default: !0 },
|
|
40
|
+
confirmDisabled: { type: Boolean },
|
|
41
|
+
cancelDisabled: { type: Boolean },
|
|
42
|
+
loading: { type: Boolean },
|
|
43
|
+
allowCancelWhilePending: { type: Boolean },
|
|
44
|
+
dismissWhilePending: { type: Boolean },
|
|
45
|
+
closeOnConfirm: { type: Boolean, default: !0 },
|
|
46
|
+
closeOnCancel: { type: Boolean, default: !0 },
|
|
47
|
+
initialFocus: { default: "cancel" },
|
|
48
|
+
restoreFocus: { type: Boolean, default: !0 },
|
|
49
|
+
beforeConfirm: {},
|
|
50
|
+
beforeCancel: {},
|
|
51
|
+
action: {},
|
|
52
|
+
open: { type: Boolean, default: void 0 },
|
|
53
|
+
modelValue: { type: Boolean, default: void 0 },
|
|
54
|
+
defaultOpen: { type: Boolean },
|
|
55
|
+
disabled: { type: Boolean },
|
|
56
|
+
triggerKeys: {},
|
|
57
|
+
triggerTabindex: {},
|
|
58
|
+
placement: { default: "top" },
|
|
59
|
+
offset: { default: 9 },
|
|
60
|
+
autoAdjustOverflow: { type: Boolean, default: !0 },
|
|
61
|
+
closeOnEscape: { type: Boolean, default: !0 },
|
|
62
|
+
closeOnOutside: { type: Boolean, default: !0 },
|
|
63
|
+
destroyOnHide: { type: Boolean, default: !0 },
|
|
64
|
+
forceRender: { type: Boolean },
|
|
65
|
+
appendTo: { type: [String, Boolean], default: "body" },
|
|
66
|
+
reference: {},
|
|
67
|
+
width: {},
|
|
68
|
+
maxWidth: { default: 360 },
|
|
69
|
+
maxHeight: {},
|
|
70
|
+
showArrow: { type: Boolean, default: !0 },
|
|
71
|
+
arrowOffset: {},
|
|
72
|
+
effect: {},
|
|
73
|
+
color: {},
|
|
74
|
+
textColor: {},
|
|
75
|
+
overlayClass: {},
|
|
76
|
+
overlayStyle: {},
|
|
77
|
+
contentClass: {},
|
|
78
|
+
contentStyle: {},
|
|
79
|
+
zIndex: {},
|
|
80
|
+
ariaLabel: {},
|
|
81
|
+
popupTransition: {},
|
|
82
|
+
popupTransitionDuration: {}
|
|
83
|
+
},
|
|
84
|
+
emits: ["update:open", "update:modelValue", "openChange", "visibleChange", "show", "hide", "opened", "closed", "confirm", "cancel", "dismiss", "error"],
|
|
85
|
+
setup(a, { expose: ee, emit: oe }) {
|
|
86
|
+
const t = a, w = oe, q = ie(), te = ve(), { disabled: k } = ye({
|
|
87
|
+
get disabled() {
|
|
88
|
+
return t.disabled;
|
|
89
|
+
}
|
|
90
|
+
}), d = Ce(), f = re(""), p = s(
|
|
91
|
+
() => d.pending.value ?? (t.loading ? "confirm" : null)
|
|
92
|
+
), b = s(() => p.value !== null), o = ge(
|
|
93
|
+
t,
|
|
94
|
+
"popover",
|
|
95
|
+
(e, ...i) => w(e, ...i),
|
|
96
|
+
{
|
|
97
|
+
allowClose: (e) => e === "programmatic" || e === "anchor" || !b.value || t.dismissWhilePending,
|
|
98
|
+
onDismiss: (e) => {
|
|
99
|
+
e !== "auto" && w("dismiss", e);
|
|
100
|
+
},
|
|
101
|
+
allowTabExit: !0,
|
|
102
|
+
shouldRestoreFocus: () => t.restoreFocus
|
|
103
|
+
}
|
|
104
|
+
), ne = {
|
|
105
|
+
neutral: me,
|
|
106
|
+
info: pe,
|
|
107
|
+
success: fe,
|
|
108
|
+
warning: de,
|
|
109
|
+
danger: ue
|
|
110
|
+
}, K = s(
|
|
111
|
+
() => t.showIcon && (t.icon ?? ne[t.tone])
|
|
112
|
+
), ae = s(
|
|
113
|
+
() => t.confirmVariant ?? (t.tone === "danger" ? "danger" : t.tone === "success" ? "success" : "primary")
|
|
114
|
+
), O = s(
|
|
115
|
+
() => k.value || t.confirmDisabled || b.value
|
|
116
|
+
), V = s(
|
|
117
|
+
() => k.value || t.cancelDisabled || p.value === "cancel" || b.value && !t.allowCancelWhilePending
|
|
118
|
+
), j = s(() => !!(t.title || q.title)), L = s(
|
|
119
|
+
() => !!(t.description || q.description)
|
|
120
|
+
), G = o.id + "-description";
|
|
121
|
+
function z() {
|
|
122
|
+
f.value = "";
|
|
123
|
+
}
|
|
124
|
+
function D() {
|
|
125
|
+
return o.request(!1, t.restoreFocus);
|
|
126
|
+
}
|
|
127
|
+
function J() {
|
|
128
|
+
var e;
|
|
129
|
+
(e = o.panel.value) == null || e.focus({ preventScroll: !0 });
|
|
130
|
+
}
|
|
131
|
+
function M(e) {
|
|
132
|
+
var n, E;
|
|
133
|
+
(E = ((n = o.panel.value) == null ? void 0 : n.querySelector(
|
|
134
|
+
`[data-hys-popconfirm-focus="${e}"]:not(:disabled):not([aria-disabled="true"])`
|
|
135
|
+
)) ?? o.panel.value) == null || E.focus({ preventScroll: !0 });
|
|
136
|
+
}
|
|
137
|
+
let F = !1;
|
|
138
|
+
_(
|
|
139
|
+
[o.open, o.panel, () => o.style.value.visibility],
|
|
140
|
+
([e, i, n]) => {
|
|
141
|
+
if (!e) {
|
|
142
|
+
F = !1;
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
!i || n === "hidden" || F || (F = !0, t.initialFocus === "panel" ? J() : t.initialFocus !== "none" && M(t.initialFocus));
|
|
146
|
+
},
|
|
147
|
+
{ flush: "post" }
|
|
148
|
+
), _(
|
|
149
|
+
o.open,
|
|
150
|
+
(e) => {
|
|
151
|
+
e ? z() : d.abort();
|
|
152
|
+
},
|
|
153
|
+
{ flush: "sync" }
|
|
154
|
+
);
|
|
155
|
+
function Q(e, i) {
|
|
156
|
+
var Z;
|
|
157
|
+
if (!o.open.value || (e === "confirm" ? O.value : V.value))
|
|
158
|
+
return Promise.resolve(!1);
|
|
159
|
+
e === "cancel" && p.value === "confirm" && d.abort();
|
|
160
|
+
const n = document.activeElement, E = !!(n != null && n.matches(`[data-hys-popconfirm-focus="${e}"]`)) && !!((Z = o.panel.value) != null && Z.contains(n)), X = e === "confirm" ? t.beforeConfirm : t.beforeCancel, I = e === "confirm" ? t.action : void 0;
|
|
161
|
+
z();
|
|
162
|
+
const Y = d.run(
|
|
163
|
+
e,
|
|
164
|
+
i,
|
|
165
|
+
async (r) => X && await X(r) === !1 || r.signal.aborted ? !1 : I == null ? void 0 : I(r),
|
|
166
|
+
async (r, B, S) => {
|
|
167
|
+
e === "confirm" ? w("confirm", r, B) : w("cancel", B), (e === "confirm" ? t.closeOnConfirm : t.closeOnCancel) && (await W(), S() && o.open.value && await o.request(
|
|
168
|
+
!1,
|
|
169
|
+
t.restoreFocus,
|
|
170
|
+
"programmatic",
|
|
171
|
+
!1
|
|
172
|
+
));
|
|
173
|
+
},
|
|
174
|
+
(r, B) => {
|
|
175
|
+
const S = e === "confirm" ? "操作失败,请重试。" : "取消失败,请重试。";
|
|
176
|
+
try {
|
|
177
|
+
f.value = (typeof t.errorText == "function" ? t.errorText(r, B) : t.errorText) || S;
|
|
178
|
+
} catch {
|
|
179
|
+
f.value = S;
|
|
180
|
+
}
|
|
181
|
+
w("error", r, B);
|
|
182
|
+
}
|
|
183
|
+
);
|
|
184
|
+
return E ? (W(() => {
|
|
185
|
+
o.open.value && d.pending.value === e && (document.activeElement === n || document.activeElement === document.body) && J();
|
|
186
|
+
}), Y.then(async (r) => (await W(), o.open.value && !b.value && document.activeElement === o.panel.value && M(e), r))) : Y;
|
|
187
|
+
}
|
|
188
|
+
const $ = (e) => Q("confirm", e), A = (e) => Q("cancel", e), U = () => o.open.value ? D() : o.show(), c = s(() => ({
|
|
189
|
+
...o.scope.value,
|
|
190
|
+
close: D,
|
|
191
|
+
toggle: U,
|
|
192
|
+
confirm: $,
|
|
193
|
+
cancel: A,
|
|
194
|
+
abort: d.abort,
|
|
195
|
+
pending: p.value,
|
|
196
|
+
busy: b.value,
|
|
197
|
+
disabled: k.value,
|
|
198
|
+
confirmDisabled: O.value,
|
|
199
|
+
cancelDisabled: V.value,
|
|
200
|
+
error: f.value
|
|
201
|
+
}));
|
|
202
|
+
return ee({
|
|
203
|
+
element: o.panel,
|
|
204
|
+
referenceElement: o.actualReference,
|
|
205
|
+
open: o.open,
|
|
206
|
+
placement: o.placement,
|
|
207
|
+
show: o.show,
|
|
208
|
+
close: D,
|
|
209
|
+
hide: D,
|
|
210
|
+
toggle: U,
|
|
211
|
+
updatePosition: o.updatePosition,
|
|
212
|
+
focus: o.focus,
|
|
213
|
+
confirm: $,
|
|
214
|
+
cancel: A,
|
|
215
|
+
abort: d.abort,
|
|
216
|
+
pending: p,
|
|
217
|
+
error: f,
|
|
218
|
+
clearError: z
|
|
219
|
+
}), (e, i) => (u(), x("span", se({
|
|
220
|
+
ref: (n) => l(o).wrapper.value = n
|
|
221
|
+
}, { ...l(te), ...l(o).wrapperAttrs.value }, {
|
|
222
|
+
class: "hys-ui-popconfirm",
|
|
223
|
+
"data-external": !!a.reference || void 0,
|
|
224
|
+
onClick: i[1] || (i[1] = //@ts-ignore
|
|
225
|
+
(...n) => l(o).click && l(o).click(...n)),
|
|
226
|
+
onContextmenu: i[2] || (i[2] = //@ts-ignore
|
|
227
|
+
(...n) => l(o).contextmenu && l(o).contextmenu(...n)),
|
|
228
|
+
onKeydown: i[3] || (i[3] = //@ts-ignore
|
|
229
|
+
(...n) => l(o).key && l(o).key(...n))
|
|
230
|
+
}), [
|
|
231
|
+
H(l(be), {
|
|
232
|
+
id: l(o).id,
|
|
233
|
+
open: c.value.open,
|
|
234
|
+
kind: "popover",
|
|
235
|
+
onElement: i[0] || (i[0] = (n) => l(o).referenceElement.value = n)
|
|
236
|
+
}, {
|
|
237
|
+
default: T(() => [
|
|
238
|
+
m(e.$slots, "trigger", v(y(c.value)), () => [
|
|
239
|
+
m(e.$slots, "default", v(y(c.value)), () => [
|
|
240
|
+
a.reference ? C("", !0) : (u(), R(N, {
|
|
241
|
+
key: 0,
|
|
242
|
+
variant: "secondary",
|
|
243
|
+
disabled: l(k)
|
|
244
|
+
}, {
|
|
245
|
+
default: T(() => [
|
|
246
|
+
h(g(a.triggerText), 1)
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["disabled"]))
|
|
250
|
+
], !0)
|
|
251
|
+
], !0)
|
|
252
|
+
]),
|
|
253
|
+
_: 3
|
|
254
|
+
}, 8, ["id", "open"]),
|
|
255
|
+
H(he, {
|
|
256
|
+
surface: l(o),
|
|
257
|
+
options: t,
|
|
258
|
+
kind: "popover",
|
|
259
|
+
tabindex: -1,
|
|
260
|
+
"labelled-by": j.value ? l(o).titleId : void 0,
|
|
261
|
+
"described-by": L.value ? G : void 0
|
|
262
|
+
}, {
|
|
263
|
+
default: T(() => [
|
|
264
|
+
P("div", {
|
|
265
|
+
class: "hys-popconfirm-layout",
|
|
266
|
+
"data-tone": a.tone
|
|
267
|
+
}, [
|
|
268
|
+
P("div", xe, [
|
|
269
|
+
a.showIcon && (K.value || e.$slots.icon) ? (u(), x("div", Te, [
|
|
270
|
+
m(e.$slots, "icon", v(y(c.value)), () => [
|
|
271
|
+
(u(), R(ce(K.value), { size: 19 }))
|
|
272
|
+
], !0)
|
|
273
|
+
])) : C("", !0),
|
|
274
|
+
P("div", Pe, [
|
|
275
|
+
j.value ? (u(), x("div", {
|
|
276
|
+
key: 0,
|
|
277
|
+
id: l(o).titleId,
|
|
278
|
+
class: "hys-popconfirm-title"
|
|
279
|
+
}, [
|
|
280
|
+
m(e.$slots, "title", v(y(c.value)), () => [
|
|
281
|
+
h(g(a.title), 1)
|
|
282
|
+
], !0)
|
|
283
|
+
], 8, ke)) : C("", !0),
|
|
284
|
+
L.value ? (u(), x("div", {
|
|
285
|
+
key: 1,
|
|
286
|
+
id: G,
|
|
287
|
+
class: "hys-popconfirm-description"
|
|
288
|
+
}, [
|
|
289
|
+
m(e.$slots, "description", v(y(c.value)), () => [
|
|
290
|
+
h(g(a.description), 1)
|
|
291
|
+
], !0)
|
|
292
|
+
])) : C("", !0)
|
|
293
|
+
])
|
|
294
|
+
]),
|
|
295
|
+
f.value ? (u(), x("div", De, [
|
|
296
|
+
m(e.$slots, "error", v(y(c.value)), () => [
|
|
297
|
+
h(g(f.value), 1)
|
|
298
|
+
], !0)
|
|
299
|
+
])) : C("", !0),
|
|
300
|
+
P("div", {
|
|
301
|
+
class: "hys-popconfirm-actions",
|
|
302
|
+
"data-align": a.align
|
|
303
|
+
}, [
|
|
304
|
+
m(e.$slots, "actions", v(y(c.value)), () => [
|
|
305
|
+
a.showCancel ? (u(), R(N, {
|
|
306
|
+
key: 0,
|
|
307
|
+
size: a.size,
|
|
308
|
+
variant: a.cancelVariant,
|
|
309
|
+
disabled: V.value,
|
|
310
|
+
loading: p.value === "cancel",
|
|
311
|
+
"loading-text": a.pendingText,
|
|
312
|
+
"data-hys-popconfirm-focus": "cancel",
|
|
313
|
+
onClick: A
|
|
314
|
+
}, {
|
|
315
|
+
default: T(() => [
|
|
316
|
+
h(g(a.cancelText), 1)
|
|
317
|
+
]),
|
|
318
|
+
_: 1
|
|
319
|
+
}, 8, ["size", "variant", "disabled", "loading", "loading-text"])) : C("", !0),
|
|
320
|
+
H(N, {
|
|
321
|
+
size: a.size,
|
|
322
|
+
variant: ae.value,
|
|
323
|
+
disabled: O.value,
|
|
324
|
+
loading: p.value === "confirm",
|
|
325
|
+
"loading-text": a.pendingText,
|
|
326
|
+
"data-hys-popconfirm-focus": "confirm",
|
|
327
|
+
onClick: $
|
|
328
|
+
}, {
|
|
329
|
+
default: T(() => [
|
|
330
|
+
h(g(a.confirmText), 1)
|
|
331
|
+
]),
|
|
332
|
+
_: 1
|
|
333
|
+
}, 8, ["size", "variant", "disabled", "loading", "loading-text"])
|
|
334
|
+
], !0)
|
|
335
|
+
], 8, Ee),
|
|
336
|
+
P("span", Se, g(b.value ? a.pendingText : ""), 1)
|
|
337
|
+
], 8, Be)
|
|
338
|
+
]),
|
|
339
|
+
_: 3
|
|
340
|
+
}, 8, ["surface", "labelled-by", "described-by"])
|
|
341
|
+
], 16, we));
|
|
342
|
+
}
|
|
343
|
+
});
|
|
344
|
+
export {
|
|
345
|
+
Ne as default
|
|
346
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ref as d, onScopeDispose as v } from "vue";
|
|
2
|
+
function b(n, t) {
|
|
3
|
+
return new Promise((o, l) => {
|
|
4
|
+
const e = () => l(t.reason);
|
|
5
|
+
t.addEventListener("abort", e, { once: !0 }), Promise.resolve().then(() => t.throwIfAborted()).then(n).then(o, l).finally(() => t.removeEventListener("abort", e));
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
function m() {
|
|
9
|
+
const n = d(null);
|
|
10
|
+
let t;
|
|
11
|
+
function o() {
|
|
12
|
+
const e = t;
|
|
13
|
+
t = void 0, e && !e.settled && e.controller.abort(), n.value = null;
|
|
14
|
+
}
|
|
15
|
+
async function l(e, a, c, u, f) {
|
|
16
|
+
if (t) return !1;
|
|
17
|
+
const r = { controller: new AbortController(), settled: !1 }, s = { action: e, event: a, signal: r.controller.signal };
|
|
18
|
+
t = r, n.value = e;
|
|
19
|
+
try {
|
|
20
|
+
const i = await b(() => c(s), s.signal);
|
|
21
|
+
return t !== r || i === !1 ? !1 : (r.settled = !0, await u(i, s, () => t === r), !0);
|
|
22
|
+
} catch (i) {
|
|
23
|
+
return t === r && f(i, s), !1;
|
|
24
|
+
} finally {
|
|
25
|
+
t === r && o();
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return v(o), { pending: n, run: l, abort: o };
|
|
29
|
+
}
|
|
30
|
+
export {
|
|
31
|
+
m as usePopconfirmAction
|
|
32
|
+
};
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { defineComponent as $, useSlots as L, useId as P, ref as p, computed as r, openBlock as s, createElementBlock as o, mergeProps as R, unref as j, renderSlot as c, normalizeProps as d, guardReactiveProps as v, createBlock as C, resolveDynamicComponent as z, createCommentVNode as i, toDisplayString as y, withCtx as A, createTextVNode as w } from "vue";
|
|
2
|
+
import { ServerCrash as D, FileQuestion as H, LockKeyhole as I, CircleX as N, TriangleAlert as O, CircleCheck as T, Info as V, Sparkles as E } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as F } from "../../config.js";
|
|
4
|
+
const K = ["data-status", "data-tone", "data-size", "data-align", "aria-labelledby"], Q = {
|
|
5
|
+
key: 0,
|
|
6
|
+
class: "hys-result-icon",
|
|
7
|
+
"aria-hidden": "true"
|
|
8
|
+
}, X = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "hys-result-code"
|
|
11
|
+
}, q = {
|
|
12
|
+
key: 2,
|
|
13
|
+
class: "hys-result-copy"
|
|
14
|
+
}, G = {
|
|
15
|
+
key: 1,
|
|
16
|
+
class: "hys-result-subtitle"
|
|
17
|
+
}, J = {
|
|
18
|
+
key: 3,
|
|
19
|
+
class: "hys-result-details"
|
|
20
|
+
}, M = {
|
|
21
|
+
key: 4,
|
|
22
|
+
class: "hys-result-actions"
|
|
23
|
+
}, U = ["aria-live"], ee = /* @__PURE__ */ $({
|
|
24
|
+
__name: "HysResult",
|
|
25
|
+
props: {
|
|
26
|
+
status: { default: "info" },
|
|
27
|
+
title: {},
|
|
28
|
+
subtitle: {},
|
|
29
|
+
icon: { type: Boolean, default: void 0 },
|
|
30
|
+
showCode: { type: Boolean, default: !0 },
|
|
31
|
+
size: { default: "md" },
|
|
32
|
+
align: { default: "center" },
|
|
33
|
+
headingLevel: { default: 2 },
|
|
34
|
+
announce: { default: "off" },
|
|
35
|
+
announcement: {}
|
|
36
|
+
},
|
|
37
|
+
setup(n, { expose: _ }) {
|
|
38
|
+
const u = n, l = L(), S = F(), b = P() + "-result-title", h = p(), g = p(), f = {
|
|
39
|
+
primary: { title: "操作结果", icon: E, tone: "primary" },
|
|
40
|
+
info: { title: "提示信息", icon: V, tone: "primary" },
|
|
41
|
+
success: { title: "操作成功", icon: T, tone: "success" },
|
|
42
|
+
warning: { title: "操作需要注意", icon: O, tone: "warning" },
|
|
43
|
+
error: { title: "操作失败", icon: N, tone: "error" },
|
|
44
|
+
403: { title: "无权访问", icon: I, tone: "warning" },
|
|
45
|
+
404: { title: "页面不存在", icon: H, tone: "primary" },
|
|
46
|
+
500: { title: "服务暂不可用", icon: D, tone: "error" }
|
|
47
|
+
}, a = r(() => {
|
|
48
|
+
const t = String(u.status);
|
|
49
|
+
return Object.hasOwn(f, t) ? t : "info";
|
|
50
|
+
}), e = r(() => ({
|
|
51
|
+
status: a.value,
|
|
52
|
+
code: a.value === "403" || a.value === "404" || a.value === "500" ? a.value : void 0,
|
|
53
|
+
title: u.title ?? f[a.value].title,
|
|
54
|
+
subtitle: u.subtitle
|
|
55
|
+
})), k = r(() => u.icon ?? f[a.value].icon), B = r(
|
|
56
|
+
() => u.announce === "off" ? "" : u.announcement ?? [e.value.code, e.value.title, e.value.subtitle].filter(Boolean).join(" ")
|
|
57
|
+
), x = r(() => ({ sm: 24, md: 32, lg: 40 })[u.size]);
|
|
58
|
+
return _({
|
|
59
|
+
element: h,
|
|
60
|
+
focus: (t) => {
|
|
61
|
+
var m;
|
|
62
|
+
return (m = g.value ?? h.value) == null ? void 0 : m.focus(t);
|
|
63
|
+
}
|
|
64
|
+
}), (t, m) => (s(), o("section", R({
|
|
65
|
+
ref_key: "element",
|
|
66
|
+
ref: h
|
|
67
|
+
}, j(S), {
|
|
68
|
+
class: "hys-ui-result",
|
|
69
|
+
tabindex: "-1",
|
|
70
|
+
"data-status": e.value.status,
|
|
71
|
+
"data-tone": f[a.value].tone,
|
|
72
|
+
"data-size": n.size,
|
|
73
|
+
"data-align": n.align,
|
|
74
|
+
"aria-labelledby": e.value.title || l.title ? b : void 0
|
|
75
|
+
}), [
|
|
76
|
+
k.value !== !1 || l.icon ? (s(), o("div", Q, [
|
|
77
|
+
c(t.$slots, "icon", d(v(e.value)), () => [
|
|
78
|
+
(s(), C(z(k.value || void 0), {
|
|
79
|
+
size: x.value,
|
|
80
|
+
"stroke-width": 1.8
|
|
81
|
+
}, null, 8, ["size"]))
|
|
82
|
+
], !0)
|
|
83
|
+
])) : i("", !0),
|
|
84
|
+
e.value.code && n.showCode ? (s(), o("div", X, y(e.value.code), 1)) : i("", !0),
|
|
85
|
+
e.value.title || e.value.subtitle || l.title || l.subtitle ? (s(), o("div", q, [
|
|
86
|
+
e.value.title || l.title ? (s(), C(z("h" + n.headingLevel), {
|
|
87
|
+
key: 0,
|
|
88
|
+
id: b,
|
|
89
|
+
ref_key: "heading",
|
|
90
|
+
ref: g,
|
|
91
|
+
class: "hys-result-title",
|
|
92
|
+
tabindex: "-1"
|
|
93
|
+
}, {
|
|
94
|
+
default: A(() => [
|
|
95
|
+
c(t.$slots, "title", d(v(e.value)), () => [
|
|
96
|
+
w(y(e.value.title), 1)
|
|
97
|
+
], !0)
|
|
98
|
+
]),
|
|
99
|
+
_: 3
|
|
100
|
+
}, 512)) : i("", !0),
|
|
101
|
+
e.value.subtitle || l.subtitle ? (s(), o("div", G, [
|
|
102
|
+
c(t.$slots, "subtitle", d(v(e.value)), () => [
|
|
103
|
+
w(y(e.value.subtitle), 1)
|
|
104
|
+
], !0)
|
|
105
|
+
])) : i("", !0)
|
|
106
|
+
])) : i("", !0),
|
|
107
|
+
l.default ? (s(), o("div", J, [
|
|
108
|
+
c(t.$slots, "default", d(v(e.value)), void 0, !0)
|
|
109
|
+
])) : i("", !0),
|
|
110
|
+
l.extra ? (s(), o("div", M, [
|
|
111
|
+
c(t.$slots, "extra", d(v(e.value)), void 0, !0)
|
|
112
|
+
])) : i("", !0),
|
|
113
|
+
n.announce !== "off" ? (s(), o("span", {
|
|
114
|
+
key: 5,
|
|
115
|
+
class: "hys-result-sr",
|
|
116
|
+
"aria-live": n.announce,
|
|
117
|
+
"aria-atomic": "true"
|
|
118
|
+
}, y(B.value), 9, U)) : i("", !0)
|
|
119
|
+
], 16, K));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
export {
|
|
123
|
+
ee as default
|
|
124
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysSearch2.vue.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const p = /* @__PURE__ */
|
|
3
|
+
import r from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const p = /* @__PURE__ */ r(o, [["__scopeId", "data-v-9b26d2a0"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./HysSortableList2.vue.js";
|
|
2
|
-
/* empty css
|
|
2
|
+
/* empty css */
|
|
3
3
|
import t from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-e258256c"]]);
|
|
5
5
|
export {
|
|
6
6
|
e as default
|
|
7
7
|
};
|