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