@well-insight/ui 0.1.10 → 0.1.12

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 (323) hide show
  1. package/CHANGELOG.md +56 -0
  2. package/dist/{Button-B6-YxpOQ.js → Button-tnrMSwNg.js} +3 -7
  3. package/dist/{Checkbox-BvlOYFGs.js → Checkbox-CoovLjt_.js} +1 -1
  4. package/dist/{Icon-B6gOD07E.js → Icon-DHGs8l-M.js} +27 -1
  5. package/dist/Pagination-UvgyUKB1.js +155 -0
  6. package/dist/{ProgressSpinner-YThgaSzb.js → ProgressSpinner-BTijCc7l.js} +1 -1
  7. package/dist/_plugin-vue_export-helper-B3ysoDQm.js +8 -0
  8. package/dist/accordion/style.css +4 -5
  9. package/dist/auto-complete/index.js +106 -99
  10. package/dist/auto-complete/style.css +4 -5
  11. package/dist/avatar/index.js +1 -1
  12. package/dist/avatar/style.css +4 -5
  13. package/dist/badge/style.css +4 -5
  14. package/dist/block-ui/style.css +4 -5
  15. package/dist/breadcrumb/index.js +1 -1
  16. package/dist/breadcrumb/style.css +4 -5
  17. package/dist/button/index.js +1 -1
  18. package/dist/button/style.css +4 -5
  19. package/dist/card/style.css +4 -5
  20. package/dist/carousel/index.js +61 -54
  21. package/dist/carousel/style.css +43 -5
  22. package/dist/carousel/style.js +1 -0
  23. package/dist/cascade-select/index.js +143 -76
  24. package/dist/cascade-select/style.css +76 -10
  25. package/dist/cascade-select/style.js +1 -0
  26. package/dist/checkbox/index.js +1 -1
  27. package/dist/checkbox/style.css +4 -5
  28. package/dist/chip/index.js +32 -29
  29. package/dist/chip/style.css +4 -5
  30. package/dist/command-menu/index.js +2 -2
  31. package/dist/command-menu/style.css +4 -5
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
  33. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  34. package/dist/components/AutoComplete/types.d.ts +1 -0
  35. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  36. package/dist/components/Button/Button.vue.d.ts +0 -1
  37. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  38. package/dist/components/Button/types.d.ts +0 -2
  39. package/dist/components/Button/types.d.ts.map +1 -1
  40. package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
  41. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  42. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
  43. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  44. package/dist/components/CascadeSelect/styles.css +33 -5
  45. package/dist/components/CascadeSelect/types.d.ts +11 -0
  46. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  47. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  48. package/dist/components/ConfigProvider/ConfigProvider.vue.d.ts.map +1 -1
  49. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  50. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  51. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  52. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  53. package/dist/components/DatePicker/styles.css +33 -8
  54. package/dist/components/DatePicker/types.d.ts +1 -0
  55. package/dist/components/DatePicker/types.d.ts.map +1 -1
  56. package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
  57. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  58. package/dist/components/Divider/types.d.ts +0 -5
  59. package/dist/components/Divider/types.d.ts.map +1 -1
  60. package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
  61. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  62. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  63. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  64. package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
  65. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  66. package/dist/components/FileUpload/styles.css +2 -2
  67. package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
  68. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  69. package/dist/components/Icon/icons.d.ts +32 -0
  70. package/dist/components/Icon/icons.d.ts.map +1 -1
  71. package/dist/components/Input/Input.vue.d.ts +0 -1
  72. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  73. package/dist/components/Input/styles.css +3 -5
  74. package/dist/components/Input/types.d.ts +1 -3
  75. package/dist/components/Input/types.d.ts.map +1 -1
  76. package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
  77. package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
  78. package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
  79. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  80. package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
  81. package/dist/components/Layout/Layout.vue.d.ts +1 -4
  82. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  83. package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
  84. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  85. package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
  86. package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
  87. package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
  88. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  89. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
  90. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
  91. package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
  92. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
  93. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
  94. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
  95. package/dist/components/Layout/styles.css +21 -49
  96. package/dist/components/Layout/types.d.ts +0 -22
  97. package/dist/components/Layout/types.d.ts.map +1 -1
  98. package/dist/components/Layout/utils.d.ts +3 -0
  99. package/dist/components/Layout/utils.d.ts.map +1 -0
  100. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  101. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  102. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  103. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  104. package/dist/components/Panel/Panel.vue.d.ts +3 -3
  105. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  106. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  107. package/dist/components/Popover/styles.css +41 -0
  108. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  109. package/dist/components/Rating/styles.css +28 -23
  110. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  111. package/dist/components/Select/Select.vue.d.ts +1 -1
  112. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  113. package/dist/components/Select/styles.css +8 -108
  114. package/dist/components/Select/types.d.ts +3 -3
  115. package/dist/components/Select/types.d.ts.map +1 -1
  116. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  117. package/dist/components/Slider/types.d.ts +2 -0
  118. package/dist/components/Slider/types.d.ts.map +1 -1
  119. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  120. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  121. package/dist/components/Table/Table.vue.d.ts +9 -9
  122. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  123. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  124. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  125. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  126. package/dist/components/Terminal/styles.css +8 -8
  127. package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
  128. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  129. package/dist/components/Textarea/styles.css +1 -2
  130. package/dist/components/Textarea/types.d.ts +1 -5
  131. package/dist/components/Textarea/types.d.ts.map +1 -1
  132. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  133. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  134. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  135. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  136. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  137. package/dist/components/TreeSelect/styles.css +21 -12
  138. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  139. package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
  140. package/dist/config-provider/index.js +27 -26
  141. package/dist/config-provider/style.css +7 -10
  142. package/dist/confirm-dialog/index.js +4 -4
  143. package/dist/confirm-dialog/style.css +4 -5
  144. package/dist/confirm-popup/index.js +62 -77
  145. package/dist/confirm-popup/style.css +4 -5
  146. package/dist/context-menu/index.js +69 -61
  147. package/dist/context-menu/style.css +4 -5
  148. package/dist/data-view/index.js +1 -1
  149. package/dist/data-view/style.css +4 -5
  150. package/dist/date-picker/index.js +144 -137
  151. package/dist/date-picker/style.css +76 -13
  152. package/dist/date-picker/style.js +1 -0
  153. package/dist/dialog/index.js +76 -70
  154. package/dist/dialog/style.css +4 -5
  155. package/dist/divider/index.js +1 -2
  156. package/dist/divider/style.css +4 -5
  157. package/dist/dock/style.css +4 -5
  158. package/dist/drawer/index.js +49 -45
  159. package/dist/drawer/style.css +43 -5
  160. package/dist/drawer/style.js +1 -0
  161. package/dist/dropdown/index.js +98 -97
  162. package/dist/dropdown/style.css +4 -5
  163. package/dist/fieldset/index.js +16 -12
  164. package/dist/fieldset/style.css +43 -5
  165. package/dist/fieldset/style.js +1 -0
  166. package/dist/file-upload/index.js +2 -2
  167. package/dist/file-upload/style.css +6 -7
  168. package/dist/flex/index.js +1 -1
  169. package/dist/flex/style.css +4 -5
  170. package/dist/float-label/index.js +15 -4
  171. package/dist/float-label/style.css +4 -5
  172. package/dist/fluid/style.css +4 -5
  173. package/dist/form/index.js +1 -1
  174. package/dist/form/style.css +4 -5
  175. package/dist/gallery/index.js +41 -34
  176. package/dist/gallery/style.css +43 -5
  177. package/dist/gallery/style.js +1 -0
  178. package/dist/grid/style.css +4 -5
  179. package/dist/icon/index.js +1 -1
  180. package/dist/icon/style.css +4 -5
  181. package/dist/icon-Cg5TeFqe.js +7 -0
  182. package/dist/icon-field/style.css +4 -5
  183. package/dist/index.js +2790 -2650
  184. package/dist/inplace/style.css +4 -5
  185. package/dist/input/index.js +65 -66
  186. package/dist/input/style.css +46 -10
  187. package/dist/input/style.js +1 -0
  188. package/dist/input-color/index.js +1 -1
  189. package/dist/input-color/style.css +4 -5
  190. package/dist/input-group/style.css +4 -5
  191. package/dist/input-number/index.js +82 -66
  192. package/dist/input-number/style.css +43 -5
  193. package/dist/input-number/style.js +1 -0
  194. package/dist/input-otp/index.js +3 -3
  195. package/dist/input-otp/style.css +4 -5
  196. package/dist/input-password/index.js +46 -43
  197. package/dist/input-password/style.css +4 -5
  198. package/dist/input-tags/index.js +50 -46
  199. package/dist/input-tags/style.css +43 -5
  200. package/dist/input-tags/style.js +1 -0
  201. package/dist/key-CaQYVkjh.js +6 -0
  202. package/dist/knob/style.css +4 -5
  203. package/dist/label/style.css +4 -5
  204. package/dist/layout/index.js +196 -271
  205. package/dist/layout/style.css +50 -140
  206. package/dist/layout/style.js +1 -1
  207. package/dist/listbox/index.js +1 -1
  208. package/dist/listbox/style.css +4 -5
  209. package/dist/locale/en-US.d.ts.map +1 -1
  210. package/dist/locale/types.d.ts +1 -0
  211. package/dist/locale/types.d.ts.map +1 -1
  212. package/dist/locale/zh-CN.d.ts.map +1 -1
  213. package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
  214. package/dist/mega-menu/index.js +47 -49
  215. package/dist/mega-menu/style.css +4 -5
  216. package/dist/menu/index.js +81 -76
  217. package/dist/menu/style.css +4 -5
  218. package/dist/menubar/index.js +75 -73
  219. package/dist/menubar/style.css +4 -5
  220. package/dist/message/index.js +3 -3
  221. package/dist/message/style.css +4 -5
  222. package/dist/meter-group/style.css +4 -5
  223. package/dist/order-list/index.js +2 -2
  224. package/dist/order-list/style.css +4 -5
  225. package/dist/overlayPlacement-CN1tuC95.js +51 -0
  226. package/dist/pagination/index.js +1 -1
  227. package/dist/pagination/style.css +43 -5
  228. package/dist/pagination/style.js +1 -0
  229. package/dist/panel/index.js +27 -23
  230. package/dist/panel/style.css +43 -5
  231. package/dist/panel/style.js +1 -0
  232. package/dist/pick-list/index.js +2 -2
  233. package/dist/pick-list/style.css +4 -5
  234. package/dist/popover/index.js +79 -100
  235. package/dist/popover/style.css +45 -5
  236. package/dist/progress-bar/style.css +4 -5
  237. package/dist/progress-spinner/index.js +1 -1
  238. package/dist/progress-spinner/style.css +4 -5
  239. package/dist/radio/index.js +1 -1
  240. package/dist/radio/style.css +4 -5
  241. package/dist/rating/index.js +54 -44
  242. package/dist/rating/style.css +71 -28
  243. package/dist/rating/style.js +1 -0
  244. package/dist/scroll-top/index.js +45 -41
  245. package/dist/scroll-top/style.css +43 -5
  246. package/dist/scroll-top/style.js +1 -0
  247. package/dist/scrollbar/index.js +382 -2
  248. package/dist/scrollbar/style.css +4 -5
  249. package/dist/select/index.js +149 -141
  250. package/dist/select/style.css +51 -113
  251. package/dist/select/style.js +1 -0
  252. package/dist/select-button/index.js +1 -1
  253. package/dist/select-button/style.css +4 -5
  254. package/dist/shared/componentDefaults.d.ts +5 -1
  255. package/dist/shared/componentDefaults.d.ts.map +1 -1
  256. package/dist/shared/menu/icon.d.ts +4 -0
  257. package/dist/shared/menu/icon.d.ts.map +1 -0
  258. package/dist/shared/menu/index.d.ts +4 -0
  259. package/dist/shared/menu/index.d.ts.map +1 -0
  260. package/dist/shared/menu/key.d.ts +4 -0
  261. package/dist/shared/menu/key.d.ts.map +1 -0
  262. package/dist/shared/menu/types.d.ts +11 -0
  263. package/dist/shared/menu/types.d.ts.map +1 -0
  264. package/dist/shared/overlayPlacement.d.ts +12 -0
  265. package/dist/shared/overlayPlacement.d.ts.map +1 -0
  266. package/dist/sidebar/index.js +1 -1
  267. package/dist/sidebar/style.css +4 -5
  268. package/dist/skeleton/style.css +4 -5
  269. package/dist/slider/index.js +6 -3
  270. package/dist/slider/style.css +4 -5
  271. package/dist/space/index.js +1 -1
  272. package/dist/space/style.css +4 -5
  273. package/dist/speed-dial/index.js +55 -66
  274. package/dist/speed-dial/style.css +43 -5
  275. package/dist/speed-dial/style.js +1 -0
  276. package/dist/split-button/index.js +66 -63
  277. package/dist/split-button/style.css +43 -5
  278. package/dist/split-button/style.js +1 -0
  279. package/dist/splitter/index.js +1 -1
  280. package/dist/splitter/style.css +4 -5
  281. package/dist/stepper/style.css +4 -5
  282. package/dist/styles/base.css +4 -5
  283. package/dist/styles.css +1 -1
  284. package/dist/switch/index.js +1 -1
  285. package/dist/switch/style.css +4 -5
  286. package/dist/table/index.js +41 -35
  287. package/dist/table/style.css +4 -5
  288. package/dist/tabs/index.js +78 -65
  289. package/dist/tabs/style.css +43 -5
  290. package/dist/tabs/style.js +1 -0
  291. package/dist/tag/index.js +31 -28
  292. package/dist/tag/style.css +4 -5
  293. package/dist/terminal/index.js +1 -1
  294. package/dist/terminal/style.css +12 -13
  295. package/dist/textarea/index.js +69 -75
  296. package/dist/textarea/style.css +44 -7
  297. package/dist/textarea/style.js +1 -0
  298. package/dist/tiered-menu/index.js +66 -59
  299. package/dist/tiered-menu/style.css +43 -5
  300. package/dist/tiered-menu/style.js +1 -0
  301. package/dist/timeline/index.js +1 -1
  302. package/dist/timeline/style.css +4 -5
  303. package/dist/toast/index.js +93 -89
  304. package/dist/toast/style.css +43 -5
  305. package/dist/toast/style.js +1 -0
  306. package/dist/toggle-button/index.js +1 -1
  307. package/dist/toggle-button/style.css +4 -5
  308. package/dist/toolbar/index.js +10 -13
  309. package/dist/toolbar/style.css +4 -5
  310. package/dist/tooltip/index.js +47 -71
  311. package/dist/tooltip/style.css +4 -5
  312. package/dist/tree/index.js +3 -3
  313. package/dist/tree/style.css +4 -5
  314. package/dist/tree-select/index.js +164 -155
  315. package/dist/tree-select/style.css +64 -17
  316. package/dist/tree-select/style.js +1 -0
  317. package/dist/tree-table/index.js +34 -30
  318. package/dist/tree-table/style.css +43 -5
  319. package/dist/tree-table/style.js +1 -0
  320. package/dist/virtual-scroller/style.css +4 -5
  321. package/package.json +4 -1
  322. package/dist/Pagination-BU-1IY0E.js +0 -148
  323. package/dist/Scrollbar-D-bR2noX.js +0 -382
