hys-ui 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (299) hide show
  1. package/CHANGELOG.md +16 -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/HysDrawer/HysDrawer.vue.js +1 -1
  11. package/dist/components/HysDrawer/HysDrawer2.vue.js +2 -2
  12. package/dist/components/HysForm/HysForm2.vue.js +9 -8
  13. package/dist/components/HysIcon/HysIcon.vue.js +373 -0
  14. package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
  15. package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
  16. package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
  17. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
  18. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
  19. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
  20. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
  21. package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
  22. package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
  23. package/dist/components/HysIcon/builtins/access.js +180 -0
  24. package/dist/components/HysIcon/builtins/actions.js +327 -0
  25. package/dist/components/HysIcon/builtins/business.js +364 -0
  26. package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
  27. package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
  28. package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
  29. package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
  30. package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
  31. package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
  32. package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
  33. package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
  34. package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
  35. package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
  36. package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
  37. package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
  38. package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
  39. package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
  40. package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
  41. package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
  42. package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
  43. package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
  44. package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
  45. package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
  46. package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
  47. package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
  48. package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
  49. package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
  50. package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
  51. package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
  52. package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
  53. package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
  54. package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
  55. package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
  56. package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
  57. package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
  58. package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
  59. package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
  60. package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
  61. package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
  62. package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
  63. package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
  64. package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
  65. package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
  66. package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
  67. package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
  68. package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
  69. package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
  70. package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
  71. package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
  72. package/dist/components/HysIcon/builtins/communication.js +314 -0
  73. package/dist/components/HysIcon/builtins/documents.js +315 -0
  74. package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
  75. package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
  76. package/dist/components/HysIcon/builtins/media.js +255 -0
  77. package/dist/components/HysIcon/builtins/navigation.js +276 -0
  78. package/dist/components/HysIcon/builtins/technology.js +189 -0
  79. package/dist/components/HysIcon/iconBuiltins.js +228 -0
  80. package/dist/components/HysIcon/iconConfig.js +30 -0
  81. package/dist/components/HysIcon/iconRegistry.js +183 -0
  82. package/dist/components/HysIcon/iconSafety.js +191 -0
  83. package/dist/components/HysIcon/iconStyle.js +70 -0
  84. package/dist/components/HysIcon/useIconResource.js +75 -0
  85. package/dist/components/HysModal/HysModal.vue.js +2 -2
  86. package/dist/components/HysModal/HysModal2.vue.js +38 -38
  87. package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
  88. package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
  89. package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
  90. package/dist/components/HysResult/HysResult.vue.js +7 -0
  91. package/dist/components/HysResult/HysResult2.vue.js +124 -0
  92. package/dist/components/HysSearch/HysSearch.vue.js +2 -2
  93. package/dist/components/HysSortableList/HysSortableList.vue.js +2 -2
  94. package/dist/components/HysSortableList/HysSortableList2.vue.js +498 -129
  95. package/dist/components/HysSortableList/SortableGhost/SortableGhost.vue.js +7 -0
  96. package/dist/components/HysSortableList/SortableGhost/SortableGhost2.vue.js +43 -0
  97. package/dist/components/HysSortableList/SortableGhost/useSortGhost.js +54 -0
  98. package/dist/components/HysSortableList/geometry.js +230 -0
  99. package/dist/components/HysSortableList/model.js +254 -0
  100. package/dist/components/HysSortableList/transactions.js +281 -0
  101. package/dist/components/HysSortableList/useSortDrag.js +270 -0
  102. package/dist/components/HysSortableList/useSortKeyboard.js +72 -0
  103. package/dist/components/HysSortableList/useSortWindow.js +144 -0
  104. package/dist/components/HysSpace/HysSpace.vue.js +7 -0
  105. package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
  106. package/dist/components/HysSpace/spaceItems.js +17 -0
  107. package/dist/components/HysSpin/HysSpin.vue.js +7 -0
  108. package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
  109. package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
  110. package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
  111. package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
  112. package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
  113. package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
  114. package/dist/components/HysSpin/spinCatalog.js +35 -0
  115. package/dist/components/HysSpin/spinConfig.js +32 -0
  116. package/dist/components/HysSpin/spinService.js +160 -0
  117. package/dist/components/HysSpin/spinStyle.js +39 -0
  118. package/dist/components/HysSpin/useHysSpinTask.js +92 -0
  119. package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
  120. package/dist/components/HysSpin/useSpinVisibility.js +59 -0
  121. package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
  122. package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
  123. package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
  124. package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
  125. package/dist/components/HysTable/HysTable.vue.js +3 -3
  126. package/dist/components/HysTable/HysTable2.vue.js +412 -383
  127. package/dist/components/HysTable/tableSearch.js +24 -0
  128. package/dist/components/HysTabs/HysTabs.vue.js +172 -5
  129. package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
  130. package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
  131. package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
  132. package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
  133. package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
  134. package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
  135. package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
  136. package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
  137. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
  138. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
  139. package/dist/components/HysTabs/tabsConfig.js +35 -0
  140. package/dist/components/HysTabs/tabsItems.js +79 -0
  141. package/dist/components/HysTabs/tabsPersistence.js +118 -0
  142. package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
  143. package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
  144. package/dist/components/HysTabs/useTabsNav.js +127 -0
  145. package/dist/components/HysTabs/useTabsOverlays.js +52 -0
  146. package/dist/components/HysTabs/useTabsPanels.js +101 -0
  147. package/dist/components/HysTabs/useTabsPointer.js +131 -0
  148. package/dist/components/HysTabs/useTabsState.js +263 -0
  149. package/dist/components/HysToast/HysToast.vue.js +3 -3
  150. package/dist/components/HysToast/HysToast2.vue.js +379 -107
  151. package/dist/components/HysToast/ToastViewport/ToastViewport.vue.js +7 -0
  152. package/dist/components/HysToast/ToastViewport/ToastViewport2.vue.js +211 -0
  153. package/dist/components/HysToast/ToastViewport/useToastStackDisclosure.js +71 -0
  154. package/dist/components/HysToast/toastPresentation.js +98 -0
  155. package/dist/components/HysToast/useToastActions.js +62 -0
  156. package/dist/components/HysToast/useToastSwipe.js +48 -0
  157. package/dist/components/HysToast/useToastTimer.js +90 -0
  158. package/dist/composables/formLayout.js +20 -42
  159. package/dist/composables/popupReferenceBinding.js +41 -0
  160. package/dist/composables/popupSurfaceStyle.js +30 -0
  161. package/dist/composables/toastEscape.js +18 -10
  162. package/dist/composables/toastQueue.js +276 -0
  163. package/dist/composables/toastQueueModel.js +86 -0
  164. package/dist/composables/toastTasks.js +58 -0
  165. package/dist/composables/useContainerWidth.js +24 -0
  166. package/dist/composables/useFloating.js +28 -28
  167. package/dist/composables/useHysToast.js +117 -135
  168. package/dist/composables/usePageVisibility.js +19 -0
  169. package/dist/composables/usePopupSurface.js +181 -356
  170. package/dist/composables/usePopupSurfaceInteractions.js +173 -0
  171. package/dist/composables/useSplitPaneDrag.js +29 -26
  172. package/dist/composables/useSvgInstanceId.js +15 -0
  173. package/dist/composables/useTable.js +321 -306
  174. package/dist/composables/useTabularRowNavigation.js +46 -0
  175. package/dist/index.js +231 -185
  176. package/dist/internal/MultiSplitPane.vue.js +246 -205
  177. package/dist/internal/PopupSurfacePanel.vue.js +2 -2
  178. package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
  179. package/dist/style.css +1 -1
  180. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
  181. package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
  182. package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
  183. package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
  184. package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
  185. package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
  186. package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
  187. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  188. package/dist/types/components/HysGantt/HysGantt.vue.d.ts +1 -1
  189. package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
  190. package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
  191. package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
  192. package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
  193. package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
  194. package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
  195. package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
  196. package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
  197. package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
  198. package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
  199. package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
  200. package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
  201. package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
  202. package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
  203. package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
  204. package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
  205. package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
  206. package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
  207. package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
  208. package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
  209. package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
  210. package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
  211. package/dist/types/components/HysModal/HysModal.vue.d.ts +1 -1
  212. package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
  213. package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
  214. package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
  215. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  216. package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
  217. package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
  218. package/dist/types/components/HysSortableList/HysSortableList.vue.d.ts +48 -25
  219. package/dist/types/components/HysSortableList/SortableGhost/SortableGhost.vue.d.ts +31 -0
  220. package/dist/types/components/HysSortableList/SortableGhost/useSortGhost.d.ts +23 -0
  221. package/dist/types/components/HysSortableList/geometry.d.ts +35 -0
  222. package/dist/types/components/HysSortableList/model.d.ts +61 -0
  223. package/dist/types/components/HysSortableList/sortableList.d.ts +151 -0
  224. package/dist/types/components/HysSortableList/transactions.d.ts +10 -0
  225. package/dist/types/components/HysSortableList/useSortDrag.d.ts +25 -0
  226. package/dist/types/components/HysSortableList/useSortKeyboard.d.ts +17 -0
  227. package/dist/types/components/HysSortableList/useSortWindow.d.ts +16 -0
  228. package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
  229. package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
  230. package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
  231. package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
  232. package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
  233. package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
  234. package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
  235. package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
  236. package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
  237. package/dist/types/components/HysSpin/spinService.d.ts +7 -0
  238. package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
  239. package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
  240. package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
  241. package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
  242. package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
  243. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
  244. package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
  245. package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
  246. package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
  247. package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
  248. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
  249. package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
  250. package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
  251. package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
  252. package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
  253. package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
  254. package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
  255. package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
  256. package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
  257. package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
  258. package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
  259. package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
  260. package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
  261. package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
  262. package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
  263. package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
  264. package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
  265. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
  266. package/dist/types/components/HysToast/HysToast.vue.d.ts +44 -46
  267. package/dist/types/components/HysToast/ToastViewport/ToastViewport.vue.d.ts +25 -0
  268. package/dist/types/components/HysToast/ToastViewport/useToastStackDisclosure.d.ts +16 -0
  269. package/dist/types/components/HysToast/toastPresentation.d.ts +8 -0
  270. package/dist/types/components/HysToast/toastTypes.d.ts +212 -0
  271. package/dist/types/components/HysToast/useToastActions.d.ts +18 -0
  272. package/dist/types/components/HysToast/useToastSwipe.d.ts +11 -0
  273. package/dist/types/components/HysToast/useToastTimer.d.ts +22 -0
  274. package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
  275. package/dist/types/composables/dataGrid.d.ts +34 -0
  276. package/dist/types/composables/formLayout.d.ts +1 -2
  277. package/dist/types/composables/popupReferenceBinding.d.ts +9 -0
  278. package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
  279. package/dist/types/composables/table.d.ts +10 -1
  280. package/dist/types/composables/toastEscape.d.ts +1 -1
  281. package/dist/types/composables/toastQueue.d.ts +121 -0
  282. package/dist/types/composables/toastQueueModel.d.ts +116 -0
  283. package/dist/types/composables/toastTasks.d.ts +2 -0
  284. package/dist/types/composables/useColorPicker.d.ts +1 -1
  285. package/dist/types/composables/useContainerWidth.d.ts +2 -0
  286. package/dist/types/composables/useContextMenu.d.ts +1 -1
  287. package/dist/types/composables/useFloating.d.ts +2 -2
  288. package/dist/types/composables/useHysToast.d.ts +4 -48
  289. package/dist/types/composables/usePageVisibility.d.ts +1 -0
  290. package/dist/types/composables/usePopupSurface.d.ts +28 -22
  291. package/dist/types/composables/usePopupSurfaceInteractions.d.ts +35 -0
  292. package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
  293. package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
  294. package/dist/types/composables/useTable.d.ts +2 -0
  295. package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
  296. package/dist/types/index.d.ts +33 -6
  297. package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
  298. package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
  299. package/package.json +1 -1
