vft 0.0.509 → 0.0.513

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 (329) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/affix/affix.vue2.js +2 -2
  3. package/es/components/alert/alert.vue2.js +1 -1
  4. package/es/components/autocomplete/autocomplete.vue.d.ts +2 -2
  5. package/es/components/autocomplete/autocomplete.vue2.js +1 -1
  6. package/es/components/autocomplete/index.d.ts +6 -6
  7. package/es/components/avatar/avatar.vue2.js +2 -2
  8. package/es/components/avatar-stack/avatar-stack.vue2.js +7 -7
  9. package/es/components/backtop/backtop.vue2.js +1 -1
  10. package/es/components/breadcrumb/breadcrumb-item.vue2.js +3 -3
  11. package/es/components/breadcrumb/breadcrumb.vue2.js +2 -2
  12. package/es/components/button/button-group.vue2.js +2 -2
  13. package/es/components/button/button.vue2.js +7 -7
  14. package/es/components/button/index.d.ts +9 -9
  15. package/es/components/button/use-button.js +3 -3
  16. package/es/components/card/card.vue2.js +6 -6
  17. package/es/components/carousel/carousel-item.vue2.js +3 -3
  18. package/es/components/carousel/carousel.vue2.js +1 -1
  19. package/es/components/cascader/cascader.vue2.js +202 -203
  20. package/es/components/cascader-panel/index.vue2.js +1 -1
  21. package/es/components/cascader-panel/menu.vue2.js +49 -50
  22. package/es/components/cascader-panel/node.vue2.js +8 -8
  23. package/es/components/check-tag/check-tag.vue2.js +2 -2
  24. package/es/components/checkbox/checkbox-button.vue2.js +13 -13
  25. package/es/components/checkbox/checkbox-group.vue2.js +3 -3
  26. package/es/components/checkbox/checkbox.vue2.js +1 -1
  27. package/es/components/clamp/clamp.vue2.js +2 -2
  28. package/es/components/clamp-toggle/clamp-toggle.vue2.js +18 -19
  29. package/es/components/clamp-tooltip/clamp-tooltip.vue2.js +6 -6
  30. package/es/components/col/col.vue2.js +2 -2
  31. package/es/components/collapse/collapse-item.vue2.js +2 -2
  32. package/es/components/collapse/collapse.vue2.js +2 -2
  33. package/es/components/collapse-transition/collapse-transition.vue2.js +2 -2
  34. package/es/components/color-picker/color-picker.vue2.js +133 -134
  35. package/es/components/color-picker/components/alpha-slider.vue2.js +2 -2
  36. package/es/components/color-picker/components/hue-slider.vue.js +2 -2
  37. package/es/components/color-picker/components/predefine.vue.js +3 -3
  38. package/es/components/color-picker/components/sv-panel.vue.js +2 -2
  39. package/es/components/config-provider/config-provider.vue.d.ts +0 -2
  40. package/es/components/config-provider/config-provider.vue2.js +4 -5
  41. package/es/components/config-provider/constants.d.ts +0 -1
  42. package/es/components/config-provider/constants.js +2 -3
  43. package/es/components/config-provider/hooks/use-global-config.js +30 -33
  44. package/es/components/config-provider/index.d.ts +0 -9
  45. package/es/components/config-provider/index.js +5 -6
  46. package/es/components/container/aside.vue2.js +2 -2
  47. package/es/components/container/container.vue2.js +2 -2
  48. package/es/components/container/footer.vue2.js +2 -2
  49. package/es/components/container/header.vue2.js +2 -2
  50. package/es/components/container/main.vue2.js +2 -2
  51. package/es/components/context-menu/context-menu.vue2.js +1 -1
  52. package/es/components/countdown/countdown.vue2.js +2 -2
  53. package/es/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  54. package/es/components/date-picker/composables/use-basic-date-table.js +123 -124
  55. package/es/components/date-picker/composables/use-month-range-header.js +14 -15
  56. package/es/components/date-picker/composables/use-panel-date-range.js +23 -24
  57. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +6 -6
  58. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +39 -40
  59. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +40 -41
  60. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +178 -179
  61. package/es/components/date-picker/date-picker-com/panel-date-range.vue2.js +224 -225
  62. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +12 -12
  63. package/es/components/date-picker/date-picker-com/panel-year-range.vue2.js +12 -12
  64. package/es/components/date-picker/props/basic-date-table.js +3 -3
  65. package/es/components/date-picker/props/basic-month-table.js +3 -3
  66. package/es/components/date-picker/props/basic-year-table.js +3 -3
  67. package/es/components/date-time-select/date-time-select.vue2.js +36 -39
  68. package/es/components/descriptions/description.vue2.js +1 -1
  69. package/es/components/descriptions/descriptions-row.vue2.js +10 -10
  70. package/es/components/dialog/dialog-content.vue2.js +3 -3
  71. package/es/components/dialog/dialog.vue2.js +5 -5
  72. package/es/components/divider/divider.vue2.js +5 -5
  73. package/es/components/drawer/drawer.vue2.js +4 -4
  74. package/es/components/dropdown/dropdown-item-impl.vue2.js +3 -3
  75. package/es/components/dropdown/dropdown-item.vue2.js +2 -2
  76. package/es/components/dropdown/dropdown-menu.vue2.js +2 -2
  77. package/es/components/dropdown/dropdown.vue2.js +66 -67
  78. package/es/components/empty/empty.vue2.js +36 -37
  79. package/es/components/footer-layout/footer-layout.vue2.js +2 -2
  80. package/es/components/form/form-item.vue2.js +16 -16
  81. package/es/components/form/form.vue2.js +2 -2
  82. package/es/components/full-screen/full-screen.vue2.js +17 -18
  83. package/es/components/header-layout/header-layout.vue2.js +1 -1
  84. package/es/components/horizontal-menu/horizontal-menu.vue2.js +3 -3
  85. package/es/components/icon/icon.vue2.js +3 -3
  86. package/es/components/icon-text/icon-text.vue2.js +1 -1
  87. package/es/components/iframe-layout/iframe-layout.vue2.js +4 -4
  88. package/es/components/iframe-layout/iframe-page.vue2.js +2 -2
  89. package/es/components/image/image.vue2.js +59 -60
  90. package/es/components/image-viewer/image-viewer.vue2.js +44 -45
  91. package/es/components/index.d.ts +1 -0
  92. package/es/components/index.js +213 -211
  93. package/es/components/input/input.vue2.js +6 -6
  94. package/es/components/input-number/input-number.vue2.js +4 -4
  95. package/es/components/input-tag/input-tag.vue2.js +7 -7
  96. package/es/components/link/link.vue2.js +1 -1
  97. package/es/components/list-cell/list-cell.vue2.js +1 -1
  98. package/es/components/logo/logo.vue2.js +10 -10
  99. package/es/components/md-comment/md-comment.vue2.js +2 -2
  100. package/es/components/md-container/md-container.vue2.js +74 -75
  101. package/es/components/md-container/toc.js +36 -37
  102. package/es/components/menu/menu-collapse-transition.vue.js +2 -2
  103. package/es/components/menu/menu-item-group.vue2.js +7 -7
  104. package/es/components/menu/menu-item.vue2.js +1 -1
  105. package/es/components/message/message.vue2.js +3 -3
  106. package/es/components/message-box/index.d.ts +4 -0
  107. package/es/components/message-box/index.js +14 -0
  108. package/es/components/message-box/message-box.vue.d.ts +103 -0
  109. package/es/components/message-box/message-box.vue.js +4 -0
  110. package/es/components/message-box/message-box.vue2.js +358 -0
  111. package/es/components/message-box/method.d.ts +3 -0
  112. package/es/components/message-box/method.js +100 -0
  113. package/es/components/message-box/style/css.d.ts +2 -0
  114. package/es/components/message-box/style/css.js +3 -0
  115. package/es/components/message-box/style/index.d.ts +2 -0
  116. package/es/components/message-box/style/index.js +3 -0
  117. package/es/components/message-box/types.d.ts +202 -0
  118. package/es/components/modal/index.d.ts +1 -0
  119. package/es/components/modal/modal-footer-action.vue2.js +24 -25
  120. package/es/components/modal/modal.vue.d.ts +1 -0
  121. package/es/components/modal/modal.vue2.js +30 -28
  122. package/es/components/multiple-tabs/multiple-tabs.vue2.js +16 -17
  123. package/es/components/multiple-tabs/tab-content.vue2.js +2 -2
  124. package/es/components/multiple-tabs/use/use-tab-dropdown.js +53 -54
  125. package/es/components/notification/notification.vue2.js +1 -1
  126. package/es/components/overlay/overlay.vue2.js +1 -1
  127. package/es/components/page-wrapper/page-wrapper.vue2.js +2 -2
  128. package/es/components/pagination/components/jumper.vue2.js +28 -29
  129. package/es/components/pagination/components/next.vue2.js +4 -4
  130. package/es/components/pagination/components/pager.vue2.js +1 -1
  131. package/es/components/pagination/components/prev.vue2.js +4 -4
  132. package/es/components/pagination/components/sizes.vue2.js +20 -21
  133. package/es/components/pagination/components/total.vue2.js +10 -11
  134. package/es/components/popconfirm/index.d.ts +15 -15
  135. package/es/components/popconfirm/popconfirm.vue.d.ts +1 -1
  136. package/es/components/popconfirm/popconfirm.vue2.js +39 -40
  137. package/es/components/popover/popover.vue2.js +1 -1
  138. package/es/components/popper/arrow.vue2.js +2 -2
  139. package/es/components/popper/content.vue2.js +2 -2
  140. package/es/components/popper/trigger.vue2.js +4 -4
  141. package/es/components/progress/progress.vue2.js +1 -1
  142. package/es/components/progress-i/progress-i.vue2.js +2 -2
  143. package/es/components/qrcode/qrcode.vue2.js +1 -1
  144. package/es/components/radio/radio-button.vue2.js +2 -2
  145. package/es/components/radio/radio-group.vue2.js +3 -3
  146. package/es/components/radio/radio.vue2.js +2 -2
  147. package/es/components/rate/rate.vue2.js +6 -6
  148. package/es/components/router-view-content/router-view-content.vue2.js +7 -7
  149. package/es/components/roving-focus-group/roving-focus-group.vue2.js +2 -2
  150. package/es/components/roving-focus-group/roving-focus-item.vue2.js +2 -2
  151. package/es/components/row/row.vue2.js +2 -2
  152. package/es/components/scrollbar/bar.vue2.js +2 -2
  153. package/es/components/scrollbar/scrollbar.vue2.js +7 -7
  154. package/es/components/scrollbar/thumb.vue2.js +2 -2
  155. package/es/components/search/search.vue2.js +50 -51
  156. package/es/components/segmented/segmented.vue2.js +7 -7
  157. package/es/components/select/group-item.vue.js +2 -2
  158. package/es/components/select/index.d.ts +4 -4
  159. package/es/components/select/option-item.vue.js +2 -2
  160. package/es/components/select/select.vue.d.ts +4 -4
  161. package/es/components/select/select.vue.js +1 -1
  162. package/es/components/select/useSelect.d.ts +4 -4
  163. package/es/components/select/useSelect.js +231 -232
  164. package/es/components/skeleton/skeleton-item.vue2.js +2 -2
  165. package/es/components/skeleton/skeleton.vue2.js +8 -8
  166. package/es/components/slider/button.vue2.js +2 -2
  167. package/es/components/slider/slider.vue2.js +1 -1
  168. package/es/components/space/space.js +1 -1
  169. package/es/components/statistic/statistic.vue2.js +17 -17
  170. package/es/components/steps/item.vue2.js +11 -11
  171. package/es/components/steps/steps.vue2.js +2 -2
  172. package/es/components/super-form/super-form-action.vue2.js +47 -48
  173. package/es/components/super-form/super-form-item.vue2.js +204 -206
  174. package/es/components/super-form/super-form.vue2.js +7 -7
  175. package/es/components/super-form/use/helper.d.ts +1 -1
  176. package/es/components/super-form/use/helper.js +63 -63
  177. package/es/components/super-form/use/use-form.js +8 -8
  178. package/es/components/switch/switch.vue2.js +1 -1
  179. package/es/components/table/field.js +111 -130
  180. package/es/components/table/table.vue2.js +128 -133
  181. package/es/components/table/use/use-columns.js +26 -29
  182. package/es/components/table/use/use-data-source.js +59 -60
  183. package/es/components/tabs/tab-bar.vue2.js +2 -2
  184. package/es/components/tabs/tab-pane.vue2.js +6 -6
  185. package/es/components/teleport/teleport.vue2.js +2 -2
  186. package/es/components/time-picker/common/picker-range-trigger.vue2.js +2 -2
  187. package/es/components/time-picker/common/picker.vue2.js +8 -8
  188. package/es/components/time-picker/time-picker-com/basic-time-spinner.vue2.js +1 -1
  189. package/es/components/time-picker/time-picker-com/panel-time-pick.vue2.js +65 -66
  190. package/es/components/time-picker/time-picker-com/panel-time-range.vue2.js +133 -134
  191. package/es/components/time-select/time-select.vue2.js +3 -3
  192. package/es/components/timeline/timeline-item.vue2.js +1 -1
  193. package/es/components/tooltip/content.vue2.js +6 -6
  194. package/es/components/tooltip/tooltip.vue2.js +1 -1
  195. package/es/components/tooltip/trigger.vue2.js +2 -2
  196. package/es/components/transfer/transfer-panel.vue2.js +58 -59
  197. package/es/components/transfer/transfer.vue2.js +69 -70
  198. package/es/components/tree/tree-node.vue.js +1 -1
  199. package/es/components/tree/tree.vue2.js +59 -60
  200. package/es/components/upload/upload-content.vue2.js +47 -48
  201. package/es/components/upload/upload-dragger.vue2.js +2 -2
  202. package/es/components/upload/upload-list.vue2.js +45 -46
  203. package/es/components/upload/upload.vue2.js +98 -99
  204. package/es/components/verify-code/verify-code.vue2.js +2 -2
  205. package/es/components/watermark/watermark.vue2.js +2 -2
  206. package/es/hooks/use-id/index.js +2 -2
  207. package/es/hooks/use-z-index/index.js +3 -3
  208. package/es/index.d.ts +0 -1
  209. package/es/index.js +39 -42
  210. package/es/package.json.d.ts +1 -1
  211. package/es/package.json.js +1 -1
  212. package/es/plugin.js +5 -3
  213. package/es/utils/helper.js +2 -2
  214. package/es/utils/ns-cover.js +1 -1
  215. package/es/utils/vue/vnode.js +3 -3
  216. package/lib/components/autocomplete/autocomplete.vue.d.ts +2 -2
  217. package/lib/components/autocomplete/index.d.ts +6 -6
  218. package/lib/components/button/index.d.ts +9 -9
  219. package/lib/components/button/use-button.cjs +1 -1
  220. package/lib/components/cascader/cascader.vue2.cjs +1 -1
  221. package/lib/components/cascader-panel/menu.vue2.cjs +4 -4
  222. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  223. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  224. package/lib/components/config-provider/config-provider.vue.d.ts +0 -2
  225. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  226. package/lib/components/config-provider/constants.cjs +1 -1
  227. package/lib/components/config-provider/constants.d.ts +0 -1
  228. package/lib/components/config-provider/hooks/use-global-config.cjs +1 -1
  229. package/lib/components/config-provider/index.cjs +1 -1
  230. package/lib/components/config-provider/index.d.ts +0 -9
  231. package/lib/components/date-picker/composables/use-basic-date-table.cjs +1 -1
  232. package/lib/components/date-picker/composables/use-basic-date-table.d.ts +1 -1
  233. package/lib/components/date-picker/composables/use-month-range-header.cjs +1 -1
  234. package/lib/components/date-picker/composables/use-panel-date-range.cjs +1 -1
  235. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  236. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  237. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  238. package/lib/components/date-picker/date-picker-com/panel-date-range.vue2.cjs +1 -1
  239. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  240. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  241. package/lib/components/empty/empty.vue2.cjs +1 -1
  242. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  243. package/lib/components/image/image.vue2.cjs +1 -1
  244. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  245. package/lib/components/index.cjs +1 -1
  246. package/lib/components/index.d.ts +1 -0
  247. package/lib/components/input/input.vue2.cjs +1 -1
  248. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  249. package/lib/components/md-container/toc.cjs +1 -1
  250. package/lib/components/message-box/index.cjs +1 -0
  251. package/lib/components/message-box/index.d.ts +4 -0
  252. package/lib/components/message-box/message-box.vue.cjs +1 -0
  253. package/lib/components/message-box/message-box.vue.d.ts +103 -0
  254. package/lib/components/message-box/message-box.vue2.cjs +1 -0
  255. package/lib/components/message-box/method.cjs +1 -0
  256. package/lib/components/message-box/method.d.ts +3 -0
  257. package/lib/components/message-box/style/css.cjs +1 -0
  258. package/lib/components/message-box/style/css.d.ts +2 -0
  259. package/lib/components/message-box/style/index.cjs +1 -0
  260. package/lib/components/message-box/style/index.d.ts +2 -0
  261. package/lib/components/message-box/types.d.ts +202 -0
  262. package/lib/components/modal/index.d.ts +1 -0
  263. package/lib/components/modal/modal-footer-action.vue2.cjs +1 -1
  264. package/lib/components/modal/modal.vue.d.ts +1 -0
  265. package/lib/components/modal/modal.vue2.cjs +1 -1
  266. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  267. package/lib/components/multiple-tabs/use/use-tab-dropdown.cjs +1 -1
  268. package/lib/components/pagination/components/jumper.vue2.cjs +1 -1
  269. package/lib/components/pagination/components/sizes.vue2.cjs +1 -1
  270. package/lib/components/pagination/components/total.vue2.cjs +1 -1
  271. package/lib/components/popconfirm/index.d.ts +15 -15
  272. package/lib/components/popconfirm/popconfirm.vue.d.ts +1 -1
  273. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  274. package/lib/components/search/search.vue2.cjs +1 -1
  275. package/lib/components/select/index.d.ts +4 -4
  276. package/lib/components/select/select.vue.d.ts +4 -4
  277. package/lib/components/select/useSelect.cjs +1 -1
  278. package/lib/components/select/useSelect.d.ts +4 -4
  279. package/lib/components/super-form/super-form-action.vue2.cjs +1 -1
  280. package/lib/components/super-form/super-form-item.vue2.cjs +1 -1
  281. package/lib/components/super-form/use/helper.cjs +1 -1
  282. package/lib/components/super-form/use/helper.d.ts +1 -1
  283. package/lib/components/super-form/use/use-form.cjs +1 -1
  284. package/lib/components/table/field.cjs +1 -1
  285. package/lib/components/table/table.vue2.cjs +1 -1
  286. package/lib/components/table/use/use-columns.cjs +1 -1
  287. package/lib/components/table/use/use-data-source.cjs +1 -1
  288. package/lib/components/time-picker/time-picker-com/panel-time-pick.vue2.cjs +1 -1
  289. package/lib/components/time-picker/time-picker-com/panel-time-range.vue2.cjs +1 -1
  290. package/lib/components/transfer/transfer-panel.vue2.cjs +1 -1
  291. package/lib/components/transfer/transfer.vue2.cjs +1 -1
  292. package/lib/components/tree/tree.vue2.cjs +1 -1
  293. package/lib/components/upload/upload-content.vue2.cjs +1 -1
  294. package/lib/components/upload/upload-list.vue2.cjs +1 -1
  295. package/lib/components/upload/upload.vue2.cjs +1 -1
  296. package/lib/index.cjs +1 -1
  297. package/lib/index.d.ts +0 -1
  298. package/lib/package.json.cjs +1 -1
  299. package/lib/package.json.d.ts +1 -1
  300. package/lib/plugin.cjs +1 -1
  301. package/package.json +3 -3
  302. package/theme-style/index.css +1 -1
  303. package/theme-style/src/message-box.scss +2 -2
  304. package/theme-style/src/table.scss +6 -0
  305. package/theme-style/vft-message-box.css +1 -1
  306. package/theme-style/vft-table.css +1 -1
  307. package/web-types.json +1 -1
  308. package/es/locale/index.d.ts +0 -26
  309. package/es/locale/index.js +0 -10
  310. package/es/locale/lang/en.d.ts +0 -183
  311. package/es/locale/lang/en.js +0 -241
  312. package/es/locale/lang/zh-cn.d.ts +0 -183
  313. package/es/locale/lang/zh-cn.js +0 -241
  314. package/es/locale/lang/zh-tw.d.ts +0 -183
  315. package/es/locale/lang/zh-tw.js +0 -241
  316. package/es/locale/use-locale.d.ts +0 -17
  317. package/es/locale/use-locale.js +0 -56
  318. package/lib/locale/index.cjs +0 -1
  319. package/lib/locale/index.d.ts +0 -26
  320. package/lib/locale/lang/en.cjs +0 -1
  321. package/lib/locale/lang/en.d.ts +0 -183
  322. package/lib/locale/lang/zh-cn.cjs +0 -1
  323. package/lib/locale/lang/zh-cn.d.ts +0 -183
  324. package/lib/locale/lang/zh-tw.cjs +0 -1
  325. package/lib/locale/lang/zh-tw.d.ts +0 -183
  326. package/lib/locale/use-locale.cjs +0 -1
  327. package/lib/locale/use-locale.d.ts +0 -17
  328. /package/es/{locale/index.d.js → components/message-box/types.js} +0 -0
  329. /package/lib/{locale/index.d.cjs → components/message-box/types.cjs} +0 -0
