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,160 @@
1
+ import { createApp as D, defineComponent as E, getCurrentInstance as I, shallowReactive as y, toValue as H, h as w, onDeactivated as M, onActivated as z, onScopeDispose as O, nextTick as C, render as A } from "vue";
2
+ import { provideHysConfig as P, useHysConfig as U } from "../../config.js";
3
+ import V from "./HysSpin.vue.js";
4
+ import j from "./SpinPortal/SpinPortal.vue.js";
5
+ import { useSpinConfig as q, provideHysSpin as B } from "./spinConfig.js";
6
+ import { useHysSpinTask as F } from "./useHysSpinTask.js";
7
+ let G = 0;
8
+ function J() {
9
+ const i = I();
10
+ if (!i) throw new Error("useHysSpin must be called during setup");
11
+ const u = U(), c = q(), o = y(/* @__PURE__ */ new Map());
12
+ let n, p = !0;
13
+ function k() {
14
+ n && (A(null, n), n.remove(), n = void 0);
15
+ }
16
+ function h(e) {
17
+ o.delete(e.key) && (e.resolveReady(void 0), e.resolveClosed(), C(() => {
18
+ o.size || k();
19
+ }));
20
+ }
21
+ function m(e) {
22
+ o.has(e.key) && (e.options = { ...e.options, spinning: !1, showResult: !1 }, e.shown || C(() => {
23
+ !e.shown && e.options.spinning === !1 && h(e);
24
+ }));
25
+ }
26
+ const R = E({
27
+ setup() {
28
+ return P({
29
+ theme: () => H(u.theme) ?? "blue",
30
+ motion: () => H(u.motion) ?? "subtle"
31
+ }), B({
32
+ defaults: () => c.defaults.value,
33
+ presets: () => c.presets.value
34
+ }), () => [...o.values()].map((e) => {
35
+ const l = w(V, {
36
+ ...e.options,
37
+ key: e.key,
38
+ ref: (d) => {
39
+ d && e.resolveReady(d);
40
+ },
41
+ "onUpdate:spinning": (d) => {
42
+ d ? e.options = { ...e.options, spinning: !0 } : m(e);
43
+ },
44
+ onShow: () => {
45
+ e.shown = !0;
46
+ },
47
+ onAfterHide: () => {
48
+ e.options.spinning === !1 && h(e);
49
+ }
50
+ }), t = e.options.mode, a = c.defaults.value, r = t !== "fullscreen" ? e.options.appendTo ?? a.appendTo : void 0;
51
+ if (!r) return l;
52
+ const s = e.shown && e.options.spinning !== !1;
53
+ return w(
54
+ j,
55
+ {
56
+ key: e.key,
57
+ target: r,
58
+ cover: t === "overlay" || t === "container",
59
+ block: s && (e.options.blockInteraction ?? a.blockInteraction) !== !1,
60
+ lock: s && !!(e.options.lockScroll ?? a.lockScroll)
61
+ },
62
+ { default: () => l }
63
+ );
64
+ });
65
+ }
66
+ });
67
+ function T() {
68
+ if (n) return;
69
+ n = document.createElement("div"), n.dataset.hysSpinHost = "", document.body.append(n);
70
+ const e = w(R);
71
+ e.appContext = i.appContext, A(e, n);
72
+ }
73
+ function g(e = {}) {
74
+ let l, t;
75
+ const a = new Promise((f) => {
76
+ t = f;
77
+ }), r = new Promise((f) => {
78
+ l = f;
79
+ }), s = y({
80
+ key: ++G,
81
+ options: {
82
+ mode: c.defaults.value.mode ?? "fullscreen",
83
+ ...e,
84
+ spinning: !0
85
+ },
86
+ resolveReady: l,
87
+ resolveClosed: t,
88
+ shown: !1
89
+ }), d = {
90
+ closed: a,
91
+ close: () => m(s),
92
+ update(f) {
93
+ o.has(s.key) && (s.options = { ...s.options, ...f }, f.spinning === !1 && m(s));
94
+ }
95
+ };
96
+ return !p || typeof document > "u" ? (l(void 0), t(), { handle: d, ready: r }) : (T(), o.set(s.key, s), { handle: d, ready: r });
97
+ }
98
+ function S() {
99
+ p = !1;
100
+ for (const e of [...o.values()]) h(e);
101
+ k();
102
+ }
103
+ return M(S), z(() => {
104
+ p = !0;
105
+ }), O(S), {
106
+ show: (e) => g(e).handle,
107
+ async run(e, l) {
108
+ typeof e != "function" && Promise.resolve(e).catch(() => {
109
+ });
110
+ const { ready: t, handle: a } = g({ ...l, task: void 0 }), r = await t;
111
+ if (!r) throw new DOMException("Spin scope closed", "AbortError");
112
+ try {
113
+ return await r.run(e);
114
+ } finally {
115
+ a.close();
116
+ }
117
+ },
118
+ closeAll() {
119
+ for (const e of [...o.values()]) m(e);
120
+ }
121
+ };
122
+ }
123
+ function b(i = {}) {
124
+ if (typeof document > "u")
125
+ return {
126
+ show: () => ({ closed: Promise.resolve(), close() {
127
+ }, update() {
128
+ } }),
129
+ run: (n, p) => F().run(n, { timeout: p == null ? void 0 : p.timeout }),
130
+ closeAll() {
131
+ },
132
+ dispose() {
133
+ }
134
+ };
135
+ let u, c = !1;
136
+ const o = D(
137
+ E({
138
+ setup() {
139
+ return P(i), u = J(), () => null;
140
+ }
141
+ })
142
+ );
143
+ return o.mount(document.createElement("div")), {
144
+ ...u,
145
+ dispose() {
146
+ c || (c = !0, o.unmount());
147
+ }
148
+ };
149
+ }
150
+ let v;
151
+ const x = () => typeof document > "u" ? b() : v ?? (v = b()), Y = {
152
+ show: (i) => x().show(i),
153
+ run: (i, u) => x().run(i, u),
154
+ closeAll: () => v == null ? void 0 : v.closeAll()
155
+ };
156
+ export {
157
+ b as createHysSpin,
158
+ Y as hysSpin,
159
+ J as useHysSpin
160
+ };
@@ -0,0 +1,39 @@
1
+ const h = {
2
+ xs: 14,
3
+ sm: 20,
4
+ md: 30,
5
+ lg: 42,
6
+ xl: 56
7
+ }, i = (e) => typeof e == "number" ? Number.isFinite(e) ? Math.max(0, e) + "px" : void 0 : e, s = (e, a, n, r) => Number.isFinite(e) ? Math.max(n, Math.min(r, e)) : a;
8
+ function t(e, a) {
9
+ const n = i(
10
+ typeof e.size == "string" && Object.hasOwn(h, e.size) ? h[e.size] : e.size ?? h.md
11
+ ), r = s(e.animationDuration, 900, 0, 6e4) / s(e.speed, 1, 0.05, 20);
12
+ return {
13
+ "--hys-spin-width": i(e.width) ?? n,
14
+ "--hys-spin-height": i(e.height) ?? n,
15
+ "--hys-spin-region-height": i(e.regionHeight),
16
+ "--hys-spin-gap": i(e.gap) ?? "8px",
17
+ "--hys-spin-color": e.color,
18
+ "--hys-spin-track": e.trackColor,
19
+ "--hys-spin-track-opacity": e.trackColor ? 1 : 0.2,
20
+ "--hys-spin-mask": e.mask === !1 ? "transparent" : e.maskColor,
21
+ "--hys-spin-mask-opacity": s(e.maskOpacity, 0.72, 0, 1),
22
+ "--hys-spin-blur": s(e.blur, 0, 0, 100) + "px",
23
+ "--hys-spin-duration": r + "ms",
24
+ "--hys-spin-delay": s(e.animationDelay, 0, -6e4, 6e4) + "ms",
25
+ "--hys-spin-direction": e.direction ?? "normal",
26
+ "--hys-spin-reverse-direction": e.direction === "reverse" ? "normal" : "reverse",
27
+ "--hys-spin-easing": e.easing ?? "linear",
28
+ "--hys-spin-iterations": typeof e.iterations == "number" ? s(e.iterations, 1, 0, 1e5) : "infinite",
29
+ "--hys-spin-angle": s(e.angle, 360, -36e3, 36e3) + "deg",
30
+ "--hys-spin-play": a ? "paused" : "running",
31
+ "--hys-spin-transition": s(e.transitionDuration, 160, 0, 1e4) + "ms",
32
+ "--hys-spin-custom": e.animationName
33
+ };
34
+ }
35
+ export {
36
+ s as bounded,
37
+ i as cssLength,
38
+ t as spinStyle
39
+ };
@@ -0,0 +1,92 @@
1
+ import { shallowRef as S, getCurrentScope as D, onScopeDispose as N, readonly as j } from "vue";
2
+ const d = () => ({ status: "idle", spinning: !1 }), C = (e) => typeof e == "number" && Number.isFinite(e) ? Math.max(0, Math.min(100, e)) : void 0, F = (e) => typeof e == "number" && Number.isFinite(e) ? Math.min(2147483647, Math.max(0, e)) : 0;
3
+ function u() {
4
+ return new DOMException("Loading cancelled", "AbortError");
5
+ }
6
+ function H() {
7
+ const e = S(d());
8
+ let t, a, l = 0, c = !1;
9
+ function f(n) {
10
+ c || (e.value = {
11
+ ...e.value,
12
+ ...n,
13
+ progress: "progress" in n ? C(n.progress ?? void 0) : e.value.progress
14
+ });
15
+ }
16
+ function p(n, i, T) {
17
+ if (c)
18
+ return typeof n != "function" && Promise.resolve(n).catch(() => {
19
+ }), Promise.reject(u());
20
+ t == null || t.abort(u());
21
+ const s = new AbortController();
22
+ t = s, l++;
23
+ const w = l;
24
+ e.value = {
25
+ ...d(),
26
+ status: T ? "retrying" : "loading",
27
+ spinning: !0
28
+ }, i != null && i.initial && f(i.initial);
29
+ const { signal: o } = s;
30
+ let g, y = () => {
31
+ };
32
+ const A = new Promise((r, m) => {
33
+ y = m;
34
+ }), h = () => y(o.reason ?? u());
35
+ o.addEventListener("abort", h, { once: !0 });
36
+ const E = F(i == null ? void 0 : i.timeout);
37
+ E && (g = setTimeout(
38
+ () => s.abort(
39
+ new DOMException("Loading timed out", "TimeoutError")
40
+ ),
41
+ E
42
+ ));
43
+ const P = (r) => {
44
+ t === s && !o.aborted && f(r);
45
+ }, L = typeof n != "function" ? Promise.resolve(n) : Promise.resolve().then(() => {
46
+ if (o.aborted) throw o.reason;
47
+ return n({
48
+ signal: o,
49
+ attempt: w,
50
+ update: P,
51
+ progress: (r) => P({ progress: r })
52
+ });
53
+ });
54
+ return Promise.race([L, A]).then(
55
+ (r) => (t === s && (e.value = {
56
+ ...e.value,
57
+ spinning: !1,
58
+ status: "success",
59
+ progress: e.value.progress === void 0 ? void 0 : 100
60
+ }), r),
61
+ (r) => {
62
+ if (t === s) {
63
+ const m = (r == null ? void 0 : r.name) === "TimeoutError" ? "timeout" : o.aborted ? "cancelled" : "error";
64
+ e.value = { ...e.value, spinning: !1, status: m, error: r };
65
+ }
66
+ throw r;
67
+ }
68
+ ).finally(() => {
69
+ clearTimeout(g), o.removeEventListener("abort", h), t === s && (t = void 0);
70
+ });
71
+ }
72
+ function x(n, i) {
73
+ return l = 0, a = { work: n, options: i }, p(n, i, !1);
74
+ }
75
+ function v() {
76
+ t == null || t.abort(u());
77
+ }
78
+ function b() {
79
+ v(), t = void 0, a = void 0, e.value = d();
80
+ }
81
+ function M() {
82
+ return a && typeof a.work == "function" ? p(a.work, a.options, !0) : void 0;
83
+ }
84
+ return D() && N(() => {
85
+ c = !0, b();
86
+ }), { state: j(e), run: x, cancel: v, retry: M, update: f, reset: b };
87
+ }
88
+ export {
89
+ C as clampSpinProgress,
90
+ F as spinTime,
91
+ H as useHysSpinTask
92
+ };
@@ -0,0 +1,60 @@
1
+ import { shallowRef as h, watch as m, nextTick as b, onBeforeUnmount as E } from "vue";
2
+ import { lockBodyScroll as p, registerOverlay as g } from "../../composables/overlayManager.js";
3
+ const k = 'button:not(:disabled),a[href],input:not(:disabled),select:not(:disabled),textarea:not(:disabled),[tabindex]:not([tabindex="-1"])';
4
+ function x(o, c) {
5
+ const n = h();
6
+ let u, r, l;
7
+ function a(e) {
8
+ var t;
9
+ if (!(!((t = n.value) != null && t.isTop()) || !o.value)) {
10
+ if (e.key === "Escape")
11
+ e.stopImmediatePropagation(), c.escape();
12
+ else if (e.key === "Tab") {
13
+ const i = [
14
+ ...o.value.querySelectorAll(k)
15
+ ].filter(
16
+ (v) => !v.closest("[inert],[hidden]") && v.getClientRects().length
17
+ ), s = document.activeElement, y = e.shiftKey ? i[0] : i.at(-1);
18
+ (!i.length || !o.value.contains(s) || s === y || s === o.value) && (e.preventDefault(), (i[e.shiftKey ? i.length - 1 : 0] ?? o.value).focus({
19
+ preventScroll: !0
20
+ }));
21
+ }
22
+ }
23
+ }
24
+ function d(e) {
25
+ var t;
26
+ (t = n.value) != null && t.isTop() && o.value && !o.value.contains(e.target) && o.value.focus({ preventScroll: !0 });
27
+ }
28
+ function f() {
29
+ if (!n.value) return;
30
+ const e = n.value.isTop() && ((l == null ? void 0 : l.contains(document.activeElement)) || document.activeElement === document.body);
31
+ n.value.unregister(), n.value = void 0, document.removeEventListener("keydown", a, !0), document.removeEventListener("focusin", d, !0), e && (r != null && r.isConnected) && r.focus({ preventScroll: !0 }), r = void 0, l = void 0;
32
+ }
33
+ return m(
34
+ [c.lock, o],
35
+ ([e, t]) => {
36
+ e && t && !u && (u = p()), (!e || !t) && (u == null || u(), u = void 0);
37
+ },
38
+ { flush: "post" }
39
+ ), m(
40
+ [c.trap, o],
41
+ ([e, t]) => {
42
+ if (!e || !t) {
43
+ f();
44
+ return;
45
+ }
46
+ if (n.value) return;
47
+ r = document.activeElement instanceof HTMLElement ? document.activeElement : void 0;
48
+ const i = g("dialog", c.escape, c.zIndex);
49
+ n.value = i, l = t, document.addEventListener("keydown", a, !0), document.addEventListener("focusin", d, !0), b(() => {
50
+ n.value === i && i.isTop() && t.focus({ preventScroll: !0 });
51
+ });
52
+ },
53
+ { flush: "post" }
54
+ ), E(() => {
55
+ f(), u == null || u();
56
+ }), n;
57
+ }
58
+ export {
59
+ x as useSpinFullscreen
60
+ };
@@ -0,0 +1,59 @@
1
+ import { ref as b, watch as D, onMounted as M, onActivated as E, onDeactivated as g, onBeforeUnmount as A } from "vue";
2
+ import { spinTime as f } from "./useHysSpinTask.js";
3
+ function S(e) {
4
+ const i = b(e.requested() && f(e.delay()) === 0);
5
+ let u = !1, t, a, d, c, m = !1;
6
+ function o() {
7
+ clearTimeout(d), clearTimeout(c);
8
+ }
9
+ function s() {
10
+ if (o(), !u) return;
11
+ const r = Date.now();
12
+ if (e.requested()) {
13
+ t === void 0 && (t = r, m = !1, e.start());
14
+ const T = () => {
15
+ !u || !e.requested() || (a = Date.now(), i.value = !0);
16
+ };
17
+ if (i.value)
18
+ a ?? (a = r);
19
+ else {
20
+ const x = f(e.delay()) - (r - t);
21
+ x > 0 ? d = setTimeout(T, x) : T();
22
+ }
23
+ const n = f(e.timeout()), l = f(e.autoEnd()), q = n && l ? Math.min(n, l) : n || l;
24
+ !m && q && (c = setTimeout(
25
+ () => {
26
+ !u || !e.requested() || (m = !0, e.stop(
27
+ n && n <= (l || 1 / 0) ? "timeout" : "auto"
28
+ ));
29
+ },
30
+ Math.max(0, q - (r - t))
31
+ ));
32
+ return;
33
+ }
34
+ t !== void 0 && (t = void 0, e.end());
35
+ const w = () => {
36
+ a = void 0, i.value = !1;
37
+ }, y = a === void 0 ? 0 : f(e.minimum()) - (r - a);
38
+ i.value && y > 0 ? d = setTimeout(w, y) : w();
39
+ }
40
+ function v() {
41
+ u || (u = !0, s());
42
+ }
43
+ function h() {
44
+ u = !1, o(), t = a = void 0, i.value = !1;
45
+ }
46
+ return D(
47
+ [
48
+ e.requested,
49
+ e.delay,
50
+ e.minimum,
51
+ e.timeout,
52
+ e.autoEnd
53
+ ],
54
+ s
55
+ ), M(v), E(v), g(h), A(h), i;
56
+ }
57
+ export {
58
+ S as useSpinVisibility
59
+ };