@@ -0,0 +1,131 @@
1
+ import { ref as F, onDeactivated as Z, onBeforeUnmount as _ } from "vue";
2
+ import { bounded as H, tabToken as $ } from "./tabsItems.js";
3
+ import { useTabsDragGhost as V } from "./useTabsDragGhost.js";
4
+ function ot(l, c, k, M, L, D, j, q, z) {
5
+ const m = V(), h = F(), f = F();
6
+ let s, y, P, X, v = !1, p = !1;
7
+ function w() {
8
+ clearTimeout(P), P = void 0;
9
+ }
10
+ function T() {
11
+ clearTimeout(X), v = !1;
12
+ }
13
+ function Y() {
14
+ T(), v = !0, X = setTimeout(() => {
15
+ v = !1;
16
+ }, 450);
17
+ }
18
+ function A(t) {
19
+ v && (t.preventDefault(), t.stopImmediatePropagation(), T());
20
+ }
21
+ function J(t) {
22
+ if (l().disabled || !t.isPrimary || t.button !== 0) return;
23
+ T();
24
+ const e = t.target, i = e.closest(".hys-ui-tab-item");
25
+ if (e.closest(".hys-ui-tab-close")) return;
26
+ const o = i != null && i.dataset.tabGroup ? k(i.dataset.tabGroup) : void 0, n = !!(o && l().draggable && M(o) && (!l().dragHandle || e.closest(".hys-tab-drag-handle"))), a = !!l().dragScroll && t.pointerType !== "touch";
27
+ s = {
28
+ id: t.pointerId,
29
+ x: t.clientX,
30
+ y: t.clientY,
31
+ last: D() ? t.clientY : t.clientX,
32
+ item: o,
33
+ reorder: n,
34
+ scroll: a
35
+ };
36
+ const r = H(
37
+ l().longPress,
38
+ l().workbench || l().contextMenu ? 550 : 0,
39
+ 5e3
40
+ );
41
+ o && r && t.pointerType !== "mouse" && !e.closest(".hys-tab-drag-handle") && (P = setTimeout(() => {
42
+ (s == null ? void 0 : s.id) === t.pointerId && (s = void 0, Y(), j(o, t));
43
+ }, r));
44
+ }
45
+ function K(t) {
46
+ var B, R, S, U, E;
47
+ const e = s, i = c.nav.value;
48
+ if (!e || e.id !== t.pointerId || !i) return;
49
+ const o = t.clientX, n = t.clientY, a = D(), r = a ? n : o;
50
+ if (h.value === void 0 && !p) {
51
+ if (Math.hypot(o - e.x, n - e.y) < 7 || (w(), !e.reorder && !e.scroll)) return;
52
+ if ((B = i.setPointerCapture) == null || B.call(i, t.pointerId), e.reorder) {
53
+ const d = e.item;
54
+ h.value = d.value;
55
+ const b = (S = (R = c.button(d.value)) == null ? void 0 : R.closest(".hys-ui-tab-item")) == null ? void 0 : S.getBoundingClientRect();
56
+ b && m.show(d, b, { x: e.x, y: e.y });
57
+ } else p = !0;
58
+ }
59
+ if (t.preventDefault(), p) {
60
+ c.scrollPixels(e.last - r), e.last = r;
61
+ return;
62
+ }
63
+ m.move(o, n);
64
+ const u = i.getBoundingClientRect();
65
+ if (o < u.left - 12 || o > u.right + 12 || n < u.top - 12 || n > u.bottom + 12) {
66
+ f.value = void 0;
67
+ return;
68
+ }
69
+ const g = (U = document.elementFromPoint(o, n)) == null ? void 0 : U.closest(".hys-ui-tab-item"), C = g == null ? void 0 : g.dataset.tabGroup, x = C ? k(C) : void 0;
70
+ if (g && i.contains(g) && x && M(x) && x.value !== e.item.value) {
71
+ const d = g.getBoundingClientRect(), b = a ? (d.top + d.bottom) / 2 : (d.left + d.right) / 2;
72
+ (((E = f.value) == null ? void 0 : E.value) !== x.value || Math.abs(r - b) > 4) && (f.value = {
73
+ value: x.value,
74
+ after: a || !c.rtl() ? r > b : r < b
75
+ });
76
+ } else C !== $(e.item.value) && (f.value = void 0);
77
+ const Q = a ? u.top : u.left, W = a ? u.bottom : u.right;
78
+ r < Q + 16 ? c.scrollPixels(-8) : r > W - 16 && c.scrollPixels(8);
79
+ }
80
+ function I(t, e = !1) {
81
+ if (!s || t && s.id !== t.pointerId) return;
82
+ w();
83
+ const i = h.value, o = f.value;
84
+ if ((i !== void 0 || p) && Y(), s = void 0, h.value = void 0, f.value = void 0, p = !1, i !== void 0) {
85
+ const n = !e && o ? L(i, o.value, o.after) : void 0;
86
+ m.land(
87
+ n,
88
+ () => {
89
+ var a;
90
+ return (a = c.button(i)) == null ? void 0 : a.closest(".hys-ui-tab-item");
91
+ },
92
+ z() ? H(l().duration, 160, 5e3) : 0,
93
+ l().easing ?? "ease-out"
94
+ );
95
+ }
96
+ }
97
+ function N(t) {
98
+ l().swipe && !l().disabled && t.pointerType === "touch" && t.isPrimary && !t.target.closest(
99
+ "button,input,a,select,textarea,[contenteditable]"
100
+ ) && (y = { id: t.pointerId, x: t.clientX, y: t.clientY });
101
+ }
102
+ function O(t) {
103
+ const e = y;
104
+ if (y = void 0, !e || t.pointerId !== e.id || !l().swipe || l().disabled)
105
+ return;
106
+ const i = t.clientX - e.x, o = t.clientY - e.y;
107
+ Math.abs(i) >= 45 && Math.abs(i) > Math.abs(o) * 1.35 && q(Math.sign(i) * (c.rtl() ? 1 : -1));
108
+ }
109
+ function G() {
110
+ I(void 0, !0), w(), T(), y = void 0, m.clear();
111
+ }
112
+ return Z(G), _(G), {
113
+ dragging: h,
114
+ drop: f,
115
+ ghost: m.ghost,
116
+ ghostElement: m.element,
117
+ down: J,
118
+ motion: K,
119
+ finish: I,
120
+ cancel: (t) => I(t, !0),
121
+ clickCapture: A,
122
+ swipeDown: N,
123
+ swipeUp: O,
124
+ cancelSwipe: () => {
125
+ y = void 0;
126
+ }
127
+ };
128
+ }
129
+ export {
130
+ ot as useTabsPointer
131
+ };
@@ -0,0 +1,263 @@
1
+ import { shallowRef as z, ref as Z, computed as I, reactive as oe, watch as H, onActivated as fe, onDeactivated as se, onBeforeUnmount as ce, nextTick as k } from "vue";
2
+ import { orderedTabs as T, usable as b, bounded as ve, neighbor as de } from "./tabsItems.js";
3
+ function _(l, A) {
4
+ return new Promise((w, o) => {
5
+ const S = () => w(!1);
6
+ A.aborted ? S() : A.addEventListener("abort", S, { once: !0 }), Promise.resolve(l).then((J) => w(J !== !1), o).finally(() => A.removeEventListener("abort", S));
7
+ });
8
+ }
9
+ function he(l, A, w, o, S) {
10
+ const J = z([...l().defaultItems ?? []]), j = Z(l().defaultValue), d = I(
11
+ () => T(l().items ?? (w() ? A() : J.value))
12
+ ), g = I(() => d.value.filter((e) => !e.hidden)), u = I(
13
+ () => new Map(d.value.map((e) => [e.value, e]))
14
+ ), $ = I(
15
+ () => l().disabled ? [] : g.value.filter(b)
16
+ ), h = I(() => {
17
+ var a;
18
+ if (l().modelValue !== void 0) return l().modelValue;
19
+ const e = j.value === void 0 ? void 0 : u.value.get(j.value);
20
+ return e && b(e) ? e.value : ((a = g.value.find(b)) == null ? void 0 : a.value) ?? "";
21
+ }), R = Z(!1), B = oe(/* @__PURE__ */ new Set()), F = z([]), C = z([]), Q = I(() => ve(l().historyLimit, 20, 200));
22
+ let y, s = !0, D = 0, G = !1;
23
+ const x = /* @__PURE__ */ new Map();
24
+ function N() {
25
+ y == null || y.abort(), y = void 0, R.value = !1;
26
+ }
27
+ function K() {
28
+ N();
29
+ for (const e of x.values()) e.abort();
30
+ x.clear(), B.clear();
31
+ }
32
+ function W(e, a, t) {
33
+ j.value = e, o("update:modelValue", e), o("change", e), o("selectionChange", { value: e, previous: a, source: t });
34
+ }
35
+ async function U(e, a = "api") {
36
+ N();
37
+ const t = u.value.get(e), r = h.value;
38
+ if (!s || l().disabled || !t || !b(t)) return !1;
39
+ if (e === r) return !0;
40
+ const n = new AbortController();
41
+ y = n;
42
+ try {
43
+ const c = l().beforeLeave;
44
+ if (c && (R.value = !0, !await _(
45
+ c(e, r, { item: t, source: a, signal: n.signal }),
46
+ n.signal
47
+ )))
48
+ return s && h.value === e;
49
+ const v = u.value.get(e);
50
+ return y !== n || h.value !== r || !v || !b(v) ? s && !!v && b(v) && h.value === e : (W(e, r, a), await k(), s && h.value === e);
51
+ } catch (c) {
52
+ return y === n && o("guardError", c), !1;
53
+ } finally {
54
+ y === n && N();
55
+ }
56
+ }
57
+ const p = I(
58
+ () => JSON.stringify(g.value.map((e) => [e.value, !!e.disabled]))
59
+ );
60
+ let X = g.value.map((e) => ({ ...e }));
61
+ H(
62
+ p,
63
+ () => {
64
+ var t;
65
+ const e = X;
66
+ X = g.value.map((r) => ({ ...r }));
67
+ for (const [r, n] of x)
68
+ V(u.value.get(r)) || n.abort();
69
+ const a = l().modelValue ?? j.value;
70
+ if (a !== void 0 && e.some((r) => r.value === a && b(r)) && !g.value.some((r) => r.value === a && b(r))) {
71
+ if (l().autoActivate === !1) return;
72
+ const r = ((t = de(g.value, e, a)) == null ? void 0 : t.value) ?? "";
73
+ r !== a && W(r, a, "fallback");
74
+ }
75
+ },
76
+ { flush: "post" }
77
+ ), H(
78
+ h,
79
+ (e) => {
80
+ N();
81
+ const a = u.value.get(e);
82
+ a && b(a) && (F.value = [
83
+ e,
84
+ ...F.value.filter((t) => t !== e)
85
+ ].slice(0, Q.value));
86
+ },
87
+ { immediate: !0, flush: "sync" }
88
+ ), H(
89
+ () => l().disabled,
90
+ (e) => {
91
+ e && K();
92
+ },
93
+ { flush: "sync" }
94
+ ), fe(() => {
95
+ s = !0;
96
+ }), se(() => {
97
+ s = !1, K();
98
+ }), ce(() => {
99
+ s = !1, K();
100
+ });
101
+ function E() {
102
+ return s && !l().disabled && !l().readonly && !w();
103
+ }
104
+ function M(e) {
105
+ w() || (l().items === void 0 && (J.value = e), o("update:items", e));
106
+ }
107
+ function V(e) {
108
+ const a = l();
109
+ return !!(e && !a.disabled && !a.readonly && !e.disabled && !e.readonly && !e.pinned && (e.closable ?? (a.closable || a.editable || a.workbench)));
110
+ }
111
+ function O(e) {
112
+ return !!(e && E() && b(e) && !e.readonly && !e.pinned && e.movable !== !1);
113
+ }
114
+ async function ee(e) {
115
+ if (!s || l().disabled || l().readonly || G) return !1;
116
+ G = !0;
117
+ try {
118
+ if (o("add"), o("edit", void 0, "add"), !E()) return !0;
119
+ const a = l().createTab;
120
+ let t = e ?? (a ? await a(d.value) : void 0);
121
+ if (!t && !a && l().workbench) {
122
+ do
123
+ D++;
124
+ while (u.value.has("tab-" + D));
125
+ t = { value: "tab-" + D, label: "新建页签 " + D };
126
+ }
127
+ return t ? !E() || u.value.has(t.value) || !T([t]).length || (M(T([...d.value, t])), await k(), !s || !u.value.has(t.value)) ? !1 : (l().autoActivate !== !1 && await U(t.value), !0) : !a;
128
+ } catch (a) {
129
+ return s && o("guardError", a), !1;
130
+ } finally {
131
+ G = !1;
132
+ }
133
+ }
134
+ function ae(e, a) {
135
+ if (typeof e != "string") return [...new Set(e)];
136
+ const t = g.value, r = t.findIndex((n) => n.value === a);
137
+ return e === "current" ? [a] : e === "all" ? d.value.map((n) => n.value) : r < 0 ? [] : (e === "left" ? t.slice(0, r) : e === "right" ? t.slice(r + 1) : t.filter((n) => n.value !== a)).map((n) => n.value);
138
+ }
139
+ async function Y(e, a = h.value) {
140
+ const t = ae(e, a).map((n) => u.value.get(n)).filter(
141
+ (n) => !!n && V(n) && !x.has(n.value)
142
+ );
143
+ if (!s || !t.length) return [];
144
+ const r = new AbortController();
145
+ for (const n of t)
146
+ B.add(n.value), x.set(n.value, r);
147
+ try {
148
+ const n = t.filter((i) => i.dirty);
149
+ if (l().confirmDirty !== !1 && n.length && !await S(n, r.signal))
150
+ return [];
151
+ const c = [];
152
+ for (const i of t) {
153
+ const f = l().beforeClose;
154
+ if (r.signal.aborted) return [];
155
+ if (V(u.value.get(i.value)))
156
+ try {
157
+ (!f || await _(
158
+ f(i.value, { item: i, signal: r.signal, source: "api" }),
159
+ r.signal
160
+ )) && c.push(i.value);
161
+ } catch (ie) {
162
+ r.signal.aborted || o("guardError", ie);
163
+ }
164
+ }
165
+ if (!s || r.signal.aborted) return [];
166
+ const v = c.filter((i) => V(u.value.get(i)));
167
+ if (!v.length) return [];
168
+ const m = new Set(v), L = d.value, P = L.flatMap(
169
+ (i, f) => m.has(i.value) ? [{ item: i, index: f }] : []
170
+ );
171
+ !w() && (l().workbench || l().defaultItems !== void 0) && M(L.filter((i) => !m.has(i.value)));
172
+ for (const i of v)
173
+ o("close", i), o("edit", i, "remove");
174
+ return o("closeBatch", v), await k(), s && (C.value = [
175
+ ...P.filter((i) => !u.value.has(i.item.value)).reverse(),
176
+ ...C.value
177
+ ].slice(0, Q.value)), v;
178
+ } finally {
179
+ for (const n of t)
180
+ x.get(n.value) === r && (x.delete(n.value), B.delete(n.value));
181
+ }
182
+ }
183
+ async function q(e, a) {
184
+ const t = u.value.get(e);
185
+ if (!E() || !t || t.disabled || t.readonly) return !1;
186
+ M(
187
+ T(
188
+ d.value.map(
189
+ (n) => n.value === e ? { ...n, ...a } : n
190
+ )
191
+ )
192
+ ), await k();
193
+ const r = u.value.get(e);
194
+ return !!r && Object.entries(a).every(
195
+ ([n, c]) => r[n] === c
196
+ );
197
+ }
198
+ async function te(e, a) {
199
+ const t = a.trim();
200
+ return !t || !await q(e, { label: t }) ? !1 : (o("rename", e, t), !0);
201
+ }
202
+ async function ne(e, a = !((t) => (t = u.value.get(e)) == null ? void 0 : t.pinned)()) {
203
+ return await q(e, { pinned: a }) ? (o("pinChange", e, a), !0) : !1;
204
+ }
205
+ async function re(e, a = !((t) => (t = u.value.get(e)) == null ? void 0 : t.favorite)()) {
206
+ return await q(e, { favorite: a }) ? (o("favoriteChange", e, a), !0) : !1;
207
+ }
208
+ async function le(e, a, t = !1) {
209
+ var P, i;
210
+ if (e === a || !O(u.value.get(e)) || !O(u.value.get(a)))
211
+ return !1;
212
+ const r = [...d.value], n = r.findIndex((f) => f.value === e), c = r.findIndex((f) => f.value === a);
213
+ if (r.slice(Math.min(n, c), Math.max(n, c) + 1).some((f) => !f.hidden && !O(f)))
214
+ return !1;
215
+ const [v] = r.splice(n, 1), m = r.findIndex((f) => f.value === a) + Number(t);
216
+ if (n === m) return !1;
217
+ r.splice(m, 0, v);
218
+ const L = { value: e, from: n, to: m, items: r };
219
+ try {
220
+ if (((i = (P = l()).beforeReorder) == null ? void 0 : i.call(P, L)) === !1) return !1;
221
+ } catch (f) {
222
+ return o("guardError", f), !1;
223
+ }
224
+ return M(r), o("reorder", L), await k(), d.value.findIndex((f) => f.value === e) === m;
225
+ }
226
+ async function ue() {
227
+ if (!E()) return !1;
228
+ const e = C.value.find(
229
+ (t) => !u.value.has(t.item.value)
230
+ );
231
+ if (!e) return !1;
232
+ const a = [...d.value];
233
+ return a.splice(e.index, 0, e.item), M(T(a)), await k(), !s || !u.value.has(e.item.value) ? !1 : (C.value = C.value.filter((t) => t !== e), o("restore", e.item), l().autoActivate !== !1 && await U(e.item.value, "restore"), !0);
234
+ }
235
+ return {
236
+ all: d,
237
+ visible: g,
238
+ byKey: u,
239
+ enabled: $,
240
+ active: h,
241
+ current: j,
242
+ pending: R,
243
+ closing: B,
244
+ recent: F,
245
+ closed: C,
246
+ select: U,
247
+ add: ee,
248
+ write: M,
249
+ canClose: V,
250
+ canMove: O,
251
+ canEdit: E,
252
+ rename: te,
253
+ pin: ne,
254
+ favorite: re,
255
+ move: le,
256
+ restore: ue,
257
+ closeMany: Y,
258
+ close: async (e = h.value) => (await Y([e])).length > 0
259
+ };
260
+ }
261
+ export {
262
+ he as useTabsState
263
+ };
@@ -1,7 +1,7 @@
1
1
  import o from "./HysToast2.vue.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import t from "../../_virtual/_plugin-vue_export-helper.js";
4
- const s = /* @__PURE__ */ t(o, [["__scopeId", "data-v-eaff35fd"]]);
4
+ const f = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f72ab805"]]);
5
5
  export {
6
- s as default
6
+ f as default
7
7
  };