@@ -0,0 +1,51 @@
1
+ //#region src/shared/overlayPlacement.ts
2
+ function e(e) {
3
+ if (e != null) return typeof e == "number" ? `${e}px` : e;
4
+ }
5
+ function t(e, t, n = {}) {
6
+ let r = n.gap ?? 8, i = e.left + e.width / 2, a = e.top + e.height / 2, o = {};
7
+ switch (n.minWidth && (o.minWidth = n.minWidth), n.maxWidth && (o.maxWidth = n.maxWidth), n.width && (o.width = n.width), n.zIndex != null && (o.zIndex = String(n.zIndex)), t) {
8
+ case "top": return {
9
+ left: `${i}px`,
10
+ top: `${e.top - r}px`,
11
+ transform: "translate(-50%, -100%)",
12
+ ...o
13
+ };
14
+ case "bottom": return {
15
+ left: `${i}px`,
16
+ top: `${e.bottom + r}px`,
17
+ transform: "translateX(-50%)",
18
+ ...o
19
+ };
20
+ case "left": return {
21
+ left: `${e.left - r}px`,
22
+ top: `${a}px`,
23
+ transform: "translate(-100%, -50%)",
24
+ ...o
25
+ };
26
+ case "right": return {
27
+ left: `${e.right + r}px`,
28
+ top: `${a}px`,
29
+ transform: "translateY(-50%)",
30
+ ...o
31
+ };
32
+ case "bottom-end": return {
33
+ left: `${e.right}px`,
34
+ top: `${e.bottom + r}px`,
35
+ transform: "translateX(-100%)",
36
+ ...o
37
+ };
38
+ case "bottom-start": return {
39
+ left: `${e.left}px`,
40
+ top: `${e.bottom + r}px`,
41
+ ...o
42
+ };
43
+ default: return {
44
+ left: `${e.left}px`,
45
+ top: `${e.bottom + r}px`,
46
+ ...o
47
+ };
48
+ }
49
+ }
50
+ //#endregion
51
+ export { e as n, t };
@@ -1,3 +1,3 @@
1
- import { t as e } from "../Pagination-BU-1IY0E.js";
1
+ import { t as e } from "../Pagination-UvgyUKB1.js";
2
2
  import "./style.js";
