vft 0.0.507 → 0.0.511

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