hys-ui 0.6.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 +9 -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/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/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/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/composables/formLayout.js +20 -42
- package/dist/composables/popupSurfaceStyle.js +30 -0
- package/dist/composables/useContainerWidth.js +24 -0
- package/dist/composables/useFloating.js +28 -28
- package/dist/composables/usePageVisibility.js +19 -0
- package/dist/composables/usePopupSurface.js +153 -162
- package/dist/composables/usePopupSurfaceInteractions.js +91 -90
- 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 +229 -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/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/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/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/toastPresentation.d.ts +1 -1
- 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/popupSurfaceStyle.d.ts +7 -0
- package/dist/types/composables/table.d.ts +10 -1
- package/dist/types/composables/toastQueue.d.ts +4 -4
- package/dist/types/composables/toastQueueModel.d.ts +2 -2
- 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/usePageVisibility.d.ts +1 -0
- package/dist/types/composables/usePopupSurface.d.ts +9 -3
- package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
- 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 +30 -2
- 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,17 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ChevronUp as
|
|
3
|
-
import { useHysRootAttrs as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
|
|
1
|
+
import { defineComponent as Ve, useId as Ee, ref as f, computed as d, watch as V, onMounted as Be, onActivated as Me, onDeactivated as Ae, onBeforeUnmount as $e, openBlock as E, createBlock as le, mergeProps as be, createSlots as De, withCtx as ie, renderSlot as z, normalizeProps as k, guardReactiveProps as w, createElementBlock as O, unref as te, createElementVNode as N, resolveDynamicComponent as he, createCommentVNode as se, nextTick as G } from "vue";
|
|
2
|
+
import { ChevronUp as Ne, ChevronRight as ye, ChevronLeft as Pe, ChevronDown as Fe } from "lucide-vue-next";
|
|
3
|
+
import { useHysRootAttrs as He } from "../../config.js";
|
|
4
|
+
import { paneRatio as Ie, paneEpsilon as Ke } from "../../composables/splitPaneSizes.js";
|
|
5
|
+
import { useSplitPaneDrag as Te } from "../../composables/useSplitPaneDrag.js";
|
|
6
|
+
import { useSplitPaneStorage as qe } from "../../composables/useSplitPaneStorage.js";
|
|
7
|
+
import Ue from "../../internal/MultiSplitPane.vue.js";
|
|
8
|
+
import { splitIsVertical as We, splitSnapThreshold as je, splitSnapCandidates as Oe, constrainSplitSize as Ge } from "./splitPaneResize.js";
|
|
9
|
+
const Je = ["data-layout"], Qe = ["inert"], Xe = ["tabindex", "aria-label", "aria-controls", "aria-disabled", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "data-resizing", "aria-keyshortcuts"], Ye = {
|
|
8
10
|
class: "hys-ui-splitter-grip",
|
|
9
11
|
"aria-hidden": "true"
|
|
10
|
-
},
|
|
12
|
+
}, Ze = ["aria-label", "aria-expanded", "data-collapsed", "disabled"], _e = ["aria-label", "aria-expanded", "data-collapsed", "disabled"], ea = ["inert"], aa = {
|
|
11
13
|
key: 0,
|
|
12
14
|
class: "hys-ui-splitter-preview",
|
|
13
15
|
"aria-hidden": "true"
|
|
14
|
-
},
|
|
16
|
+
}, da = /* @__PURE__ */ Ve({
|
|
15
17
|
__name: "HysSplitPane",
|
|
16
18
|
props: {
|
|
17
19
|
modelValue: {},
|
|
@@ -20,6 +22,10 @@ const Le = ["inert"], Me = ["tabindex", "aria-label", "aria-controls", "aria-dis
|
|
|
20
22
|
max: { default: 85 },
|
|
21
23
|
vertical: { type: Boolean },
|
|
22
24
|
layout: {},
|
|
25
|
+
responsiveBreakpoint: {},
|
|
26
|
+
resizeMode: { default: "adjacent" },
|
|
27
|
+
snapThreshold: { default: 12 },
|
|
28
|
+
cancelBehavior: { default: "keep" },
|
|
23
29
|
disabled: { type: Boolean },
|
|
24
30
|
step: { default: 2 },
|
|
25
31
|
lazy: { type: Boolean },
|
|
@@ -34,295 +40,370 @@ const Le = ["inert"], Me = ["tabindex", "aria-label", "aria-controls", "aria-dis
|
|
|
34
40
|
firstLabel: { default: "前面板" },
|
|
35
41
|
secondLabel: { default: "后面板" }
|
|
36
42
|
},
|
|
37
|
-
emits: ["update:modelValue", "resizeStart", "resize", "resizeEnd", "collapse", "update:sizes", "panelResizeStart", "panelResize", "panelResizeEnd", "panelCollapse"],
|
|
38
|
-
setup(
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
() =>
|
|
42
|
-
|
|
43
|
+
emits: ["update:modelValue", "resizeStart", "resize", "resizeEnd", "collapse", "update:sizes", "panelResizeStart", "panelResize", "panelResizeEnd", "panelCollapse", "layoutChange"],
|
|
44
|
+
setup(s, { expose: ge, emit: ze }) {
|
|
45
|
+
const l = s, u = ze, ke = He(), ne = Ee(), J = ne + "-first", Q = ne + "-second", F = f(), B = f(), oe = f(), re = f(), y = f(), p = f(0), X = f(0), M = f(!1), H = f(), T = f(), q = f(!1), U = d(() => Number.isFinite(l.dividerSize) ? Math.max(1, Math.min(48, l.dividerSize)) : 6);
|
|
46
|
+
qe(
|
|
47
|
+
() => l.panels === void 0 && l.modelValue === void 0 && l.storageKey ? l.storageKey + ":ratio" : void 0,
|
|
48
|
+
T,
|
|
43
49
|
(e) => typeof e == "number" && Number.isFinite(e) ? e : void 0
|
|
44
50
|
);
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
})
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
const ue = d(() => l.layout ? l.layout === "vertical" : !!l.vertical), v = d(() => We(ue.value, X.value, l.responsiveBreakpoint)), Y = d(() => v.value ? "vertical" : "horizontal");
|
|
52
|
+
V(Y, (e) => {
|
|
53
|
+
l.panels === void 0 && u("layoutChange", e);
|
|
54
|
+
});
|
|
55
|
+
const C = d(() => {
|
|
56
|
+
var e, a;
|
|
57
|
+
return !l.disabled && ((e = l.firstPanel) == null ? void 0 : e.resizable) !== !1 && ((a = l.secondPanel) == null ? void 0 : a.resizable) !== !1;
|
|
58
|
+
}), W = (e, a) => Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : a;
|
|
59
|
+
function j(e, a) {
|
|
60
|
+
if (e === void 0) return a;
|
|
51
61
|
const i = typeof e == "number" ? e : Number.parseFloat(e);
|
|
52
|
-
return typeof e == "string" && e.endsWith("%") ?
|
|
62
|
+
return typeof e == "string" && e.endsWith("%") ? W(i, a) : p.value > 0 ? W(i / p.value * 100, a) : a;
|
|
53
63
|
}
|
|
54
|
-
const
|
|
55
|
-
var e,
|
|
64
|
+
const S = d(() => {
|
|
65
|
+
var e, a;
|
|
56
66
|
return Math.max(
|
|
57
|
-
|
|
58
|
-
100 -
|
|
67
|
+
j((e = l.firstPanel) == null ? void 0 : e.min, W(l.min, 0)),
|
|
68
|
+
100 - j((a = l.secondPanel) == null ? void 0 : a.max, 100)
|
|
59
69
|
);
|
|
60
70
|
}), I = d(() => {
|
|
61
|
-
var e,
|
|
62
|
-
return Math.max(
|
|
63
|
-
|
|
64
|
-
100 -
|
|
71
|
+
var e, a;
|
|
72
|
+
return Math.max(S.value, Math.min(
|
|
73
|
+
j((e = l.firstPanel) == null ? void 0 : e.max, W(l.max, 100)),
|
|
74
|
+
100 - j((a = l.secondPanel) == null ? void 0 : a.min, 0)
|
|
65
75
|
));
|
|
66
76
|
});
|
|
67
|
-
function
|
|
68
|
-
return Math.min(I.value, Math.max(
|
|
77
|
+
function A(e) {
|
|
78
|
+
return Math.min(I.value, Math.max(S.value, Number.isFinite(e) ? e : S.value));
|
|
69
79
|
}
|
|
70
80
|
const o = d(() => {
|
|
71
|
-
var
|
|
72
|
-
const e =
|
|
73
|
-
return e === 0 && ((
|
|
74
|
-
}),
|
|
81
|
+
var a, i;
|
|
82
|
+
const e = l.modelValue ?? T.value ?? l.defaultValue;
|
|
83
|
+
return e === 0 && ((a = l.firstPanel) != null && a.collapsible) || e === 100 && ((i = l.secondPanel) != null && i.collapsible) ? e : A(e);
|
|
84
|
+
}), R = d(
|
|
75
85
|
() => o.value === 0 ? "first" : o.value === 100 ? "second" : void 0
|
|
76
86
|
);
|
|
77
|
-
let
|
|
78
|
-
|
|
79
|
-
e > 0 && e < 100 && (
|
|
80
|
-
}, { flush: "sync" }),
|
|
81
|
-
|
|
87
|
+
let de = o.value > 0 && o.value < 100 ? o.value : A(l.defaultValue);
|
|
88
|
+
V(o, (e) => {
|
|
89
|
+
e > 0 && e < 100 && (de = e);
|
|
90
|
+
}, { flush: "sync" }), V(R, (e, a) => {
|
|
91
|
+
l.panels === void 0 && (a && u("collapse", a, !1), e && u("collapse", e, !0));
|
|
82
92
|
});
|
|
83
|
-
function
|
|
84
|
-
e !== o.value && (
|
|
93
|
+
function $(e) {
|
|
94
|
+
e !== o.value && (l.modelValue === void 0 && (T.value = e), u("update:modelValue", e));
|
|
95
|
+
}
|
|
96
|
+
async function Z(e, a) {
|
|
97
|
+
if (l.panels !== void 0) return !1;
|
|
98
|
+
const i = e === "first" ? l.firstPanel : l.secondPanel;
|
|
99
|
+
if (l.disabled || !(i != null && i.collapsible) || R.value === e === a) return !1;
|
|
100
|
+
const t = a ? e === "first" ? 0 : 100 : A(de);
|
|
101
|
+
return c.finish(!0), $(t), await G(), R.value === e === a;
|
|
102
|
+
}
|
|
103
|
+
function x(e) {
|
|
104
|
+
return Z(e, R.value !== e);
|
|
105
|
+
}
|
|
106
|
+
function _(e) {
|
|
107
|
+
return e === "first" || e === "second";
|
|
108
|
+
}
|
|
109
|
+
async function we(e, a, i) {
|
|
110
|
+
var g;
|
|
111
|
+
if (l.panels !== void 0) return ((g = y.value) == null ? void 0 : g.resizePane(e, a, i)) ?? !1;
|
|
112
|
+
if (!_(e) || i !== void 0 && i !== 0) return !1;
|
|
113
|
+
const t = Ie(a, p.value);
|
|
114
|
+
if (t === void 0 || l.disabled) return !1;
|
|
115
|
+
const r = e === "first" ? l.firstPanel : l.secondPanel;
|
|
116
|
+
if (t === 0 && (r != null && r.collapsible)) return Z(e, !0);
|
|
117
|
+
if (!C.value) return !1;
|
|
118
|
+
const m = o.value;
|
|
119
|
+
return c.finish(!0), $(A(e === "first" ? t : 100 - t)), await G(), Math.abs(m - o.value) > Ke;
|
|
85
120
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
if (a.disabled || !(l != null && l.collapsible)) return !1;
|
|
90
|
-
const i = x.value, n = i === e ? R(ee) : e === "first" ? 0 : 100;
|
|
91
|
-
return c.finish(!0), U(n), await Z(), i !== x.value;
|
|
121
|
+
function ve(e, a, i) {
|
|
122
|
+
var t;
|
|
123
|
+
return l.panels !== void 0 ? ((t = y.value) == null ? void 0 : t.setPaneCollapsed(e, a, i)) ?? Promise.resolve(!1) : _(e) && (i === void 0 || i === 0) ? Z(e, a) : Promise.resolve(!1);
|
|
92
124
|
}
|
|
93
|
-
const
|
|
94
|
-
collapsed:
|
|
95
|
-
toggle: () =>
|
|
96
|
-
})),
|
|
97
|
-
collapsed:
|
|
98
|
-
toggle: () =>
|
|
99
|
-
})),
|
|
125
|
+
const b = d(() => ({
|
|
126
|
+
collapsed: R.value === "first",
|
|
127
|
+
toggle: () => x("first")
|
|
128
|
+
})), h = d(() => ({
|
|
129
|
+
collapsed: R.value === "second",
|
|
130
|
+
toggle: () => x("second")
|
|
131
|
+
})), ce = d(() => v.value ? Ne : M.value ? ye : Pe), fe = d(() => v.value ? Fe : M.value ? Pe : ye), Ce = d(() => ({
|
|
100
132
|
separator: 0,
|
|
101
133
|
before: "first",
|
|
102
134
|
after: "second",
|
|
103
|
-
vertical:
|
|
104
|
-
disabled: !
|
|
105
|
-
resizing:
|
|
135
|
+
vertical: v.value,
|
|
136
|
+
disabled: !C.value,
|
|
137
|
+
resizing: q.value
|
|
106
138
|
}));
|
|
107
|
-
async function
|
|
108
|
-
var i,
|
|
109
|
-
if (
|
|
110
|
-
if (
|
|
139
|
+
async function pe() {
|
|
140
|
+
var i, t, r;
|
|
141
|
+
if (l.disabled) return !1;
|
|
142
|
+
if (l.panels !== void 0) return ((i = y.value) == null ? void 0 : i.resetSizes()) ?? !1;
|
|
111
143
|
c.finish(!0);
|
|
112
|
-
const e =
|
|
113
|
-
return
|
|
114
|
-
}
|
|
115
|
-
function te() {
|
|
116
|
-
var l, i, n;
|
|
117
|
-
const e = x.value;
|
|
118
|
-
if (e && ((l = e === "first" ? a.firstPanel : a.secondPanel) != null && l.collapsible))
|
|
119
|
-
return V(e);
|
|
120
|
-
if ((i = a.firstPanel) != null && i.collapsible) return V("first");
|
|
121
|
-
if ((n = a.secondPanel) != null && n.collapsible) return V("second");
|
|
144
|
+
const e = l.defaultValue, a = e === 0 && ((t = l.firstPanel) != null && t.collapsible) || e === 100 && ((r = l.secondPanel) != null && r.collapsible) ? e : A(e);
|
|
145
|
+
return l.modelValue === void 0 && (T.value = void 0), l.modelValue !== a && u("update:modelValue", a), await G(), o.value === a;
|
|
122
146
|
}
|
|
123
147
|
function me() {
|
|
124
|
-
|
|
148
|
+
var a, i, t;
|
|
149
|
+
const e = R.value;
|
|
150
|
+
if (e && ((a = e === "first" ? l.firstPanel : l.secondPanel) != null && a.collapsible))
|
|
151
|
+
return x(e);
|
|
152
|
+
if ((i = l.firstPanel) != null && i.collapsible) return x("first");
|
|
153
|
+
if ((t = l.secondPanel) != null && t.collapsible) return x("second");
|
|
154
|
+
}
|
|
155
|
+
function Se() {
|
|
156
|
+
l.doubleClickAction === "reset" ? pe() : l.doubleClickAction === "collapse" && me();
|
|
125
157
|
}
|
|
126
|
-
let
|
|
127
|
-
function
|
|
128
|
-
if (
|
|
129
|
-
const e =
|
|
130
|
-
|
|
158
|
+
let P;
|
|
159
|
+
function D() {
|
|
160
|
+
if (!F.value || !B.value) return;
|
|
161
|
+
const e = F.value, a = e.getBoundingClientRect();
|
|
162
|
+
X.value = e.clientWidth || a.width;
|
|
163
|
+
const i = v.value ? e.clientHeight || a.height : X.value, t = v.value ? B.value.offsetHeight : B.value.offsetWidth;
|
|
164
|
+
p.value = Math.max(0, i - (t || U.value)), M.value = getComputedStyle(e).direction === "rtl";
|
|
131
165
|
}
|
|
132
|
-
function
|
|
133
|
-
|
|
166
|
+
function ee() {
|
|
167
|
+
if (!(P || !F.value || !B.value)) {
|
|
168
|
+
if (D(), typeof ResizeObserver != "function") {
|
|
169
|
+
window.addEventListener("resize", D);
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
P = new ResizeObserver(D), P.observe(F.value), P.observe(B.value);
|
|
173
|
+
}
|
|
134
174
|
}
|
|
135
|
-
|
|
175
|
+
let L;
|
|
176
|
+
const c = Te(
|
|
136
177
|
(e) => {
|
|
137
|
-
|
|
178
|
+
l.lazy ? H.value = e : (L && (L.requested = e), $(e)), u("resize", e);
|
|
138
179
|
},
|
|
139
|
-
(e,
|
|
140
|
-
|
|
180
|
+
(e, a, i, t) => {
|
|
181
|
+
const r = L;
|
|
182
|
+
L = void 0, q.value = !1, !a && l.lazy && $(e), a && t && !l.lazy && l.cancelBehavior === "restore" && r && o.value === r.requested && $(r.initial), H.value = void 0, i && G(() => u("resizeEnd", o.value, { cancelled: a }));
|
|
141
183
|
}
|
|
142
184
|
);
|
|
143
|
-
function
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
185
|
+
function Re(e) {
|
|
186
|
+
var m, g;
|
|
187
|
+
if (!C.value || c.active() || e.button !== 0) return;
|
|
188
|
+
D();
|
|
189
|
+
const a = o.value, i = { min: S.value, max: I.value }, t = je(l.snapThreshold, p.value), r = t > 0 ? Oe(a, a, 100 - a, p.value, (m = l.firstPanel) == null ? void 0 : m.snapPoints, (g = l.secondPanel) == null ? void 0 : g.snapPoints) : [];
|
|
190
|
+
c.start(e, {
|
|
191
|
+
vertical: v.value,
|
|
192
|
+
direction: !v.value && M.value ? -1 : 1,
|
|
193
|
+
available: p.value,
|
|
194
|
+
initial: a,
|
|
195
|
+
constrain: (K) => Ge(r.length ? K : Math.round(K), i, r, t)
|
|
196
|
+
}) && (L = { initial: a, requested: a }, q.value = !0, l.lazy && (H.value = o.value), u("resizeStart"));
|
|
151
197
|
}
|
|
152
|
-
function
|
|
153
|
-
var
|
|
154
|
-
if (e.key === "Enter" && !
|
|
155
|
-
e.preventDefault(),
|
|
198
|
+
function xe(e) {
|
|
199
|
+
var r, m;
|
|
200
|
+
if (e.key === "Enter" && !l.disabled && !c.active() && ((r = l.firstPanel) != null && r.collapsible || (m = l.secondPanel) != null && m.collapsible)) {
|
|
201
|
+
e.preventDefault(), me();
|
|
156
202
|
return;
|
|
157
203
|
}
|
|
158
|
-
if (!
|
|
204
|
+
if (!C.value || c.active() || !["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Home", "End"].includes(e.key)) return;
|
|
159
205
|
e.preventDefault();
|
|
160
|
-
const
|
|
161
|
-
|
|
206
|
+
const a = (Number.isFinite(l.step) && l.step > 0 ? l.step : 2) * (e.shiftKey ? 5 : 1), i = e.key === "ArrowDown" || e.key === (M.value && !v.value ? "ArrowLeft" : "ArrowRight"), t = e.key === "Home" ? S.value : e.key === "End" ? I.value : A(o.value + (i ? a : -a));
|
|
207
|
+
$(t);
|
|
162
208
|
}
|
|
163
|
-
function
|
|
164
|
-
c.finish(!0, !1),
|
|
209
|
+
function ae() {
|
|
210
|
+
c.finish(!0, !1), P == null || P.disconnect(), P = void 0, typeof window < "u" && window.removeEventListener("resize", D);
|
|
165
211
|
}
|
|
166
|
-
return
|
|
167
|
-
[
|
|
212
|
+
return V(
|
|
213
|
+
[
|
|
214
|
+
C,
|
|
215
|
+
v,
|
|
216
|
+
S,
|
|
217
|
+
I,
|
|
218
|
+
p,
|
|
219
|
+
M,
|
|
220
|
+
() => l.lazy,
|
|
221
|
+
() => l.snapThreshold,
|
|
222
|
+
() => {
|
|
223
|
+
var e;
|
|
224
|
+
return (e = l.firstPanel) == null ? void 0 : e.snapPoints;
|
|
225
|
+
},
|
|
226
|
+
() => {
|
|
227
|
+
var e;
|
|
228
|
+
return (e = l.secondPanel) == null ? void 0 : e.snapPoints;
|
|
229
|
+
}
|
|
230
|
+
],
|
|
168
231
|
() => c.finish(!0),
|
|
169
232
|
{ flush: "sync" }
|
|
170
|
-
),
|
|
171
|
-
e
|
|
172
|
-
}, { flush: "
|
|
173
|
-
|
|
174
|
-
|
|
233
|
+
), V(o, (e) => {
|
|
234
|
+
L && e !== L.requested && c.finish(!0);
|
|
235
|
+
}, { flush: "sync" }), V([v, U], D, { flush: "post" }), V(() => l.panels !== void 0, (e) => {
|
|
236
|
+
e ? ae() : ee();
|
|
237
|
+
}, { flush: "post" }), Be(ee), Me(ee), Ae(ae), $e(ae), ge({
|
|
238
|
+
togglePanel: x,
|
|
239
|
+
togglePane: (e, a) => {
|
|
175
240
|
var i;
|
|
176
|
-
return ((i =
|
|
241
|
+
return l.panels !== void 0 ? ((i = y.value) == null ? void 0 : i.togglePane(e, a)) ?? Promise.resolve(!1) : _(e) && (a === void 0 || a === 0) ? x(e) : Promise.resolve(!1);
|
|
177
242
|
},
|
|
243
|
+
collapsePane: (e, a) => ve(e, !0, a),
|
|
244
|
+
expandPane: (e, a) => ve(e, !1, a),
|
|
178
245
|
getPanelSizes: () => {
|
|
179
246
|
var e;
|
|
180
|
-
return ((e =
|
|
247
|
+
return l.panels !== void 0 ? ((e = y.value) == null ? void 0 : e.getPanelSizes()) ?? {} : {
|
|
248
|
+
first: p.value * o.value / 100,
|
|
249
|
+
second: p.value * (100 - o.value) / 100
|
|
250
|
+
};
|
|
181
251
|
},
|
|
182
252
|
getPaneElement: (e) => {
|
|
183
|
-
var
|
|
184
|
-
return
|
|
253
|
+
var a;
|
|
254
|
+
return l.panels !== void 0 ? (a = y.value) == null ? void 0 : a.getPaneElement(e) : e === "first" ? oe.value : e === "second" ? re.value : void 0;
|
|
185
255
|
},
|
|
186
|
-
|
|
187
|
-
var
|
|
188
|
-
return ((
|
|
256
|
+
getLayout: () => {
|
|
257
|
+
var e;
|
|
258
|
+
return ((e = y.value) == null ? void 0 : e.getLayout()) ?? Y.value;
|
|
189
259
|
},
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
260
|
+
resizePane: we,
|
|
261
|
+
resetSizes: pe
|
|
262
|
+
}), (e, a) => {
|
|
263
|
+
var i, t, r, m, g, K;
|
|
264
|
+
return s.panels !== void 0 ? (E(), le(Ue, be({
|
|
194
265
|
key: 0,
|
|
195
266
|
ref_key: "multi",
|
|
196
|
-
ref:
|
|
197
|
-
panels:
|
|
198
|
-
sizes:
|
|
199
|
-
vertical:
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
"
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
"
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
267
|
+
ref: y,
|
|
268
|
+
panels: s.panels,
|
|
269
|
+
sizes: s.sizes,
|
|
270
|
+
vertical: ue.value,
|
|
271
|
+
"responsive-breakpoint": s.responsiveBreakpoint,
|
|
272
|
+
"resize-mode": s.resizeMode,
|
|
273
|
+
"snap-threshold": s.snapThreshold,
|
|
274
|
+
"cancel-behavior": s.cancelBehavior,
|
|
275
|
+
disabled: s.disabled,
|
|
276
|
+
lazy: s.lazy,
|
|
277
|
+
step: s.step,
|
|
278
|
+
"storage-key": s.storageKey,
|
|
279
|
+
"divider-size": U.value,
|
|
280
|
+
"double-click-action": s.doubleClickAction
|
|
281
|
+
}, { ariaLabel: s.ariaLabel }, {
|
|
282
|
+
"onUpdate:sizes": a[0] || (a[0] = (n) => u("update:sizes", n)),
|
|
283
|
+
onPanelResizeStart: a[1] || (a[1] = (n) => u("panelResizeStart", n)),
|
|
284
|
+
onPanelResize: a[2] || (a[2] = (n) => u("panelResize", n)),
|
|
285
|
+
onPanelResizeEnd: a[3] || (a[3] = (n) => u("panelResizeEnd", n)),
|
|
286
|
+
onPanelCollapse: a[4] || (a[4] = (n, Le) => u("panelCollapse", n, Le)),
|
|
287
|
+
onLayoutChange: a[5] || (a[5] = (n) => u("layoutChange", n))
|
|
288
|
+
}), De({ _: 2 }, [
|
|
213
289
|
e.$slots.panel ? {
|
|
214
290
|
name: "panel",
|
|
215
|
-
fn:
|
|
216
|
-
|
|
291
|
+
fn: ie((n) => [
|
|
292
|
+
z(e.$slots, "panel", k(w(n)))
|
|
217
293
|
]),
|
|
218
294
|
key: "0"
|
|
219
295
|
} : void 0,
|
|
220
296
|
e.$slots["panel-collapse"] ? {
|
|
221
297
|
name: "panel-collapse",
|
|
222
|
-
fn:
|
|
223
|
-
|
|
298
|
+
fn: ie((n) => [
|
|
299
|
+
z(e.$slots, "panel-collapse", k(w(n)))
|
|
224
300
|
]),
|
|
225
301
|
key: "1"
|
|
226
302
|
} : void 0,
|
|
227
303
|
e.$slots.handle ? {
|
|
228
304
|
name: "handle",
|
|
229
|
-
fn:
|
|
230
|
-
|
|
305
|
+
fn: ie((n) => [
|
|
306
|
+
z(e.$slots, "handle", k(w(n)))
|
|
231
307
|
]),
|
|
232
308
|
key: "2"
|
|
233
309
|
} : void 0
|
|
234
|
-
]), 1040, ["panels", "sizes", "vertical", "disabled", "lazy", "step", "storage-key", "divider-size", "double-click-action"])) : (
|
|
310
|
+
]), 1040, ["panels", "sizes", "vertical", "responsive-breakpoint", "resize-mode", "snap-threshold", "cancel-behavior", "disabled", "lazy", "step", "storage-key", "divider-size", "double-click-action"])) : (E(), O("div", be({ key: 1 }, te(ke), {
|
|
235
311
|
ref_key: "host",
|
|
236
|
-
ref:
|
|
237
|
-
class: ["hys-ui-ent-split", { "hys-ui-vertical":
|
|
312
|
+
ref: F,
|
|
313
|
+
class: ["hys-ui-ent-split", { "hys-ui-vertical": v.value }],
|
|
314
|
+
"data-layout": Y.value,
|
|
238
315
|
style: {
|
|
239
|
-
"--hys-ui-splitter-size":
|
|
316
|
+
"--hys-ui-splitter-size": U.value + "px",
|
|
240
317
|
"--hys-ui-split-ratio": o.value / 100,
|
|
241
|
-
"--hys-ui-split-preview": (
|
|
318
|
+
"--hys-ui-split-preview": (H.value ?? 0) / 100
|
|
242
319
|
}
|
|
243
320
|
}), [
|
|
244
|
-
|
|
245
|
-
id:
|
|
321
|
+
N("div", {
|
|
322
|
+
id: J,
|
|
323
|
+
ref_key: "firstPane",
|
|
324
|
+
ref: oe,
|
|
246
325
|
class: "hys-ui-ent-split-first",
|
|
247
|
-
inert:
|
|
326
|
+
inert: b.value.collapsed
|
|
248
327
|
}, [
|
|
249
|
-
|
|
250
|
-
], 8,
|
|
251
|
-
|
|
328
|
+
z(e.$slots, "first", k(w(b.value)))
|
|
329
|
+
], 8, Qe),
|
|
330
|
+
N("div", {
|
|
252
331
|
ref_key: "bar",
|
|
253
|
-
ref:
|
|
332
|
+
ref: B,
|
|
254
333
|
class: "hys-ui-splitter-bar"
|
|
255
334
|
}, [
|
|
256
|
-
|
|
335
|
+
N("div", {
|
|
257
336
|
class: "hys-ui-ent-split-handle",
|
|
258
337
|
role: "separator",
|
|
259
|
-
tabindex:
|
|
260
|
-
"aria-label":
|
|
261
|
-
"aria-controls": `${
|
|
262
|
-
"aria-disabled": !
|
|
263
|
-
"aria-orientation":
|
|
338
|
+
tabindex: C.value ? 0 : -1,
|
|
339
|
+
"aria-label": s.ariaLabel,
|
|
340
|
+
"aria-controls": `${J} ${Q}`,
|
|
341
|
+
"aria-disabled": !C.value || void 0,
|
|
342
|
+
"aria-orientation": v.value ? "horizontal" : "vertical",
|
|
264
343
|
"aria-valuenow": o.value,
|
|
265
|
-
"aria-valuemin": (i =
|
|
266
|
-
"aria-valuemax": (
|
|
267
|
-
"data-resizing":
|
|
268
|
-
"aria-keyshortcuts": (
|
|
269
|
-
onPointerdown:
|
|
270
|
-
onLostpointercapture:
|
|
271
|
-
(...
|
|
272
|
-
onKeydown:
|
|
273
|
-
onDblclick:
|
|
344
|
+
"aria-valuemin": (i = s.firstPanel) != null && i.collapsible ? 0 : S.value,
|
|
345
|
+
"aria-valuemax": (t = s.secondPanel) != null && t.collapsible ? 100 : I.value,
|
|
346
|
+
"data-resizing": q.value || void 0,
|
|
347
|
+
"aria-keyshortcuts": (r = s.firstPanel) != null && r.collapsible || (m = s.secondPanel) != null && m.collapsible ? "Enter" : void 0,
|
|
348
|
+
onPointerdown: Re,
|
|
349
|
+
onLostpointercapture: a[6] || (a[6] = //@ts-ignore
|
|
350
|
+
(...n) => te(c).cancel && te(c).cancel(...n)),
|
|
351
|
+
onKeydown: xe,
|
|
352
|
+
onDblclick: Se
|
|
274
353
|
}, [
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
354
|
+
N("span", Ye, [
|
|
355
|
+
z(e.$slots, "handle", k(w(Ce.value)), () => [
|
|
356
|
+
a[9] || (a[9] = N("span", { class: "hys-ui-splitter-dots" }, null, -1))
|
|
278
357
|
])
|
|
279
358
|
])
|
|
280
|
-
], 40,
|
|
281
|
-
(
|
|
359
|
+
], 40, Xe),
|
|
360
|
+
(g = s.firstPanel) != null && g.collapsible ? (E(), O("button", {
|
|
282
361
|
key: 0,
|
|
283
362
|
class: "hys-ui-splitter-toggle hys-ui-splitter-toggle-first",
|
|
284
363
|
type: "button",
|
|
285
|
-
"aria-label": (
|
|
286
|
-
"aria-controls":
|
|
287
|
-
"aria-expanded": !
|
|
288
|
-
"data-collapsed":
|
|
289
|
-
disabled:
|
|
290
|
-
onClick:
|
|
291
|
-
(...
|
|
364
|
+
"aria-label": (b.value.collapsed ? "展开" : "折叠") + s.firstLabel,
|
|
365
|
+
"aria-controls": J,
|
|
366
|
+
"aria-expanded": !b.value.collapsed,
|
|
367
|
+
"data-collapsed": b.value.collapsed || void 0,
|
|
368
|
+
disabled: s.disabled,
|
|
369
|
+
onClick: a[7] || (a[7] = //@ts-ignore
|
|
370
|
+
(...n) => b.value.toggle && b.value.toggle(...n))
|
|
292
371
|
}, [
|
|
293
|
-
|
|
294
|
-
(
|
|
372
|
+
z(e.$slots, "first-collapse", k(w(b.value)), () => [
|
|
373
|
+
(E(), le(he(b.value.collapsed ? fe.value : ce.value), { size: 13 }))
|
|
295
374
|
])
|
|
296
|
-
], 8,
|
|
297
|
-
(
|
|
375
|
+
], 8, Ze)) : se("", !0),
|
|
376
|
+
(K = s.secondPanel) != null && K.collapsible ? (E(), O("button", {
|
|
298
377
|
key: 1,
|
|
299
378
|
class: "hys-ui-splitter-toggle hys-ui-splitter-toggle-second",
|
|
300
379
|
type: "button",
|
|
301
|
-
"aria-label": (
|
|
302
|
-
"aria-controls":
|
|
303
|
-
"aria-expanded": !
|
|
304
|
-
"data-collapsed":
|
|
305
|
-
disabled:
|
|
306
|
-
onClick:
|
|
307
|
-
(...
|
|
380
|
+
"aria-label": (h.value.collapsed ? "展开" : "折叠") + s.secondLabel,
|
|
381
|
+
"aria-controls": Q,
|
|
382
|
+
"aria-expanded": !h.value.collapsed,
|
|
383
|
+
"data-collapsed": h.value.collapsed || void 0,
|
|
384
|
+
disabled: s.disabled,
|
|
385
|
+
onClick: a[8] || (a[8] = //@ts-ignore
|
|
386
|
+
(...n) => h.value.toggle && h.value.toggle(...n))
|
|
308
387
|
}, [
|
|
309
|
-
|
|
310
|
-
(
|
|
388
|
+
z(e.$slots, "second-collapse", k(w(h.value)), () => [
|
|
389
|
+
(E(), le(he(h.value.collapsed ? ce.value : fe.value), { size: 13 }))
|
|
311
390
|
])
|
|
312
|
-
], 8,
|
|
391
|
+
], 8, _e)) : se("", !0)
|
|
313
392
|
], 512),
|
|
314
|
-
|
|
315
|
-
id:
|
|
393
|
+
N("div", {
|
|
394
|
+
id: Q,
|
|
395
|
+
ref_key: "secondPane",
|
|
396
|
+
ref: re,
|
|
316
397
|
class: "hys-ui-ent-split-second",
|
|
317
|
-
inert:
|
|
398
|
+
inert: h.value.collapsed
|
|
318
399
|
}, [
|
|
319
|
-
|
|
320
|
-
], 8,
|
|
321
|
-
|
|
322
|
-
], 16));
|
|
400
|
+
z(e.$slots, "second", k(w(h.value)))
|
|
401
|
+
], 8, ea),
|
|
402
|
+
H.value !== void 0 ? (E(), O("div", aa)) : se("", !0)
|
|
403
|
+
], 16, Je));
|
|
323
404
|
};
|
|
324
405
|
}
|
|
325
406
|
});
|
|
326
407
|
export {
|
|
327
|
-
|
|
408
|
+
da as default
|
|
328
409
|
};
|