@well-insight/ui 0.1.8 → 0.1.10

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 (322) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/README.md +3 -3
  3. package/README.zh-CN.md +3 -3
  4. package/dist/{Button-BZzV1X-d.js → Button-B6-YxpOQ.js} +1 -1
  5. package/dist/{Checkbox-BtgWgkHI.js → Checkbox-BvlOYFGs.js} +5 -5
  6. package/dist/{Pagination-C-F_ZDXr.js → Pagination-BU-1IY0E.js} +2 -2
  7. package/dist/accordion/style.css +164 -148
  8. package/dist/auto-complete/style.css +306 -282
  9. package/dist/avatar/style.css +228 -199
  10. package/dist/badge/style.css +272 -235
  11. package/dist/block-ui/style.css +164 -148
  12. package/dist/breadcrumb/style.css +164 -148
  13. package/dist/button/index.js +1 -1
  14. package/dist/button/style.css +731 -572
  15. package/dist/card/style.css +164 -148
  16. package/dist/carousel/style.css +200 -183
  17. package/dist/cascade-select/style.css +274 -256
  18. package/dist/checkbox/index.js +1 -1
  19. package/dist/checkbox/style.css +164 -148
  20. package/dist/chip/style.css +243 -220
  21. package/dist/command-menu/style.css +240 -222
  22. package/dist/components/Accordion/Accordion.vue.d.ts.map +1 -1
  23. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  24. package/dist/components/AutoComplete/styles.css +142 -134
  25. package/dist/components/Avatar/Avatar.vue.d.ts.map +1 -1
  26. package/dist/components/Avatar/AvatarGroup.vue.d.ts.map +1 -1
  27. package/dist/components/Avatar/styles.css +64 -51
  28. package/dist/components/Badge/Badge.vue.d.ts.map +1 -1
  29. package/dist/components/Badge/styles.css +108 -87
  30. package/dist/components/BlockUI/BlockUI.vue.d.ts.map +1 -1
  31. package/dist/components/Breadcrumb/Breadcrumb.vue.d.ts.map +1 -1
  32. package/dist/components/Button/Button.vue.d.ts +1 -1
  33. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  34. package/dist/components/Button/ButtonGroup.vue.d.ts.map +1 -1
  35. package/dist/components/Button/styles.css +567 -424
  36. package/dist/components/Card/Card.vue.d.ts.map +1 -1
  37. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  38. package/dist/components/Carousel/styles.css +36 -35
  39. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  40. package/dist/components/CascadeSelect/styles.css +85 -83
  41. package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
  42. package/dist/components/Checkbox/CheckboxGroup.vue.d.ts.map +1 -1
  43. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  44. package/dist/components/Chip/styles.css +79 -72
  45. package/dist/components/CommandMenu/CommandMenu.vue.d.ts.map +1 -1
  46. package/dist/components/CommandMenu/styles.css +59 -57
  47. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  48. package/dist/components/ConfirmDialog/ConfirmDialog.vue.d.ts.map +1 -1
  49. package/dist/components/ConfirmDialog/styles.css +17 -16
  50. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  51. package/dist/components/ConfirmPopup/styles.css +27 -26
  52. package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
  53. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  54. package/dist/components/ContextMenu/index.d.ts +1 -1
  55. package/dist/components/ContextMenu/index.d.ts.map +1 -1
  56. package/dist/components/ContextMenu/styles.css +43 -37
  57. package/dist/components/ContextMenu/useContextMenu.d.ts.map +1 -1
  58. package/dist/components/DataView/DataView.vue.d.ts.map +1 -1
  59. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  60. package/dist/components/DatePicker/styles.css +163 -139
  61. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  62. package/dist/components/Dialog/styles.css +155 -150
  63. package/dist/components/Divider/Divider.vue.d.ts.map +1 -1
  64. package/dist/components/Dock/Dock.vue.d.ts.map +1 -1
  65. package/dist/components/Dock/styles.css +37 -32
  66. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  67. package/dist/components/Drawer/styles.css +82 -80
  68. package/dist/components/Dropdown/Dropdown.vue.d.ts.map +1 -1
  69. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  70. package/dist/components/Dropdown/styles.css +58 -57
  71. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  72. package/dist/components/FileUpload/FileUpload.vue.d.ts +2 -2
  73. package/dist/components/FileUpload/FileUpload.vue.d.ts.map +1 -1
  74. package/dist/components/FileUpload/styles.css +238 -221
  75. package/dist/components/Flex/Flex.vue.d.ts.map +1 -1
  76. package/dist/components/Form/Form.vue.d.ts.map +1 -1
  77. package/dist/components/Form/FormItem.vue.d.ts.map +1 -1
  78. package/dist/components/Form/index.d.ts +2 -2
  79. package/dist/components/Form/index.d.ts.map +1 -1
  80. package/dist/components/Form/styles.css +46 -44
  81. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  82. package/dist/components/Gallery/styles.css +42 -39
  83. package/dist/components/Grid/Grid.vue.d.ts.map +1 -1
  84. package/dist/components/Grid/GridItem.vue.d.ts.map +1 -1
  85. package/dist/components/Icon/Icon.vue.d.ts.map +1 -1
  86. package/dist/components/IconField/IconField.vue.d.ts.map +1 -1
  87. package/dist/components/Inplace/Inplace.vue.d.ts.map +1 -1
  88. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  89. package/dist/components/Input/styles.css +198 -191
  90. package/dist/components/InputColor/InputColor.vue.d.ts.map +1 -1
  91. package/dist/components/InputColor/styles.css +50 -48
  92. package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
  93. package/dist/components/InputNumber/styles.css +90 -80
  94. package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
  95. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  96. package/dist/components/InputPassword/styles.css +130 -117
  97. package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
  98. package/dist/components/InputTags/styles.css +51 -43
  99. package/dist/components/Knob/Knob.vue.d.ts.map +1 -1
  100. package/dist/components/Label/Label.vue.d.ts.map +1 -1
  101. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  102. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  103. package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
  104. package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
  105. package/dist/components/Layout/LayoutSider.vue.d.ts +1 -1
  106. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  107. package/dist/components/Layout/index.d.ts +2 -2
  108. package/dist/components/Layout/index.d.ts.map +1 -1
  109. package/dist/components/Layout/styles.css +310 -258
  110. package/dist/components/Layout/types.d.ts +30 -12
  111. package/dist/components/Layout/types.d.ts.map +1 -1
  112. package/dist/components/Listbox/Listbox.vue.d.ts.map +1 -1
  113. package/dist/components/Listbox/styles.css +61 -51
  114. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  115. package/dist/components/MegaMenu/styles.css +60 -58
  116. package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
  117. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  118. package/dist/components/Menu/styles.css +53 -47
  119. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  120. package/dist/components/Menubar/styles.css +80 -70
  121. package/dist/components/Message/Message.vue.d.ts.map +1 -1
  122. package/dist/components/Message/index.d.ts +1 -1
  123. package/dist/components/Message/index.d.ts.map +1 -1
  124. package/dist/components/Message/message.d.ts +2 -2
  125. package/dist/components/Message/message.d.ts.map +1 -1
  126. package/dist/components/Message/messageState.d.ts.map +1 -1
  127. package/dist/components/Message/styles.css +193 -143
  128. package/dist/components/Message/types.d.ts +1 -1
  129. package/dist/components/Message/types.d.ts.map +1 -1
  130. package/dist/components/MeterGroup/MeterGroup.vue.d.ts.map +1 -1
  131. package/dist/components/MeterGroup/styles.css +36 -34
  132. package/dist/components/OrderList/OrderList.vue.d.ts.map +1 -1
  133. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  134. package/dist/components/Pagination/styles.css +59 -57
  135. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  136. package/dist/components/PickList/PickList.vue.d.ts.map +1 -1
  137. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  138. package/dist/components/Popover/styles.css +46 -45
  139. package/dist/components/ProgressBar/ProgressBar.vue.d.ts.map +1 -1
  140. package/dist/components/ProgressSpinner/ProgressSpinner.vue.d.ts.map +1 -1
  141. package/dist/components/Radio/Radio.vue.d.ts.map +1 -1
  142. package/dist/components/Radio/RadioGroup.vue.d.ts.map +1 -1
  143. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  144. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  145. package/dist/components/Scrollbar/Scrollbar.vue.d.ts.map +1 -1
  146. package/dist/components/Scrollbar/Thumb.vue.d.ts.map +1 -1
  147. package/dist/components/Scrollbar/constants.d.ts +2 -2
  148. package/dist/components/Scrollbar/constants.d.ts.map +1 -1
  149. package/dist/components/Scrollbar/styles.css +68 -59
  150. package/dist/components/Select/Select.vue.d.ts +1 -1
  151. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  152. package/dist/components/Select/styles.css +293 -280
  153. package/dist/components/SelectButton/SelectButton.vue.d.ts.map +1 -1
  154. package/dist/components/SelectButton/styles.css +64 -51
  155. package/dist/components/Sidebar/Sidebar.vue.d.ts.map +1 -1
  156. package/dist/components/Sidebar/styles.css +40 -38
  157. package/dist/components/Skeleton/Skeleton.vue.d.ts.map +1 -1
  158. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  159. package/dist/components/Slider/styles.css +111 -95
  160. package/dist/components/Space/Space.vue.d.ts.map +1 -1
  161. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  162. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  163. package/dist/components/SplitButton/styles.css +105 -89
  164. package/dist/components/Splitter/Splitter.vue.d.ts.map +1 -1
  165. package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
  166. package/dist/components/Stepper/styles.css +63 -58
  167. package/dist/components/Switch/Switch.vue.d.ts.map +1 -1
  168. package/dist/components/Switch/styles.css +82 -53
  169. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  170. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  171. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  172. package/dist/components/Terminal/Terminal.vue.d.ts.map +1 -1
  173. package/dist/components/Terminal/styles.css +46 -34
  174. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  175. package/dist/components/Textarea/styles.css +69 -62
  176. package/dist/components/Textarea/types.d.ts +1 -1
  177. package/dist/components/Textarea/types.d.ts.map +1 -1
  178. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  179. package/dist/components/TieredMenu/styles.css +69 -62
  180. package/dist/components/Timeline/Timeline.vue.d.ts.map +1 -1
  181. package/dist/components/Timeline/types.d.ts +1 -1
  182. package/dist/components/Timeline/types.d.ts.map +1 -1
  183. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  184. package/dist/components/Toast/index.d.ts +1 -1
  185. package/dist/components/Toast/index.d.ts.map +1 -1
  186. package/dist/components/Toast/toast.d.ts +2 -2
  187. package/dist/components/Toast/toast.d.ts.map +1 -1
  188. package/dist/components/Toast/toastState.d.ts.map +1 -1
  189. package/dist/components/Toast/types.d.ts +1 -1
  190. package/dist/components/Toast/types.d.ts.map +1 -1
  191. package/dist/components/ToggleButton/ToggleButton.vue.d.ts.map +1 -1
  192. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  193. package/dist/components/Tree/Tree.vue.d.ts.map +1 -1
  194. package/dist/components/Tree/TreeNodeItem.vue.d.ts.map +1 -1
  195. package/dist/components/Tree/context.d.ts +2 -2
  196. package/dist/components/Tree/context.d.ts.map +1 -1
  197. package/dist/components/Tree/index.d.ts +1 -1
  198. package/dist/components/Tree/index.d.ts.map +1 -1
  199. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  200. package/dist/components/TreeSelect/styles.css +140 -138
  201. package/dist/components/TreeTable/TreeTable.vue.d.ts.map +1 -1
  202. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  203. package/dist/components/VirtualScroller/VirtualScroller.vue.d.ts.map +1 -1
  204. package/dist/components/VirtualScroller/index.d.ts +1 -1
  205. package/dist/components/VirtualScroller/index.d.ts.map +1 -1
  206. package/dist/config-provider/style.css +890 -724
  207. package/dist/confirm-dialog/index.js +1 -1
  208. package/dist/confirm-dialog/style.css +904 -739
  209. package/dist/confirm-popup/index.js +1 -1
  210. package/dist/confirm-popup/style.css +759 -599
  211. package/dist/context-menu/style.css +207 -185
  212. package/dist/data-view/index.js +1 -1
  213. package/dist/data-view/style.css +223 -205
  214. package/dist/date-picker/index.js +2 -2
  215. package/dist/date-picker/style.css +326 -286
  216. package/dist/dialog/index.js +1 -1
  217. package/dist/dialog/style.css +887 -723
  218. package/dist/divider/style.css +164 -148
  219. package/dist/dock/style.css +210 -189
  220. package/dist/drawer/style.css +246 -228
  221. package/dist/dropdown/index.js +3 -3
  222. package/dist/dropdown/style.css +222 -205
  223. package/dist/fieldset/style.css +164 -148
  224. package/dist/file-upload/style.css +397 -364
  225. package/dist/flex/style.css +164 -148
  226. package/dist/float-label/style.css +164 -148
  227. package/dist/fluid/style.css +164 -148
  228. package/dist/form/style.css +210 -192
  229. package/dist/gallery/style.css +219 -200
  230. package/dist/grid/index.js +39 -39
  231. package/dist/grid/style.css +164 -148
  232. package/dist/icon/style.css +164 -148
  233. package/dist/icon-field/style.css +164 -148
  234. package/dist/index.d.ts +174 -174
  235. package/dist/index.d.ts.map +1 -1
  236. package/dist/index.js +1028 -976
  237. package/dist/inplace/style.css +164 -148
  238. package/dist/input/index.js +6 -7
  239. package/dist/input/style.css +361 -338
  240. package/dist/input-color/index.js +2 -2
  241. package/dist/input-color/style.css +214 -196
  242. package/dist/input-group/style.css +164 -148
  243. package/dist/input-number/index.js +15 -15
  244. package/dist/input-number/style.css +254 -228
  245. package/dist/input-otp/index.js +1 -1
  246. package/dist/input-otp/style.css +164 -148
  247. package/dist/input-password/index.js +16 -17
  248. package/dist/input-password/style.css +294 -265
  249. package/dist/input-tags/style.css +226 -202
  250. package/dist/knob/style.css +164 -148
  251. package/dist/label/style.css +164 -148
  252. package/dist/layout/index.js +135 -93
  253. package/dist/layout/style.css +534 -457
  254. package/dist/listbox/style.css +242 -216
  255. package/dist/locale/index.d.ts +1 -1
  256. package/dist/locale/index.d.ts.map +1 -1
  257. package/dist/mega-menu/style.css +241 -223
  258. package/dist/menu/style.css +217 -195
  259. package/dist/menubar/style.css +266 -240
  260. package/dist/message/style.css +357 -291
  261. package/dist/meter-group/style.css +200 -182
  262. package/dist/order-list/style.css +164 -148
  263. package/dist/pagination/index.js +1 -1
  264. package/dist/pagination/style.css +223 -205
  265. package/dist/panel/style.css +164 -148
  266. package/dist/pick-list/style.css +164 -148
  267. package/dist/popover/index.js +5 -5
  268. package/dist/popover/style.css +210 -193
  269. package/dist/progress-bar/style.css +164 -148
  270. package/dist/progress-spinner/style.css +164 -148
  271. package/dist/radio/index.js +4 -4
  272. package/dist/radio/style.css +164 -148
  273. package/dist/rating/style.css +164 -148
  274. package/dist/scroll-top/style.css +164 -148
  275. package/dist/scrollbar/style.css +232 -207
  276. package/dist/select/style.css +457 -428
  277. package/dist/select-button/style.css +228 -199
  278. package/dist/shared/Renderable.d.ts.map +1 -1
  279. package/dist/shared/config.d.ts.map +1 -1
  280. package/dist/shared/content.d.ts.map +1 -1
  281. package/dist/shared/overlayHost.d.ts.map +1 -1
  282. package/dist/shared/useModalOverlay.d.ts.map +1 -1
  283. package/dist/shared/vnode.d.ts.map +1 -1
  284. package/dist/sidebar/style.css +204 -186
  285. package/dist/skeleton/style.css +164 -148
  286. package/dist/slider/style.css +275 -243
  287. package/dist/space/style.css +164 -148
  288. package/dist/speed-dial/index.js +1 -1
  289. package/dist/speed-dial/style.css +164 -148
  290. package/dist/split-button/style.css +865 -690
  291. package/dist/splitter/style.css +164 -148
  292. package/dist/stepper/style.css +227 -206
  293. package/dist/styles/base.css +126 -125
  294. package/dist/styles.css +1 -1
  295. package/dist/switch/index.js +5 -5
  296. package/dist/switch/style.css +245 -200
  297. package/dist/table/index.js +3 -3
  298. package/dist/table/style.css +223 -205
  299. package/dist/tabs/style.css +164 -148
  300. package/dist/tag/style.css +164 -148
  301. package/dist/terminal/style.css +209 -181
  302. package/dist/textarea/index.js +11 -12
  303. package/dist/textarea/style.css +233 -210
  304. package/dist/theme/index.d.ts +5 -5
  305. package/dist/theme/index.d.ts.map +1 -1
  306. package/dist/theme/styles.css +38 -23
  307. package/dist/theme/tokens.d.ts +11 -0
  308. package/dist/theme/tokens.d.ts.map +1 -1
  309. package/dist/theme/useTheme.d.ts.map +1 -1
  310. package/dist/tiered-menu/style.css +254 -231
  311. package/dist/timeline/style.css +164 -148
  312. package/dist/toast/style.css +164 -148
  313. package/dist/toggle-button/style.css +164 -148
  314. package/dist/toolbar/style.css +164 -148
  315. package/dist/tooltip/style.css +164 -148
  316. package/dist/tree/index.js +11 -11
  317. package/dist/tree/style.css +164 -148
  318. package/dist/tree-select/index.js +1 -1
  319. package/dist/tree-select/style.css +297 -279
  320. package/dist/tree-table/style.css +164 -148
  321. package/dist/virtual-scroller/style.css +164 -148
  322. package/package.json +15 -11
package/dist/index.js CHANGED
@@ -212,6 +212,16 @@ var re = { class: "wi-accordion" }, ie = [
212
212
  fast: "150ms",
213
213
  normal: "250ms",
214
214
  ease: "cubic-bezier(0.2, 0, 0, 1)"
215
+ },
216
+ layout: {
217
+ height: "100%",
218
+ headerHeight: "56px",
219
+ footerHeight: "48px",
220
+ siderWidth: "272px",
221
+ siderCollapsedWidth: "48px",
222
+ padding: "0",
223
+ radius: "0",
224
+ borderWidth: "1px"
215
225
  }
