hys-ui 0.6.0 → 0.8.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 (268) hide show
  1. package/CHANGELOG.md +15 -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/HysDatePicker/HysDatePicker.vue.js +102 -48
  9. package/dist/components/HysDatePicker/HysDatePickerControl.vue.js +2 -2
  10. package/dist/components/HysDatePicker/HysDatePickerControl2.vue.js +874 -532
  11. package/dist/components/HysDatePicker/HysDatePickerPanel.vue.js +2 -2
  12. package/dist/components/HysDatePicker/HysDatePickerPanel2.vue.js +209 -168
  13. package/dist/components/HysDateRangePicker/HysDateRangePicker.vue.js +102 -48
  14. package/dist/components/HysDescriptions/HysDescriptions.vue.js +7 -0
  15. package/dist/components/HysDescriptions/HysDescriptions2.vue.js +146 -0
  16. package/dist/components/HysForm/HysForm2.vue.js +9 -8
  17. package/dist/components/HysIcon/HysIcon.vue.js +373 -0
  18. package/dist/components/HysIcon/HysIcon2.vue.js +5 -0
  19. package/dist/components/HysIcon/IconGraphic/IconGraphic.vue.js +147 -0
  20. package/dist/components/HysIcon/IconGraphic/IconGraphic2.vue.js +4 -0
  21. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.js +7 -0
  22. package/dist/components/HysIcon/IconPickerPanel/IconPickerPanel2.vue.js +440 -0
  23. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.js +29 -0
  24. package/dist/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic2.vue.js +4 -0
  25. package/dist/components/HysIcon/IconTooltip/IconTooltip.vue.js +19 -0
  26. package/dist/components/HysIcon/IconTooltip/IconTooltip2.vue.js +4 -0
  27. package/dist/components/HysIcon/builtins/access.js +180 -0
  28. package/dist/components/HysIcon/builtins/actions.js +327 -0
  29. package/dist/components/HysIcon/builtins/business.js +364 -0
  30. package/dist/components/HysIcon/builtins/catalog/access-1.json.js +51 -0
  31. package/dist/components/HysIcon/builtins/catalog/access-2.json.js +35 -0
  32. package/dist/components/HysIcon/builtins/catalog/accessibility.json.js +26 -0
  33. package/dist/components/HysIcon/builtins/catalog/arrows-1.json.js +45 -0
  34. package/dist/components/HysIcon/builtins/catalog/arrows-2.json.js +46 -0
  35. package/dist/components/HysIcon/builtins/catalog/arrows-3.json.js +42 -0
  36. package/dist/components/HysIcon/builtins/catalog/charts-1.json.js +50 -0
  37. package/dist/components/HysIcon/builtins/catalog/charts-2.json.js +13 -0
  38. package/dist/components/HysIcon/builtins/catalog/commerce.json.js +43 -0
  39. package/dist/components/HysIcon/builtins/catalog/communication-1.json.js +49 -0
  40. package/dist/components/HysIcon/builtins/catalog/communication-2.json.js +37 -0
  41. package/dist/components/HysIcon/builtins/catalog/design-1.json.js +61 -0
  42. package/dist/components/HysIcon/builtins/catalog/design-2.json.js +27 -0
  43. package/dist/components/HysIcon/builtins/catalog/development-1.json.js +58 -0
  44. package/dist/components/HysIcon/builtins/catalog/development-2.json.js +60 -0
  45. package/dist/components/HysIcon/builtins/catalog/development-3.json.js +25 -0
  46. package/dist/components/HysIcon/builtins/catalog/devices-1.json.js +52 -0
  47. package/dist/components/HysIcon/builtins/catalog/devices-2.json.js +55 -0
  48. package/dist/components/HysIcon/builtins/catalog/devices-3.json.js +23 -0
  49. package/dist/components/HysIcon/builtins/catalog/education.json.js +34 -0
  50. package/dist/components/HysIcon/builtins/catalog/emoji.json.js +24 -0
  51. package/dist/components/HysIcon/builtins/catalog/files-1.json.js +45 -0
  52. package/dist/components/HysIcon/builtins/catalog/files-2.json.js +47 -0
  53. package/dist/components/HysIcon/builtins/catalog/files-3.json.js +8 -0
  54. package/dist/components/HysIcon/builtins/catalog/food-1.json.js +67 -0
  55. package/dist/components/HysIcon/builtins/catalog/food-2.json.js +40 -0
  56. package/dist/components/HysIcon/builtins/catalog/home.json.js +36 -0
  57. package/dist/components/HysIcon/builtins/catalog/layout-1.json.js +46 -0
  58. package/dist/components/HysIcon/builtins/catalog/layout-2.json.js +45 -0
  59. package/dist/components/HysIcon/builtins/catalog/manifest.json.js +4 -0
  60. package/dist/components/HysIcon/builtins/catalog/maps-1.json.js +61 -0
  61. package/dist/components/HysIcon/builtins/catalog/maps-2.json.js +24 -0
  62. package/dist/components/HysIcon/builtins/catalog/media-1.json.js +57 -0
  63. package/dist/components/HysIcon/builtins/catalog/media-2.json.js +13 -0
  64. package/dist/components/HysIcon/builtins/catalog/medical.json.js +30 -0
  65. package/dist/components/HysIcon/builtins/catalog/nature.json.js +54 -0
  66. package/dist/components/HysIcon/builtins/catalog/recreation.json.js +51 -0
  67. package/dist/components/HysIcon/builtins/catalog/shapes.json.js +54 -0
  68. package/dist/components/HysIcon/builtins/catalog/text-1.json.js +52 -0
  69. package/dist/components/HysIcon/builtins/catalog/text-2.json.js +54 -0
  70. package/dist/components/HysIcon/builtins/catalog/text-3.json.js +58 -0
  71. package/dist/components/HysIcon/builtins/catalog/text-4.json.js +41 -0
  72. package/dist/components/HysIcon/builtins/catalog/time.json.js +39 -0
  73. package/dist/components/HysIcon/builtins/catalog/transport-1.json.js +57 -0
  74. package/dist/components/HysIcon/builtins/catalog/transport-2.json.js +7 -0
  75. package/dist/components/HysIcon/builtins/catalog/weather.json.js +46 -0
  76. package/dist/components/HysIcon/builtins/communication.js +314 -0
  77. package/dist/components/HysIcon/builtins/documents.js +315 -0
  78. package/dist/components/HysIcon/builtins/extendedCatalog.js +75 -0
  79. package/dist/components/HysIcon/builtins/iconInCategory.js +11 -0
  80. package/dist/components/HysIcon/builtins/media.js +255 -0
  81. package/dist/components/HysIcon/builtins/navigation.js +276 -0
  82. package/dist/components/HysIcon/builtins/technology.js +189 -0
  83. package/dist/components/HysIcon/iconBuiltins.js +228 -0
  84. package/dist/components/HysIcon/iconConfig.js +30 -0
  85. package/dist/components/HysIcon/iconRegistry.js +183 -0
  86. package/dist/components/HysIcon/iconSafety.js +191 -0
  87. package/dist/components/HysIcon/iconStyle.js +70 -0
  88. package/dist/components/HysIcon/useIconResource.js +75 -0
  89. package/dist/components/HysPopconfirm/HysPopconfirm.vue.js +7 -0
  90. package/dist/components/HysPopconfirm/HysPopconfirm2.vue.js +346 -0
  91. package/dist/components/HysPopconfirm/usePopconfirmAction.js +32 -0
  92. package/dist/components/HysResult/HysResult.vue.js +7 -0
  93. package/dist/components/HysResult/HysResult2.vue.js +124 -0
  94. package/dist/components/HysSpace/HysSpace.vue.js +7 -0
  95. package/dist/components/HysSpace/HysSpace2.vue.js +79 -0
  96. package/dist/components/HysSpace/spaceItems.js +17 -0
  97. package/dist/components/HysSpin/HysSpin.vue.js +7 -0
  98. package/dist/components/HysSpin/HysSpin2.vue.js +427 -0
  99. package/dist/components/HysSpin/SpinGlyph/SpinGlyph.vue.js +334 -0
  100. package/dist/components/HysSpin/SpinGlyph/SpinGlyph2.vue.js +5 -0
  101. package/dist/components/HysSpin/SpinPortal/SpinPortal.vue.js +7 -0
  102. package/dist/components/HysSpin/SpinPortal/SpinPortal2.vue.js +66 -0
  103. package/dist/components/HysSpin/SpinPortal/spinTarget.js +57 -0
  104. package/dist/components/HysSpin/spinCatalog.js +35 -0
  105. package/dist/components/HysSpin/spinConfig.js +32 -0
  106. package/dist/components/HysSpin/spinService.js +160 -0
  107. package/dist/components/HysSpin/spinStyle.js +39 -0
  108. package/dist/components/HysSpin/useHysSpinTask.js +92 -0
  109. package/dist/components/HysSpin/useSpinFullscreen.js +60 -0
  110. package/dist/components/HysSpin/useSpinVisibility.js +59 -0
  111. package/dist/components/HysSplitPane/HysSplitPane.vue.js +285 -204
  112. package/dist/components/HysSplitPane/splitPaneResize.js +75 -0
  113. package/dist/components/HysTabPane/HysTabPane.vue.js +49 -0
  114. package/dist/components/HysTabPane/HysTabPane2.vue.js +4 -0
  115. package/dist/components/HysTable/HysTable.vue.js +3 -3
  116. package/dist/components/HysTable/HysTable2.vue.js +412 -383
  117. package/dist/components/HysTable/tableSearch.js +24 -0
  118. package/dist/components/HysTabs/HysTabs.vue.js +172 -5
  119. package/dist/components/HysTabs/HysTabs2.vue.js +2 -275
  120. package/dist/components/HysTabs/TabsMore/TabsMore.vue.js +7 -0
  121. package/dist/components/HysTabs/TabsMore/TabsMore2.vue.js +133 -0
  122. package/dist/components/HysTabs/TabsPanels/TabsPanels.vue.js +161 -0
  123. package/dist/components/HysTabs/TabsPanels/TabsPanels2.vue.js +4 -0
  124. package/dist/components/HysTabs/TabsPrompts/TabsPrompts.vue.js +4 -0
  125. package/dist/components/HysTabs/TabsPrompts/TabsPrompts2.vue.js +88 -0
  126. package/dist/components/HysTabs/TabsSlot/TabsSlot.js +13 -0
  127. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.js +7 -0
  128. package/dist/components/HysTabs/TabsWorkbench/TabsWorkbench2.vue.js +687 -0
  129. package/dist/components/HysTabs/tabsConfig.js +35 -0
  130. package/dist/components/HysTabs/tabsItems.js +79 -0
  131. package/dist/components/HysTabs/tabsPersistence.js +118 -0
  132. package/dist/components/HysTabs/useHysRouteTabs.js +77 -0
  133. package/dist/components/HysTabs/useTabsDragGhost.js +47 -0
  134. package/dist/components/HysTabs/useTabsNav.js +127 -0
  135. package/dist/components/HysTabs/useTabsOverlays.js +52 -0
  136. package/dist/components/HysTabs/useTabsPanels.js +101 -0
  137. package/dist/components/HysTabs/useTabsPointer.js +131 -0
  138. package/dist/components/HysTabs/useTabsState.js +263 -0
  139. package/dist/composables/datePicker.js +153 -94
  140. package/dist/composables/datePickerModel.js +156 -0
  141. package/dist/composables/datePickerPanels.js +78 -0
  142. package/dist/composables/datePickerRules.js +166 -0
  143. package/dist/composables/floatingPosition.js +32 -13
  144. package/dist/composables/formLayout.js +20 -42
  145. package/dist/composables/popupSurfaceStyle.js +30 -0
  146. package/dist/composables/useContainerWidth.js +24 -0
  147. package/dist/composables/useDatePicker.js +274 -381
  148. package/dist/composables/useFloating.js +42 -41
  149. package/dist/composables/usePageVisibility.js +19 -0
  150. package/dist/composables/usePopupSurface.js +153 -162
  151. package/dist/composables/usePopupSurfaceInteractions.js +91 -90
  152. package/dist/composables/useSplitPaneDrag.js +29 -26
  153. package/dist/composables/useSvgInstanceId.js +15 -0
  154. package/dist/composables/useTable.js +321 -306
  155. package/dist/composables/useTabularRowNavigation.js +46 -0
  156. package/dist/index.js +229 -185
  157. package/dist/internal/MultiSplitPane.vue.js +246 -205
  158. package/dist/internal/PopupSurfacePanel.vue.js +2 -2
  159. package/dist/internal/PopupSurfacePanel2.vue.js +35 -30
  160. package/dist/style.css +1 -1
  161. package/dist/types/components/HysDataGrid/HysDataGrid.vue.d.ts +40 -2
  162. package/dist/types/components/HysDataGrid/gridColumnLayout.d.ts +22 -0
  163. package/dist/types/components/HysDataGrid/gridPresentation.d.ts +47 -0
  164. package/dist/types/components/HysDataGrid/useGridContextMenu.d.ts +14 -0
  165. package/dist/types/components/HysDatePicker/HysDatePicker.vue.d.ts +6 -9
  166. package/dist/types/components/HysDatePicker/HysDatePickerControl.vue.d.ts +12 -0
  167. package/dist/types/components/HysDatePicker/HysDatePickerPanel.vue.d.ts +6 -0
  168. package/dist/types/components/HysDateRangePicker/HysDateRangePicker.vue.d.ts +6 -9
  169. package/dist/types/components/HysDescriptions/HysDescriptions.vue.d.ts +20 -0
  170. package/dist/types/components/HysDescriptions/descriptionsTypes.d.ts +54 -0
  171. package/dist/types/components/HysForm/HysForm.vue.d.ts +1 -1
  172. package/dist/types/components/HysFormItem/HysFormItem.vue.d.ts +1 -1
  173. package/dist/types/components/HysIcon/HysIcon.vue.d.ts +76 -0
  174. package/dist/types/components/HysIcon/IconGraphic/IconGraphic.vue.d.ts +43 -0
  175. package/dist/types/components/HysIcon/IconPickerPanel/IconPickerPanel.vue.d.ts +17 -0
  176. package/dist/types/components/HysIcon/IconReferenceGraphic/IconReferenceGraphic.vue.d.ts +10 -0
  177. package/dist/types/components/HysIcon/IconTooltip/IconTooltip.vue.d.ts +11 -0
  178. package/dist/types/components/HysIcon/builtins/access.d.ts +15 -0
  179. package/dist/types/components/HysIcon/builtins/actions.d.ts +30 -0
  180. package/dist/types/components/HysIcon/builtins/business.d.ts +31 -0
  181. package/dist/types/components/HysIcon/builtins/communication.d.ts +27 -0
  182. package/dist/types/components/HysIcon/builtins/documents.d.ts +29 -0
  183. package/dist/types/components/HysIcon/builtins/extendedCatalog.d.ts +2 -0
  184. package/dist/types/components/HysIcon/builtins/iconInCategory.d.ts +2 -0
  185. package/dist/types/components/HysIcon/builtins/media.d.ts +24 -0
  186. package/dist/types/components/HysIcon/builtins/navigation.d.ts +30 -0
  187. package/dist/types/components/HysIcon/builtins/technology.d.ts +18 -0
  188. package/dist/types/components/HysIcon/iconBuiltins.d.ts +2 -0
  189. package/dist/types/components/HysIcon/iconConfig.d.ts +10 -0
  190. package/dist/types/components/HysIcon/iconRegistry.d.ts +5 -0
  191. package/dist/types/components/HysIcon/iconSafety.d.ts +8 -0
  192. package/dist/types/components/HysIcon/iconStyle.d.ts +6 -0
  193. package/dist/types/components/HysIcon/iconTypes.d.ts +192 -0
  194. package/dist/types/components/HysIcon/useIconResource.d.ts +14 -0
  195. package/dist/types/components/HysPopconfirm/HysPopconfirm.vue.d.ts +85 -0
  196. package/dist/types/components/HysPopconfirm/popconfirmTypes.d.ts +72 -0
  197. package/dist/types/components/HysPopconfirm/usePopconfirmAction.d.ts +6 -0
  198. package/dist/types/components/HysProgress/HysProgress.vue.d.ts +1 -1
  199. package/dist/types/components/HysResult/HysResult.vue.d.ts +22 -0
  200. package/dist/types/components/HysResult/resultTypes.d.ts +32 -0
  201. package/dist/types/components/HysSpace/HysSpace.vue.d.ts +15 -0
  202. package/dist/types/components/HysSpace/spaceItems.d.ts +9 -0
  203. package/dist/types/components/HysSpace/spaceTypes.d.ts +20 -0
  204. package/dist/types/components/HysSpin/HysSpin.vue.d.ts +84 -0
  205. package/dist/types/components/HysSpin/SpinGlyph/SpinGlyph.vue.d.ts +16 -0
  206. package/dist/types/components/HysSpin/SpinPortal/SpinPortal.vue.d.ts +21 -0
  207. package/dist/types/components/HysSpin/SpinPortal/spinTarget.d.ts +3 -0
  208. package/dist/types/components/HysSpin/spinCatalog.d.ts +122 -0
  209. package/dist/types/components/HysSpin/spinConfig.d.ts +10 -0
  210. package/dist/types/components/HysSpin/spinService.d.ts +7 -0
  211. package/dist/types/components/HysSpin/spinStyle.d.ts +5 -0
  212. package/dist/types/components/HysSpin/spinTypes.d.ts +133 -0
  213. package/dist/types/components/HysSpin/useHysSpinTask.d.ts +4 -0
  214. package/dist/types/components/HysSpin/useSpinFullscreen.d.ts +17 -0
  215. package/dist/types/components/HysSpin/useSpinVisibility.d.ts +10 -0
  216. package/dist/types/components/HysSplitPane/HysSplitPane.vue.d.ts +25 -2
  217. package/dist/types/components/HysSplitPane/splitPaneResize.d.ts +17 -0
  218. package/dist/types/components/HysTabPane/HysTabPane.vue.d.ts +11 -0
  219. package/dist/types/components/HysTable/HysTable.vue.d.ts +16 -10
  220. package/dist/types/components/HysTable/tableSearch.d.ts +2 -0
  221. package/dist/types/components/HysTabs/HysTabs.vue.d.ts +83 -74
  222. package/dist/types/components/HysTabs/TabsMore/TabsMore.vue.d.ts +14 -0
  223. package/dist/types/components/HysTabs/TabsPanels/TabsPanels.vue.d.ts +17 -0
  224. package/dist/types/components/HysTabs/TabsPrompts/TabsPrompts.vue.d.ts +7 -0
  225. package/dist/types/components/HysTabs/TabsSlot/TabsSlot.d.ts +9 -0
  226. package/dist/types/components/HysTabs/TabsWorkbench/TabsWorkbench.vue.d.ts +32 -0
  227. package/dist/types/components/HysTabs/tabsConfig.d.ts +4 -0
  228. package/dist/types/components/HysTabs/tabsItems.d.ts +14 -0
  229. package/dist/types/components/HysTabs/tabsPersistence.d.ts +6 -0
  230. package/dist/types/components/HysTabs/tabsTypes.d.ts +236 -0
  231. package/dist/types/components/HysTabs/useHysRouteTabs.d.ts +22 -0
  232. package/dist/types/components/HysTabs/useTabsDragGhost.d.ts +22 -0
  233. package/dist/types/components/HysTabs/useTabsNav.d.ts +20 -0
  234. package/dist/types/components/HysTabs/useTabsOverlays.d.ts +54 -0
  235. package/dist/types/components/HysTabs/useTabsPanels.d.ts +14 -0
  236. package/dist/types/components/HysTabs/useTabsPointer.d.ts +30 -0
  237. package/dist/types/components/HysTabs/useTabsState.d.ts +32 -0
  238. package/dist/types/components/HysTagInput/HysTagInput.vue.d.ts +2 -2
  239. package/dist/types/components/HysToast/toastPresentation.d.ts +1 -1
  240. package/dist/types/components/HysVirtualTable/HysVirtualTable.vue.d.ts +2 -2
  241. package/dist/types/composables/dataGrid.d.ts +34 -0
  242. package/dist/types/composables/datePicker.d.ts +14 -214
  243. package/dist/types/composables/datePickerModel.d.ts +63 -0
  244. package/dist/types/composables/datePickerPanels.d.ts +23 -0
  245. package/dist/types/composables/datePickerRules.d.ts +31 -0
  246. package/dist/types/composables/datePickerTypes.d.ts +277 -0
  247. package/dist/types/composables/floatingPosition.d.ts +1 -1
  248. package/dist/types/composables/formLayout.d.ts +1 -2
  249. package/dist/types/composables/popupSurfaceStyle.d.ts +7 -0
  250. package/dist/types/composables/table.d.ts +10 -1
  251. package/dist/types/composables/toastQueue.d.ts +4 -4
  252. package/dist/types/composables/toastQueueModel.d.ts +2 -2
  253. package/dist/types/composables/useColorPicker.d.ts +2 -4
  254. package/dist/types/composables/useContainerWidth.d.ts +2 -0
  255. package/dist/types/composables/useContextMenu.d.ts +2 -4
  256. package/dist/types/composables/useDatePicker.d.ts +20 -11
  257. package/dist/types/composables/useFloating.d.ts +4 -5
  258. package/dist/types/composables/usePageVisibility.d.ts +1 -0
  259. package/dist/types/composables/usePopupSurface.d.ts +9 -3
  260. package/dist/types/composables/usePopupSurfaceInteractions.d.ts +4 -2
  261. package/dist/types/composables/useSplitPaneDrag.d.ts +2 -2
  262. package/dist/types/composables/useSvgInstanceId.d.ts +1 -0
  263. package/dist/types/composables/useTable.d.ts +2 -0
  264. package/dist/types/composables/useTabularRowNavigation.d.ts +18 -0
  265. package/dist/types/index.d.ts +31 -3
  266. package/dist/types/internal/MultiSplitPane.vue.d.ts +10 -1
  267. package/dist/types/internal/PopupSurfacePanel.vue.d.ts +3 -0
  268. package/package.json +1 -1