@@ -1,33 +1,32 @@
1
- import { defineComponent as j, ref as c, reactive as ce, computed as h, onMounted as ue, watch as C, nextTick as V, provide as me, createBlock as y, openBlock as d, unref as e, withCtx as E, createElementVNode as u, withKeys as H, normalizeClass as r, createElementBlock as M, createCommentVNode as x, normalizeStyle as de, withDirectives as O, createVNode as p, vShow as pe, createTextVNode as R, toDisplayString as U } from "vue";
2
- import { ClickOutside as fe } from "@vft/directives";
3
- import { VftButton as _ } from "../button/index.js";
1
+ import { defineComponent as W, ref as c, reactive as ie, computed as b, onMounted as se, watch as g, nextTick as C, provide as ce, openBlock as m, createBlock as V, unref as e, withCtx as y, createElementVNode as u, withKeys as L, normalizeClass as n, createElementBlock as H, createCommentVNode as E, normalizeStyle as ue, withDirectives as M, createVNode as p, vShow as de, createTextVNode as O } from "vue";
2
+ import { ClickOutside as me } from "@vft/directives";
3
+ import { VftButton as R } from "../button/index.js";
4
4
  import "../form/index.js";
5
- import { VftIcon as G } from "../icon/index.js";
6
- import { VftInput as ve } from "../input/index.js";
7
- import { VftTooltip as be } from "../tooltip/index.js";
8
- import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as he } from "../../constants/event.js";
5
+ import { VftIcon as U } from "../icon/index.js";
6
+ import { VftInput as pe } from "../input/index.js";
7
+ import { VftTooltip as fe } from "../tooltip/index.js";
8
+ import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as ve } from "../../constants/event.js";
9
9
  import "@vueuse/core";