216
226
  }, le = {
217
227
  ...ce,
@@ -225,94 +235,94 @@ var re = { class: "wi-accordion" }, ie = [
225
235
  border: "#334155",
226
236
  focusRing: "#93c5fd"
227
237
  }
228
- }, ue = "well-insight-theme";
229
- function de() {
230
- let e = j(fe()), t = s(() => e.value === "dark");
231
- function n(t) {
238
+ }, ue = "well-insight-density", de = [
239
+ "compact",
240
+ "comfortable",
241
+ "spacious"
242
+ ];
243
+ function fe(e, t = document.documentElement) {
244
+ t.dataset.wiDensity = e;
245
+ }
246
+ function pe() {
247
+ let e = j(me());
248
+ function t(t) {
232
249
  e.value = t;
233
250
  }
234
- function r() {
235
- n(t.value ? "light" : "dark");
236
- }
237
251
  return W(e, (e) => {
238
- Ee(e), typeof localStorage < "u" && localStorage.setItem(ue, e);
252
+ fe(e), typeof localStorage < "u" && localStorage.setItem(ue, e);
239
253
  }, { immediate: !0 }), {
240
- theme: e,
241
- isDark: t,
242
- setTheme: n,
243
- toggleTheme: r
254
+ preference: e,
255
+ densityPreferences: de,
256
+ setDensity: t
244
257
  };
245
258
  }
246
- function fe() {
259
+ function me() {
247
260
  if (typeof localStorage < "u") {
248
261
  let e = localStorage.getItem(ue);
249
- if (e === "light" || e === "dark") return e;
262
+ if (e && de.includes(e)) return e;
250
263
  }
251
- return Te();
264
+ return "comfortable";
252
265
  }
253
266
  //#endregion
254
267
  //#region src/theme/useMotion.ts
255
- var pe = "well-insight-motion", me = [
268
+ var he = "well-insight-motion", ge = [
256
269
  "full",
257
270
  "reduced",
258
271
  "none"
259
272
  ];
260
- function he(e, t = document.documentElement) {
273
+ function _e(e, t = document.documentElement) {
261
274
  t.dataset.wiMotion = e;
262
275
  }
263
- function ge() {
276
+ function ve() {
264
277
  return typeof window < "u" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches, "full";
265
278
  }
266
- function _e() {
267
- let e = j(ve()), t = s(() => e.value !== "none");
279
+ function ye() {
280
+ let e = j(be()), t = s(() => e.value !== "none");
268
281
  function n(t) {
269
282
  e.value = t;
270
283
  }
271
284
  return W(e, (e) => {
272
- he(e), typeof localStorage < "u" && localStorage.setItem(pe, e);
285
+ _e(e), typeof localStorage < "u" && localStorage.setItem(he, e);
273
286
  }, { immediate: !0 }), {
274
287
  preference: e,
275
288
  isMotionEnabled: t,
276
- motionPreferences: me,
289
+ motionPreferences: ge,
277
290
  setMotion: n
278
291
  };
279
292
  }
280
- function ve() {
293
+ function be() {
281
294
  if (typeof localStorage < "u") {
282
- let e = localStorage.getItem(pe);
283
- if (e && me.includes(e)) return e;
295
+ let e = localStorage.getItem(he);
296
+ if (e && ge.includes(e)) return e;
284
297
  }
285
- return ge();
298
+ return ve();
286
299
  }
287
300
  //#endregion
288
- //#region src/theme/useDensity.ts
289
- var ye = "well-insight-density", be = [
290
- "compact",
291
- "comfortable",
292
- "spacious"
293
- ];
294
- function xe(e, t = document.documentElement) {
295
- t.dataset.wiDensity = e;
296
- }
301
+ //#region src/theme/useTheme.ts
302
+ var xe = "well-insight-theme";
297
303
  function Se() {
298
- let e = j(Ce());
299
- function t(t) {
304
+ let e = j(Ce()), t = s(() => e.value === "dark");
305
+ function n(t) {
300
306
  e.value = t;
301
307
  }
308
+ function r() {
309
+ n(t.value ? "light" : "dark");
310
+ }
302
311
  return W(e, (e) => {
303
- xe(e), typeof localStorage < "u" && localStorage.setItem(ye, e);
312
+ Ee(e), typeof localStorage < "u" && localStorage.setItem(xe, e);
304
313
  }, { immediate: !0 }), {
305
- preference: e,
306
- densityPreferences: be,
307
- setDensity: t
314
+ theme: e,
315
+ isDark: t,
316
+ setTheme: n,
317
+ toggleTheme: r
308
318
  };
309
319
  }
310
320
  function Ce() {
311
321
  if (typeof localStorage < "u") {
312
- let e = localStorage.getItem(ye);
313
- if (e && be.includes(e)) return e;
322
+ let e = localStorage.getItem(xe);
323
+ if (e === "light" || e === "dark") return e;
314
324
  }
315
- return "comfortable";
325
+ return Te();
316
326
  }
317
327
  //#endregion
318
328
  //#region src/theme/index.ts
@@ -451,13 +461,13 @@ function qe(e) {
451
461
  if (Array.isArray(e)) {
452
462
  if (e.length === 0) return [];
453
463
  let t = new Set(e);
454
- return Object.entries(Cp).filter(([, e]) => t.has(e));
464
+ return Object.entries(wp).filter(([, e]) => t.has(e));
455
465
  }
456
- return Object.entries(Cp);
466
+ return Object.entries(wp);
457
467
  }
458
468
  function Je(e, t) {
459
469
  let { components: n, ...r } = t;
460
- e.provide(Le, r), e.config.globalProperties.$wi = r, Ne(e._context), typeof document < "u" && (r.density && xe(r.density), r.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(r.zIndex)));
470
+ e.provide(Le, r), e.config.globalProperties.$wi = r, Ne(e._context), typeof document < "u" && (r.density && fe(r.density), r.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(r.zIndex)));
461
471
  }
462
472
  function Ye(e, t) {
463
473
  for (let [n, r] of qe(t)) e.component(n, r);
@@ -1594,7 +1604,7 @@ var st = ["aria-label", "aria-hidden"], ct = {
1594
1604
  key: 0,
1595
1605
  class: x(["wi-button__icon", { "wi-button__icon--loading": n.loading }]),
1596
1606
  "aria-hidden": "true"
1597
- }, [n.loading ? P(e.$slots, "loadingicon", {}, () => [t[0] ||= d("span", { class: "wi-button__spinner" }, null, -1)], void 0, 0) : P(e.$slots, "icon", { class: x("wi-button__icon-slot") }, () => [A.value ? (O(), c($, {
1607
+ }, [n.loading ? P(e.$slots, "loadingicon", {}, () => [t[0] ||= d("span", { class: "wi-button__spinner" }, null, -1)], void 0, 0) : P(e.$slots, "icon", { class: "wi-button__icon-slot" }, () => [A.value ? (O(), c($, {
1598
1608
  key: 0,
1599
1609
  name: A.value,
1600
1610
  size: "sm"
@@ -1957,29 +1967,29 @@ var st = ["aria-label", "aria-hidden"], ct = {
1957
1967
  },
1958
1968
  emits: ["update:modelValue"],
1959
1969
  setup(e, { emit: t }) {
1960
- let n = B(), r = e, i = t, a = _(un, null), o = s(() => r.id ?? `wi-checkbox-${Math.random().toString(36).slice(2, 8)}`), c = Ue("Checkbox", () => r.size ?? a?.size.value), f = s(() => r.disabled || !!a?.disabled.value), m = s(() => r.invalid || !!a?.invalid.value), h = s(() => r.name ?? a?.name.value), g = s(() => a != null && r.value !== void 0), v = s(() => g.value ? a.modelValue.value.includes(r.value) : r.modelValue), b = s(() => [
1970
+ let n = e, r = t, i = B(), a = _(un, null), o = s(() => n.id ?? `wi-checkbox-${Math.random().toString(36).slice(2, 8)}`), c = Ue("Checkbox", () => n.size ?? a?.size.value), f = s(() => n.disabled || !!a?.disabled.value), m = s(() => n.invalid || !!a?.invalid.value), h = s(() => n.name ?? a?.name.value), g = s(() => a != null && n.value !== void 0), v = s(() => g.value ? a.modelValue.value.includes(n.value) : n.modelValue), b = s(() => [
1961
1971
  "wi-checkbox",
1962
1972
  `wi-checkbox--${c.value}`,
1963
1973
  {
1964
1974
  "wi-checkbox--disabled": f.value,
1965
1975
  "wi-checkbox--invalid": m.value,
1966
- "wi-checkbox--indeterminate": r.indeterminate
1976
+ "wi-checkbox--indeterminate": n.indeterminate
1967
1977
  }
1968
1978
  ]);
1969
1979
  function S(e) {
1970
1980
  if (f.value) return;
1971
1981
  let t = e.target.checked;
1972
1982
  if (g.value) {
1973
- a.toggle(r.value, t);
1983
+ a.toggle(n.value, t);
1974
1984
  return;
1975
1985
  }
1976
- i("update:modelValue", t);
1986
+ r("update:modelValue", t);
1977
1987
  }
1978
- return (t, r) => (O(), u("label", {
1988
+ return (t, n) => (O(), u("label", {
1979
1989
  class: x(b.value),
1980
1990
  for: o.value
1981
1991
  }, [
1982
- d("input", y(z(n), {
1992
+ d("input", y(z(i), {
1983
1993
  id: o.value,
1984
1994
  class: "wi-checkbox__input",
1985
1995
  type: "checkbox",
@@ -2284,7 +2294,7 @@ var On = ["aria-label"], kn = ["placeholder", "aria-label"], An = {
2284
2294
  if (e != null) return { "--wi-z-base": String(e) };
2285
2295
  });
2286
2296
  return G(() => {
2287
- !o.value || typeof document > "u" || (i.value.density && xe(i.value.density), i.value.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(i.value.zIndex)));
2297
+ !o.value || typeof document > "u" || (i.value.density && fe(i.value.density), i.value.zIndex != null && document.documentElement.style.setProperty("--wi-z-base", String(i.value.zIndex)));
2288
2298
  }), (e, t) => (O(), u("div", {
2289
2299
  class: "wi-config-provider",
2290
2300
  "data-wi-density": a.value,
@@ -2819,7 +2829,7 @@ var Gn = ["aria-label"], Kn = { class: "wi-dialog__header wi-confirmdialog__head
2819
2829
  disabled: e.disabled || m.value === 1,
2820
2830
  "aria-label": z(o).prevPage,
2821
2831
  onClick: r[0] ||= (e) => v(m.value - 1)
2822
- }, "‹", 8, dr),
2832
+ }, " ", 8, dr),
2823
2833
  e.simple ? (O(), u("span", fr, I(m.value) + " / " + I(p.value), 1)) : (O(!0), u(t, { key: 1 }, N(g.value, (t) => (O(), u("button", {
2824
2834
  key: t,
2825
2835
  type: "button",
@@ -2835,7 +2845,7 @@ var Gn = ["aria-label"], Kn = { class: "wi-dialog__header wi-confirmdialog__head
2835
2845
  disabled: e.disabled || m.value === p.value,
2836
2846
  "aria-label": z(o).nextPage,
2837
2847
  onClick: r[1] ||= (e) => v(m.value + 1)
2838
- }, "›", 8, mr),
2848
+ }, " ", 8, mr),
2839
2849
  e.showSizePicker && !e.simple ? (O(), u("label", hr, [d("span", gr, I(z(o).itemsPerPage), 1), d("select", {
2840
2850
  class: "wi-pagination__select",
2841
2851
  disabled: e.disabled,
@@ -3182,14 +3192,14 @@ var Gn = ["aria-label"], Kn = { class: "wi-dialog__header wi-confirmdialog__head
3182
3192
  class: "wi-datepicker__nav",
3183
3193
  "aria-label": z(p).prevMonth,
3184
3194
  onClick: ue
3185
- }, "‹", 8, Fr),
3195
+ }, " ", 8, Fr),
3186
3196
  d("span", Ir, I(ne.value), 1),
3187
3197
  d("button", {
3188
3198
  type: "button",
3189
3199
  class: "wi-datepicker__nav",
3190
3200
  "aria-label": z(p).nextMonth,
3191
3201
  onClick: de
3192
- }, "›", 8, Lr)
3202
+ }, " ", 8, Lr)
3193
3203
  ]),
3194
3204
  d("div", Rr, [(O(!0), u(t, null, N(z(p).weekdays, (e) => (O(), u("span", { key: e }, I(e), 1))), 128))]),
3195
3205
  d("div", zr, [(O(!0), u(t, null, N(ie.value, (e) => (O(), u("button", {
@@ -3751,16 +3761,16 @@ var Gn = ["aria-label"], Kn = { class: "wi-dialog__header wi-confirmdialog__head
3751
3761
  D && clearTimeout(D), k && clearTimeout(k), D = void 0, k = void 0;
3752
3762
  }
3753
3763
  function ee() {
3754
- r.trigger === "hover" && (H(), D = setTimeout(() => L(!0), r.showDelay));
3764
+ r.trigger === "hover" && (H(), D = setTimeout(L, r.showDelay, !0));
3755
3765
  }
3756
3766
  function te() {
3757
- r.trigger === "hover" && (H(), k = setTimeout(() => L(!1), r.hideDelay));
3767
+ r.trigger === "hover" && (H(), k = setTimeout(L, r.hideDelay, !1));
3758
3768
  }
3759
3769
  function U() {
3760
3770
  r.trigger === "hover" && H();
3761
3771
  }
3762
3772
  function G() {
3763
- r.trigger === "hover" && (H(), k = setTimeout(() => L(!1), r.hideDelay));
3773
+ r.trigger === "hover" && (H(), k = setTimeout(L, r.hideDelay, !1));
3764
3774
  }
3765
3775
  function ne(e) {
3766
3776
  if (r.modelValue) {
@@ -4350,18 +4360,12 @@ var Ai = [
4350
4360
  }, I(z(_).clear), 1)])) : l("", !0)
4351
4361
  ], 2));
4352
4362
  }
4353
- }), ra = { class: "wi-float-label" }, ia = { key: 0 }, aa = /* @__PURE__ */ h({
4354
- __name: "FloatLabel",
4355
- props: { label: {} },
4356
- setup(e) {
4357
- return (t, n) => (O(), u("span", ra, [P(t.$slots, "default"), e.label || t.$slots.label ? (O(), u("label", ia, [P(t.$slots, "label", {}, () => [p(I(e.label), 1)])])) : l("", !0)]));
4358
- }
4359
- }), oa = {
4363
+ }), ra = {
4360
4364
  small: "var(--wi-space-2)",
4361
4365
  medium: "var(--wi-space-3)",
4362
4366
  large: "var(--wi-space-4)"
4363
4367
  };
4364
- function sa(e = "medium") {
4368
+ function ia(e = "medium") {
4365
4369
  if (Array.isArray(e)) {
4366
4370
  let t = `${e[0]}px`, n = `${e[1]}px`;
4367
4371
  return {
@@ -4378,30 +4382,30 @@ function sa(e = "medium") {
4378
4382
  css: t
4379
4383
  };
4380
4384
  }
4381
- let t = oa[e] ?? oa.medium;
4385
+ let t = ra[e] ?? ra.medium;
4382
4386
  return {
4383
4387
  row: t,
4384
4388
  col: t,
4385
4389
  css: t
4386
4390
  };
4387
4391
  }
4388
- function ca(e) {
4392
+ function aa(e) {
4389
4393
  if (e) return e === "start" ? "flex-start" : e === "end" ? "flex-end" : e;
4390
4394
  }
4391
- function la(e = "start") {
4395
+ function oa(e = "start") {
4392
4396
  return e === "start" ? "flex-start" : e === "end" ? "flex-end" : e;
4393
4397
  }
4394
- function ua(e, t) {
4398
+ function sa(e, t) {
4395
4399
  return e ? t ? "column-reverse" : "column" : t ? "row-reverse" : "row";
4396
4400
  }
4397
4401
  //#endregion
4398
4402
  //#region src/shared/vnode.ts
4399
- function da(n) {
4403
+ function ca(n) {
4400
4404
  if (!n?.length) return [];
4401
4405
  let i = [];
4402
4406
  for (let a of n) if (a.type !== e && !(a.type === r && !String(a.children ?? "").trim())) {
4403
4407
  if (a.type === t && Array.isArray(a.children)) {
4404
- i.push(...da(a.children));
4408
+ i.push(...ca(a.children));
4405
4409
  continue;
4406
4410
  }
4407
4411
  i.push(a);
@@ -4410,7 +4414,7 @@ function da(n) {
4410
4414
  }
4411
4415
  //#endregion
4412
4416
  //#region src/components/Flex/Flex.vue
4413
- var fa = /* @__PURE__ */ h({
4417
+ var la = /* @__PURE__ */ h({
4414
4418
  __name: "Flex",
4415
4419
  props: {
4416
4420
  align: {},
@@ -4434,14 +4438,14 @@ var fa = /* @__PURE__ */ h({
4434
4438
  }
4435
4439
  },
4436
4440
  setup(e) {
4437
- let n = e, r = H(), i = Ge("Flex", () => n.size), a = s(() => da(r.default?.())), o = s(() => {
4441
+ let n = e, r = H(), i = Ge("Flex", () => n.size), a = s(() => ca(r.default?.())), o = s(() => {
4438
4442
  if (!a.value.length) return;
4439
- let e = sa(i.value);
4443
+ let e = ia(i.value);
4440
4444
  return {
4441
4445
  display: n.inline ? "inline-flex" : "flex",
4442
- flexDirection: ua(n.vertical, n.reverse),
4443
- justifyContent: la(n.justify),
4444
- alignItems: ca(n.align),
4446
+ flexDirection: sa(n.vertical, n.reverse),
4447
+ justifyContent: oa(n.justify),
4448
+ alignItems: aa(n.align),
4445
4449
  flexWrap: !n.wrap || n.vertical ? "nowrap" : "wrap",
4446
4450
  gap: e.css
4447
4451
  };
@@ -4453,6 +4457,12 @@ var fa = /* @__PURE__ */ h({
4453
4457
  style: S(o.value)
4454
4458
  }, [(O(!0), u(t, null, N(a.value, (e, t) => (O(), c(F(e), { key: t }))), 128))], 4)) : l("", !0);
4455
4459
  }
4460
+ }), ua = { class: "wi-float-label" }, da = { key: 0 }, fa = /* @__PURE__ */ h({
4461
+ __name: "FloatLabel",
4462
+ props: { label: {} },
4463
+ setup(e) {
4464
+ return (t, n) => (O(), u("span", ua, [P(t.$slots, "default"), e.label || t.$slots.label ? (O(), u("label", da, [P(t.$slots, "label", {}, () => [p(I(e.label), 1)])])) : l("", !0)]));
4465
+ }
4456
4466
  }), pa = /* @__PURE__ */ h({
4457
4467
  __name: "Fluid",
4458
4468
  props: { as: { default: "div" } },
@@ -4821,44 +4831,7 @@ function Ha(e) {
4821
4831
  }
4822
4832
  //#endregion
4823
4833
  //#region src/components/Grid/types.ts
4824
- var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
4825
- name: "WiGridItem",
4826
- inheritAttrs: !1,
4827
- __WI_GRID_ITEM__: !0,
4828
- __name: "GridItem",
4829
- props: {
4830
- span: { default: 1 },
4831
- offset: { default: 0 },
4832
- suffix: {
4833
- type: Boolean,
4834
- default: !1
4835
- }
4836
- },
4837
- setup(e) {
4838
- let t = e, n = B(), r = _(Ua, null), i = s(() => {
4839
- let e = n.privateSpan;
4840
- return typeof e == "number" ? e : Va(t.span, void 0) ?? 1;
4841
- }), a = s(() => {
4842
- let e = n.privateOffset;
4843
- return typeof e == "number" ? e : Va(t.offset, void 0) ?? 0;
4844
- }), o = s(() => n.privateColStart), c = s(() => n.privateShow !== !1), l = s(() => {
4845
- let e = i.value, t = a.value, s = r?.xGap.value ?? "0px", l = o.value;
4846
- return [
4847
- r?.itemStyle.value,
4848
- n.style,
4849
- {
4850
- display: c.value ? void 0 : "none",
4851
- gridColumn: l ? `${l} / span ${e}` : `span ${e} / span ${e}`,
4852
- marginLeft: t > 0 ? `calc((100% - (${e} - 1) * ${s}) / ${e} * ${t} + ${s} * ${t})` : void 0
4853
- }
4854
- ];
4855
- }), d = s(() => r?.overflow.value ?? !1);
4856
- return (e, t) => (O(), u("div", {
4857
- class: x(["wi-grid-item", z(n).class]),
4858
- style: S(l.value)
4859
- }, [P(e.$slots, "default", { overflow: d.value })], 6));
4860
- }
4861
- }), Ga = /* @__PURE__ */ h({
4834
+ var Ua = Symbol("wiGrid"), Wa = "__WI_GRID_ITEM__", Ga = /* @__PURE__ */ h({
4862
4835
  name: "WiGrid",
4863
4836
  inheritAttrs: !1,
4864
4837
  __name: "Grid",
@@ -4975,7 +4948,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
4975
4948
  });
4976
4949
  });
4977
4950
  }
4978
- let E = s(() => C(da(i.default?.())));
4951
+ let E = s(() => C(ca(i.default?.())));
4979
4952
  return k(Ua, {
4980
4953
  overflow: d,
4981
4954
  itemStyle: L(r, "itemStyle"),
@@ -4991,21 +4964,58 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
4991
4964
  style: x.value
4992
4965
  }, e.$attrs), [n.layoutShiftDisabled ? P(e.$slots, "default", {}, void 0, void 0, 0) : (O(!0), u(t, { key: 1 }, N(E.value, (e, t) => (O(), c(F(e), { key: t }))), 128))], 16));
4993
4966
  }
4994
- }), Ka = {
4967
+ }), Ka = /* @__PURE__ */ h({
4968
+ name: "WiGridItem",
4969
+ inheritAttrs: !1,
4970
+ [Wa]: !0,
4971
+ __name: "GridItem",
4972
+ props: {
4973
+ span: { default: 1 },
4974
+ offset: { default: 0 },
4975
+ suffix: {
4976
+ type: Boolean,
4977
+ default: !1
4978
+ }
4979
+ },
4980
+ setup(e) {
4981
+ let t = e, n = B(), r = _(Ua, null), i = s(() => {
4982
+ let e = n.privateSpan;
4983
+ return typeof e == "number" ? e : Va(t.span, void 0) ?? 1;
4984
+ }), a = s(() => {
4985
+ let e = n.privateOffset;
4986
+ return typeof e == "number" ? e : Va(t.offset, void 0) ?? 0;
4987
+ }), o = s(() => n.privateColStart), c = s(() => n.privateShow !== !1), l = s(() => {
4988
+ let e = i.value, t = a.value, s = r?.xGap.value ?? "0px", l = o.value;
4989
+ return [
4990
+ r?.itemStyle.value,
4991
+ n.style,
4992
+ {
4993
+ display: c.value ? void 0 : "none",
4994
+ gridColumn: l ? `${l} / span ${e}` : `span ${e} / span ${e}`,
4995
+ marginLeft: t > 0 ? `calc((100% - (${e} - 1) * ${s}) / ${e} * ${t} + ${s} * ${t})` : void 0
4996
+ }
4997
+ ];
4998
+ }), d = s(() => r?.overflow.value ?? !1);
4999
+ return (e, t) => (O(), u("div", {
5000
+ class: x(["wi-grid-item", z(n).class]),
5001
+ style: S(l.value)
5002
+ }, [P(e.$slots, "default", { overflow: d.value })], 6));
5003
+ }
5004
+ }), qa = {
4995
5005
  key: 0,
4996
5006
  class: "wi-icon-field__icon",
4997
5007
  "aria-hidden": "true"
4998
- }, qa = /* @__PURE__ */ h({
5008
+ }, Ja = /* @__PURE__ */ h({
4999
5009
  __name: "IconField",
5000
5010
  props: { iconPosition: { default: "left" } },
5001
5011
  setup(e) {
5002
5012
  let t = e, n = s(() => ["wi-icon-field", t.iconPosition === "right" ? "wi-icon-field--right" : "wi-icon-field--left"]);
5003
- return (e, t) => (O(), u("div", { class: x(n.value) }, [e.$slots.icon ? (O(), u("span", Ka, [P(e.$slots, "icon")])) : l("", !0), P(e.$slots, "default")], 2));
5013
+ return (e, t) => (O(), u("div", { class: x(n.value) }, [e.$slots.icon ? (O(), u("span", qa, [P(e.$slots, "icon")])) : l("", !0), P(e.$slots, "default")], 2));
5004
5014
  }
5005
- }), Ja = ["tabindex", "onKeydown"], Ya = {
5015
+ }), Ya = ["tabindex", "onKeydown"], Xa = {
5006
5016
  key: 1,
5007
5017
  class: "wi-inplace__content"
5008
- }, Xa = /* @__PURE__ */ h({
5018
+ }, Za = /* @__PURE__ */ h({
5009
5019
  __name: "Inplace",
5010
5020
  props: {
5011
5021
  modelValue: {
@@ -5032,19 +5042,19 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5032
5042
  return t({
5033
5043
  activate: o,
5034
5044
  deactivate: c
5035
- }), (t, n) => (O(), u("div", { class: x(a.value) }, [e.modelValue ? (O(), u("div", Ya, [P(t.$slots, "content", { close: c })])) : (O(), u("div", {
5045
+ }), (t, n) => (O(), u("div", { class: x(a.value) }, [e.modelValue ? (O(), u("div", Xa, [P(t.$slots, "content", { close: c })])) : (O(), u("div", {
5036
5046
  key: 0,
5037
5047
  class: "wi-inplace__display",
5038
5048
  role: "button",
5039
5049
  tabindex: e.disabled ? -1 : 0,
5040
5050
  onClick: o,
5041
5051
  onKeydown: [q(J(o, ["prevent"]), ["enter"]), q(J(o, ["prevent"]), ["space"])]
5042
- }, [P(t.$slots, "display")], 40, Ja))], 2));
5052
+ }, [P(t.$slots, "display")], 40, Ya))], 2));
5043
5053
  }
5044
- }), Za = ["for"], Qa = {
5054
+ }), Qa = ["for"], $a = {
5045
5055
  key: 0,
5046
5056
  class: "wi-input__prefix"
5047
- }, $a = [
5057
+ }, eo = [
5048
5058
  "id",
5049
5059
  "type",
5050
5060
  "value",
@@ -5053,13 +5063,13 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5053
5063
  "maxlength",
5054
5064
  "aria-invalid",
5055
5065
  "aria-describedby"
5056
- ], eo = {
5066
+ ], to = {
5057
5067
  key: 1,
5058
5068
  class: "wi-input__suffix"
5059
- }, to = ["aria-label", "disabled"], no = {
5069
+ }, no = ["aria-label", "disabled"], ro = {
5060
5070
  key: 1,
5061
5071
  class: "wi-input-field__meta"
5062
- }, ro = ["id", "role"], io = ["id"], ao = /* @__PURE__ */ h({
5072
+ }, io = ["id", "role"], ao = ["id"], oo = /* @__PURE__ */ h({
5063
5073
  inheritAttrs: !1,
5064
5074
  __name: "Input",
5065
5075
  props: {
@@ -5103,7 +5113,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5103
5113
  },
5104
5114
  emits: ["update:modelValue", "clear"],
5105
5115
  setup(e, { expose: t, emit: n }) {
5106
- let r = B(), i = H(), a = e, o = n, c = He("Input"), f = Z(), p = j(null), m = s(() => a.id ?? `wi-input-${Math.random().toString(36).slice(2, 8)}`), h = s(() => a.invalid || a.error || !!a.errorMessage), g = Ue("Input", () => a.size), _ = We("Input", () => a.variant), v = s(() => a.clearable ?? c.value.clearable ?? !1), b = s(() => a.showCount ?? c.value.showCount ?? !1), S = s(() => a.fluid ?? c.value.fluid ?? !1), C = s(() => a.modelValue.length), w = s(() => a.maxlength == null ? String(C.value) : `${C.value} / ${a.maxlength}`), T = s(() => a.errorMessage || a.helpText), E = s(() => !!a.errorMessage || h.value && !!a.helpText), D = s(() => !!i.prefix), k = s(() => !!i.suffix || v.value && !!a.modelValue), A = s(() => {
5116
+ let r = e, i = n, a = B(), o = H(), c = He("Input"), f = Z(), p = j(null), m = s(() => r.id ?? `wi-input-${Math.random().toString(36).slice(2, 8)}`), h = s(() => r.invalid || r.error || !!r.errorMessage), g = Ue("Input", () => r.size), _ = We("Input", () => r.variant), v = s(() => r.clearable ?? c.value.clearable ?? !1), b = s(() => r.showCount ?? c.value.showCount ?? !1), S = s(() => r.fluid ?? c.value.fluid ?? !1), C = s(() => r.modelValue.length), w = s(() => r.maxlength == null ? String(C.value) : `${C.value} / ${r.maxlength}`), T = s(() => r.errorMessage || r.helpText), E = s(() => !!r.errorMessage || h.value && !!r.helpText), D = s(() => !!o.prefix), k = s(() => !!o.suffix || v.value && !!r.modelValue), A = s(() => {
5107
5117
  let e = [];
5108
5118
  return T.value && e.push(`${m.value}-help`), b.value && e.push(`${m.value}-count`), e.length ? e.join(" ") : void 0;
5109
5119
  }), M = s(() => [
@@ -5119,10 +5129,10 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5119
5129
  }
5120
5130
  ]);
5121
5131
  function N(e) {
5122
- o("update:modelValue", e.target.value);
5132
+ i("update:modelValue", e.target.value);
5123
5133
  }
5124
5134
  function F() {
5125
- a.disabled || a.readonly || (o("update:modelValue", ""), o("clear"), p.value?.focus());
5135
+ r.disabled || r.readonly || (i("update:modelValue", ""), i("clear"), p.value?.focus());
5126
5136
  }
5127
5137
  function L() {
5128
5138
  p.value?.focus();
@@ -5132,19 +5142,18 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5132
5142
  key: 0,
5133
5143
  class: "wi-input-field__label",
5134
5144
  for: m.value
5135
- }, I(e.label), 9, Za)) : l("", !0),
5145
+ }, I(e.label), 9, Qa)) : l("", !0),
5136
5146
  d("div", { class: x(["wi-input-field__control", {
5137
5147
  "wi-input-field__control--clearable": v.value && e.modelValue,
5138
5148
  "wi-input-field__control--counted": b.value,
5139
5149
  "wi-input-field__control--prefixed": D.value,
5140
5150
  "wi-input-field__control--suffixed": t.$slots.suffix || v.value && e.modelValue
5141
5151
  }]) }, [
5142
- t.$slots.prefix ? (O(), u("span", Qa, [P(t.$slots, "prefix")])) : l("", !0),
5143
- d("input", y({
5144
- ref_key: "inputElement",
5145
- ref: p
5146
- }, z(r), {
5152
+ t.$slots.prefix ? (O(), u("span", $a, [P(t.$slots, "prefix")])) : l("", !0),
5153
+ d("input", y(z(a), {
5147
5154
  id: m.value,
5155
+ ref_key: "inputElement",
5156
+ ref: p,
5148
5157
  class: M.value,
5149
5158
  type: e.type,
5150
5159
  value: e.modelValue,
@@ -5154,8 +5163,8 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5154
5163
  "aria-invalid": h.value || void 0,
5155
5164
  "aria-describedby": A.value,
5156
5165
  onInput: N
5157
- }), null, 16, $a),
5158
- t.$slots.suffix ? (O(), u("span", eo, [P(t.$slots, "suffix")])) : l("", !0),
5166
+ }), null, 16, eo),
5167
+ t.$slots.suffix ? (O(), u("span", to, [P(t.$slots, "suffix")])) : l("", !0),
5159
5168
  v.value && e.modelValue ? (O(), u("button", {
5160
5169
  key: 2,
5161
5170
  class: "wi-input__clear",
@@ -5163,34 +5172,34 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5163
5172
  "aria-label": z(f).clearInput,
5164
5173
  disabled: e.disabled || e.readonly,
5165
5174
  onClick: F
5166
- }, " × ", 8, to)) : l("", !0)
5175
+ }, " × ", 8, no)) : l("", !0)
5167
5176
  ], 2),
5168
- T.value || b.value ? (O(), u("div", no, [T.value ? (O(), u("span", {
5177
+ T.value || b.value ? (O(), u("div", ro, [T.value ? (O(), u("span", {
5169
5178
  key: 0,
5170
5179
  id: `${m.value}-help`,
5171
5180
  class: x(["wi-input-field__help", { "wi-input-field__help--error": E.value }]),
5172
5181
  role: E.value ? "alert" : void 0
5173
- }, I(T.value), 11, ro)) : l("", !0), b.value ? (O(), u("span", {
5182
+ }, I(T.value), 11, io)) : l("", !0), b.value ? (O(), u("span", {
5174
5183
  key: 1,
5175
5184
  id: `${m.value}-count`,
5176
5185
  class: "wi-input-field__count",
5177
5186
  "aria-live": "polite"
5178
- }, I(w.value), 9, io)) : l("", !0)])) : l("", !0)
5187
+ }, I(w.value), 9, ao)) : l("", !0)])) : l("", !0)
5179
5188
  ], 2));
5180
5189
  }
5181
- }), oo = { class: "wi-inputcolor__row" }, so = [
5190
+ }), so = { class: "wi-inputcolor__row" }, co = [
5182
5191
  "id",
5183
5192
  "value",
5184
5193
  "disabled",
5185
5194
  "aria-label"
5186
- ], co = ["value", "disabled"], lo = {
5195
+ ], lo = ["value", "disabled"], uo = {
5187
5196
  key: 0,
5188
5197
  class: "wi-inputcolor__swatches"
5189
- }, uo = [
5198
+ }, fo = [
5190
5199
  "disabled",
5191
5200
  "aria-label",
5192
5201
  "onClick"
5193
- ], fo = /* @__PURE__ */ h({
5202
+ ], po = /* @__PURE__ */ h({
5194
5203
  __name: "InputColor",
5195
5204
  props: {
5196
5205
  modelValue: { default: "#000000" },
@@ -5205,7 +5214,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5205
5214
  setup(e, { emit: n }) {
5206
5215
  let r = e, i = n, a = Z(), o = s(() => {
5207
5216
  let e = r.modelValue?.trim() || "#000000";
5208
- return /^#[0-9a-fA-F]{6}$/.test(e) ? e : "#000000";
5217
+ return /^#[0-9a-f]{6}$/i.test(e) ? e : "#000000";
5209
5218
  });
5210
5219
  function c(e) {
5211
5220
  let t = e.target;
@@ -5218,15 +5227,15 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5218
5227
  function p(e) {
5219
5228
  r.disabled || i("update:modelValue", e);
5220
5229
  }
5221
- return (n, r) => (O(), u("div", { class: x(["wi-inputcolor", { "wi-inputcolor--disabled": e.disabled }]) }, [d("div", oo, [d("input", {
5230
+ return (n, r) => (O(), u("div", { class: x(["wi-inputcolor", { "wi-inputcolor--disabled": e.disabled }]) }, [d("div", so, [d("input", {
5231
+ id: e.id,
5222
5232
  class: "wi-inputcolor__swatch",
5223
5233
  type: "color",
5224
- id: e.id,
5225
5234
  value: o.value,
5226
5235
  disabled: e.disabled,
5227
5236
  "aria-label": z(a).selectColor,
5228
5237
  onInput: c
5229
- }, null, 40, so), d("input", {
5238
+ }, null, 40, co), d("input", {
5230
5239
  class: "wi-inputcolor__text",
5231
5240
  type: "text",
5232
5241
  value: e.modelValue,
@@ -5234,7 +5243,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5234
5243
  placeholder: "#000000",
5235
5244
  spellcheck: "false",
5236
5245
  onInput: f
5237
- }, null, 40, co)]), e.swatches?.length ? (O(), u("div", lo, [(O(!0), u(t, null, N(e.swatches, (t) => (O(), u("button", {
5246
+ }, null, 40, lo)]), e.swatches?.length ? (O(), u("div", uo, [(O(!0), u(t, null, N(e.swatches, (t) => (O(), u("button", {
5238
5247
  key: t,
5239
5248
  type: "button",
5240
5249
  class: "wi-inputcolor__preset",
@@ -5242,19 +5251,19 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5242
5251
  disabled: e.disabled,
5243
5252
  "aria-label": t,
5244
5253
  onClick: (e) => p(t)
5245
- }, null, 12, uo))), 128))])) : l("", !0)], 2));
5254
+ }, null, 12, fo))), 128))])) : l("", !0)], 2));
5246
5255
  }
5247
- }), po = { class: "wi-inputgroup" }, mo = /* @__PURE__ */ h({
5256
+ }), mo = { class: "wi-inputgroup" }, ho = /* @__PURE__ */ h({
5248
5257
  __name: "InputGroup",
5249
5258
  setup(e) {
5250
- return (e, t) => (O(), u("div", po, [P(e.$slots, "default")]));
5259
+ return (e, t) => (O(), u("div", mo, [P(e.$slots, "default")]));
5251
5260
  }
5252
- }), ho = { class: "wi-inputgroup-addon" }, go = /* @__PURE__ */ h({
5261
+ }), go = { class: "wi-inputgroup-addon" }, _o = /* @__PURE__ */ h({
5253
5262
  __name: "InputGroupAddon",
5254
5263
  setup(e) {
5255
- return (e, t) => (O(), u("span", ho, [P(e.$slots, "default")]));
5264
+ return (e, t) => (O(), u("span", go, [P(e.$slots, "default")]));
5256
5265
  }
5257
- }), _o = ["for"], vo = ["aria-label", "disabled"], yo = [
5266
+ }), vo = ["for"], yo = ["aria-label", "disabled"], bo = [
5258
5267
  "id",
5259
5268
  "value",
5260
5269
  "min",
@@ -5262,10 +5271,10 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5262
5271
  "step",
5263
5272
  "disabled",
5264
5273
  "aria-invalid"
5265
- ], bo = ["aria-label"], xo = {
5274
+ ], xo = ["aria-label"], So = {
5266
5275
  key: 2,
5267
5276
  class: "wi-inputnumber__stack"
5268
- }, So = ["aria-label", "disabled"], Co = ["aria-label", "disabled"], wo = ["aria-label", "disabled"], To = /* @__PURE__ */ h({
5277
+ }, Co = ["aria-label", "disabled"], wo = ["aria-label", "disabled"], To = ["aria-label", "disabled"], Eo = /* @__PURE__ */ h({
5269
5278
  inheritAttrs: !1,
5270
5279
  __name: "InputNumber",
5271
5280
  props: {
@@ -5301,25 +5310,25 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5301
5310
  },
5302
5311
  emits: ["update:modelValue"],
5303
5312
  setup(e, { emit: t }) {
5304
- let n = B(), r = e, i = t, a = Z(), o = s(() => r.id ?? `wi-inputnumber-${Math.random().toString(36).slice(2, 8)}`), c = Ue("InputNumber", () => r.size), f = s(() => r.clearable && r.modelValue != null && !r.disabled), p = s(() => [
5313
+ let n = e, r = t, i = B(), a = Z(), o = s(() => n.id ?? `wi-inputnumber-${Math.random().toString(36).slice(2, 8)}`), c = Ue("InputNumber", () => n.size), f = s(() => n.clearable && n.modelValue != null && !n.disabled), p = s(() => [
5305
5314
  "wi-inputnumber",
5306
5315
  `wi-inputnumber--${c.value}`,
5307
5316
  {
5308
- "wi-inputnumber--fluid": r.fluid,
5309
- "wi-inputnumber--invalid": r.invalid,
5310
- "wi-inputnumber--disabled": r.disabled,
5311
- "wi-inputnumber--buttons": r.showButtons,
5312
- "wi-inputnumber--buttons-right": r.showButtons && r.buttonPlacement === "right"
5317
+ "wi-inputnumber--fluid": n.fluid,
5318
+ "wi-inputnumber--invalid": n.invalid,
5319
+ "wi-inputnumber--disabled": n.disabled,
5320
+ "wi-inputnumber--buttons": n.showButtons,
5321
+ "wi-inputnumber--buttons-right": n.showButtons && n.buttonPlacement === "right"
5313
5322
  }
5314
5323
  ]);
5315
5324
  function m(e) {
5316
- if (r.precision == null) return e;
5317
- let t = 10 ** r.precision;
5325
+ if (n.precision == null) return e;
5326
+ let t = 10 ** n.precision;
5318
5327
  return Math.round(e * t) / t;
5319
5328
  }
5320
5329
  function h(e) {
5321
5330
  let t = m(e);
5322
- return r.min != null && t < r.min && (t = r.min), r.max != null && t > r.max && (t = r.max), t;
5331
+ return n.min != null && t < n.min && (t = n.min), n.max != null && t > n.max && (t = n.max), t;
5323
5332
  }
5324
5333
  function g(e) {
5325
5334
  let t = e.trim();
@@ -5328,30 +5337,30 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5328
5337
  return Number.isNaN(n) ? null : h(n);
5329
5338
  }
5330
5339
  function _(e) {
5331
- r.disabled || i("update:modelValue", g(e.target.value));
5340
+ n.disabled || r("update:modelValue", g(e.target.value));
5332
5341
  }
5333
5342
  function v(e) {
5334
- if (r.disabled) return;
5335
- let t = r.modelValue ?? r.min ?? 0;
5336
- i("update:modelValue", h(t + e * r.step));
5343
+ if (n.disabled) return;
5344
+ let t = n.modelValue ?? n.min ?? 0;
5345
+ r("update:modelValue", h(t + e * n.step));
5337
5346
  }
5338
5347
  function b() {
5339
- r.disabled || i("update:modelValue", null);
5348
+ n.disabled || r("update:modelValue", null);
5340
5349
  }
5341
- return (t, r) => (O(), u("div", { class: x(["wi-inputnumber-field", { "wi-inputnumber-field--fluid": e.fluid }]) }, [e.label ? (O(), u("label", {
5350
+ return (t, n) => (O(), u("div", { class: x(["wi-inputnumber-field", { "wi-inputnumber-field--fluid": e.fluid }]) }, [e.label ? (O(), u("label", {
5342
5351
  key: 0,
5343
5352
  class: "wi-inputnumber-field__label",
5344
5353
  for: o.value
5345
- }, I(e.label), 9, _o)) : l("", !0), d("div", { class: x(p.value) }, [
5354
+ }, I(e.label), 9, vo)) : l("", !0), d("div", { class: x(p.value) }, [
5346
5355
  e.showButtons && e.buttonPlacement === "both" ? (O(), u("button", {
5347
5356
  key: 0,
5348
5357
  class: "wi-inputnumber__button wi-inputnumber__button--decrement",
5349
5358
  type: "button",
5350
5359
  "aria-label": z(a).decrease,
5351
5360
  disabled: e.disabled || e.min != null && e.modelValue != null && e.modelValue <= e.min,
5352
- onClick: r[0] ||= (e) => v(-1)
5353
- }, " − ", 8, vo)) : l("", !0),
5354
- d("input", y(z(n), {
5361
+ onClick: n[0] ||= (e) => v(-1)
5362
+ }, " − ", 8, yo)) : l("", !0),
5363
+ d("input", y(z(i), {
5355
5364
  id: o.value,
5356
5365
  class: "wi-inputnumber__input",
5357
5366
  type: "number",
@@ -5362,44 +5371,44 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5362
5371
  disabled: e.disabled,
5363
5372
  "aria-invalid": e.invalid || void 0,
5364
5373
  onInput: _
5365
- }), null, 16, yo),
5374
+ }), null, 16, bo),
5366
5375
  f.value ? (O(), u("button", {
5367
5376
  key: 1,
5368
5377
  type: "button",
5369
5378
  class: "wi-inputnumber__clear",
5370
5379
  "aria-label": z(a).clearInput,
5371
5380
  onClick: b
5372
- }, " × ", 8, bo)) : l("", !0),
5373
- e.showButtons && e.buttonPlacement === "right" ? (O(), u("div", xo, [d("button", {
5381
+ }, " × ", 8, xo)) : l("", !0),
5382
+ e.showButtons && e.buttonPlacement === "right" ? (O(), u("div", So, [d("button", {
5374
5383
  class: "wi-inputnumber__button wi-inputnumber__button--increment",
5375
5384
  type: "button",
5376
5385
  "aria-label": z(a).increase,
5377
5386
  disabled: e.disabled || e.max != null && e.modelValue != null && e.modelValue >= e.max,
5378
- onClick: r[1] ||= (e) => v(1)
5379
- }, " + ", 8, So), d("button", {
5387
+ onClick: n[1] ||= (e) => v(1)
5388
+ }, " + ", 8, Co), d("button", {
5380
5389
  class: "wi-inputnumber__button wi-inputnumber__button--decrement",
5381
5390
  type: "button",
5382
5391
  "aria-label": z(a).decrease,
5383
5392
  disabled: e.disabled || e.min != null && e.modelValue != null && e.modelValue <= e.min,
5384
- onClick: r[2] ||= (e) => v(-1)
5385
- }, " − ", 8, Co)])) : e.showButtons ? (O(), u("button", {
5393
+ onClick: n[2] ||= (e) => v(-1)
5394
+ }, " − ", 8, wo)])) : e.showButtons ? (O(), u("button", {
5386
5395
  key: 3,
5387
5396
  class: "wi-inputnumber__button wi-inputnumber__button--increment",
5388
5397
  type: "button",
5389
5398
  "aria-label": z(a).increase,
5390
5399
  disabled: e.disabled || e.max != null && e.modelValue != null && e.modelValue >= e.max,
5391
- onClick: r[3] ||= (e) => v(1)
5392
- }, " + ", 8, wo)) : l("", !0)
5400
+ onClick: n[3] ||= (e) => v(1)
5401
+ }, " + ", 8, To)) : l("", !0)
5393
5402
  ], 2)], 2));
5394
5403
  }
5395
- }), Eo = [
5404
+ }), Do = [
5396
5405
  "type",
5397
5406
  "value",
5398
5407
  "disabled",
5399
5408
  "aria-label",
5400
5409
  "onInput",
5401
5410
  "onKeydown"
5402
- ], Do = /* @__PURE__ */ h({
5411
+ ], Oo = /* @__PURE__ */ h({
5403
5412
  __name: "InputOtp",
5404
5413
  props: {
5405
5414
  modelValue: { default: "" },
@@ -5472,7 +5481,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5472
5481
  b(() => o.value[n]?.focus());
5473
5482
  }
5474
5483
  return W(() => r.length, () => {
5475
- o.value = Array.from({ length: r.length }, () => null);
5484
+ o.value = Array.from({ length: r.length }).fill(null);
5476
5485
  }, { immediate: !0 }), (n, r) => (O(), u("div", {
5477
5486
  class: x(d.value),
5478
5487
  style: S(f.value),
@@ -5492,9 +5501,9 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5492
5501
  "aria-label": z(et)(z(a).otpDigit, { index: n + 1 }),
5493
5502
  onInput: (e) => g(n, e),
5494
5503
  onKeydown: (e) => _(n, e)
5495
- }, null, 40, Eo))), 128))], 38));
5504
+ }, null, 40, Do))), 128))], 38));
5496
5505
  }
5497
- }), Oo = ["for"], ko = [
5506
+ }), ko = ["for"], Ao = [
5498
5507
  "id",
5499
5508
  "type",
5500
5509
  "value",
@@ -5503,14 +5512,14 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5503
5512
  "maxlength",
5504
5513
  "aria-invalid",
5505
5514
  "aria-describedby"
5506
- ], Ao = ["aria-label", "disabled"], jo = [
5515
+ ], jo = ["aria-label", "disabled"], Mo = [
5507
5516
  "aria-label",
5508
5517
  "aria-pressed",
5509
5518
  "disabled"
5510
- ], Mo = {
5519
+ ], No = {
5511
5520
  key: 1,
5512
5521
  class: "wi-password-field__meta"
5513
- }, No = ["id"], Po = ["id"], Fo = /* @__PURE__ */ h({
5522
+ }, Po = ["id"], Fo = ["id"], Io = /* @__PURE__ */ h({
5514
5523
  inheritAttrs: !1,
5515
5524
  __name: "InputPassword",
5516
5525
  props: {
@@ -5558,34 +5567,34 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5558
5567
  },
5559
5568
  emits: ["update:modelValue", "clear"],
5560
5569
  setup(e, { emit: t }) {
5561
- let n = B(), r = e, i = t, a = He("InputPassword"), o = Z(), f = j(!1), p = j(null), m = s(() => r.id ?? `wi-password-${Math.random().toString(36).slice(2, 8)}`), h = Ue("InputPassword", () => r.size), g = We("InputPassword", () => r.variant), _ = s(() => r.fluid ?? a.value.fluid ?? !1), v = s(() => r.clearable ?? a.value.clearable ?? !1), b = s(() => r.showCount ?? a.value.showCount ?? !1), S = s(() => r.showPasswordOn ?? a.value.showPasswordOn ?? "click"), C = s(() => typeof r.showIcon == "string" ? r.showIcon : void 0), T = s(() => typeof r.showIcon == "string" || !r.showIcon ? void 0 : r.showIcon), E = s(() => typeof r.hideIcon == "string" ? r.hideIcon : void 0), D = s(() => typeof r.hideIcon == "string" || !r.hideIcon ? void 0 : r.hideIcon), k = s(() => {
5562
- let e = r.modelValue ?? "";
5570
+ let n = e, r = t, i = B(), a = He("InputPassword"), o = Z(), f = j(!1), p = j(null), m = s(() => n.id ?? `wi-password-${Math.random().toString(36).slice(2, 8)}`), h = Ue("InputPassword", () => n.size), g = We("InputPassword", () => n.variant), _ = s(() => n.fluid ?? a.value.fluid ?? !1), v = s(() => n.clearable ?? a.value.clearable ?? !1), b = s(() => n.showCount ?? a.value.showCount ?? !1), S = s(() => n.showPasswordOn ?? a.value.showPasswordOn ?? "click"), C = s(() => typeof n.showIcon == "string" ? n.showIcon : void 0), T = s(() => typeof n.showIcon == "string" || !n.showIcon ? void 0 : n.showIcon), E = s(() => typeof n.hideIcon == "string" ? n.hideIcon : void 0), D = s(() => typeof n.hideIcon == "string" || !n.hideIcon ? void 0 : n.hideIcon), k = s(() => {
5571
+ let e = n.modelValue ?? "";
5563
5572
  if (!e) return "empty";
5564
5573
  let t = 0;
5565
- return e.length >= 8 && (t += 1), /[A-Z]/.test(e) && /[a-z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^A-Za-z0-9]/.test(e) && (t += 1), t <= 1 ? "weak" : t <= 3 ? "medium" : "strong";
5566
- }), A = s(() => k.value === "weak" ? o.value.passwordWeak : k.value === "medium" ? o.value.passwordMedium : k.value === "strong" ? o.value.passwordStrong : ""), M = s(() => (r.modelValue ?? "").length), N = s(() => r.maxlength == null ? String(M.value) : `${M.value} / ${r.maxlength}`), L = s(() => v.value && !!r.modelValue), R = s(() => {
5574
+ return e.length >= 8 && (t += 1), /[A-Z]/.test(e) && /[a-z]/.test(e) && (t += 1), /\d/.test(e) && (t += 1), /[^A-Z0-9]/i.test(e) && (t += 1), t <= 1 ? "weak" : t <= 3 ? "medium" : "strong";
5575
+ }), A = s(() => k.value === "weak" ? o.value.passwordWeak : k.value === "medium" ? o.value.passwordMedium : k.value === "strong" ? o.value.passwordStrong : ""), M = s(() => (n.modelValue ?? "").length), N = s(() => n.maxlength == null ? String(M.value) : `${M.value} / ${n.maxlength}`), L = s(() => v.value && !!n.modelValue), R = s(() => {
5567
5576
  let e = [];
5568
- return r.feedback && k.value !== "empty" && e.push(`${m.value}-feedback`), b.value && e.push(`${m.value}-count`), e.length ? e.join(" ") : void 0;
5577
+ return n.feedback && k.value !== "empty" && e.push(`${m.value}-feedback`), b.value && e.push(`${m.value}-count`), e.length ? e.join(" ") : void 0;
5569
5578
  }), V = s(() => [
5570
5579
  "wi-password",
5571
5580
  `wi-password--${h.value}`,
5572
5581
  {
5573
5582
  "wi-password--filled": g.value === "filled",
5574
5583
  "wi-password--fluid": _.value,
5575
- "wi-password--invalid": r.invalid,
5576
- "wi-password--disabled": r.disabled,
5577
- "wi-password--toggle": r.toggleMask,
5584
+ "wi-password--invalid": n.invalid,
5585
+ "wi-password--disabled": n.disabled,
5586
+ "wi-password--toggle": n.toggleMask,
5578
5587
  "wi-password--clearable": L.value
5579
5588
  }
5580
5589
  ]);
5581
5590
  function H(e) {
5582
- r.disabled || r.readonly || i("update:modelValue", e.target.value);
5591
+ n.disabled || n.readonly || r("update:modelValue", e.target.value);
5583
5592
  }
5584
5593
  function ee() {
5585
- r.disabled || r.readonly || (i("update:modelValue", ""), i("clear"), p.value?.focus());
5594
+ n.disabled || n.readonly || (r("update:modelValue", ""), r("clear"), p.value?.focus());
5586
5595
  }
5587
5596
  function te(e) {
5588
- if (!r.disabled) {
5597
+ if (!n.disabled) {
5589
5598
  if (S.value === "mousedown") {
5590
5599
  e.preventDefault();
5591
5600
  return;
@@ -5598,27 +5607,26 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5598
5607
  U &&= (document.removeEventListener("mouseup", U), void 0), W &&= (document.removeEventListener("keyup", W), void 0);
5599
5608
  }
5600
5609
  function K(e) {
5601
- r.disabled || (e.preventDefault(), S.value === "mousedown" && (f.value = !0, G(), U = () => {
5610
+ n.disabled || (e.preventDefault(), S.value === "mousedown" && (f.value = !0, G(), U = () => {
5602
5611
  f.value = !1, G();
5603
5612
  }, document.addEventListener("mouseup", U)));
5604
5613
  }
5605
5614
  function ne(e) {
5606
- r.disabled || S.value === "mousedown" && (e.key === " " || e.key === "Enter") && (e.preventDefault(), f.value = !0, G(), W = (t) => {
5615
+ n.disabled || S.value === "mousedown" && (e.key === " " || e.key === "Enter") && (e.preventDefault(), f.value = !0, G(), W = (t) => {
5607
5616
  t.key === e.key && (f.value = !1, G());
5608
5617
  }, document.addEventListener("keyup", W));
5609
5618
  }
5610
- return w(G), (t, r) => (O(), u("div", { class: x(["wi-password-field", { "wi-password-field--fluid": _.value }]) }, [
5619
+ return w(G), (t, n) => (O(), u("div", { class: x(["wi-password-field", { "wi-password-field--fluid": _.value }]) }, [
5611
5620
  e.label ? (O(), u("label", {
5612
5621
  key: 0,
5613
5622
  class: "wi-password-field__label",
5614
5623
  for: m.value
5615
- }, I(e.label), 9, Oo)) : l("", !0),
5624
+ }, I(e.label), 9, ko)) : l("", !0),
5616
5625
  d("div", { class: x(V.value) }, [
5617
- d("input", y({
5618
- ref_key: "inputElement",
5619
- ref: p
5620
- }, z(n), {
5626
+ d("input", y(z(i), {
5621
5627
  id: m.value,
5628
+ ref_key: "inputElement",
5629
+ ref: p,
5622
5630
  class: "wi-password__input",
5623
5631
  type: f.value ? "text" : "password",
5624
5632
  value: e.modelValue,
@@ -5629,7 +5637,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5629
5637
  "aria-describedby": R.value,
5630
5638
  autocomplete: "current-password",
5631
5639
  onInput: H
5632
- }), null, 16, ko),
5640
+ }), null, 16, Ao),
5633
5641
  L.value ? (O(), u("button", {
5634
5642
  key: 0,
5635
5643
  class: "wi-password__clear",
@@ -5637,7 +5645,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5637
5645
  "aria-label": z(o).clearInput,
5638
5646
  disabled: e.disabled || e.readonly,
5639
5647
  onClick: ee
5640
- }, " × ", 8, Ao)) : l("", !0),
5648
+ }, " × ", 8, jo)) : l("", !0),
5641
5649
  e.toggleMask ? (O(), u("button", {
5642
5650
  key: 1,
5643
5651
  class: "wi-password__toggle",
@@ -5656,29 +5664,29 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5656
5664
  key: 0,
5657
5665
  name: C.value,
5658
5666
  size: "sm"
5659
- }, null, 8, ["name"])) : T.value ? (O(), c(F(T.value), { key: 1 })) : l("", !0)], void 0, 1)], 40, jo)) : l("", !0)
5667
+ }, null, 8, ["name"])) : T.value ? (O(), c(F(T.value), { key: 1 })) : l("", !0)], void 0, 1)], 40, Mo)) : l("", !0)
5660
5668
  ], 2),
5661
- e.feedback && k.value !== "empty" || b.value ? (O(), u("div", Mo, [e.feedback && k.value !== "empty" ? (O(), u("span", {
5669
+ e.feedback && k.value !== "empty" || b.value ? (O(), u("div", No, [e.feedback && k.value !== "empty" ? (O(), u("span", {
5662
5670
  key: 0,
5663
5671
  id: `${m.value}-feedback`,
5664
5672
  class: x(["wi-password__feedback", `wi-password__feedback--${k.value}`])
5665
- }, I(z(et)(z(o).passwordStrength, { value: A.value })), 11, No)) : l("", !0), b.value ? (O(), u("span", {
5673
+ }, I(z(et)(z(o).passwordStrength, { value: A.value })), 11, Po)) : l("", !0), b.value ? (O(), u("span", {
5666
5674
  key: 1,
5667
5675
  id: `${m.value}-count`,
5668
5676
  class: "wi-password-field__count",
5669
5677
  "aria-live": "polite"
5670
- }, I(N.value), 9, Po)) : l("", !0)])) : l("", !0)
5678
+ }, I(N.value), 9, Fo)) : l("", !0)])) : l("", !0)
5671
5679
  ], 2));
5672
5680
  }
5673
- }), Io = [
5681
+ }), Lo = [
5674
5682
  "disabled",
5675
5683
  "aria-label",
5676
5684
  "onClick"
5677
- ], Lo = [
5685
+ ], Ro = [
5678
5686
  "value",
5679
5687
  "placeholder",
5680
5688
  "disabled"
5681
- ], Ro = /* @__PURE__ */ h({
5689
+ ], zo = /* @__PURE__ */ h({
5682
5690
  __name: "InputTags",
5683
5691
  props: {
5684
5692
  modelValue: { default: () => [] },
@@ -5755,7 +5763,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5755
5763
  disabled: e.disabled,
5756
5764
  "aria-label": z(a).removeTag,
5757
5765
  onClick: (e) => g(n)
5758
- }, " × ", 8, Io)]))), 128)), d("input", {
5766
+ }, " × ", 8, Lo)]))), 128)), d("input", {
5759
5767
  value: o.value,
5760
5768
  class: "wi-inputtags__input",
5761
5769
  type: "text",
@@ -5764,30 +5772,30 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5764
5772
  onInput: v,
5765
5773
  onKeydown: _,
5766
5774
  onBlur: y
5767
- }, null, 40, Lo)], 2));
5775
+ }, null, 40, Ro)], 2));
5768
5776
  }
