hys-ui 0.6.0 → 0.8.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 (268) hide show
  1. package/CHANGELOG.md +15 -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/HysDatePicker/HysDatePicker.vue.js +102 -48
  9. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
  10. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +874 -532
  11. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +2 -2
  12. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +209 -168
  13. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +102 -48
  14. package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
  15. package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
  16. package/dist/components/HysForm/HysForm2.vue.js +9 -8
  17. package/dist/components/HysIcon/HysIcon.vue.js +373 -0
  18. package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
  19. package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
  20. package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
  21. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
  22. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
  23. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
  24. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
  25. package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
  26. package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
  27. package/dist/components/HysIcon/builtins/access.js +180 -0
  28. package/dist/components/HysIcon/builtins/actions.js +327 -0
  29. package/dist/components/HysIcon/builtins/business.js +364 -0
  30. package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
  31. package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
  32. package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
  33. package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
  34. package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
  35. package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
  36. package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
  37. package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
  38. package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
  39. package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
  40. package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
  41. package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
  42. package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
  43. package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
  44. package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
  45. package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
  46. package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
  47. package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
  48. package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
  49. package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
  50. package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
  51. package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
  52. package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
  53. package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
  54. package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
  55. package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
  56. package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
  57. package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
  58. package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
  59. package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
  60. package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
  61. package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
  62. package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
  63. package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
  64. package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
  65. package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
  66. package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
  67. package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
  68. package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
  69. package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
  70. package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
  71. package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
  72. package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
  73. package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
  74. package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
  75. package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
  76. package/dist/components/HysIcon/builtins/communication.js +314 -0
  77. package/dist/components/HysIcon/builtins/documents.js +315 -0
  78. package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
  79. package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
  80. package/dist/components/HysIcon/builtins/media.js +255 -0
  81. package/dist/components/HysIcon/builtins/navigation.js +276 -0
  82. package/dist/components/HysIcon/builtins/technology.js +189 -0
  83. package/dist/components/HysIcon/iconBuiltins.js +228 -0
  84. package/dist/components/HysIcon/iconConfig.js +30 -0
  85. package/dist/components/HysIcon/iconRegistry.js +183 -0
  86. package/dist/components/HysIcon/iconSafety.js +191 -0
  87. package/dist/components/HysIcon/iconStyle.js +70 -0
  88. package/dist/components/HysIcon/useIconResource.js +75 -0
  89. package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
  90. package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
  91. package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
  92. package/dist/components/HysResult/HysResult.vue.js +7 -0
  93. package/dist/components/HysResult/HysResult2.vue.js +124 -0
  94. package/dist/components/HysSpace/HysSpace.vue.js +7 -0
  95. package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
  96. package/dist/components/HysSpace/spaceItems.js +17 -0
  97. package/dist/components/HysSpin/HysSpin.vue.js +7 -0
  98. package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
  99. package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
  100. package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
  101. package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
  102. package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
  103. package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
  104. package/dist/components/HysSpin/spinCatalog.js +35 -0
  105. package/dist/components/HysSpin/spinConfig.js +32 -0
  106. package/dist/components/HysSpin/spinService.js +160 -0
  107. package/dist/components/HysSpin/spinStyle.js +39 -0
  108. package/dist/components/HysSpin/useHysSpinTask.js +92 -0
  109. package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
  110. package/dist/components/HysSpin/useSpinVisibility.js +59 -0
  111. package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
  112. package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
  113. package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
  114. package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
  115. package/dist/components/HysTable/HysTable.vue.js +3 -3
  116. package/dist/components/HysTable/HysTable2.vue.js +412 -383
  117. package/dist/components/HysTable/tableSearch.js +24 -0
  118. package/dist/components/HysTabs/HysTabs.vue.js +172 -5
  119. package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
  120. package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
  121. package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
  122. package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
  123. package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
  124. package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
  125. package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
  126. package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
  127. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
  128. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
  129. package/dist/components/HysTabs/tabsConfig.js +35 -0
  130. package/dist/components/HysTabs/tabsItems.js +79 -0
  131. package/dist/components/HysTabs/tabsPersistence.js +118 -0
  132. package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
  133. package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
  134. package/dist/components/HysTabs/useTabsNav.js +127 -0
  135. package/dist/components/HysTabs/useTabsOverlays.js +52 -0
  136. package/dist/components/HysTabs/useTabsPanels.js +101 -0
  137. package/dist/components/HysTabs/useTabsPointer.js +131 -0
  138. package/dist/components/HysTabs/useTabsState.js +263 -0
  139. package/dist/composables/datePicker.js +153 -94
  140. package/dist/composables/datePickerModel.js +156 -0
  141. package/dist/composables/datePickerPanels.js +78 -0
  142. package/dist/composables/datePickerRules.js +166 -0
  143. package/dist/composables/floatingPosition.js +32 -13
  144. package/dist/composables/formLayout.js +20 -42
  145. package/dist/composables/popupSurfaceStyle.js +30 -0
  146. package/dist/composables/useContainerWidth.js +24 -0
  147. package/dist/composables/useDatePicker.js +274 -381
  148. package/dist/composables/useFloating.js +42 -41
  149. package/dist/composables/usePageVisibility.js +19 -0
  150. package/dist/composables/usePopupSurface.js +153 -162
  151. package/dist/composables/usePopupSurfaceInteractions.js +91 -90
  152. package/dist/composables/useSplitPaneDrag.js +29 -26
  153. package/dist/composables/useSvgInstanceId.js +15 -0
  154. package/dist/composables/useTable.js +321 -306
  155. package/dist/composables/useTabularRowNavigation.js +46 -0
  156. package/dist/index.js +229 -185
  157. package/dist/internal/MultiSplitPane.vue.js +246 -205
  158. package/dist/internal/PopupSurfacePanel.vue.js +2 -2
  159. package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
  160. package/dist/style.css +1 -1
  161. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
  162. package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
  163. package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
  164. package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
  165. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +6 -9
  166. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +12 -0
  167. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +6 -0
  168. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +6 -9
  169. package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
  170. package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
  171. package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
  172. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  173. package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
  174. package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
  175. package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
  176. package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
  177. package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
  178. package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
  179. package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
  180. package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
  181. package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
  182. package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
  183. package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
  184. package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
  185. package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
  186. package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
  187. package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
  188. package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
  189. package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
  190. package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
  191. package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
  192. package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
  193. package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
  194. package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
  195. package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
  196. package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
  197. package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
  198. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  199. package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
  200. package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
  201. package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
  202. package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
  203. package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
  204. package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
  205. package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
  206. package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
  207. package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
  208. package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
  209. package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
  210. package/dist/types/components/HysSpin/spinService.d.ts +7 -0
  211. package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
  212. package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
  213. package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
  214. package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
  215. package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
  216. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
  217. package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
  218. package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
  219. package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
  220. package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
  221. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
  222. package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
  223. package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
  224. package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
  225. package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
  226. package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
  227. package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
  228. package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
  229. package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
  230. package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
  231. package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
  232. package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
  233. package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
  234. package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
  235. package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
  236. package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
  237. package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
  238. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
  239. package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
  240. package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
  241. package/dist/types/composables/dataGrid.d.ts +34 -0
  242. package/dist/types/composables/datePicker.d.ts +14 -214
  243. package/dist/types/composables/datePickerModel.d.ts +63 -0
  244. package/dist/types/composables/datePickerPanels.d.ts +23 -0
  245. package/dist/types/composables/datePickerRules.d.ts +31 -0
  246. package/dist/types/composables/datePickerTypes.d.ts +277 -0
  247. package/dist/types/composables/floatingPosition.d.ts +1 -1
  248. package/dist/types/composables/formLayout.d.ts +1 -2
  249. package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
  250. package/dist/types/composables/table.d.ts +10 -1
  251. package/dist/types/composables/toastQueue.d.ts +4 -4
  252. package/dist/types/composables/toastQueueModel.d.ts +2 -2
  253. package/dist/types/composables/useColorPicker.d.ts +2 -4
  254. package/dist/types/composables/useContainerWidth.d.ts +2 -0
  255. package/dist/types/composables/useContextMenu.d.ts +2 -4
  256. package/dist/types/composables/useDatePicker.d.ts +20 -11
  257. package/dist/types/composables/useFloating.d.ts +4 -5
  258. package/dist/types/composables/usePageVisibility.d.ts +1 -0
  259. package/dist/types/composables/usePopupSurface.d.ts +9 -3
  260. package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
  261. package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
  262. package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
  263. package/dist/types/composables/useTable.d.ts +2 -0
  264. package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
  265. package/dist/types/index.d.ts +31 -3
  266. package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
  267. package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
  268. package/package.json +1 -1
