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
@@ -1,57 +1,61 @@
1
- import { ref as D, shallowRef as Pe, useId as qe, inject as Be, computed as f, watch as x, onMounted as Ve, onActivated as Ne, onDeactivated as $e, onBeforeUnmount as Ue, nextTick as Te } from "vue";
2
- import { useHysControlState as Ge } from "./formContext.js";
3
- import { useChoiceModel as Je } from "./choiceModel.js";
4
- import { overlayOwnerKey as Qe } from "./overlayManager.js";
5
- import { useFloating as Xe } from "./useFloating.js";
6
- const ee = (a) => typeof a == "number" ? Number.isFinite(a) ? Math.max(0, a) + "px" : void 0 : a, te = (a) => Number.isFinite(a) ? Math.max(0, Math.min(3e4, a)) : 0, P = 'button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';
7
- function at(a, v, A) {
8
- const E = D(), F = Pe(), s = D(), R = qe() + "-popup", Oe = R + "-title", { disabled: Q } = Ge(a), y = Be(Qe, void 0), d = D(!0), j = D(!1), X = D(!1), q = Je(
1
+ import { ref as E, shallowRef as fe, useId as de, inject as ve, computed as i, watch as d, onMounted as me, onActivated as pe, onDeactivated as ye, onBeforeUnmount as ge, nextTick as k } from "vue";
2
+ import { useHysControlState as he } from "./formContext.js";
3
+ import { useChoiceModel as we } from "./choiceModel.js";
4
+ import { overlayOwnerKey as be } from "./overlayManager.js";
5
+ import { useFloating as xe } from "./useFloating.js";
6
+ import { popupFocusControls as j, usePopupSurfaceInteractions as Oe } from "./usePopupSurfaceInteractions.js";
7
+ import { createPopupReferenceBinding as Ce } from "./popupReferenceBinding.js";
8
+ import { usePopupSurfaceStyle as Ee, popupMaximumWidth as Re } from "./popupSurfaceStyle.js";
9
+ function Ie(t, v, y, u) {
10
+ const g = E(), b = fe(), x = E(), R = de() + "-popup", ee = R + "-title", { disabled: q } = he(t), s = ve(be, void 0), c = E(!0), O = E(!1), B = E(!1), M = we(
9
11
  {
10
12
  get modelValue() {
11
- return a.open ?? a.modelValue;
13
+ return t.open ?? t.modelValue;
12
14
  }
13
15
  },
14
- () => a.defaultOpen ?? !1
15
- ), p = f(
16
- () => d.value && !Q.value && (y == null ? void 0 : y.value) !== !1
17
- ), w = f(
18
- () => typeof a.reference == "function" ? a.reference() : a.reference
19
- ), h = f(() => {
20
- const e = w.value;
21
- return e instanceof HTMLElement ? e : (e == null ? void 0 : e.contextElement) ?? F.value ?? E.value;
22
- }), H = f(
23
- () => !!F.value && (F.value.matches(P) || !!F.value.querySelector(P))
16
+ () => t.defaultOpen ?? !1
17
+ ), A = i(
18
+ () => c.value && !q.value && (s == null ? void 0 : s.value) !== !1
19
+ ), m = i(
20
+ () => typeof t.reference == "function" ? t.reference() : t.reference
21
+ ), r = i(() => {
22
+ const e = m.value;
23
+ return e instanceof HTMLElement ? e : (e == null ? void 0 : e.contextElement) ?? b.value ?? g.value;
24
+ }), S = i(
25
+ () => !!b.value && (b.value.matches(j) || !!b.value.querySelector(j))
24
26
  );
25
- function ae() {
26
- var t;
27
- const e = h.value;
28
- (t = e != null && e.matches(P) ? e : (e == null ? void 0 : e.querySelector(P)) ?? E.value) == null || t.focus({ preventScroll: !0 });
27
+ function V() {
28
+ var a;
29
+ const e = r.value;
30
+ (a = e != null && e.matches(j) ? e : (e == null ? void 0 : e.querySelector(j)) ?? g.value) == null || a.focus({ preventScroll: !0 });
29
31
  }
30
- function Y() {
32
+ function K() {
31
33
  n.restoringFocus.value = !0;
32
34
  try {
33
- ae();
35
+ V();
34
36
  } finally {
35
37
  n.restoringFocus.value = !1;
36
38
  }
37
39
  }
38
- const T = f(() => {
39
- const e = w.value ?? F.value ?? E.value;
40
+ const C = i(() => {
41
+ const e = m.value ?? b.value ?? g.value;
40
42
  if (e)
41
43
  return {
42
44
  getBoundingClientRect: () => e.getBoundingClientRect(),
43
- contains: (t) => {
44
- var u, o;
45
- return !!((u = h.value) != null && u.contains(t)) || !!((o = E.value) != null && o.contains(t));
45
+ contains: (a) => {
46
+ var o, w;
47
+ return !!((o = r.value) != null && o.contains(a)) || !!((w = g.value) != null && w.contains(a));
46
48
  },
47
- focus: ae,
49
+ focus: V,
48
50
  get isConnected() {
49
- var t;
50
- return ((t = h.value) == null ? void 0 : t.isConnected) ?? !!w.value;
51
+ var a;
52
+ return ((a = r.value) == null ? void 0 : a.isConnected) ?? !!m.value;
51
53
  }
52
54
  };
53
- }), ne = f(() => {
54
- const e = a.appendTo;
55
+ }), N = i(() => {
56
+ const e = t.appendTo;
57
+ if (typeof document > "u")
58
+ return typeof e == "string" ? e : "body";
55
59
  if (e instanceof HTMLElement) return e;
56
60
  if (typeof e == "string")
57
61
  try {
@@ -60,399 +64,220 @@ function at(a, v, A) {
60
64
  return document.body;
61
65
  }
62
66
  return document.body;
63
- }), ue = D({});
64
- function Ae(e) {
65
- const t = e.placement.startsWith("left") || e.placement.startsWith("right"), u = t ? e.height : e.width, o = Number.isFinite(a.arrowOffset) ? Math.max(6, a.arrowOffset) : 10, r = t ? e.anchor.top + e.anchor.height / 2 - e.y : e.anchor.left + e.anchor.width / 2 - e.x;
66
- ue.value = {
67
- [t ? "top" : "left"]: Math.max(Math.min(o, u / 2), Math.min(r, u - o)) + "px"
67
+ }), U = E({});
68
+ function te(e) {
69
+ const a = e.placement.startsWith("left") || e.placement.startsWith("right"), o = a ? e.height : e.width, w = Number.isFinite(t.arrowOffset) ? Math.max(6, t.arrowOffset) : 10, z = a ? e.anchor.top + e.anchor.height / 2 - e.y : e.anchor.left + e.anchor.width / 2 - e.x;
70
+ U.value = {
71
+ [a ? "top" : "left"]: Math.max(Math.min(w, o / 2), Math.min(z, o - w)) + "px"
68
72
  };
69
73
  }
70
- const n = Xe(T, s, {
74
+ const n = xe(C, x, {
71
75
  get placement() {
72
- return a.placement;
76
+ return t.placement;
73
77
  },
74
78
  get gap() {
75
- return a.offset ?? (v === "tooltip" ? 7 : 8);
79
+ return t.offset ?? (v === "tooltip" ? 7 : 8);
76
80
  },
77
81
  get autoAdjustOverflow() {
78
- return a.autoAdjustOverflow;
82
+ return t.autoAdjustOverflow;
79
83
  },
80
84
  get closeOnEscape() {
81
- return a.closeOnEscape;
85
+ return t.closeOnEscape;
82
86
  },
83
87
  get closeOnOutside() {
84
- return a.closeOnOutside;
88
+ return t.closeOnOutside;
85
89
  },
86
90
  closeOnTab: v === "tooltip",
87
91
  get strategy() {
88
- return a.appendTo === !1 || ne.value !== document.body ? "absolute" : "fixed";
92
+ return t.appendTo === !1 || N.value !== document.body ? "absolute" : "fixed";
89
93
  },
90
- width: () => a.width,
91
- maxWidth: () => ee(a.maxWidth) ?? (v === "tooltip" ? "320px" : "360px"),
92
- zIndex: () => a.zIndex,
93
- onPosition: Ae,
94
- requestOpen(e, t) {
95
- return l(e, t), !1;
94
+ width: () => t.width,
95
+ maxWidth: () => Re(t, v),
96
+ zIndex: () => t.zIndex,
97
+ onPosition: te,
98
+ requestOpen(e, a, o) {
99
+ return f(e, a, o), !1;
96
100
  }
101
+ }), l = Oe(t, v, {
102
+ available: A,
103
+ anchor: C,
104
+ actualReference: r,
105
+ panel: x,
106
+ floating: n,
107
+ restoreReferenceFocus: K,
108
+ request: f,
109
+ allowTabExit: u == null ? void 0 : u.allowTabExit
110
+ }), { handlers: p, tab: H } = l, W = Ce(v, R, {
111
+ pointerenter: p.pointerEnter,
112
+ pointerleave: p.pointerLeave,
113
+ focusin: p.focusIn,
114
+ focusout: p.focusOut,
115
+ click: p.click,
116
+ contextmenu: p.contextmenu,
117
+ keydown: p.key
97
118
  });
98
- let S, m, B, C, i, I = 0, oe = -1, ie = -1, W = !1, V = !1, M = !1, z = !1, g = !1;
99
- const c = f(() => {
100
- const e = a.trigger ?? (v === "tooltip" ? ["hover", "focus"] : ["click"]), t = Array.isArray(e) ? e : [e];
101
- return new Set(t.includes("manual") ? [] : t);
102
- });
103
- function k() {
104
- clearTimeout(S), clearTimeout(m), S = m = void 0;
105
- }
106
- function N() {
107
- clearTimeout(B), B = void 0;
119
+ function F() {
120
+ var a;
121
+ const e = c.value && m.value ? r.value : void 0;
122
+ W.attach(
123
+ e && !((a = g.value) != null && a.contains(e)) ? e : void 0,
124
+ n.open.value
125
+ );
108
126
  }
127
+ let h, T = 0, G = -1, J = -1;
109
128
  function L() {
110
- W = V = M = z = g = !1;
111
- }
112
- function $() {
113
129
  var e;
114
- p.value && !j.value && q.current.value && ((e = T.value) != null && e.isConnected) ? (X.value = !0, n.show(!0)) : n.close(!1, !0);
130
+ A.value && !O.value && M.current.value && ((e = C.value) != null && e.isConnected) ? (B.value = !0, n.show(!0)) : n.close(!1, !0);
115
131
  }
116
- async function l(e, t = !1) {
117
- var o, r;
118
- if (k(), !d.value || e && (!p.value || n.restoringFocus.value || !((o = T.value) != null && o.isConnected)))
132
+ async function f(e, a = !1, o = "programmatic", w = !0) {
133
+ var Q, X, Y, Z, _;
134
+ const z = n.open.value;
135
+ if (!e && z && ((Q = u == null ? void 0 : u.allowClose) == null ? void 0 : Q.call(u, o)) === !1 || (l.clearDelays(), !c.value || e && (!A.value || n.restoringFocus.value || !((X = C.value) != null && X.isConnected))))
119
136
  return !1;
120
- e || L(), j.value = !1;
121
- let u = Object.is(q.current.value, e);
122
- return u || (u = await q.commit(
137
+ e || l.resetReasons(), O.value = !1;
138
+ let I = Object.is(M.current.value, e);
139
+ return I || (I = await M.commit(
123
140
  e,
124
- (O) => {
125
- A("update:open", O), A("update:modelValue", O);
141
+ ($) => {
142
+ y("update:open", $), y("update:modelValue", $);
126
143
  },
127
144
  () => {
128
145
  }
129
- )), d.value ? (u && (e ? $() : (n.close(!1, !0), t && ((r = T.value) != null && r.isConnected) && Y())), u) : !1;
130
- }
131
- function re() {
132
- if (clearTimeout(m), m = void 0, !p.value || n.restoringFocus.value || n.open.value || S)
133
- return;
134
- const e = te(a.showDelay);
135
- e ? S = setTimeout(() => {
136
- S = void 0, l(!0);
137
- }, e) : l(!0);
138
- }
139
- function le() {
140
- return g || W || a.enterable !== !1 && V || c.value.has("focus") && M || a.enterable !== !1 && z;
141
- }
142
- function U() {
143
- if (clearTimeout(S), S = void 0, clearTimeout(m), m = void 0, le() || !n.open.value) return;
144
- const e = () => {
145
- m = void 0, !le() && n.isTop() && l(!1);
146
- }, t = te(a.hideDelay);
147
- t ? m = setTimeout(e, t) : e();
148
- }
149
- function se() {
150
- c.value.has("hover") && (W = !0, re());
151
- }
152
- function ce() {
153
- c.value.has("hover") && (W = !1, U());
154
- }
155
- function Ee() {
156
- a.enterable !== !1 && (V = !0, clearTimeout(m), m = void 0);
157
- }
158
- function Se() {
159
- V = !1, c.value.has("hover") && U();
160
- }
161
- function fe(e) {
162
- var t;
163
- (t = s.value) != null && t.contains(e.target) || n.restoringFocus.value || (M = !0, c.value.has("focus") && re());
164
- }
165
- function ve(e) {
166
- var u, o, r;
167
- if ((u = s.value) != null && u.contains(e.target)) return;
168
- const t = e.relatedTarget;
169
- if (!((o = T.value) != null && o.contains(t))) {
170
- if (M = !1, (r = s.value) != null && r.contains(t) && a.enterable !== !1) {
171
- z = !0;
172
- return;
173
- }
174
- (c.value.has("focus") || c.value.has("hover")) && U();
175
- }
176
- }
177
- function Ce() {
178
- a.enterable !== !1 && (z = !0);
179
- }
180
- function Fe(e) {
181
- var u, o;
182
- const t = e.relatedTarget;
183
- if (!((u = s.value) != null && u.contains(t))) {
184
- if (z = !1, (o = T.value) != null && o.contains(t)) {
185
- M = !0;
186
- return;
187
- }
188
- (c.value.has("focus") || c.value.has("hover")) && U();
189
- }
190
- }
191
- function de(e) {
192
- var t;
193
- (t = s.value) != null && t.contains(e.target) || !c.value.has("click") || !p.value || (g = n.open.value ? !g && (W && c.value.has("hover") || M && c.value.has("focus")) : !0, l(g));
194
- }
195
- function he(e) {
196
- var t;
197
- (t = s.value) != null && t.contains(e.target) || !c.value.has("contextmenu") || !p.value || (e.preventDefault(), g = !0, l(!0));
198
- }
199
- function me(e) {
200
- var u;
201
- if ((u = s.value) != null && u.contains(e.target) || !c.value.size || !p.value || e.defaultPrevented)
202
- return;
203
- const t = e.target;
204
- if (!t.closest('input,textarea,select,[contenteditable="true"]')) {
205
- if (e.key === "F10" && e.shiftKey && c.value.has("contextmenu")) {
206
- e.preventDefault(), g = !0, l(!0);
207
- return;
208
- }
209
- (a.triggerKeys ?? ["Enter", " "]).some(
210
- (o) => o === e.key || o === "Space" && e.key === " "
211
- ) && (c.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), g = !n.open.value, l(g)));
212
- }
146
+ )), c.value ? (I && (e ? L() : (n.close(!1, !0), a && ((Y = u == null ? void 0 : u.shouldRestoreFocus) == null ? void 0 : Y.call(u)) !== !1 && ((Z = C.value) != null && Z.isConnected) && K(), z && w && ((_ = u == null ? void 0 : u.onDismiss) == null || _.call(u, o)))), I) : !1;
213
147
  }
214
- function ye(e) {
215
- return [...e.querySelectorAll(P)].filter(
216
- (t) => t.tabIndex >= 0 && !t.matches(":disabled") && !t.closest('[inert],[aria-hidden="true"]') && !!t.getClientRects().length && getComputedStyle(t).visibility !== "hidden"
217
- );
148
+ function D() {
149
+ h == null || h.disconnect(), h = void 0;
218
150
  }
219
- function Re(e) {
220
- const t = h.value, u = ye(document).filter((O) => {
221
- var K;
222
- return !((K = s.value) != null && K.contains(O));
223
- }), o = u.findIndex((O) => O === t || (t == null ? void 0 : t.contains(O))), r = o < 0 ? void 0 : u[o + (e ? -1 : 1)];
224
- return r == null || r.focus(), !!r;
151
+ function ne() {
152
+ D(), !(!n.open.value || !x.value || typeof ResizeObserver > "u") && (h = new ResizeObserver(n.schedule), h.observe(x.value), r.value && h.observe(r.value));
225
153
  }
226
- async function Z(e) {
227
- var K, we;
228
- if (e.key !== "Tab" || v !== "popover" || !n.open.value || !n.isTop())
229
- return;
230
- const t = e.target, u = (K = s.value) == null ? void 0 : K.contains(t), o = (we = T.value) == null ? void 0 : we.contains(t);
231
- if (!u && !o) return;
232
- const r = s.value ? ye(s.value) : [];
233
- if (o && !e.shiftKey && a.enterable !== !1 && r.length) {
234
- e.preventDefault(), r[0].focus();
235
- return;
236
- }
237
- if (u && t !== (e.shiftKey ? r[0] : r.at(-1)) && r.length)
238
- return;
239
- e.preventDefault(), await l(!1) && (u && e.shiftKey ? Y() : Re(e.shiftKey) || Y());
154
+ function P() {
155
+ l.reset(), l.clearAuto(), W.detach(), D(), document.removeEventListener("keydown", H, !0), n.close(!1, !0);
240
156
  }
241
- function ge() {
242
- N();
243
- const e = te(a.autoClose);
244
- n.open.value && e && (B = setTimeout(() => {
245
- B = void 0, l(!1);
246
- }, e));
247
- }
248
- function _() {
249
- C == null || C.disconnect(), C = void 0;
250
- }
251
- function je() {
252
- _(), !(!n.open.value || !s.value || typeof ResizeObserver > "u") && (C = new ResizeObserver(n.schedule), C.observe(s.value), h.value && C.observe(h.value));
253
- }
254
- const be = {
255
- pointerenter: se,
256
- pointerleave: ce,
257
- focusin: fe,
258
- focusout: ve,
259
- click: de,
260
- contextmenu: he,
261
- keydown: me
262
- };
263
- let b;
264
- function xe() {
265
- if (!(!i || !b))
266
- if (v === "tooltip") {
267
- const e = n.open.value ? [b["aria-describedby"], R].filter(Boolean).join(" ") : b["aria-describedby"];
268
- e ? i.setAttribute("aria-describedby", e) : i.removeAttribute("aria-describedby");
269
- } else {
270
- i.setAttribute(
271
- "aria-haspopup",
272
- b["aria-haspopup"] ?? "dialog"
273
- ), i.setAttribute("aria-expanded", String(n.open.value));
274
- const e = n.open.value ? R : b["aria-controls"];
275
- e ? i.setAttribute("aria-controls", e) : i.removeAttribute("aria-controls");
276
- }
277
- }
278
- function pe() {
279
- if (i)
280
- for (const [e, t] of Object.entries(be))
281
- i.removeEventListener(e, t);
282
- if (i && b)
283
- for (const [e, t] of Object.entries(b))
284
- t === null ? i.removeAttribute(e) : i.setAttribute(e, t);
285
- b = void 0, i = void 0;
286
- }
287
- function G() {
288
- var e;
289
- if (pe(), !(!d.value || !w.value)) {
290
- if (i = h.value, i && ((e = E.value) != null && e.contains(i))) {
291
- i = void 0;
292
- return;
293
- }
294
- i && (b = Object.fromEntries(
295
- [
296
- "aria-describedby",
297
- "aria-controls",
298
- "aria-expanded",
299
- "aria-haspopup"
300
- ].map((t) => [t, i.getAttribute(t)])
301
- ), xe());
302
- for (const [t, u] of Object.entries(be))
303
- i == null || i.addEventListener(t, u);
304
- }
305
- }
306
- function J() {
307
- k(), N(), L(), pe(), _(), document.removeEventListener("keydown", Z, !0), n.close(!1, !0);
308
- }
309
- x(
310
- q.current,
157
+ d(
158
+ M.current,
311
159
  () => {
312
- j.value = !1, $();
160
+ O.value = !1, L();
313
161
  },
314
162
  { flush: "post" }
315
- ), x(
316
- [p, E, w],
163
+ ), d(
164
+ [A, g, m],
317
165
  () => {
318
- p.value || (k(), N(), L()), $(), G();
166
+ A.value || (l.reset(), l.clearAuto()), L(), F();
319
167
  },
320
168
  { flush: "post", immediate: !0 }
321
- ), x(
322
- () => y == null ? void 0 : y.value,
169
+ ), d(
170
+ () => s == null ? void 0 : s.value,
323
171
  (e) => {
324
- e === !1 && (j.value = !0, J());
172
+ e === !1 && (O.value = !0, P());
325
173
  },
326
174
  { flush: "sync" }
327
- ), x(() => a.autoClose, ge), x(
328
- [h, w],
175
+ ), d(() => t.autoClose, l.startAuto), d(
176
+ [r, m],
329
177
  () => {
330
- k(), L(), n.schedule(), G();
178
+ l.reset(), n.schedule(), F();
331
179
  },
332
180
  { flush: "post" }
333
- ), x(
334
- () => a.trigger,
181
+ ), d(
182
+ () => t.trigger,
335
183
  () => {
336
- k(), L();
184
+ l.reset();
337
185
  }
338
- ), x(
186
+ ), d(
339
187
  () => [
340
- a.placement,
341
- a.offset,
342
- a.autoAdjustOverflow,
343
- a.width,
344
- a.maxWidth,
345
- a.maxHeight,
346
- a.appendTo,
347
- a.arrowOffset
188
+ t.placement,
189
+ t.offset,
190
+ t.autoAdjustOverflow,
191
+ t.width,
192
+ t.maxWidth,
193
+ t.maxHeight,
194
+ t.appendTo,
195
+ t.arrowOffset
348
196
  ],
349
197
  n.schedule,
350
198
  { flush: "post" }
351
- ), x([n.open, s, h], je, { flush: "post" }), x(
199
+ ), d([n.open, x, r], ne, { flush: "post" }), d(
352
200
  n.open,
353
201
  (e) => {
354
- I++, xe(), A("visibleChange", e), A("openChange", e), A(e ? "show" : "hide"), document.removeEventListener("keydown", Z, !0), e ? (X.value = !0, document.addEventListener("keydown", Z, !0), ge()) : (k(), N(), L(), _());
202
+ T++, W.syncAria(e), y("visibleChange", e), y("openChange", e), y(e ? "show" : "hide"), document.removeEventListener("keydown", H, !0), e ? (B.value = !0, document.addEventListener("keydown", H, !0), l.startAuto()) : (l.reset(), l.clearAuto(), D());
355
203
  },
356
204
  { flush: "sync" }
357
205
  );
358
- async function Me() {
359
- const e = I;
360
- await Te(), d.value && n.open.value && e === I && oe !== e && (oe = e, A("opened"));
361
- }
362
- async function ke() {
363
- const e = I;
364
- await Te(), d.value && !n.open.value && e === I && ie !== e && (ie = e, A("closed"));
206
+ async function ae() {
207
+ const e = T;
208
+ await k(), c.value && n.open.value && e === T && G !== e && (G = e, y("opened"));
365
209
  }
366
- function Le() {
367
- j.value = !0, J();
210
+ async function ue() {
211
+ const e = T;
212
+ await k(), c.value && !n.open.value && e === T && J !== e && (J = e, y("closed"));
368
213
  }
369
- Ve(() => {
370
- $(), G();
371
- }), Ne(() => {
372
- d.value = !0, G();
373
- }), $e(() => {
374
- d.value = !1, j.value = !0, J();
375
- }), Ue(() => {
376
- d.value = !1, J();
214
+ function le() {
215
+ O.value = !0, P();
216
+ }
217
+ me(() => {
218
+ L(), F();
219
+ }), pe(() => {
220
+ c.value = !0, F();
221
+ }), ye(() => {
222
+ c.value = !1, O.value = !0, P();
223
+ }), ge(() => {
224
+ c.value = !1, P();
377
225
  });
378
- const De = f(
379
- () => n.open.value || a.forceRender || a.destroyOnHide === !1 && X.value
380
- ), He = f(() => {
381
- const e = (a.effect ?? (v === "tooltip" ? "dark" : "light")) === "dark";
382
- return {
383
- "--hys-ui-popup-surface": a.color || (e ? "#172744" : "var(--hys-ui-surface,var(--hys-ui-theme-surface))"),
384
- "--hys-ui-popup-color": a.textColor || (e ? "#fff" : "var(--hys-ui-text,var(--hys-ui-theme-text))"),
385
- "--hys-ui-popup-border": a.color || (e ? "#172744" : "var(--hys-ui-border,var(--hys-ui-theme-border))")
386
- };
387
- }), Ie = f(() => ({
388
- ...a.overlayStyle,
389
- ...n.style.value,
390
- ...He.value,
391
- overflow: "visible",
392
- maxWidth: `min(${ee(a.maxWidth) ?? (v === "tooltip" ? "320px" : "360px")},calc(100vw - 20px))`,
393
- minWidth: a.width !== void 0 ? "0" : void 0
394
- })), We = f(() => ({
395
- ...a.contentStyle,
396
- maxHeight: a.maxHeight !== void 0 ? `min(${ee(a.maxHeight)},calc(100vh - 20px))` : "calc(100vh - 20px)"
397
- })), ze = f(() => ({
226
+ const ce = i(
227
+ () => n.open.value || t.forceRender || t.destroyOnHide === !1 && B.value
228
+ ), { style: re, contentStyle: oe } = Ee(
229
+ t,
230
+ v,
231
+ n.style
232
+ ), ie = i(() => ({
398
233
  open: n.open.value,
399
- show: () => l(!0),
400
- close: () => l(!1),
401
- toggle: () => l(!n.open.value),
234
+ show: () => f(!0),
235
+ close: () => f(!1),
236
+ toggle: () => f(!n.open.value),
402
237
  updatePosition: n.schedule
403
- })), Ke = f(() => ({
404
- tabindex: w.value ? -1 : H.value ? void 0 : Q.value ? -1 : a.triggerTabindex ?? 0,
405
- role: v === "popover" && !H.value && !w.value ? "button" : void 0,
406
- "aria-disabled": !H.value && Q.value || void 0,
407
- ...H.value ? {} : v === "tooltip" ? { "aria-describedby": n.open.value ? R : void 0 } : {
238
+ })), se = i(() => ({
239
+ tabindex: m.value ? -1 : S.value ? void 0 : q.value ? -1 : t.triggerTabindex ?? 0,
240
+ role: v === "popover" && !S.value && !m.value ? "button" : void 0,
241
+ "aria-disabled": !S.value && q.value || void 0,
242
+ ...S.value ? {} : v === "tooltip" ? { "aria-describedby": n.open.value ? R : void 0 } : {
408
243
  "aria-controls": n.open.value ? R : void 0,
409
244
  "aria-expanded": n.open.value,
410
245
  "aria-haspopup": "dialog"
411
246
  }
412
247
  }));
413
248
  return {
414
- wrapper: E,
415
- referenceElement: F,
416
- panel: s,
417
- actualReference: h,
418
- nativeReference: H,
249
+ wrapper: g,
250
+ referenceElement: b,
251
+ panel: x,
252
+ actualReference: r,
253
+ nativeReference: S,
419
254
  id: R,
420
- titleId: Oe,
255
+ titleId: ee,
421
256
  open: n.open,
422
257
  placement: n.placement,
423
- active: f(() => d.value && (y == null ? void 0 : y.value) !== !1),
424
- mounted: De,
425
- teleportTo: ne,
426
- arrowStyle: ue,
427
- style: Ie,
428
- contentStyle: We,
429
- scope: ze,
430
- wrapperAttrs: Ke,
431
- pointerEnter: se,
432
- pointerLeave: ce,
433
- panelEnter: Ee,
434
- panelLeave: Se,
435
- focusIn: fe,
436
- focusOut: ve,
437
- panelFocusIn: Ce,
438
- panelFocusOut: Fe,
439
- click: de,
440
- contextmenu: he,
441
- key: me,
442
- afterEnter: Me,
443
- afterLeave: ke,
444
- inactive: Le,
445
- request: l,
446
- show: () => l(!0),
447
- hide: () => l(!1),
448
- toggle: () => l(!n.open.value),
258
+ active: i(() => c.value && (s == null ? void 0 : s.value) !== !1),
259
+ mounted: ce,
260
+ teleportTo: N,
261
+ arrowStyle: U,
262
+ style: re,
263
+ contentStyle: oe,
264
+ scope: ie,
265
+ wrapperAttrs: se,
266
+ ...p,
267
+ afterEnter: ae,
268
+ afterLeave: ue,
269
+ inactive: le,
270
+ request: f,
271
+ show: () => f(!0),
272
+ hide: () => f(!1),
273
+ toggle: () => f(!n.open.value),
449
274
  updatePosition: n.schedule,
450
275
  focus: () => {
451
276
  var e;
452
- return (e = T.value) == null ? void 0 : e.focus();
277
+ return (e = C.value) == null ? void 0 : e.focus();
453
278
  }
454
279
  };
455
280
  }
456
281
  export {
457
- at as usePopupSurface
282
+ Ie as usePopupSurface
458
283
  };