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,14 @@
1
+ import type { HysTabContent, HysTabItem, HysTabValue, HysTabsProps, TabsEmit } from "./tabsTypes";
2
+ interface Resource {
3
+ state: "loading" | "ready" | "error";
4
+ content?: HysTabContent;
5
+ error?: unknown;
6
+ }
7
+ export declare function useTabsPanels(props: () => HysTabsProps, items: () => readonly HysTabItem[], active: () => HysTabValue, emit: TabsEmit): {
8
+ loaded: import("vue").ShallowReactive<Map<HysTabValue, Resource>>;
9
+ versions: import("vue").Reactive<Map<HysTabValue, number>>;
10
+ render: (item: HysTabItem) => boolean;
11
+ preload: (value: HysTabValue) => Promise<boolean>;
12
+ reload: (value?: HysTabValue) => Promise<boolean>;
13
+ };
14
+ export {};
@@ -0,0 +1,30 @@
1
+ import type { HysTabItem, HysTabsProps, HysTabValue } from "./tabsTypes";
2
+ import type { useTabsNav } from "./useTabsNav";
3
+ export declare function useTabsPointer(props: () => HysTabsProps, nav: ReturnType<typeof useTabsNav>, itemByToken: (token: string) => HysTabItem | undefined, canMove: (item: HysTabItem) => boolean, move: (value: HysTabValue, target: HysTabValue, after: boolean) => Promise<boolean>, isVertical: () => boolean, longpress: (item: HysTabItem, event: PointerEvent) => void, swipe: (step: number) => void, animated: () => boolean): {
4
+ dragging: import("vue").Ref<HysTabValue | undefined, HysTabValue | undefined>;
5
+ drop: import("vue").Ref<{
6
+ value: HysTabValue;
7
+ after: boolean;
8
+ } | undefined, {
9
+ value: HysTabValue;
10
+ after: boolean;
11
+ } | undefined>;
12
+ ghost: import("vue").ShallowRef<{
13
+ label: string;
14
+ width: number;
15
+ height: number;
16
+ } | undefined, {
17
+ label: string;
18
+ width: number;
19
+ height: number;
20
+ } | undefined>;
21
+ ghostElement: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
22
+ down: (event: PointerEvent) => void;
23
+ motion: (event: PointerEvent) => void;
24
+ finish: (event?: PointerEvent, cancelled?: boolean) => void;
25
+ cancel: (event: PointerEvent) => void;
26
+ clickCapture: (event: MouseEvent) => void;
27
+ swipeDown: (event: PointerEvent) => void;
28
+ swipeUp: (event: PointerEvent) => void;
29
+ cancelSwipe: () => void;
30
+ };
@@ -0,0 +1,32 @@
1
+ import type { HysTabCloseScope, HysTabItem, HysTabSource, HysTabsProps, HysTabValue, TabsEmit } from "./tabsTypes";
2
+ type Options = () => HysTabsProps;
3
+ export interface ClosedTab {
4
+ item: HysTabItem;
5
+ index: number;
6
+ }
7
+ export declare function useTabsState(props: Options, declared: () => readonly HysTabItem[], declarative: () => boolean, emit: TabsEmit, confirmDirty: (items: HysTabItem[], signal: AbortSignal) => Promise<boolean>): {
8
+ all: import("vue").ComputedRef<HysTabItem[]>;
9
+ visible: import("vue").ComputedRef<HysTabItem[]>;
10
+ byKey: import("vue").ComputedRef<Map<HysTabValue, HysTabItem>>;
11
+ enabled: import("vue").ComputedRef<HysTabItem[]>;
12
+ active: import("vue").ComputedRef<HysTabValue>;
13
+ current: import("vue").Ref<HysTabValue | undefined, HysTabValue | undefined>;
14
+ pending: import("vue").Ref<boolean, boolean>;
15
+ closing: import("vue").Reactive<Set<HysTabValue>>;
16
+ recent: import("vue").ShallowRef<HysTabValue[], HysTabValue[]>;
17
+ closed: import("vue").ShallowRef<ClosedTab[], ClosedTab[]>;
18
+ select: (value: HysTabValue, source?: HysTabSource) => Promise<boolean>;
19
+ add: (item?: HysTabItem) => Promise<boolean>;
20
+ write: (items: HysTabItem[]) => void;
21
+ canClose: (item: HysTabItem | undefined) => boolean;
22
+ canMove: (item: HysTabItem | undefined) => boolean;
23
+ canEdit: () => boolean;
24
+ rename: (value: HysTabValue, name: string) => Promise<boolean>;
25
+ pin: (value: HysTabValue, pinned?: boolean) => Promise<boolean>;
26
+ favorite: (value: HysTabValue, favorite?: boolean) => Promise<boolean>;
27
+ move: (value: HysTabValue, target: HysTabValue, after?: boolean) => Promise<boolean>;
28
+ restore: () => Promise<boolean>;
29
+ closeMany: (scope: HysTabCloseScope | readonly HysTabValue[], anchor?: HysTabValue) => Promise<HysTabValue[]>;
30
+ close: (value?: HysTabValue) => Promise<boolean>;
31
+ };
32
+ export {};
@@ -25,8 +25,8 @@ declare const __VLS_base: import("vue").DefineComponent<HysTagInputProps, {
25
25
  invalid: (info: HysTagInputInvalid) => any;
26
26
  reject: (value: string) => any;
27
27
  remove: (value: string) => any;
28
- acceptedChange: (values: string[]) => any;
29
28
  reorder: (from: number, to: number, values: string[]) => any;
29
+ acceptedChange: (values: string[]) => any;
30
30
  }, string, import("vue").PublicProps, Readonly<HysTagInputProps> & Readonly<{
31
31
  onChange?: ((values: string[]) => any) | undefined;
32
32
  "onUpdate:modelValue"?: ((values: string[]) => any) | undefined;
@@ -39,8 +39,8 @@ declare const __VLS_base: import("vue").DefineComponent<HysTagInputProps, {
39
39
  onInvalid?: ((info: HysTagInputInvalid) => any) | undefined;
40
40
  onReject?: ((value: string) => any) | undefined;
41
41
  onRemove?: ((value: string) => any) | undefined;
42
- onAcceptedChange?: ((values: string[]) => any) | undefined;
43
42
  onReorder?: ((from: number, to: number, values: string[]) => any) | undefined;
43
+ onAcceptedChange?: ((values: string[]) => any) | undefined;
44
44
  }>, {
45
45
  modelValue: readonly string[];
46
46
  trim: boolean;
@@ -1,61 +1,59 @@
1
- export type HysToastType = 'success' | 'error' | 'info' | 'warning' | 'loading';
2
- export type HysToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right' | 'center' | 'top' | 'bottom';
3
- type __VLS_Props = {
4
- message?: string;
5
- type?: HysToastType;
6
- duration?: number;
7
- closable?: boolean;
8
- position?: HysToastPosition;
9
- offset?: number;
10
- zIndex?: number;
11
- showIcon?: boolean;
12
- pauseOnHover?: boolean;
13
- closeOnEscape?: boolean;
14
- repeat?: number;
15
- plain?: boolean;
16
- teleport?: boolean;
17
- appendTo?: string | HTMLElement;
1
+ import type { HysToastActionContext, HysToastActionEvent, HysToastCloseContext, HysToastCloseReason, HysToastContext, HysToastPatch, HysToastProps } from "./toastTypes";
2
+ export type { HysToastPosition, HysToastType } from "./toastTypes";
3
+ type __VLS_Slots = {
4
+ default?: (context: HysToastActionContext) => unknown;
5
+ icon?: (context: HysToastActionContext) => unknown;
6
+ header?: (context: HysToastActionContext) => unknown;
7
+ footer?: (context: HysToastActionContext) => unknown;
8
+ action?: (context: HysToastActionContext) => unknown;
18
9
  };
19
- declare function pause(): void;
20
- declare function resume(): void;
21
- declare function restart(): void;
22
- declare function close(): void;
23
- declare const __VLS_template: () => {
24
- __VLS_Slots: {
25
- icon?: (props: {}) => any;
26
- } & {
27
- default?: (props: {}) => any;
28
- } & {
29
- action?: (props: {
30
- close: typeof close;
31
- }) => any;
32
- };
33
- };
34
- type __VLS_Slots = ReturnType<typeof __VLS_template>['__VLS_Slots'];
35
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
10
+ declare function close(reason?: HysToastCloseReason, event?: Event, force?: boolean): Promise<boolean>;
11
+ declare const __VLS_base: import("vue").DefineComponent<HysToastProps, {
36
12
  close: typeof close;
37
- pause: typeof pause;
38
- resume: typeof resume;
39
- restart: typeof restart;
13
+ pause: () => void;
14
+ resume: () => void;
15
+ restart: () => void;
16
+ extend: (milliseconds: number) => void;
40
17
  element: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
18
+ snapshotClock: () => import("./useToastTimer").ToastClock;
19
+ restoreClock: (clock: import("./useToastTimer").ToastClock) => void;
41
20
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
42
- close: () => any;
43
- afterClose: () => any;
44
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
45
- onClose?: (() => any) | undefined;
46
- onAfterClose?: (() => any) | undefined;
21
+ click: (event: MouseEvent, context: HysToastContext) => any;
22
+ close: (context: HysToastCloseContext) => any;
23
+ afterClose: (context: HysToastCloseContext) => any;
24
+ action: (event: HysToastActionEvent) => any;
25
+ show: (context: HysToastContext) => any;
26
+ update: (patch: HysToastPatch) => any;
27
+ "update:open": (open: boolean) => any;
28
+ afterShow: (context: HysToastContext) => any;
29
+ stateChange: (state: "visible" | "closing" | "closed", context: HysToastContext) => any;
30
+ }, string, import("vue").PublicProps, Readonly<HysToastProps> & Readonly<{
31
+ onClick?: ((event: MouseEvent, context: HysToastContext) => any) | undefined;
32
+ onClose?: ((context: HysToastCloseContext) => any) | undefined;
33
+ onAfterClose?: ((context: HysToastCloseContext) => any) | undefined;
34
+ onAction?: ((event: HysToastActionEvent) => any) | undefined;
35
+ onShow?: ((context: HysToastContext) => any) | undefined;
36
+ onUpdate?: ((patch: HysToastPatch) => any) | undefined;
37
+ "onUpdate:open"?: ((open: boolean) => any) | undefined;
38
+ onAfterShow?: ((context: HysToastContext) => any) | undefined;
39
+ onStateChange?: ((state: "visible" | "closing" | "closed", context: HysToastContext) => any) | undefined;
47
40
  }>, {
48
41
  repeat: number;
49
- type: HysToastType;
42
+ type: import("./toastTypes").HysToastType;
50
43
  offset: number;
44
+ duration: number;
51
45
  closable: boolean;
52
46
  showIcon: boolean;
53
- position: HysToastPosition;
47
+ position: import("./toastTypes").HysToastPosition;
48
+ open: boolean;
54
49
  message: string;
55
50
  zIndex: number;
56
- appendTo: string | HTMLElement;
57
- pauseOnHover: boolean;
51
+ appendTo: string | HTMLElement | ShadowRoot;
58
52
  teleport: boolean;
53
+ pauseOnHover: boolean;
54
+ pauseOnBlur: boolean;
55
+ interactive: boolean;
56
+ actionLayout: "footer" | "inline";
59
57
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
60
58
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
61
59
  declare const _default: typeof __VLS_export;
@@ -0,0 +1,25 @@
1
+ import { type PropType, type VNode } from "vue";
2
+ import type { createToastQueue } from "../../../composables/toastQueue";
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
6
+ queue: {
7
+ type: PropType<ReturnType<typeof createToastQueue>>;
8
+ required: true;
9
+ };
10
+ skin: {
11
+ type: PropType<() => Record<string, string>>;
12
+ required: true;
13
+ };
14
+ }>, () => VNode<import("vue").RendererNode, import("vue").RendererElement, {
15
+ [key: string]: any;
16
+ }>[], {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
17
+ queue: {
18
+ type: PropType<ReturnType<typeof createToastQueue>>;
19
+ required: true;
20
+ };
21
+ skin: {
22
+ type: PropType<() => Record<string, string>>;
23
+ required: true;
24
+ };
25
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,16 @@
1
+ interface Disclosure {
2
+ pinned: boolean;
3
+ preview: boolean;
4
+ focused: boolean;
5
+ suppressHover: boolean;
6
+ }
7
+ export declare function useToastStackDisclosure(): {
8
+ stacks: import("vue").Reactive<Map<string, Disclosure>>;
9
+ enter: (key: string, event: PointerEvent) => void;
10
+ leave: (key: string) => void;
11
+ toggle: (key: string) => void;
12
+ focusIn: (key: string) => void;
13
+ focusOut: (key: string, event: FocusEvent) => void;
14
+ retain: (keys: Iterable<string>) => void;
15
+ };
16
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { CSSProperties } from "vue";
2
+ import type { HysToastLocale, HysToastPosition, HysToastPresentation } from "./toastTypes";
3
+ export declare const toastLocale: HysToastLocale;
4
+ export declare function normalizeToastPosition(position?: HysToastPosition): "center" | "top-right" | "top-left" | "bottom-right" | "bottom-left" | "custom" | "top-center" | "bottom-center";
5
+ export declare const finite: (value: number | undefined, fallback: number) => number;
6
+ export declare const toastDuration: (options: HysToastPresentation) => number;
7
+ export declare function toastPlacement(options: HysToastPresentation): CSSProperties;
8
+ export declare function toastMotion(options: HysToastPresentation): CSSProperties;
@@ -0,0 +1,212 @@
1
+ import type { CSSProperties, VNodeChild } from "vue";
2
+ import type { HysConfig, HysTheme } from "../../config";
3
+ export type HysToastType = "success" | "error" | "warning" | "info" | "loading" | "default" | "custom";
4
+ export type HysToastPosition = "top-left" | "top-center" | "top-right" | "bottom-left" | "bottom-center" | "bottom-right" | "center" | "custom" | "top" | "bottom";
5
+ export type HysToastCloseReason = "timeout" | "button" | "click" | "escape" | "keyboard" | "swipe" | "action" | "api" | "model" | "overflow" | "dispose";
6
+ export type HysToastStatus = "queued" | "visible" | "closing" | "closed";
7
+ export type HysToastAnimation = "fade" | "slide" | "scale" | "spring" | "bounce" | "rotate" | "none";
8
+ export type HysToastDirection = "top" | "bottom" | "left" | "right";
9
+ export type HysToastProgress = number | "indeterminate";
10
+ export type HysToastCoordinates = Pick<CSSProperties, "top" | "right" | "bottom" | "left" | "translate">;
11
+ export interface HysToastMotionPreset {
12
+ enterFrom: string;
13
+ leaveTo?: string;
14
+ opacity?: number;
15
+ }
16
+ export interface HysToastLocale {
17
+ close: string;
18
+ copy: string;
19
+ copied: string;
20
+ copyFailed: string;
21
+ expand: string;
22
+ collapse: string;
23
+ collapseStack: string;
24
+ pinStack: string;
25
+ remaining: (seconds: number) => string;
26
+ repeat: (count: number) => string;
27
+ more: (count: number) => string;
28
+ actionFailed: string;
29
+ progress: string;
30
+ }
31
+ export interface HysToastPresentation {
32
+ message?: string;
33
+ title?: string;
34
+ type?: HysToastType;
35
+ duration?: number;
36
+ persistent?: boolean;
37
+ closable?: boolean;
38
+ closeOnClick?: boolean;
39
+ closeOnEscape?: boolean;
40
+ keyboardDismiss?: boolean;
41
+ pauseOnHover?: boolean;
42
+ pauseOnBlur?: boolean;
43
+ swipe?: boolean;
44
+ interactive?: boolean;
45
+ position?: HysToastPosition;
46
+ offset?: number;
47
+ offsetX?: number;
48
+ offsetY?: number;
49
+ coordinates?: HysToastCoordinates;
50
+ zIndex?: number;
51
+ width?: string | number;
52
+ showIcon?: boolean;
53
+ plain?: boolean;
54
+ glass?: boolean;
55
+ theme?: HysTheme;
56
+ toastStyle?: CSSProperties;
57
+ progressStyle?: CSSProperties;
58
+ progress?: HysToastProgress;
59
+ showProgress?: boolean;
60
+ countdown?: boolean;
61
+ maxLines?: number;
62
+ copyable?: boolean;
63
+ copyText?: string;
64
+ actionLayout?: "inline" | "footer";
65
+ actions?: readonly HysToastAction[];
66
+ animation?: HysToastAnimation | HysToastMotionPreset;
67
+ direction?: HysToastDirection;
68
+ animationDuration?: number;
69
+ easing?: string | ((progress: number) => number);
70
+ live?: "polite" | "assertive" | "off";
71
+ locale?: Partial<HysToastLocale>;
72
+ beforeClose?: (context: HysToastCloseContext) => boolean | void | Promise<boolean | void>;
73
+ }
74
+ export interface HysToastProps extends HysToastPresentation {
75
+ open?: boolean;
76
+ teleport?: boolean;
77
+ appendTo?: string | HTMLElement | ShadowRoot;
78
+ repeat?: number;
79
+ paused?: boolean;
80
+ }
81
+ export interface HysToastContext {
82
+ id?: string;
83
+ message: string;
84
+ title?: string;
85
+ type: HysToastType;
86
+ }
87
+ export interface HysToastCloseContext extends HysToastContext {
88
+ reason: HysToastCloseReason;
89
+ event?: Event;
90
+ }
91
+ export interface HysToastActionContext extends HysToastContext {
92
+ close: () => Promise<boolean>;
93
+ update: (patch: HysToastPatch) => void;
94
+ copy: () => Promise<boolean>;
95
+ }
96
+ export interface HysToastAction {
97
+ id: string;
98
+ label: string;
99
+ disabled?: boolean;
100
+ closeOnSuccess?: boolean;
101
+ run?: (context: HysToastActionContext) => unknown;
102
+ success?: HysToastFeedback<unknown>;
103
+ error?: HysToastFeedback<unknown>;
104
+ }
105
+ export interface HysToastActionEvent extends HysToastContext {
106
+ action: HysToastAction;
107
+ status: "start" | "success" | "error";
108
+ result?: unknown;
109
+ }
110
+ export type HysToastRender = VNodeChild | ((context: HysToastActionContext) => VNodeChild);
111
+ export interface HysToastOptions extends HysToastPresentation {
112
+ id?: string;
113
+ content?: HysToastRender;
114
+ icon?: HysToastRender;
115
+ header?: HysToastRender;
116
+ footer?: HysToastRender;
117
+ renderActions?: HysToastRender;
118
+ priority?: number;
119
+ group?: string;
120
+ grouping?: boolean;
121
+ dedupe?: "ignore" | "merge";
122
+ dedupeKey?: string;
123
+ dedupeWindow?: number;
124
+ onShow?: (context: HysToastContext) => void;
125
+ onAfterShow?: (context: HysToastContext) => void;
126
+ onClose?: (context: HysToastCloseContext) => void;
127
+ onAfterClose?: (context: HysToastCloseContext) => void;
128
+ onClick?: (event: MouseEvent, context: HysToastContext) => void;
129
+ onAction?: (event: HysToastActionEvent) => void;
130
+ onStateChange?: (snapshot: HysToastSnapshot) => void;
131
+ }
132
+ export type HysToastPatch = string | Partial<Omit<HysToastOptions, "id">>;
133
+ export type HysToastFeedback<T> = HysToastPatch | ((value: T) => HysToastPatch);
134
+ export type HysToastFilter = {
135
+ type?: HysToastType;
136
+ group?: string;
137
+ position?: HysToastPosition;
138
+ status?: HysToastStatus;
139
+ };
140
+ export interface HysToastSnapshot extends HysToastContext {
141
+ id: string;
142
+ status: HysToastStatus;
143
+ position: HysToastPosition;
144
+ group?: string;
145
+ priority: number;
146
+ repeat: number;
147
+ }
148
+ export interface HysToastConfig extends Omit<HysToastPresentation, "message" | "title" | "theme" | "copyText"> {
149
+ maxCount?: number;
150
+ maxQueue?: number;
151
+ overflow?: "replace" | "queue";
152
+ queueOrder?: "fifo" | "lifo";
153
+ queueScope?: "global" | "position" | "type" | "group";
154
+ layout?: "vertical" | "horizontal" | "layered";
155
+ gap?: number;
156
+ collapsedCount?: number;
157
+ layerCount?: number;
158
+ layerTrigger?: "hover" | "click" | "both";
159
+ grouping?: boolean;
160
+ dedupe?: "ignore" | "merge";
161
+ dedupeWindow?: number;
162
+ appendTo?: string | HTMLElement | ShadowRoot;
163
+ }
164
+ export interface HysToastHandle {
165
+ readonly id: string;
166
+ readonly closed: Promise<void>;
167
+ close(): void;
168
+ update(value: HysToastPatch): void;
169
+ extend(milliseconds: number): void;
170
+ pause(): void;
171
+ resume(): void;
172
+ }
173
+ export interface HysToastTaskContext {
174
+ handle: HysToastHandle;
175
+ update: (value: HysToastPatch) => void;
176
+ progress: (value: HysToastProgress) => void;
177
+ }
178
+ export interface HysToastPromiseOptions<T> {
179
+ id?: string;
180
+ options?: HysToastOptions;
181
+ loading?: HysToastPatch;
182
+ success?: HysToastFeedback<T>;
183
+ error?: HysToastFeedback<unknown>;
184
+ }
185
+ export interface HysToastTask<T> {
186
+ handle: HysToastHandle;
187
+ promise: Promise<T>;
188
+ }
189
+ type TypedToast = (value: string | Omit<HysToastOptions, "type">) => HysToastHandle;
190
+ export interface HysToastApi {
191
+ show(value: string | HysToastOptions): HysToastHandle;
192
+ success: TypedToast;
193
+ info: TypedToast;
194
+ warning: TypedToast;
195
+ error: TypedToast;
196
+ loading: TypedToast;
197
+ promise<T>(task: PromiseLike<T> | ((context: HysToastTaskContext) => T | PromiseLike<T>), options?: HysToastPromiseOptions<T>): HysToastTask<T>;
198
+ close(id: string): void;
199
+ update(id: string, value: HysToastPatch): void;
200
+ find(id: string): HysToastSnapshot | undefined;
201
+ list(filter?: HysToastFilter): HysToastSnapshot[];
202
+ closeAll(filter?: HysToastFilter): void;
203
+ closeType(type: HysToastType): void;
204
+ clearQueue(): void;
205
+ configure(config: Partial<HysToastConfig>): void;
206
+ }
207
+ export interface HysToastServiceConfig extends HysToastConfig, HysConfig {
208
+ }
209
+ export interface HysToastService extends HysToastApi {
210
+ dispose(): void;
211
+ }
212
+ export {};
@@ -0,0 +1,18 @@
1
+ import type { HysToastAction, HysToastActionContext, HysToastActionEvent, HysToastContext, HysToastFeedback, HysToastLocale, HysToastPatch } from "./toastTypes";
2
+ export declare function feedback<T>(value: HysToastFeedback<T> | undefined, result: T): Partial<Omit<import("./toastTypes").HysToastOptions, "id">> | undefined;
3
+ export declare function useToastActions(options: {
4
+ available: () => boolean;
5
+ locale: () => HysToastLocale;
6
+ context: () => HysToastContext;
7
+ close: () => Promise<boolean>;
8
+ update: (patch: HysToastPatch) => void;
9
+ copyText: () => string;
10
+ emit: (event: HysToastActionEvent) => void;
11
+ }): {
12
+ busy: import("vue").Ref<string | undefined, string | undefined>;
13
+ copyStatus: import("vue").Ref<string, string>;
14
+ copy: () => Promise<boolean>;
15
+ context: () => HysToastActionContext;
16
+ run: (action: HysToastAction) => Promise<void>;
17
+ reset: () => void;
18
+ };
@@ -0,0 +1,11 @@
1
+ import { type Ref } from "vue";
2
+ export declare function useToastSwipe(element: Ref<HTMLElement | undefined>, enabled: () => boolean, dismiss: (event: PointerEvent) => Promise<boolean>): {
3
+ shift: Ref<number, number>;
4
+ dragging: Ref<boolean, boolean>;
5
+ suppressClick: Ref<boolean, boolean>;
6
+ reset: () => void;
7
+ start: (event: PointerEvent) => void;
8
+ move: (event: PointerEvent) => void;
9
+ end: (event: PointerEvent) => Promise<void>;
10
+ leave: (event: PointerEvent) => void;
11
+ };
@@ -0,0 +1,22 @@
1
+ export type ToastClock = {
2
+ remaining: number;
3
+ total: number;
4
+ expired: boolean;
5
+ };
6
+ export declare function useToastTimer(options: {
7
+ running: () => boolean;
8
+ duration: () => number;
9
+ indicators: () => boolean;
10
+ pauseOnBlur: () => boolean;
11
+ expire: () => void;
12
+ }): {
13
+ remaining: import("vue").Ref<number, number>;
14
+ total: import("vue").Ref<number, number>;
15
+ restart: () => void;
16
+ extend: (milliseconds: number) => void;
17
+ stop: () => void;
18
+ snapshot: () => ToastClock;
19
+ restore(clock: ToastClock): void;
20
+ pause: () => void;
21
+ resume: () => void;
22
+ };
@@ -5,11 +5,11 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
5
5
  onSelectionChange?: ((keys: HysVirtualTableKey[], rows: T[]) => any) | undefined;
6
6
  onRowClick?: ((row: T, index: number, event: MouseEvent) => any) | undefined;
7
7
  "onUpdate:selectedRowKeys"?: ((keys: HysVirtualTableKey[]) => any) | undefined;
8
- onSortChange?: ((sort: HysVirtualTableSort | null) => any) | undefined;
9
8
  "onUpdate:currentRowKey"?: ((key: HysVirtualTableKey | null) => any) | undefined;
10
9
  onCurrentChange?: ((row: T | null, key: HysVirtualTableKey | null) => any) | undefined;
11
10
  onRowDblclick?: ((row: T, index: number, event: MouseEvent) => any) | undefined;
12
11
  onCellClick?: ((context: HysVirtualTableCell<T>, event: MouseEvent) => any) | undefined;
12
+ onSortChange?: ((sort: HysVirtualTableSort | null) => any) | undefined;
13
13
  "onUpdate:sortState"?: ((sort: HysVirtualTableSort | null) => any) | undefined;
14
14
  onRangeChange?: ((range: HysVirtualTableRange) => any) | undefined;
15
15
  onEndReached?: ((info: {
@@ -60,7 +60,7 @@ declare const __VLS_export: <T extends object = Record<string, unknown>>(__VLS_p
60
60
  selectedRowKeys: HysVirtualTableKey[];
61
61
  }): any;
62
62
  };
63
- emit: ((evt: "scroll", state: HysVirtualTableScroll) => void) & ((evt: "selectionChange", keys: HysVirtualTableKey[], rows: T[]) => void) & ((evt: "rowClick", row: T, index: number, event: MouseEvent) => void) & ((evt: "update:selectedRowKeys", keys: HysVirtualTableKey[]) => void) & ((evt: "sortChange", sort: HysVirtualTableSort | null) => void) & ((evt: "update:currentRowKey", key: HysVirtualTableKey | null) => void) & ((evt: "currentChange", row: T | null, key: HysVirtualTableKey | null) => void) & ((evt: "rowDblclick", row: T, index: number, event: MouseEvent) => void) & ((evt: "cellClick", context: HysVirtualTableCell<T>, event: MouseEvent) => void) & ((evt: "update:sortState", sort: HysVirtualTableSort | null) => void) & ((evt: "rangeChange", range: HysVirtualTableRange) => void) & ((evt: "endReached", info: {
63
+ emit: ((evt: "scroll", state: HysVirtualTableScroll) => void) & ((evt: "selectionChange", keys: HysVirtualTableKey[], rows: T[]) => void) & ((evt: "rowClick", row: T, index: number, event: MouseEvent) => void) & ((evt: "update:selectedRowKeys", keys: HysVirtualTableKey[]) => void) & ((evt: "update:currentRowKey", key: HysVirtualTableKey | null) => void) & ((evt: "currentChange", row: T | null, key: HysVirtualTableKey | null) => void) & ((evt: "rowDblclick", row: T, index: number, event: MouseEvent) => void) & ((evt: "cellClick", context: HysVirtualTableCell<T>, event: MouseEvent) => void) & ((evt: "sortChange", sort: HysVirtualTableSort | null) => void) & ((evt: "update:sortState", sort: HysVirtualTableSort | null) => void) & ((evt: "rangeChange", range: HysVirtualTableRange) => void) & ((evt: "endReached", info: {
64
64
  distance: number;
65
65
  total: number;
66
66
  }) => void);
@@ -1,4 +1,6 @@
1
1
  import type { HysPopupMotionProps } from "../motion/popup";
2
+ import type { HysDataGridColumnLayout, HysDataGridColumnLayoutSnapshot } from "../components/HysDataGrid/gridColumnLayout";
3
+ import type { HysDataGridCellContext, HysDataGridClass, HysDataGridContextMenu, HysDataGridHeaderContext, HysDataGridHeaderGroup, HysDataGridPin, HysDataGridRowContext, HysDataGridStyle } from "../components/HysDataGrid/gridPresentation";
2
4
  export type HysDataGridKey = string | number;
3
5
  export type HysDataGridSort = {
4
6
  key: string;
@@ -26,7 +28,11 @@ export interface GridColumn<T extends object = Record<string, unknown>> {
26
28
  resizable?: boolean;
27
29
  reorderable?: boolean;
28
30
  pinned?: "left" | "right";
31
+ pinnable?: boolean;
29
32
  align?: "left" | "center" | "right";
33
+ headerAlign?: "left" | "center" | "right";
34
+ headerWrap?: boolean;
35
+ group?: HysDataGridHeaderGroup;
30
36
  summary?: "sum" | "avg" | "min" | "max" | "count";
31
37
  editable?: boolean;
32
38
  }
@@ -64,14 +70,35 @@ export interface HysDataGridProps<T extends object> extends HysPopupMotionProps
64
70
  maxHeight?: number | string;
65
71
  scrollToTopOnQuery?: boolean;
66
72
  groupable?: boolean;
73
+ groupBy?: string;
74
+ defaultGroupBy?: string;
75
+ groupSummary?: boolean;
67
76
  showSummary?: boolean;
77
+ summaryScope?: "filtered" | "page" | "selected";
68
78
  summaryMethod?: (column: GridColumn<T>, rows: readonly T[]) => string | number;
69
79
  treeMode?: boolean;
70
80
  parentKey?: string;
71
81
  editable?: boolean;
82
+ keyboardNavigation?: boolean;
83
+ caption?: string;
84
+ striped?: boolean;
85
+ highlightCurrentRow?: boolean;
86
+ currentRowKey?: HysDataGridKey | null;
87
+ defaultCurrentRowKey?: HysDataGridKey;
88
+ rowClassName?: HysDataGridClass<HysDataGridRowContext<T>>;
89
+ rowStyle?: HysDataGridStyle<HysDataGridRowContext<T>>;
90
+ cellClassName?: HysDataGridClass<HysDataGridCellContext<T>>;
91
+ cellStyle?: HysDataGridStyle<HysDataGridCellContext<T>>;
92
+ headerClassName?: HysDataGridClass<HysDataGridHeaderContext<T>>;
93
+ headerStyle?: HysDataGridStyle<HysDataGridHeaderContext<T>>;
94
+ contextMenu?: HysDataGridContextMenu<T>;
72
95
  }
73
96
  export interface HysDataGridInstance {
74
97
  resetColumns(): void;
98
+ getColumnLayout(): HysDataGridColumnLayoutSnapshot;
99
+ applyColumnLayout(layout: HysDataGridColumnLayout): void;
100
+ setGroupBy(key: string): void;
101
+ setGroupsExpanded(expanded: boolean): void;
75
102
  getQuery(): HysDataGridQuery;
76
103
  setQuery(query: Partial<HysDataGridQuery>): void;
77
104
  resetQuery(): void;
@@ -81,6 +108,13 @@ export interface HysDataGridInstance {
81
108
  toggleRowSelection(key: HysDataGridKey, checked?: boolean): void;
82
109
  scrollTo(options: ScrollToOptions): void;
83
110
  scrollToRow(key: HysDataGridKey): boolean;
111
+ focusRow(key: HysDataGridKey): boolean;
112
+ getCurrentRowKey(): HysDataGridKey | null;
113
+ setCurrentRow(key: HysDataGridKey | null): void;
114
+ setColumnVisibility(key: string, visible: boolean): boolean;
115
+ pinColumn(key: string, side: HysDataGridPin | null): boolean;
116
+ resizeColumn(key: string, width: number): boolean;
117
+ resetColumnWidth(key: string): boolean;
84
118
  }
85
119
  export type GridRow<T extends object> = {
86
120
  row: T;
@@ -1,4 +1,4 @@
1
- import { type Ref } from "vue";
1
+ export { useContainerWidth as useFormWidth } from "./useContainerWidth";
2
2
  export type HysFormBreakpoint = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
3
3
  export type HysFormGridValue = number | Partial<Record<HysFormBreakpoint, number>>;
4
4
  export interface HysFormColSize {
@@ -8,4 +8,3 @@ export interface HysFormColSize {
8
8
  export type HysFormCol = HysFormColSize & Partial<Record<HysFormBreakpoint, number | HysFormColSize>>;
9
9
  export declare function resolveFormGrid(value: HysFormGridValue | undefined, width: number, fallback?: number): number;
10
10
  export declare function resolveFormCol(value: HysFormCol | undefined, width: number): HysFormColSize | undefined;
11
- export declare function useFormWidth(element: Ref<HTMLElement | undefined>): import("vue").ComputedRef<number>;
@@ -0,0 +1,9 @@
1
+ type ReferenceListeners = {
2
+ [Name in keyof HTMLElementEventMap]?: (event: HTMLElementEventMap[Name]) => void;
3
+ };
4
+ export declare function createPopupReferenceBinding(kind: "tooltip" | "popover", id: string, events: ReferenceListeners): {
5
+ attach: (node: HTMLElement | undefined, open: boolean) => void;
6
+ detach: () => void;
7
+ syncAria: (open: boolean) => void;
8
+ };
9
+ export {};
@@ -0,0 +1,7 @@
1
+ import { type CSSProperties, type Ref } from "vue";
2
+ import type { HysPopupSurfaceProps } from "./popupSurface";
3
+ export declare function popupMaximumWidth(props: HysPopupSurfaceProps, kind: "tooltip" | "popover"): string;
4
+ export declare function usePopupSurfaceStyle(props: HysPopupSurfaceProps, kind: "tooltip" | "popover", floatingStyle: Readonly<Ref<CSSProperties>>): {
5
+ style: import("vue").ComputedRef<CSSProperties>;
6
+ contentStyle: import("vue").ComputedRef<CSSProperties>;
7
+ };