@well-insight/ui 0.1.10 → 0.1.11

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 (320) hide show
  1. package/CHANGELOG.md +50 -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/accordion/style.css +4 -5
  8. package/dist/auto-complete/index.js +106 -99
  9. package/dist/auto-complete/style.css +4 -5
  10. package/dist/avatar/index.js +1 -1
  11. package/dist/avatar/style.css +4 -5
  12. package/dist/badge/style.css +4 -5
  13. package/dist/block-ui/style.css +4 -5
  14. package/dist/breadcrumb/index.js +1 -1
  15. package/dist/breadcrumb/style.css +4 -5
  16. package/dist/button/index.js +1 -1
  17. package/dist/button/style.css +4 -5
  18. package/dist/card/style.css +4 -5
  19. package/dist/carousel/index.js +61 -54
  20. package/dist/carousel/style.css +43 -5
  21. package/dist/carousel/style.js +1 -0
  22. package/dist/cascade-select/index.js +143 -76
  23. package/dist/cascade-select/style.css +76 -10
  24. package/dist/cascade-select/style.js +1 -0
  25. package/dist/checkbox/index.js +1 -1
  26. package/dist/checkbox/style.css +4 -5
  27. package/dist/chip/index.js +32 -29
  28. package/dist/chip/style.css +4 -5
  29. package/dist/command-menu/index.js +2 -2
  30. package/dist/command-menu/style.css +4 -5
  31. package/dist/components/AutoComplete/AutoComplete.vue.d.ts +2 -0
  32. package/dist/components/AutoComplete/AutoComplete.vue.d.ts.map +1 -1
  33. package/dist/components/AutoComplete/types.d.ts +1 -0
  34. package/dist/components/AutoComplete/types.d.ts.map +1 -1
  35. package/dist/components/Button/Button.vue.d.ts +0 -1
  36. package/dist/components/Button/Button.vue.d.ts.map +1 -1
  37. package/dist/components/Button/types.d.ts +0 -2
  38. package/dist/components/Button/types.d.ts.map +1 -1
  39. package/dist/components/Carousel/Carousel.vue.d.ts +2 -2
  40. package/dist/components/Carousel/Carousel.vue.d.ts.map +1 -1
  41. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts +6 -0
  42. package/dist/components/CascadeSelect/CascadeSelect.vue.d.ts.map +1 -1
  43. package/dist/components/CascadeSelect/styles.css +33 -5
  44. package/dist/components/CascadeSelect/types.d.ts +11 -0
  45. package/dist/components/CascadeSelect/types.d.ts.map +1 -1
  46. package/dist/components/Chip/Chip.vue.d.ts.map +1 -1
  47. package/dist/components/ConfirmPopup/ConfirmPopup.vue.d.ts.map +1 -1
  48. package/dist/components/ContextMenu/ContextMenuNodes.vue.d.ts.map +1 -1
  49. package/dist/components/DatePicker/DatePicker.vue.d.ts +2 -0
  50. package/dist/components/DatePicker/DatePicker.vue.d.ts.map +1 -1
  51. package/dist/components/DatePicker/styles.css +33 -8
  52. package/dist/components/DatePicker/types.d.ts +1 -0
  53. package/dist/components/DatePicker/types.d.ts.map +1 -1
  54. package/dist/components/Dialog/Dialog.vue.d.ts +3 -3
  55. package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
  56. package/dist/components/Divider/types.d.ts +0 -5
  57. package/dist/components/Divider/types.d.ts.map +1 -1
  58. package/dist/components/Drawer/Drawer.vue.d.ts +2 -2
  59. package/dist/components/Drawer/Drawer.vue.d.ts.map +1 -1
  60. package/dist/components/Dropdown/DropdownNodes.vue.d.ts +2 -2
  61. package/dist/components/Dropdown/DropdownNodes.vue.d.ts.map +1 -1
  62. package/dist/components/Fieldset/Fieldset.vue.d.ts +4 -4
  63. package/dist/components/Fieldset/Fieldset.vue.d.ts.map +1 -1
  64. package/dist/components/FileUpload/styles.css +2 -2
  65. package/dist/components/FloatLabel/FloatLabel.vue.d.ts.map +1 -1
  66. package/dist/components/Gallery/Gallery.vue.d.ts.map +1 -1
  67. package/dist/components/Icon/icons.d.ts +32 -0
  68. package/dist/components/Icon/icons.d.ts.map +1 -1
  69. package/dist/components/Input/Input.vue.d.ts +0 -1
  70. package/dist/components/Input/Input.vue.d.ts.map +1 -1
  71. package/dist/components/Input/styles.css +3 -5
  72. package/dist/components/Input/types.d.ts +1 -3
  73. package/dist/components/Input/types.d.ts.map +1 -1
  74. package/dist/components/InputNumber/InputNumber.vue.d.ts.map +1 -1
  75. package/dist/components/InputOtp/InputOtp.vue.d.ts.map +1 -1
  76. package/dist/components/InputPassword/InputPassword.vue.d.ts +4 -4
  77. package/dist/components/InputPassword/InputPassword.vue.d.ts.map +1 -1
  78. package/dist/components/InputTags/InputTags.vue.d.ts.map +1 -1
  79. package/dist/components/Layout/Layout.vue.d.ts +1 -4
  80. package/dist/components/Layout/Layout.vue.d.ts.map +1 -1
  81. package/dist/components/Layout/LayoutContent.vue.d.ts +1 -4
  82. package/dist/components/Layout/LayoutContent.vue.d.ts.map +1 -1
  83. package/dist/components/Layout/LayoutFooter.vue.d.ts.map +1 -1
  84. package/dist/components/Layout/LayoutHeader.vue.d.ts.map +1 -1
  85. package/dist/components/Layout/LayoutSider.vue.d.ts +1 -4
  86. package/dist/components/Layout/LayoutSider.vue.d.ts.map +1 -1
  87. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts +9 -0
  88. package/dist/components/Layout/composables/useLayoutRegionStyle.d.ts.map +1 -0
  89. package/dist/components/Layout/composables/useLayoutScroll.d.ts +6 -0
  90. package/dist/components/Layout/composables/useLayoutScroll.d.ts.map +1 -0
  91. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts +16 -0
  92. package/dist/components/Layout/composables/useLayoutSiderCollapse.d.ts.map +1 -0
  93. package/dist/components/Layout/styles.css +19 -49
  94. package/dist/components/Layout/types.d.ts +0 -22
  95. package/dist/components/Layout/types.d.ts.map +1 -1
  96. package/dist/components/Layout/utils.d.ts +3 -0
  97. package/dist/components/Layout/utils.d.ts.map +1 -0
  98. package/dist/components/MegaMenu/MegaMenu.vue.d.ts.map +1 -1
  99. package/dist/components/Menu/MenuNodes.vue.d.ts.map +1 -1
  100. package/dist/components/Menubar/Menubar.vue.d.ts.map +1 -1
  101. package/dist/components/Pagination/Pagination.vue.d.ts.map +1 -1
  102. package/dist/components/Panel/Panel.vue.d.ts +3 -3
  103. package/dist/components/Panel/Panel.vue.d.ts.map +1 -1
  104. package/dist/components/Popover/Popover.vue.d.ts.map +1 -1
  105. package/dist/components/Popover/styles.css +41 -0
  106. package/dist/components/Rating/Rating.vue.d.ts.map +1 -1
  107. package/dist/components/Rating/styles.css +28 -23
  108. package/dist/components/ScrollTop/ScrollTop.vue.d.ts.map +1 -1
  109. package/dist/components/Select/Select.vue.d.ts +1 -1
  110. package/dist/components/Select/Select.vue.d.ts.map +1 -1
  111. package/dist/components/Select/styles.css +8 -108
  112. package/dist/components/Select/types.d.ts +3 -3
  113. package/dist/components/Select/types.d.ts.map +1 -1
  114. package/dist/components/Slider/Slider.vue.d.ts.map +1 -1
  115. package/dist/components/Slider/types.d.ts +2 -0
  116. package/dist/components/Slider/types.d.ts.map +1 -1
  117. package/dist/components/SpeedDial/SpeedDial.vue.d.ts.map +1 -1
  118. package/dist/components/SplitButton/SplitButton.vue.d.ts.map +1 -1
  119. package/dist/components/Table/Table.vue.d.ts +9 -9
  120. package/dist/components/Table/Table.vue.d.ts.map +1 -1
  121. package/dist/components/Tabs/Tabs.vue.d.ts +3 -3
  122. package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
  123. package/dist/components/Tag/Tag.vue.d.ts.map +1 -1
  124. package/dist/components/Terminal/styles.css +8 -8
  125. package/dist/components/Textarea/Textarea.vue.d.ts +0 -2
  126. package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
  127. package/dist/components/Textarea/styles.css +1 -2
  128. package/dist/components/Textarea/types.d.ts +1 -5
  129. package/dist/components/Textarea/types.d.ts.map +1 -1
  130. package/dist/components/TieredMenu/TieredMenu.vue.d.ts.map +1 -1
  131. package/dist/components/Toast/Toast.vue.d.ts.map +1 -1
  132. package/dist/components/Tooltip/Tooltip.vue.d.ts.map +1 -1
  133. package/dist/components/TreeSelect/TreeSelect.vue.d.ts.map +1 -1
  134. package/dist/components/TreeSelect/TreeSelectNodeItem.vue.d.ts.map +1 -1
  135. package/dist/components/TreeSelect/styles.css +21 -12
  136. package/dist/components/TreeTable/TreeTableRow.vue.d.ts.map +1 -1
  137. package/dist/{config-DWwce9jA.js → config-CTLkobga.js} +1 -0
  138. package/dist/config-provider/index.js +1 -1
  139. package/dist/config-provider/style.css +7 -10
  140. package/dist/confirm-dialog/index.js +4 -4
  141. package/dist/confirm-dialog/style.css +4 -5
  142. package/dist/confirm-popup/index.js +62 -77
  143. package/dist/confirm-popup/style.css +4 -5
  144. package/dist/context-menu/index.js +69 -61
  145. package/dist/context-menu/style.css +4 -5
  146. package/dist/data-view/index.js +1 -1
  147. package/dist/data-view/style.css +4 -5
  148. package/dist/date-picker/index.js +144 -137
  149. package/dist/date-picker/style.css +76 -13
  150. package/dist/date-picker/style.js +1 -0
  151. package/dist/dialog/index.js +76 -70
  152. package/dist/dialog/style.css +4 -5
  153. package/dist/divider/index.js +1 -2
  154. package/dist/divider/style.css +4 -5
  155. package/dist/dock/style.css +4 -5
  156. package/dist/drawer/index.js +49 -45
  157. package/dist/drawer/style.css +43 -5
  158. package/dist/drawer/style.js +1 -0
  159. package/dist/dropdown/index.js +98 -97
  160. package/dist/dropdown/style.css +4 -5
  161. package/dist/fieldset/index.js +16 -12
  162. package/dist/fieldset/style.css +43 -5
  163. package/dist/fieldset/style.js +1 -0
  164. package/dist/file-upload/index.js +2 -2
  165. package/dist/file-upload/style.css +6 -7
  166. package/dist/flex/index.js +1 -1
  167. package/dist/flex/style.css +4 -5
  168. package/dist/float-label/index.js +15 -4
  169. package/dist/float-label/style.css +4 -5
  170. package/dist/fluid/style.css +4 -5
  171. package/dist/form/index.js +1 -1
  172. package/dist/form/style.css +4 -5
  173. package/dist/gallery/index.js +41 -34
  174. package/dist/gallery/style.css +43 -5
  175. package/dist/gallery/style.js +1 -0
  176. package/dist/grid/style.css +4 -5
  177. package/dist/icon/index.js +1 -1
  178. package/dist/icon/style.css +4 -5
  179. package/dist/icon-Cg5TeFqe.js +7 -0
  180. package/dist/icon-field/style.css +4 -5
  181. package/dist/index.js +2783 -2643
  182. package/dist/inplace/style.css +4 -5
  183. package/dist/input/index.js +65 -66
  184. package/dist/input/style.css +46 -10
  185. package/dist/input/style.js +1 -0
  186. package/dist/input-color/index.js +1 -1
  187. package/dist/input-color/style.css +4 -5
  188. package/dist/input-group/style.css +4 -5
  189. package/dist/input-number/index.js +82 -66
  190. package/dist/input-number/style.css +43 -5
  191. package/dist/input-number/style.js +1 -0
  192. package/dist/input-otp/index.js +3 -3
  193. package/dist/input-otp/style.css +4 -5
  194. package/dist/input-password/index.js +46 -43
  195. package/dist/input-password/style.css +4 -5
  196. package/dist/input-tags/index.js +50 -46
  197. package/dist/input-tags/style.css +43 -5
  198. package/dist/input-tags/style.js +1 -0
  199. package/dist/key-CaQYVkjh.js +6 -0
  200. package/dist/knob/style.css +4 -5
  201. package/dist/label/style.css +4 -5
  202. package/dist/layout/index.js +196 -271
  203. package/dist/layout/style.css +48 -140
  204. package/dist/layout/style.js +1 -1
  205. package/dist/listbox/index.js +1 -1
  206. package/dist/listbox/style.css +4 -5
  207. package/dist/locale/en-US.d.ts.map +1 -1
  208. package/dist/locale/types.d.ts +1 -0
  209. package/dist/locale/types.d.ts.map +1 -1
  210. package/dist/locale/zh-CN.d.ts.map +1 -1
  211. package/dist/{locale-CYkJyRd1.js → locale-DxAvgqgB.js} +1 -1
  212. package/dist/mega-menu/index.js +47 -49
  213. package/dist/mega-menu/style.css +4 -5
  214. package/dist/menu/index.js +81 -76
  215. package/dist/menu/style.css +4 -5
  216. package/dist/menubar/index.js +75 -73
  217. package/dist/menubar/style.css +4 -5
  218. package/dist/message/index.js +3 -3
  219. package/dist/message/style.css +4 -5
  220. package/dist/meter-group/style.css +4 -5
  221. package/dist/order-list/index.js +2 -2
  222. package/dist/order-list/style.css +4 -5
  223. package/dist/overlayPlacement-CN1tuC95.js +51 -0
  224. package/dist/pagination/index.js +1 -1
  225. package/dist/pagination/style.css +43 -5
  226. package/dist/pagination/style.js +1 -0
  227. package/dist/panel/index.js +27 -23
  228. package/dist/panel/style.css +43 -5
  229. package/dist/panel/style.js +1 -0
  230. package/dist/pick-list/index.js +2 -2
  231. package/dist/pick-list/style.css +4 -5
  232. package/dist/popover/index.js +79 -100
  233. package/dist/popover/style.css +45 -5
  234. package/dist/progress-bar/style.css +4 -5
  235. package/dist/progress-spinner/index.js +1 -1
  236. package/dist/progress-spinner/style.css +4 -5
  237. package/dist/radio/index.js +1 -1
  238. package/dist/radio/style.css +4 -5
  239. package/dist/rating/index.js +54 -44
  240. package/dist/rating/style.css +71 -28
  241. package/dist/rating/style.js +1 -0
  242. package/dist/scroll-top/index.js +45 -41
  243. package/dist/scroll-top/style.css +43 -5
  244. package/dist/scroll-top/style.js +1 -0
  245. package/dist/scrollbar/index.js +382 -2
  246. package/dist/scrollbar/style.css +4 -5
  247. package/dist/select/index.js +149 -141
  248. package/dist/select/style.css +51 -113
  249. package/dist/select/style.js +1 -0
  250. package/dist/select-button/index.js +1 -1
  251. package/dist/select-button/style.css +4 -5
  252. package/dist/shared/componentDefaults.d.ts +5 -1
  253. package/dist/shared/componentDefaults.d.ts.map +1 -1
  254. package/dist/shared/menu/icon.d.ts +4 -0
  255. package/dist/shared/menu/icon.d.ts.map +1 -0
  256. package/dist/shared/menu/index.d.ts +4 -0
  257. package/dist/shared/menu/index.d.ts.map +1 -0
  258. package/dist/shared/menu/key.d.ts +4 -0
  259. package/dist/shared/menu/key.d.ts.map +1 -0
  260. package/dist/shared/menu/types.d.ts +11 -0
  261. package/dist/shared/menu/types.d.ts.map +1 -0
  262. package/dist/shared/overlayPlacement.d.ts +12 -0
  263. package/dist/shared/overlayPlacement.d.ts.map +1 -0
  264. package/dist/sidebar/index.js +1 -1
  265. package/dist/sidebar/style.css +4 -5
  266. package/dist/skeleton/style.css +4 -5
  267. package/dist/slider/index.js +6 -3
  268. package/dist/slider/style.css +4 -5
  269. package/dist/space/index.js +1 -1
  270. package/dist/space/style.css +4 -5
  271. package/dist/speed-dial/index.js +55 -66
  272. package/dist/speed-dial/style.css +43 -5
  273. package/dist/speed-dial/style.js +1 -0
  274. package/dist/split-button/index.js +66 -63
  275. package/dist/split-button/style.css +43 -5
  276. package/dist/split-button/style.js +1 -0
  277. package/dist/splitter/index.js +1 -1
  278. package/dist/splitter/style.css +4 -5
  279. package/dist/stepper/style.css +4 -5
  280. package/dist/styles/base.css +4 -5
  281. package/dist/styles.css +1 -1
  282. package/dist/switch/index.js +1 -1
  283. package/dist/switch/style.css +4 -5
  284. package/dist/table/index.js +41 -35
  285. package/dist/table/style.css +4 -5
  286. package/dist/tabs/index.js +78 -65
  287. package/dist/tabs/style.css +43 -5
  288. package/dist/tabs/style.js +1 -0
  289. package/dist/tag/index.js +31 -28
  290. package/dist/tag/style.css +4 -5
  291. package/dist/terminal/index.js +1 -1
  292. package/dist/terminal/style.css +12 -13
  293. package/dist/textarea/index.js +69 -75
  294. package/dist/textarea/style.css +44 -7
  295. package/dist/textarea/style.js +1 -0
  296. package/dist/tiered-menu/index.js +66 -59
  297. package/dist/tiered-menu/style.css +43 -5
  298. package/dist/tiered-menu/style.js +1 -0
  299. package/dist/timeline/index.js +1 -1
  300. package/dist/timeline/style.css +4 -5
  301. package/dist/toast/index.js +93 -89
  302. package/dist/toast/style.css +43 -5
  303. package/dist/toast/style.js +1 -0
  304. package/dist/toggle-button/index.js +1 -1
  305. package/dist/toggle-button/style.css +4 -5
  306. package/dist/toolbar/style.css +4 -5
  307. package/dist/tooltip/index.js +47 -71
  308. package/dist/tooltip/style.css +4 -5
  309. package/dist/tree/index.js +3 -3
  310. package/dist/tree/style.css +4 -5
  311. package/dist/tree-select/index.js +164 -155
  312. package/dist/tree-select/style.css +64 -17
  313. package/dist/tree-select/style.js +1 -0
  314. package/dist/tree-table/index.js +34 -30
  315. package/dist/tree-table/style.css +43 -5
  316. package/dist/tree-table/style.js +1 -0
  317. package/dist/virtual-scroller/style.css +4 -5
  318. package/package.json +4 -1
  319. package/dist/Pagination-BU-1IY0E.js +0 -148
  320. package/dist/Scrollbar-D-bR2noX.js +0 -382