5769
- }), zo = [
5777
+ }), Bo = [
5770
5778
  "aria-valuemin",
5771
5779
  "aria-valuemax",
5772
5780
  "aria-valuenow",
5773
5781
  "aria-disabled",
5774
5782
  "tabindex"
5775
- ], Bo = [
5783
+ ], Vo = [
5776
5784
  "width",
5777
5785
  "height",
5778
5786
  "viewBox"
5779
- ], Vo = [
5787
+ ], Ho = [
5780
5788
  "cx",
5781
5789
  "cy",
5782
5790
  "r"
5783
- ], Ho = [
5791
+ ], Uo = [
5784
5792
  "cx",
5785
5793
  "cy",
5786
5794
  "r",
5787
5795
  "stroke-dasharray",
5788
5796
  "stroke-dashoffset",
5789
5797
  "transform"
5790
- ], Uo = { class: "wi-knob__label" }, Wo = /* @__PURE__ */ h({
5798
+ ], Wo = { class: "wi-knob__label" }, Go = /* @__PURE__ */ h({
5791
5799
  __name: "Knob",
5792
5800
  props: {
5793
5801
  modelValue: { default: 0 },
@@ -5858,7 +5866,7 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5858
5866
  r: l.value,
5859
5867
  fill: "none",
5860
5868
  "stroke-width": "8"
5861
- }, null, 8, Vo), d("circle", {
5869
+ }, null, 8, Ho), d("circle", {
5862
5870
  class: "wi-knob__value",
5863
5871
  cx: e.size / 2,
5864
5872
  cy: e.size / 2,
@@ -5868,9 +5876,9 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5868
5876
  "stroke-dasharray": f.value,
5869
5877
  "stroke-dashoffset": p.value,
5870
5878
  transform: `rotate(-90 ${e.size / 2} ${e.size / 2})`
5871
- }, null, 8, Ho)], 40, Bo)), d("span", Uo, I(m.value), 1)], 42, zo));
5879
+ }, null, 8, Uo)], 40, Vo)), d("span", Wo, I(m.value), 1)], 42, Bo));
5872
5880
  }
5873
- }), Go = ["for"], Ko = /* @__PURE__ */ h({
5881
+ }), Ko = ["for"], qo = /* @__PURE__ */ h({
5874
5882
  inheritAttrs: !1,
5875
5883
  __name: "Label",
5876
5884
  props: {
@@ -5882,9 +5890,9 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5882
5890
  return (e, t) => (O(), u("label", y({
5883
5891
  class: "wi-label",
5884
5892
  for: r.value
5885
- }, z(n)), [P(e.$slots, "default")], 16, Go));
5893
+ }, z(n)), [P(e.$slots, "default")], 16, Ko));
5886
5894
  }
5887
- }), qo = Symbol("wiScrollbar"), Jo = {
5895
+ }), Jo = Symbol("wiScrollbar"), Yo = {
5888
5896
  vertical: {
5889
5897
  offset: "offsetHeight",
5890
5898
  scroll: "scrollTop",
@@ -5906,27 +5914,27 @@ var Ua = Symbol("wiGrid"), Wa = /* @__PURE__ */ h({
5906
5914
  direction: "left"
5907
5915
  }
5908
5916
  };
5909
- function Yo(e) {
5917
+ function Xo(e) {
5910
5918
  if (e == null || e === "") return;
5911
5919
  if (typeof e == "number") return `${e}px`;
5912
5920
  let t = String(e).trim();
5913
5921
  return /^\d+(\.\d+)?$/.test(t) ? `${t}px` : t;
5914
5922
  }
5915
- function Xo({ move: e, size: t, bar: n }) {
5923
+ function Zo({ move: e, size: t, bar: n }) {
5916
5924
  return {
5917
5925
  [n.size]: t,
5918
5926
  transform: `translate${n.axis}(${e}%)`
5919
5927
  };
5920
5928
  }
5921
- function Zo(e) {
5929
+ function Qo(e) {
5922
5930
  return typeof e == "number" && !Number.isNaN(e);
5923
5931
  }
5924
- function Qo(e) {
5932
+ function $o(e) {
5925
5933
  return Object.prototype.toString.call(e) === "[object Object]";
5926
5934
  }
5927
5935
  //#endregion
5928
5936
  //#region src/components/Scrollbar/Thumb.vue?vue&type=script&setup=true&lang.ts
5929
- var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
5937
+ var es = ["aria-orientation", "aria-controls"], ts = /* @__PURE__ */ h({
5930
5938
  __name: "Thumb",
5931
5939
  props: {
5932
5940
  vertical: { type: Boolean },
@@ -5936,9 +5944,9 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
5936
5944
  always: { type: Boolean }
5937
5945
  },
5938
5946
  setup(e) {
5939
- let t = e, n = _(qo);
5947
+ let t = e, n = _(Jo);
5940
5948
  if (!n) throw Error("[WiScrollbar] Thumb must be used inside WiScrollbar");
5941
- let r = n, a = j(), o = j(), l = j(!1), u = j({}), f = !1, p = !0, m = 0, h = 0, g = null, v, y, b = s(() => t.vertical ? "vertical" : "horizontal"), C = s(() => Jo[b.value]), E = s(() => Xo({
5949
+ let r = n, a = j(), o = j(), l = j(!1), u = j({}), f = !1, p = !0, m = 0, h = 0, g = null, v, y, b = s(() => t.vertical ? "vertical" : "horizontal"), C = s(() => Yo[b.value]), E = s(() => Zo({
5942
5950
  size: t.size,
5943
5951
  move: t.move,
5944
5952
  bar: C.value
@@ -6048,11 +6056,11 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6048
6056
  class: "wi-scrollbar__thumb",
6049
6057
  style: S(E.value),
6050
6058
  onMousedown: F
6051
- }, null, 36)], 42, $o), [[U, e.size && D.value]])]),
6059
+ }, null, 36)], 42, es), [[U, e.size && D.value]])]),
6052
6060
  _: 1
6053
6061
  }));
6054
6062
  }
6055
- }), ts = ["tabindex"], ns = /* @__PURE__ */ h({
6063
+ }), ns = ["tabindex"], rs = /* @__PURE__ */ h({
6056
6064
  name: "WiScrollbar",
6057
6065
  __name: "Scrollbar",
6058
6066
  props: {
@@ -6106,14 +6114,14 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6106
6114
  left: "right",
6107
6115
  right: "left"
6108
6116
  }, ee = s(() => {
6109
- let e = {}, t = Yo(i.height), n = Yo(i.maxHeight);
6117
+ let e = {}, t = Xo(i.height), n = Xo(i.maxHeight);
6110
6118
  return t && (e.height = t), n && (e.maxHeight = n), [i.wrapStyle, e];
6111
6119
  }), te = s(() => [
6112
6120
  "wi-scrollbar__wrap",
6113
6121
  i.wrapClass,
6114
6122
  { "wi-scrollbar__wrap--hidden-default": !i.native }
6115
6123
  ]), U = s(() => ["wi-scrollbar__view", i.viewClass]), G = s(() => !!(i.always || i.trigger === "none"));
6116
- k(qo, A({
6124
+ k(Jo, A({
6117
6125
  scrollbarElement: o,
6118
6126
  wrapElement: f,
6119
6127
  contentId: N
@@ -6164,13 +6172,13 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6164
6172
  }
6165
6173
  function oe(e, t) {
6166
6174
  let n = f.value;
6167
- n && (Qo(e) ? n.scrollTo(e) : Zo(e) && Zo(t) && n.scrollTo(e, t));
6175
+ n && ($o(e) ? n.scrollTo(e) : Qo(e) && Qo(t) && n.scrollTo(e, t));
6168
6176
  }
6169
6177
  function se(e) {
6170
- !Zo(e) || !f.value || (f.value.scrollTop = e);
6178
+ !Qo(e) || !f.value || (f.value.scrollTop = e);
6171
6179
  }
6172
6180
  function ce(e) {
6173
- !Zo(e) || !f.value || (f.value.scrollLeft = e);
6181
+ !Qo(e) || !f.value || (f.value.scrollLeft = e);
6174
6182
  }
6175
6183
  function le() {
6176
6184
  z ||= requestAnimationFrame(() => {
@@ -6238,7 +6246,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6238
6246
  "role",
6239
6247
  "aria-label",
6240
6248
  "aria-orientation"
6241
- ]))], 46, ts), e.native ? l("", !0) : (O(), u(t, { key: 0 }, [m(es, {
6249
+ ]))], 46, ns), e.native ? l("", !0) : (O(), u(t, { key: 0 }, [m(ts, {
6242
6250
  move: h.value,
6243
6251
  ratio: y.value,
6244
6252
  size: _.value,
@@ -6248,7 +6256,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6248
6256
  "ratio",
6249
6257
  "size",
6250
6258
  "always"
6251
- ]), m(es, {
6259
+ ]), m(ts, {
6252
6260
  vertical: "",
6253
6261
  move: g.value,
6254
6262
  ratio: E.value,
@@ -6261,10 +6269,12 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6261
6269
  "always"
6262
6270
  ])], 64))], 512));
6263
6271
  }
6264
- }), rs = Symbol("wiLayout"), is = /* @__PURE__ */ h({
6272
+ }), is = Symbol("wiLayout"), as = /* @__PURE__ */ h({
6265
6273
  name: "WiLayout",
6266
6274
  __name: "Layout",
6267
6275
  props: {
6276
+ height: {},
6277
+ width: {},
6268
6278
  embedded: {
6269
6279
  type: Boolean,
6270
6280
  default: !1
@@ -6286,7 +6296,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6286
6296
  emits: ["scroll"],
6287
6297
  setup(e, { expose: t, emit: n }) {
6288
6298
  let r = e, i = n;
6289
- k(rs, {
6299
+ k(is, {
6290
6300
  get hasSider() {
6291
6301
  return r.hasSider;
6292
6302
  },
@@ -6294,7 +6304,10 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6294
6304
  return r.siderPlacement;
6295
6305
  }
6296
6306
  });
6297
- let a = ee("scrollEl"), o = ee("scrollbarRef"), l = s(() => [
6307
+ let a = ee("scrollEl"), o = ee("scrollbarRef"), l = s(() => ({
6308
+ height: r.height == null ? "var(--wi-layout-height, 100%)" : Ha(r.height),
6309
+ width: r.width == null ? "100%" : Ha(r.width)
6310
+ })), d = s(() => [
6298
6311
  "wi-layout",
6299
6312
  `wi-layout--${r.position}-positioned`,
6300
6313
  {
@@ -6303,7 +6316,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6303
6316
  "wi-layout--sider-right": r.hasSider && r.siderPlacement === "right",
6304
6317
  "wi-layout--custom-scrollbar": !r.nativeScrollbar
6305
6318
  }
6306
- ]), d = s(() => {
6319
+ ]), f = s(() => {
6307
6320
  if (!r.hasSider) return r.contentStyle;
6308
6321
  let e = {
6309
6322
  display: "flex",
@@ -6312,18 +6325,18 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6312
6325
  flexDirection: r.siderPlacement === "right" ? "row-reverse" : "row"
6313
6326
  };
6314
6327
  return [r.contentStyle, e];
6315
- }), f = s(() => [
6328
+ }), p = s(() => [
6316
6329
  "wi-layout__scroll",
6317
6330
  r.contentClass,
6318
6331
  { "wi-layout__scroll--has-sider": r.hasSider }
6319
- ]), p = s(() => {
6320
- let e = r.scrollbarProps?.viewClass, t = f.value.filter(Boolean);
6332
+ ]), m = s(() => {
6333
+ let e = r.scrollbarProps?.viewClass, t = p.value.filter(Boolean);
6321
6334
  return e == null || e === "" ? t : Array.isArray(e) ? [...t, ...e] : [...t, e];
6322
- }), m = s(() => {
6335
+ }), h = s(() => {
6323
6336
  let e = r.scrollbarProps?.viewStyle;
6324
- return e == null || e === "" ? d.value : [d.value, e];
6337
+ return e == null || e === "" ? f.value : [f.value, e];
6325
6338
  });
6326
- function h(e, t) {
6339
+ function g(e, t) {
6327
6340
  if (r.nativeScrollbar) {
6328
6341
  let n = a.value;
6329
6342
  if (!n) return;
@@ -6333,41 +6346,47 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6333
6346
  let n = o.value;
6334
6347
  n && (typeof e == "number" ? n.scrollTo(e, t ?? 0) : n.scrollTo(e));
6335
6348
  }
6336
- function g(e) {
6349
+ function _(e) {
6337
6350
  i("scroll", e);
6338
6351
  }
6339
- function _() {
6352
+ function v() {
6340
6353
  let e = o.value?.wrapRef;
6341
6354
  if (!e) return;
6342
6355
  let t = new Event("scroll");
6343
6356
  Object.defineProperty(t, "target", { value: e }), Object.defineProperty(t, "currentTarget", { value: e }), i("scroll", t);
6344
6357
  }
6345
- return t({ scrollTo: h }), (t, n) => (O(), u("div", { class: x(l.value) }, [e.nativeScrollbar ? (O(), u("div", {
6358
+ return t({ scrollTo: g }), (t, n) => (O(), u("div", {
6359
+ class: x(d.value),
6360
+ style: S(l.value)
6361
+ }, [e.nativeScrollbar ? (O(), u("div", {
6346
6362
  key: 0,
6347
6363
  ref_key: "scrollEl",
6348
6364
  ref: a,
6349
- class: x(f.value),
6350
- style: S(d.value),
6351
- onScroll: g
6352
- }, [P(t.$slots, "default")], 38)) : (O(), c(ns, y({
6365
+ class: x(p.value),
6366
+ style: S(f.value),
6367
+ onScroll: _
6368
+ }, [P(t.$slots, "default")], 38)) : (O(), c(rs, y({
6353
6369
  key: 1,
6354
6370
  ref_key: "scrollbarRef",
6355
6371
  ref: o,
6356
6372
  class: "wi-layout__scrollbar",
6357
6373
  height: "100%"
6358
6374
  }, e.scrollbarProps, {
6359
- "view-class": p.value,
6360
- "view-style": m.value,
6361
- onScroll: _
6375
+ "view-class": m.value,
6376
+ "view-style": h.value,
6377
+ onScroll: v
6362
6378
  }), {
6363
6379
  default: K(() => [P(t.$slots, "default")]),
6364
6380
  _: 3
6365
- }, 16, ["view-class", "view-style"]))], 2));
6381
+ }, 16, ["view-class", "view-style"]))], 6));
6366
6382
  }
6367
- }), as = /* @__PURE__ */ h({
6383
+ }), os = /* @__PURE__ */ h({
6368
6384
  name: "WiLayoutContent",
6369
6385
  __name: "LayoutContent",
6370
6386
  props: {
6387
+ height: {},
6388
+ padding: {},
6389
+ radius: {},
6371
6390
  embedded: {
6372
6391
  type: Boolean,
6373
6392
  default: !1
@@ -6383,7 +6402,11 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6383
6402
  },
6384
6403
  emits: ["scroll"],
6385
6404
  setup(e, { expose: t, emit: n }) {
6386
- let r = e, i = n, a = ee("scrollEl"), o = ee("scrollbarRef"), l = s(() => [
6405
+ let r = e, i = n, a = ee("scrollEl"), o = ee("scrollbarRef"), l = s(() => ({
6406
+ ...r.height == null ? {} : { height: Ha(r.height) },
6407
+ padding: r.padding == null ? "var(--wi-layout-padding, var(--wi-space-4))" : Ha(r.padding),
6408
+ borderRadius: r.radius == null ? "var(--wi-layout-radius, 0)" : Ha(r.radius)
6409
+ })), d = s(() => [
6387
6410
  "wi-layout",
6388
6411
  "wi-layout-content",
6389
6412
  `wi-layout--${r.position}-positioned`,
@@ -6391,14 +6414,14 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6391
6414
  "wi-layout--embedded": r.embedded,
6392
6415
  "wi-layout--custom-scrollbar": !r.nativeScrollbar
6393
6416
  }
6394
- ]), d = s(() => ["wi-layout__scroll", r.contentClass]), f = s(() => r.contentStyle), p = s(() => {
6395
- let e = r.scrollbarProps?.viewClass, t = d.value.filter(Boolean);
6417
+ ]), f = s(() => ["wi-layout__scroll", r.contentClass]), p = s(() => r.contentStyle), m = s(() => {
6418
+ let e = r.scrollbarProps?.viewClass, t = f.value.filter(Boolean);
6396
6419
  return e == null || e === "" ? t : Array.isArray(e) ? [...t, ...e] : [...t, e];
6397
- }), m = s(() => {
6420
+ }), h = s(() => {
6398
6421
  let e = r.scrollbarProps?.viewStyle;
6399
- return e == null || e === "" ? f.value : [f.value, e];
6422
+ return e == null || e === "" ? p.value : [p.value, e];
6400
6423
  });
6401
- function h(e, t) {
6424
+ function g(e, t) {
6402
6425
  if (r.nativeScrollbar) {
6403
6426
  let n = a.value;
6404
6427
  if (!n) return;
@@ -6408,41 +6431,47 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6408
6431
  let n = o.value;
6409
6432
  n && (typeof e == "number" ? n.scrollTo(e, t ?? 0) : n.scrollTo(e));
6410
6433
  }
6411
- function g(e) {
6434
+ function _(e) {
6412
6435
  i("scroll", e);
6413
6436
  }
6414
- function _() {
6437
+ function v() {
6415
6438
  let e = o.value?.wrapRef;
6416
6439
  if (!e) return;
6417
6440
  let t = new Event("scroll");
6418
6441
  Object.defineProperty(t, "target", { value: e }), Object.defineProperty(t, "currentTarget", { value: e }), i("scroll", t);
6419
6442
  }
6420
- return t({ scrollTo: h }), (t, n) => (O(), u("main", { class: x(l.value) }, [e.nativeScrollbar ? (O(), u("div", {
6443
+ return t({ scrollTo: g }), (t, n) => (O(), u("main", {
6444
+ class: x(d.value),
6445
+ style: S(l.value)
6446
+ }, [e.nativeScrollbar ? (O(), u("div", {
6421
6447
  key: 0,
6422
6448
  ref_key: "scrollEl",
6423
6449
  ref: a,
6424
- class: x(d.value),
6425
- style: S(f.value),
6426
- onScroll: g
6427
- }, [P(t.$slots, "default")], 38)) : (O(), c(ns, y({
6450
+ class: x(f.value),
6451
+ style: S(p.value),
6452
+ onScroll: _
6453
+ }, [P(t.$slots, "default")], 38)) : (O(), c(rs, y({
6428
6454
  key: 1,
6429
6455
  ref_key: "scrollbarRef",
6430
6456
  ref: o,
6431
6457
  class: "wi-layout__scrollbar",
6432
6458
  height: "100%"
6433
6459
  }, e.scrollbarProps, {
6434
- "view-class": p.value,
6435
- "view-style": m.value,
6436
- onScroll: _
6460
+ "view-class": m.value,
6461
+ "view-style": h.value,
6462
+ onScroll: v
6437
6463
  }), {
6438
6464
  default: K(() => [P(t.$slots, "default")]),
6439
6465
  _: 3
6440
- }, 16, ["view-class", "view-style"]))], 2));
6466
+ }, 16, ["view-class", "view-style"]))], 6));
6441
6467
  }
6442
- }), os = /* @__PURE__ */ h({
6468
+ }), ss = /* @__PURE__ */ h({
6443
6469
  name: "WiLayoutFooter",
6444
6470
  __name: "LayoutFooter",
6445
6471
  props: {
6472
+ height: {},
6473
+ padding: {},
6474
+ radius: {},
6446
6475
  bordered: {
6447
6476
  type: Boolean,
6448
6477
  default: !1
@@ -6454,7 +6483,11 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6454
6483
  position: { default: "static" }
6455
6484
  },
6456
6485
  setup(e) {
6457
- let t = e, n = s(() => [
6486
+ let t = e, n = s(() => ({
6487
+ minHeight: t.height == null ? "var(--wi-layout-footer-height, 48px)" : Ha(t.height),
6488
+ padding: t.padding == null ? "var(--wi-layout-padding, var(--wi-space-4))" : Ha(t.padding),
6489
+ borderRadius: t.radius == null ? "var(--wi-layout-radius, 0)" : Ha(t.radius)
6490
+ })), r = s(() => [
6458
6491
  "wi-layout-footer",
6459
6492
  `wi-layout-footer--${t.position}-positioned`,
6460
6493
  {
@@ -6462,15 +6495,21 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6462
6495
  "wi-layout-footer--inverted": t.inverted
6463
6496
  }
6464
6497
  ]);
6465
- return (e, t) => (O(), u("footer", { class: x(n.value) }, [P(e.$slots, "default")], 2));
6498
+ return (e, t) => (O(), u("footer", {
6499
+ class: x(r.value),
6500
+ style: S(n.value)
6501
+ }, [P(e.$slots, "default")], 6));
6466
6502
  }
6467
- }), ss = /* @__PURE__ */ h({
6503
+ }), cs = /* @__PURE__ */ h({
6468
6504
  name: "WiLayoutHeader",
6469
6505
  __name: "LayoutHeader",
6470
6506
  props: {
6507
+ height: {},
6508
+ padding: {},
6509
+ radius: {},
6471
6510
  bordered: {
6472
6511
  type: Boolean,
6473
- default: !1
6512
+ default: !0
6474
6513
  },
6475
6514
  inverted: {
6476
6515
  type: Boolean,
@@ -6479,7 +6518,11 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6479
6518
  position: { default: "static" }
6480
6519
  },
6481
6520
  setup(e) {
6482
- let t = e, n = s(() => [
6521
+ let t = e, n = s(() => ({
6522
+ minHeight: t.height == null ? "var(--wi-layout-header-height, 56px)" : Ha(t.height),
6523
+ padding: t.padding == null ? "var(--wi-layout-padding, var(--wi-space-4))" : Ha(t.padding),
6524
+ borderRadius: t.radius == null ? "var(--wi-layout-radius, 0)" : Ha(t.radius)
6525
+ })), r = s(() => [
6483
6526
  "wi-layout-header",
6484
6527
  `wi-layout-header--${t.position}-positioned`,
6485
6528
  {
@@ -6487,21 +6530,24 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6487
6530
  "wi-layout-header--inverted": t.inverted
6488
6531
  }
6489
6532
  ]);
6490
- return (e, t) => (O(), u("header", { class: x(n.value) }, [P(e.$slots, "default")], 2));
6533
+ return (e, t) => (O(), u("header", {
6534
+ class: x(r.value),
6535
+ style: S(n.value)
6536
+ }, [P(e.$slots, "default")], 6));
6491
6537
  }
6492
- }), cs = ["aria-expanded", "aria-label"], ls = {
6538
+ }), ls = ["aria-expanded", "aria-label"], us = {
6493
6539
  key: 0,
6494
6540
  class: "wi-layout-sider__arrow",
6495
6541
  "aria-hidden": "true"
6496
- }, us = {
6542
+ }, ds = {
6497
6543
  key: 1,
6498
6544
  class: "wi-layout-sider__bar",
6499
6545
  "aria-hidden": "true"
6500
- }, ds = {
6546
+ }, fs = {
6501
6547
  key: 3,
6502
6548
  class: "wi-layout-sider__border",
6503
6549
  "aria-hidden": "true"
6504
- }, fs = /* @__PURE__ */ h({
6550
+ }, ps = /* @__PURE__ */ h({
6505
6551
  name: "WiLayoutSider",
6506
6552
  __name: "LayoutSider",
6507
6553
  props: {
@@ -6514,8 +6560,10 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6514
6560
  default: !1
6515
6561
  },
6516
6562
  position: { default: "static" },
6517
- width: { default: 272 },
6518
- collapsedWidth: { default: 48 },
6563
+ width: { default: "var(--wi-layout-sider-width)" },
6564
+ collapsedWidth: { default: "var(--wi-layout-sider-collapsed-width)" },
6565
+ padding: {},
6566
+ radius: {},
6519
6567
  collapsed: { type: Boolean },
6520
6568
  defaultCollapsed: {
6521
6569
  type: Boolean,
@@ -6551,11 +6599,11 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6551
6599
  "scroll"
6552
6600
  ],
6553
6601
  setup(e, { expose: t, emit: n }) {
6554
- let r = e, i = n, a = Z(), o = _(rs, null), f = j(r.defaultCollapsed), p = ee("scrollEl"), m = ee("scrollbarRef"), h = s(() => r.collapsed !== void 0), g = s(() => h.value ? !!r.collapsed : f.value);
6602
+ let r = e, i = n, a = Z(), o = _(is, null), f = j(r.defaultCollapsed), p = ee("scrollEl"), m = ee("scrollbarRef"), h = s(() => r.collapsed !== void 0), g = s(() => h.value ? !!r.collapsed : f.value);
6555
6603
  W(() => r.collapsed, (e) => {
6556
6604
  e !== void 0 && (f.value = e);
6557
6605
  });
6558
- let v = s(() => o?.siderPlacement ?? "left"), b = s(() => Ha(r.width) ?? "272px"), C = s(() => Ha(g.value ? r.collapsedWidth : r.width)), w = s(() => {
6606
+ let v = s(() => o?.siderPlacement ?? "left"), b = s(() => Ha(r.width) ?? "var(--wi-layout-sider-width)"), C = s(() => Ha(g.value ? r.collapsedWidth : r.width)), w = s(() => {
6559
6607
  let e = r.showTrigger;
6560
6608
  return e ? e === "bar" || e === !0 ? "bar" : "arrow-circle" : null;
6561
6609
  }), T = s(() => !g.value || r.showCollapsedContent), E = s(() => [
@@ -6572,7 +6620,9 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6572
6620
  }
6573
6621
  ]), D = s(() => ({
6574
6622
  width: b.value,
6575
- maxWidth: C.value
6623
+ maxWidth: C.value,
6624
+ padding: r.padding == null ? "var(--wi-layout-padding, var(--wi-space-4))" : Ha(r.padding),
6625
+ borderRadius: r.radius == null ? "var(--wi-layout-radius, 0)" : Ha(r.radius)
6576
6626
  })), k = s(() => {
6577
6627
  let e = r.contentStyle;
6578
6628
  return r.collapseMode === "transform" ? [e, { minWidth: b.value }] : e;
@@ -6621,7 +6671,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6621
6671
  class: x(A.value),
6622
6672
  style: S(k.value),
6623
6673
  onScroll: B
6624
- }, [P(t.$slots, "default")], 38)) : (O(), c(ns, y({
6674
+ }, [P(t.$slots, "default")], 38)) : (O(), c(rs, y({
6625
6675
  key: 1,
6626
6676
  ref_key: "scrollbarRef",
6627
6677
  ref: m,
@@ -6646,22 +6696,22 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6646
6696
  "aria-expanded": !g.value,
6647
6697
  "aria-label": g.value ? z(a).expand : z(a).collapse,
6648
6698
  onClick: L
6649
- }, [w.value === "arrow-circle" ? (O(), u("span", ls, " › ")) : (O(), u("span", us, [...n[0] ||= [d("i", { class: "wi-layout-sider__bar-top" }, null, -1), d("i", { class: "wi-layout-sider__bar-bottom" }, null, -1)]]))], 14, cs)) : l("", !0),
6650
- e.bordered ? (O(), u("div", ds)) : l("", !0)
6699
+ }, [w.value === "arrow-circle" ? (O(), u("span", us, " › ")) : (O(), u("span", ds, [...n[0] ||= [d("i", { class: "wi-layout-sider__bar-top" }, null, -1), d("i", { class: "wi-layout-sider__bar-bottom" }, null, -1)]]))], 14, ls)) : l("", !0),
6700
+ e.bordered ? (O(), u("div", fs)) : l("", !0)
6651
6701
  ], 38));
6652
6702
  }
6653
- }), ps = [
6703
+ }), ms = [
6654
6704
  "placeholder",
6655
6705
  "disabled",
6656
6706
  "aria-label"
6657
- ], ms = ["aria-multiselectable"], hs = [
6707
+ ], hs = ["aria-multiselectable"], gs = [
6658
6708
  "aria-selected",
6659
6709
  "disabled",
6660
6710
  "onClick"
6661
- ], gs = {
6711
+ ], _s = {
6662
6712
  key: 0,
6663
6713
  class: "wi-listbox__empty"
6664
- }, _s = /* @__PURE__ */ h({
6714
+ }, vs = /* @__PURE__ */ h({
6665
6715
  __name: "Listbox",
6666
6716
  props: {
6667
6717
  modelValue: {},
@@ -6710,7 +6760,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6710
6760
  placeholder: z(o).filterOptions,
6711
6761
  disabled: e.disabled,
6712
6762
  "aria-label": z(o).filterOptions
6713
- }, null, 8, ps)), [[te, a.value]]) : l("", !0), d("ul", {
6763
+ }, null, 8, ms)), [[te, a.value]]) : l("", !0), d("ul", {
6714
6764
  class: "wi-listbox__list",
6715
6765
  role: "listbox",
6716
6766
  "aria-multiselectable": e.multiple || void 0,
@@ -6725,17 +6775,17 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6725
6775
  "aria-selected": p(t.value),
6726
6776
  disabled: e.disabled || t.disabled,
6727
6777
  onClick: (e) => m(t)
6728
- }, I(t.label), 11, hs)]))), 128)), c.value.length ? l("", !0) : (O(), u("li", gs, I(z(o).emptyOptions), 1))], 12, ms)], 2));
6778
+ }, I(t.label), 11, gs)]))), 128)), c.value.length ? l("", !0) : (O(), u("li", _s, I(z(o).emptyOptions), 1))], 12, hs)], 2));
6729
6779
  }
6730
- }), vs = [
6780
+ }), ys = [
6731
6781
  "disabled",
6732
6782
  "aria-expanded",
6733
6783
  "aria-haspopup",
6734
6784
  "onClick"
6735
- ], ys = {
6785
+ ], bs = {
6736
6786
  key: 0,
6737
6787
  "aria-hidden": "true"
6738
- }, bs = ["disabled", "onClick"], xs = /* @__PURE__ */ h({
6788
+ }, xs = ["disabled", "onClick"], Ss = /* @__PURE__ */ h({
6739
6789
  __name: "MegaMenu",
6740
6790
  props: {
6741
6791
  model: { default: () => [] },
@@ -6800,7 +6850,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6800
6850
  "aria-expanded": e.items?.length ? o.value === r : void 0,
6801
6851
  "aria-haspopup": e.items?.length ? "true" : void 0,
6802
6852
  onClick: J((t) => E(r, e), ["stop"])
6803
- }, [e.icon ? (O(), u("span", ys, I(e.icon), 1)) : l("", !0), p(" " + I(e.label), 1)], 8, vs), (O(), c(n, {
6853
+ }, [e.icon ? (O(), u("span", bs, I(e.icon), 1)) : l("", !0), p(" " + I(e.label), 1)], 8, ys), (O(), c(n, {
6804
6854
  to: _.value.to,
6805
6855
  disabled: _.value.disabled
6806
6856
  }, [m(i, { name: "wi-scale-fade" }, {
@@ -6819,48 +6869,48 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6819
6869
  role: "menuitem",
6820
6870
  disabled: e.disabled,
6821
6871
  onClick: J((t) => D(e), ["stop"])
6822
- }, I(e.label), 9, bs))), 128))]))), 128))], 6)) : l("", !0)]),
6872
+ }, I(e.label), 9, xs))), 128))]))), 128))], 6)) : l("", !0)]),
6823
6873
  _: 2
6824
6874
  }, 1024)], 8, ["to", "disabled"]))], 2))), 128))], 512));