@@ -1,17 +1,19 @@
1
- import { defineComponent as ze, useId as he, ref as b, computed as d, watch as B, onMounted as Pe, onActivated as ke, onDeactivated as we, onBeforeUnmount as Se, openBlock as h, createBlock as J, mergeProps as oe, createSlots as Ce, withCtx as Q, renderSlot as y, normalizeProps as g, guardReactiveProps as z, createElementBlock as j, unref as X, createElementVNode as A, resolveDynamicComponent as re, createCommentVNode as Y, nextTick as Z } from "vue";
2
- import { ChevronUp as Re, ChevronRight as ue, ChevronLeft as de, ChevronDown as xe } from "lucide-vue-next";
3
- import { useHysRootAttrs as Ve } from "../../config.js";
4
- import { useSplitPaneDrag as Ae } from "../../composables/useSplitPaneDrag.js";
5
- import { useSplitPaneStorage as $e } from "../../composables/useSplitPaneStorage.js";
6
- import Ee from "../../internal/MultiSplitPane.vue.js";
7
- const Le = ["inert"], Me = ["tabindex", "aria-label", "aria-controls", "aria-disabled", "aria-orientation", "aria-valuenow", "aria-valuemin", "aria-valuemax", "data-resizing", "aria-keyshortcuts"], Be = {
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
- }, De = ["aria-label", "aria-expanded", "data-collapsed", "disabled"], Ne = ["aria-label", "aria-expanded", "data-collapsed", "disabled"], Fe = ["inert"], He = {
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
- }, Te = /* @__PURE__ */ ze({
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(t, { expose: ce, emit: ve }) {
39
- const a = t, u = ve, fe = Ve(), _ = he(), O = _ + "-first", T = _ + "-second", $ = b(), P = b(), k = b(), E = b(0), w = b(!1), L = b(), D = b(), N = b(!1), F = d(() => Number.isFinite(a.dividerSize) ? Math.max(1, Math.min(48, a.dividerSize)) : 6);
40
- $e(
41
- () => a.panels === void 0 && a.modelValue === void 0 && a.storageKey ? a.storageKey + ":ratio" : void 0,
42
- D,
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 r = d(() => a.layout ? a.layout === "vertical" : a.vertical), S = d(() => {
46
- var e, l;
47
- return !a.disabled && ((e = a.firstPanel) == null ? void 0 : e.resizable) !== !1 && ((l = a.secondPanel) == null ? void 0 : l.resizable) !== !1;
48
- }), H = (e, l) => Number.isFinite(e) ? Math.min(100, Math.max(0, e)) : l;
49
- function K(e, l) {
50
- if (e === void 0) return l;
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("%") ? H(i, l) : E.value > 0 ? H(i / E.value * 100, l) : l;
62
+ return typeof e == "string" && e.endsWith("%") ? W(i, a) : p.value > 0 ? W(i / p.value * 100, a) : a;
53
63
  }
54
- const C = d(() => {
55
- var e, l;
64
+ const S = d(() => {
65
+ var e, a;
56
66
  return Math.max(
57
- K((e = a.firstPanel) == null ? void 0 : e.min, H(a.min, 0)),
58
- 100 - K((l = a.secondPanel) == null ? void 0 : l.max, 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, l;
62
- return Math.max(C.value, Math.min(
63
- K((e = a.firstPanel) == null ? void 0 : e.max, H(a.max, 100)),
64
- 100 - K((l = a.secondPanel) == null ? void 0 : l.min, 0)
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 R(e) {
68
- return Math.min(I.value, Math.max(C.value, Number.isFinite(e) ? e : C.value));
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 l, i;
72
- const e = a.modelValue ?? D.value ?? a.defaultValue;
73
- return e === 0 && ((l = a.firstPanel) != null && l.collapsible) || e === 100 && ((i = a.secondPanel) != null && i.collapsible) ? e : R(e);
74
- }), x = d(
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 ee = o.value > 0 && o.value < 100 ? o.value : R(a.defaultValue);
78
- B(o, (e) => {
79
- e > 0 && e < 100 && (ee = e);
80
- }, { flush: "sync" }), B(x, (e, l) => {
81
- a.panels === void 0 && (l && u("collapse", l, !1), e && u("collapse", e, !0));
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 U(e) {
84
- e !== o.value && (a.modelValue === void 0 && (D.value = e), u("update:modelValue", e));
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
- async function V(e) {
87
- if (a.panels !== void 0) return !1;
88
- const l = e === "first" ? a.firstPanel : a.secondPanel;
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 v = d(() => ({
94
- collapsed: x.value === "first",
95
- toggle: () => V("first")
96
- })), f = d(() => ({
97
- collapsed: x.value === "second",
98
- toggle: () => V("second")
99
- })), le = d(() => r.value ? Re : w.value ? ue : de), ae = d(() => r.value ? xe : w.value ? de : ue), pe = d(() => ({
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: r.value,
104
- disabled: !S.value,
105
- resizing: N.value
135
+ vertical: v.value,
136
+ disabled: !C.value,
137
+ resizing: q.value
106
138
  }));
107
- async function ie() {
108
- var i, n, m;
109
- if (a.disabled) return !1;
110
- if (a.panels !== void 0) return ((i = k.value) == null ? void 0 : i.resetSizes()) ?? !1;
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 = a.defaultValue, l = e === 0 && ((n = a.firstPanel) != null && n.collapsible) || e === 100 && ((m = a.secondPanel) != null && m.collapsible) ? e : R(e);
113
- return a.modelValue === void 0 && (D.value = void 0), a.modelValue !== l && u("update:modelValue", l), await Z(), o.value === l;
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
- a.doubleClickAction === "reset" ? ie() : a.doubleClickAction === "collapse" && te();
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 p;
127
- function W() {
128
- if (!$.value || !P.value) return;
129
- const e = $.value, l = e.getBoundingClientRect(), i = r.value ? e.clientHeight || l.height : e.clientWidth || l.width, n = r.value ? P.value.offsetHeight : P.value.offsetWidth;
130
- E.value = Math.max(0, i - (n || F.value)), w.value = getComputedStyle(e).direction === "rtl";
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 q() {
133
- p || !$.value || !P.value || (W(), typeof ResizeObserver == "function" && (p = new ResizeObserver(W), p.observe($.value), p.observe(P.value)));
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
- const c = Ae(
175
+ let L;
176
+ const c = Te(
136
177
  (e) => {
137
- a.lazy ? L.value = e : U(e), u("resize", e);
178
+ l.lazy ? H.value = e : (L && (L.requested = e), $(e)), u("resize", e);
138
179
  },
139
- (e, l, i) => {
140
- N.value = !1, !l && a.lazy && U(e), L.value = void 0, i && Z(() => u("resizeEnd", o.value, { cancelled: l }));
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 be(e) {
144
- !S.value || c.active() || e.button !== 0 || (W(), c.start(e, {
145
- vertical: r.value,
146
- direction: !r.value && w.value ? -1 : 1,
147
- available: E.value,
148
- initial: o.value,
149
- constrain: (l) => R(Math.round(l))
150
- }) && (N.value = !0, a.lazy && (L.value = o.value), u("resizeStart")));
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 ye(e) {
153
- var m, M;
154
- if (e.key === "Enter" && !a.disabled && !c.active() && ((m = a.firstPanel) != null && m.collapsible || (M = a.secondPanel) != null && M.collapsible)) {
155
- e.preventDefault(), te();
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 (!S.value || c.active() || !["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Home", "End"].includes(e.key)) return;
204
+ if (!C.value || c.active() || !["ArrowLeft", "ArrowUp", "ArrowRight", "ArrowDown", "Home", "End"].includes(e.key)) return;
159
205
  e.preventDefault();
160
- const l = (Number.isFinite(a.step) && a.step > 0 ? a.step : 2) * (e.shiftKey ? 5 : 1), i = e.key === "ArrowDown" || e.key === (w.value && !r.value ? "ArrowLeft" : "ArrowRight"), n = e.key === "Home" ? C.value : e.key === "End" ? I.value : R(o.value + (i ? l : -l));
161
- U(n);
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 G() {
164
- c.finish(!0, !1), p == null || p.disconnect(), p = void 0;
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 B(
167
- [S, r, C, I, E, w, () => a.lazy],
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
- ), B([r, F], W, { flush: "post" }), B(() => a.panels !== void 0, (e) => {
171
- e ? G() : q();
172
- }, { flush: "post" }), Pe(q), ke(q), we(G), Se(G), ce({
173
- togglePanel: V,
174
- togglePane: (e, l) => {
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 = k.value) == null ? void 0 : i.togglePane(e, l)) ?? Promise.resolve(!1);
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 = k.value) == null ? void 0 : e.getPanelSizes()) ?? {};
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 l;
184
- return (l = k.value) == null ? void 0 : l.getPaneElement(e);
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
- resizePane: (e, l, i) => {
187
- var n;
188
- return ((n = k.value) == null ? void 0 : n.resizePane(e, l, i)) ?? Promise.resolve(!1);
256
+ getLayout: () => {
257
+ var e;
258
+ return ((e = y.value) == null ? void 0 : e.getLayout()) ?? Y.value;
189
259
  },
190
- resetSizes: ie
191
- }), (e, l) => {
192
- var i, n, m, M, se, ne;
193
- return t.panels !== void 0 ? (h(), J(Ee, oe({
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: k,
197
- panels: t.panels,
198
- sizes: t.sizes,
199
- vertical: r.value,
200
- disabled: t.disabled,
201
- lazy: t.lazy,
202
- step: t.step,
203
- "storage-key": t.storageKey,
204
- "divider-size": F.value,
205
- "double-click-action": t.doubleClickAction
206
- }, { ariaLabel: t.ariaLabel }, {
207
- "onUpdate:sizes": l[0] || (l[0] = (s) => u("update:sizes", s)),
208
- onPanelResizeStart: l[1] || (l[1] = (s) => u("panelResizeStart", s)),
209
- onPanelResize: l[2] || (l[2] = (s) => u("panelResize", s)),
210
- onPanelResizeEnd: l[3] || (l[3] = (s) => u("panelResizeEnd", s)),
211
- onPanelCollapse: l[4] || (l[4] = (s, ge) => u("panelCollapse", s, ge))
212
- }), Ce({ _: 2 }, [
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: Q((s) => [
216
- y(e.$slots, "panel", g(z(s)))
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: Q((s) => [
223
- y(e.$slots, "panel-collapse", g(z(s)))
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: Q((s) => [
230
- y(e.$slots, "handle", g(z(s)))
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"])) : (h(), j("div", oe({ key: 1 }, X(fe), {
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": r.value }],
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": F.value + "px",
316
+ "--hys-ui-splitter-size": U.value + "px",
240
317
  "--hys-ui-split-ratio": o.value / 100,
241
- "--hys-ui-split-preview": (L.value ?? 0) / 100
318
+ "--hys-ui-split-preview": (H.value ?? 0) / 100
242
319
  }
243
320
  }), [
244
- A("div", {
245
- id: O,
321
+ N("div", {
322
+ id: J,
323
+ ref_key: "firstPane",
324
+ ref: oe,
246
325
  class: "hys-ui-ent-split-first",
247
- inert: v.value.collapsed
326
+ inert: b.value.collapsed
248
327
  }, [
249
- y(e.$slots, "first", g(z(v.value)))
250
- ], 8, Le),
251
- A("div", {
328
+ z(e.$slots, "first", k(w(b.value)))
329
+ ], 8, Qe),
330
+ N("div", {
252
331
  ref_key: "bar",
253
- ref: P,
332
+ ref: B,
254
333
  class: "hys-ui-splitter-bar"
255
334
  }, [
256
- A("div", {
335
+ N("div", {
257
336
  class: "hys-ui-ent-split-handle",
258
337
  role: "separator",
259
- tabindex: S.value ? 0 : -1,
260
- "aria-label": t.ariaLabel,
261
- "aria-controls": `${O} ${T}`,
262
- "aria-disabled": !S.value || void 0,
263
- "aria-orientation": r.value ? "horizontal" : "vertical",
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 = t.firstPanel) != null && i.collapsible ? 0 : C.value,
266
- "aria-valuemax": (n = t.secondPanel) != null && n.collapsible ? 100 : I.value,
267
- "data-resizing": N.value || void 0,
268
- "aria-keyshortcuts": (m = t.firstPanel) != null && m.collapsible || (M = t.secondPanel) != null && M.collapsible ? "Enter" : void 0,
269
- onPointerdown: be,
270
- onLostpointercapture: l[5] || (l[5] = //@ts-ignore
271
- (...s) => X(c).cancel && X(c).cancel(...s)),
272
- onKeydown: ye,
273
- onDblclick: me
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
- A("span", Be, [
276
- y(e.$slots, "handle", g(z(pe.value)), () => [
277
- l[8] || (l[8] = A("span", { class: "hys-ui-splitter-dots" }, null, -1))
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, Me),
281
- (se = t.firstPanel) != null && se.collapsible ? (h(), j("button", {
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": (v.value.collapsed ? "展开" : "折叠") + t.firstLabel,
286
- "aria-controls": O,
287
- "aria-expanded": !v.value.collapsed,
288
- "data-collapsed": v.value.collapsed || void 0,
289
- disabled: t.disabled,
290
- onClick: l[6] || (l[6] = //@ts-ignore
291
- (...s) => v.value.toggle && v.value.toggle(...s))
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
- y(e.$slots, "first-collapse", g(z(v.value)), () => [
294
- (h(), J(re(v.value.collapsed ? ae.value : le.value), { size: 13 }))
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, De)) : Y("", !0),
297
- (ne = t.secondPanel) != null && ne.collapsible ? (h(), j("button", {
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": (f.value.collapsed ? "展开" : "折叠") + t.secondLabel,
302
- "aria-controls": T,
303
- "aria-expanded": !f.value.collapsed,
304
- "data-collapsed": f.value.collapsed || void 0,
305
- disabled: t.disabled,
306
- onClick: l[7] || (l[7] = //@ts-ignore
307
- (...s) => f.value.toggle && f.value.toggle(...s))
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
- y(e.$slots, "second-collapse", g(z(f.value)), () => [
310
- (h(), J(re(f.value.collapsed ? le.value : ae.value), { size: 13 }))
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, Ne)) : Y("", !0)
391
+ ], 8, _e)) : se("", !0)
313
392
  ], 512),
314
- A("div", {
315
- id: T,
393
+ N("div", {
394
+ id: Q,
395
+ ref_key: "secondPane",
396
+ ref: re,
316
397
  class: "hys-ui-ent-split-second",
317
- inert: f.value.collapsed
398
+ inert: h.value.collapsed
318
399
  }, [
319
- y(e.$slots, "second", g(z(f.value)))
320
- ], 8, Fe),
321
- L.value !== void 0 ? (h(), j("div", He)) : Y("", !0)
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
- Te as default
408
+ da as default
328
409
  };