@@ -1,22 +1,24 @@
1
- import { n as e, t } from "../overlay-oR-5MDuE.js";
2
- import { c as n } from "../config-DWwce9jA.js";
3
- import { n as r } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { n as t, t as n } from "../overlay-oR-5MDuE.js";
3
+ import { t as r } from "../overlayPlacement-CN1tuC95.js";
4
+ import { c as i } from "../config-CTLkobga.js";
5
+ import { n as a } from "../locale-DxAvgqgB.js";
4
6
  import "./style.js";
5
- import { Fragment as i, Teleport as a, Transition as o, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, watch as w, withCtx as T } from "vue";
7
+ import { Fragment as o, Teleport as s, Transition as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onBeforeUnmount as y, openBlock as b, ref as x, renderList as S, renderSlot as C, toDisplayString as w, watch as T, withCtx as E } from "vue";
6
8
  //#region src/components/SpeedDial/SpeedDial.vue?vue&type=script&setup=true&lang.ts
7
- var E = [
9
+ var D = [
8
10
  "title",
9
11
  "aria-label",
10
12
  "disabled",
11
13
  "onClick"
12
- ], D = {
14
+ ], O = {
13
15
  key: 0,
14
16
  "aria-hidden": "true"
15
- }, O = { class: "wi-speeddial__action-label" }, k = [
17
+ }, k = { class: "wi-speeddial__action-label" }, A = [
16
18
  "aria-label",
17
19
  "aria-expanded",
18
20
  "disabled"
19
- ], A = /* @__PURE__ */ m({
21
+ ], j = /* @__PURE__ */ h({
20
22
  __name: "SpeedDial",
21
23
  props: {
22
24
  model: { default: () => [] },
@@ -37,88 +39,75 @@ var E = [
37
39
  appendTo: {}
38
40
  },
39
41
  emits: ["update:modelValue"],
40
- setup(m, { emit: A }) {
41
- let j = m, M = A, N = n(), P = r(), F = s(() => j.ariaLabel ?? P.value.speedDial), I = b(null), L = b(null), R = b(null), z = b({}), B = s(() => e(j, N.value.appendTo)), V = s(() => t(j, N.value.appendTo)), H = s(() => [
42
+ setup(h, { emit: j }) {
43
+ let M = h, N = j, P = i(), F = a(), I = l(() => M.ariaLabel ?? F.value.speedDial), L = x(null), R = x(null), z = x(null), B = x({}), V = l(() => t(M, P.value.appendTo)), H = l(() => n(M, P.value.appendTo)), U = l(() => [
42
44
  "wi-speeddial",
43
- `wi-speeddial--${j.direction}`,
45
+ `wi-speeddial--${M.direction}`,
44
46
  {
45
- "wi-speeddial--open": j.modelValue,
46
- "wi-speeddial--disabled": j.disabled
47
+ "wi-speeddial--open": M.modelValue,
48
+ "wi-speeddial--disabled": M.disabled
47
49
  }
48
50
  ]);
49
- function U() {
50
- if (!V.value || !L.value) return;
51
- let e = L.value.getBoundingClientRect();
52
- j.direction === "up" ? z.value = {
53
- left: `${e.left + e.width / 2}px`,
54
- top: `${e.top - 8}px`,
55
- transform: "translate(-50%, -100%)"
56
- } : j.direction === "down" ? z.value = {
57
- left: `${e.left + e.width / 2}px`,
58
- top: `${e.bottom + 8}px`,
59
- transform: "translateX(-50%)"
60
- } : j.direction === "left" ? z.value = {
61
- left: `${e.left - 8}px`,
62
- top: `${e.top + e.height / 2}px`,
63
- transform: "translate(-100%, -50%)"
64
- } : z.value = {
65
- left: `${e.right + 8}px`,
66
- top: `${e.top + e.height / 2}px`,
67
- transform: "translateY(-50%)"
68
- };
69
- }
70
51
  function W() {
71
- j.disabled || M("update:modelValue", !j.modelValue);
52
+ if (!H.value || !R.value) return;
53
+ let e = R.value.getBoundingClientRect(), t = M.direction === "up" ? "top" : M.direction === "down" ? "bottom" : M.direction === "left" ? "left" : "right";
54
+ B.value = r(e, t);
55
+ }
56
+ function G() {
57
+ M.disabled || N("update:modelValue", !M.modelValue);
72
58
  }
73
- function G(e) {
74
- j.disabled || e.disabled || (e.command?.(), M("update:modelValue", !1));
59
+ function K(e) {
60
+ M.disabled || e.disabled || (e.command?.(), N("update:modelValue", !1));
75
61
  }
76
- function K() {
77
- j.modelValue && U();
62
+ function q() {
63
+ M.modelValue && W();
78
64
  }
79
- return w(() => j.modelValue, (e) => {
80
- e ? (h(() => U()), V.value && (window.addEventListener("resize", K), window.addEventListener("scroll", K, !0))) : (window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0));
81
- }), v(() => {
82
- window.removeEventListener("resize", K), window.removeEventListener("scroll", K, !0);
83
- }), (e, t) => (y(), u("div", {
65
+ return T(() => M.modelValue, (e) => {
66
+ e ? (g(() => W()), H.value && (window.addEventListener("resize", q), window.addEventListener("scroll", q, !0))) : (window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0));
67
+ }), y(() => {
68
+ window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
69
+ }), (t, n) => (b(), f("div", {
84
70
  ref_key: "root",
85
- ref: I,
86
- class: g(H.value)
87
- }, [(y(), c(a, {
88
- to: B.value.to,
89
- disabled: B.value.disabled
90
- }, [p(o, { name: "wi-scale-fade" }, {
91
- default: T(() => [m.modelValue ? (y(), u("ul", {
71
+ ref: L,
72
+ class: _(U.value)
73
+ }, [(b(), u(s, {
74
+ to: V.value.to,
75
+ disabled: V.value.disabled
76
+ }, [m(c, { name: "wi-scale-fade" }, {
77
+ default: E(() => [h.modelValue ? (b(), f("ul", {
92
78
  key: 0,
93
79
  ref_key: "list",
94
- ref: R,
95
- class: g(["wi-speeddial__list", { "wi-speeddial__list--teleported": V.value }]),
96
- style: _(V.value ? z.value : void 0),
80
+ ref: z,
81
+ class: _(["wi-speeddial__list", { "wi-speeddial__list--teleported": H.value }]),
82
+ style: v(H.value ? B.value : void 0),
97
83
  role: "menu"
98
- }, [(y(!0), u(i, null, x(m.model, (e, t) => (y(), u("li", {
84
+ }, [(b(!0), f(o, null, S(h.model, (e, t) => (b(), f("li", {
99
85
  key: `${e.label}-${t}`,
100
86
  role: "none"
101
- }, [d("button", {
87
+ }, [p("button", {
102
88
  type: "button",
103
89
  class: "wi-speeddial__action",
104
90
  role: "menuitem",
105
91
  title: e.label,
106
92
  "aria-label": e.label,
107
93
  disabled: e.disabled,
108
- onClick: (t) => G(e)
109
- }, [e.icon ? (y(), u("span", D, C(e.icon), 1)) : l("", !0), d("span", O, C(e.label), 1)], 8, E)]))), 128))], 6)) : l("", !0)]),
94
+ onClick: (t) => K(e)
95
+ }, [e.icon ? (b(), f("span", O, w(e.icon), 1)) : d("", !0), p("span", k, w(e.label), 1)], 8, D)]))), 128))], 6)) : d("", !0)]),
110
96
  _: 1
111
- })], 8, ["to", "disabled"])), d("button", {
97
+ })], 8, ["to", "disabled"])), p("button", {
112
98
  ref_key: "button",
113
- ref: L,
99
+ ref: R,
114
100
  type: "button",
115
101
  class: "wi-speeddial__button",
116
- "aria-label": F.value,
117
- "aria-expanded": m.modelValue,
118
- disabled: m.disabled,
119
- onClick: W
120
- }, [S(e.$slots, "icon", {}, () => [t[0] ||= f(" + ", -1)])], 8, k)], 2));
102
+ "aria-label": I.value,
103
+ "aria-expanded": h.modelValue,
104
+ disabled: h.disabled,
105
+ onClick: G
106
+ }, [C(t.$slots, "icon", {}, () => [m(e, {
107
+ name: "plus",
108
+ size: "sm"
109
+ })])], 8, A)], 2));
121
110
  }
122
111
  });
123
112
  //#endregion
124
- export { A as WiSpeedDial };
113
+ export { j as WiSpeedDial };
@@ -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
  /* —— Primitive: SpeedDial —— */
754
792
  .wi-speeddial {
755
793
  display: inline-flex;
@@ -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/SpeedDial/styles.css'
@@ -1,18 +1,20 @@
1
- import { n as e, t } from "../overlay-oR-5MDuE.js";
2
- import { c as n, o as r } from "../config-DWwce9jA.js";
3
- import { n as i } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { n as t, t as n } from "../overlay-oR-5MDuE.js";
3
+ import { t as r } from "../overlayPlacement-CN1tuC95.js";
4
+ import { c as i, o as a } from "../config-CTLkobga.js";
5
+ import { n as o } from "../locale-DxAvgqgB.js";
4
6
  import "./style.js";
5
- import { Fragment as a, Teleport as o, Transition as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, watch as w, withCtx as T } from "vue";
7
+ import { Fragment as s, Teleport as c, Transition as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createVNode as h, defineComponent as g, nextTick as _, normalizeClass as v, normalizeStyle as y, onBeforeUnmount as b, openBlock as x, ref as S, renderList as C, toDisplayString as w, unref as T, watch as E, withCtx as D } from "vue";
6
8
  //#region src/components/SplitButton/SplitButton.vue?vue&type=script&setup=true&lang.ts
7
- var E = ["disabled"], D = {
9
+ var O = ["disabled"], k = {
8
10
  key: 0,
9
11
  class: "wi-splitbutton__icon",
10
12
  "aria-hidden": "true"
11
- }, O = { key: 1 }, k = [
13
+ }, A = { key: 1 }, j = [
12
14
  "aria-label",
13
15
  "aria-expanded",
14
16
  "disabled"
15
- ], A = ["disabled", "onClick"], j = /* @__PURE__ */ m({
17
+ ], M = ["disabled", "onClick"], N = /* @__PURE__ */ g({
16
18
  __name: "SplitButton",
17
19
  props: {
18
20
  label: {},
@@ -35,92 +37,93 @@ var E = ["disabled"], D = {
35
37
  appendTo: {}
36
38
  },
37
39
  emits: ["click", "command"],
38
- setup(m, { emit: j }) {
39
- let M = m, N = j, P = n(), F = i(), I = b(!1), L = b(null), R = b(null), z = b({}), B = r("SplitButton", () => M.size), V = c(() => e(M, P.value.appendTo)), H = c(() => t(M, P.value.appendTo)), U = c(() => [
40
+ setup(g, { emit: N }) {
41
+ let P = g, F = N, I = i(), L = o(), R = S(!1), z = S(null), B = S(null), V = S({}), H = a("SplitButton", () => P.size), U = u(() => t(P, I.value.appendTo)), W = u(() => n(P, I.value.appendTo)), G = u(() => [
40
42
  "wi-splitbutton",
41
- `wi-splitbutton--${B.value}`,
43
+ `wi-splitbutton--${H.value}`,
42
44
  {
43
- "wi-splitbutton--disabled": M.disabled,
44
- "wi-splitbutton--outlined": M.outlined,
45
- [`wi-splitbutton--${M.severity}`]: !!M.severity,
46
- "wi-splitbutton--open": I.value
45
+ "wi-splitbutton--disabled": P.disabled,
46
+ "wi-splitbutton--outlined": P.outlined,
47
+ [`wi-splitbutton--${P.severity}`]: !!P.severity,
48
+ "wi-splitbutton--open": R.value
47
49
  }
48
50
  ]);
49
- function W() {
50
- if (!H.value || !L.value) return;
51
- let e = L.value.getBoundingClientRect();
52
- z.value = {
53
- left: "auto",
54
- minWidth: `${e.width}px`,
55
- right: `${document.documentElement.clientWidth - e.right}px`,
56
- top: `${e.bottom + 4}px`
57
- };
58
- }
59
- function G() {
60
- I.value && W();
61
- }
62
- function K(e) {
63
- M.disabled || N("click", e);
51
+ function K() {
52
+ if (!W.value || !z.value) return;
53
+ let e = z.value.getBoundingClientRect();
54
+ V.value = r(e, "bottom-end", {
55
+ gap: 4,
56
+ minWidth: `${e.width}px`
57
+ });
64
58
  }
65
59
  function q() {
66
- M.disabled || (I.value = !I.value);
60
+ R.value && K();
67
61
  }
68
62
  function J(e) {
69
- e.disabled || M.disabled || (e.command?.(), N("command", e), I.value = !1);
63
+ P.disabled || F("click", e);
64
+ }
65
+ function Y() {
66
+ P.disabled || (R.value = !R.value);
67
+ }
68
+ function X(e) {
69
+ e.disabled || P.disabled || (e.command?.(), F("command", e), R.value = !1);
70
70
  }
71
- function Y(e) {
71
+ function Z(e) {
72
72
  let t = e.target;
73
- L.value?.contains(t) || R.value?.contains(t) || (I.value = !1);
73
+ z.value?.contains(t) || B.value?.contains(t) || (R.value = !1);
74
74
  }
75
- return w(I, (e) => {
76
- e ? (document.addEventListener("click", Y), h(() => W()), H.value && (window.addEventListener("resize", G), window.addEventListener("scroll", G, !0))) : (document.removeEventListener("click", Y), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0));
77
- }), v(() => {
78
- document.removeEventListener("click", Y), window.removeEventListener("resize", G), window.removeEventListener("scroll", G, !0);
79
- }), (e, t) => (y(), d("div", {
75
+ return E(R, (e) => {
76
+ e ? (document.addEventListener("click", Z), _(() => K()), W.value && (window.addEventListener("resize", q), window.addEventListener("scroll", q, !0))) : (document.removeEventListener("click", Z), window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0));
77
+ }), b(() => {
78
+ document.removeEventListener("click", Z), window.removeEventListener("resize", q), window.removeEventListener("scroll", q, !0);
79
+ }), (t, n) => (x(), p("div", {
80
80
  ref_key: "root",
81
- ref: L,
82
- class: g(U.value)
81
+ ref: z,
82
+ class: v(G.value)
83
83
  }, [
84
- f("button", {
84
+ m("button", {
85
85
  type: "button",
86
86
  class: "wi-splitbutton__main",
87
- disabled: m.disabled,
88
- onClick: K
89
- }, [m.icon ? (y(), d("span", D, S(m.icon), 1)) : u("", !0), m.label ? (y(), d("span", O, S(m.label), 1)) : u("", !0)], 8, E),
90
- f("button", {
87
+ disabled: g.disabled,
88
+ onClick: J
89
+ }, [g.icon ? (x(), p("span", k, w(g.icon), 1)) : f("", !0), g.label ? (x(), p("span", A, w(g.label), 1)) : f("", !0)], 8, O),
90
+ m("button", {
91
91
  type: "button",
92
92
  class: "wi-splitbutton__trigger",
93
- "aria-label": C(F).moreActions,
94
- "aria-expanded": I.value,
93
+ "aria-label": T(L).moreActions,
94
+ "aria-expanded": R.value,
95
95
  "aria-haspopup": "menu",
96
- disabled: m.disabled,
97
- onClick: q
98
- }, " ▾ ", 8, k),
99
- (y(), l(o, {
100
- to: V.value.to,
101
- disabled: V.value.disabled
102
- }, [p(s, { name: "wi-scale-fade" }, {
103
- default: T(() => [I.value ? (y(), d("ul", {
96
+ disabled: g.disabled,
97
+ onClick: Y
98
+ }, [h(e, {
99
+ name: "chevron-down",
100
+ size: "sm"
101
+ })], 8, j),
102
+ (x(), d(c, {
103
+ to: U.value.to,
104
+ disabled: U.value.disabled
105
+ }, [h(l, { name: "wi-scale-fade" }, {
106
+ default: D(() => [R.value ? (x(), p("ul", {
104
107
  key: 0,
105
108
  ref_key: "menu",
106
- ref: R,
107
- class: g(["wi-splitbutton__menu", { "wi-splitbutton__menu--teleported": H.value }]),
108
- style: _(H.value ? z.value : void 0),
109
+ ref: B,
110
+ class: v(["wi-splitbutton__menu", { "wi-splitbutton__menu--teleported": W.value }]),
111
+ style: y(W.value ? V.value : void 0),
109
112
  role: "menu"
110
- }, [(y(!0), d(a, null, x(m.model, (e, t) => (y(), d("li", {
113
+ }, [(x(!0), p(s, null, C(g.model, (e, t) => (x(), p("li", {
111
114
  key: `${e.label}-${t}`,
112
115
  role: "presentation"
113
- }, [f("button", {
116
+ }, [m("button", {
114
117
  type: "button",
115
118
  class: "wi-splitbutton__item",
116
119
  role: "menuitem",
117
120
  disabled: e.disabled,
118
- onClick: (t) => J(e)
119
- }, S(e.label), 9, A)]))), 128))], 6)) : u("", !0)]),
121
+ onClick: (t) => X(e)
122
+ }, w(e.label), 9, M)]))), 128))], 6)) : f("", !0)]),
120
123
  _: 1
121
124
  })], 8, ["to", "disabled"]))
122
125
  ], 2));
123
126
  }
124
127
  });
125
128
  //#endregion
126
- export { j as WiSplitButton };
129
+ export { N as WiSplitButton };
@@ -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
  }
@@ -1386,6 +1385,45 @@
1386
1385
  }
1387
1386
  }
1388
1387
 
1388
+ .wi-icon {
1389
+ display: inline-flex;
1390
+ height: 1rem;
1391
+ width: 1rem;
1392
+ }
1393
+
1394
+ .wi-icon svg {
1395
+ height: 100%;
1396
+ width: 100%;
1397
+ }
1398
+
1399
+ .wi-icon--sm,
1400
+ .wi-icon--small {
1401
+ height: 0.875rem;
1402
+ width: 0.875rem;
1403
+ }
1404
+
1405
+ .wi-icon--md,
1406
+ .wi-icon--normal {
1407
+ height: 1rem;
1408
+ width: 1rem;
1409
+ }
1410
+
1411
+ .wi-icon--lg,
1412
+ .wi-icon--large {
1413
+ height: 1.25rem;
1414
+ width: 1.25rem;
1415
+ }
1416
+
1417
+ .wi-icon--spin svg {
1418
+ animation: wi-icon-spin 0.8s linear infinite;
1419
+ }
1420
+
1421
+ @keyframes wi-icon-spin {
1422
+ to {
1423
+ transform: rotate(360deg);
1424
+ }
1425
+ }
1426
+
1389
1427
  /* —— Primitive: SplitButton —— */
1390
1428
  .wi-splitbutton {
1391
1429
  --wi-button-padding-x-medium: calc(
@@ -1,4 +1,5 @@
1
1
  import '../theme/styles.css'
2
2
  import '../styles/base.css'
3
3
  import '../components/Button/styles.css'
4
+ import '../components/Icon/styles.css'
4
5
  import '../components/SplitButton/styles.css'
@@ -1,4 +1,4 @@
1
- import { n as e } from "../locale-CYkJyRd1.js";
1
+ import { n as e } from "../locale-DxAvgqgB.js";
2
2
  import "./style.js";
3
3
  import { Comment as t, Fragment as n, Text as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as ee, openBlock as f, ref as p, renderSlot as m, resolveDynamicComponent as h, unref as g, useSlots as _, watch as v } from "vue";
4
4
  //#region src/components/Splitter/size.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
  }
@@ -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
  }
@@ -277,8 +277,8 @@
277
277
  font-size: var(--wi-font-size-xs);
278
278
  }
279
279
 
280
- .wi-textarea-field__help--error,
281
- .wi-select-field__help--error {
280
+ .wi-textarea-field__help--invalid,
281
+ .wi-select-field__help--invalid {
282
282
  color: var(--wi-color-danger);
283
283
  }
284
284
 
@@ -297,9 +297,8 @@
297
297
  }
298
298
 
299
299
  .wi-textarea--invalid:focus-visible,
300
- .wi-textarea--error:focus-visible,
301
- .wi-select--error.wi-select--open,
302
- .wi-select--error:focus-visible {
300
+ .wi-select--invalid.wi-select--open,
301
+ .wi-select--invalid:focus-visible {
303
302
  border-color: var(--wi-color-danger);
304
303
  box-shadow: var(--wi-focus-shadow-danger);
305
304
  }