6825
6875
  }
6826
- }), Ss = {
6876
+ }), Cs = {
6827
6877
  key: 0,
6828
6878
  class: "wi-menu__separator",
6829
6879
  role: "separator"
6830
- }, Cs = {
6880
+ }, ws = {
6831
6881
  key: 1,
6832
6882
  class: "wi-menu__group"
6833
- }, ws = [
6883
+ }, Ts = [
6834
6884
  "disabled",
6835
6885
  "aria-expanded",
6836
6886
  "onClick"
6837
- ], Ts = {
6887
+ ], Es = {
6838
6888
  key: 0,
6839
6889
  class: "wi-menu__icon",
6840
6890
  "aria-hidden": "true"
6841
- }, Es = {
6891
+ }, Ds = {
6842
6892
  key: 1,
6843
6893
  class: "wi-menu__label"
6844
- }, Ds = {
6894
+ }, Os = {
6845
6895
  key: 2,
6846
6896
  class: "wi-menu__caret",
6847
6897
  "aria-hidden": "true"
6848
- }, Os = {
6898
+ }, ks = {
6849
6899
  key: 0,
6850
6900
  class: "wi-menu__submenu",
6851
6901
  role: "group"
6852
- }, ks = [
6902
+ }, As = [
6853
6903
  "disabled",
6854
6904
  "title",
6855
6905
  "onClick"
6856
- ], As = {
6906
+ ], js = {
6857
6907
  key: 0,
6858
6908
  class: "wi-menu__icon",
6859
6909
  "aria-hidden": "true"
6860
- }, js = {
6910
+ }, Ms = {
6861
6911
  key: 1,
6862
6912
  class: "wi-menu__label"
6863
- }, Ms = /* @__PURE__ */ h({
6913
+ }, Ns = /* @__PURE__ */ h({
6864
6914
  __name: "MenuNodes",
6865
6915
  props: {
6866
6916
  items: {},
@@ -6891,7 +6941,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6891
6941
  return e.icon && at(e.icon) ? e.icon : void 0;
6892
6942
  }
6893
6943
  let g = s(() => r.collapsed ? 0 : r.depth * r.indent);
6894
- return (n, r) => (O(!0), u(t, null, N(e.items, (s, _) => (O(), u(t, { key: a(s, _) }, [s.separator ? (O(), u("div", Ss)) : s.items?.length ? (O(), u("div", Cs, [d("button", {
6944
+ return (n, r) => (O(!0), u(t, null, N(e.items, (s, _) => (O(), u(t, { key: a(s, _) }, [s.separator ? (O(), u("div", Cs)) : s.items?.length ? (O(), u("div", ws, [d("button", {
6895
6945
  type: "button",
6896
6946
  class: x(["wi-menu__item wi-menu__item--parent", { "wi-menu__item--selected": o(s) }]),
6897
6947
  disabled: s.disabled,
@@ -6899,14 +6949,14 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6899
6949
  "aria-expanded": !!i.value[a(s, _)],
6900
6950
  onClick: (e) => f(s, _)
6901
6951
  }, [
6902
- h(s) || s.icon ? (O(), u("span", Ts, [h(s) ? (O(), c($, {
6952
+ h(s) || s.icon ? (O(), u("span", Es, [h(s) ? (O(), c($, {
6903
6953
  key: 0,
6904
6954
  name: h(s),
6905
6955
  size: "sm"
6906
6956
  }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(s.icon), 1)], 64))])) : l("", !0),
6907
- e.collapsed ? l("", !0) : (O(), u("span", Es, I(s.label), 1)),
6908
- e.collapsed ? l("", !0) : (O(), u("span", Ds, I(i.value[a(s, _)] ? "▾" : "▸"), 1))
6909
- ], 14, ws), i.value[a(s, _)] ? (O(), u("div", Os, [m(Ms, {
6957
+ e.collapsed ? l("", !0) : (O(), u("span", Ds, I(s.label), 1)),
6958
+ e.collapsed ? l("", !0) : (O(), u("span", Os, I(i.value[a(s, _)] ? "▾" : "▸"), 1))
6959
+ ], 14, Ts), i.value[a(s, _)] ? (O(), u("div", ks, [m(Ns, {
6910
6960
  items: s.items,
6911
6961
  depth: e.depth + 1,
6912
6962
  indent: e.indent,
@@ -6928,13 +6978,13 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6928
6978
  style: S({ paddingLeft: `${12 + g.value}px` }),
6929
6979
  title: e.collapsed ? s.label : void 0,
6930
6980
  onClick: (e) => n.$emit("activate", s)
6931
- }, [h(s) || s.icon ? (O(), u("span", As, [h(s) ? (O(), c($, {
6981
+ }, [h(s) || s.icon ? (O(), u("span", js, [h(s) ? (O(), c($, {
6932
6982
  key: 0,
6933
6983
  name: h(s),
6934
6984
  size: "sm"
6935
- }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(s.icon), 1)], 64))])) : l("", !0), e.collapsed ? l("", !0) : (O(), u("span", js, I(s.label), 1))], 14, ks))], 64))), 128));
6985
+ }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(s.icon), 1)], 64))])) : l("", !0), e.collapsed ? l("", !0) : (O(), u("span", Ms, I(s.label), 1))], 14, As))], 64))), 128));
6936
6986
  }
6937
- }), Ns = /* @__PURE__ */ h({
6987
+ }), Ps = /* @__PURE__ */ h({
6938
6988
  __name: "Menu",
6939
6989
  props: {
6940
6990
  model: {},
@@ -6990,7 +7040,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
6990
7040
  "wi-menu--collapsed": e.collapsed
6991
7041
  }]),
6992
7042
  role: "menu"
6993
- }, [m(Ms, {
7043
+ }, [m(Ns, {
6994
7044
  items: e.model,
6995
7045
  depth: 0,
6996
7046
  indent: e.indent,
@@ -7010,7 +7060,7 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
7010
7060
  ref: d,
7011
7061
  class: x(["wi-menu", { "wi-menu--collapsed": e.collapsed }]),
7012
7062
  role: "menu"
7013
- }, [m(Ms, {
7063
+ }, [m(Ns, {
7014
7064
  items: e.model,
7015
7065
  depth: 0,
7016
7066
  indent: e.indent,
@@ -7024,24 +7074,24 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
7024
7074
  "selected-key"
7025
7075
  ])], 2));
7026
7076
  }
7027
- }), Ps = ["aria-label"], Fs = [
7077
+ }), Fs = ["aria-label"], Is = [
7028
7078
  "disabled",
7029
7079
  "aria-expanded",
7030
7080
  "aria-haspopup",
7031
7081
  "onClick"
7032
- ], Is = {
7082
+ ], Ls = {
7033
7083
  key: 0,
7034
7084
  class: "wi-menubar__icon",
7035
7085
  "aria-hidden": "true"
7036
- }, Ls = {
7086
+ }, Rs = {
7037
7087
  key: 1,
7038
7088
  class: "wi-menubar__caret",
7039
7089
  "aria-hidden": "true"
7040
- }, Rs = ["disabled", "onClick"], zs = {
7090
+ }, zs = ["disabled", "onClick"], Bs = {
7041
7091
  key: 0,
7042
7092
  class: "wi-menubar__icon",
7043
7093
  "aria-hidden": "true"
7044
- }, Bs = /* @__PURE__ */ h({
7094
+ }, Vs = /* @__PURE__ */ h({
7045
7095
  __name: "Menubar",
7046
7096
  props: {
7047
7097
  model: {},
@@ -7124,14 +7174,14 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
7124
7174
  "aria-haspopup": e.items?.length ? "menu" : void 0,
7125
7175
  onClick: J((t) => L(r, e), ["stop"])
7126
7176
  }, [
7127
- P(e) || e.icon ? (O(), u("span", Is, [P(e) ? (O(), c($, {
7177
+ P(e) || e.icon ? (O(), u("span", Ls, [P(e) ? (O(), c($, {
7128
7178
  key: 0,
7129
7179
  name: P(e),
7130
7180
  size: "sm"
7131
7181
  }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(e.icon), 1)], 64))])) : l("", !0),
7132
7182
  p(" " + I(e.label) + " ", 1),
7133
- e.items?.length ? (O(), u("span", Ls, "▾")) : l("", !0)
7134
- ], 10, Fs), (O(), c(n, {
7183
+ e.items?.length ? (O(), u("span", Rs, "▾")) : l("", !0)
7184
+ ], 10, Is), (O(), c(n, {
7135
7185
  to: C.value.to,
7136
7186
  disabled: C.value.disabled
7137
7187
  }, [m(i, { name: "wi-scale-fade" }, {
@@ -7147,18 +7197,18 @@ var $o = ["aria-orientation", "aria-controls"], es = /* @__PURE__ */ h({
7147
7197
  role: "menuitem",
7148
7198
  disabled: e.disabled,
7149
7199
  onClick: J((t) => R(e), ["stop"])
7150
- }, [P(e) || e.icon ? (O(), u("span", zs, [P(e) ? (O(), c($, {
7200
+ }, [P(e) || e.icon ? (O(), u("span", Bs, [P(e) ? (O(), c($, {
7151
7201
  key: 0,
7152
7202
  name: P(e),
7153
7203
  size: "sm"
7154
- }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(e.icon), 1)], 64))])) : l("", !0), p(" " + I(e.label), 1)], 10, Rs))), 128))], 6)) : l("", !0)]),
7204
+ }, null, 8, ["name"])) : (O(), u(t, { key: 1 }, [p(I(e.icon), 1)], 64))])) : l("", !0), p(" " + I(e.label), 1)], 10, zs))), 128))], 6)) : l("", !0)]),
7155
7205
  _: 2
7156
- }, 1024)], 8, ["to", "disabled"]))], 2))), 128))], 8, Ps));
7206
+ }, 1024)], 8, ["to", "disabled"]))], 2))), 128))], 8, Fs));
7157
7207
  }
7158
7208
  });
7159
7209
  //#endregion
7160
7210
  //#region src/shared/content.ts
7161
- function Vs(e) {
7211
+ function Hs(e) {
7162
7212
  if (e == null || v(e)) return !1;
7163
7213
  if (typeof e == "function") {
7164
7214
  let t = e;
@@ -7170,21 +7220,21 @@ function Vs(e) {
7170
7220
  }
7171
7221
  return !1;
7172
7222
  }
7173
- function Hs(e) {
7174
- return e == null ? null : typeof e == "string" || typeof e == "number" || v(e) ? e : typeof e == "function" ? Vs(e) ? g(e) : e() : g(e);
7175
- }
7176
7223
  function Us(e) {
7177
- return typeof e == "string" || typeof e == "number" ? String(e) : "";
7224
+ return e == null ? null : typeof e == "string" || typeof e == "number" || v(e) ? e : typeof e == "function" ? Hs(e) ? g(e) : e() : g(e);
7178
7225
  }
7179
7226
  function Ws(e) {
7180
- return !!e && typeof e == "object" && !v(e) && "content" in e && !Vs(e);
7227
+ return typeof e == "string" || typeof e == "number" ? String(e) : "";
7181
7228
  }
7182
7229
  function Gs(e) {
7183
- return !!e && typeof e == "object" && !v(e) && "summary" in e && !Vs(e);
7230
+ return !!e && typeof e == "object" && !v(e) && "content" in e && !Hs(e);
7231
+ }
7232
+ function Ks(e) {
7233
+ return !!e && typeof e == "object" && !v(e) && "summary" in e && !Hs(e);
7184
7234
  }
7185
7235
  //#endregion
7186
7236
  //#region src/shared/Renderable.ts
7187
- var Ks = h({
7237
+ var qs = h({
7188
7238
  name: "WiRenderable",
7189
7239
  props: { value: {
7190
7240
  type: [
@@ -7196,63 +7246,63 @@ var Ks = h({
7196
7246
  required: !0
7197
7247
  } },
7198
7248
  setup(e) {
7199
- return () => Hs(e.value);
7249
+ return () => Us(e.value);
7200
7250
  }
7201
- }), qs = A({
7251
+ }), Js = A({
7202
7252
  items: [],
7203
7253
  placement: "top",
7204
7254
  max: void 0
7205
- }), Js = null, Ys = 0, Xs = /* @__PURE__ */ new Map();
7206
- function Zs(e) {
7207
- Js = e;
7208
- }
7209
- function Qs() {
7210
- Ys += 1, Js &&= (Js.unmount(), null);
7255
+ }), Ys = null, Xs = 0, Zs = /* @__PURE__ */ new Map();
7256
+ function Qs(e) {
7257
+ Ys = e;
7211
7258
  }
7212
7259
  function $s() {
7213
- Ys = Math.max(0, Ys - 1);
7260
+ Xs += 1, Ys &&= (Ys.unmount(), null);
7261
+ }
7262
+ function ec() {
7263
+ Xs = Math.max(0, Xs - 1);
7214
7264
  }
7215
- function ec(e) {
7216
- let t = Xs.get(e);
7217
- t != null && clearTimeout(t), Xs.delete(e);
7265
+ function tc(e) {
7266
+ let t = Zs.get(e);
7267
+ t != null && clearTimeout(t), Zs.delete(e);
7218
7268
  }
7219
- function tc(e, t) {
7220
- ec(e.id), !(e.life == null || e.life <= 0) && Xs.set(e.id, setTimeout(() => {
7269
+ function nc(e, t) {
7270
+ tc(e.id), !(e.life == null || e.life <= 0) && Zs.set(e.id, setTimeout(() => {
7221
7271
  t(e.id);
7222
7272
  }, e.life));
7223
7273
  }
7224
- function nc(e) {
7274
+ function rc(e) {
7225
7275
  if (e == null) {
7226
- rc();
7276
+ ic();
7227
7277
  return;
7228
7278
  }
7229
- ec(e), qs.items = qs.items.filter((t) => t.id !== e);
7279
+ tc(e), Js.items = Js.items.filter((t) => t.id !== e);
7230
7280
  }
7231
- function rc() {
7232
- for (let e of [...Xs.keys()]) ec(e);
7233
- qs.items = [];
7281
+ function ic() {
7282
+ for (let e of [...Zs.keys()]) tc(e);
7283
+ Js.items = [];
7234
7284
  }
7235
- function ic(e) {
7236
- if (!(e == null || e <= 0)) for (; qs.items.length >= e;) {
7237
- let e = qs.items[0];
7285
+ function ac(e) {
7286
+ if (!(e == null || e <= 0)) for (; Js.items.length >= e;) {
7287
+ let e = Js.items[0];
7238
7288
  if (!e) break;
7239
- nc(e.id);
7289
+ rc(e.id);
7240
7290
  }
7241
7291
  }
7242
- function ac(e) {
7243
- if (!(e == null || e <= 0)) for (; qs.items.length > e;) {
7244
- let e = qs.items[0];
7292
+ function oc(e) {
7293
+ if (!(e == null || e <= 0)) for (; Js.items.length > e;) {
7294
+ let e = Js.items[0];
7245
7295
  if (!e) break;
7246
- nc(e.id);
7296
+ rc(e.id);
7247
7297
  }
7248
7298
  }
7249
7299
  //#endregion
7250
7300
  //#region src/components/Message/Message.vue?vue&type=script&setup=true&lang.ts
7251
- var oc = {
7301
+ var sc = {
7252
7302
  key: 0,
7253
7303
  class: "wi-message__icon",
7254
7304
  "aria-hidden": "true"
7255
- }, sc = { class: "wi-message__content" }, cc = ["aria-label", "onClick"], lc = /* @__PURE__ */ h({
7305
+ }, cc = { class: "wi-message__content" }, lc = ["aria-label", "onClick"], uc = /* @__PURE__ */ h({
7256
7306
  __name: "Message",
7257
7307
  props: {
7258
7308
  teleport: {
@@ -7268,13 +7318,13 @@ var oc = {
7268
7318
  }
7269
7319
  },
7270
7320
  setup(e) {
7271
- let r = e, i = X(), o = Z(), f = s(() => Q(r, i.value.appendTo)), p = s(() => r.placement ?? qs.placement);
7321
+ let r = e, i = X(), o = Z(), f = s(() => Q(r, i.value.appendTo)), p = s(() => r.placement ?? Js.placement);
7272
7322
  T(() => {
7273
- r.auto || Qs();
7274
- }), w(() => {
7275
7323
  r.auto || $s();
7324
+ }), w(() => {
7325
+ r.auto || ec();
7276
7326
  }), W(() => [r.placement, r.max], ([e, t]) => {
7277
- e && (qs.placement = e), t !== void 0 && (qs.max = t, ac(t));
7327
+ e && (Js.placement = e), t !== void 0 && (Js.max = t, oc(t));
7278
7328
  }, { immediate: !0 });
7279
7329
  function h(e) {
7280
7330
  switch (Ie(e) ?? "info") {
@@ -7288,7 +7338,7 @@ var oc = {
7288
7338
  return `wi-message--${Ie(e) ?? "info"}`;
7289
7339
  }
7290
7340
  function _(e) {
7291
- nc(e.id);
7341
+ rc(e.id);
7292
7342
  }
7293
7343
  return (e, r) => (O(), c(n, {
7294
7344
  to: f.value.to,
@@ -7298,16 +7348,16 @@ var oc = {
7298
7348
  "aria-live": "polite",
7299
7349
  "aria-atomic": "false"
7300
7350
  }, [m(a, { name: "wi-message-slide" }, {
7301
- default: K(() => [(O(!0), u(t, null, N(z(qs).items, (e) => (O(), u("div", {
7351
+ default: K(() => [(O(!0), u(t, null, N(z(Js).items, (e) => (O(), u("div", {
7302
7352
  key: e.id,
7303
7353
  class: x(["wi-message", g(e.severity)]),
7304
7354
  role: "status"
7305
7355
  }, [
7306
- e.icon === !1 ? l("", !0) : (O(), u("span", oc, [m($, {
7356
+ e.icon === !1 ? l("", !0) : (O(), u("span", sc, [m($, {
7307
7357
  name: h(e.severity),
7308
7358
  size: "sm"
7309
7359
  }, null, 8, ["name"])])),
7310
- d("div", sc, [m(z(Ks), { value: e.content }, null, 8, ["value"])]),
7360
+ d("div", cc, [m(z(qs), { value: e.content }, null, 8, ["value"])]),
7311
7361
  e.closable ? (O(), u("button", {
7312
7362
  key: 1,
7313
7363
  type: "button",
@@ -7317,12 +7367,12 @@ var oc = {
7317
7367
  }, [m($, {
7318
7368
  name: "close",
7319
7369
  size: "sm"
7320
- })], 8, cc)) : l("", !0)
7370
+ })], 8, lc)) : l("", !0)
7321
7371
  ], 2))), 128))]),
7322
7372
  _: 1
7323
7373
  })], 2)], 8, ["to", "disabled"]));
7324
7374
  }
7325
- }), uc = { class: "wi-metergroup" }, dc = ["aria-valuemax"], fc = ["title"], pc = { class: "wi-metergroup__legend" }, mc = { class: "wi-metergroup__value" }, hc = /* @__PURE__ */ h({
7375
+ }), dc = { class: "wi-metergroup" }, fc = ["aria-valuemax"], pc = ["title"], mc = { class: "wi-metergroup__legend" }, hc = { class: "wi-metergroup__value" }, gc = /* @__PURE__ */ h({
7326
7376
  __name: "MeterGroup",
7327
7377
  props: {
7328
7378
  value: {},
@@ -7337,7 +7387,7 @@ var oc = {
7337
7387
  ...e,
7338
7388
  width: `${Math.max(0, e.value / r.value * 100)}%`
7339
7389
  })));
7340
- return (n, a) => (O(), u("div", uc, [d("div", {
7390
+ return (n, a) => (O(), u("div", dc, [d("div", {
7341
7391
  class: "wi-metergroup__meter",
7342
7392
  role: "meter",
7343
7393
  "aria-valuemin": 0,
@@ -7350,7 +7400,7 @@ var oc = {
7350
7400
  background: e.color
7351
7401
  }),
7352
7402
  title: `${e.label}: ${e.value}`
7353
- }, null, 12, fc))), 128))], 8, dc), d("ul", pc, [(O(!0), u(t, null, N(e.value, (e, t) => (O(), u("li", {
7403
+ }, null, 12, pc))), 128))], 8, fc), d("ul", mc, [(O(!0), u(t, null, N(e.value, (e, t) => (O(), u("li", {
7354
7404
  key: `${e.label}-${t}`,
7355
7405
  class: "wi-metergroup__legend-item"
7356
7406
  }, [
@@ -7360,17 +7410,17 @@ var oc = {
7360
7410
  "aria-hidden": "true"
7361
7411
  }, null, 4),
7362
7412
  d("span", null, I(e.label), 1),
7363
- d("span", mc, I(e.value), 1)
7413
+ d("span", hc, I(e.value), 1)
7364
7414
  ]))), 128))])]));
7365
7415
  }
7366
- }), gc = { class: "wi-orderlist" }, _c = { class: "wi-orderlist__controls" }, vc = ["aria-label"], yc = ["aria-label"], bc = [
7416
+ }), _c = { class: "wi-orderlist" }, vc = { class: "wi-orderlist__controls" }, yc = ["aria-label"], bc = ["aria-label"], xc = [
7367
7417
  "aria-selected",
7368
7418
  "draggable",
7369
7419
  "onClick",
7370
7420
  "onDragstart",
7371
7421
  "onDragover",
7372
7422
  "onDrop"
7373
- ], xc = ["aria-label"], Sc = { class: "wi-orderlist__label" }, Cc = /* @__PURE__ */ h({
7423
+ ], Sc = ["aria-label"], Cc = { class: "wi-orderlist__label" }, wc = /* @__PURE__ */ h({
7374
7424
  __name: "OrderList",
7375
7425
  props: {
7376
7426
  modelValue: { default: () => [] },
@@ -7430,7 +7480,7 @@ var oc = {
7430
7480
  function E() {
7431
7481
  s.value = null, c.value = null, f.value = !1;
7432
7482
  }
7433
- return (n, r) => (O(), u("div", gc, [d("div", _c, [d("button", {
7483
+ return (n, r) => (O(), u("div", _c, [d("div", vc, [d("button", {
7434
7484
  type: "button",
7435
7485
  class: "wi-orderlist__btn",
7436
7486
  "aria-label": z(a).moveUp,
@@ -7438,7 +7488,7 @@ var oc = {
7438
7488
  }, [m($, {
7439
7489
  name: "chevron-up",
7440
7490
  size: "sm"
7441
- })], 8, vc), d("button", {
7491
+ })], 8, yc), d("button", {
7442
7492
  type: "button",
7443
7493
  class: "wi-orderlist__btn",
7444
7494
  "aria-label": z(a).moveDown,
@@ -7446,7 +7496,7 @@ var oc = {
7446
7496
  }, [m($, {
7447
7497
  name: "chevron-down",
7448
7498
  size: "sm"
7449
- })], 8, yc)]), d("ul", {
7499
+ })], 8, bc)]), d("ul", {
7450
7500
  class: "wi-orderlist__list",
7451
7501
  style: S(e.listStyle),
7452
7502
  role: "listbox"
@@ -7475,18 +7525,18 @@ var oc = {
7475
7525
  }, [m($, {
7476
7526
  name: "grip",
7477
7527
  size: "sm"
7478
- })], 40, xc)) : l("", !0), d("span", Sc, [P(n.$slots, "item", {
7528
+ })], 40, Sc)) : l("", !0), d("span", Cc, [P(n.$slots, "item", {
7479
7529
  item: t,
7480
7530
  index: i
7481
- }, () => [p(I(t), 1)])])], 42, bc))), 128))], 4)]));
7531
+ }, () => [p(I(t), 1)])])], 42, xc))), 128))], 4)]));
7482
7532
  }
7483
- }), wc = {
7533
+ }), Tc = {
7484
7534
  key: 0,
7485
7535
  class: "wi-panel__header"
7486
- }, Tc = { class: "wi-panel__title" }, Ec = ["aria-expanded", "aria-label"], Dc = { "aria-hidden": "true" }, Oc = { class: "wi-panel__content" }, kc = {
7536
+ }, Ec = { class: "wi-panel__title" }, Dc = ["aria-expanded", "aria-label"], Oc = { "aria-hidden": "true" }, kc = { class: "wi-panel__content" }, Ac = {
7487
7537
  key: 1,
7488
7538
  class: "wi-panel__footer"
7489
- }, Ac = /* @__PURE__ */ h({
7539
+ }, jc = /* @__PURE__ */ h({
7490
7540
  __name: "Panel",
7491
7541
  props: {
7492
7542
  header: {},
@@ -7511,37 +7561,37 @@ var oc = {
7511
7561
  r("update:collapsed", e), r("update:modelValue", e);
7512
7562
  }
7513
7563
  return (t, n) => (O(), u("section", { class: x(c.value) }, [
7514
- t.$slots.header || e.header || e.toggleable ? (O(), u("header", wc, [d("div", Tc, [P(t.$slots, "header", {}, () => [p(I(e.header), 1)])]), e.toggleable ? (O(), u("button", {
7564
+ t.$slots.header || e.header || e.toggleable ? (O(), u("header", Tc, [d("div", Ec, [P(t.$slots, "header", {}, () => [p(I(e.header), 1)])]), e.toggleable ? (O(), u("button", {
7515
7565
  key: 0,
7516
7566
  type: "button",
7517
7567
  class: "wi-panel__toggler",
7518
7568
  "aria-expanded": !o.value,
7519
7569
  "aria-label": o.value ? z(i).expand : z(i).collapse,
7520
7570
  onClick: f
7521
- }, [d("span", Dc, I(o.value ? "▸" : "▾"), 1)], 8, Ec)) : l("", !0)])) : l("", !0),
7522
- ne(d("div", Oc, [P(t.$slots, "default")], 512), [[U, !o.value]]),
7523
- t.$slots.footer && !o.value ? (O(), u("footer", kc, [P(t.$slots, "footer")])) : l("", !0)
7571
+ }, [d("span", Oc, I(o.value ? "▸" : "▾"), 1)], 8, Dc)) : l("", !0)])) : l("", !0),
7572
+ ne(d("div", kc, [P(t.$slots, "default")], 512), [[U, !o.value]]),
7573
+ t.$slots.footer && !o.value ? (O(), u("footer", Ac, [P(t.$slots, "footer")])) : l("", !0)
7524
7574
  ], 2));
7525
7575
  }
7526
- }), jc = { class: "wi-picklist" }, Mc = { class: "wi-picklist__listbox" }, Nc = { class: "wi-picklist__header" }, Pc = {
7576
+ }), Mc = { class: "wi-picklist" }, Nc = { class: "wi-picklist__listbox" }, Pc = { class: "wi-picklist__header" }, Fc = {
7527
7577
  class: "wi-picklist__list",
7528
7578
  role: "listbox",
7529
7579
  "aria-multiselectable": "true",
7530
7580
  tabindex: "0"
7531
- }, Fc = [
7581
+ }, Ic = [
7532
7582
  "aria-selected",
7533
7583
  "onClick",
7534
7584
  "onKeydown"
7535
- ], Ic = { class: "wi-picklist__controls" }, Lc = ["aria-label"], Rc = ["aria-label"], zc = ["aria-label"], Bc = ["aria-label"], Vc = { class: "wi-picklist__listbox" }, Hc = { class: "wi-picklist__header" }, Uc = {
7585
+ ], Lc = { class: "wi-picklist__controls" }, Rc = ["aria-label"], zc = ["aria-label"], Bc = ["aria-label"], Vc = ["aria-label"], Hc = { class: "wi-picklist__listbox" }, Uc = { class: "wi-picklist__header" }, Wc = {
7536
7586
  class: "wi-picklist__list",
7537
7587
  role: "listbox",
7538
7588
  "aria-multiselectable": "true",
7539
7589
  tabindex: "0"
7540
- }, Wc = [
7590
+ }, Gc = [
7541
7591
  "aria-selected",
7542
7592
  "onClick",
7543
7593
  "onKeydown"
7544
- ], Gc = /* @__PURE__ */ h({
7594
+ ], Kc = /* @__PURE__ */ h({
7545
7595
  __name: "PickList",
7546
7596
  props: {
7547
7597
  source: { default: () => [] },
@@ -7576,8 +7626,8 @@ var oc = {
7576
7626
  function b() {
7577
7627
  r.target.length && (i("update:source", [...r.source, ...r.target]), i("update:target", []), o.value = []);
7578
7628
  }
7579
- return (n, r) => (O(), u("div", jc, [
7580
- d("div", Mc, [d("div", Nc, I(l.value), 1), d("ul", Pc, [(O(!0), u(t, null, N(e.source, (e, t) => (O(), u("li", {
7629
+ return (n, r) => (O(), u("div", Mc, [
7630
+ d("div", Nc, [d("div", Pc, I(l.value), 1), d("ul", Fc, [(O(!0), u(t, null, N(e.source, (e, t) => (O(), u("li", {
7581
7631
  key: h(e, t),
7582
7632
  class: x(["wi-picklist__item", { "wi-picklist__item--selected": a.value.includes(t) }]),
7583
7633
  role: "option",
@@ -7588,8 +7638,8 @@ var oc = {
7588
7638
  }, [P(n.$slots, "item", {
7589
7639
  item: e,
7590
7640
  index: t
7591
- }, () => [p(I(e), 1)])], 42, Fc))), 128))])]),
7592
- d("div", Ic, [
7641
+ }, () => [p(I(e), 1)])], 42, Ic))), 128))])]),
7642
+ d("div", Lc, [
7593
7643
  d("button", {
7594
7644
  type: "button",
7595
7645
  class: "wi-picklist__btn",
@@ -7601,7 +7651,7 @@ var oc = {
7601
7651
  }), m($, {
7602
7652
  name: "chevron-right",
7603
7653
  size: "sm"
7604
- })], 8, Lc),
7654
+ })], 8, Rc),
7605
7655
  d("button", {
7606
7656
  type: "button",
7607
7657
  class: "wi-picklist__btn",
@@ -7610,7 +7660,7 @@ var oc = {
7610
7660
  }, [m($, {
7611
7661
  name: "chevron-right",
7612
7662
  size: "sm"
7613
- })], 8, Rc),
7663
+ })], 8, zc),
7614
7664
  d("button", {
7615
7665
  type: "button",
7616
7666
  class: "wi-picklist__btn",
@@ -7619,7 +7669,7 @@ var oc = {
7619
7669
  }, [m($, {
7620
7670
  name: "chevron-left",
7621
7671
  size: "sm"
7622
- })], 8, zc),
7672
+ })], 8, Bc),
7623
7673
  d("button", {
7624
7674
  type: "button",
7625
7675
  class: "wi-picklist__btn",
@@ -7631,9 +7681,9 @@ var oc = {
7631
7681
  }), m($, {
7632
7682
  name: "chevron-left",
7633
7683
  size: "sm"
7634
- })], 8, Bc)
7684
+ })], 8, Vc)
7635
7685
  ]),
7636
- d("div", Vc, [d("div", Hc, I(f.value), 1), d("ul", Uc, [(O(!0), u(t, null, N(e.target, (e, t) => (O(), u("li", {
7686
+ d("div", Hc, [d("div", Uc, I(f.value), 1), d("ul", Wc, [(O(!0), u(t, null, N(e.target, (e, t) => (O(), u("li", {
7637
7687
  key: h(e, t),
7638
7688
  class: x(["wi-picklist__item", { "wi-picklist__item--selected": o.value.includes(t) }]),
7639
7689
  role: "option",
@@ -7644,10 +7694,10 @@ var oc = {
7644
7694
  }, [P(n.$slots, "item", {
7645
7695
  item: e,
7646
7696
  index: t
7647
- }, () => [p(I(e), 1)])], 42, Wc))), 128))])])
7697
+ }, () => [p(I(e), 1)])], 42, Gc))), 128))])])
7648
7698
  ]));
7649
7699
  }
7650
- }), Kc = /* @__PURE__ */ h({
7700
+ }), qc = /* @__PURE__ */ h({
7651
7701
  __name: "Popover",
7652
7702
  props: {
7653
7703
  modelValue: {
@@ -7686,7 +7736,7 @@ var oc = {
7686
7736
  function A() {
7687
7737
  if (r.trigger === "hover") {
7688
7738
  if (D(), r.showDelay > 0) {
7689
- y = setTimeout(() => T(!0), r.showDelay);
7739
+ y = setTimeout(T, r.showDelay, !0);
7690
7740
  return;
7691
7741
  }
7692
7742
  T(!0);
@@ -7695,7 +7745,7 @@ var oc = {
7695
7745
  function M() {
7696
7746
  if (r.trigger === "hover") {
7697
7747
  if (D(), r.hideDelay > 0) {
7698
- C = setTimeout(() => T(!1), r.hideDelay);
7748
+ C = setTimeout(T, r.hideDelay, !1);
7699
7749
  return;
7700
7750
  }
7701
7751
  T(!1);
@@ -7707,7 +7757,7 @@ var oc = {
7707
7757
  function F() {
7708
7758
  if (r.trigger === "hover") {
7709
7759
  if (D(), r.hideDelay > 0) {
7710
- C = setTimeout(() => T(!1), r.hideDelay);
7760
+ C = setTimeout(T, r.hideDelay, !1);
7711
7761
  return;
7712
7762
  }
7713
7763
  T(!1);
@@ -7716,7 +7766,7 @@ var oc = {
7716
7766
  function I() {
7717
7767
  if (r.trigger === "focus") {
7718
7768
  if (D(), r.showDelay > 0) {
7719
- y = setTimeout(() => T(!0), r.showDelay);
7769
+ y = setTimeout(T, r.showDelay, !0);
7720
7770
  return;
7721
7771
  }
7722
7772
  T(!0);
@@ -7725,7 +7775,7 @@ var oc = {
7725
7775
  function L() {
7726
7776
  if (r.trigger === "focus") {
7727
7777
  if (D(), r.hideDelay > 0) {
7728
- C = setTimeout(() => T(!1), r.hideDelay);
7778
+ C = setTimeout(T, r.hideDelay, !1);
7729
7779
  return;
7730
7780
  }
7731
7781
  T(!1);
@@ -7803,22 +7853,22 @@ var oc = {
7803
7853
  _: 3
7804
7854
  })], 8, ["to", "disabled"]))], 544));
7805
7855
  }
7806
- }), qc = [
7856
+ }), Jc = [
7807
7857
  "aria-valuemin",
7808
7858
  "aria-valuemax",
7809
7859
  "aria-valuenow"
7810
- ], Jc = {
7860
+ ], Yc = {
7811
7861
  key: 0,
7812
7862
  class: "wi-progressbar__circle",
7813
7863
  viewBox: "0 0 100 100",
7814
7864
  "aria-hidden": "true"
7815
- }, Yc = ["stroke-dasharray", "stroke-dashoffset"], Xc = {
7865
+ }, Xc = ["stroke-dasharray", "stroke-dashoffset"], Zc = {
7816
7866
  key: 0,
7817
7867
  class: "wi-progressbar__label"
7818
- }, Zc = {
7868
+ }, Qc = {
7819
7869
  key: 2,
7820
7870
  class: "wi-progressbar__circle-label"
7821
- }, Qc = /* @__PURE__ */ h({
7871
+ }, $c = /* @__PURE__ */ h({
7822
7872
  __name: "ProgressBar",
7823
7873
  props: {
7824
7874
  value: { default: 0 },
@@ -7853,7 +7903,7 @@ var oc = {
7853
7903
  "aria-valuemin": r.value ? void 0 : 0,
7854
7904
  "aria-valuemax": r.value ? void 0 : 100,
7855
7905
  "aria-valuenow": r.value ? void 0 : n.value
7856
- }, [i.value ? (O(), u("svg", Jc, [a[0] ||= d("circle", {
7906
+ }, [i.value ? (O(), u("svg", Yc, [a[0] ||= d("circle", {
7857
7907
  class: "wi-progressbar__circle-track",
7858
7908
  cx: "50",
7859
7909
  cy: "50",
@@ -7867,19 +7917,19 @@ var oc = {
7867
7917
  fill: "none",
7868
7918
  "stroke-dasharray": p.value.circumference,
7869
7919
  "stroke-dashoffset": r.value ? void 0 : p.value.offset
7870
- }, null, 8, Yc)])) : (O(), u("div", {
7920
+ }, null, 8, Xc)])) : (O(), u("div", {
7871
7921
  key: 1,
7872
7922
  class: "wi-progressbar__value",
7873
7923
  style: S(f.value)
7874
- }, [e.showValue && !r.value ? (O(), u("span", Xc, I(m.value), 1)) : l("", !0)], 4)), i.value && e.showValue && !r.value ? (O(), u("span", Zc, I(m.value), 1)) : l("", !0)], 14, qc));
7924
+ }, [e.showValue && !r.value ? (O(), u("span", Zc, I(m.value), 1)) : l("", !0)], 4)), i.value && e.showValue && !r.value ? (O(), u("span", Qc, I(m.value), 1)) : l("", !0)], 14, Jc));
7875
7925
  }
7876
- }), $c = { class: "wi-progress-spinner-wrap__content" }, el = {
7926
+ }), el = { class: "wi-progress-spinner-wrap__content" }, tl = {
7877
7927
  key: 0,
7878
7928
  class: "wi-progress-spinner-wrap__overlay"
7879
- }, tl = ["aria-label"], nl = ["stroke-width"], rl = {
7929
+ }, nl = ["aria-label"], rl = ["stroke-width"], il = {
7880
7930
  key: 0,
7881
7931
  class: "wi-progress-spinner__description"
7882
- }, il = ["aria-label"], al = ["stroke-width"], ol = /* @__PURE__ */ h({
7932
+ }, al = ["aria-label"], ol = ["stroke-width"], sl = /* @__PURE__ */ h({
7883
7933
  __name: "ProgressSpinner",
7884
7934
  props: {
7885
7935
  strokeWidth: { default: "2" },
@@ -7922,7 +7972,7 @@ var oc = {
7922
7972
  return (t, n) => a.value ? (O(), u("div", {
7923
7973
  key: 0,
7924
7974
  class: x(["wi-progress-spinner-wrap", { "wi-progress-spinner-wrap--active": c.value }])
7925
- }, [d("div", $c, [P(t.$slots, "default")]), c.value ? (O(), u("div", el, [(O(), u("svg", {
7975
+ }, [d("div", el, [P(t.$slots, "default")]), c.value ? (O(), u("div", tl, [(O(), u("svg", {
7926
7976
  class: x(["wi-progress-spinner", h.value]),
7927
7977
  viewBox: "0 0 50 50",
7928
7978
  role: "status",
@@ -7935,7 +7985,7 @@ var oc = {
7935
7985
  r: "20",
7936
7986
  fill: "none",
7937
7987
  "stroke-width": e.strokeWidth
7938
- }, null, 8, nl)], 14, tl)), e.description ? (O(), u("p", rl, I(e.description), 1)) : l("", !0)])) : l("", !0)], 2)) : (O(), u("svg", {
7988
+ }, null, 8, rl)], 14, nl)), e.description ? (O(), u("p", il, I(e.description), 1)) : l("", !0)])) : l("", !0)], 2)) : (O(), u("svg", {
7939
7989
  key: 1,
7940
7990
  class: x(["wi-progress-spinner", h.value]),
7941
7991
  viewBox: "0 0 50 50",
@@ -7949,9 +7999,9 @@ var oc = {
7949
7999
  r: "20",
7950
8000
  fill: "none",
7951
8001
  "stroke-width": e.strokeWidth
7952
- }, null, 8, al)], 14, il));
8002
+ }, null, 8, ol)], 14, al));
7953
8003
  }