3
3
  export { e as WiPagination };
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -750,6 +749,45 @@
750
749
  line-height: 1;
751
750
  }
752
751
 
752
+ .wi-icon {
753
+ display: inline-flex;
754
+ height: 1rem;
755
+ width: 1rem;
756
+ }
757
+
758
+ .wi-icon svg {
759
+ height: 100%;
760
+ width: 100%;
761
+ }
762
+
763
+ .wi-icon--sm,
764
+ .wi-icon--small {
765
+ height: 0.875rem;
766
+ width: 0.875rem;
767
+ }
768
+
769
+ .wi-icon--md,
770
+ .wi-icon--normal {
771
+ height: 1rem;
772
+ width: 1rem;
773
+ }
774
+
775
+ .wi-icon--lg,
776
+ .wi-icon--large {
777
+ height: 1.25rem;
778
+ width: 1.25rem;
779
+ }
780
+
781
+ .wi-icon--spin svg {
782
+ animation: wi-icon-spin 0.8s linear infinite;
783
+ }
784
+
785
+ @keyframes wi-icon-spin {
786
+ to {
787
+ transform: rotate(360deg);
788
+ }
789
+ }
790
+
753
791
  .wi-pagination {
754
792
  --wi-pagination-simple-width: 3.5rem;
755
793
  --wi-pagination-jumper-width: 3.5rem;
@@ -1,3 +1,4 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
+ import '../components/Icon/styles.css'
3
4
  import '../components/Pagination/styles.css'
@@ -1,15 +1,16 @@
1
1
  import { n as e } from "../types-tV3SEv3Q.js";
2
- import { n as t } from "../locale-CYkJyRd1.js";
2
+ import { t } from "../Icon-DHGs8l-M.js";
3
+ import { n } from "../locale-DxAvgqgB.js";
3
4
  import "./style.js";
4
- import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d, unref as f, vShow as p, withDirectives as m } from "vue";
5
+ import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createTextVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderSlot as f, toDisplayString as p, unref as m, vShow as h, withDirectives as g } from "vue";
5
6
  //#region src/components/Panel/Panel.vue?vue&type=script&setup=true&lang.ts
