@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
@@ -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,4 +1,4 @@
1
- import { o as e } from "../config-DWwce9jA.js";
1
+ import { o as e } from "../config-CTLkobga.js";
2
2
  import "./style.js";
3
3
  import { computed as t, createCommentVNode as n, createElementBlock as r, createElementVNode as i, createTextVNode as a, defineComponent as o, inject as s, mergeProps as c, normalizeClass as l, openBlock as u, provide as d, renderSlot as f, toDisplayString as p, unref as m, useAttrs as h } from "vue";
4
4
  //#region src/components/Radio/types.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,12 +1,19 @@
1
- import { n as e, t } from "../locale-CYkJyRd1.js";
1
+ import { t as e } from "../Icon-DHGs8l-M.js";
2
+ import { n as t, t as n } from "../locale-DxAvgqgB.js";
2
3
  import "./style.js";
3
- import { Fragment as n, computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, openBlock as l, renderList as u, unref as d } from "vue";
4
+ import { Fragment as r, computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as c, defineComponent as l, normalizeClass as u, openBlock as d, renderList as f, unref as p } from "vue";
4
5
  //#region src/components/Rating/Rating.vue?vue&type=script&setup=true&lang.ts
5
- var f = ["aria-valuenow", "aria-valuemax"], p = ["aria-label", "disabled"], m = [
6
+ var m = ["aria-valuenow", "aria-valuemax"], h = ["aria-label", "disabled"], g = [
6
7
  "aria-label",
7
8
  "disabled",
8
9
  "onClick"
9
- ], h = /* @__PURE__ */ s({
10
+ ], _ = {
11
+ class: "wi-rating__star-off",
12
+ "aria-hidden": "true"
13
+ }, v = {
14
+ class: "wi-rating__star-on",
15
+ "aria-hidden": "true"
16
+ }, y = /* @__PURE__ */ l({
10
17
  __name: "Rating",
11
18
  props: {
12
19
  modelValue: { default: 0 },
@@ -33,61 +40,64 @@ var f = ["aria-valuenow", "aria-valuemax"], p = ["aria-label", "disabled"], m =
33
40
  }
34
41
  },
35
42
  emits: ["update:modelValue"],
36
- setup(s, { emit: h }) {
37
- let g = s, _ = h, v = e(), y = r(() => g.allowClear ?? g.cancel), b = r(() => Array.from({ length: Math.max(1, g.stars) }, (e, t) => t + 1)), x = r(() => ["wi-rating", {
38
- "wi-rating--disabled": g.disabled,
39
- "wi-rating--readonly": g.readonly,
40
- "wi-rating--half": g.allowHalf
43
+ setup(l, { emit: y }) {
44
+ let b = l, x = y, S = t(), C = i(() => b.allowClear ?? b.cancel), w = i(() => Array.from({ length: Math.max(1, b.stars) }, (e, t) => t + 1)), T = i(() => ["wi-rating", {
45
+ "wi-rating--disabled": b.disabled,
46
+ "wi-rating--readonly": b.readonly,
47
+ "wi-rating--half": b.allowHalf
41
48
  }]);
42
- function S(e) {
43
- let t = g.modelValue ?? 0;
44
- return t >= e ? 1 : g.allowHalf && t >= e - .5 ? .5 : 0;
49
+ function E(e) {
50
+ let t = b.modelValue ?? 0;
51
+ return t >= e ? 1 : b.allowHalf && t >= e - .5 ? .5 : 0;
45
52
  }
46
- function C(e) {
47
- g.disabled || g.readonly || _("update:modelValue", e);
53
+ function D(e) {
54
+ b.disabled || b.readonly || x("update:modelValue", e);
48
55
  }
49
- function w(e, t) {
50
- if (!g.allowHalf) {
51
- C(e);
56
+ function O(e, t) {
57
+ if (!b.allowHalf) {
58
+ D(e);
52
59
  return;
53
60
  }
54
61
  let n = t.currentTarget.getBoundingClientRect();
55
- C(t.clientX - n.left < n.width / 2 ? e - .5 : e);
62
+ D(t.clientX - n.left < n.width / 2 ? e - .5 : e);
56
63
  }
57
- function T() {
58
- g.disabled || g.readonly || !y.value || _("update:modelValue", 0);
64
+ function k() {
65
+ b.disabled || b.readonly || !C.value || x("update:modelValue", 0);
59
66
  }
60
- return (e, r) => (l(), a("div", {
61
- class: c(x.value),
67
+ return (t, i) => (d(), o("div", {
68
+ class: u(T.value),
62
69
  role: "slider",
63
- "aria-valuenow": s.modelValue,
70
+ "aria-valuenow": l.modelValue,
64
71
  "aria-valuemin": 0,
65
- "aria-valuemax": s.stars
66
- }, [y.value ? (l(), a("button", {
72
+ "aria-valuemax": l.stars
73
+ }, [C.value ? (d(), o("button", {
67
74
  key: 0,
68
75
  type: "button",
69
76
  class: "wi-rating__cancel",
70
- "aria-label": d(v).clearRating,
71
- disabled: s.disabled || s.readonly,
72
- onClick: T
73
- }, " × ", 8, p)) : i("", !0), (l(!0), a(n, null, u(b.value, (e) => (l(), a("button", {
74
- key: e,
77
+ "aria-label": p(S).clearRating,
78
+ disabled: l.disabled || l.readonly,
79
+ onClick: k
80
+ }, [c(e, {
81
+ name: "close",
82
+ size: "sm"
83
+ })], 8, h)) : a("", !0), (d(!0), o(r, null, f(w.value, (t) => (d(), o("button", {
84
+ key: t,
75
85
  type: "button",
76
- class: c(["wi-rating__star", {
77
- "wi-rating__star--on": S(e) === 1,
78
- "wi-rating__star--half": S(e) === .5
86
+ class: u(["wi-rating__star", {
87
+ "wi-rating__star--on": E(t) === 1,
88
+ "wi-rating__star--half": E(t) === .5
79
89
  }]),
80
- "aria-label": d(t)(d(v).star, { value: e }),
81
- disabled: s.disabled || s.readonly,
82
- onClick: (t) => w(e, t)
83
- }, [...r[0] ||= [o("span", {
84
- class: "wi-rating__star-off",
85
- "aria-hidden": "true"
86
- }, "", -1), o("span", {
87
- class: "wi-rating__star-on",
88
- "aria-hidden": "true"
89
- }, "★", -1)]], 10, m))), 128))], 10, f));
90
+ "aria-label": p(n)(p(S).star, { value: t }),
91
+ disabled: l.disabled || l.readonly,
92
+ onClick: (e) => O(t, e)
93
+ }, [s("span", _, [c(e, {
94
+ name: "star",
95
+ size: "lg"
96
+ })]), s("span", v, [c(e, {
97
+ name: "star",
98
+ size: "lg"
99
+ })])], 10, g))), 128))], 10, m));
90
100
  }
91
101
  });
92
102
  //#endregion
93
- export { h as WiRating };
103
+ export { y as WiRating };
@@ -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,13 +749,52 @@
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
  /* —— Form: Rating —— */
754
792
  .wi-rating {
755
793
  align-items: center;
756
794
  display: inline-flex;
757
795
  gap: var(--wi-space-1);
758
- }
759
-
796
+ }
797
+
760
798
  .wi-rating__star,
761
799
  .wi-rating__cancel {
762
800
  background: transparent;
@@ -768,41 +806,41 @@
768
806
  font-size: 1.25rem;
769
807
  line-height: 1;
770
808
  padding: 0.15rem;
771
- }
772
-
809
+ }
810
+
773
811
  .wi-rating__star--on {
774
812
  color: var(--wi-color-warn);
775
- }
776
-
813
+ }
814
+
777
815
  .wi-rating__star:hover:not(:disabled),
778
816
  .wi-rating__cancel:hover:not(:disabled) {
779
817
  color: var(--wi-color-primary);
780
- }
781
-
818
+ }
819
+
782
820
  .wi-rating__star:focus-visible,
783
821
  .wi-rating__cancel:focus-visible {
784
822
  box-shadow: var(--wi-focus-shadow);
785
823
  outline: none;
786
- }
787
-
824
+ }
825
+
788
826
  .wi-rating--disabled,
789
827
  .wi-rating--readonly {
790
828
  pointer-events: none;
791
- }
792
-
829
+ }
830
+
793
831
  .wi-rating--disabled {
794
832
  opacity: var(--wi-opacity-disabled);
795
- }
796
-
833
+ }
834
+
797
835
  .wi-rating__star {
798
836
  position: relative;
799
- }
800
-
837
+ }
838
+
801
839
  .wi-rating__star-off,
802
840
  .wi-rating__star-on {
803
841
  display: block;
804
- }
805
-
842
+ }
843
+
806
844
  .wi-rating__star-on {
807
845
  color: var(--wi-color-warn);
808
846
  left: 0;
@@ -810,13 +848,18 @@
810
848
  position: absolute;
811
849
  top: 0;
812
850
  width: 0;
813
- }
814
-
851
+ }
852
+
853
+ .wi-rating__star-on .wi-icon svg {
854
+ fill: currentColor;
855
+ stroke: none;
856
+ }
857
+
815
858
  .wi-rating__star--on .wi-rating__star-on,
816
859
  .wi-rating__star--half .wi-rating__star-on {
817
860
  width: 100%;
818
- }
819
-
861
+ }
862
+
820
863
  .wi-rating__star--half .wi-rating__star-on {
821
864
  width: 50%;
822
- }
865
+ }
@@ -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/Rating/styles.css'
@@ -1,10 +1,11 @@
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 { c as r } from "../config-CTLkobga.js";
4
+ import { n as i } from "../locale-DxAvgqgB.js";
4
5
  import "./style.js";
5
- import { Teleport as i, computed as a, createBlock as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, normalizeStyle as f, onBeforeUnmount as p, onMounted as m, openBlock as h, ref as g, renderSlot as _, unref as v, watch as y } from "vue";
6
+ import { Teleport as a, computed as o, createBlock as s, createElementBlock as c, createElementVNode as l, createVNode as u, defineComponent as d, normalizeClass as f, normalizeStyle as p, onBeforeUnmount as m, onMounted as h, openBlock as g, ref as _, renderSlot as v, unref as y, watch as b } from "vue";
6
7
  //#region src/components/ScrollTop/ScrollTop.vue?vue&type=script&setup=true&lang.ts
7
- var b = ["aria-label", "hidden"], x = /* @__PURE__ */ u({
8
+ var x = ["aria-label", "hidden"], S = /* @__PURE__ */ d({
8
9
  __name: "ScrollTop",
9
10
  props: {
10
11
  threshold: { default: 400 },
@@ -17,31 +18,31 @@ var b = ["aria-label", "hidden"], x = /* @__PURE__ */ u({
17
18
  },
18
19
  appendTo: {}
19
20
  },
20
- setup(u) {
21
- let x = u, S = n(), C = r(), w = g(null), T = g(null), E = g(!1), D = a(() => e(x, S.value.appendTo)), O = a(() => t(x, S.value.appendTo));
22
- function k(e) {
21
+ setup(d) {
22
+ let S = d, C = r(), w = i(), T = _(null), E = _(null), D = _(!1), O = o(() => t(S, C.value.appendTo)), k = o(() => n(S, C.value.appendTo));
23
+ function A(e) {
23
24
  if (e != null) return typeof e == "number" ? `${e}px` : e;
24
25
  }
25
- let A = a(() => ["wi-scrolltop", {
26
- "wi-scrolltop--visible": E.value,
27
- "wi-scrolltop--parent": x.target === "parent",
28
- "wi-scrolltop--teleported": O.value
29
- }]), j = a(() => {
30
- let e = {}, t = k(x.right), n = k(x.bottom);
26
+ let j = o(() => ["wi-scrolltop", {
27
+ "wi-scrolltop--visible": D.value,
28
+ "wi-scrolltop--parent": S.target === "parent",
29
+ "wi-scrolltop--teleported": k.value
30
+ }]), M = o(() => {
31
+ let e = {}, t = A(S.right), n = A(S.bottom);
31
32
  return t && (e.right = t), n && (e.bottom = n), e;
32
33
  });
33
- function M() {
34
- return x.target === "window" ? window : w.value?.parentElement ?? window;
35
- }
36
34
  function N() {
37
- let e = M();
38
- return e === window ? window.scrollY || document.documentElement.scrollTop : e.scrollTop;
35
+ return S.target === "window" ? window : T.value?.parentElement ?? window;
39
36
  }
40
37
  function P() {
41
- E.value = N() >= x.threshold;
38
+ let e = N();
39
+ return e === window ? window.scrollY || document.documentElement.scrollTop : e.scrollTop;
42
40
  }
43
41
  function F() {
44
- let e = M();
42
+ D.value = P() >= S.threshold;
43
+ }
44
+ function I() {
45
+ let e = N();
45
46
  if (e === window) {
46
47
  window.scrollTo({
47
48
  top: 0,
@@ -54,33 +55,36 @@ var b = ["aria-label", "hidden"], x = /* @__PURE__ */ u({
54
55
  behavior: "smooth"
55
56
  });
56
57
  }
57
- function I() {
58
- M().addEventListener("scroll", P, { passive: !0 }), P();
59
- }
60
58
  function L() {
61
- M().removeEventListener("scroll", P);
59
+ N().addEventListener("scroll", F, { passive: !0 }), F();
60
+ }
61
+ function R() {
62
+ N().removeEventListener("scroll", F);
62
63
  }
63
- return m(() => I()), p(() => L()), y(() => x.target, () => {
64
- L(), I();
65
- }), (e, t) => (h(), s("span", {
64
+ return h(() => L()), m(() => R()), b(() => S.target, () => {
65
+ R(), L();
66
+ }), (t, n) => (g(), c("span", {
66
67
  ref_key: "anchor",
67
- ref: w,
68
+ ref: T,
68
69
  class: "wi-scrolltop-anchor",
69
70
  "aria-hidden": "true"
70
- }, [(h(), o(i, {
71
- to: D.value.to,
72
- disabled: D.value.disabled
73
- }, [c("button", {
71
+ }, [(g(), s(a, {
72
+ to: O.value.to,
73
+ disabled: O.value.disabled
74
+ }, [l("button", {
74
75
  ref_key: "root",
75
- ref: T,
76
+ ref: E,
76
77
  type: "button",
77
- class: d(A.value),
78
- style: f(j.value),
79
- "aria-label": v(C).backToTop,
80
- hidden: !E.value,
81
- onClick: F
82
- }, [_(e.$slots, "default", {}, () => [t[0] ||= l("↑", -1)])], 14, b)], 8, ["to", "disabled"]))], 512));
78
+ class: f(j.value),
79
+ style: p(M.value),
80
+ "aria-label": y(w).backToTop,
81
+ hidden: !D.value,
82
+ onClick: I
83
+ }, [v(t.$slots, "default", {}, () => [u(e, {
84
+ name: "arrow-up",
85
+ size: "sm"
86
+ })])], 14, x)], 8, ["to", "disabled"]))], 512));
83
87
  }
84
88
  });
85
89
  //#endregion
86
- export { x as WiScrollTop };
90
+ export { S as WiScrollTop };
@@ -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
  /* —— Misc: ScrollTop —— */
754
792
  .wi-scrolltop-anchor {
755
793
  display: contents;
@@ -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/ScrollTop/styles.css'