7954
- }), sl = Symbol("wiRadioGroup"), cl = ["for"], ll = [
8004
+ }), cl = Symbol("wiRadioGroup"), ll = ["for"], ul = [
7955
8005
  "id",
7956
8006
  "name",
7957
8007
  "value",
@@ -7959,10 +8009,10 @@ var oc = {
7959
8009
  "disabled",
7960
8010
  "required",
7961
8011
  "aria-invalid"
7962
- ], ul = {
8012
+ ], dl = {
7963
8013
  key: 0,
7964
8014
  class: "wi-radio__label"
7965
- }, dl = /* @__PURE__ */ h({
8015
+ }, fl = /* @__PURE__ */ h({
7966
8016
  inheritAttrs: !1,
7967
8017
  __name: "Radio",
7968
8018
  props: {
@@ -7995,7 +8045,7 @@ var oc = {
7995
8045
  },
7996
8046
  emits: ["update:modelValue"],
7997
8047
  setup(e, { emit: t }) {
7998
- let n = B(), r = e, i = t, a = _(sl, null), o = s(() => r.id ?? `wi-radio-${Math.random().toString(36).slice(2, 8)}`), c = Ue("Radio", () => r.size ?? a?.size.value), f = s(() => r.disabled || !!a?.disabled.value), m = s(() => r.invalid || !!a?.invalid.value), h = s(() => r.name ?? a?.name.value), g = s(() => a ? a.modelValue.value : r.modelValue), v = s(() => g.value === r.value), b = s(() => [
8048
+ let n = e, r = t, i = B(), a = _(cl, null), o = s(() => n.id ?? `wi-radio-${Math.random().toString(36).slice(2, 8)}`), c = Ue("Radio", () => n.size ?? a?.size.value), f = s(() => n.disabled || !!a?.disabled.value), m = s(() => n.invalid || !!a?.invalid.value), h = s(() => n.name ?? a?.name.value), g = s(() => a ? a.modelValue.value : n.modelValue), v = s(() => g.value === n.value), b = s(() => [
7999
8049
  "wi-radio",
8000
8050
  `wi-radio--${c.value}`,
8001
8051
  {
@@ -8006,17 +8056,17 @@ var oc = {
8006
8056
  function S(e) {
8007
8057
  if (!(f.value || !e.target.checked)) {
8008
8058
  if (a) {
8009
- a.select(r.value);
8059
+ a.select(n.value);
8010
8060
  return;
8011
8061
  }
8012
- i("update:modelValue", r.value);
8062
+ r("update:modelValue", n.value);
8013
8063
  }
8014
8064
  }
8015
- return (t, r) => (O(), u("label", {
8065
+ return (t, n) => (O(), u("label", {
8016
8066
  class: x(b.value),
8017
8067
  for: o.value
8018
8068
  }, [
8019
- d("input", y(z(n), {
8069
+ d("input", y(z(i), {
8020
8070
  id: o.value,
8021
8071
  class: "wi-radio__input",
8022
8072
  type: "radio",
@@ -8027,15 +8077,15 @@ var oc = {
8027
8077
  required: e.required,
8028
8078
  "aria-invalid": m.value || void 0,
8029
8079
  onChange: S
8030
- }), null, 16, ll),
8031
- r[0] ||= d("span", {
8080
+ }), null, 16, ul),
8081
+ n[0] ||= d("span", {
8032
8082
  class: "wi-radio__control",
8033
8083
  "aria-hidden": "true"
8034
8084
  }, null, -1),
8035
- e.label || t.$slots.default ? (O(), u("span", ul, [P(t.$slots, "default", {}, () => [p(I(e.label), 1)])])) : l("", !0)
8036
- ], 10, cl));
8085
+ e.label || t.$slots.default ? (O(), u("span", dl, [P(t.$slots, "default", {}, () => [p(I(e.label), 1)])])) : l("", !0)
8086
+ ], 10, ll));
8037
8087
  }
8038
- }), fl = /* @__PURE__ */ h({
8088
+ }), pl = /* @__PURE__ */ h({
8039
8089
  __name: "RadioGroup",
8040
8090
  props: {
8041
8091
  modelValue: { type: [
@@ -8060,7 +8110,7 @@ var oc = {
8060
8110
  function a(e) {
8061
8111
  n.disabled || r("update:modelValue", e);
8062
8112
  }
8063
- return k(sl, {
8113
+ return k(cl, {
8064
8114
  modelValue: s(() => n.modelValue),
8065
8115
  name: s(() => n.name ?? i),
8066
8116
  size: s(() => n.size),
@@ -8075,11 +8125,11 @@ var oc = {
8075
8125
  role: "radiogroup"
8076
8126
  }, [P(t.$slots, "default")], 2));
8077
8127
  }
8078
- }), pl = ["aria-valuenow", "aria-valuemax"], ml = ["aria-label", "disabled"], hl = [
8128
+ }), ml = ["aria-valuenow", "aria-valuemax"], hl = ["aria-label", "disabled"], gl = [
8079
8129
  "aria-label",
8080
8130
  "disabled",
8081
8131
  "onClick"
8082
- ], gl = /* @__PURE__ */ h({
8132
+ ], _l = /* @__PURE__ */ h({
8083
8133
  __name: "Rating",
8084
8134
  props: {
8085
8135
  modelValue: { default: 0 },
@@ -8143,7 +8193,7 @@ var oc = {
8143
8193
  "aria-label": z(a).clearRating,
8144
8194
  disabled: e.disabled || e.readonly,
8145
8195
  onClick: g
8146
- }, " × ", 8, ml)) : l("", !0), (O(!0), u(t, null, N(c.value, (t) => (O(), u("button", {
8196
+ }, " × ", 8, hl)) : l("", !0), (O(!0), u(t, null, N(c.value, (t) => (O(), u("button", {
8147
8197
  key: t,
8148
8198
  type: "button",
8149
8199
  class: x(["wi-rating__star", {
@@ -8159,9 +8209,9 @@ var oc = {
8159
8209
  }, "☆", -1), d("span", {
8160
8210
  class: "wi-rating__star-on",
8161
8211
  "aria-hidden": "true"
8162
- }, "★", -1)]], 10, hl))), 128))], 10, pl));
8212
+ }, "★", -1)]], 10, gl))), 128))], 10, ml));
8163
8213
  }
8164
- }), _l = ["aria-label", "hidden"], vl = /* @__PURE__ */ h({
8214
+ }), vl = ["aria-label", "hidden"], yl = /* @__PURE__ */ h({
8165
8215
  __name: "ScrollTop",
8166
8216
  props: {
8167
8217
  threshold: { default: 400 },
@@ -8236,9 +8286,9 @@ var oc = {
8236
8286
  "aria-label": z(i).backToTop,
8237
8287
  hidden: !l.value,
8238
8288
  onClick: C
8239
- }, [P(e.$slots, "default", {}, () => [t[0] ||= p("↑", -1)])], 14, _l)], 8, ["to", "disabled"]))], 512));
8289
+ }, [P(e.$slots, "default", {}, () => [t[0] ||= p("↑", -1)])], 14, vl)], 8, ["to", "disabled"]))], 512));
8240
8290
  }
8241
- }), yl = ["for"], bl = [
8291
+ }), bl = ["for"], xl = [
8242
8292
  "id",
8243
8293
  "tabindex",
8244
8294
  "aria-expanded",
@@ -8248,42 +8298,42 @@ var oc = {
8248
8298
  "aria-disabled",
8249
8299
  "aria-busy",
8250
8300
  "aria-multiselectable"
8251
- ], xl = {
8301
+ ], Sl = {
8252
8302
  key: 0,
8253
8303
  class: "wi-select__tags"
8254
- }, Sl = { class: "wi-select__tag-label" }, Cl = [
8304
+ }, Cl = { class: "wi-select__tag-label" }, wl = [
8255
8305
  "aria-label",
8256
8306
  "disabled",
8257
8307
  "onClick"
8258
- ], wl = ["aria-label"], Tl = {
8308
+ ], Tl = ["aria-label"], El = {
8259
8309
  key: 1,
8260
8310
  class: "wi-select__value"
8261
- }, El = {
8311
+ }, Dl = {
8262
8312
  key: 2,
8263
8313
  class: "wi-select__spinner",
8264
8314
  "aria-hidden": "true"
8265
- }, Dl = ["aria-label"], Ol = [
8315
+ }, Ol = ["aria-label"], kl = [
8266
8316
  "id",
8267
8317
  "aria-multiselectable",
8268
8318
  "aria-label"
8269
- ], kl = ["placeholder", "aria-label"], Al = {
8319
+ ], Al = ["placeholder", "aria-label"], jl = {
8270
8320
  key: 1,
8271
8321
  class: "wi-select__empty",
8272
8322
  role: "status"
8273
- }, jl = [
8323
+ }, Ml = [
8274
8324
  "aria-selected",
8275
8325
  "disabled",
8276
8326
  "onMouseenter",
8277
8327
  "onClick"
8278
- ], Ml = {
8328
+ ], Nl = {
8279
8329
  key: 0,
8280
8330
  class: "wi-select__check",
8281
8331
  "aria-hidden": "true"
8282
- }, Nl = {
8332
+ }, Pl = {
8283
8333
  key: 2,
8284
8334
  class: "wi-select__empty",
8285
8335
  role: "status"
8286
- }, Pl = ["required", "value"], Fl = ["id", "role"], Il = /* @__PURE__ */ h({
8336
+ }, Fl = ["required", "value"], Il = ["id", "role"], Ll = /* @__PURE__ */ h({
8287
8337
  __name: "Select",
8288
8338
  props: {
8289
8339
  modelValue: { default: void 0 },
@@ -8474,7 +8524,7 @@ var oc = {
8474
8524
  key: 0,
8475
8525
  class: "wi-select-field__label",
8476
8526
  for: A.value
8477
- }, I(e.label), 9, yl)) : l("", !0),
8527
+ }, I(e.label), 9, bl)) : l("", !0),
8478
8528
  d("div", { class: x(["wi-select__control", { "wi-select__control--clearable": pe.value }]) }, [d("div", {
8479
8529
  id: A.value,
8480
8530
  ref_key: "trigger",
@@ -8501,32 +8551,32 @@ var oc = {
8501
8551
  onClick: a[0] ||= (e) => we(!C.value),
8502
8552
  onKeydown: ke
8503
8553
  }, [
8504
- P.value && fe.value ? (O(), u("div", xl, [(O(!0), u(t, null, N(ce.value, (t) => (O(), u("span", {
8554
+ P.value && fe.value ? (O(), u("div", Sl, [(O(!0), u(t, null, N(ce.value, (t) => (O(), u("span", {
8505
8555
  key: String(t.value),
8506
8556
  class: "wi-select__tag"
8507
- }, [d("span", Sl, I(t.label), 1), d("button", {
8557
+ }, [d("span", Cl, I(t.label), 1), d("button", {
8508
8558
  class: "wi-select__tag-remove",
8509
8559
  type: "button",
8510
8560
  "aria-label": z(h).removeTag,
8511
8561
  disabled: e.disabled,
8512
8562
  onClick: (e) => De(t.value, e)
8513
- }, " × ", 8, Cl)]))), 128)), le.value ? (O(), u("span", {
8563
+ }, " × ", 8, wl)]))), 128)), le.value ? (O(), u("span", {
8514
8564
  key: 0,
8515
8565
  class: "wi-select__tag wi-select__tag--more",
8516
8566
  "aria-label": be.value
8517
- }, " +" + I(le.value), 9, wl)) : l("", !0)])) : (O(), u("span", Tl, I(de.value), 1)),
8518
- R.value ? (O(), u("span", El)) : l("", !0),
8567
+ }, " +" + I(le.value), 9, Tl)) : l("", !0)])) : (O(), u("span", El, I(de.value), 1)),
8568
+ R.value ? (O(), u("span", Dl)) : l("", !0),
8519
8569
  a[3] ||= d("span", {
8520
8570
  class: "wi-select__indicator",
8521
8571
  "aria-hidden": "true"
8522
8572
  }, null, -1)
8523
- ], 42, bl), pe.value ? (O(), u("button", {
8573
+ ], 42, xl), pe.value ? (O(), u("button", {
8524
8574
  key: 0,
8525
8575
  class: "wi-select__clear",
8526
8576
  type: "button",
8527
8577
  "aria-label": z(h).clear,
8528
8578
  onClick: Oe
8529
- }, " × ", 8, Dl)) : l("", !0)], 2),
8579
+ }, " × ", 8, Ol)) : l("", !0)], 2),
8530
8580
  (O(), c(n, {
8531
8581
  to: U.value.to,
8532
8582
  disabled: U.value.disabled
@@ -8555,8 +8605,8 @@ var oc = {
8555
8605
  "aria-label": z(h).filterOptions,
8556
8606
  onClick: a[2] ||= J(() => {}, ["stop"]),
8557
8607
  onKeydown: J(Ae, ["stop"])
8558
- }, null, 40, kl)), [[te, T.value]]) : l("", !0),
8559
- R.value ? (O(), u("div", Al, I(z(h).loading), 1)) : l("", !0),
8608
+ }, null, 40, Al)), [[te, T.value]]) : l("", !0),
8609
+ R.value ? (O(), u("div", jl, I(z(h).loading), 1)) : l("", !0),
8560
8610
  (O(!0), u(t, null, N(_e.value, (e) => (O(), u("button", {
8561
8611
  key: e.created ? `__create:${String(e.value)}` : String(e.value),
8562
8612
  class: x(["wi-select__option", {
@@ -8570,9 +8620,9 @@ var oc = {
8570
8620
  disabled: e.disabled,
8571
8621
  onMouseenter: (t) => !e.disabled && (E.value = ve.value.findIndex((t) => t.value === e.value && !!t.created == !!e.created)),
8572
8622
  onClick: (t) => Te(e)
8573
- }, [d("span", null, I(e.created ? ye.value : e.label), 1), !e.created && xe(e.value) ? (O(), u("span", Ml, "✓")) : l("", !0)], 42, jl))), 128)),
8574
- !_e.value.length && !R.value ? (O(), u("div", Nl, I(M.value), 1)) : l("", !0)
8575
- ], 46, Ol)) : l("", !0)]),
8623
+ }, [d("span", null, I(e.created ? ye.value : e.label), 1), !e.created && xe(e.value) ? (O(), u("span", Nl, "✓")) : l("", !0)], 42, Ml))), 128)),
8624
+ !_e.value.length && !R.value ? (O(), u("div", Pl, I(M.value), 1)) : l("", !0)
8625
+ ], 46, kl)) : l("", !0)]),
8576
8626
  _: 1
8577
8627
  })], 8, ["to", "disabled"])),
8578
8628
  e.required ? (O(), u("input", {
@@ -8582,20 +8632,20 @@ var oc = {
8582
8632
  "aria-hidden": "true",
8583
8633
  required: !fe.value,
8584
8634
  value: P.value ? Y.value.join(",") : Y.value[0]
8585
- }, null, 8, Pl)) : l("", !0),
8635
+ }, null, 8, Fl)) : l("", !0),
8586
8636
  re.value ? (O(), u("span", {
8587
8637
  key: 2,
8588
8638
  id: `${A.value}-help`,
8589
8639
  class: x(["wi-select-field__help", { "wi-select-field__help--error": ie.value }]),
8590
8640
  role: ie.value ? "alert" : void 0
8591
- }, I(re.value), 11, Fl)) : l("", !0)
8641
+ }, I(re.value), 11, Il)) : l("", !0)
8592
8642
  ], 2));
8593
8643
  }
8594
- }), Ll = [
8644
+ }), Rl = [
8595
8645
  "disabled",
8596
8646
  "aria-pressed",
8597
8647
  "onClick"
8598
- ], Rl = /* @__PURE__ */ h({
8648
+ ], zl = /* @__PURE__ */ h({
8599
8649
  __name: "SelectButton",
8600
8650
  props: {
8601
8651
  modelValue: { type: [
@@ -8652,27 +8702,27 @@ var oc = {
8652
8702
  disabled: e.disabled || t.disabled,
8653
8703
  "aria-pressed": c(t),
8654
8704
  onClick: (e) => l(t)
8655
- }, I(t.label), 11, Ll))), 128))], 2));
8705
+ }, I(t.label), 11, Rl))), 128))], 2));
8656
8706
  }
8657
- }), zl = ["aria-label"], Bl = { class: "wi-sidebar__list" }, Vl = [
8707
+ }), Bl = ["aria-label"], Vl = { class: "wi-sidebar__list" }, Hl = [
8658
8708
  "disabled",
8659
8709
  "title",
8660
8710
  "onClick"
8661
- ], Hl = {
8711
+ ], Ul = {
8662
8712
  key: 0,
8663
8713
  class: "wi-sidebar__icon",
8664
8714
  "aria-hidden": "true"
8665
- }, Ul = {
8715
+ }, Wl = {
8666
8716
  key: 1,
8667
8717
  class: "wi-sidebar__label"
8668
- }, Wl = {
8718
+ }, Gl = {
8669
8719
  key: 0,
8670
8720
  class: "wi-sidebar__children"
8671
- }, Gl = ["disabled", "onClick"], Kl = {
8721
+ }, Kl = ["disabled", "onClick"], ql = {
8672
8722
  key: 0,
8673
8723
  class: "wi-sidebar__icon",
8674
8724
  "aria-hidden": "true"
8675
- }, ql = { class: "wi-sidebar__label" }, Jl = /* @__PURE__ */ h({
8725
+ }, Jl = { class: "wi-sidebar__label" }, Yl = /* @__PURE__ */ h({
8676
8726
  __name: "Sidebar",
8677
8727
  props: {
8678
8728
  model: { default: () => [] },
@@ -8689,7 +8739,7 @@ var oc = {
8689
8739
  return (n, o) => (O(), u("nav", {
8690
8740
  class: x(i.value),
8691
8741
  "aria-label": z(r).sidebar
8692
- }, [d("ul", Bl, [(O(!0), u(t, null, N(e.model, (n, r) => (O(), u("li", {
8742
+ }, [d("ul", Vl, [(O(!0), u(t, null, N(e.model, (n, r) => (O(), u("li", {
8693
8743
  key: `${n.label}-${r}`,
8694
8744
  class: "wi-sidebar__item"
8695
8745
  }, [d("button", {
@@ -8698,17 +8748,17 @@ var oc = {
8698
8748
  disabled: n.disabled,
8699
8749
  title: e.collapsed ? n.label : void 0,
8700
8750
  onClick: (e) => a(n)
8701
- }, [n.icon ? (O(), u("span", Hl, I(n.icon), 1)) : l("", !0), e.collapsed ? l("", !0) : (O(), u("span", Ul, I(n.label), 1))], 8, Vl), !e.collapsed && n.items?.length ? (O(), u("ul", Wl, [(O(!0), u(t, null, N(n.items, (e, t) => (O(), u("li", { key: `${e.label}-${t}` }, [d("button", {
8751
+ }, [n.icon ? (O(), u("span", Ul, I(n.icon), 1)) : l("", !0), e.collapsed ? l("", !0) : (O(), u("span", Wl, I(n.label), 1))], 8, Hl), !e.collapsed && n.items?.length ? (O(), u("ul", Gl, [(O(!0), u(t, null, N(n.items, (e, t) => (O(), u("li", { key: `${e.label}-${t}` }, [d("button", {
8702
8752
  type: "button",
8703
8753
  class: "wi-sidebar__link wi-sidebar__link--child",
8704
8754
  disabled: e.disabled,
8705
8755
  onClick: (t) => a(e)
8706
- }, [e.icon ? (O(), u("span", Kl, I(e.icon), 1)) : l("", !0), d("span", ql, I(e.label), 1)], 8, Gl)]))), 128))])) : l("", !0)]))), 128))])], 10, zl));
8756
+ }, [e.icon ? (O(), u("span", ql, I(e.icon), 1)) : l("", !0), d("span", Jl, I(e.label), 1)], 8, Kl)]))), 128))])) : l("", !0)]))), 128))])], 10, Bl));
8707
8757
  }
8708
- }), Yl = {
8758
+ }), Xl = {
8709
8759
  key: 0,
8710
8760
  class: "wi-skeleton-repeat"
8711
- }, Xl = /* @__PURE__ */ h({
8761
+ }, Zl = /* @__PURE__ */ h({
8712
8762
  __name: "Skeleton",
8713
8763
  props: {
8714
8764
  shape: { default: "rectangle" },
@@ -8732,7 +8782,7 @@ var oc = {
8732
8782
  height: n.height ?? (n.text ? "0.85em" : void 0),
8733
8783
  borderRadius: n.borderRadius
8734
8784
  }));
8735
- return (e, n) => r.value > 1 ? (O(), u("div", Yl, [(O(!0), u(t, null, N(r.value, (e) => (O(), u("div", {
8785
+ return (e, n) => r.value > 1 ? (O(), u("div", Xl, [(O(!0), u(t, null, N(r.value, (e) => (O(), u("div", {
8736
8786
  key: e,
8737
8787
  class: x(i.value),
8738
8788
  style: S(a.value),
@@ -8744,10 +8794,10 @@ var oc = {
8744
8794
  "aria-hidden": "true"
8745
8795
  }, null, 6));
8746
8796
  }
8747
- }), Zl = {
8797
+ }), Ql = {
8748
8798
  key: 0,
8749
8799
  class: "wi-slider__tooltip"
8750
- }, Ql = [
8800
+ }, $l = [
8751
8801
  "min",
8752
8802
  "max",
8753
8803
  "step",
@@ -8755,7 +8805,7 @@ var oc = {
8755
8805
  "disabled",
8756
8806
  "orient",
8757
8807
  "aria-label"
8758
- ], $l = [
8808
+ ], eu = [
8759
8809
  "min",
8760
8810
  "max",
8761
8811
  "step",
@@ -8763,18 +8813,18 @@ var oc = {
8763
8813
  "disabled",
8764
8814
  "orient",
8765
8815
  "aria-label"
8766
- ], eu = [
8816
+ ], tu = [
8767
8817
  "min",
8768
8818
  "max",
8769
8819
  "step",
8770
8820
  "value",
8771
8821
  "disabled",
8772
8822
  "orient"
8773
- ], tu = {
8823
+ ], nu = {
8774
8824
  key: 3,
8775
8825
  class: "wi-slider__marks",
8776
8826
  "aria-hidden": "true"
8777
- }, nu = /* @__PURE__ */ h({
8827
+ }, ru = /* @__PURE__ */ h({
8778
8828
  __name: "Slider",
8779
8829
  props: {
8780
8830
  modelValue: { default: 0 },
@@ -8837,7 +8887,7 @@ var oc = {
8837
8887
  onFocusin: r[4] ||= (e) => o.value = !0,
8838
8888
  onFocusout: r[5] ||= (e) => o.value = !1
8839
8889
  }, [
8840
- e.tooltip && o.value ? (O(), u("span", Zl, I(m.value), 1)) : l("", !0),
8890
+ e.tooltip && o.value ? (O(), u("span", Ql, I(m.value), 1)) : l("", !0),
8841
8891
  e.range ? (O(), u(t, { key: 1 }, [d("input", {
8842
8892
  class: "wi-slider__input wi-slider__input--start",
8843
8893
  type: "range",
@@ -8849,7 +8899,7 @@ var oc = {
8849
8899
  orient: e.vertical ? "vertical" : void 0,
8850
8900
  "aria-label": z(a).rangeStart,
8851
8901
  onInput: r[0] ||= (e) => _(0, e)
8852
- }, null, 40, Ql), d("input", {
8902
+ }, null, 40, $l), d("input", {
8853
8903
  class: "wi-slider__input wi-slider__input--end",
8854
8904
  type: "range",
8855
8905
  min: e.min,
@@ -8860,7 +8910,7 @@ var oc = {
8860
8910
  orient: e.vertical ? "vertical" : void 0,
8861
8911
  "aria-label": z(a).rangeEnd,
8862
8912
  onInput: r[1] ||= (e) => _(1, e)
8863
- }, null, 40, $l)], 64)) : (O(), u("input", {
8913
+ }, null, 40, eu)], 64)) : (O(), u("input", {
8864
8914
  key: 2,
8865
8915
  class: "wi-slider__input",
8866
8916
  type: "range",
@@ -8871,15 +8921,15 @@ var oc = {
8871
8921
  disabled: e.disabled,
8872
8922
  orient: e.vertical ? "vertical" : void 0,
8873
8923
  onInput: g
8874
- }, null, 40, eu)),
8875
- p.value.length ? (O(), u("div", tu, [(O(!0), u(t, null, N(p.value, (t) => (O(), u("span", {
8924
+ }, null, 40, tu)),
8925
+ p.value.length ? (O(), u("div", nu, [(O(!0), u(t, null, N(p.value, (t) => (O(), u("span", {
8876
8926
  key: t.value,
8877
8927
  class: "wi-slider__mark",
8878
8928
  style: S(e.vertical ? { bottom: `${t.percent}%` } : { left: `${t.percent}%` })
8879
8929
  }, I(t.label), 5))), 128))])) : l("", !0)
8880
8930
  ], 34));
8881
8931
  }
8882
- }), ru = /* @__PURE__ */ h({
8932
+ }), iu = /* @__PURE__ */ h({
8883
8933
  __name: "Space",
8884
8934
  props: {
8885
8935
  align: {},
@@ -8909,13 +8959,13 @@ var oc = {
8909
8959
  }
8910
8960
  },
8911
8961
  setup(n) {
8912
- let r = n, i = H(), a = Ge("Space", () => r.size), o = s(() => da(i.default?.())), l = s(() => {
8913
- let e = sa(a.value);
8962
+ let r = n, i = H(), a = Ge("Space", () => r.size), o = s(() => ca(i.default?.())), l = s(() => {
8963
+ let e = ia(a.value);
8914
8964
  return {
8915
8965
  display: r.inline ? "inline-flex" : "flex",
8916
- flexDirection: ua(r.vertical, r.reverse),
8917
- justifyContent: la(r.justify),
8918
- alignItems: ca(r.align),
8966
+ flexDirection: sa(r.vertical, r.reverse),
8967
+ justifyContent: oa(r.justify),
8968
+ alignItems: aa(r.align),
8919
8969
  flexWrap: !r.wrap || r.vertical ? "nowrap" : "wrap",
8920
8970
  gap: e.css
8921
8971
  };
@@ -8929,19 +8979,19 @@ var oc = {
8929
8979
  style: S(n.itemStyle)
8930
8980
  }, [(O(), c(F(r)))], 6))], 64))), 128)) : P(r.$slots, "default", {}, void 0, void 0, 0)], 4));
8931
8981
  }
8932
- }), iu = [
8982
+ }), au = [
8933
8983
  "title",
8934
8984
  "aria-label",
8935
8985
  "disabled",
8936
8986
  "onClick"
8937
- ], au = {
8987
+ ], ou = {
8938
8988
  key: 0,
8939
8989
  "aria-hidden": "true"
8940
- }, ou = { class: "wi-speeddial__action-label" }, su = [
8990
+ }, su = { class: "wi-speeddial__action-label" }, cu = [
8941
8991
  "aria-label",
8942
8992
  "aria-expanded",
8943
8993
  "disabled"
8944
- ], cu = /* @__PURE__ */ h({
8994
+ ], lu = /* @__PURE__ */ h({
8945
8995
  __name: "SpeedDial",
8946
8996
  props: {
8947
8997
  model: { default: () => [] },
@@ -9031,7 +9081,7 @@ var oc = {
9031
9081
  "aria-label": e.label,
9032
9082
  disabled: e.disabled,
9033
9083
  onClick: (t) => M(e)
9034
- }, [e.icon ? (O(), u("span", au, I(e.icon), 1)) : l("", !0), d("span", ou, I(e.label), 1)], 8, iu)]))), 128))], 6)) : l("", !0)]),
9084
+ }, [e.icon ? (O(), u("span", ou, I(e.icon), 1)) : l("", !0), d("span", su, I(e.label), 1)], 8, au)]))), 128))], 6)) : l("", !0)]),
9035
9085
  _: 1
9036
9086
  })], 8, ["to", "disabled"])), d("button", {
9037
9087
  ref_key: "button",
@@ -9042,17 +9092,17 @@ var oc = {
9042
9092
  "aria-expanded": e.modelValue,
9043
9093
  disabled: e.disabled,
9044
9094
  onClick: A
9045
- }, [P(r.$slots, "icon", {}, () => [a[0] ||= p("+", -1)])], 8, su)], 2));
9095
+ }, [P(r.$slots, "icon", {}, () => [a[0] ||= p(" + ", -1)])], 8, cu)], 2));
9046
9096
  }
9047
- }), lu = ["disabled"], uu = {
9097
+ }), uu = ["disabled"], du = {
9048
9098
  key: 0,
9049
9099
  class: "wi-splitbutton__icon",
9050
9100
  "aria-hidden": "true"
9051
- }, du = { key: 1 }, fu = [
9101
+ }, fu = { key: 1 }, pu = [
9052
9102
  "aria-label",
9053
9103
  "aria-expanded",
9054
9104
  "disabled"
9055
- ], pu = ["disabled", "onClick"], mu = /* @__PURE__ */ h({
9105
+ ], mu = ["disabled", "onClick"], hu = /* @__PURE__ */ h({
9056
9106
  __name: "SplitButton",
9057
9107
  props: {
9058
9108
  label: {},
@@ -9126,7 +9176,7 @@ var oc = {
9126
9176
  class: "wi-splitbutton__main",
9127
9177
  disabled: e.disabled,
9128
9178
  onClick: A
9129
- }, [e.icon ? (O(), u("span", uu, I(e.icon), 1)) : l("", !0), e.label ? (O(), u("span", du, I(e.label), 1)) : l("", !0)], 8, lu),
9179
+ }, [e.icon ? (O(), u("span", du, I(e.icon), 1)) : l("", !0), e.label ? (O(), u("span", fu, I(e.label), 1)) : l("", !0)], 8, uu),
9130
9180
  d("button", {
9131
9181
  type: "button",
9132
9182
  class: "wi-splitbutton__trigger",
@@ -9135,7 +9185,7 @@ var oc = {
9135
9185
  "aria-haspopup": "menu",
9136
9186
  disabled: e.disabled,
9137
9187
  onClick: M
9138
- }, " ▾ ", 8, fu),
9188
+ }, " ▾ ", 8, pu),
9139
9189
  (O(), c(n, {
9140
9190
  to: C.value.to,
9141
9191
  disabled: C.value.disabled
@@ -9156,7 +9206,7 @@ var oc = {
9156
9206
  role: "menuitem",
9157
9207
  disabled: e.disabled,
9158
9208
  onClick: (t) => P(e)
9159
- }, I(e.label), 9, pu)]))), 128))], 6)) : l("", !0)]),
9209
+ }, I(e.label), 9, mu)]))), 128))], 6)) : l("", !0)]),
9160
9210
  _: 1
9161
9211
  })], 8, ["to", "disabled"]))
9162
9212
  ], 2));
@@ -9164,29 +9214,29 @@ var oc = {
9164
9214
  });
9165
9215
  //#endregion
9166
9216
  //#region src/components/Splitter/size.ts
