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,41 @@
1
+ function l(b, n, o) {
2
+ let e, i;
3
+ function s(t) {
4
+ if (!(!e || !i))
5
+ if (b === "tooltip") {
6
+ const r = t ? [i["aria-describedby"], n].filter(Boolean).join(" ") : i["aria-describedby"];
7
+ r ? e.setAttribute("aria-describedby", r) : e.removeAttribute("aria-describedby");
8
+ } else {
9
+ e.setAttribute(
10
+ "aria-haspopup",
11
+ i["aria-haspopup"] ?? "dialog"
12
+ ), e.setAttribute("aria-expanded", String(t));
13
+ const r = t ? n : i["aria-controls"];
14
+ r ? e.setAttribute("aria-controls", r) : e.removeAttribute("aria-controls");
15
+ }
16
+ }
17
+ function c() {
18
+ if (e)
19
+ for (const [t, r] of Object.entries(o))
20
+ e.removeEventListener(t, r);
21
+ if (e && i)
22
+ for (const [t, r] of Object.entries(i))
23
+ r === null ? e.removeAttribute(t) : e.setAttribute(t, r);
24
+ i = void 0, e = void 0;
25
+ }
26
+ function u(t, r) {
27
+ if (c(), !!t) {
28
+ e = t, i = Object.fromEntries(
29
+ ["aria-describedby", "aria-controls", "aria-expanded", "aria-haspopup"].map(
30
+ (a) => [a, t.getAttribute(a)]
31
+ )
32
+ ), s(r);
33
+ for (const [a, f] of Object.entries(o))
34
+ t.addEventListener(a, f);
35
+ }
36
+ }
37
+ return { attach: u, detach: c, syncAria: s };
38
+ }
39
+ export {
40
+ l as createPopupReferenceBinding
41
+ };
@@ -0,0 +1,30 @@
1
+ import { computed as o } from "vue";
2
+ function r(t) {
3
+ return typeof t != "number" ? t : Number.isFinite(t) ? Math.max(0, t) + "px" : void 0;
4
+ }
5
+ function c(t, e) {
6
+ return r(t.maxWidth) ?? (e === "tooltip" ? "320px" : "360px");
7
+ }
8
+ function m(t, e, u) {
9
+ const h = o(() => {
10
+ const i = (t.effect ?? (e === "tooltip" ? "dark" : "light")) === "dark";
11
+ return {
12
+ ...t.overlayStyle,
13
+ ...u.value,
14
+ "--hys-ui-popup-surface": t.color || (i ? "#172744" : "var(--hys-ui-surface,var(--hys-ui-theme-surface))"),
15
+ "--hys-ui-popup-color": t.textColor || (i ? "#fff" : "var(--hys-ui-text,var(--hys-ui-theme-text))"),
16
+ "--hys-ui-popup-border": t.color || (i ? "#172744" : "var(--hys-ui-border,var(--hys-ui-theme-border))"),
17
+ overflow: "visible",
18
+ maxWidth: `min(${c(t, e)},calc(100vw - 20px))`,
19
+ minWidth: t.width !== void 0 ? "0" : void 0
20
+ };
21
+ }), a = o(() => ({
22
+ ...t.contentStyle,
23
+ maxHeight: t.maxHeight !== void 0 ? `min(${r(t.maxHeight)},calc(100vh - 20px))` : "calc(100vh - 20px)"
24
+ }));
25
+ return { style: h, contentStyle: a };
26
+ }
27
+ export {
28
+ c as popupMaximumWidth,
29
+ m as usePopupSurfaceStyle
30
+ };
@@ -1,16 +1,24 @@
1
1
  const e = [];