@@ -1,22 +1,23 @@
1
- import { computed as Y } from "vue";
2
- const Z = 'button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';
3
- function $(r, w, {
1
+ import { computed as Z } from "vue";
2
+ const _ = 'button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"]),[contenteditable="true"]';
3
+ function q(o, w, {
4
4
  available: T,
5
- anchor: D,
5
+ anchor: k,
6
6
  actualReference: L,
7
- panel: o,
7
+ panel: i,
8
8
  floating: s,
9
9
  restoreReferenceFocus: F,
10
- request: l
10
+ request: c,
11
+ allowTabExit: M
11
12
  }) {
12
- const k = (e) => Number.isFinite(e) ? Math.max(0, Math.min(3e4, e)) : 0;
13
- let v, c, b, h = !1, x = !1, d = !1, m = !1, f = !1;
14
- const u = Y(() => {
15
- const e = r.trigger ?? (w === "tooltip" ? ["hover", "focus"] : ["click"]), t = Array.isArray(e) ? e : [e];
13
+ const p = (e) => Number.isFinite(e) ? Math.max(0, Math.min(3e4, e)) : 0;
14
+ let v, l, b, h = !1, x = !1, d = !1, m = !1, f = !1;
15
+ const u = Z(() => {
16
+ const e = o.trigger ?? (w === "tooltip" ? ["hover", "focus"] : ["click"]), t = Array.isArray(e) ? e : [e];
16
17
  return new Set(t.includes("manual") ? [] : t);
17
18
  });
18
19
  function K() {
19
- clearTimeout(v), clearTimeout(c), v = c = void 0;
20
+ clearTimeout(v), clearTimeout(l), v = l = void 0;
20
21
  }
21
22
  function S() {
22
23
  clearTimeout(b), b = void 0;
@@ -25,148 +26,148 @@ function $(r, w, {
25
26
  h = x = d = m = f = !1;
26
27
  }
27
28
  function I() {
28
- if (clearTimeout(c), c = void 0, !T.value || s.restoringFocus.value || s.open.value || v)
29
+ if (clearTimeout(l), l = void 0, !T.value || s.restoringFocus.value || s.open.value || v)
29
30
  return;
30
- const e = k(r.showDelay);
31
+ const e = p(o.showDelay);
31
32
  e ? v = setTimeout(() => {
32
- v = void 0, l(!0);
33
- }, e) : l(!0);
33
+ v = void 0, c(!0);
34
+ }, e) : c(!0);
34
35
  }
35
36
  function C() {
36
- return f || h || r.enterable !== !1 && x || u.value.has("focus") && d || r.enterable !== !1 && m;
37
+ return f || h || o.enterable !== !1 && x || u.value.has("focus") && d || o.enterable !== !1 && m;
37
38
  }
38
- function p() {
39
- if (clearTimeout(v), v = void 0, clearTimeout(c), c = void 0, C() || !s.open.value) return;
39
+ function D() {
40
+ if (clearTimeout(v), v = void 0, clearTimeout(l), l = void 0, C() || !s.open.value) return;
40
41
  const e = () => {
41
- c = void 0, !C() && s.open.value && l(!1);
42
- }, t = k(r.hideDelay);
43
- t ? c = setTimeout(e, t) : e();
44
- }
45
- function M() {
46
- u.value.has("hover") && (h = !0, I());
42
+ l = void 0, !C() && s.open.value && c(!1, !1, "trigger");
43
+ }, t = p(o.hideDelay);
44
+ t ? l = setTimeout(e, t) : e();
47
45
  }
48
46
  function O() {
49
- u.value.has("hover") && (h = !1, p());
47
+ u.value.has("hover") && (h = !0, I());
50
48
  }
51
49
  function j() {
52
- r.enterable !== !1 && (x = !0, clearTimeout(c), c = void 0);
50
+ u.value.has("hover") && (h = !1, D());
53
51
  }
54
52
  function z() {
55
- x = !1, u.value.has("hover") && p();
53
+ o.enterable !== !1 && (x = !0, clearTimeout(l), l = void 0);
56
54
  }
57
- function H(e) {
58
- var t;
59
- (t = o.value) != null && t.contains(e.target) || s.restoringFocus.value || (d = !0, u.value.has("focus") && I());
55
+ function H() {
56
+ x = !1, u.value.has("hover") && D();
60
57
  }
61
58
  function N(e) {
62
- var n, a, i;
63
- if ((n = o.value) != null && n.contains(e.target)) return;
59
+ var t;
60
+ (t = i.value) != null && t.contains(e.target) || s.restoringFocus.value || (d = !0, u.value.has("focus") && I());
61
+ }
62
+ function R(e) {
63
+ var a, n, r;
64
+ if ((a = i.value) != null && a.contains(e.target)) return;
64
65
  const t = e.relatedTarget;
65
- if (!((a = D.value) != null && a.contains(t))) {
66
- if (d = !1, (i = o.value) != null && i.contains(t) && r.enterable !== !1) {
66
+ if (!((n = k.value) != null && n.contains(t))) {
67
+ if (d = !1, (r = i.value) != null && r.contains(t) && o.enterable !== !1) {
67
68
  m = !0;
68
69
  return;
69
70
  }
70
- (u.value.has("focus") || u.value.has("hover")) && p();
71
+ (u.value.has("focus") || u.value.has("hover")) && D();
71
72
  }
72
73
  }
73
- function R() {
74
- r.enterable !== !1 && (m = !0);
74
+ function B() {
75
+ o.enterable !== !1 && (m = !0);
75
76
  }
76
- function B(e) {
77
- var n, a;
77
+ function G(e) {
78
+ var a, n;
78
79
  const t = e.relatedTarget;
79
- if (!((n = o.value) != null && n.contains(t))) {
80
- if (m = !1, (a = D.value) != null && a.contains(t)) {
80
+ if (!((a = i.value) != null && a.contains(t))) {
81
+ if (m = !1, (n = k.value) != null && n.contains(t)) {
81
82
  d = !0;
82
83
  return;
83
84
  }
84
- (u.value.has("focus") || u.value.has("hover")) && p();
85
+ (u.value.has("focus") || u.value.has("hover")) && D();
85
86
  }
86
87
  }
87
- function G(e) {
88
- var t;
89
- (t = o.value) != null && t.contains(e.target) || !u.value.has("click") || !T.value || (f = s.open.value ? !f && (h && u.value.has("hover") || d && u.value.has("focus")) : !0, l(f));
90
- }
91
88
  function J(e) {
92
89
  var t;
93
- (t = o.value) != null && t.contains(e.target) || !u.value.has("contextmenu") || !T.value || (e.preventDefault(), f = !0, l(!0));
90
+ (t = i.value) != null && t.contains(e.target) || !u.value.has("click") || !T.value || (f = s.open.value ? !f && (h && u.value.has("hover") || d && u.value.has("focus")) : !0, c(f, !1, "trigger"));
94
91
  }
95
92
  function Q(e) {
96
- var n;
97
- if ((n = o.value) != null && n.contains(e.target) || !u.value.size || !T.value || e.defaultPrevented)
93
+ var t;
94
+ (t = i.value) != null && t.contains(e.target) || !u.value.has("contextmenu") || !T.value || (e.preventDefault(), f = !0, c(!0));
95
+ }
96
+ function U(e) {
97
+ var a;
98
+ if ((a = i.value) != null && a.contains(e.target) || !u.value.size || !T.value || e.defaultPrevented)
98
99
  return;
99
100
  const t = e.target;
100
101
  if (!t.closest('input,textarea,select,[contenteditable="true"]')) {
101
102
  if (e.key === "F10" && e.shiftKey && u.value.has("contextmenu")) {
102
- e.preventDefault(), f = !0, l(!0);
103
+ e.preventDefault(), f = !0, c(!0);
103
104
  return;
104
105
  }
105
- (r.triggerKeys ?? ["Enter", " "]).some(
106
- (a) => a === e.key || a === "Space" && e.key === " "
107
- ) && (u.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), f = !s.open.value, l(f)));
106
+ (o.triggerKeys ?? ["Enter", " "]).some(
107
+ (n) => n === e.key || n === "Space" && e.key === " "
108
+ ) && (u.value.has("click") && t.closest("button,a[href],input") || (e.preventDefault(), f = !s.open.value, c(f, !1, "trigger")));
108
109
  }
109
110
  }
110
111
  function P(e) {
111
- return [...e.querySelectorAll(Z)].filter(
112
+ return [...e.querySelectorAll(_)].filter(
112
113
  (t) => t.tabIndex >= 0 && !t.matches(":disabled") && !t.closest('[inert],[aria-hidden="true"]') && !!t.getClientRects().length && getComputedStyle(t).visibility !== "hidden"
113
114
  );
114
115
  }
115
- function U(e) {
116
- const t = L.value, n = P(document).filter((y) => {
117
- var g;
118
- return !((g = o.value) != null && g.contains(y));
119
- }), a = n.findIndex((y) => y === t || (t == null ? void 0 : t.contains(y))), i = a < 0 ? void 0 : n[a + (e ? -1 : 1)];
120
- return i == null || i.focus(), !!i;
121
- }
122
- async function V(e) {
123
- var g, E;
116
+ function V(e) {
117
+ const t = L.value, a = P(document).filter((g) => {
118
+ var y;
119
+ return !((y = i.value) != null && y.contains(g));
120
+ }), n = a.findIndex((g) => g === t || (t == null ? void 0 : t.contains(g))), r = n < 0 ? void 0 : a[n + (e ? -1 : 1)];
121
+ return r == null || r.focus(), !!r;
122
+ }
123
+ async function W(e) {
124
+ var y, E;
124
125
  if (e.key !== "Tab" || w !== "popover" || !s.open.value || !s.isTop())
125
126
  return;
126
- const t = e.target, n = (g = o.value) == null ? void 0 : g.contains(t), a = (E = D.value) == null ? void 0 : E.contains(t);
127
- if (!n && !a) return;
128
- const i = o.value ? P(o.value) : [];
129
- if (a && !e.shiftKey && r.enterable !== !1 && i.length) {
130
- e.preventDefault(), i[0].focus();
127
+ const t = e.target, a = (y = i.value) == null ? void 0 : y.contains(t), n = (E = k.value) == null ? void 0 : E.contains(t);
128
+ if (!a && !n) return;
129
+ const r = i.value ? P(i.value) : [];
130
+ if ((n || t === i.value) && !e.shiftKey && o.enterable !== !1 && r.length) {
131
+ e.preventDefault(), r[0].focus();
131
132
  return;
132
133
  }
133
- if (n && t !== (e.shiftKey ? i[0] : i.at(-1)) && i.length)
134
+ if (a && t !== i.value && t !== (e.shiftKey ? r[0] : r.at(-1)) && r.length)
134
135
  return;
135
- e.preventDefault(), await l(!1) && (n && e.shiftKey ? F() : U(e.shiftKey) || F());
136
+ e.preventDefault(), (await c(!1, !1, "tab") || M) && (a && e.shiftKey ? F() : V(e.shiftKey) || F());
136
137
  }
137
- function W() {
138
+ function X() {
138
139
  S();
139
- const e = k(r.autoClose);
140
+ const e = p(o.autoClose);
140
141
  s.open.value && e && (b = setTimeout(() => {
141
- b = void 0, l(!1);
142
+ b = void 0, c(!1, !1, "auto");
142
143
  }, e));
143
144
  }
144
- function X() {
145
+ function Y() {
145
146
  K(), A();
146
147
  }
147
148
  return {
148
149
  clearDelays: K,
149
150
  clearAuto: S,
150
151
  resetReasons: A,
151
- reset: X,
152
- startAuto: W,
153
- tab: V,
152
+ reset: Y,
153
+ startAuto: X,
154
+ tab: W,
154
155
  handlers: {
155
- pointerEnter: M,
156
- pointerLeave: O,
157
- panelEnter: j,
158
- panelLeave: z,
159
- focusIn: H,
160
- focusOut: N,
161
- panelFocusIn: R,
162
- panelFocusOut: B,
163
- click: G,
164
- contextmenu: J,
165
- key: Q
156
+ pointerEnter: O,
157
+ pointerLeave: j,
158
+ panelEnter: z,
159
+ panelLeave: H,
160
+ focusIn: N,
161
+ focusOut: R,
162
+ panelFocusIn: B,
163
+ panelFocusOut: G,
164
+ click: J,
165
+ contextmenu: Q,
166
+ key: U
166
167
  }
167
168
  };
168
169
  }
169
170
  export {
170
- Z as popupFocusControls,
171
- $ as usePopupSurfaceInteractions
171
+ _ as popupFocusControls,
172
+ q as usePopupSurfaceInteractions
172
173
  };
@@ -1,52 +1,55 @@
1
- function m(s, v) {
2
- let n;
3
- const p = (e, t) => t ? e.clientY : e.clientX;
4
- function w(e, t) {
5
- var r;
6
- if (n || e.button !== 0 || t.available <= 0) return !1;
1
+ function L(v, m) {
2
+ let r;
3
+ const u = (e, t) => t ? e.clientY : e.clientX;
4
+ function E(e, t) {
5
+ var n;
6
+ if (r || e.button !== 0 || t.available <= 0) return !1;
7
7
  e.preventDefault();
8
8
  const i = e.currentTarget;
9
- i.focus({ preventScroll: !0 }), n = {
9
+ i.focus({ preventScroll: !0 }), r = {
10
10
  ...t,
11
11
  pointer: e.pointerId,
12
12
  handle: i,
13
- origin: p(e, t.vertical),
13
+ origin: u(e, t.vertical),
14
14
  latest: t.initial,
15
15
  reported: t.initial
16
16
  };
17
17
  try {
18
- (r = i.setPointerCapture) == null || r.call(i, e.pointerId);
18
+ (n = i.setPointerCapture) == null || n.call(i, e.pointerId);
19
19
  } catch {
20
20
  }
21
- return window.addEventListener("pointermove", c), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", a), window.addEventListener("keydown", d, !0), !0;
21
+ return window.addEventListener("pointermove", p), window.addEventListener("pointerup", l), window.addEventListener("pointercancel", a), window.addEventListener("keydown", f, !0), window.addEventListener("blur", d), !0;
22
22
  }
23
- function c(e) {
24
- const t = n;
23
+ function p(e) {
24
+ const t = r;
25
25
  if (!t || e.pointerId !== t.pointer) return;
26
- const i = p(e, t.vertical) - t.origin;
26
+ const i = u(e, t.vertical) - t.origin;
27
27
  t.latest = i === 0 ? t.initial : t.constrain(
28
28
  t.initial + t.direction * i / t.available * 100
29
- ), t.frame === void 0 && (t.frame = requestAnimationFrame(() => u(t)));
29
+ ), t.frame === void 0 && (t.frame = requestAnimationFrame(() => c(t)));
30
30
  }
31
- function u(e) {
32
- e.frame = void 0, e.latest !== e.reported && (e.reported = e.latest, s(e.latest));
31
+ function c(e) {
32
+ e.frame = void 0, e.latest !== e.reported && (e.reported = e.latest, v(e.latest));
33
33
  }
34
34
  function l(e) {
35
- e.pointerId === (n == null ? void 0 : n.pointer) && o(!1);
35
+ e.pointerId === (r == null ? void 0 : r.pointer) && o(!1);
36
36
  }
37
37
  function a(e) {
38
- e.pointerId === (n == null ? void 0 : n.pointer) && o(!0);
38
+ e.pointerId === (r == null ? void 0 : r.pointer) && o(!0, !0, !0);
39
+ }
40
+ function d() {
41
+ o(!0, !0, !0);
39
42
  }
40
- function d(e) {
41
- e.key !== "Escape" || !n || (e.preventDefault(), e.stopPropagation(), o(!0));
43
+ function f(e) {
44
+ e.key !== "Escape" || !r || (e.preventDefault(), e.stopPropagation(), o(!0, !0, !0));
42
45
  }
43
- function o(e, t = !0) {
44
- var r, f;
45
- const i = n;
46
- i && (n = void 0, i.frame !== void 0 && cancelAnimationFrame(i.frame), window.removeEventListener("pointermove", c), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", a), window.removeEventListener("keydown", d, !0), (f = (r = i.handle).hasPointerCapture) != null && f.call(r, i.pointer) && i.handle.releasePointerCapture(i.pointer), e || u(i), v(i.latest, e, t));
46
+ function o(e, t = !0, i = !1) {
47
+ var s, w;
48
+ const n = r;
49
+ n && (r = void 0, n.frame !== void 0 && cancelAnimationFrame(n.frame), window.removeEventListener("pointermove", p), window.removeEventListener("pointerup", l), window.removeEventListener("pointercancel", a), window.removeEventListener("keydown", f, !0), window.removeEventListener("blur", d), (w = (s = n.handle).hasPointerCapture) != null && w.call(s, n.pointer) && n.handle.releasePointerCapture(n.pointer), e || c(n), m(n.latest, e, t, i));
47
50
  }
48
- return { start: w, cancel: a, finish: o, active: () => !!n };
51
+ return { start: E, cancel: a, finish: o, active: () => !!r };
49
52
  }
50
53
  export {
51
- m as useSplitPaneDrag
54
+ L as useSplitPaneDrag
52
55
  };
@@ -0,0 +1,15 @@
1
+ import { useId as a, ref as s, onMounted as d, onBeforeUnmount as l } from "vue";
2
+ const n = /* @__PURE__ */ new Set();
3
+ let r = 0;
4
+ function i(u) {
5
+ const t = a() + "-" + u, e = s(t);
6
+ let o = !1;
7
+ return d(() => {
8
+ o = !0, n.has(t) && (e.value = t + "-" + ++r), n.add(e.value);
9
+ }), l(() => {
10
+ o && n.delete(e.value);
11
+ }), e;
12
+ }
13
+ export {
14
+ i as useSvgInstanceId
15
+ };