9167
- function hu(e, t = "percent") {
9217
+ function gu(e, t = "percent") {
9168
9218
  return e == null ? t : typeof e == "string" ? "px" : e <= 1 ? "ratio" : "percent";
9169
9219
  }
9170
- function gu(e, t, n) {
9220
+ function _u(e, t, n) {
9171
9221
  if (typeof e == "string") {
9172
9222
  let t = Number.parseFloat(e);
9173
9223
  return Number.isFinite(t) ? t : 0;
9174
9224
  }
9175
9225
  return n === "ratio" ? e * t : e / 100 * t;
9176
9226
  }
9177
- function _u(e, t, n) {
9227
+ function vu(e, t, n) {
9178
9228
  return t <= 0 ? n === "px" ? "0px" : 0 : n === "px" ? `${Math.round(e)}px` : Number(n === "ratio" ? (e / t).toFixed(4) : (e / t * 100).toFixed(1));
9179
9229
  }
9180
- function vu(e, t) {
9230
+ function yu(e, t) {
9181
9231
  return t === "px" || typeof e == "string" ? typeof e == "string" ? e : `${e}px` : t === "ratio" ? `${e * 100}%` : `${e}%`;
9182
9232
  }
9183
- function yu(e, t, n, r) {
9233
+ function bu(e, t, n, r) {
9184
9234
  let i = Math.min(n, r);
9185
9235
  return Math.min(i, Math.max(Math.min(t, i), e));
9186
9236
  }
9187
9237
  //#endregion
9188
9238
  //#region src/components/Splitter/Splitter.vue?vue&type=script&setup=true&lang.ts
9189
- var bu = ["aria-orientation"], xu = [
9239
+ var xu = ["aria-orientation"], Su = [
9190
9240
  "tabindex",
9191
9241
  "aria-orientation",
9192
9242
  "aria-valuenow",
@@ -9194,7 +9244,7 @@ var bu = ["aria-orientation"], xu = [
9194
9244
  "aria-valuemax",
9195
9245
  "aria-disabled",
9196
9246
  "aria-label"
9197
- ], Su = /* @__PURE__ */ h({
9247
+ ], Cu = /* @__PURE__ */ h({
9198
9248
  __name: "Splitter",
9199
9249
  props: {
9200
9250
  layout: {},
@@ -9221,7 +9271,7 @@ var bu = ["aria-orientation"], xu = [
9221
9271
  "drag-end"
9222
9272
  ],
9223
9273
  setup(n, { emit: i }) {
9224
- let a = n, o = i, f = Z(), p = H(), m = j(null), h = j(!1), g = s(() => a.layout ?? a.direction ?? "horizontal"), _ = s(() => g.value === "vertical"), v = s(() => a.size !== void 0), y = s(() => hu(a.size ?? a.defaultSize, "percent")), b = s(() => a.min === void 0 ? y.value === "ratio" ? .1 : y.value === "px" ? "40px" : 10 : a.min), C = s(() => a.max === void 0 ? y.value === "ratio" ? .9 : y.value === "px" ? "99999px" : 90 : a.max), T = j(a.defaultSize), E = s(() => v.value ? a.size : T.value);
9274
+ let a = n, o = i, f = Z(), p = H(), m = j(null), h = j(!1), g = s(() => a.layout ?? a.direction ?? "horizontal"), _ = s(() => g.value === "vertical"), v = s(() => a.size !== void 0), y = s(() => gu(a.size ?? a.defaultSize, "percent")), b = s(() => a.min === void 0 ? y.value === "ratio" ? .1 : y.value === "px" ? "40px" : 10 : a.min), C = s(() => a.max === void 0 ? y.value === "ratio" ? .9 : y.value === "px" ? "99999px" : 90 : a.max), T = j(a.defaultSize), E = s(() => v.value ? a.size : T.value);
9225
9275
  W(() => a.size, (e) => {
9226
9276
  e !== void 0 && !h.value && (T.value = e);
9227
9277
  }), W(() => a.defaultSize, (e) => {
@@ -9253,7 +9303,7 @@ var bu = ["aria-orientation"], xu = [
9253
9303
  return typeof e == "string" || e == null ? void 0 : e;
9254
9304
  }
9255
9305
  let R = s(() => ({
9256
- flex: `0 0 ${vu(E.value, y.value)}`,
9306
+ flex: `0 0 ${yu(E.value, y.value)}`,
9257
9307
  ...L(a.pane1Style)
9258
9308
  })), B = s(() => L(a.pane2Style)), V = s(() => _.value ? {
9259
9309
  height: `${a.resizeTriggerSize}px`,
@@ -9267,7 +9317,7 @@ var bu = ["aria-orientation"], xu = [
9267
9317
  }
9268
9318
  function te(e, t) {
9269
9319
  let n = y.value;
9270
- t <= 0 || ee(_u(yu(e, gu(b.value, t, hu(b.value, n)), gu(C.value, t, hu(C.value, n)), t), t, n));
9320
+ t <= 0 || ee(vu(bu(e, _u(b.value, t, gu(b.value, n)), _u(C.value, t, gu(C.value, n)), t), t, n));
9271
9321
  }
9272
9322
  function U(e) {
9273
9323
  if (!h.value || A <= 0 || a.disabled) return;
@@ -9281,13 +9331,13 @@ var bu = ["aria-orientation"], xu = [
9281
9331
  G(e);
9282
9332
  }
9283
9333
  function ne(e) {
9284
- a.disabled || "button" in e && e.button > 0 || m.value && (e.preventDefault(), A = I(), !(A <= 0) && (D = _.value ? e.clientY : e.clientX, k = gu(E.value, A, y.value), h.value = !0, document.body.style.cursor = _.value ? "row-resize" : "col-resize", document.body.style.userSelect = "none", o("drag-start", e), window.addEventListener("mousemove", U, !0), window.addEventListener("mouseup", K, !0), window.addEventListener("pointermove", U, !0), window.addEventListener("pointerup", K, !0)));
9334
+ a.disabled || "button" in e && e.button > 0 || m.value && (e.preventDefault(), A = I(), !(A <= 0) && (D = _.value ? e.clientY : e.clientX, k = _u(E.value, A, y.value), h.value = !0, document.body.style.cursor = _.value ? "row-resize" : "col-resize", document.body.style.userSelect = "none", o("drag-start", e), window.addEventListener("mousemove", U, !0), window.addEventListener("mouseup", K, !0), window.addEventListener("pointermove", U, !0), window.addEventListener("pointerup", K, !0)));
9285
9335
  }
9286
9336
  function q(e) {
9287
9337
  if (a.disabled) return;
9288
9338
  let t = y.value, n = I();
9289
9339
  n <= 0 && t !== "px" && (n = 100);
9290
- let r = gu(E.value, n, t), i = e.shiftKey ? n * .05 : n * .01, o = (t) => {
9340
+ let r = _u(E.value, n, t), i = e.shiftKey ? n * .05 : n * .01, o = (t) => {
9291
9341
  e.preventDefault(), te(r + t, n);
9292
9342
  };
9293
9343
  if (_.value) {
@@ -9335,27 +9385,27 @@ var bu = ["aria-orientation"], xu = [
9335
9385
  onPointerdown: ne,
9336
9386
  onMousedown: ne,
9337
9387
  onKeydown: q
9338
- }, [P(e.$slots, "resize-trigger")], 44, xu),
9388
+ }, [P(e.$slots, "resize-trigger")], 44, Su),
9339
9389
  d("div", {
9340
9390
  class: x(["wi-splitter__panel wi-splitter__panel--fill", n.pane2Class]),
9341
9391
  style: S(B.value)
9342
9392
  }, [z(p).panel2 ? P(e.$slots, "panel2", {}, void 0, void 0, 0) : z(p)[2] ? P(e.$slots, "2", {}, void 0, void 0, 1) : N.value[1] ? (O(), c(F(N.value[1]), { key: 2 })) : l("", !0)], 6)
9343
- ], 10, bu));
9393
+ ], 10, xu));
9344
9394
  }
9345
- }), Cu = [
9395
+ }), wu = [
9346
9396
  "aria-selected",
9347
9397
  "disabled",
9348
9398
  "onClick"
9349
- ], wu = {
9399
+ ], Tu = {
9350
9400
  class: "wi-stepper__marker",
9351
9401
  "aria-hidden": "true"
9352
- }, Tu = { class: "wi-stepper__copy" }, Eu = { class: "wi-stepper__label" }, Du = {
9402
+ }, Eu = { class: "wi-stepper__copy" }, Du = { class: "wi-stepper__label" }, Ou = {
9353
9403
  key: 0,
9354
9404
  class: "wi-stepper__description"
9355
- }, Ou = {
9405
+ }, ku = {
9356
9406
  key: 0,
9357
9407
  class: "wi-stepper__content"
9358
- }, ku = /* @__PURE__ */ h({
9408
+ }, Au = /* @__PURE__ */ h({
9359
9409
  __name: "Stepper",
9360
9410
  props: {
9361
9411
  modelValue: { default: 0 },
@@ -9399,9 +9449,9 @@ var bu = ["aria-orientation"], xu = [
9399
9449
  "aria-selected": t === a.value,
9400
9450
  disabled: !c(t, e.disabled),
9401
9451
  onClick: (n) => f(t, e.disabled)
9402
- }, [d("span", wu, I(t + 1), 1), d("span", Tu, [d("span", Eu, I(e.label), 1), e.description ? (O(), u("span", Du, I(e.description), 1)) : l("", !0)])], 10, Cu))), 128))], 2), n.$slots.default ? (O(), u("div", Ou, [P(n.$slots, "default", { activeIndex: a.value })])) : l("", !0)], 64));
9452
+ }, [d("span", Tu, I(t + 1), 1), d("span", Eu, [d("span", Du, I(e.label), 1), e.description ? (O(), u("span", Ou, I(e.description), 1)) : l("", !0)])], 10, wu))), 128))], 2), n.$slots.default ? (O(), u("div", ku, [P(n.$slots, "default", { activeIndex: a.value })])) : l("", !0)], 64));
9403
9453
  }
9404
- }), Au = ["for"], ju = [
9454
+ }), ju = ["for"], Mu = [
9405
9455
  "id",
9406
9456
  "name",
9407
9457
  "value",
@@ -9411,19 +9461,19 @@ var bu = ["aria-orientation"], xu = [
9411
9461
  "aria-invalid",
9412
9462
  "aria-checked",
9413
9463
  "aria-busy"
9414
- ], Mu = {
9464
+ ], Nu = {
9415
9465
  class: "wi-switch__track",
9416
9466
  "aria-hidden": "true"
9417
- }, Nu = {
9467
+ }, Pu = {
9418
9468
  key: 0,
9419
9469
  class: "wi-switch__text"
9420
- }, Pu = { class: "wi-switch__thumb" }, Fu = {
9470
+ }, Fu = { class: "wi-switch__thumb" }, Iu = {
9421
9471
  key: 0,
9422
9472
  class: "wi-switch__spinner"
9423
- }, Iu = {
9473
+ }, Lu = {
9424
9474
  key: 0,
9425
9475
  class: "wi-switch__label"
9426
- }, Lu = /* @__PURE__ */ h({
9476
+ }, Ru = /* @__PURE__ */ h({
9427
9477
  inheritAttrs: !1,
9428
9478
  __name: "Switch",
9429
9479
  props: {
@@ -9458,23 +9508,23 @@ var bu = ["aria-orientation"], xu = [
9458
9508
  },
9459
9509
  emits: ["update:modelValue"],
9460
9510
  setup(e, { emit: t }) {
9461
- let n = B(), r = e, i = t, a = s(() => r.inputId ?? r.id ?? `wi-switch-${Math.random().toString(36).slice(2, 8)}`), o = Ue("Switch", () => r.size), c = s(() => r.disabled || r.loading), f = s(() => r.modelValue ? r.checkedText : r.uncheckedText), m = s(() => [
9511
+ let n = e, r = t, i = B(), a = s(() => n.inputId ?? n.id ?? `wi-switch-${Math.random().toString(36).slice(2, 8)}`), o = Ue("Switch", () => n.size), c = s(() => n.disabled || n.loading), f = s(() => n.modelValue ? n.checkedText : n.uncheckedText), m = s(() => [
9462
9512
  "wi-switch",
9463
9513
  `wi-switch--${o.value}`,
9464
9514
  {
9465
9515
  "wi-switch--disabled": c.value,
9466
- "wi-switch--invalid": r.invalid,
9467
- "wi-switch--loading": r.loading
9516
+ "wi-switch--invalid": n.invalid,
9517
+ "wi-switch--loading": n.loading
9468
9518
  }
9469
9519
  ]);
9470
9520
  function h(e) {
9471
- c.value || i("update:modelValue", e.target.checked);
9521
+ c.value || r("update:modelValue", e.target.checked);
9472
9522
  }
9473
- return (t, r) => (O(), u("label", {
9523
+ return (t, n) => (O(), u("label", {
9474
9524
  class: x(m.value),
9475
9525
  for: a.value
9476
9526
  }, [
9477
- d("input", y(z(n), {
9527
+ d("input", y(z(i), {
9478
9528
  id: a.value,
9479
9529
  class: "wi-switch__input",
9480
9530
  type: "checkbox",
@@ -9488,19 +9538,19 @@ var bu = ["aria-orientation"], xu = [
9488
9538
  "aria-checked": e.modelValue,
9489
9539
  "aria-busy": e.loading || void 0,
9490
9540
  onChange: h
9491
- }), null, 16, ju),
9492
- d("span", Mu, [f.value ? (O(), u("span", Nu, I(f.value), 1)) : l("", !0), d("span", Pu, [e.loading ? (O(), u("span", Fu)) : l("", !0)])]),
9493
- e.label || t.$slots.default ? (O(), u("span", Iu, [P(t.$slots, "default", {}, () => [p(I(e.label), 1)])])) : l("", !0)
9494
- ], 10, Au));
9541
+ }), null, 16, Mu),
9542
+ d("span", Nu, [f.value ? (O(), u("span", Pu, I(f.value), 1)) : l("", !0), d("span", Fu, [e.loading ? (O(), u("span", Iu)) : l("", !0)])]),
9543
+ e.label || t.$slots.default ? (O(), u("span", Lu, [P(t.$slots, "default", {}, () => [p(I(e.label), 1)])])) : l("", !0)
9544
+ ], 10, ju));
9495
9545
  }
9496
9546
  });
9497
- function Ru(e) {
9547
+ function zu(e) {
9498
9548
  if (e == null || e === "") return;
9499
9549
  if (typeof e == "number") return Number.isFinite(e) ? e : void 0;
9500
9550
  let t = Number.parseFloat(e);
9501
9551
  return Number.isFinite(t) ? t : void 0;
9502
9552
  }
9503
- function zu(e, t, n = {}) {
9553
+ function Bu(e, t, n = {}) {
9504
9554
  let r = n.fit !== !1, i = [];
9505
9555
  n.selection && i.push({
9506
9556
  key: "__selection__",
@@ -9518,7 +9568,7 @@ function zu(e, t, n = {}) {
9518
9568
  fixed: "left"
9519
9569
  });
9520
9570
  for (let t of e) {
9521
- let e = Ru(t.width), n = Ru(t.minWidth) ?? 80;
9571
+ let e = zu(t.width), n = zu(t.minWidth) ?? 80;
9522
9572
  i.push({
9523
9573
  key: t.key,
9524
9574
  width: e,
@@ -9564,7 +9614,7 @@ function zu(e, t, n = {}) {
9564
9614
  scrollX: o > t
9565
9615
  };
9566
9616
  }
9567
- function Bu(e) {
9617
+ function Vu(e) {
9568
9618
  let t = {}, n = {}, r = 0;
9569
9619
  for (let n of e) n.fixed === "left" && (t[n.key] = r, r += n.realWidth);
9570
9620
  let i = 0;
@@ -9579,31 +9629,31 @@ function Bu(e) {
9579
9629
  }
9580
9630
  //#endregion
9581
9631
  //#region src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
9582
- var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"], Wu = {
9632
+ var Hu = ["aria-sort"], Uu = { class: "wi-table__th-inner" }, Wu = ["onClick"], Gu = {
9583
9633
  class: "wi-table__sort-icon",
9584
9634
  "aria-hidden": "true"
9585
- }, Gu = { key: 1 }, Ku = {
9635
+ }, Ku = { key: 1 }, qu = {
9586
9636
  key: 2,
9587
9637
  class: "wi-table__filter"
9588
- }, qu = [
9638
+ }, Ju = [
9589
9639
  "aria-expanded",
9590
9640
  "aria-label",
9591
9641
  "onClick"
9592
- ], Ju = ["value", "onChange"], Yu = { value: "" }, Xu = ["value"], Zu = [
9642
+ ], Yu = ["value", "onChange"], Xu = { value: "" }, Zu = ["value"], Qu = [
9593
9643
  "value",
9594
9644
  "placeholder",
9595
9645
  "onInput"
9596
- ], Qu = ["onClick"], $u = [
9646
+ ], $u = ["onClick"], ed = [
9597
9647
  "aria-expanded",
9598
9648
  "aria-label",
9599
9649
  "onClick"
9600
- ], ed = { key: 0 }, td = ["colspan"], nd = { key: 0 }, rd = ["colspan"], id = { class: "wi-table__empty-content" }, ad = { class: "wi-table__empty-title" }, od = {
9650
+ ], td = { key: 0 }, nd = ["colspan"], rd = { key: 0 }, id = ["colspan"], ad = { class: "wi-table__empty-content" }, od = { class: "wi-table__empty-title" }, sd = {
9601
9651
  key: 0,
9602
9652
  class: "wi-table__empty-desc"
9603
- }, sd = {
9653
+ }, cd = {
9604
9654
  key: 0,
9605
9655
  class: "wi-table__paginator"
9606
- }, cd = ["aria-label"], ld = { class: "wi-table__loading-text" }, ud = /* @__PURE__ */ h({
9656
+ }, ld = ["aria-label"], ud = { class: "wi-table__loading-text" }, dd = /* @__PURE__ */ h({
9607
9657
  __name: "Table",
9608
9658
  props: {
9609
9659
  columns: {},
@@ -9703,11 +9753,11 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9703
9753
  }), w(() => {
9704
9754
  L?.disconnect(), L = null;
9705
9755
  });
9706
- let R = s(() => zu(r.columns, F.value || 0, {
9756
+ let R = s(() => Bu(r.columns, F.value || 0, {
9707
9757
  fit: r.fit,
9708
9758
  selection: !!r.selectionMode,
9709
9759
  expand: r.expandable
9710
- })), B = s(() => new Map(R.value.columns.map((e) => [e.key, e]))), V = s(() => Bu(R.value.columns)), H = s(() => {
9760
+ })), B = s(() => new Map(R.value.columns.map((e) => [e.key, e]))), V = s(() => Vu(R.value.columns)), H = s(() => {
9711
9761
  if (R.value.scrollX) return {
9712
9762
  width: `${R.value.bodyWidth}px`,
9713
9763
  minWidth: "100%"
@@ -9873,12 +9923,12 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9873
9923
  ]),
9874
9924
  style: S(ee(e)),
9875
9925
  "aria-sort": e.sortable && g.value === e.key ? _.value === "asc" ? "ascending" : _.value === "desc" ? "descending" : "none" : e.sortable ? "none" : void 0
9876
- }, [d("div", Hu, [e.sortable ? (O(), u("button", {
9926
+ }, [d("div", Uu, [e.sortable ? (O(), u("button", {
9877
9927
  key: 0,
9878
9928
  type: "button",
9879
9929
  class: "wi-table__sort",
9880
9930
  onClick: (t) => le(e.key, !0)
9881
- }, [d("span", null, I(e.label), 1), d("span", Wu, I(ue(e.key)), 1)], 8, Uu)) : (O(), u("span", Gu, I(e.label), 1)), e.filterable ? (O(), u("div", Ku, [d("button", {
9931
+ }, [d("span", null, I(e.label), 1), d("span", Gu, I(ue(e.key)), 1)], 8, Wu)) : (O(), u("span", Ku, I(e.label), 1)), e.filterable ? (O(), u("div", qu, [d("button", {
9882
9932
  type: "button",
9883
9933
  class: "wi-table__filter-btn",
9884
9934
  "aria-expanded": E.value === e.key,
@@ -9887,7 +9937,7 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9887
9937
  }, [m($, {
9888
9938
  name: "filter",
9889
9939
  size: "sm"
9890
- })], 8, qu), E.value === e.key ? (O(), u("div", {
9940
+ })], 8, Ju), E.value === e.key ? (O(), u("div", {
9891
9941
  key: 0,
9892
9942
  class: "wi-table__filter-panel",
9893
9943
  onClick: r[0] ||= J(() => {}, ["stop"])
@@ -9896,17 +9946,17 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9896
9946
  class: "wi-table__filter-control",
9897
9947
  value: String(v.value[e.key] ?? ""),
9898
9948
  onChange: (t) => de(e.key, t.target.value || null)
9899
- }, [d("option", Yu, I(z(a).filterAll), 1), (O(!0), u(t, null, N(e.filters, (e) => (O(), u("option", {
9949
+ }, [d("option", Xu, I(z(a).filterAll), 1), (O(!0), u(t, null, N(e.filters, (e) => (O(), u("option", {
9900
9950
  key: String(e.value),
9901
9951
  value: String(e.value ?? "")
9902
- }, I(e.label), 9, Xu))), 128))], 40, Ju)) : (O(), u("input", {
9952
+ }, I(e.label), 9, Zu))), 128))], 40, Yu)) : (O(), u("input", {
9903
9953
  key: 1,
9904
9954
  class: "wi-table__filter-control",
9905
9955
  type: "search",
9906
9956
  value: String(v.value[e.key] ?? ""),
9907
9957
  placeholder: z(a).filterOptions,
9908
9958
  onInput: (t) => de(e.key, t.target.value)
9909
- }, null, 40, Zu))])) : l("", !0)])) : l("", !0)])], 14, Vu))), 128))
9959
+ }, null, 40, Qu))])) : l("", !0)])) : l("", !0)])], 14, Hu))), 128))
9910
9960
  ])]),
9911
9961
  d("tbody", null, [(O(!0), u(t, null, N(q.value, (i, o) => (O(), u(t, { key: String(A(i, o)) }, [d("tr", {
9912
9962
  class: x({
@@ -9941,7 +9991,7 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9941
9991
  "aria-expanded": he(i, o),
9942
9992
  "aria-label": he(i, o) ? z(a).collapse : z(a).expand,
9943
9993
  onClick: (e) => ge(i, o)
9944
- }, I(he(i, o) ? "▾" : "▸"), 9, $u)) : l("", !0)], 4)) : l("", !0),
9994
+ }, I(he(i, o) ? "▾" : "▸"), 9, ed)) : l("", !0)], 4)) : l("", !0),
9945
9995
  (O(!0), u(t, null, N(e.columns, (e) => (O(), u("td", {
9946
9996
  key: e.key,
9947
9997
  class: x([`wi-table__cell--${e.align ?? "start"}`, _e(e)]),
@@ -9953,26 +10003,26 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9953
10003
  }, () => [P(n.$slots, `cell-${e.key}`, {
9954
10004
  row: i,
9955
10005
  value: i[e.key]
9956
- }, () => [e.render ? (O(), c(z(Ks), {
10006
+ }, () => [e.render ? (O(), c(z(qs), {
9957
10007
  key: 0,
9958
10008
  value: e.render(i, e)
9959
10009
  }, null, 8, ["value"])) : (O(), u(t, { key: 1 }, [p(I(i[e.key]), 1)], 64))])])], 6))), 128))
9960
- ], 10, Qu), e.expandable && he(i, o) ? (O(), u("tr", ed, [d("td", {
10010
+ ], 10, $u), e.expandable && he(i, o) ? (O(), u("tr", td, [d("td", {
9961
10011
  class: "wi-table__expansion",
9962
10012
  colspan: ie.value
9963
- }, [P(n.$slots, "expansion", { row: i })], 8, td)])) : l("", !0)], 64))), 128)), re.value ? (O(), u("tr", nd, [d("td", {
10013
+ }, [P(n.$slots, "expansion", { row: i })], 8, nd)])) : l("", !0)], 64))), 128)), re.value ? (O(), u("tr", rd, [d("td", {
9964
10014
  class: "wi-table__empty",
9965
10015
  colspan: ie.value
9966
- }, [P(n.$slots, "empty", {}, () => [d("div", id, [
10016
+ }, [P(n.$slots, "empty", {}, () => [d("div", ad, [
9967
10017
  r[3] ||= d("div", {
9968
10018
  class: "wi-table__empty-glyph",
9969
10019
  "aria-hidden": "true"
9970
- }, "∅", -1),
9971
- d("p", ad, I(f.value), 1),
9972
- e.emptyDescription ? (O(), u("p", od, I(e.emptyDescription), 1)) : l("", !0)
9973
- ])])], 8, rd)])) : l("", !0)])
10020
+ }, " ", -1),
10021
+ d("p", od, I(f.value), 1),
10022
+ e.emptyDescription ? (O(), u("p", sd, I(e.emptyDescription), 1)) : l("", !0)
10023
+ ])])], 8, id)])) : l("", !0)])
9974
10024
  ], 6)], 2),
9975
- e.paginator ? (O(), u("div", sd, [m(Sr, {
10025
+ e.paginator ? (O(), u("div", cd, [m(Sr, {
9976
10026
  "model-value": y.value,
9977
10027
  "total-records": ne.value,
9978
10028
  rows: e.rowsPerPage,
@@ -9987,26 +10037,26 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
9987
10037
  class: "wi-table__loading",
9988
10038
  role: "status",
9989
10039
  "aria-label": h.value
9990
- }, [P(n.$slots, "loading", {}, () => [m(ol), d("span", ld, I(h.value), 1)])], 8, cd)) : l("", !0)
10040
+ }, [P(n.$slots, "loading", {}, () => [m(sl), d("span", ud, I(h.value), 1)])], 8, ld)) : l("", !0)
9991
10041
  ], 2));
9992
10042
  }
9993
- }), dd = { class: "wi-tabs__bar" }, fd = ["aria-label"], pd = ["aria-label"], md = [
10043
+ }), fd = { class: "wi-tabs__bar" }, pd = ["aria-label"], md = ["aria-label"], hd = [
9994
10044
  "id",
9995
10045
  "aria-selected",
9996
10046
  "disabled",
9997
10047
  "onClick",
9998
10048
  "onKeydown"
9999
- ], hd = [
10049
+ ], gd = [
10000
10050
  "aria-label",
10001
10051
  "disabled",
10002
10052
  "onClick"
10003
- ], gd = ["aria-label"], _d = ["aria-label"], vd = {
10053
+ ], _d = ["aria-label"], vd = ["aria-label"], yd = {
10004
10054
  key: 3,
10005
10055
  class: "wi-tabs__extra"
10006
- }, yd = {
10056
+ }, bd = {
10007
10057
  class: "wi-tabs__panel",
10008
10058
  role: "tabpanel"
10009
- }, bd = /* @__PURE__ */ h({
10059
+ }, xd = /* @__PURE__ */ h({
10010
10060
  __name: "Tabs",
10011
10061
  props: {
10012
10062
  modelValue: {},
@@ -10066,14 +10116,14 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10066
10116
  _(), !(!o.value || typeof ResizeObserver > "u") && (y = new ResizeObserver(() => _()), y.observe(o.value));
10067
10117
  }), W(() => r.tabs, () => {
10068
10118
  b(_);
10069
- }, { deep: !0 }), w(() => y?.disconnect()), (n, r) => (O(), u("div", { class: x(["wi-tabs", `wi-tabs--${e.type}`]) }, [d("div", dd, [
10119
+ }, { deep: !0 }), w(() => y?.disconnect()), (n, r) => (O(), u("div", { class: x(["wi-tabs", `wi-tabs--${e.type}`]) }, [d("div", fd, [
10070
10120
  c.value ? (O(), u("button", {
10071
10121
  key: 0,
10072
10122
  type: "button",
10073
10123
  class: "wi-tabs__scroll",
10074
10124
  "aria-label": z(a).prev,
10075
10125
  onClick: r[0] ||= (e) => v(-160)
10076
- }, " ‹ ", 8, fd)) : l("", !0),
10126
+ }, " ‹ ", 8, pd)) : l("", !0),
10077
10127
  d("div", {
10078
10128
  ref_key: "scroller",
10079
10129
  ref: o,
@@ -10094,32 +10144,32 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10094
10144
  disabled: e.disabled,
10095
10145
  onClick: (t) => p(e.value),
10096
10146
  onKeydown: (e) => g(e, t)
10097
- }, I(e.label), 43, md), m(e) ? (O(), u("button", {
10147
+ }, I(e.label), 43, hd), m(e) ? (O(), u("button", {
10098
10148
  key: 0,
10099
10149
  type: "button",
10100
10150
  class: "wi-tabs__close",
10101
10151
  "aria-label": z(a).closeTab,
10102
10152
  disabled: e.disabled,
10103
10153
  onClick: J((t) => h(e), ["stop"])
10104
- }, " × ", 8, hd)) : l("", !0)], 2))), 128))], 8, pd)], 512),
10154
+ }, " × ", 8, gd)) : l("", !0)], 2))), 128))], 8, md)], 512),
10105
10155
  c.value ? (O(), u("button", {
10106
10156
  key: 1,
10107
10157
  type: "button",
10108
10158
  class: "wi-tabs__scroll",
10109
10159
  "aria-label": z(a).next,
10110
10160
  onClick: r[1] ||= (e) => v(160)
10111
- }, " › ", 8, gd)) : l("", !0),
10161
+ }, " › ", 8, _d)) : l("", !0),
10112
10162
  e.addable ? (O(), u("button", {
10113
10163
  key: 2,
10114
10164
  type: "button",
10115
10165
  class: "wi-tabs__add",
10116
10166
  "aria-label": z(a).addTab,
10117
10167
  onClick: r[2] ||= (e) => i("add")
10118
- }, " + ", 8, _d)) : l("", !0),
10119
- n.$slots.extra ? (O(), u("div", vd, [P(n.$slots, "extra")])) : l("", !0)
10120
- ]), d("div", yd, [P(n.$slots, "default", { activeValue: f.value })])], 2));
10168
+ }, " + ", 8, vd)) : l("", !0),
10169
+ n.$slots.extra ? (O(), u("div", yd, [P(n.$slots, "extra")])) : l("", !0)
10170
+ ]), d("div", bd, [P(n.$slots, "default", { activeValue: f.value })])], 2));
10121
10171
  }
10122
- }), xd = ["disabled", "aria-label"], Sd = /* @__PURE__ */ h({
10172
+ }), Sd = ["disabled", "aria-label"], Cd = /* @__PURE__ */ h({
10123
10173
  __name: "Tag",
10124
10174
  props: {
10125
10175
  value: {},
@@ -10179,19 +10229,19 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10179
10229
  disabled: e.disabled,
10180
10230
  "aria-label": z(i).close,
10181
10231
  onClick: m
10182
- }, " × ", 8, xd)) : l("", !0)
10232
+ }, " × ", 8, Sd)) : l("", !0)
10183
10233
  ], 6));
10184
10234
  }
10185
- }), Cd = ["aria-label"], wd = {
10235
+ }), wd = ["aria-label"], Td = {
10186
10236
  key: 0,
10187
10237
  class: "wi-terminal__welcome"
10188
- }, Td = {
10238
+ }, Ed = {
10189
10239
  class: "wi-terminal__prompt",
10190
10240
  "aria-hidden": "true"
10191
- }, Ed = {
10241
+ }, Dd = {
10192
10242
  class: "wi-terminal__prompt",
10193
10243
  "aria-hidden": "true"
10194
- }, Dd = ["aria-label"], Od = /* @__PURE__ */ h({
10244
+ }, Od = ["aria-label"], kd = /* @__PURE__ */ h({
10195
10245
  __name: "Terminal",
10196
10246
  props: {
10197
10247
  welcomeMessage: { default: "Welcome to Well Insight Terminal" },
@@ -10212,22 +10262,22 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10212
10262
  ref_key: "bodyRef",
10213
10263
  ref: s,
10214
10264
  class: "wi-terminal__body"
10215
- }, [e.welcomeMessage ? (O(), u("div", wd, I(e.welcomeMessage), 1)) : l("", !0), (O(!0), u(t, null, N(o.value, (t, n) => (O(), u("div", {
10265
+ }, [e.welcomeMessage ? (O(), u("div", Td, I(e.welcomeMessage), 1)) : l("", !0), (O(!0), u(t, null, N(o.value, (t, n) => (O(), u("div", {
10216
10266
  key: `${t}-${n}`,
10217
10267
  class: "wi-terminal__line"
10218
- }, [d("span", Td, I(e.prompt), 1), d("span", null, I(t), 1)]))), 128))], 512), d("form", {
10268
+ }, [d("span", Ed, I(e.prompt), 1), d("span", null, I(t), 1)]))), 128))], 512), d("form", {
10219
10269
  class: "wi-terminal__form",
10220
10270
  onSubmit: J(c, ["prevent"])
10221
- }, [d("span", Ed, I(e.prompt), 1), ne(d("input", {
10271
+ }, [d("span", Dd, I(e.prompt), 1), ne(d("input", {
10222
10272
  "onUpdate:modelValue": r[0] ||= (e) => a.value = e,
10223
10273
  class: "wi-terminal__input",
10224
10274
  type: "text",
10225
10275
  "aria-label": z(i).commandInput,
10226
10276
  autocomplete: "off",
10227
10277
  spellcheck: "false"
10228
- }, null, 8, Dd), [[te, a.value]])], 32)], 8, Cd));
10278
+ }, null, 8, Od), [[te, a.value]])], 32)], 8, wd));
10229
10279
  }