6
- var h = {
7
+ var _ = {
7
8
  key: 0,
8
9
  class: "wi-panel__header"
9
- }, g = { class: "wi-panel__title" }, _ = ["aria-expanded", "aria-label"], v = { "aria-hidden": "true" }, y = { class: "wi-panel__content" }, b = {
10
+ }, v = { class: "wi-panel__title" }, y = ["aria-expanded", "aria-label"], b = { class: "wi-panel__content" }, x = {
10
11
  key: 1,
11
12
  class: "wi-panel__footer"
12
- }, x = /* @__PURE__ */ s({
13
+ }, S = /* @__PURE__ */ l({
13
14
  __name: "Panel",
14
15
  props: {
15
16
  header: {},
@@ -22,30 +23,33 @@ var h = {
22
23
  size: {}
23
24
  },
24
25
  emits: ["update:collapsed", "update:modelValue"],
25
- setup(s, { emit: x }) {
26
- let S = s, C = x, w = t(), T = n(() => e(S.size)), E = n(() => S.modelValue ?? S.collapsed ?? !1), D = n(() => ["wi-panel", {
27
- "wi-panel--collapsed": E.value,
28
- "wi-panel--small": T.value === "small",
29
- "wi-panel--large": T.value === "large"
26
+ setup(l, { emit: S }) {
27
+ let C = l, w = S, T = n(), E = r(() => e(C.size)), D = r(() => C.modelValue ?? C.collapsed ?? !1), O = r(() => ["wi-panel", {
28
+ "wi-panel--collapsed": D.value,
29
+ "wi-panel--small": E.value === "small",
30
+ "wi-panel--large": E.value === "large"
30
31
  }]);
31
- function O() {
32
- if (!S.toggleable) return;
33
- let e = !E.value;
34
- C("update:collapsed", e), C("update:modelValue", e);
32
+ function k() {
33
+ if (!C.toggleable) return;
34
+ let e = !D.value;
35
+ w("update:collapsed", e), w("update:modelValue", e);
35
36
  }
36
- return (e, t) => (l(), i("section", { class: c(D.value) }, [
37
- e.$slots.header || s.header || s.toggleable ? (l(), i("header", h, [a("div", g, [u(e.$slots, "header", {}, () => [o(d(s.header), 1)])]), s.toggleable ? (l(), i("button", {
37
+ return (e, n) => (d(), a("section", { class: u(O.value) }, [
38
+ e.$slots.header || l.header || l.toggleable ? (d(), a("header", _, [o("div", v, [f(e.$slots, "header", {}, () => [s(p(l.header), 1)])]), l.toggleable ? (d(), a("button", {
38
39
  key: 0,
39
40
  type: "button",
40
41
  class: "wi-panel__toggler",
41
- "aria-expanded": !E.value,
42
- "aria-label": E.value ? f(w).expand : f(w).collapse,
43
- onClick: O
44
- }, [a("span", v, d(E.value ? "▸" : "▾"), 1)], 8, _)) : r("", !0)])) : r("", !0),
45
- m(a("div", y, [u(e.$slots, "default")], 512), [[p, !E.value]]),
46
- e.$slots.footer && !E.value ? (l(), i("footer", b, [u(e.$slots, "footer")])) : r("", !0)
42
+ "aria-expanded": !D.value,
43
+ "aria-label": D.value ? m(T).expand : m(T).collapse,
44
+ onClick: k
45
+ }, [c(t, {
46
+ name: D.value ? "chevron-right" : "chevron-down",
47
+ size: "sm"
48
+ }, null, 8, ["name"])], 8, y)) : i("", !0)])) : i("", !0),
49
+ g(o("div", b, [f(e.$slots, "default")], 512), [[h, !D.value]]),
50
+ e.$slots.footer && !D.value ? (d(), a("footer", x, [f(e.$slots, "footer")])) : i("", !0)
47
51
  ], 2));
48
52
  }
49
53
  });
50
54
  //#endregion
51
- export { x as WiPanel };
55
+ export { S as WiPanel };
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -750,6 +749,45 @@
750
749
  line-height: 1;
751
750
  }
752
751
 
752
+ .wi-icon {
753
+ display: inline-flex;
754
+ height: 1rem;
755
+ width: 1rem;
756
+ }
757
+
758
+ .wi-icon svg {
759
+ height: 100%;
760
+ width: 100%;
761
+ }
762
+
763
+ .wi-icon--sm,
764
+ .wi-icon--small {
765
+ height: 0.875rem;
766
+ width: 0.875rem;
767
+ }
768
+
769
+ .wi-icon--md,
770
+ .wi-icon--normal {
771
+ height: 1rem;
772
+ width: 1rem;
773
+ }
774
+
775
+ .wi-icon--lg,
776
+ .wi-icon--large {
777
+ height: 1.25rem;
778
+ width: 1.25rem;
779
+ }
780
+
781
+ .wi-icon--spin svg {
782
+ animation: wi-icon-spin 0.8s linear infinite;
783
+ }
784
+
785
+ @keyframes wi-icon-spin {
786
+ to {
787
+ transform: rotate(360deg);
788
+ }
789
+ }
790
+
753
791
  /* —— Panel: Panel —— */
754
792
  .wi-panel {
755
793
  background: var(--wi-color-surface);
@@ -1,3 +1,4 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
+ import '../components/Icon/styles.css'
3
4
  import '../components/Panel/styles.css'
@@ -1,5 +1,5 @@
1
- import { t as e } from "../Icon-B6gOD07E.js";
2
- import { n as t } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { n as t } from "../locale-DxAvgqgB.js";
3
3
  import "./style.js";
4
4
  import { Fragment as n, computed as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderList as f, renderSlot as p, toDisplayString as m, unref as h, withKeys as g, withModifiers as _ } from "vue";
5
5
  //#region src/components/PickList/PickList.vue?vue&type=script&setup=true&lang.ts
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -1,10 +1,10 @@
1
1
  import { n as e, t } from "../overlay-oR-5MDuE.js";
2
- import { c as n } from "../config-DWwce9jA.js";
2
+ import { t as n } from "../overlayPlacement-CN1tuC95.js";
3
+ import { c as r } from "../config-CTLkobga.js";
3
4
  import "./style.js";
4
- import { Teleport as r, Transition as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, openBlock as g, ref as _, renderSlot as v, watch as y, withCtx as b } from "vue";
5
- //#endregion
6
- //#region src/components/Popover/Popover.vue
7
- var x = /* @__PURE__ */ d({
5
+ import { Teleport as i, Transition as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, unref as b, useId as x, watch as S, withCtx as C } from "vue";
6
+ //#region src/components/Popover/Popover.vue?vue&type=script&setup=true&lang.ts
7
+ var w = ["aria-expanded", "aria-controls"], T = ["id"], E = /* @__PURE__ */ f({
8
8
  __name: "Popover",
9
9
  props: {
10
10
  modelValue: {
@@ -26,140 +26,119 @@ var x = /* @__PURE__ */ d({
26
26
  "show",
27
27
  "hide"
28
28
  ],
29
- setup(d, { emit: x }) {
30
- let S = d, C = x, w = n(), T = _(null), E = _(null), D = _(null), O = _({}), k = a(() => e(S, w.value.appendTo)), A = a(() => t(S, w.value.appendTo)), j, M;
31
- function N(e) {
32
- C("update:modelValue", e);
29
+ setup(f, { emit: E }) {
30
+ let D = f, O = E, k = r(), A = x(), j = v(null), M = v(null), N = v(null), P = v({}), F = o(() => e(D, k.value.appendTo)), I = o(() => t(D, k.value.appendTo)), L, R;
31
+ function z(e) {
32
+ O("update:modelValue", e);
33
33
  }
34
- function P() {
35
- N(!1);
34
+ function B() {
35
+ z(!1);
36
36
  }
37
- function F() {
38
- j && clearTimeout(j), M && clearTimeout(M), j = void 0, M = void 0;
37
+ function V() {
38
+ L && clearTimeout(L), R && clearTimeout(R), L = void 0, R = void 0;
39
39
  }
40
- function I() {
41
- S.trigger === "click" && N(!S.modelValue);
40
+ function H() {
41
+ D.trigger === "click" && z(!D.modelValue);
42
42
  }
43
- function L() {
44
- if (S.trigger === "hover") {
45
- if (F(), S.showDelay > 0) {
46
- j = setTimeout(N, S.showDelay, !0);
43
+ function U() {
44
+ if (D.trigger === "hover") {
45
+ if (V(), D.showDelay > 0) {
46
+ L = setTimeout(z, D.showDelay, !0);
47
47
  return;
48
48
  }
49
- N(!0);
49
+ z(!0);
50
50
  }
51
51
  }
52
- function R() {
53
- if (S.trigger === "hover") {
54
- if (F(), S.hideDelay > 0) {
55
- M = setTimeout(N, S.hideDelay, !1);
52
+ function W() {
53
+ if (D.trigger === "hover") {
54
+ if (V(), D.hideDelay > 0) {
55
+ R = setTimeout(z, D.hideDelay, !1);
56
56
  return;
57
57
  }
58
- N(!1);
58
+ z(!1);
59
59
  }
60
60
  }
61
- function z() {
62
- S.trigger === "hover" && F();
61
+ function G() {
62
+ D.trigger === "hover" && V();
63
63
  }
64
- function B() {
65
- if (S.trigger === "hover") {
66
- if (F(), S.hideDelay > 0) {
67
- M = setTimeout(N, S.hideDelay, !1);
64
+ function K() {
65
+ if (D.trigger === "hover") {
66
+ if (V(), D.hideDelay > 0) {
67
+ R = setTimeout(z, D.hideDelay, !1);
68
68
  return;
69
69
  }
70
- N(!1);
70
+ z(!1);
71
71
  }
72
72
  }
73
- function V() {
74
- if (S.trigger === "focus") {
75
- if (F(), S.showDelay > 0) {
76
- j = setTimeout(N, S.showDelay, !0);
73
+ function q() {
74
+ if (D.trigger === "focus") {
75
+ if (V(), D.showDelay > 0) {
76
+ L = setTimeout(z, D.showDelay, !0);
77
77
  return;
78
78
  }
79
- N(!0);
79
+ z(!0);
80
80
  }
81
81
  }
82
- function H() {
83
- if (S.trigger === "focus") {
84
- if (F(), S.hideDelay > 0) {
85
- M = setTimeout(N, S.hideDelay, !1);
82
+ function J() {
83
+ if (D.trigger === "focus") {
84
+ if (V(), D.hideDelay > 0) {
85
+ R = setTimeout(z, D.hideDelay, !1);
86
86
  return;
87
87
  }
88
- N(!1);
88
+ z(!1);
89
89
  }
90
90
  }
91
- function U() {
92
- if (!A.value || !E.value) return;
93
- let e = E.value.getBoundingClientRect(), t = e.left + e.width / 2, n = e.top + e.height / 2;
94
- S.placement === "top" ? O.value = {
95
- left: `${t}px`,
96
- top: `${e.top - 8}px`,
97
- transform: "translate(-50%, -100%)"
98
- } : S.placement === "bottom" ? O.value = {
99
- left: `${t}px`,
100
- top: `${e.bottom + 8}px`,
101
- transform: "translateX(-50%)"
102
- } : S.placement === "left" ? O.value = {
103
- left: `${e.left - 8}px`,
104
- top: `${n}px`,
105
- transform: "translate(-100%, -50%)"
106
- } : S.placement === "right" ? O.value = {
107
- left: `${e.right + 8}px`,
108
- top: `${n}px`,
109
- transform: "translateY(-50%)"
110
- } : S.placement === "bottom-end" ? O.value = {
111
- left: `${e.right}px`,
112
- top: `${e.bottom + 8}px`,
113
- transform: "translateX(-100%)"
114
- } : O.value = {
115
- left: `${e.left}px`,
116
- top: `${e.bottom + 8}px`
117
- };
91
+ function Y() {
92
+ !I.value || !M.value || (P.value = n(M.value.getBoundingClientRect(), D.placement));
118
93
  }
119
- function W(e) {
94
+ function X(e) {
120
95
  let t = e.target;
121
- T.value?.contains(t) || D.value?.contains(t) || P();
96
+ j.value?.contains(t) || N.value?.contains(t) || B();
122
97
  }
123
- function G(e) {
124
- e.key === "Escape" && P();
98
+ function Z(e) {
99
+ e.key === "Escape" && B();
125
100
  }
126
- function K() {
127
- S.modelValue && U();
101
+ function Q() {
102
+ D.modelValue && Y();
128
103
  }
129
- return y(() => S.modelValue, async (e, t) => {
130
- e ? (document.addEventListener("click", W), document.addEventListener("keydown", G), A.value && (window.addEventListener("resize", K), window.addEventListener("scroll", K, !0)), C("show"), await f(), U()) : (document.removeEventListener("click", W), document.removeEventListener("keydown", G), window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0), t && C("hide"));
131
- }, { immediate: !0 }), h(() => {
132
- F(), document.removeEventListener("click", W), document.removeEventListener("keydown", G), window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0);
133
- }), (e, t) => (g(), c("span", {
104
+ return S(() => D.modelValue, async (e, t) => {
105
+ e ? (document.addEventListener("click", X), document.addEventListener("keydown", Z), I.value && (window.addEventListener("resize", Q), window.addEventListener("scroll", Q, !0)), O("show"), await p(), Y()) : (document.removeEventListener("click", X), document.removeEventListener("keydown", Z), window.removeEventListener("resize", Q), window.removeEventListener("scroll", Q, !0), t && O("hide"));
106
+ }, { immediate: !0 }), g(() => {
107
+ V(), document.removeEventListener("click", X), document.removeEventListener("keydown", Z), window.removeEventListener("resize", Q), window.removeEventListener("scroll", Q, !0);
108
+ }), (e, t) => (_(), l("span", {
134
109
  ref_key: "root",
135
- ref: T,
110
+ ref: j,
136
111
  class: "wi-popover",
137
- onMouseenter: L,
138
- onMouseleave: R
139
- }, [l("span", {
112
+ onMouseenter: U,
113
+ onMouseleave: W
114
+ }, [u("span", {
140
115
  ref_key: "trigger",
141
- ref: E,
116
+ ref: M,
142
117
  class: "wi-popover__trigger",
143
- onClick: I,
144
- onFocusin: V,
145
- onFocusout: H
146
- }, [v(e.$slots, "default")], 544), (g(), o(r, {
147
- to: k.value.to,
148
- disabled: k.value.disabled
149
- }, [u(i, { name: "wi-fade" }, {
150
- default: b(() => [d.modelValue ? (g(), c("div", {
118
+ "aria-haspopup": "dialog",
119
+ "aria-expanded": f.modelValue,
120
+ "aria-controls": b(A),
121
+ onClick: H,
122
+ onFocusin: q,
123
+ onFocusout: J
124
+ }, [y(e.$slots, "default")], 40, w), (_(), s(i, {
125
+ to: F.value.to,
126
+ disabled: F.value.disabled
127
+ }, [d(a, { name: "wi-popover" }, {
128
+ default: C(() => [f.modelValue ? (_(), l("div", {
151
129
  key: 0,
152
130
  ref_key: "panel",
153
- ref: D,
154
- class: p(["wi-popover__content", [`wi-popover__content--${d.placement}`, { "wi-popover__content--teleported": A.value }]]),
155
- style: m(A.value ? O.value : void 0),
131
+ ref: N,
132
+ id: b(A),
133
+ class: m(["wi-popover__content", [`wi-popover__content--${f.placement}`, { "wi-popover__content--teleported": I.value }]]),
134
+ style: h(I.value ? P.value : void 0),
156
135
  role: "dialog",
157
- onMouseenter: z,
158
- onMouseleave: B
159
- }, [v(e.$slots, "content")], 38)) : s("", !0)]),
136
+ onMouseenter: G,
137
+ onMouseleave: K
138
+ }, [y(e.$slots, "content")], 46, T)) : c("", !0)]),
160
139
  _: 3
161
140
  })], 8, ["to", "disabled"]))], 544));
162
141
  }
163
142
  });
164
143
  //#endregion
165
- export { x as WiPopover };
144
+ export { E as WiPopover };
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -815,3 +814,44 @@
815
814
  transform: none;
816
815
  z-index: var(--wi-z-toast);
817
816
  }
817
+
818
+ .wi-popover-enter-active,
819
+ .wi-popover-leave-active {
820
+ transition:
821
+ opacity var(--wi-motion-normal) var(--wi-motion-ease),
822
+ transform var(--wi-motion-normal) var(--wi-motion-ease);
823
+ }
824
+
825
+ .wi-popover-enter-from,
826
+ .wi-popover-leave-to {
827
+ opacity: 0;
828
+ }
829
+
830
+ .wi-popover-enter-from:not(.wi-popover__content--teleported),
831
+ .wi-popover-leave-to:not(.wi-popover__content--teleported) {
832
+ transform: translateY(calc(var(--wi-motion-distance) * -1));
833
+ }
834
+
835
+ .wi-popover__content--top.wi-popover-enter-from,
836
+ .wi-popover__content--top.wi-popover-leave-to {
837
+ transform: translate(-50%, calc(-100% - var(--wi-motion-distance)));
838
+ }
839
+
840
+ .wi-popover__content--bottom.wi-popover-enter-from,
841
+ .wi-popover__content--bottom.wi-popover-leave-to,
842
+ .wi-popover__content--bottom-start.wi-popover-enter-from,
843
+ .wi-popover__content--bottom-start.wi-popover-leave-to,
844
+ .wi-popover__content--bottom-end.wi-popover-enter-from,
845
+ .wi-popover__content--bottom-end.wi-popover-leave-to {
846
+ transform: translateY(var(--wi-motion-distance));
847
+ }
848
+
849
+ .wi-popover__content--left.wi-popover-enter-from,
850
+ .wi-popover__content--left.wi-popover-leave-to {
851
+ transform: translate(calc(-100% - var(--wi-motion-distance)), -50%);
852
+ }
853
+
854
+ .wi-popover__content--right.wi-popover-enter-from,
855
+ .wi-popover__content--right.wi-popover-leave-to {
856
+ transform: translate(var(--wi-motion-distance), -50%);
857
+ }
@@ -480,8 +480,8 @@
480
480
  font-size: var(--wi-font-size-xs);
481
481
  }
482
482
 
483
- .wi-textarea-field__help--error,
484
- .wi-select-field__help--error {
483
+ .wi-textarea-field__help--invalid,
484
+ .wi-select-field__help--invalid {
485
485
  color: var(--wi-color-danger);
486
486
  }
487
487
 
@@ -500,9 +500,8 @@
500
500
  }
501
501
 
502
502
  .wi-textarea--invalid:focus-visible,
503
- .wi-textarea--error:focus-visible,
504
- .wi-select--error.wi-select--open,
505
- .wi-select--error:focus-visible {
503
+ .wi-select--invalid.wi-select--open,
504
+ .wi-select--invalid:focus-visible {
506
505
  border-color: var(--wi-color-danger);
507
506
  box-shadow: var(--wi-focus-shadow-danger);
508
507
  }
@@ -1,3 +1,3 @@
1
- import { t as e } from "../ProgressSpinner-YThgaSzb.js";
1
+ import { t as e } from "../ProgressSpinner-BTijCc7l.js";
2
2
  import "./style.js";
3
3
  export { e as WiProgressSpinner };