10
10
  import "@vft/utils";
11
- import { debugWarn as W } from "../../utils/error.js";
11
+ import { debugWarn as G } from "../../utils/error.js";
12
12
  import "../config-provider/hooks/use-global-config.js";
13
- import { debounce as ke } from "lodash-es";
14
- import { useNamespace as we } from "../../hooks/use-namespace/index.js";
13
+ import { debounce as be } from "lodash-es";
14
+ import { useNamespace as he } from "../../hooks/use-namespace/index.js";
15
15
  import "../../hooks/use-model-toggle/index.js";
16
16
  import "@popperjs/core";
17
17
  import "../../hooks/use-z-index/index.js";
18
- import ge from "./components/alpha-slider.vue2.js";
19
- import Ce from "./components/hue-slider.vue.js";
20
- import Ve from "./components/predefine.vue.js";
21
- import ye from "./components/sv-panel.vue.js";
22
- import { colorPickerContextKey as Ee } from "./contants.js";
23
- import z from "./utils/color.js";
24
- import { useLocale as xe } from "../../locale/use-locale.js";
25
- import { useFormItem as Ae, useFormItemInputId as Ie } from "../form/hooks/use-form-item.js";
26
- import { useFormSize as Se, useFormDisabled as $e } from "../form/hooks/use-form-common-props.js";
27
- const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], ze = j({
18
+ import ke from "./components/alpha-slider.vue2.js";
19
+ import we from "./components/hue-slider.vue.js";
20
+ import ge from "./components/predefine.vue.js";
21
+ import Ce from "./components/sv-panel.vue.js";
22
+ import { colorPickerContextKey as Ve } from "./contants.js";
23
+ import $ from "./utils/color.js";
24
+ import { useFormItem as ye, useFormItemInputId as Ee } from "../form/hooks/use-form-item.js";
25
+ import { useFormSize as xe, useFormDisabled as Ae } from "../form/hooks/use-form-common-props.js";
26
+ const Ie = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex"], Se = W({
28
27
  name: "VftColorPicker"
29
- }), to = /* @__PURE__ */ j({
30
- ...ze,
28
+ }), eo = /* @__PURE__ */ W({
29
+ ...Se,
31
30
  props: {
32
31
  modelValue: {},
33
32
  id: {},
@@ -43,232 +42,232 @@ const Pe = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
43
42
  },
44
43
  emits: [
45
44
  P,
46
- he,
45
+ ve,
47
46
  "activeChange",
48
47
  "click-outside"
49
48
  ],
50
- setup(n, { expose: q, emit: J }) {
51
- const { t: f } = xe(), a = n, m = J, l = we("color"), { formItem: k } = Ae(), Q = Se(), A = $e(), { inputId: X, isLabeledByFormItem: B } = Ie(a, {
52
- formItemContext: k
53
- }), F = c(), Y = c(), N = c(), Z = c();
54
- let I = !0;
55
- const t = ce(
56
- new z({
49
+ setup(i, { expose: j, emit: q }) {
50
+ const a = i, d = q, l = he("color"), { formItem: h } = ye(), J = xe(), x = Ae(), { inputId: Q, isLabeledByFormItem: z } = Ee(a, {
51
+ formItemContext: h
52
+ }), B = c(), X = c(), F = c(), Y = c();
53
+ let A = !0;
54
+ const t = ie(
55
+ new $({
57
56
  enableAlpha: a.showAlpha,
58
57
  format: a.colorFormat || "",
59
58
  value: a.modelValue
60
59
  })
61
- ), v = c(!1), i = c(!1), b = c(""), ee = h(() => !a.modelValue && !i.value ? "transparent" : te(t, a.showAlpha)), S = h(() => !a.modelValue && !i.value ? "" : t.value), oe = h(() => B.value ? void 0 : a.label || f("colorPicker")), le = h(() => B.value ? k?.labelId : void 0), ae = h(() => [
60
+ ), f = c(!1), s = c(!1), v = c(""), Z = b(() => !a.modelValue && !s.value ? "transparent" : le(t, a.showAlpha)), I = b(() => !a.modelValue && !s.value ? "" : t.value), _ = b(() => z.value ? void 0 : a.label || "色彩选择器"), ee = b(() => z.value ? h?.labelId : void 0), oe = b(() => [
62
61
  l.b("picker"),
63
- l.is("disabled", A.value),
64
- l.bm("picker", Q.value)
62
+ l.is("disabled", x.value),
63
+ l.bm("picker", J.value)
65
64
  ]);
66
- function te(o, s) {
67
- if (!(o instanceof z))
65
+ function le(o, r) {
66
+ if (!(o instanceof $))
68
67
  throw new TypeError("color should be instance of _color Class");
69
- const { r: g, g: K, b: L } = o.toRgb();
70
- return s ? `rgba(${g}, ${K}, ${L}, ${o.get("alpha") / 100})` : `rgb(${g}, ${K}, ${L})`;
68
+ const { r: w, g: D, b: K } = o.toRgb();
69
+ return r ? `rgba(${w}, ${D}, ${K}, ${o.get("alpha") / 100})` : `rgb(${w}, ${D}, ${K})`;
71
70
  }
72
- function re(o) {
73
- v.value = o;
71
+ function ae(o) {
72
+ f.value = o;
74
73
  }
75
- const w = ke(re, 100);
76
- function ne(o) {
77
- w(!1), $(), m("click-outside", o);
74
+ const k = be(ae, 100);
75
+ function te(o) {
76
+ k(!1), S(), d("click-outside", o);
78
77
  }
79
- function $() {
80
- V(() => {
81
- a.modelValue ? t.fromString(a.modelValue) : (t.value = "", V(() => {
82
- i.value = !1;
78
+ function S() {
79
+ C(() => {
80
+ a.modelValue ? t.fromString(a.modelValue) : (t.value = "", C(() => {
81
+ s.value = !1;
83
82
  }));
84
83
  });
85
84
  }
86
- function T() {
87
- A.value || w(!v.value);
85
+ function N() {
86
+ x.value || k(!f.value);
88
87
  }
89
- function D() {
90
- t.fromString(b.value);
88
+ function T() {
89
+ t.fromString(v.value);
91
90
  }
92
- function ie() {
91
+ function re() {
93
92
  const o = t.value;
94
- m(P, o), m("change", o), a.validateEvent && k?.validate("change").catch((s) => W(s)), w(!1), V(() => {
95
- const s = new z({
93
+ d(P, o), d("change", o), a.validateEvent && h?.validate("change").catch((r) => G(r)), k(!1), C(() => {
94
+ const r = new $({
96
95
  enableAlpha: a.showAlpha,
97
96
  format: a.colorFormat || "",
98
97
  value: a.modelValue
99
98
  });
100
- t.compare(s) || $();
99
+ t.compare(r) || S();
101
100
  });
102
101
  }
103
- function se() {
104
- w(!1), m(P, null), m("change", null), a.modelValue !== null && a.validateEvent && k?.validate("change").catch((o) => W(o)), $();
102
+ function ne() {
103
+ k(!1), d(P, null), d("change", null), a.modelValue !== null && a.validateEvent && h?.validate("change").catch((o) => G(o)), S();
105
104
  }
106
- return ue(() => {
107
- a.modelValue && (b.value = S.value);
108
- }), C(
105
+ return se(() => {
106
+ a.modelValue && (v.value = I.value);
107
+ }), g(
109
108
  () => a.modelValue,
110
109
  (o) => {
111
- o ? o && o !== t.value && (I = !1, t.fromString(o)) : i.value = !1;
110
+ o ? o && o !== t.value && (A = !1, t.fromString(o)) : s.value = !1;
112
111
  }
113
- ), C(
114
- () => S.value,
112
+ ), g(
113
+ () => I.value,
115
114
  (o) => {
116
- b.value = o, I && m("activeChange", o), I = !0;
115
+ v.value = o, A && d("activeChange", o), A = !0;
117
116
  }
118
- ), C(
117
+ ), g(
119
118
  () => t.value,
120
119
  () => {
121
- !a.modelValue && !i.value && (i.value = !0);
120
+ !a.modelValue && !s.value && (s.value = !0);
122
121
  }
123
- ), C(
124
- () => v.value,
122
+ ), g(
123
+ () => f.value,
125
124
  () => {
126
- V(() => {
127
- F.value?.update(), Y.value?.update(), N.value?.update();
125
+ C(() => {
126
+ B.value?.update(), X.value?.update(), F.value?.update();
128
127
  });
129
128
  }
130
- ), me(Ee, {
131
- currentColor: S
132
- }), q({
129
+ ), ce(Ve, {
130
+ currentColor: I
131
+ }), j({
133
132
  /**
134
133
  * @description current color object
135
134
  */
136
135
  color: t,
137
- showPicker: v
138
- }), (o, s) => (d(), y(e(be), {
136
+ showPicker: f
137
+ }), (o, r) => (m(), V(e(fe), {
139
138
  ref_key: "popper",
140
- ref: Z,
141
- visible: v.value,
139
+ ref: Y,
140
+ visible: f.value,
142
141
  "show-arrow": !1,
143
142
  "fallback-placements": ["bottom", "top", "right", "left"],
144
143
  offset: 0,
145
144
  "gpu-acceleration": !1,
146
- "popper-class": [e(l).be("picker", "panel"), e(l).b("dropdown"), n.popperClass],
145
+ "popper-class": [e(l).be("picker", "panel"), e(l).b("dropdown"), i.popperClass],
147
146
  "stop-popper-mouse-event": !1,
148
147
  effect: "light",
149
148
  trigger: "click",
150
149
  transition: `${e(l).namespace.value}-zoom-in-top`,
151
150
  persistent: ""
152
151
  }, {
153
- content: E(() => [
154
- O((d(), M("div", null, [
152
+ content: y(() => [
153
+ M((m(), H("div", null, [
155
154
  u("div", {
156
- class: r(e(l).be("dropdown", "main-wrapper"))
155
+ class: n(e(l).be("dropdown", "main-wrapper"))
157
156
  }, [
158
- p(Ce, {
157
+ p(we, {
159
158
  ref_key: "hue",
160
- ref: F,
159
+ ref: B,
161
160
  class: "hue-slider",
162
161
  color: t,
163
162
  vertical: ""
164
163
  }, null, 8, ["color"]),
165
- p(ye, {
164
+ p(Ce, {
166
165
  ref: "svPanel",
167
166
  color: t
168
167
  }, null, 8, ["color"])
169
168
  ], 2),
170
- n.showAlpha ? (d(), y(ge, {
169
+ i.showAlpha ? (m(), V(ke, {
171
170
  key: 0,
172
171
  ref_key: "alpha",
173
- ref: N,
172
+ ref: F,
174
173
  color: t
175
- }, null, 8, ["color"])) : x("", !0),
176
- n.predefine ? (d(), y(Ve, {
174
+ }, null, 8, ["color"])) : E("", !0),
175
+ i.predefine ? (m(), V(ge, {
177
176
  key: 1,
178
177
  ref: "predefine",
179
178
  color: t,
180
- colors: n.predefine
181
- }, null, 8, ["color", "colors"])) : x("", !0),
179
+ colors: i.predefine
180
+ }, null, 8, ["color", "colors"])) : E("", !0),
182
181
  u("div", {
183
- class: r(e(l).be("dropdown", "btns"))
182
+ class: n(e(l).be("dropdown", "btns"))
184
183
  }, [
185
184
  u("span", {
186
- class: r(e(l).be("dropdown", "value"))
185
+ class: n(e(l).be("dropdown", "value"))
187
186
  }, [
188
- p(e(ve), {
189
- modelValue: b.value,
190
- "onUpdate:modelValue": s[0] || (s[0] = (g) => b.value = g),
187
+ p(e(pe), {
188
+ modelValue: v.value,
189
+ "onUpdate:modelValue": r[0] || (r[0] = (w) => v.value = w),
191
190
  "validate-event": !1,
192
191
  size: "small",
193
- onKeyup: H(D, ["enter"]),
194
- onBlur: D
192
+ onKeyup: L(T, ["enter"]),
193
+ onBlur: T
195
194
  }, null, 8, ["modelValue"])
196
195
  ], 2),
197
- p(e(_), {
198
- class: r(e(l).be("dropdown", "link-btn")),
196
+ p(e(R), {
197
+ class: n(e(l).be("dropdown", "link-btn")),
199
198
  text: "",
200
199
  size: "small",
201
- onClick: se
200
+ onClick: ne
202
201
  }, {
203
- default: E(() => [
204
- R(U(e(f)("clear")), 1)
205
- ]),
202
+ default: y(() => [...r[1] || (r[1] = [
203
+ O(" 清空 ", -1)
204
+ ])]),
206
205
  _: 1
207
206
  }, 8, ["class"]),
208
- p(e(_), {
207
+ p(e(R), {
209
208
  plain: "",
210
209
  size: "small",
211
- class: r(e(l).be("dropdown", "btn")),
212
- onClick: ie
210
+ class: n(e(l).be("dropdown", "btn")),
211
+ onClick: re
213
212
  }, {
214
- default: E(() => [
215
- R(U(e(f)("confirm")), 1)
216
- ]),
213
+ default: y(() => [...r[2] || (r[2] = [
214
+ O(" 确认 ", -1)
215
+ ])]),
217
216
  _: 1
218
217
  }, 8, ["class"])
219
218
  ], 2)
220
219
  ])), [
221
- [e(fe), ne]
220
+ [e(me), te]
222
221
  ])
223
222
  ]),
224
- default: E(() => [
223
+ default: y(() => [
225
224
  u("div", {
226
- id: e(X),
227
- class: r(ae.value),
225
+ id: e(Q),
226
+ class: n(oe.value),
228
227
  role: "button",
229
- "aria-label": oe.value,
230
- "aria-labelledby": le.value,
231
- "aria-description": `${e(f)("currentColor")} {color}。${e(f)("pressEnter")} ${n.modelValue}`,
232
- tabindex: n.tabindex,
233
- onKeydown: H(T, ["enter"])
228
+ "aria-label": _.value,
229
+ "aria-labelledby": ee.value,
230
+ "aria-description": `当前色彩为 {color}。按 Enter 确认选择 ${i.modelValue}`,
231
+ tabindex: i.tabindex,
232
+ onKeydown: L(N, ["enter"])
234
233
  }, [
235
- e(A) ? (d(), M("div", {
234
+ e(x) ? (m(), H("div", {
236
235
  key: 0,
237
- class: r(e(l).be("picker", "mask"))
238
- }, null, 2)) : x("", !0),
236
+ class: n(e(l).be("picker", "mask"))
237
+ }, null, 2)) : E("", !0),
239
238
  u("div", {
240
- class: r(e(l).be("picker", "trigger")),
241
- onClick: T
239
+ class: n(e(l).be("picker", "trigger")),
240
+ onClick: N
242
241
  }, [
243
242
  u("span", {
244
- class: r([e(l).be("picker", "color"), e(l).is("alpha", n.showAlpha)])
243
+ class: n([e(l).be("picker", "color"), e(l).is("alpha", i.showAlpha)])
245
244
  }, [
246
245
  u("span", {
247
- class: r(e(l).be("picker", "color-inner")),
248
- style: de({
249
- backgroundColor: ee.value
246
+ class: n(e(l).be("picker", "color-inner")),
247
+ style: ue({
248
+ backgroundColor: Z.value
250
249
  })
251
250
  }, [
252
- O(p(e(G), {
251
+ M(p(e(U), {
253
252
  icon: "icon-arrow-down",
254
- class: r([e(l).be("picker", "icon"), e(l).is("icon-arrow-down")])
253
+ class: n([e(l).be("picker", "icon"), e(l).is("icon-arrow-down")])
255
254
  }, null, 8, ["class"]), [
256
- [pe, n.modelValue || i.value]
255
+ [de, i.modelValue || s.value]
257
256
  ]),
258
- !n.modelValue && !i.value ? (d(), y(e(G), {
257
+ !i.modelValue && !s.value ? (m(), V(e(U), {
259
258
  key: 0,
260
259
  icon: "icon-circle-close",
261
- class: r([e(l).be("picker", "empty"), e(l).is("icon-close")])
262
- }, null, 8, ["class"])) : x("", !0)
260
+ class: n([e(l).be("picker", "empty"), e(l).is("icon-close")])
261
+ }, null, 8, ["class"])) : E("", !0)
263
262
  ], 6)
264
263
  ], 2)
265
264
  ], 2)
266
- ], 42, Pe)
265
+ ], 42, Ie)
267
266
  ]),
268
267
  _: 1
269
268
  }, 8, ["visible", "popper-class", "transition"]));
270
269
  }
271
270
  });
272
271
  export {
273
- to as default
272
+ eo as default
274
273
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, createElementBlock as C, openBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
1
+ import { defineComponent as p, openBlock as C, createElementBlock as S, normalizeClass as r, unref as e, createElementVNode as n, normalizeStyle as c } from "vue";
2
2
  import { useAlphaSlider as v, useAlphaSliderDOM as A } from "../composables/use-alpha-slider.js";
3
3
  const E = "VftColorAlphaSlider", N = p({
4
4
  name: E
@@ -30,7 +30,7 @@ const E = "VftColorAlphaSlider", N = p({
30
30
  * @type {HTMLElement}
31
31
  */
32
32
  thumb: t
33
- }), (x, a) => (S(), C("div", {
33
+ }), (x, a) => (C(), S("div", {
34
34
  class: r(e(d))
35
35
  }, [
36
36
  n("div", {
@@ -1,8 +1,8 @@
1
1
  import s from "./hue-slider.vue2.js";
2
- import { createElementBlock as t, openBlock as a, normalizeClass as l, createElementVNode as n, normalizeStyle as i } from "vue";
2
+ import { openBlock as t, createElementBlock as a, normalizeClass as l, createElementVNode as n, normalizeStyle as i } from "vue";
3
3
  import m from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function p(e, r, f, d, u, b) {
5
- return a(), t("div", {
5
+ return t(), a("div", {
6
6
  class: l([e.ns.b(), e.ns.is("vertical", e.vertical)])
7
7
  }, [
8
8
  n("div", {
@@ -1,15 +1,15 @@
1
1
  import t from "./predefine.vue2.js";
2
- import { createElementBlock as r, openBlock as l, normalizeClass as s, createElementVNode as a, Fragment as c, renderList as d, normalizeStyle as i } from "vue";
2
+ import { openBlock as r, createElementBlock as l, normalizeClass as s, createElementVNode as a, Fragment as c, renderList as d, normalizeStyle as i } from "vue";
3
3
  import p from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  const m = ["onClick"];
5
5
  function u(e, f, k, v, h, C) {
6
- return l(), r("div", {
6
+ return r(), l("div", {
7
7
  class: s(e.ns.b())
8
8
  }, [
9
9
  a("div", {
10
10
  class: s(e.ns.e("colors"))
11
11
  }, [
12
- (l(!0), r(c, null, d(e.rgbaColors, (o, n) => (l(), r("div", {
12
+ (r(!0), l(c, null, d(e.rgbaColors, (o, n) => (r(), l("div", {
13
13
  key: e.colors[n],
14
14
  class: s([
15
15
  e.ns.e("color-selector"),
@@ -1,8 +1,8 @@
1
1
  import n from "./sv-panel.vue2.js";
2
- import { createElementBlock as a, openBlock as t, normalizeStyle as s, normalizeClass as o, createElementVNode as r } from "vue";
2
+ import { openBlock as a, createElementBlock as t, normalizeStyle as s, normalizeClass as o, createElementVNode as r } from "vue";
3
3
  import i from "../../../_virtual/_plugin-vue_export-helper.js";
4
4
  function p(e, l, u, d, c, m) {
5
- return t(), a("div", {
5
+ return a(), t("div", {
6
6
  class: o(e.ns.b()),
7
7
  style: s({
8
8
  backgroundColor: e.background
@@ -17,8 +17,6 @@ export interface ConfigProviderProps {
17
17
  namespace?: string;
18
18
  /** 设置所有弹窗类组件的 z-index */
19
19
  zIndex?: number;
20
- /** 国际化语言包 */
21
- locale?: any;
22
20
  /** Message 组件全局配置 */
23
21
  message?: MessageConfigContext;
24
22
  dialog?: DialogConfigContext;
@@ -1,4 +1,4 @@
1
- import { defineComponent as s, watch as m, computed as d, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, createElementBlock as v, openBlock as b, normalizeStyle as k, normalizeClass as C, unref as V, renderSlot as y } from "vue";
1
+ import { defineComponent as s, watch as m, computed as l, onActivated as u, onDeactivated as h, onBeforeUnmount as g, getCurrentInstance as p, openBlock as v, createElementBlock as b, normalizeStyle as k, normalizeClass as C, unref as V, renderSlot as y } from "vue";
2
2
  import { inBrowser as S, kebabCase as B } from "@vft/utils";
3
3
  import "@vueuse/core";
4
4
  import { provideGlobalConfig as E } from "./hooks/use-global-config.js";
@@ -22,7 +22,6 @@ const z = s({
22
22
  iconifyPrefixClass: { default: "ico-" },
23
23
  namespace: { default: "vft" },
24
24
  zIndex: {},
25
- locale: {},
26
25
  message: {},
27
26
  dialog: {},
28
27
  projectCfg: {},
@@ -41,7 +40,7 @@ const z = s({
41
40
  },
42
41
  { immediate: !0, deep: !0 }
43
42
  );
44
- const c = d(() => {
43
+ const c = l(() => {
45
44
  const e = t.theme === "dark";
46
45
  return f({
47
46
  ...t.themeVars,
@@ -68,8 +67,8 @@ const z = s({
68
67
  a[`--${t.namespace}-${B(o)}`] = e[o];
69
68
  }), a;
70
69
  }
71
- const l = p();
72
- return E(l.props), (e, a) => (b(), v("div", {
70
+ const d = p();
71
+ return E(d.props), (e, a) => (v(), b("div", {
73
72
  class: C([V(i).b(), { "vft-dark": t.theme === "dark" }]),
74
73
  style: k(c.value)
75
74
  }, [
@@ -3,5 +3,4 @@ import type { InjectionKey, Ref } from 'vue';
3
3
  import type { ConfigProviderProps } from './config-provider.vue';
4
4
  export type ConfigProviderContext = Partial<ConfigProviderProps>;
5
5
  export declare const configProviderContextKey: InjectionKey<Ref<ConfigProviderContext>>;
6
- export declare const localeContextKey: InjectionKey<Ref<any>>;
7
6
  export declare const messageConfig: MessageConfigContext;
@@ -1,6 +1,5 @@
1
- const o = Symbol(), e = Symbol("vftLocale"), t = {};
1
+ const o = Symbol(), e = {};
2
2
  export {
3
3
  o as configProviderContextKey,
4
- e as localeContextKey,
5
- t as messageConfig
4
+ e as messageConfig
6
5
  };
@@ -1,62 +1,59 @@
1
- import { keysOf as c } from "@vft/utils";
1
+ import { keysOf as f } from "@vft/utils";
2
2
  import "@vueuse/core";
3
3
  import { debugWarn as v } from "../../../utils/error.js";
4
- import { ref as g, getCurrentInstance as f, computed as t, unref as p, provide as C, inject as x } from "vue";
4
+ import { ref as g, getCurrentInstance as l, computed as i, unref as p, inject as C, provide as x } from "vue";
5
5
  import "lodash-es";
6
6
  import "../../form/index.js";
7
7
  import { namespaceContextKey as I, useNamespace as b, defaultNamespace as y } from "../../../hooks/use-namespace/index.js";
8
8
  import "../../../hooks/use-model-toggle/index.js";
9
9
  import "@popperjs/core";
10
10
  import { zIndexContextKey as G, useZIndex as z, defaultInitialZIndex as K } from "../../../hooks/use-z-index/index.js";
11
- import { configProviderContextKey as m, localeContextKey as S } from "../constants.js";
12
- const s = g();
11
+ import { configProviderContextKey as m } from "../constants.js";
12
+ const a = g();
13
13
  function d(o, e = void 0) {
14
- const n = f() ? x(m, s) : s;
15
- return o ? t(() => n?.value?.[o] ?? e) : n;
14
+ const n = l() ? C(m, a) : a;
15
+ return o ? i(() => n?.value?.[o] ?? e) : n;
16
16
  }
17
- function D(o) {
17
+ function B(o) {
18
18
  const e = d(), n = b(
19
19
  o,
20
- t(() => e.value?.namespace || y)
21
- ), r = z(
22
- t(() => e.value?.zIndex || K)
20
+ i(() => e.value?.namespace || y)
21
+ ), t = z(
22
+ i(() => e.value?.zIndex || K)
23
23
  );
24
- return j(t(() => p(e) || {})), {
24
+ return S(i(() => p(e) || {})), {
25
25
  ns: n,
26
- zIndex: r
26
+ zIndex: t
27
27
  };
28
28
  }
29
- const j = (o, e, n = !1) => {
30
- const r = !!f(), i = r ? d() : void 0, l = e?.provide ?? (r ? C : void 0);
31
- if (!l) {
29
+ const S = (o, e, n = !1) => {
30
+ const t = !!l(), r = t ? d() : void 0, u = e?.provide ?? (t ? x : void 0);
31
+ if (!u) {
32
32
  v(
33
33
  "provideGlobalConfig",
34
34
  "provideGlobalConfig() can only be used inside setup()."
35
35
  );
36
36
  return;
37
37
  }
38
- const a = t(() => {
39
- const u = p(o);
40
- return i?.value ? k(i.value, u) : u;
38
+ const s = i(() => {
39
+ const c = p(o);
40
+ return r?.value ? j(r.value, c) : c;
41
41
  });
42
- return l(m, a), l(
42
+ return u(m, s), u(
43
43
  I,
44
- t(() => a.value.namespace)
45
- ), l(
44
+ i(() => s.value.namespace)
45
+ ), u(
46
46
  G,
47
- t(() => a.value.zIndex)
48
- ), l(
49
- S,
50
- t(() => a.value.locale)
51
- ), (n || !s.value) && (s.value = a.value), a;
52
- }, k = (o, e) => {
53
- const n = [.../* @__PURE__ */ new Set([...c(o), ...c(e)])], r = {};
54
- for (const i of n)
55
- r[i] = e[i] !== void 0 ? e[i] : o[i];
56
- return r;
47
+ i(() => s.value.zIndex)
48
+ ), (n || !a.value) && (a.value = s.value), s;
49
+ }, j = (o, e) => {
50
+ const n = [.../* @__PURE__ */ new Set([...f(o), ...f(e)])], t = {};
51
+ for (const r of n)
52
+ t[r] = e[r] !== void 0 ? e[r] : o[r];
53
+ return t;
57
54
  };
58
55
  export {
59
- j as provideGlobalConfig,
60
- D as useGlobalComponentSettings,
56
+ S as provideGlobalConfig,
57
+ B as useGlobalComponentSettings,
61
58
  d as useGlobalConfig
62
59
  };