10230
- }), kd = ["for"], Ad = [
10280
+ }), Ad = ["for"], jd = [
10231
10281
  "id",
10232
10282
  "value",
10233
10283
  "rows",
@@ -10236,10 +10286,10 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10236
10286
  "maxlength",
10237
10287
  "aria-invalid",
10238
10288
  "aria-describedby"
10239
- ], jd = ["aria-label", "disabled"], Md = {
10289
+ ], Md = ["aria-label", "disabled"], Nd = {
10240
10290
  key: 1,
10241
10291
  class: "wi-textarea-field__meta"
10242
- }, Nd = ["id", "role"], Pd = ["id"], Fd = /* @__PURE__ */ h({
10292
+ }, Pd = ["id", "role"], Fd = ["id"], Id = /* @__PURE__ */ h({
10243
10293
  inheritAttrs: !1,
10244
10294
  __name: "Textarea",
10245
10295
  props: {
@@ -10292,15 +10342,15 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10292
10342
  },
10293
10343
  emits: ["update:modelValue", "clear"],
10294
10344
  setup(e, { expose: t, emit: n }) {
10295
- let r = B(), i = e, a = n, o = He("Textarea"), c = Z(), f = j(null), p = s(() => i.id ?? `wi-textarea-${Math.random().toString(36).slice(2, 8)}`), m = s(() => i.invalid || i.error || !!i.errorMessage), h = Ue("Textarea", () => i.size), g = We("Textarea", () => i.variant), _ = s(() => i.fluid ?? o.value.fluid ?? !1), v = s(() => i.clearable ?? o.value.clearable ?? !1), S = s(() => i.showCount ?? o.value.showCount ?? !1), C = s(() => {
10296
- if (i.autosize !== void 0 && i.autosize !== !1) return i.autosize;
10297
- if (i.autoResize) return !0;
10345
+ let r = e, i = n, a = B(), o = He("Textarea"), c = Z(), f = j(null), p = s(() => r.id ?? `wi-textarea-${Math.random().toString(36).slice(2, 8)}`), m = s(() => r.invalid || r.error || !!r.errorMessage), h = Ue("Textarea", () => r.size), g = We("Textarea", () => r.variant), _ = s(() => r.fluid ?? o.value.fluid ?? !1), v = s(() => r.clearable ?? o.value.clearable ?? !1), S = s(() => r.showCount ?? o.value.showCount ?? !1), C = s(() => {
10346
+ if (r.autosize !== void 0 && r.autosize !== !1) return r.autosize;
10347
+ if (r.autoResize) return !0;
10298
10348
  let e = o.value.autosize;
10299
10349
  return e !== void 0 && e !== !1 ? e : !!o.value.autoResize;
10300
10350
  }), w = s(() => {
10301
10351
  let e = C.value;
10302
- return typeof e == "object" && e.minRows != null ? e.minRows : i.rows ?? o.value.rows ?? 4;
10303
- }), E = s(() => !!C.value), D = s(() => E.value ? "none" : i.resize), k = s(() => i.errorMessage || i.helpText), A = s(() => !!i.errorMessage || m.value && !!i.helpText), M = s(() => (i.modelValue ?? "").length), N = s(() => i.maxlength == null ? String(M.value) : `${M.value} / ${i.maxlength}`), P = s(() => v.value && !!i.modelValue), F = s(() => {
10352
+ return typeof e == "object" && e.minRows != null ? e.minRows : r.rows ?? o.value.rows ?? 4;
10353
+ }), E = s(() => !!C.value), D = s(() => E.value ? "none" : r.resize), k = s(() => r.errorMessage || r.helpText), A = s(() => !!r.errorMessage || m.value && !!r.helpText), M = s(() => (r.modelValue ?? "").length), N = s(() => r.maxlength == null ? String(M.value) : `${M.value} / ${r.maxlength}`), P = s(() => v.value && !!r.modelValue), F = s(() => {
10304
10354
  let e = [];
10305
10355
  return k.value && e.push(`${p.value}-help`), S.value && e.push(`${p.value}-count`), e.length ? e.join(" ") : void 0;
10306
10356
  }), L = s(() => [
@@ -10328,15 +10378,15 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10328
10378
  e.style.height = `${n}px`;
10329
10379
  }
10330
10380
  function V(e) {
10331
- a("update:modelValue", e.target.value), E.value && R();
10381
+ i("update:modelValue", e.target.value), E.value && R();
10332
10382
  }
10333
10383
  function H() {
10334
- i.disabled || i.readonly || (a("update:modelValue", ""), a("clear"), f.value?.focus(), E.value && b(R));
10384
+ r.disabled || r.readonly || (i("update:modelValue", ""), i("clear"), f.value?.focus(), E.value && b(R));
10335
10385
  }
10336
10386
  function ee() {
10337
10387
  f.value?.focus();
10338
10388
  }
10339
- return t({ focus: ee }), W(() => [i.modelValue, C.value], async () => {
10389
+ return t({ focus: ee }), W(() => [r.modelValue, C.value], async () => {
10340
10390
  E.value && (await b(), R());
10341
10391
  }), T(() => {
10342
10392
  E.value && R();
@@ -10345,12 +10395,11 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10345
10395
  key: 0,
10346
10396
  class: "wi-textarea-field__label",
10347
10397
  for: p.value
10348
- }, I(e.label), 9, kd)) : l("", !0),
10349
- d("div", { class: x(["wi-textarea-field__control", { "wi-textarea-field__control--clearable": P.value }]) }, [d("textarea", y({
10350
- ref_key: "textareaElement",
10351
- ref: f
10352
- }, z(r), {
10398
+ }, I(e.label), 9, Ad)) : l("", !0),
10399
+ d("div", { class: x(["wi-textarea-field__control", { "wi-textarea-field__control--clearable": P.value }]) }, [d("textarea", y(z(a), {
10353
10400
  id: p.value,
10401
+ ref_key: "textareaElement",
10402
+ ref: f,
10354
10403
  class: L.value,
10355
10404
  value: e.modelValue,
10356
10405
  rows: w.value,
@@ -10361,70 +10410,70 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10361
10410
  "aria-describedby": F.value,
10362
10411
  style: { resize: D.value },
10363
10412
  onInput: V
10364
- }), null, 16, Ad), P.value ? (O(), u("button", {
10413
+ }), null, 16, jd), P.value ? (O(), u("button", {
10365
10414
  key: 0,
10366
10415
  class: "wi-textarea__clear",
10367
10416
  type: "button",
10368
10417
  "aria-label": z(c).clearInput,
10369
10418
  disabled: e.disabled || e.readonly,
10370
10419
  onClick: H
10371
- }, " × ", 8, jd)) : l("", !0)], 2),
10372
- k.value || S.value ? (O(), u("div", Md, [k.value ? (O(), u("span", {
10420
+ }, " × ", 8, Md)) : l("", !0)], 2),
10421
+ k.value || S.value ? (O(), u("div", Nd, [k.value ? (O(), u("span", {
10373
10422
  key: 0,
10374
10423
  id: `${p.value}-help`,
10375
10424
  class: x(["wi-textarea-field__help", { "wi-textarea-field__help--error": A.value }]),
10376
10425
  role: A.value ? "alert" : void 0
10377
- }, I(k.value), 11, Nd)) : l("", !0), S.value ? (O(), u("span", {
10426
+ }, I(k.value), 11, Pd)) : l("", !0), S.value ? (O(), u("span", {
10378
10427
  key: 1,
10379
10428
  id: `${p.value}-count`,
10380
10429
  class: "wi-textarea-field__count",
10381
10430
  "aria-live": "polite"
10382
- }, I(N.value), 9, Pd)) : l("", !0)])) : l("", !0)
10431
+ }, I(N.value), 9, Fd)) : l("", !0)])) : l("", !0)
10383
10432
  ], 2));
10384
10433
  }
10385
- }), Id = ["onMouseenter"], Ld = {
10434
+ }), Ld = ["onMouseenter"], Rd = {
10386
10435
  key: 0,
10387
10436
  class: "wi-tieredmenu__separator",
10388
10437
  role: "separator"
10389
- }, Rd = [
10438
+ }, zd = [
10390
10439
  "disabled",
10391
10440
  "aria-haspopup",
10392
10441
  "aria-expanded",
10393
10442
  "onClick"
10394
- ], zd = {
10443
+ ], Bd = {
10395
10444
  key: 0,
10396
10445
  class: "wi-tieredmenu__caret",
10397
10446
  "aria-hidden": "true"
10398
- }, Bd = {
10447
+ }, Vd = {
10399
10448
  key: 2,
10400
10449
  class: "wi-tieredmenu__submenu",
10401
10450
  role: "menu"
10402
- }, Vd = {
10451
+ }, Hd = {
10403
10452
  key: 0,
10404
10453
  class: "wi-tieredmenu__separator",
10405
10454
  role: "separator"
10406
- }, Hd = ["disabled", "onClick"], Ud = ["onMouseenter"], Wd = {
10455
+ }, Ud = ["disabled", "onClick"], Wd = ["onMouseenter"], Gd = {
10407
10456
  key: 0,
10408
10457
  class: "wi-tieredmenu__separator",
10409
10458
  role: "separator"
10410
- }, Gd = [
10459
+ }, Kd = [
10411
10460
  "disabled",
10412
10461
  "aria-haspopup",
10413
10462
  "aria-expanded",
10414
10463
  "onClick"
10415
- ], Kd = {
10464
+ ], qd = {
10416
10465
  key: 0,
10417
10466
  class: "wi-tieredmenu__caret",
10418
10467
  "aria-hidden": "true"
10419
- }, qd = {
10468
+ }, Jd = {
10420
10469
  key: 2,
10421
10470
  class: "wi-tieredmenu__submenu",
10422
10471
  role: "menu"
10423
- }, Jd = {
10472
+ }, Yd = {
10424
10473
  key: 0,
10425
10474
  class: "wi-tieredmenu__separator",
10426
10475
  role: "separator"
10427
- }, Yd = ["disabled", "onClick"], Xd = /* @__PURE__ */ h({
10476
+ }, Xd = ["disabled", "onClick"], Zd = /* @__PURE__ */ h({
10428
10477
  __name: "TieredMenu",
10429
10478
  props: {
10430
10479
  model: {},
@@ -10478,7 +10527,7 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10478
10527
  key: `${e.label ?? "sep"}-${n}`,
10479
10528
  class: "wi-tieredmenu__row",
10480
10529
  onMouseenter: (t) => b(n, e)
10481
- }, [e.separator ? (O(), u("div", Wd)) : (O(), u("button", {
10530
+ }, [e.separator ? (O(), u("div", Gd)) : (O(), u("button", {
10482
10531
  key: 1,
10483
10532
  type: "button",
10484
10533
  class: "wi-tieredmenu__item",
@@ -10487,14 +10536,14 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10487
10536
  "aria-haspopup": e.items?.length ? "menu" : void 0,
10488
10537
  "aria-expanded": e.items?.length ? h.value === n : void 0,
10489
10538
  onClick: (t) => e.items?.length ? b(n, e) : v(e)
10490
- }, [d("span", null, I(e.label), 1), e.items?.length ? (O(), u("span", Kd, "▸")) : l("", !0)], 8, Gd)), e.items?.length && h.value === n ? (O(), u("div", qd, [(O(!0), u(t, null, N(e.items, (e, n) => (O(), u(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (O(), u("div", Jd)) : (O(), u("button", {
10539
+ }, [d("span", null, I(e.label), 1), e.items?.length ? (O(), u("span", qd, "▸")) : l("", !0)], 8, Kd)), e.items?.length && h.value === n ? (O(), u("div", Jd, [(O(!0), u(t, null, N(e.items, (e, n) => (O(), u(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (O(), u("div", Yd)) : (O(), u("button", {
10491
10540
  key: 1,
10492
10541
  type: "button",
10493
10542
  class: "wi-tieredmenu__item",
10494
10543
  role: "menuitem",
10495
10544
  disabled: e.disabled,
10496
10545
  onClick: (t) => y(e)
10497
- }, I(e.label), 9, Yd))], 64))), 128))])) : l("", !0)], 40, Ud))), 128))], 2)) : l("", !0)]),
10546
+ }, I(e.label), 9, Xd))], 64))), 128))])) : l("", !0)], 40, Wd))), 128))], 2)) : l("", !0)]),
10498
10547
  _: 1
10499
10548
  })], 8, ["to", "disabled"])) : (O(), u("div", {
10500
10549
  key: 0,
@@ -10506,7 +10555,7 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10506
10555
  key: `${e.label ?? "sep"}-${n}`,
10507
10556
  class: "wi-tieredmenu__row",
10508
10557
  onMouseenter: (t) => b(n, e)
10509
- }, [e.separator ? (O(), u("div", Ld)) : (O(), u("button", {
10558
+ }, [e.separator ? (O(), u("div", Rd)) : (O(), u("button", {
10510
10559
  key: 1,
10511
10560
  type: "button",
10512
10561
  class: "wi-tieredmenu__item",
@@ -10515,22 +10564,22 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10515
10564
  "aria-haspopup": e.items?.length ? "menu" : void 0,
10516
10565
  "aria-expanded": e.items?.length ? h.value === n : void 0,
10517
10566
  onClick: (t) => e.items?.length ? b(n, e) : v(e)
10518
- }, [d("span", null, I(e.label), 1), e.items?.length ? (O(), u("span", zd, "▸")) : l("", !0)], 8, Rd)), e.items?.length && h.value === n ? (O(), u("div", Bd, [(O(!0), u(t, null, N(e.items, (e, n) => (O(), u(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (O(), u("div", Vd)) : (O(), u("button", {
10567
+ }, [d("span", null, I(e.label), 1), e.items?.length ? (O(), u("span", Bd, "▸")) : l("", !0)], 8, zd)), e.items?.length && h.value === n ? (O(), u("div", Vd, [(O(!0), u(t, null, N(e.items, (e, n) => (O(), u(t, { key: `${e.label ?? "sep"}-${n}` }, [e.separator ? (O(), u("div", Hd)) : (O(), u("button", {
10519
10568
  key: 1,
10520
10569
  type: "button",
10521
10570
  class: "wi-tieredmenu__item",
10522
10571
  role: "menuitem",
10523
10572
  disabled: e.disabled,
10524
10573
  onClick: (t) => y(e)
10525
- }, I(e.label), 9, Hd))], 64))), 128))])) : l("", !0)], 40, Id))), 128))], 512));
10574
+ }, I(e.label), 9, Ud))], 64))), 128))])) : l("", !0)], 40, Ld))), 128))], 512));
10526
10575
  }
10527
- }), Zd = { class: "wi-timeline__opposite" }, Qd = { class: "wi-timeline__separator" }, $d = {
10576
+ }), Qd = { class: "wi-timeline__opposite" }, $d = { class: "wi-timeline__separator" }, ef = {
10528
10577
  key: 1,
10529
10578
  "aria-hidden": "true"
10530
- }, ef = { class: "wi-timeline__content" }, tf = {
10579
+ }, tf = { class: "wi-timeline__content" }, nf = {
10531
10580
  key: 0,
10532
10581
  class: "wi-timeline__status"
10533
- }, nf = /* @__PURE__ */ h({
10582
+ }, rf = /* @__PURE__ */ h({
10534
10583
  __name: "Timeline",
10535
10584
  props: {
10536
10585
  value: {},
@@ -10578,11 +10627,11 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10578
10627
  item: t,
10579
10628
  index: r
10580
10629
  }, () => [
10581
- d("div", Zd, [P(e.$slots, "opposite", {
10630
+ d("div", Qd, [P(e.$slots, "opposite", {
10582
10631
  item: t,
10583
10632
  index: r
10584
10633
  }, () => [p(I(t.date), 1)])]),
10585
- d("div", Qd, [P(e.$slots, "marker", {
10634
+ d("div", $d, [P(e.$slots, "marker", {
10586
10635
  item: t,
10587
10636
  index: r
10588
10637
  }, () => [d("span", {
@@ -10592,67 +10641,67 @@ var Vu = ["aria-sort"], Hu = { class: "wi-table__th-inner" }, Uu = ["onClick"],
10592
10641
  key: 0,
10593
10642
  name: g(t),
10594
10643
  size: "sm"
10595
- }, null, 8, ["name"])) : t.icon ? (O(), u("span", $d, I(t.icon), 1)) : l("", !0)], 6)]), P(e.$slots, "connector", {
10644
+ }, null, 8, ["name"])) : t.icon ? (O(), u("span", ef, I(t.icon), 1)) : l("", !0)], 6)]), P(e.$slots, "connector", {
10596
10645
  item: t,
10597
10646
  index: r
10598
10647
  }, () => [n[0] ||= d("span", { class: "wi-timeline__connector" }, null, -1)])]),
10599
- d("div", ef, [P(e.$slots, "content", {
10648
+ d("div", tf, [P(e.$slots, "content", {
10600
10649
  item: t,
10601
10650
  index: r
10602
- }, () => [t.status ? (O(), u("div", tf, I(t.status), 1)) : l("", !0), d("div", null, I(t.content), 1)])])
10651
+ }, () => [t.status ? (O(), u("div", nf, I(t.status), 1)) : l("", !0), d("div", null, I(t.content), 1)])])
10603
10652
  ])], 2))), 128))], 2));
10604
10653
  }
10605
- }), rf = A({
10654
+ }), af = A({
10606
10655
  messages: [],
10607
10656
  position: "top-right",
10608
10657
  max: void 0
10609
- }), af = null, of = 0, sf = /* @__PURE__ */ new Map();
10610
- function cf(e) {
10611
- af = e;
10612
- }
10613
- function lf() {
10614
- of += 1, af &&= (af.unmount(), null);
10658
+ }), of = null, sf = 0, cf = /* @__PURE__ */ new Map();
10659
+ function lf(e) {
10660
+ of = e;
10615
10661
  }
10616
10662
  function uf() {
10617
- of = Math.max(0, of - 1);
10663
+ sf += 1, of &&= (of.unmount(), null);
10664
+ }
10665
+ function df() {
10666
+ sf = Math.max(0, sf - 1);
10618
10667
  }
10619
- function df(e) {
10620
- let t = sf.get(e);
10621
- t != null && clearTimeout(t), sf.delete(e);
10668
+ function ff(e) {
10669
+ let t = cf.get(e);
10670
+ t != null && clearTimeout(t), cf.delete(e);
10622
10671
  }
10623
- function ff(e, t) {
10624
- df(e.id), !(e.life == null || e.life <= 0) && sf.set(e.id, setTimeout(() => {
10672
+ function pf(e, t) {
10673
+ ff(e.id), !(e.life == null || e.life <= 0) && cf.set(e.id, setTimeout(() => {
10625
10674
  t(e.id);
10626
10675
  }, e.life));
10627
10676
  }
10628
- function pf(e) {
10677
+ function mf(e) {
10629
10678
  if (e == null) {
10630
- mf();
10679
+ hf();
10631
10680
  return;
10632
10681
  }
10633
- df(e), rf.messages = rf.messages.filter((t) => t.id !== e);
10682
+ ff(e), af.messages = af.messages.filter((t) => t.id !== e);
10634
10683
  }
10635
- function mf() {
10636
- for (let e of [...sf.keys()]) df(e);
10637
- rf.messages = [];
10684
+ function hf() {
10685
+ for (let e of [...cf.keys()]) ff(e);
10686
+ af.messages = [];
10638
10687
  }
10639
- function hf(e) {
10640
- if (!(e == null || e <= 0)) for (; rf.messages.length >= e;) {
10641
- let e = rf.messages[0];
10688
+ function gf(e) {
10689
+ if (!(e == null || e <= 0)) for (; af.messages.length >= e;) {
10690
+ let e = af.messages[0];
10642
10691
  if (!e) break;
10643
- pf(e.id);
10692
+ mf(e.id);
10644
10693
  }
10645
10694
  }
10646
- function gf(e) {
10647
- if (!(e == null || e <= 0)) for (; rf.messages.length > e;) {
10648
- let e = rf.messages[0];
10695
+ function _f(e) {
10696
+ if (!(e == null || e <= 0)) for (; af.messages.length > e;) {
10697
+ let e = af.messages[0];
10649
10698
  if (!e) break;
10650
- pf(e.id);
10699
+ mf(e.id);
10651
10700
  }
10652
10701
  }
10653
10702
  //#endregion
10654
10703
  //#region src/components/Toast/Toast.vue?vue&type=script&setup=true&lang.ts
10655
- var _f = { class: "wi-toast__content" }, vf = { key: 0 }, yf = ["aria-label", "onClick"], bf = /* @__PURE__ */ h({
10704
+ var vf = { class: "wi-toast__content" }, yf = { key: 0 }, bf = ["aria-label", "onClick"], xf = /* @__PURE__ */ h({
10656
10705
  __name: "Toast",
10657
10706
  props: {
10658
10707
  messages: {},
@@ -10670,22 +10719,22 @@ var _f = { class: "wi-toast__content" }, vf = { key: 0 }, yf = ["aria-label", "o
10670
10719
  },
10671
10720
  emits: ["close"],
10672
10721
  setup(e, { emit: r }) {
10673
- let i = e, o = r, f = X(), p = Z(), h = s(() => Q(i, f.value.appendTo)), g = s(() => i.messages === void 0), _ = s(() => i.messages ?? rf.messages), v = s(() => i.position ?? (g.value ? rf.position : "top-right"));
10722
+ let i = e, o = r, f = X(), p = Z(), h = s(() => Q(i, f.value.appendTo)), g = s(() => i.messages === void 0), _ = s(() => i.messages ?? af.messages), v = s(() => i.position ?? (g.value ? af.position : "top-right"));
10674
10723
  T(() => {
10675
- g.value && !i.auto && lf();
10676
- }), w(() => {
10677
10724
  g.value && !i.auto && uf();
10725
+ }), w(() => {
10726
+ g.value && !i.auto && df();
10678
10727
  }), W(() => i.max, (e) => {
10679
- !g.value || e === void 0 || (rf.max = e, gf(e));
10728
+ !g.value || e === void 0 || (af.max = e, _f(e));
10680
10729
  }, { immediate: !0 });
10681
10730
  function y(e) {
10682
10731
  return `wi-toast__message--${Ie(e) ?? "info"}`;
10683
10732
  }
10684
10733
  function b(e) {
10685
- return et(p.value.closeNamed, { summary: Us(e.summary) || "toast" });
10734
+ return et(p.value.closeNamed, { summary: Ws(e.summary) || "toast" });
10686
10735
  }
10687
10736
  function S(e) {
10688
- g.value && pf(e.id), o("close", e);
10737
+ g.value && mf(e.id), o("close", e);
10689
10738
  }
10690
10739
  return (e, r) => (O(), c(n, {
10691
10740
  to: h.value.to,
@@ -10699,21 +10748,21 @@ var _f = { class: "wi-toast__content" }, vf = { key: 0 }, yf = ["aria-label", "o
10699
10748
  key: e.id,
10700
10749
  class: x(["wi-toast__message", y(e.severity)]),
10701
10750
  role: "status"
10702
- }, [d("div", _f, [d("strong", null, [m(z(Ks), { value: e.summary }, null, 8, ["value"])]), e.detail != null && e.detail !== "" ? (O(), u("p", vf, [m(z(Ks), { value: e.detail }, null, 8, ["value"])])) : l("", !0)]), e.closable === !1 ? l("", !0) : (O(), u("button", {
10751
+ }, [d("div", vf, [d("strong", null, [m(z(qs), { value: e.summary }, null, 8, ["value"])]), e.detail != null && e.detail !== "" ? (O(), u("p", yf, [m(z(qs), { value: e.detail }, null, 8, ["value"])])) : l("", !0)]), e.closable === !1 ? l("", !0) : (O(), u("button", {
10703
10752
  key: 0,
10704
10753
  type: "button",
10705
10754
  class: "wi-toast__close",
10706
10755
  "aria-label": b(e),
10707
10756
  onClick: (t) => S(e)
10708
- }, " × ", 8, yf))], 2))), 128))]),
10757
+ }, " × ", 8, bf))], 2))), 128))]),
10709
10758
  _: 1
10710
10759
  })], 2)], 8, ["to", "disabled"]));
10711
10760
  }
10712
- }), xf = ["disabled", "aria-pressed"], Sf = {
10761
+ }), Sf = ["disabled", "aria-pressed"], Cf = {
10713
10762
  key: 0,
10714
10763
  class: "wi-togglebutton__icon",
10715
10764
  "aria-hidden": "true"
10716
- }, Cf = { class: "wi-togglebutton__label" }, wf = /* @__PURE__ */ h({
10765
+ }, wf = { class: "wi-togglebutton__label" }, Tf = /* @__PURE__ */ h({
10717
10766
  __name: "ToggleButton",
10718
10767
  props: {
10719
10768
  modelValue: {
@@ -10749,33 +10798,33 @@ var _f = { class: "wi-toast__content" }, vf = { key: 0 }, yf = ["aria-label", "o
10749
10798
  disabled: e.disabled,
10750
10799
  "aria-pressed": e.modelValue,
10751
10800
  onClick: f
10752
- }, [c.value ? (O(), u("span", Sf, I(c.value), 1)) : l("", !0), d("span", Cf, I(o.value), 1)], 10, xf));
10801
+ }, [c.value ? (O(), u("span", Cf, I(c.value), 1)) : l("", !0), d("span", wf, I(o.value), 1)], 10, Sf));
10753
10802
  }
10754
- }), Tf = (e, t) => {
10803
+ }), Ef = (e, t) => {
10755
10804
  let n = e.__vccOpts || e;
10756
10805
  for (let [e, r] of t) n[e] = r;
10757
10806
  return n;
10758
- }, Ef = {}, Df = {
10807
+ }, Df = {}, Of = {
10759
10808
  class: "wi-toolbar",
10760
10809
  role: "toolbar"
10761
- }, Of = {
10810
+ }, kf = {
10762
10811
  key: 0,
10763
10812
  class: "wi-toolbar__start"
10764
- }, kf = {
10813
+ }, Af = {
10765
10814
  key: 1,
10766
10815
  class: "wi-toolbar__center"
10767
- }, Af = {
10816
+ }, jf = {
10768
10817
  key: 2,
10769
10818
  class: "wi-toolbar__end"
10770
10819
  };
10771
- function jf(e, t) {
10772
- return O(), u("div", Df, [
10773
- e.$slots.start ? (O(), u("div", Of, [P(e.$slots, "start")])) : l("", !0),
10774
- e.$slots.center ? (O(), u("div", kf, [P(e.$slots, "center")])) : l("", !0),
10775
- e.$slots.end ? (O(), u("div", Af, [P(e.$slots, "end")])) : l("", !0)
10820
+ function Mf(e, t) {
10821
+ return O(), u("div", Of, [
10822
+ e.$slots.start ? (O(), u("div", kf, [P(e.$slots, "start")])) : l("", !0),
10823
+ e.$slots.center ? (O(), u("div", Af, [P(e.$slots, "center")])) : l("", !0),
10824
+ e.$slots.end ? (O(), u("div", jf, [P(e.$slots, "end")])) : l("", !0)
10776
10825
  ]);
10777
10826
  }
10778
- var Mf = /*#__PURE__*/ Tf(Ef, [["render", jf]]), Nf = /* @__PURE__ */ h({
10827
+ var Nf = /*#__PURE__*/ Ef(Df, [["render", Mf]]), Pf = /* @__PURE__ */ h({
10779
10828
  __name: "Tooltip",
10780
10829
  props: {
10781
10830
  content: {},
@@ -10882,39 +10931,39 @@ var Mf = /*#__PURE__*/ Tf(Ef, [["render", jf]]), Nf = /* @__PURE__ */ h({
10882
10931
  _: 1
10883
10932
  })], 8, ["to", "disabled"]))], 544));
10884
10933
  }
10885
- }), Pf = Symbol("wi-tree"), Ff = Symbol("wi-tree-node-slot");
10934
+ });
10886
10935
  //#endregion
10887
10936
  //#region src/components/Tree/checkStrategy.ts