2
- function i(t) {
3
- if (t.key !== "Escape" || t.defaultPrevented) return;
4
- const n = e.at(-1);
5
- n && (t.preventDefault(), n.close());
2
+ function c(n) {
3
+ var i;
4
+ if (n.key !== "Escape" || n.defaultPrevented) return;
5
+ const r = document.activeElement;
6
+ let t = e.at(-1);
7
+ for (let o = e.length - 1; o >= 0; o--)
8
+ if ((i = e[o].element()) != null && i.contains(r)) {
9
+ t = e[o];
10
+ break;
11
+ }
12
+ t && (n.preventDefault(), t.close(n));
6
13
  }
7
- function o(t) {
8
- const n = { close: t };
9
- return e.length || document.addEventListener("keydown", i), e.push(n), () => {
10
- const s = e.indexOf(n);
11
- s >= 0 && e.splice(s, 1), e.length || document.removeEventListener("keydown", i);
14
+ function d(n, r) {
15
+ if (typeof document > "u") return;
16
+ const t = { close: n, element: r };
17
+ return e.length || document.addEventListener("keydown", c), e.push(t), () => {
18
+ const i = e.indexOf(t);
19
+ i >= 0 && e.splice(i, 1), e.length || document.removeEventListener("keydown", c);
12
20
  };
13
21
  }
14
22
  export {
15
- o as registerToastEscape
23
+ d as registerToastEscape
16
24
  };
@@ -0,0 +1,276 @@
1
+ import { shallowRef as oe, shallowReactive as H, nextTick as J } from "vue";
2
+ import { finite as f, toastDuration as L, normalizeToastPosition as N } from "../components/HysToast/toastPresentation.js";
3
+ import { context as U, matches as V, snapshot as D, defaults as se, toastStackKey as X, asOptions as W, nextToastSequence as ie } from "./toastQueueModel.js";
4
+ import { createToastTaskRunner as ne } from "./toastTasks.js";
5
+ function de(Y, j, B) {
6
+ const l = oe({ ...Y }), a = H(/* @__PURE__ */ new Map()), c = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), q = /* @__PURE__ */ new Set();
7
+ let p = !0, K = !1, v = 0, Q = !1, A = !1;
8
+ function m(e, ...t) {
9
+ try {
10
+ e == null || e(...t);
11
+ } catch (o) {
12
+ B(o);
13
+ }
14
+ }
15
+ function k(e, t) {
16
+ e.status = t, m(e.options.onStateChange, D(e));
17
+ }
18
+ function P() {
19
+ return Math.max(1, Math.floor(f(l.value.maxCount, 5)));
20
+ }
21
+ function C(e) {
22
+ switch (l.value.queueScope) {
23
+ case "position":
24
+ return N(e.options.position);
25
+ case "type":
26
+ return e.options.type ?? "info";
27
+ case "group":
28
+ return e.options.group ?? "";
29
+ default:
30
+ return "";
31
+ }
32
+ }
33
+ function M(e, t) {
34
+ return f(t.options.priority, 0) - f(e.options.priority, 0) || (l.value.queueOrder === "lifo" ? t.serial - e.serial : e.serial - t.serial);
35
+ }
36
+ function g() {
37
+ if (!(!p || v)) {
38
+ if (Q) {
39
+ A = !0;
40
+ return;
41
+ }
42
+ Q = !0;
43
+ try {
44
+ A = !1;
45
+ const e = /* @__PURE__ */ new Map(), t = [], o = l.value.overflow === "queue";
46
+ for (const s of a.values())
47
+ if (s.status === "queued") t.push(s);
48
+ else if (s.status === "visible" || s.status === "closing" && o) {
49
+ const i = C(s);
50
+ e.set(i, (e.get(i) ?? 0) + 1);
51
+ }
52
+ for (const s of t.sort(M)) {
53
+ if (!p || s.status !== "queued") continue;
54
+ const i = C(s), u = e.get(i) ?? 0;
55
+ u >= P() || (e.set(i, u + 1), k(s, "visible"));
56
+ }
57
+ } finally {
58
+ Q = !1;
59
+ }
60
+ A && g();
61
+ }
62
+ }
63
+ function R(e, t) {
64
+ e.status === "closing" || e.status === "closed" || (e.closeContext = t, k(e, "closing"), m(e.options.onClose, t));
65
+ }
66
+ function S(e) {
67
+ if (e.status === "closed") return;
68
+ const t = e.closeContext;
69
+ a.get(e.id) === e && a.delete(e.id), c.delete(e.serial), x.delete(e.serial), q.delete(e), k(e, "closed"), e.resolve(), t && m(e.options.onAfterClose, t), g(), a.size || j.empty();
70
+ }
71
+ async function w(e, t = "api", o = !1) {
72
+ if (e.status === "closing" || e.status === "closed" || !o && q.has(e))
73
+ return;
74
+ const s = c.get(e.serial);
75
+ if (s) {
76
+ await s.close(t, void 0, o);
77
+ return;
78
+ }
79
+ const i = { ...U(e), reason: t };
80
+ if (!o && e.options.beforeClose) {
81
+ q.add(e);
82
+ try {
83
+ if (await e.options.beforeClose(i) === !1) return;
84
+ } catch {
85
+ return;
86
+ } finally {
87
+ q.delete(e);
88
+ }
89
+ if (e.status === "closed" || e.status === "closing")
90
+ return;
91
+ const u = c.get(e.serial);
92
+ if (u) {
93
+ await u.close(t, void 0, !0);
94
+ return;
95
+ }
96
+ }
97
+ R(e, i), S(e);
98
+ }
99
+ function T(e, t) {
100
+ var u;
101
+ if (!p || e.status === "closing" || e.status === "closed")
102
+ return;
103
+ const o = e.options, s = W(t), i = { ...o, ...s, id: e.id };
104
+ s.type && s.type !== o.type && !("duration" in s) && (i.duration = s.type === "loading" ? 0 : l.value.duration), i.message !== o.message || L(i) !== L(o) ? e.clock = void 0 : X(i) !== X(o) && (e.clock ?? (e.clock = (u = c.get(e.serial)) == null ? void 0 : u.snapshotClock())), e.options = i, (i.type !== o.type || i.group !== o.group || i.position !== o.position || i.priority !== o.priority) && (m(e.options.onStateChange, D(e)), g());
105
+ }
106
+ function Z(e) {
107
+ if (!(e.dedupe ?? (e.grouping ? "merge" : void 0)) || !e.dedupeKey && (!e.message || e.content !== void 0))
108
+ return;
109
+ const o = Date.now(), s = Math.max(0, f(e.dedupeWindow, 1 / 0));
110
+ return [...a.values()].find(
111
+ (i) => i.status !== "closing" && i.status !== "closed" && o - i.lastSeen <= s && i.options.group === e.group && (e.dedupeKey ? i.options.dedupeKey === e.dedupeKey : i.options.message === e.message && i.options.type === e.type && N(i.options.position) === N(e.position))
112
+ );
113
+ }
114
+ function b(e) {
115
+ var E;
116
+ const t = W(e), o = {
117
+ type: "info",
118
+ ...se(l.value),
119
+ ...t
120
+ };
121
+ o.type === "loading" && t.duration === void 0 && (o.duration = 0);
122
+ const s = t.id === void 0 ? void 0 : a.get(t.id);
123
+ if (s && s.status !== "closing" && s.status !== "closed")
124
+ return s.lastSeen = Date.now(), T(s, t), s.clock = void 0, J(() => {
125
+ var n;
126
+ return (n = c.get(s.serial)) == null ? void 0 : n.restart();
127
+ }), s.handle;
128
+ const i = Z(o);
129
+ if (i)
130
+ return i.lastSeen = Date.now(), o.dedupe !== "ignore" && (i.repeat++, T(i, t), (E = c.get(i.serial)) == null || E.restart()), i.handle;
131
+ const u = ie(), F = t.id ?? "hys-toast-" + u;
132
+ let O;
133
+ const y = new Promise((n) => {
134
+ O = n;
135
+ }), I = {
136
+ id: F,
137
+ closed: y,
138
+ close: () => {
139
+ w(d);
140
+ },
141
+ update: (n) => T(d, n),
142
+ extend: (n) => {
143
+ if (!Number.isFinite(n) || n <= 0 || !L(d.options))
144
+ return;
145
+ const r = c.get(u);
146
+ r ? r.extend(n) : d.extending += n;
147
+ },
148
+ pause: () => {
149
+ d.paused = !0;
150
+ },
151
+ resume: () => {
152
+ d.paused = !1;
153
+ }
154
+ }, d = H({
155
+ id: F,
156
+ serial: u,
157
+ options: o,
158
+ status: "queued",
159
+ repeat: 1,
160
+ paused: !1,
161
+ lastSeen: Date.now(),
162
+ extending: 0,
163
+ handle: I,
164
+ resolve: O
165
+ });
166
+ if (K || !p || typeof document > "u" || !o.message && !o.title && o.content == null && o.header == null)
167
+ return O(), I;
168
+ j.mount(), v++;
169
+ try {
170
+ (s == null ? void 0 : s.status) === "closing" && S(s), a.set(F, d);
171
+ const n = [...a.values()].filter(
172
+ (r) => r.status === "visible" && C(r) === C(d)
173
+ );
174
+ if (l.value.overflow !== "queue" && n.length >= P()) {
175
+ n.sort(
176
+ (r, G) => f(r.options.priority, 0) - f(G.options.priority, 0) || r.serial - G.serial
177
+ );
178
+ for (const r of n.slice(
179
+ 0,
180
+ n.length - P() + 1
181
+ ))
182
+ w(r, "overflow", !0);
183
+ }
184
+ k(d, "queued");
185
+ } finally {
186
+ v--;
187
+ }
188
+ g();
189
+ const ee = [...a.values()].filter((n) => n.status === "queued").sort(M), te = Math.max(
190
+ 0,
191
+ Math.floor(f(l.value.maxQueue, 1e3))
192
+ );
193
+ for (const n of ee.slice(te))
194
+ w(n, "overflow", !0);
195
+ return I;
196
+ }
197
+ function _(e, t, o) {
198
+ if (!t) {
199
+ x.get(e.serial) === o && (x.delete(e.serial), c.delete(e.serial));
200
+ return;
201
+ }
202
+ if (c.set(e.serial, t), x.set(e.serial, o), e.clock) {
203
+ const s = e.clock;
204
+ J(() => {
205
+ c.get(e.serial) !== t || e.clock !== s || (e.clock = void 0, t.restoreClock(s));
206
+ });
207
+ }
208
+ e.extending && (t.extend(e.extending), e.extending = 0);
209
+ }
210
+ async function z(e, t = !1) {
211
+ v++;
212
+ try {
213
+ await Promise.all(
214
+ [...a.values()].filter((o) => V(o, e)).map((o) => w(o, "api", t))
215
+ );
216
+ } finally {
217
+ v--, g();
218
+ }
219
+ }
220
+ function $(e = !1) {
221
+ p = !1, K || (K = e);
222
+ for (const t of [...a.values()])
223
+ R(t, { ...U(t), reason: "dispose" }), S(t);
224
+ }
225
+ const h = (e) => (t) => b({ ...W(t), type: e });
226
+ return {
227
+ api: {
228
+ show: b,
229
+ promise: ne(b, B),
230
+ success: h("success"),
231
+ info: h("info"),
232
+ warning: h("warning"),
233
+ error: h("error"),
234
+ loading: h("loading"),
235
+ close: (e) => {
236
+ const t = a.get(e);
237
+ t && w(t);
238
+ },
239
+ update: (e, t) => {
240
+ const o = a.get(e);
241
+ o && T(o, t);
242
+ },
243
+ find: (e) => {
244
+ const t = a.get(e);
245
+ return t && D(t);
246
+ },
247
+ list: (e) => [...a.values()].filter((t) => V(t, e)).sort(M).map(D),
248
+ closeAll: (e) => {
249
+ z(e);
250
+ },
251
+ closeType: (e) => {
252
+ z({ type: e });
253
+ },
254
+ clearQueue: () => {
255
+ z({ status: "queued" }, !0);
256
+ },
257
+ configure: (e) => {
258
+ l.value = { ...l.value, ...e }, g();
259
+ }
260
+ },
261
+ records: a,
262
+ settings: l,
263
+ order: M,
264
+ notify: m,
265
+ begin: R,
266
+ finish: S,
267
+ setInstance: _,
268
+ suspend: $,
269
+ resume: () => {
270
+ K || (p = !0);
271
+ }
272
+ };
273
+ }
274
+ export {
275
+ de as createToastQueue
276
+ };
@@ -0,0 +1,86 @@
1
+ import { normalizeToastPosition as e, finite as C } from "../components/HysToast/toastPresentation.js";
2
+ let S = 0;
3
+ const O = () => ++S, k = (o) => typeof o == "string" ? { message: o } : o;
4
+ function z(o) {
5
+ const {
6
+ id: t,
7
+ content: s,
8
+ icon: i,
9
+ header: p,
10
+ footer: u,
11
+ renderActions: a,
12
+ priority: r,
13
+ group: d,
14
+ grouping: c,
15
+ dedupe: f,
16
+ dedupeKey: g,
17
+ dedupeWindow: n,
18
+ onShow: x,
19
+ onAfterShow: l,
20
+ onClose: q,
21
+ onAfterClose: w,
22
+ onClick: A,
23
+ onAction: T,
24
+ onStateChange: v,
25
+ ...m
26
+ } = o;
27
+ return m;
28
+ }
29
+ function K(o) {
30
+ return JSON.stringify([
31
+ e(o.position),
32
+ o.offsetX ?? o.offset ?? 24,
33
+ o.offsetY ?? o.offset ?? 24,
34
+ o.zIndex ?? 2e3,
35
+ o.coordinates
36
+ ]);
37
+ }
38
+ function I(o) {
39
+ const {
40
+ maxCount: t,
41
+ maxQueue: s,
42
+ overflow: i,
43
+ queueOrder: p,
44
+ queueScope: u,
45
+ layout: a,
46
+ gap: r,
47
+ collapsedCount: d,
48
+ layerCount: c,
49
+ layerTrigger: f,
50
+ appendTo: g,
51
+ ...n
52
+ } = o;
53
+ return n;
54
+ }
55
+ function h(o) {
56
+ return {
57
+ id: o.id,
58
+ message: o.options.message ?? "",
59
+ title: o.options.title,
60
+ type: o.options.type ?? "info"
61
+ };
62
+ }
63
+ function J(o) {
64
+ return {
65
+ ...h(o),
66
+ id: o.id,
67
+ status: o.status,
68
+ position: e(o.options.position),
69
+ group: o.options.group,
70
+ priority: C(o.options.priority, 0),
71
+ repeat: o.repeat
72
+ };
73
+ }
74
+ function N(o, t = {}) {
75
+ return (t.type === void 0 || t.type === o.options.type) && (t.group === void 0 || t.group === o.options.group) && (t.status === void 0 || t.status === o.status) && (t.position === void 0 || e(t.position) === e(o.options.position));
76
+ }
77
+ export {
78
+ k as asOptions,
79
+ h as context,
80
+ I as defaults,
81
+ N as matches,
82
+ O as nextToastSequence,
83
+ z as presentation,
84
+ J as snapshot,
85
+ K as toastStackKey
86
+ };
@@ -0,0 +1,58 @@
1
+ import { feedback as l } from "../components/HysToast/useToastActions.js";
2
+ import { asOptions as k } from "./toastQueueModel.js";
3
+ function v(d, u) {
4
+ const t = /* @__PURE__ */ new WeakMap();
5
+ function c(a, r = {}) {
6
+ var p;
7
+ const s = d({
8
+ actions: void 0,
9
+ progress: void 0,
10
+ ...r.options,
11
+ id: r.id ?? ((p = r.options) == null ? void 0 : p.id),
12
+ type: "loading",
13
+ message: "正在处理…",
14
+ duration: 0,
15
+ ...k(r.loading ?? {})
16
+ }), o = Symbol();
17
+ t.set(s, o);
18
+ const n = (e) => {
19
+ t.get(s) === o && s.update(e);
20
+ };
21
+ function i(e, f) {
22
+ try {
23
+ return l(e, f);
24
+ } catch (g) {
25
+ u(g);
26
+ }
27
+ }
28
+ const m = Promise.resolve().then(
29
+ () => typeof a == "function" ? a({
30
+ handle: s,
31
+ update: n,
32
+ progress: (e) => n({ progress: e })
33
+ }) : a
34
+ ).then(
35
+ (e) => (t.get(s) === o && (n({
36
+ type: "success",
37
+ message: "操作成功",
38
+ progress: void 0,
39
+ persistent: !1,
40
+ ...i(r.success, e)
41
+ }), t.delete(s)), e),
42
+ (e) => {
43
+ throw t.get(s) === o && (n({
44
+ type: "error",
45
+ message: "操作失败",
46
+ progress: void 0,
47
+ persistent: !1,
48
+ ...i(r.error, e)
49
+ }), t.delete(s)), e;
50
+ }
51
+ );
52
+ return { handle: s, promise: m };
53
+ }
54
+ return c;
55
+ }
56
+ export {
57
+ v as createToastTaskRunner
58
+ };
@@ -0,0 +1,24 @@
1
+ import { ref as r, watch as f, onMounted as a, onActivated as s, onDeactivated as v, onBeforeUnmount as c, computed as w } from "vue";
2
+ function p(e) {
3
+ const u = r(0);
4
+ let t, i = !0;
5
+ const n = () => {
6
+ e.value && (u.value = e.value.clientWidth || e.value.getBoundingClientRect().width);
7
+ };
8
+ function o() {
9
+ t == null || t.disconnect(), t = void 0, typeof window < "u" && window.removeEventListener("resize", n);
10
+ }
11
+ function d() {
12
+ o(), !(!i || !e.value) && (n(), typeof ResizeObserver < "u" ? (t = new ResizeObserver(n), t.observe(e.value)) : typeof window < "u" && window.addEventListener("resize", n));
13
+ }
14
+ return f(e, d), a(d), s(() => {
15
+ i = !0, d();
16
+ }), v(() => {
17
+ i = !1, o();
18
+ }), c(() => {
19
+ i = !1, o();
20
+ }), w(() => u.value);
21
+ }
22
+ export {
23
+ p as useContainerWidth
24
+ };