10888
- function If(e, t, n) {
10889
- for (let r of e) t(r, n), r.children?.length && If(r.children, t, r);
10937
+ function Ff(e, t, n) {
10938
+ for (let r of e) t(r, n), r.children?.length && Ff(r.children, t, r);
10890
10939
  }
10891
- function Lf(e, t, n) {
10940
+ function If(e, t, n) {
10892
10941
  t ? n[e.key] = !0 : delete n[e.key];
10893
- for (let r of e.children ?? []) Lf(r, t, n);
10942
+ for (let r of e.children ?? []) If(r, t, n);
10894
10943
  }
10895
- function Rf(e) {
10944
+ function Lf(e) {
10896
10945
  let t = /* @__PURE__ */ new Map();
10897
- return If(e, (e) => {
10946
+ return Ff(e, (e) => {
10898
10947
  t.set(e.key, e.children ?? []);
10899
10948
  }), t;
10900
10949
  }
10901
- function zf(e, t) {
10902
- Rf(e);
10950
+ function Rf(e, t) {
10951
+ Lf(e);
10903
10952
  let n = (e) => {
10904
10953
  for (let r of e) r.children?.length && (n(r.children), r.children.every((e) => t[e.key]) ? t[r.key] = !0 : delete t[r.key]);
10905
10954
  };
10906
10955
  n(e);
10907
10956
  }
10908
- function Bf(e, t, n, r) {
10957
+ function zf(e, t, n, r) {
10909
10958
  let i = { ...t };
10910
- return r ? i : (n === "parent" && If(e, (e) => {
10911
- t[e.key] && Lf(e, !0, i);
10912
- }), zf(e, i), i);
10959
+ return r ? i : (n === "parent" && Ff(e, (e) => {
10960
+ t[e.key] && If(e, !0, i);
10961
+ }), Rf(e, i), i);
10913
10962
  }
10914
- function Vf(e, t, n, r) {
10963
+ function Bf(e, t, n, r) {
10915
10964
  if (r || n === "all") return { ...t };
10916
10965
  let i = {};
10917
- if (n === "child") return If(e, (e) => {
10966
+ if (n === "child") return Ff(e, (e) => {
10918
10967
  t[e.key] && !e.children?.length && (i[e.key] = !0);
10919
10968
  }), i;
10920
10969
  let a = (e, n) => {
@@ -10925,16 +10974,16 @@ function Vf(e, t, n, r) {
10925
10974
  };
10926
10975
  return a(e, !1), i;
10927
10976
  }
10928
- function Hf(e, t) {
10977
+ function Vf(e, t) {
10929
10978
  if (!t) return null;
10930
10979
  for (let n of e) {
10931
10980
  if (n.key === t) return n;
10932
- let e = Hf(n.children ?? [], t);
10981
+ let e = Vf(n.children ?? [], t);
10933
10982
  if (e) return e;
10934
10983
  }
10935
10984
  return null;
10936
10985
  }
10937
- function Uf(e, t) {
10986
+ function Hf(e, t) {
10938
10987
  let n = [], r = (e, i) => {
10939
10988
  for (let a of e) {
10940
10989
  let e = [...i, a.label];
@@ -10946,24 +10995,24 @@ function Uf(e, t) {
10946
10995
  return r(e, []), n;
10947
10996
  }
10948
10997
  //#endregion
10949
- //#region src/components/Tree/TreeNodeItem.vue?vue&type=script&setup=true&lang.ts
10950
- var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-label", "disabled"], qf = {
10998
+ //#region src/components/Tree/context.ts
10999
+ var Uf = Symbol("wi-tree"), Wf = Symbol("wi-tree-node-slot"), Gf = ["aria-expanded", "aria-disabled"], Kf = ["draggable"], qf = ["aria-label", "disabled"], Jf = {
10951
11000
  key: 1,
10952
11001
  class: "wi-tree__toggler wi-tree__toggler--leaf",
10953
11002
  "aria-hidden": "true"
10954
- }, Jf = {
11003
+ }, Yf = {
10955
11004
  key: 3,
10956
11005
  class: "wi-tree__icon",
10957
11006
  "aria-hidden": "true"
10958
- }, Yf = ["disabled"], Xf = {
11007
+ }, Xf = ["disabled"], Zf = {
10959
11008
  key: 0,
10960
11009
  class: "wi-tree__children",
10961
11010
  role: "group"
10962
- }, Zf = /* @__PURE__ */ h({
11011
+ }, Qf = /* @__PURE__ */ h({
10963
11012
  __name: "TreeNodeItem",
10964
11013
  props: { node: {} },
10965
11014
  setup(e) {
10966
- let n = e, r = _(Pf), i = _(Ff, void 0), a = Z(), o = s(() => r.isExpanded(n.node.key)), f = s(() => r.isSelected(n.node.key)), m = s(() => r.isChecked(n.node.key)), h = s(() => r.isIndeterminate(n.node.key)), g = s(() => r.isDisabled(n.node)), v = s(() => r.isMatch(n.node)), y = s(() => !!r.loadingKeys[n.node.key]), b = s(() => !!n.node.children?.length || r.lazy && !n.node.isLeaf), S = s(() => {
11015
+ let n = e, r = _(Uf), i = _(Wf, void 0), a = Z(), o = s(() => r.isExpanded(n.node.key)), f = s(() => r.isSelected(n.node.key)), m = s(() => r.isChecked(n.node.key)), h = s(() => r.isIndeterminate(n.node.key)), g = s(() => r.isDisabled(n.node)), v = s(() => r.isMatch(n.node)), y = s(() => !!r.loadingKeys[n.node.key]), b = s(() => !!n.node.children?.length || r.lazy && !n.node.isLeaf), S = s(() => {
10967
11016
  if (n.node.icon && at(n.node.icon)) return n.node.icon;
10968
11017
  }), C = s(() => n.node.children ?? []), w = s(() => i?.({
10969
11018
  node: n.node,
@@ -11001,7 +11050,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11001
11050
  key: 1,
11002
11051
  name: o.value ? "chevron-down" : "chevron-right",
11003
11052
  size: "sm"
11004
- }, null, 8, ["name"]))], 8, Kf)) : (O(), u("span", qf)),
11053
+ }, null, 8, ["name"]))], 8, qf)) : (O(), u("span", Jf)),
11005
11054
  z(r).showCheckbox ? (O(), c(vn, {
11006
11055
  key: 2,
11007
11056
  class: "wi-tree__checkbox",
@@ -11010,7 +11059,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11010
11059
  "onUpdate:modelValue": i[1] ||= (t) => z(r).toggleCheck(e.node),
11011
11060
  onClick: i[2] ||= J(() => {}, ["stop"])
11012
11061
  }, null, 8, ["model-value", "disabled"])) : l("", !0),
11013
- S.value || e.node.icon ? (O(), u("span", Jf, [S.value ? (O(), c($, {
11062
+ S.value || e.node.icon ? (O(), u("span", Yf, [S.value ? (O(), c($, {
11014
11063
  key: 0,
11015
11064
  name: S.value,
11016
11065
  size: "sm"
@@ -11020,16 +11069,16 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11020
11069
  class: "wi-tree__label",
11021
11070
  disabled: g.value,
11022
11071
  onClick: i[3] ||= (t) => z(r).select(e.node)
11023
- }, [w.value ? (O(), c(F({ render: () => w.value }), { key: 0 })) : (O(), u(t, { key: 1 }, [p(I(e.node.label), 1)], 64))], 8, Yf)
11024
- ], 42, Gf), b.value && o.value ? (O(), u("ul", Xf, [(O(!0), u(t, null, N(C.value, (e) => (O(), c(Zf, {
11072
+ }, [w.value ? (O(), c(F({ render: () => w.value }), { key: 0 })) : (O(), u(t, { key: 1 }, [p(I(e.node.label), 1)], 64))], 8, Xf)
11073
+ ], 42, Kf), b.value && o.value ? (O(), u("ul", Zf, [(O(!0), u(t, null, N(C.value, (e) => (O(), c(Qf, {
11025
11074
  key: e.key,
11026
11075
  node: e
11027
- }, null, 8, ["node"]))), 128))])) : l("", !0)], 8, Wf));
11076
+ }, null, 8, ["node"]))), 128))])) : l("", !0)], 8, Gf));
11028
11077
  }
11029
- }), Qf = {
11078
+ }), $f = {
11030
11079
  class: "wi-tree",
11031
11080
  role: "tree"
11032
- }, $f = /* @__PURE__ */ h({
11081
+ }, ep = /* @__PURE__ */ h({
11033
11082
  __name: "Tree",
11034
11083
  props: {
11035
11084
  value: {},
@@ -11078,9 +11127,9 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11078
11127
  "node-drop"
11079
11128
  ],
11080
11129
  setup(e, { emit: n }) {
11081
- let r = e, i = H();
11082
- k(Ff, i.default);
11083
- let a = n, o = j({}), l = A({}), d = j(null), f = s(() => Rf(r.value)), p = s(() => r.checkStrategy ?? "all");
11130
+ let r = e, i = n, a = H();
11131
+ k(Wf, a.default);
11132
+ let o = j({}), l = A({}), d = j(null), f = s(() => Lf(r.value)), p = s(() => r.checkStrategy ?? "all");
11084
11133
  W(() => [
11085
11134
  r.value,
11086
11135
  r.defaultExpandAll,
@@ -11092,7 +11141,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11092
11141
  }
11093
11142
  if (r.defaultExpandAll) {
11094
11143
  let e = {};
11095
- If(r.value, (t) => {
11144
+ Ff(r.value, (t) => {
11096
11145
  t.children?.length && (e[t.key] = !0);
11097
11146
  }), o.value = e;
11098
11147
  }
@@ -11102,7 +11151,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11102
11151
  }), W(() => r.expandedKeys, (e) => {
11103
11152
  e && (o.value = { ...e });
11104
11153
  });
11105
- let m = s(() => r.selectionMode === "single" && r.modelValue ? { [r.modelValue]: !0 } : r.selectionKeys ?? {}), h = s(() => Bf(r.value, r.checkedKeys ?? {}, p.value, r.checkStrictly));
11154
+ let m = s(() => r.selectionMode === "single" && r.modelValue ? { [r.modelValue]: !0 } : r.selectionKeys ?? {}), h = s(() => zf(r.value, r.checkedKeys ?? {}, p.value, r.checkStrictly));
11106
11155
  function g(e, t) {
11107
11156
  return t.label.toLowerCase().includes(e.toLowerCase());
11108
11157
  }
@@ -11153,8 +11202,8 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11153
11202
  async function D(e) {
11154
11203
  if (w(e)) return;
11155
11204
  let t = y(e.key), n = { ...o.value };
11156
- if (t) delete n[e.key], a("node-collapse", e);
11157
- else if (r.accordion && (n = {}), n[e.key] = !0, a("node-expand", e), r.lazy && r.load && !e.children?.length && !e.isLeaf) {
11205
+ if (t) delete n[e.key], i("node-collapse", e);
11206
+ else if (r.accordion && (n = {}), n[e.key] = !0, i("node-expand", e), r.lazy && r.load && !e.children?.length && !e.isLeaf) {
11158
11207
  l[e.key] = !0;
11159
11208
  try {
11160
11209
  e.children = await r.load(e);
@@ -11162,26 +11211,26 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11162
11211
  l[e.key] = !1;
11163
11212
  }
11164
11213
  }
11165
- o.value = n, a("update:expandedKeys", n);
11214
+ o.value = n, i("update:expandedKeys", n);
11166
11215
  }
11167
11216
  function M(e) {
11168
11217
  if (w(e)) return;
11169
11218
  if (r.selectionMode === "single") {
11170
11219
  let t = x(e.key) ? null : e.key;
11171
- a("update:modelValue", t), a("update:selectionKeys", t ? { [t]: !0 } : {});
11220
+ i("update:modelValue", t), i("update:selectionKeys", t ? { [t]: !0 } : {});
11172
11221
  return;
11173
11222
  }
11174
11223
  let t = { ...m.value };
11175
- t[e.key] ? delete t[e.key] : t[e.key] = !0, a("update:selectionKeys", t);
11224
+ t[e.key] ? delete t[e.key] : t[e.key] = !0, i("update:selectionKeys", t);
11176
11225
  }
11177
11226
  function P(e) {
11178
11227
  if (w(e)) return;
11179
11228
  let t = { ...h.value }, n = !S(e.key);
11180
- r.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (Lf(e, n, t), zf(r.value, t));
11181
- let i = Vf(r.value, t, p.value, r.checkStrictly);
11182
- a("update:checkedKeys", i), a("check", {
11229
+ r.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (If(e, n, t), Rf(r.value, t));
11230
+ let a = Bf(r.value, t, p.value, r.checkStrictly);
11231
+ i("update:checkedKeys", a), i("check", {
11183
11232
  node: e,
11184
- checkedKeys: i
11233
+ checkedKeys: a
11185
11234
  });
11186
11235
  }
11187
11236
  function F(e, t) {
@@ -11197,14 +11246,14 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11197
11246
  function L(e, t) {
11198
11247
  if (!r.draggable || !d.value || d.value === e.key) return;
11199
11248
  t.preventDefault();
11200
- let n = t.currentTarget.getBoundingClientRect(), i = t.clientY - n.top, o = "inside";
11201
- i < n.height * .25 ? o = "before" : i > n.height * .75 && (o = "after"), a("node-drop", {
11249
+ let n = t.currentTarget.getBoundingClientRect(), a = t.clientY - n.top, o = "inside";
11250
+ a < n.height * .25 ? o = "before" : a > n.height * .75 && (o = "after"), i("node-drop", {
11202
11251
  dragKey: d.value,
11203
11252
  dropKey: e.key,
11204
11253
  position: o
11205
11254
  }), d.value = null;
11206
11255
  }
11207
- return k(Pf, {
11256
+ return k(Uf, {
11208
11257
  isExpanded: y,
11209
11258
  isSelected: x,
11210
11259
  isChecked: S,
@@ -11228,18 +11277,18 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11228
11277
  onDragStart: F,
11229
11278
  onDragOver: I,
11230
11279
  onDrop: L
11231
- }), (e, n) => (O(), u("ul", Qf, [(O(!0), u(t, null, N(v.value, (e) => (O(), c(Zf, {
11280
+ }), (e, n) => (O(), u("ul", $f, [(O(!0), u(t, null, N(v.value, (e) => (O(), c(Qf, {
11232
11281
  key: e.key,
11233
11282
  node: e
11234
11283
  }, null, 8, ["node"]))), 128))]));
11235
11284
  }
11236
- }), ep = ["aria-expanded"], tp = ["aria-label"], np = {
11285
+ }), tp = ["aria-expanded"], np = ["aria-label"], rp = {
11237
11286
  key: 1,
11238
11287
  class: "wi-treeselect__toggler-spacer"
11239
- }, rp = ["disabled"], ip = {
11288
+ }, ip = ["disabled"], ap = {
11240
11289
  key: 0,
11241
11290
  role: "group"
11242
- }, ap = /* @__PURE__ */ h({
11291
+ }, op = /* @__PURE__ */ h({
11243
11292
  __name: "TreeSelectNodeItem",
11244
11293
  props: {
11245
11294
  node: {},
@@ -11270,7 +11319,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11270
11319
  class: "wi-treeselect__toggler",
11271
11320
  "aria-label": e.expanded[e.node.key] ? z(n).collapse : z(n).expand,
11272
11321
  onClick: i[0] ||= J((t) => r.$emit("toggle", e.node.key), ["stop"])
11273
- }, I(e.expanded[e.node.key] ? "▾" : "▸"), 9, tp)) : (O(), u("span", np)),
11322
+ }, I(e.expanded[e.node.key] ? "▾" : "▸"), 9, np)) : (O(), u("span", rp)),
11274
11323
  e.showCheckbox ? (O(), c(vn, {
11275
11324
  key: 2,
11276
11325
  class: "wi-treeselect__checkbox",
@@ -11284,8 +11333,8 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11284
11333
  class: x(["wi-treeselect__option", { "wi-treeselect__option--selected": e.selectedKeys.includes(e.node.key) }]),
11285
11334
  disabled: e.node.disabled,
11286
11335
  onClick: i[3] ||= (t) => r.$emit("select", e.node)
11287
- }, I(e.node.label), 11, rp)
11288
- ], 4), e.node.children?.length && e.expanded[e.node.key] ? (O(), u("ul", ip, [(O(!0), u(t, null, N(e.node.children, (t) => (O(), c(ap, {
11336
+ }, I(e.node.label), 11, ip)
11337
+ ], 4), e.node.children?.length && e.expanded[e.node.key] ? (O(), u("ul", ap, [(O(!0), u(t, null, N(e.node.children, (t) => (O(), c(op, {
11289
11338
  key: t.key,
11290
11339
  node: t,
11291
11340
  depth: e.depth + 1,
@@ -11303,26 +11352,26 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11303
11352
  "checked-keys",
11304
11353
  "expanded",
11305
11354
  "show-checkbox"
11306
- ]))), 128))])) : l("", !0)], 8, ep));
11355
+ ]))), 128))])) : l("", !0)], 8, tp));
11307
11356
  }
11308
- }), op = [
11357
+ }), sp = [
11309
11358
  "aria-disabled",
11310
11359
  "aria-expanded",
11311
11360
  "onKeydown"
11312
- ], sp = {
11361
+ ], cp = {
11313
11362
  key: 0,
11314
11363
  class: "wi-treeselect__tags"
11315
- }, cp = { class: "wi-select__tag-label" }, lp = [
11364
+ }, lp = { class: "wi-select__tag-label" }, up = [
11316
11365
  "aria-label",
11317
11366
  "disabled",
11318
11367
  "onClick"
11319
- ], up = {
11368
+ ], dp = {
11320
11369
  key: 0,
11321
11370
  class: "wi-select__tag wi-select__tag--more"
11322
- }, dp = ["aria-label"], fp = ["placeholder"], pp = {
11371
+ }, fp = ["aria-label"], pp = ["placeholder"], mp = {
11323
11372
  class: "wi-treeselect__tree",
11324
11373
  role: "tree"
11325
- }, mp = /* @__PURE__ */ h({
11374
+ }, hp = /* @__PURE__ */ h({
11326
11375
  __name: "TreeSelect",
11327
11376
  props: {
11328
11377
  options: {},
@@ -11373,17 +11422,17 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11373
11422
  let e = {};
11374
11423
  for (let t of M.value) e[t] = !0;
11375
11424
  return e;
11376
- }), F = s(() => Bf(a.options, P.value, a.checkStrategy, a.checkStrictly)), L = s(() => {
11425
+ }), F = s(() => zf(a.options, P.value, a.checkStrategy, a.checkStrictly)), L = s(() => {
11377
11426
  let e = M.value[0];
11378
11427
  if (!e || A.value) return a.placeholder ?? p.value.selectPlaceholder;
11379
11428
  if (a.showPath) {
11380
- let t = Uf(a.options, e);
11429
+ let t = Hf(a.options, e);
11381
11430
  return t.length ? t.join(a.separator) : e;
11382
11431
  }
11383
- return Hf(a.options, e)?.label ?? a.placeholder ?? p.value.selectPlaceholder;
11432
+ return Vf(a.options, e)?.label ?? a.placeholder ?? p.value.selectPlaceholder;
11384
11433
  }), R = s(() => M.value.map((e) => ({
11385
11434
  key: e,
11386
- label: a.showPath ? Uf(a.options, e).join(a.separator) : Hf(a.options, e)?.label ?? e
11435
+ label: a.showPath ? Hf(a.options, e).join(a.separator) : Vf(a.options, e)?.label ?? e
11387
11436
  }))), B = s(() => {
11388
11437
  let e = a.maxTagCount;
11389
11438
  return e == null || e < 0 || R.value.length <= e ? R.value : R.value.slice(0, e);
@@ -11436,8 +11485,8 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11436
11485
  function Y(e) {
11437
11486
  if (e.disabled) return;
11438
11487
  let t = { ...F.value }, n = !t[e.key];
11439
- a.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (Lf(e, n, t), zf(a.options, t));
11440
- let r = Vf(a.options, t, a.checkStrategy, a.checkStrictly);
11488
+ a.checkStrictly ? n ? t[e.key] = !0 : delete t[e.key] : (If(e, n, t), Rf(a.options, t));
11489
+ let r = Bf(a.options, t, a.checkStrategy, a.checkStrictly);
11441
11490
  re(Object.keys(r).filter((e) => r[e]));
11442
11491
  }
11443
11492
  function ae(e) {
@@ -11477,16 +11526,16 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11477
11526
  onClick: U,
11478
11527
  onKeydown: q(J(U, ["prevent"]), ["enter"])
11479
11528
  }, [
11480
- A.value && R.value.length ? (O(), u("div", sp, [(O(!0), u(t, null, N(B.value, (t) => (O(), u("span", {
11529
+ A.value && R.value.length ? (O(), u("div", cp, [(O(!0), u(t, null, N(B.value, (t) => (O(), u("span", {
11481
11530
  key: t.key,
11482
11531
  class: "wi-select__tag"
11483
- }, [d("span", cp, I(t.label), 1), d("button", {
11532
+ }, [d("span", lp, I(t.label), 1), d("button", {
11484
11533
  type: "button",
11485
11534
  class: "wi-select__tag-remove",
11486
11535
  "aria-label": z(p).remove,
11487
11536
  disabled: e.disabled,
11488
11537
  onClick: J((e) => ae(t.key), ["stop"])
11489
- }, " × ", 8, lp)]))), 128)), V.value ? (O(), u("span", up, I(V.value > 0 ? `+${V.value}` : ""), 1)) : l("", !0)])) : (O(), u("span", {
11538
+ }, " × ", 8, up)]))), 128)), V.value ? (O(), u("span", dp, I(V.value > 0 ? `+${V.value}` : ""), 1)) : l("", !0)])) : (O(), u("span", {
11490
11539
  key: 1,
11491
11540
  class: x(["wi-treeselect__label", { "wi-treeselect__label--placeholder": !M.value.length }])
11492
11541
  }, I(L.value), 3)),
@@ -11496,12 +11545,12 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11496
11545
  class: "wi-treeselect__clear",
11497
11546
  "aria-label": z(p).clear,
11498
11547
  onClick: oe
11499
- }, " × ", 8, dp)) : l("", !0),
11548
+ }, " × ", 8, fp)) : l("", !0),
11500
11549
  a[2] ||= d("span", {
11501
11550
  class: "wi-treeselect__caret",
11502
11551
  "aria-hidden": "true"
11503
11552
  }, "▾", -1)
11504
- ], 40, op), (O(), c(n, {
11553
+ ], 40, sp), (O(), c(n, {
11505
11554
  to: D.value.to,
11506
11555
  disabled: D.value.disabled
11507
11556
  }, [m(i, { name: "wi-scale-fade" }, {
@@ -11518,7 +11567,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11518
11567
  type: "search",
11519
11568
  placeholder: z(p).searchPlaceholder,
11520
11569
  onClick: a[1] ||= J(() => {}, ["stop"])
11521
- }, null, 8, fp)), [[te, _.value]]) : l("", !0), d("ul", pp, [(O(!0), u(t, null, N(H.value, (t) => (O(), c(ap, {
11570
+ }, null, 8, pp)), [[te, _.value]]) : l("", !0), d("ul", mp, [(O(!0), u(t, null, N(H.value, (t) => (O(), c(op, {
11522
11571
  key: t.key,
11523
11572
  node: t,
11524
11573
  depth: 0,
@@ -11539,10 +11588,10 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11539
11588
  _: 1
11540
11589
  })], 8, ["to", "disabled"]))], 2));
11541
11590
  }
11542
- }), hp = { class: "wi-treetable__row" }, gp = ["aria-label"], _p = {
11591
+ }), gp = { class: "wi-treetable__row" }, _p = ["aria-label"], vp = {
11543
11592
  key: 1,
11544
11593
  class: "wi-treetable__toggler-spacer"
11545
- }, vp = /* @__PURE__ */ h({
11594
+ }, yp = /* @__PURE__ */ h({
11546
11595
  __name: "TreeTableRow",
11547
11596
  props: {
11548
11597
  node: {},
@@ -11553,7 +11602,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11553
11602
  emits: ["toggle"],
11554
11603
  setup(e) {
11555
11604
  let n = Z();
11556
- return (r, i) => (O(), u(t, null, [d("tr", hp, [(O(!0), u(t, null, N(e.columns, (a, o) => (O(), u("td", {
11605
+ return (r, i) => (O(), u(t, null, [d("tr", gp, [(O(!0), u(t, null, N(e.columns, (a, o) => (O(), u("td", {
11557
11606
  key: a.field,
11558
11607
  class: "wi-treetable__cell"
11559
11608
  }, [o === 0 ? (O(), u("div", {
@@ -11566,7 +11615,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11566
11615
  class: "wi-treetable__toggler",
11567
11616
  "aria-label": e.isExpanded(e.node.key) ? z(n).collapse : z(n).expand,
11568
11617
  onClick: i[0] ||= (t) => r.$emit("toggle", e.node)
11569
- }, I(e.isExpanded(e.node.key) ? "▾" : "▸"), 9, gp)) : (O(), u("span", _p)), d("span", null, I(e.node.data[a.field]), 1)], 4)) : (O(), u(t, { key: 1 }, [p(I(e.node.data[a.field]), 1)], 64))]))), 128))]), e.node.children?.length && e.isExpanded(e.node.key) ? (O(!0), u(t, { key: 0 }, N(e.node.children, (t) => (O(), c(vp, {
11618
+ }, I(e.isExpanded(e.node.key) ? "▾" : "▸"), 9, _p)) : (O(), u("span", vp)), d("span", null, I(e.node.data[a.field]), 1)], 4)) : (O(), u(t, { key: 1 }, [p(I(e.node.data[a.field]), 1)], 64))]))), 128))]), e.node.children?.length && e.isExpanded(e.node.key) ? (O(!0), u(t, { key: 0 }, N(e.node.children, (t) => (O(), c(yp, {
11570
11619
  key: t.key,
11571
11620
  node: t,
11572
11621
  columns: e.columns,
@@ -11580,7 +11629,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11580
11629
  "is-expanded"
11581
11630
  ]))), 128)) : l("", !0)], 64));
11582
11631
  }
11583
- }), yp = { class: "wi-treetable" }, bp = { class: "wi-treetable__table" }, xp = /* @__PURE__ */ h({
11632
+ }), bp = { class: "wi-treetable" }, xp = { class: "wi-treetable__table" }, Sp = /* @__PURE__ */ h({
11584
11633
  __name: "TreeTable",
11585
11634
  props: {
11586
11635
  value: {},
@@ -11599,10 +11648,10 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11599
11648
  [e.key]: t
11600
11649
  }, r(t ? "node-expand" : "node-collapse", e);
11601
11650
  }
11602
- return (n, r) => (O(), u("div", yp, [d("table", bp, [d("thead", null, [d("tr", null, [(O(!0), u(t, null, N(e.columns, (e) => (O(), u("th", {
11651
+ return (n, r) => (O(), u("div", bp, [d("table", xp, [d("thead", null, [d("tr", null, [(O(!0), u(t, null, N(e.columns, (e) => (O(), u("th", {
11603
11652
  key: e.field,
11604
11653
  scope: "col"
11605
- }, I(e.header), 1))), 128))])]), d("tbody", null, [(O(!0), u(t, null, N(e.value, (t) => (O(), c(vp, {
11654
+ }, I(e.header), 1))), 128))])]), d("tbody", null, [(O(!0), u(t, null, N(e.value, (t) => (O(), c(yp, {
11606
11655
  key: t.key,
11607
11656
  node: t,
11608
11657
  columns: e.columns,
@@ -11611,7 +11660,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11611
11660
  onToggle: o
11612
11661
  }, null, 8, ["node", "columns"]))), 128))])])]));
11613
11662
  }
11614
- }), Sp = /* @__PURE__ */ h({
11663
+ }), Cp = /* @__PURE__ */ h({
11615
11664
  __name: "VirtualScroller",
11616
11665
  props: {
11617
11666
  items: {},
@@ -11654,7 +11703,7 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11654
11703
  index: t.index
11655
11704
  }, () => [p(I(t.item), 1)])], 4))), 128))], 4)], 4)], 36));
11656
11705
  }
11657
- }), Cp = {
11706
+ }), wp = {
11658
11707
  WiAccordion: oe,
11659
11708
  WiAutoComplete: bt,
11660
11709
  WiAvatar: wt,
@@ -11684,198 +11733,201 @@ var Wf = ["aria-expanded", "aria-disabled"], Gf = ["draggable"], Kf = ["aria-lab
11684
11733
  WiDropdown: Ci,
11685
11734
  WiFieldset: Oi,
11686
11735
  WiFileUpload: na,
11687
- WiFlex: fa,
11688
- WiFloatLabel: aa,
11736
+ WiFlex: la,
11737
+ WiFloatLabel: fa,
11689
11738
  WiFluid: pa,
11690
11739
  WiForm: ga,
11691
11740
  WiFormItem: Aa,
11692
11741
  WiGallery: za,
11693
- WiGi: Wa,
11742
+ WiGi: Ka,
11694
11743
  WiGrid: Ga,
11695
- WiGridItem: Wa,
11744
+ WiGridItem: Ka,
11696
11745
  WiIcon: $,
11697
- WiIconField: qa,
11698
- WiInplace: Xa,
11699
- WiInput: ao,
11700
- WiInputColor: fo,
11701
- WiInputGroup: mo,
11702
- WiInputGroupAddon: go,
11703
- WiInputNumber: To,
11704
- WiInputOtp: Do,
11705
- WiInputPassword: Fo,
11706
- WiInputTags: Ro,
11707
- WiKnob: Wo,
11708
- WiLabel: Ko,
11709
- WiLayout: is,
11710
- WiLayoutContent: as,
11711
- WiLayoutFooter: os,
11712
- WiLayoutHeader: ss,
11713
- WiLayoutSider: fs,
11714
- WiListbox: _s,
11715
- WiMegaMenu: xs,
11716
- WiMenu: Ns,
11717
- WiMenubar: Bs,
11718
- WiMessage: lc,
11719
- WiMeterGroup: hc,
11720
- WiOrderList: Cc,
11746
+ WiIconField: Ja,
11747
+ WiInplace: Za,
11748
+ WiInput: oo,
11749
+ WiInputColor: po,
11750
+ WiInputGroup: ho,
11751
+ WiInputGroupAddon: _o,
11752
+ WiInputNumber: Eo,
11753
+ WiInputOtp: Oo,
11754
+ WiInputPassword: Io,
11755
+ WiInputTags: zo,
11756
+ WiKnob: Go,
11757
+ WiLabel: qo,
11758
+ WiLayout: as,
11759
+ WiLayoutContent: os,
11760
+ WiLayoutFooter: ss,
11761
+ WiLayoutHeader: cs,
11762
+ WiLayoutSider: ps,
11763
+ WiListbox: vs,
11764
+ WiMegaMenu: Ss,
11765
+ WiMenu: Ps,
11766
+ WiMenubar: Vs,
11767
+ WiMessage: uc,
11768
+ WiMeterGroup: gc,
11769
+ WiOrderList: wc,
11721
11770
  WiPagination: Sr,
11722
- WiPanel: Ac,
11723
- WiPickList: Gc,
11724
- WiPopover: Kc,
11725
- WiProgressBar: Qc,
11726
- WiProgressSpinner: ol,
11727
- WiRadio: dl,
11728
- WiRadioGroup: fl,
11729
- WiRating: gl,
11730
- WiScrollbar: ns,
11731
- WiScrollTop: vl,
11732
- WiSelect: Il,
11733
- WiSelectButton: Rl,
11734
- WiSidebar: Jl,
11735
- WiSkeleton: Xl,
11736
- WiSlider: nu,
11737
- WiSpace: ru,
11738
- WiSpeedDial: cu,
11739
- WiSplitButton: mu,
11740
- WiSplitter: Su,
11741
- WiStepper: ku,
11742
- WiSwitch: Lu,
11743
- WiTable: ud,
11744
- WiTabs: bd,
11745
- WiTag: Sd,
11746
- WiTerminal: Od,
11747
- WiTextarea: Fd,
11748
- WiTieredMenu: Xd,
11749
- WiTimeline: nf,
11750
- WiToast: bf,
11751
- WiToggleButton: wf,
11752
- WiToolbar: Mf,
11753
- WiTooltip: Nf,
11754
- WiTree: $f,
11755
- WiTreeSelect: mp,
11756
- WiTreeTable: xp,
11757
- WiVirtualScroller: Sp
11758
- }, wp = Object.keys(Cp), Tp = 3e3, Ep = 0, Dp = h({
11759
- name: "WiToastAutoHost",
11760
- setup() {
11761
- return () => g(bf, { auto: !0 });
11771
+ WiPanel: jc,
11772
+ WiPickList: Kc,
11773
+ WiPopover: qc,
11774
+ WiProgressBar: $c,
11775
+ WiProgressSpinner: sl,
11776
+ WiRadio: fl,
11777
+ WiRadioGroup: pl,
11778
+ WiRating: _l,
11779
+ WiScrollbar: rs,
11780
+ WiScrollTop: yl,
11781
+ WiSelect: Ll,
11782
+ WiSelectButton: zl,
11783
+ WiSidebar: Yl,
11784
+ WiSkeleton: Zl,
11785
+ WiSlider: ru,
11786
+ WiSpace: iu,
11787
+ WiSpeedDial: lu,
11788
+ WiSplitButton: hu,
11789
+ WiSplitter: Cu,
11790
+ WiStepper: Au,
11791
+ WiSwitch: Ru,
11792
+ WiTable: dd,
11793
+ WiTabs: xd,
11794
+ WiTag: Cd,
11795
+ WiTerminal: kd,
11796
+ WiTextarea: Id,
11797
+ WiTieredMenu: Zd,
11798
+ WiTimeline: rf,
11799
+ WiToast: xf,
11800
+ WiToggleButton: Tf,
11801
+ WiToolbar: Nf,
11802
+ WiTooltip: Pf,
11803
+ WiTree: ep,
11804
+ WiTreeSelect: hp,
11805
+ WiTreeTable: Sp,
11806
+ WiVirtualScroller: Cp
11807
+ }, Tp = Object.keys(wp);
11808
+ //#endregion
11809
+ //#region src/components/ContextMenu/useContextMenu.ts
11810
+ function Ep() {
11811
+ let e = j(!1), t = j({
11812
+ x: 0,
11813
+ y: 0
11814
+ });
11815
+ function n(n) {
11816
+ "preventDefault" in n && n.preventDefault();
11817
+ let r = "clientX" in n ? {
11818
+ x: n.clientX,
11819
+ y: n.clientY
11820
+ } : {
11821
+ x: n.x,
11822
+ y: n.y
11823
+ };
11824
+ t.value = r, e.value = !0;
11762
11825
  }
11763
- });
11764
- function Op() {
11765
- typeof document > "u" || of > 0 || af || cf(Pe(Dp, "wi-toast-host-root"));
11766
- }
11767
- function kp(e, t) {
11768
- let n = Gs(e) ? e : { summary: e };
11769
- return n.position && (rf.position = n.position), {
11770
- id: n.id ?? `wi-toast-${Date.now()}-${++Ep}`,
11771
- summary: n.summary,
11772
- detail: n.detail,
11773
- severity: t ?? n.severity ?? "info",
11774
- closable: n.closable ?? !0,
11775
- life: n.life === void 0 ? Tp : n.life
11776
- };
11777
- }
11778
- function Ap(e, t) {
11779
- Op(), hf(rf.max);
11780
- let n = kp(e, t);
11781
- return rf.messages = [...rf.messages, n], ff(n, pf), {
11782
- id: n.id,
11783
- close: () => pf(n.id)
11784
- };
11785
- }
11786
- var jp = {
11787
- add: (e) => Ap(e),
11788
- success: (e) => Ap(e, "success"),
11789
- info: (e) => Ap(e, "info"),
11790
- warn: (e) => Ap(e, "warn"),
11791
- warning: (e) => Ap(e, "warn"),
11792
- error: (e) => Ap(e, "error"),
11793
- remove: pf,
11794
- clear: mf,
11795
- close: pf,
11796
- closeAll: mf,
11797
- destroyAll: mf,
11798
- setDefaults(e) {
11799
- e.position && (rf.position = e.position), e.max !== void 0 && (rf.max = e.max);
11826
+ function r() {
11827
+ e.value = !1;
11800
11828
  }
11801
- };
11802
- function Mp() {
11803
- return jp;
11829
+ return {
11830
+ visible: e,
11831
+ position: t,
11832
+ show: n,
11833
+ hide: r
11834
+ };
11804
11835
  }
11805
11836
  //#endregion
11806
11837
  //#region src/components/Message/message.ts
11807
- var Np = 3e3, Pp = 0, Fp = h({
11838
+ var Dp = 3e3, Op = 0, kp = h({
11808
11839
  name: "WiMessageAutoHost",
11809
11840
  setup() {
11810
- return () => g(lc, { auto: !0 });
11841
+ return () => g(uc, { auto: !0 });
11811
11842
  }
11812
11843
  });
11813
- function Ip() {
11814
- typeof document > "u" || Ys > 0 || Js || Zs(Pe(Fp, "wi-message-host-root"));
11844
+ function Ap() {
11845
+ typeof document > "u" || Xs > 0 || Ys || Qs(Pe(kp, "wi-message-host-root"));
11815
11846
  }
11816
- function Lp(e, t) {
11817
- let n = Ws(e) ? e : { content: e };
11847
+ function jp(e, t) {
11848
+ let n = Gs(e) ? e : { content: e };
11818
11849
  return {
11819
- id: n.id ?? `wi-message-${Date.now()}-${++Pp}`,
11850
+ id: n.id ?? `wi-message-${Date.now()}-${++Op}`,
11820
11851
  content: n.content,
11821
11852
  severity: t ?? n.severity ?? "info",
11822
11853
  closable: n.closable ?? !1,
11823
- life: n.life === void 0 ? Np : n.life,
11854
+ life: n.life === void 0 ? Dp : n.life,
11824
11855
  icon: n.icon ?? !0
11825
11856
  };
11826
11857
  }
11827
- function Rp(e, t) {
11828
- Ip(), ic(qs.max);
11829
- let n = Lp(e, t);
11830
- return qs.items = [...qs.items, n], tc(n, nc), {
11858
+ function Mp(e, t) {
11859
+ Ap(), ac(Js.max);
11860
+ let n = jp(e, t);
11861
+ return Js.items = [...Js.items, n], nc(n, rc), {
11831
11862
  id: n.id,
11832
- close: () => nc(n.id)
11863
+ close: () => rc(n.id)
11833
11864
  };
11834
11865
  }
11835
- var zp = {
11836
- open: (e) => Rp(e),
11837
- success: (e) => Rp(e, "success"),
11838
- info: (e) => Rp(e, "info"),
11839
- warn: (e) => Rp(e, "warn"),
11840
- warning: (e) => Rp(e, "warn"),
11841
- error: (e) => Rp(e, "error"),
11842
- close: nc,
11843
- closeAll: rc,
11844
- destroyAll: rc,
11866
+ var Np = {
11867
+ open: (e) => Mp(e),
11868
+ success: (e) => Mp(e, "success"),
11869
+ info: (e) => Mp(e, "info"),
11870
+ warn: (e) => Mp(e, "warn"),
11871
+ warning: (e) => Mp(e, "warn"),
11872
+ error: (e) => Mp(e, "error"),
11873
+ close: rc,
11874
+ closeAll: ic,
11875
+ destroyAll: ic,
11845
11876
  config(e) {
11846
- e.placement && (qs.placement = e.placement), e.max !== void 0 && (qs.max = e.max);
11877
+ e.placement && (Js.placement = e.placement), e.max !== void 0 && (Js.max = e.max);
11847
11878
  }
11848
11879
  };
11849
- function Bp() {
11850
- return zp;
11880
+ function Pp() {
11881
+ return Np;
11851
11882
  }
11852
11883
  //#endregion
11853
- //#region src/components/ContextMenu/useContextMenu.ts
11854
- function Vp() {
11855
- let e = j(!1), t = j({
11856
- x: 0,
11857
- y: 0
11858
- });
11859
- function n(n) {
11860
- "preventDefault" in n && n.preventDefault();
11861
- let r = "clientX" in n ? {
11862
- x: n.clientX,
11863
- y: n.clientY
11864
- } : {
11865
- x: n.x,
11866
- y: n.y
11867
- };
11868
- t.value = r, e.value = !0;
11869
- }
11870
- function r() {
11871
- e.value = !1;
11884
+ //#region src/components/Toast/toast.ts
11885
+ var Fp = 3e3, Ip = 0, Lp = h({
11886
+ name: "WiToastAutoHost",
11887
+ setup() {
11888
+ return () => g(xf, { auto: !0 });
11872
11889
  }
11873
- return {
11874
- visible: e,
11875
- position: t,
11876
- show: n,
11877
- hide: r
11890
+ });
11891
+ function Rp() {
11892
+ typeof document > "u" || sf > 0 || of || lf(Pe(Lp, "wi-toast-host-root"));
11893
+ }
11894
+ function zp(e, t) {
11895
+ let n = Ks(e) ? e : { summary: e };
11896
+ return n.position && (af.position = n.position), {
11897
+ id: n.id ?? `wi-toast-${Date.now()}-${++Ip}`,
11898
+ summary: n.summary,
11899
+ detail: n.detail,
11900
+ severity: t ?? n.severity ?? "info",
11901
+ closable: n.closable ?? !0,
11902
+ life: n.life === void 0 ? Fp : n.life
11903
+ };
11904
+ }
11905
+ function Bp(e, t) {
11906
+ Rp(), gf(af.max);
11907
+ let n = zp(e, t);
11908
+ return af.messages = [...af.messages, n], pf(n, mf), {
11909
+ id: n.id,
11910
+ close: () => mf(n.id)
11878
11911
  };
11879
11912
  }
11913
+ var Vp = {
11914
+ add: (e) => Bp(e),
11915
+ success: (e) => Bp(e, "success"),
11916
+ info: (e) => Bp(e, "info"),
11917
+ warn: (e) => Bp(e, "warn"),
11918
+ warning: (e) => Bp(e, "warn"),
11919
+ error: (e) => Bp(e, "error"),
11920
+ remove: mf,
11921
+ clear: hf,
11922
+ close: mf,
11923
+ closeAll: hf,
11924
+ destroyAll: hf,
11925
+ setDefaults(e) {
11926
+ e.position && (af.position = e.position), e.max !== void 0 && (af.max = e.max);
11927
+ }
11928
+ };
11929
+ function Hp() {
11930
+ return Vp;
11931
+ }
11880
11932
  //#endregion
11881
- export { Le as WI_CONFIG_KEY, ha as WI_FORM_ERRORS_KEY, ma as WI_FORM_KEY, Ua as WI_GRID_KEY, rs as WI_LAYOUT_KEY, Qe as WellInsight, Qe as default, oe as WiAccordion, bt as WiAutoComplete, wt as WiAvatar, Tt as WiAvatarGroup, Dt as WiBadge, At as WiBlockUI, It as WiBreadcrumb, zt as WiButton, Vt as WiButtonGroup, Yt as WiCard, rn as WiCarousel, ln as WiCascadeSelect, vn as WiCheckbox, yn as WiCheckboxGroup, wn as WiChip, In as WiCommandMenu, Rn as WiConfigProvider, Zn as WiConfirmDialog, er as WiConfirmPopup, lr as WiContextMenu, Er as WiDataView, Vr as WiDatePicker, Zr as WiDialog, ti as WiDivider, ai as WiDock, di as WiDrawer, Ci as WiDropdown, Oi as WiFieldset, na as WiFileUpload, fa as WiFlex, aa as WiFloatLabel, pa as WiFluid, ga as WiForm, Aa as WiFormItem, za as WiGallery, Wa as WiGi, Wa as WiGridItem, Ga as WiGrid, $ as WiIcon, qa as WiIconField, Xa as WiInplace, ao as WiInput, fo as WiInputColor, mo as WiInputGroup, go as WiInputGroupAddon, To as WiInputNumber, Do as WiInputOtp, Fo as WiInputPassword, Ro as WiInputTags, Wo as WiKnob, Ko as WiLabel, is as WiLayout, as as WiLayoutContent, os as WiLayoutFooter, ss as WiLayoutHeader, fs as WiLayoutSider, _s as WiListbox, xs as WiMegaMenu, Ns as WiMenu, Bs as WiMenubar, lc as WiMessage, hc as WiMeterGroup, Cc as WiOrderList, Sr as WiPagination, Ac as WiPanel, Gc as WiPickList, Kc as WiPopover, Qc as WiProgressBar, ol as WiProgressSpinner, dl as WiRadio, fl as WiRadioGroup, gl as WiRating, vl as WiScrollTop, ns as WiScrollbar, Il as WiSelect, Rl as WiSelectButton, Jl as WiSidebar, Xl as WiSkeleton, nu as WiSlider, ru as WiSpace, cu as WiSpeedDial, mu as WiSplitButton, Su as WiSplitter, ku as WiStepper, Lu as WiSwitch, ud as WiTable, bd as WiTabs, Sd as WiTag, Od as WiTerminal, Fd as WiTextarea, Xd as WiTieredMenu, nf as WiTimeline, bf as WiToast, wf as WiToggleButton, Mf as WiToolbar, Nf as WiTooltip, $f as WiTree, mp as WiTreeSelect, xp as WiTreeTable, Sp as WiVirtualScroller, xe as applyDensity, he as applyMotion, Ee as applyTheme, Ze as createWellInsight, le as darkTokens, $e as enUS, et as formatLocale, Ae as getComponentDefault, ke as getComponentDefaults, ze as getDefaultWiConfig, ot as getIconDefinition, ge as getPreferredMotion, Te as getPreferredTheme, it as iconNames, rt as iconRegistry, Xe as installWellInsight, at as isIconName, nt as isOverlayTeleported, ce as lightTokens, je as mergeComponentDefaults, tt as mergeLocale, Ve as mergeWiConfig, zp as message, Ie as normalizeSeverity, Be as provideWiConfig, Ke as resolveConfiguredAppendTo, Q as resolveOverlayTeleport, Fe as resolveSizeClass, we as themeNames, jp as toast, He as useComponentDefaults, Ge as useConfiguredGapSize, Ue as useConfiguredSize, We as useConfiguredVariant, Vp as useContextMenu, Se as useDensity, Bp as useMessage, Dn as useModalOverlay, _e as useMotion, de as useTheme, Mp as useToast, X as useWiConfig, Z as useWiLocale, wp as wiComponentNames, Cp as wiComponents, se as zhCN };
11933
+ export { Le as WI_CONFIG_KEY, ha as WI_FORM_ERRORS_KEY, ma as WI_FORM_KEY, Ua as WI_GRID_KEY, is as WI_LAYOUT_KEY, Qe as WellInsight, Qe as default, oe as WiAccordion, bt as WiAutoComplete, wt as WiAvatar, Tt as WiAvatarGroup, Dt as WiBadge, At as WiBlockUI, It as WiBreadcrumb, zt as WiButton, Vt as WiButtonGroup, Yt as WiCard, rn as WiCarousel, ln as WiCascadeSelect, vn as WiCheckbox, yn as WiCheckboxGroup, wn as WiChip, In as WiCommandMenu, Rn as WiConfigProvider, Zn as WiConfirmDialog, er as WiConfirmPopup, lr as WiContextMenu, Er as WiDataView, Vr as WiDatePicker, Zr as WiDialog, ti as WiDivider, ai as WiDock, di as WiDrawer, Ci as WiDropdown, Oi as WiFieldset, na as WiFileUpload, la as WiFlex, fa as WiFloatLabel, pa as WiFluid, ga as WiForm, Aa as WiFormItem, za as WiGallery, Ka as WiGi, Ka as WiGridItem, Ga as WiGrid, $ as WiIcon, Ja as WiIconField, Za as WiInplace, oo as WiInput, po as WiInputColor, ho as WiInputGroup, _o as WiInputGroupAddon, Eo as WiInputNumber, Oo as WiInputOtp, Io as WiInputPassword, zo as WiInputTags, Go as WiKnob, qo as WiLabel, as as WiLayout, os as WiLayoutContent, ss as WiLayoutFooter, cs as WiLayoutHeader, ps as WiLayoutSider, vs as WiListbox, Ss as WiMegaMenu, Ps as WiMenu, Vs as WiMenubar, uc as WiMessage, gc as WiMeterGroup, wc as WiOrderList, Sr as WiPagination, jc as WiPanel, Kc as WiPickList, qc as WiPopover, $c as WiProgressBar, sl as WiProgressSpinner, fl as WiRadio, pl as WiRadioGroup, _l as WiRating, yl as WiScrollTop, rs as WiScrollbar, Ll as WiSelect, zl as WiSelectButton, Yl as WiSidebar, Zl as WiSkeleton, ru as WiSlider, iu as WiSpace, lu as WiSpeedDial, hu as WiSplitButton, Cu as WiSplitter, Au as WiStepper, Ru as WiSwitch, dd as WiTable, xd as WiTabs, Cd as WiTag, kd as WiTerminal, Id as WiTextarea, Zd as WiTieredMenu, rf as WiTimeline, xf as WiToast, Tf as WiToggleButton, Nf as WiToolbar, Pf as WiTooltip, ep as WiTree, hp as WiTreeSelect, Sp as WiTreeTable, Cp as WiVirtualScroller, fe as applyDensity, _e as applyMotion, Ee as applyTheme, Ze as createWellInsight, le as darkTokens, $e as enUS, et as formatLocale, Ae as getComponentDefault, ke as getComponentDefaults, ze as getDefaultWiConfig, ot as getIconDefinition, ve as getPreferredMotion, Te as getPreferredTheme, it as iconNames, rt as iconRegistry, Xe as installWellInsight, at as isIconName, nt as isOverlayTeleported, ce as lightTokens, je as mergeComponentDefaults, tt as mergeLocale, Ve as mergeWiConfig, Np as message, Ie as normalizeSeverity, Be as provideWiConfig, Ke as resolveConfiguredAppendTo, Q as resolveOverlayTeleport, Fe as resolveSizeClass, we as themeNames, Vp as toast, He as useComponentDefaults, Ge as useConfiguredGapSize, Ue as useConfiguredSize, We as useConfiguredVariant, Ep as useContextMenu, pe as useDensity, Pp as useMessage, Dn as useModalOverlay, ye as useMotion, Se as useTheme, Hp as useToast, X as useWiConfig, Z as useWiLocale, Tp as wiComponentNames, wp as wiComponents, se as zhCN };