vft 0.0.30 → 0.0.33

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 (287) hide show
  1. package/dist/index.css +1 -1
  2. package/es/components/avatar/avatar.vue.d.ts +2 -2
  3. package/es/components/avatar/avatar.vue2.mjs +3 -2
  4. package/es/components/avatar/index.d.ts +2 -2
  5. package/es/components/avatar/index.mjs +4 -3
  6. package/es/components/back-top/back-top.vue.d.ts +2 -2
  7. package/es/components/back-top/back-top.vue2.mjs +3 -2
  8. package/es/components/back-top/index.d.ts +2 -2
  9. package/es/components/back-top/index.mjs +4 -3
  10. package/es/components/back-top/use-back-top.mjs +11 -10
  11. package/es/components/clamp/clamp.vue2.mjs +10 -9
  12. package/es/components/clamp/index.mjs +4 -3
  13. package/es/components/clamp-toggle/clamp-toggle.vue2.mjs +3 -2
  14. package/es/components/clamp-toggle/index.mjs +4 -3
  15. package/es/components/collapse-transition/src/collapse-transition.vue2.mjs +6 -5
  16. package/es/components/config-provider/config-provider.vue2.mjs +3 -2
  17. package/es/components/config-provider/hooks/use-global-config.d.ts +1 -1
  18. package/es/components/config-provider/hooks/use-global-config.mjs +5 -4
  19. package/es/components/config-provider/index.mjs +11 -10
  20. package/es/components/context-menu/context-menu.vue2.mjs +4 -2
  21. package/es/components/descriptions/description-item.vue2.mjs +6 -5
  22. package/es/components/descriptions/description.vue2.mjs +14 -13
  23. package/es/components/descriptions/descriptions-cell.mjs +12 -11
  24. package/es/components/descriptions/descriptions-row.vue2.mjs +12 -11
  25. package/es/components/descriptions/index.mjs +6 -5
  26. package/es/components/divider/divider.vue2.mjs +6 -5
  27. package/es/components/divider/index.mjs +4 -3
  28. package/es/components/empty/empty.vue2.mjs +3 -2
  29. package/es/components/empty/index.mjs +6 -5
  30. package/es/components/exception/index.mjs +4 -3
  31. package/es/components/focus-trap/focus-trap.vue2.mjs +1 -1
  32. package/es/components/footer-layout/footer-layout.vue2.mjs +10 -9
  33. package/es/components/footer-layout/index.mjs +4 -3
  34. package/es/components/full-screen/full-screen.vue2.mjs +7 -6
  35. package/es/components/full-screen/index.mjs +4 -3
  36. package/es/components/header-layout/header-layout.vue2.mjs +3 -2
  37. package/es/components/header-layout/index.mjs +4 -3
  38. package/es/components/icon/icon.vue2.mjs +7 -6
  39. package/es/components/icon/index.mjs +5 -4
  40. package/es/components/icon-text/icon-text.vue.d.ts +2 -2
  41. package/es/components/icon-text/icon-text.vue2.mjs +10 -9
  42. package/es/components/icon-text/index.d.ts +2 -2
  43. package/es/components/icon-text/index.mjs +4 -3
  44. package/es/components/iframe-layout/iframe-layout.vue2.mjs +3 -2
  45. package/es/components/iframe-layout/iframe-page.vue2.mjs +3 -2
  46. package/es/components/iframe-layout/index.mjs +4 -3
  47. package/es/components/image/image.vue2.mjs +8 -7
  48. package/es/components/image/index.mjs +4 -3
  49. package/es/components/input/index.d.ts +2 -2
  50. package/es/components/input/index.mjs +4 -3
  51. package/es/components/input/input.vue.d.ts +2 -2
  52. package/es/components/input/input.vue2.mjs +3 -2
  53. package/es/components/link/index.mjs +4 -3
  54. package/es/components/link/link.vue2.mjs +3 -2
  55. package/es/components/loading/loading.mjs +56 -50
  56. package/es/components/loading/service.mjs +20 -19
  57. package/es/components/logo/index.mjs +4 -3
  58. package/es/components/logo/logo.vue2.mjs +10 -9
  59. package/es/components/md-code-demo/index.mjs +4 -3
  60. package/es/components/md-code-demo/md-code-demo.mjs +4 -2
  61. package/es/components/md-code-tabs/index.mjs +4 -3
  62. package/es/components/md-comment/index.mjs +4 -3
  63. package/es/components/md-comment/md-comment.vue2.mjs +7 -6
  64. package/es/components/md-container/index.mjs +4 -3
  65. package/es/components/md-container/md-container.vue2.mjs +43 -42
  66. package/es/components/md-tabs/index.mjs +4 -3
  67. package/es/components/md-vue-playground/index.mjs +4 -3
  68. package/es/components/md-vue-playground/md-vue-playground.vue2.mjs +11 -10
  69. package/es/components/menu/index.d.ts +4 -4
  70. package/es/components/menu/index.mjs +9 -8
  71. package/es/components/menu/menu-collapse-transition.vue2.mjs +3 -2
  72. package/es/components/menu/menu-item-group.vue2.mjs +8 -7
  73. package/es/components/menu/menu-item.vue.d.ts +2 -2
  74. package/es/components/menu/menu-item.vue2.mjs +3 -2
  75. package/es/components/menu/menu.vue2.mjs +3 -2
  76. package/es/components/menu/sub-menu.vue2.mjs +3 -2
  77. package/es/components/menu/use-menu-css-var.mjs +3 -2
  78. package/es/components/message/index.mjs +8 -7
  79. package/es/components/message/message.vue2.mjs +5 -4
  80. package/es/components/message/method.mjs +17 -15
  81. package/es/components/multiple-tabs/multiple-tabs.vue2.mjs +3 -2
  82. package/es/components/multiple-tabs/tab-content.vue2.mjs +4 -2
  83. package/es/components/multiple-tabs/use/use-tab-dropdown.mjs +16 -16
  84. package/es/components/overlay/index.mjs +4 -3
  85. package/es/components/overlay/overlay.vue2.mjs +16 -15
  86. package/es/components/page-wrapper/index.mjs +4 -3
  87. package/es/components/page-wrapper/page-wrapper.vue2.mjs +6 -5
  88. package/es/components/pagination/components/jumper.vue2.mjs +15 -14
  89. package/es/components/pagination/components/pager.vue2.mjs +3 -2
  90. package/es/components/pagination/components/sizes.vue2.mjs +3 -2
  91. package/es/components/pagination/components/total.vue2.mjs +5 -4
  92. package/es/components/pagination/index.mjs +9 -8
  93. package/es/components/pagination/pagination.mjs +19 -18
  94. package/es/components/popover/index.d.ts +2 -2
  95. package/es/components/popover/index.mjs +4 -3
  96. package/es/components/popover/popover.vue.d.ts +2 -2
  97. package/es/components/popover/popover.vue2.mjs +3 -2
  98. package/es/components/popper/arrow.vue2.mjs +3 -2
  99. package/es/components/popper/composables/use-content-dom.mjs +3 -2
  100. package/es/components/popper/composables/use-content.mjs +4 -2
  101. package/es/components/popper/index.mjs +10 -9
  102. package/es/components/popper/trigger.vue2.mjs +11 -9
  103. package/es/components/qrcode/index.mjs +4 -3
  104. package/es/components/qrcode/qrcode.vue2.mjs +6 -5
  105. package/es/components/result/index.mjs +4 -3
  106. package/es/components/result/result.vue2.mjs +3 -2
  107. package/es/components/router-view-content/index.d.ts +6 -6
  108. package/es/components/router-view-content/index.mjs +4 -3
  109. package/es/components/router-view-content/router-view-content.vue.d.ts +6 -6
  110. package/es/components/router-view-content/router-view-content.vue2.mjs +17 -16
  111. package/es/components/search/index.mjs +4 -3
  112. package/es/components/search/search.vue2.mjs +3 -2
  113. package/es/components/side-menu/index.mjs +4 -3
  114. package/es/components/side-menu/side-menu.vue2.mjs +14 -12
  115. package/es/components/slot/only-child.mjs +3 -2
  116. package/es/components/tabs/index.mjs +9 -8
  117. package/es/components/tabs/tab-bar.vue2.mjs +3 -2
  118. package/es/components/tabs/tab-nav.vue2.mjs +3 -2
  119. package/es/components/tabs/tab-pane.vue2.mjs +3 -2
  120. package/es/components/tabs/tabs.vue2.mjs +3 -2
  121. package/es/components/tag/index.d.ts +2 -2
  122. package/es/components/tag/index.mjs +4 -3
  123. package/es/components/tag/tag.vue.d.ts +2 -2
  124. package/es/components/tag/tag.vue2.mjs +3 -2
  125. package/es/components/tooltip/content.vue2.mjs +12 -11
  126. package/es/components/tooltip/index.d.ts +2 -2
  127. package/es/components/tooltip/index.mjs +4 -3
  128. package/es/components/tooltip/tooltip.vue.d.ts +2 -2
  129. package/es/components/tooltip/tooltip.vue2.mjs +12 -10
  130. package/es/components/tooltip/trigger.vue2.mjs +7 -6
  131. package/es/components/tooltip/utils.mjs +6 -4
  132. package/es/hooks/use-cursor/index.mjs +4 -4
  133. package/es/hooks/use-id/index.mjs +6 -5
  134. package/es/hooks/use-namespace/index.d.ts +1 -1
  135. package/es/hooks/use-namespace/index.mjs +27 -26
  136. package/es/hooks/use-ordered-children/index.mjs +5 -4
  137. package/es/index.mjs +53 -51
  138. package/es/package.json.mjs +1 -1
  139. package/es/utils/index.d.ts +1 -0
  140. package/es/utils/index.mjs +19 -17
  141. package/es/utils/ns-cover.d.ts +1 -0
  142. package/es/utils/ns-cover.mjs +7 -0
  143. package/lib/components/avatar/avatar.vue.d.ts +2 -2
  144. package/lib/components/avatar/avatar.vue2.js +1 -1
  145. package/lib/components/avatar/index.d.ts +2 -2
  146. package/lib/components/avatar/index.js +1 -1
  147. package/lib/components/back-top/back-top.vue.d.ts +2 -2
  148. package/lib/components/back-top/back-top.vue2.js +1 -1
  149. package/lib/components/back-top/index.d.ts +2 -2
  150. package/lib/components/back-top/index.js +1 -1
  151. package/lib/components/back-top/use-back-top.js +1 -1
  152. package/lib/components/clamp/clamp.vue2.js +1 -1
  153. package/lib/components/clamp/index.js +1 -1
  154. package/lib/components/clamp-toggle/clamp-toggle.vue2.js +1 -1
  155. package/lib/components/clamp-toggle/index.js +1 -1
  156. package/lib/components/collapse-transition/src/collapse-transition.vue2.js +1 -1
  157. package/lib/components/config-provider/config-provider.vue2.js +1 -1
  158. package/lib/components/config-provider/hooks/use-global-config.d.ts +1 -1
  159. package/lib/components/config-provider/hooks/use-global-config.js +1 -1
  160. package/lib/components/config-provider/index.js +1 -1
  161. package/lib/components/context-menu/context-menu.vue2.js +1 -1
  162. package/lib/components/descriptions/description-item.vue2.js +1 -1
  163. package/lib/components/descriptions/description.vue2.js +1 -1
  164. package/lib/components/descriptions/descriptions-cell.js +1 -1
  165. package/lib/components/descriptions/descriptions-row.vue2.js +1 -1
  166. package/lib/components/descriptions/index.js +1 -1
  167. package/lib/components/divider/divider.vue2.js +1 -1
  168. package/lib/components/divider/index.js +1 -1
  169. package/lib/components/empty/empty.vue2.js +1 -1
  170. package/lib/components/empty/index.js +1 -1
  171. package/lib/components/exception/index.js +1 -1
  172. package/lib/components/focus-trap/focus-trap.vue2.js +1 -1
  173. package/lib/components/footer-layout/footer-layout.vue2.js +1 -1
  174. package/lib/components/footer-layout/index.js +1 -1
  175. package/lib/components/full-screen/full-screen.vue2.js +1 -1
  176. package/lib/components/full-screen/index.js +1 -1
  177. package/lib/components/header-layout/header-layout.vue2.js +1 -1
  178. package/lib/components/header-layout/index.js +1 -1
  179. package/lib/components/icon/icon.vue2.js +1 -1
  180. package/lib/components/icon/index.js +1 -1
  181. package/lib/components/icon-text/icon-text.vue.d.ts +2 -2
  182. package/lib/components/icon-text/icon-text.vue2.js +1 -1
  183. package/lib/components/icon-text/index.d.ts +2 -2
  184. package/lib/components/icon-text/index.js +1 -1
  185. package/lib/components/iframe-layout/iframe-layout.vue2.js +1 -1
  186. package/lib/components/iframe-layout/iframe-page.vue2.js +1 -1
  187. package/lib/components/iframe-layout/index.js +1 -1
  188. package/lib/components/image/image.vue2.js +1 -1
  189. package/lib/components/image/index.js +1 -1
  190. package/lib/components/input/index.d.ts +2 -2
  191. package/lib/components/input/index.js +1 -1
  192. package/lib/components/input/input.vue.d.ts +2 -2
  193. package/lib/components/input/input.vue2.js +1 -1
  194. package/lib/components/link/index.js +1 -1
  195. package/lib/components/link/link.vue2.js +1 -1
  196. package/lib/components/loading/loading.js +1 -1
  197. package/lib/components/loading/service.js +1 -1
  198. package/lib/components/logo/index.js +1 -1
  199. package/lib/components/logo/logo.vue2.js +1 -1
  200. package/lib/components/md-code-demo/index.js +1 -1
  201. package/lib/components/md-code-demo/md-code-demo.js +1 -1
  202. package/lib/components/md-code-tabs/index.js +1 -1
  203. package/lib/components/md-comment/index.js +1 -1
  204. package/lib/components/md-comment/md-comment.vue2.js +1 -1
  205. package/lib/components/md-container/index.js +1 -1
  206. package/lib/components/md-container/md-container.vue2.js +1 -1
  207. package/lib/components/md-tabs/index.js +1 -1
  208. package/lib/components/md-vue-playground/index.js +1 -1
  209. package/lib/components/md-vue-playground/md-vue-playground.vue2.js +1 -1
  210. package/lib/components/menu/index.d.ts +4 -4
  211. package/lib/components/menu/index.js +1 -1
  212. package/lib/components/menu/menu-collapse-transition.vue2.js +1 -1
  213. package/lib/components/menu/menu-item-group.vue2.js +1 -1
  214. package/lib/components/menu/menu-item.vue.d.ts +2 -2
  215. package/lib/components/menu/menu-item.vue2.js +1 -1
  216. package/lib/components/menu/menu.vue2.js +1 -1
  217. package/lib/components/menu/sub-menu.vue2.js +1 -1
  218. package/lib/components/menu/use-menu-css-var.js +1 -1
  219. package/lib/components/message/index.js +1 -1
  220. package/lib/components/message/message.vue2.js +1 -1
  221. package/lib/components/message/method.js +1 -1
  222. package/lib/components/multiple-tabs/multiple-tabs.vue2.js +1 -1
  223. package/lib/components/multiple-tabs/tab-content.vue2.js +1 -1
  224. package/lib/components/multiple-tabs/use/use-tab-dropdown.js +1 -1
  225. package/lib/components/overlay/index.js +1 -1
  226. package/lib/components/overlay/overlay.vue2.js +1 -1
  227. package/lib/components/page-wrapper/index.js +1 -1
  228. package/lib/components/page-wrapper/page-wrapper.vue2.js +1 -1
  229. package/lib/components/pagination/components/jumper.vue2.js +1 -1
  230. package/lib/components/pagination/components/pager.vue2.js +1 -1
  231. package/lib/components/pagination/components/sizes.vue2.js +1 -1
  232. package/lib/components/pagination/components/total.vue2.js +1 -1
  233. package/lib/components/pagination/index.js +1 -1
  234. package/lib/components/pagination/pagination.js +1 -1
  235. package/lib/components/popover/index.d.ts +2 -2
  236. package/lib/components/popover/index.js +1 -1
  237. package/lib/components/popover/popover.vue.d.ts +2 -2
  238. package/lib/components/popover/popover.vue2.js +1 -1
  239. package/lib/components/popper/arrow.vue2.js +1 -1
  240. package/lib/components/popper/composables/use-content-dom.js +1 -1
  241. package/lib/components/popper/composables/use-content.js +1 -1
  242. package/lib/components/popper/index.js +1 -1
  243. package/lib/components/popper/trigger.vue2.js +1 -1
  244. package/lib/components/qrcode/index.js +1 -1
  245. package/lib/components/qrcode/qrcode.vue2.js +1 -1
  246. package/lib/components/result/index.js +1 -1
  247. package/lib/components/result/result.vue2.js +1 -1
  248. package/lib/components/router-view-content/index.d.ts +6 -6
  249. package/lib/components/router-view-content/index.js +1 -1
  250. package/lib/components/router-view-content/router-view-content.vue.d.ts +6 -6
  251. package/lib/components/router-view-content/router-view-content.vue2.js +1 -1
  252. package/lib/components/search/index.js +1 -1
  253. package/lib/components/search/search.vue2.js +1 -1
  254. package/lib/components/side-menu/index.js +1 -1
  255. package/lib/components/side-menu/side-menu.vue2.js +1 -1
  256. package/lib/components/slot/only-child.js +1 -1
  257. package/lib/components/tabs/index.js +1 -1
  258. package/lib/components/tabs/tab-bar.vue2.js +1 -1
  259. package/lib/components/tabs/tab-nav.vue2.js +1 -1
  260. package/lib/components/tabs/tab-pane.vue2.js +1 -1
  261. package/lib/components/tabs/tabs.vue2.js +1 -1
  262. package/lib/components/tag/index.d.ts +2 -2
  263. package/lib/components/tag/index.js +1 -1
  264. package/lib/components/tag/tag.vue.d.ts +2 -2
  265. package/lib/components/tag/tag.vue2.js +1 -1
  266. package/lib/components/tooltip/content.vue2.js +1 -1
  267. package/lib/components/tooltip/index.d.ts +2 -2
  268. package/lib/components/tooltip/index.js +1 -1
  269. package/lib/components/tooltip/tooltip.vue.d.ts +2 -2
  270. package/lib/components/tooltip/tooltip.vue2.js +1 -1
  271. package/lib/components/tooltip/trigger.vue2.js +1 -1
  272. package/lib/components/tooltip/utils.js +1 -1
  273. package/lib/hooks/use-cursor/index.js +1 -1
  274. package/lib/hooks/use-id/index.js +1 -1
  275. package/lib/hooks/use-namespace/index.d.ts +1 -1
  276. package/lib/hooks/use-namespace/index.js +1 -1
  277. package/lib/hooks/use-ordered-children/index.js +1 -1
  278. package/lib/index.js +1 -1
  279. package/lib/package.json.js +1 -1
  280. package/lib/utils/index.d.ts +1 -0
  281. package/lib/utils/index.js +1 -1
  282. package/lib/utils/ns-cover.d.ts +1 -0
  283. package/lib/utils/ns-cover.js +1 -0
  284. package/package.json +1 -1
  285. package/theme-style/index.css +1 -1
  286. package/theme-style/src/side-menu.scss +1 -0
  287. package/theme-style/vft-side-menu.css +1 -1
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as E, getCurrentInstance as Z, inject as _, ref as g, computed as I, watch as O, onMounted as tt, onUpdated as et, createVNode as r, nextTick as ot } from "vue";
2
2
  import "@vue/shared";
3
3
  import { throwError as nt } from "../../utils/error.mjs";
4
+ import "../../utils/ns-cover.mjs";
4
5
  import "../divider/index.mjs";
5
6
  import { VftIcon as T } from "../icon/index.mjs";
6
7
  import "../avatar/index.mjs";
@@ -61,7 +62,7 @@ const V = (
61
62
  K("tab-nav")
62
63
  ), ct = E({
63
64
  name: V.b()
64
- }), de = /* @__PURE__ */ E({
65
+ }), be = /* @__PURE__ */ E({
65
66
  ...ct,
66
67
  props: {
67
68
  panes: null,
@@ -212,5 +213,5 @@ const V = (
212
213
  }
213
214
  });
214
215
  export {
215
- de as default
216
+ be as default
216
217
  };
@@ -1,6 +1,7 @@
1
1
  import { defineComponent as b, getCurrentInstance as y, useSlots as C, inject as B, ref as m, computed as d, watch as g, reactive as w, onMounted as N, onUnmounted as k, unref as t, withDirectives as x, openBlock as z, createElementBlock as R, normalizeClass as S, renderSlot as _, vShow as $, createCommentVNode as E } from "vue";
2
2
  import "@vue/shared";
3
3
  import { throwError as P } from "../../utils/error.mjs";
4
+ import "../../utils/ns-cover.mjs";
4
5
  import { TabsRootContextKey as j } from "./types.mjs";
5
6
  import { useNamespace as D } from "../../hooks/use-namespace/index.mjs";
6
7
  import "@popperjs/core";
@@ -13,7 +14,7 @@ const I = ["id", "aria-hidden", "aria-labelledby"], i = (
13
14
  D("tab-pane")
14
15
  ), K = b({
15
16
  name: i.b()
16
- }), O = /* @__PURE__ */ b({
17
+ }), Q = /* @__PURE__ */ b({
17
18
  ...K,
18
19
  props: {
19
20
  label: null,
@@ -58,5 +59,5 @@ const I = ["id", "aria-hidden", "aria-labelledby"], i = (
58
59
  }
59
60
  });
60
61
  export {
61
- O as default
62
+ Q as default
62
63
  };
@@ -6,6 +6,7 @@ import "../../hooks/use-z-index/index.mjs";
6
6
  import "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import { isNumberish as f, isUndefined as I } from "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
9
10
  import { useOrderedChildren as U } from "../../hooks/use-ordered-children/index.mjs";
10
11
  import { UPDATE_MODEL_EVENT as $ } from "@vft/constants";
11
12
  import K from "./tab-nav.vue2.mjs";
@@ -15,7 +16,7 @@ const r = (
15
16
  O("tabs")
16
17
  ), j = y({
17
18
  name: r.b()
18
- }), ne = /* @__PURE__ */ y({
19
+ }), oe = /* @__PURE__ */ y({
19
20
  ...j,
20
21
  props: {
21
22
  type: {
@@ -150,5 +151,5 @@ const r = (
150
151
  }
151
152
  });
152
153
  export {
153
- ne as default
154
+ oe as default
154
155
  };
@@ -24,7 +24,7 @@ export declare const VftTag: import("vft/es/utils").SFCWithInstall<import("vue")
24
24
  required: false;
25
25
  };
26
26
  effect: {
27
- type: import("vue").PropType<"dark" | "light" | "plain" | undefined>;
27
+ type: import("vue").PropType<"light" | "dark" | "plain" | undefined>;
28
28
  required: false;
29
29
  };
30
30
  round: {
@@ -57,7 +57,7 @@ export declare const VftTag: import("vft/es/utils").SFCWithInstall<import("vue")
57
57
  required: false;
58
58
  };
59
59
  effect: {
60
- type: import("vue").PropType<"dark" | "light" | "plain" | undefined>;
60
+ type: import("vue").PropType<"light" | "dark" | "plain" | undefined>;
61
61
  required: false;
62
62
  };
63
63
  round: {
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./tag.vue2.mjs";
6
- const f = t(o);
7
+ const s = t(o);
7
8
  export {
8
- f as VftTag,
9
- f as default
9
+ s as VftTag,
10
+ s as default
10
11
  };
@@ -27,7 +27,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
27
27
  required: false;
28
28
  };
29
29
  effect: {
30
- type: __PropType<"dark" | "light" | "plain" | undefined>;
30
+ type: __PropType<"light" | "dark" | "plain" | undefined>;
31
31
  required: false;
32
32
  };
33
33
  round: {
@@ -60,7 +60,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
60
60
  required: false;
61
61
  };
62
62
  effect: {
63
- type: __PropType<"dark" | "light" | "plain" | undefined>;
63
+ type: __PropType<"light" | "dark" | "plain" | undefined>;
64
64
  required: false;
65
65
  };
66
66
  round: {
@@ -8,10 +8,11 @@ import "../../hooks/use-z-index/index.mjs";
8
8
  import "@vueuse/core";
9
9
  import "@vue/shared";
10
10
  import "@vft/utils";
11
+ import "../../utils/ns-cover.mjs";
11
12
  function k(e) {
12
13
  return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !b(e);
13
14
  }
14
- const x = /* @__PURE__ */ m({
15
+ const I = /* @__PURE__ */ m({
15
16
  __name: "tag",
16
17
  props: {
17
18
  closable: {
@@ -71,5 +72,5 @@ const x = /* @__PURE__ */ m({
71
72
  }
72
73
  });
73
74
  export {
74
- x as default
75
+ I as default
75
76
  };
@@ -7,6 +7,7 @@ import { onClickOutside as ee } from "@vueuse/core";
7
7
  import "@vue/shared";
8
8
  import "@vft/utils";
9
9
  import { composeEventHandlers as T } from "../../utils/event.mjs";
10
+ import "../../utils/ns-cover.mjs";
10
11
  import { usePopperContainerId as te } from "../../hooks/use-popper-container/index.mjs";
11
12
  import "../popper/index.mjs";
12
13
  import { TOOLTIP_INJECTION_KEY as ne } from "./constants.mjs";
@@ -14,7 +15,7 @@ import oe from "../popper/content.vue2.mjs";
14
15
  const ae = E({
15
16
  name: "VftTooltipContent",
16
17
  inheritAttrs: !1
17
- }), be = /* @__PURE__ */ E({
18
+ }), he = /* @__PURE__ */ E({
18
19
  ...ae,
19
20
  props: {
20
21
  boundariesPadding: { default: 0 },
@@ -51,10 +52,10 @@ const ae = E({
51
52
  disabled: { type: Boolean }
52
53
  },
53
54
  setup(e, { expose: k }) {
54
- const { selector: P } = te(), w = _("tooltip"), l = v(null), c = v(!1), {
55
+ const { selector: P } = te(), w = _("tooltip"), r = v(null), c = v(!1), {
55
56
  controlled: p,
56
57
  id: O,
57
- open: r,
58
+ open: l,
58
59
  trigger: u,
59
60
  onClose: i,
60
61
  onOpen: A,
@@ -66,7 +67,7 @@ const ae = E({
66
67
  W(() => {
67
68
  c.value = !0;
68
69
  });
69
- const $ = o(() => t(I) ? !0 : t(r)), m = o(() => e.disabled ? !1 : t(r)), x = o(() => e.appendTo || P.value), M = o(() => e.style ?? {}), R = o(() => !t(r)), z = () => {
70
+ const $ = o(() => t(I) ? !0 : t(l)), m = o(() => e.disabled ? !1 : t(l)), x = o(() => e.appendTo || P.value), M = o(() => e.style ?? {}), R = o(() => !t(l)), z = () => {
70
71
  S();
71
72
  }, g = () => {
72
73
  if (t(p))
@@ -77,14 +78,14 @@ const ae = E({
77
78
  t(u) === "hover" && i();
78
79
  }), j = () => {
79
80
  var n, a;
80
- (a = (n = l.value) == null ? void 0 : n.updatePopper) == null || a.call(n), f == null || f();
81
+ (a = (n = r.value) == null ? void 0 : n.updatePopper) == null || a.call(n), f == null || f();
81
82
  }, H = () => {
82
83
  d == null || d();
83
84
  }, J = () => {
84
85
  N(), s = ee(
85
86
  o(() => {
86
87
  var n;
87
- return (n = l.value) == null ? void 0 : n.popperContentRef;
88
+ return (n = r.value) == null ? void 0 : n.popperContentRef;
88
89
  }),
89
90
  () => {
90
91
  if (t(p))
@@ -97,7 +98,7 @@ const ae = E({
97
98
  };
98
99
  let s;
99
100
  return y(
100
- () => t(r),
101
+ () => t(l),
101
102
  (n) => {
102
103
  n || s == null || s();
103
104
  },
@@ -108,13 +109,13 @@ const ae = E({
108
109
  () => e.content,
109
110
  () => {
110
111
  var n, a;
111
- (a = (n = l.value) == null ? void 0 : n.updatePopper) == null || a.call(n);
112
+ (a = (n = r.value) == null ? void 0 : n.updatePopper) == null || a.call(n);
112
113
  }
113
114
  ), k({
114
115
  /**
115
116
  * @description el-popper-content component instance
116
117
  */
117
- contentRef: l
118
+ contentRef: r
118
119
  }), (n, a) => (b(), h(Y, {
119
120
  disabled: !e.teleported,
120
121
  to: t(x)
@@ -131,7 +132,7 @@ const ae = E({
131
132
  key: 0,
132
133
  id: t(O),
133
134
  ref_key: "contentRef",
134
- ref: l
135
+ ref: r
135
136
  }, n.$attrs, {
136
137
  "aria-label": e.ariaLabel,
137
138
  "aria-hidden": t(R),
@@ -170,5 +171,5 @@ const ae = E({
170
171
  }
171
172
  });
172
173
  export {
173
- be as default
174
+ he as default
174
175
  };
@@ -92,7 +92,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
92
92
  required: false;
93
93
  };
94
94
  effect: {
95
- type: import("vue").PropType<"dark" | "light" | undefined>;
95
+ type: import("vue").PropType<"light" | "dark" | undefined>;
96
96
  required: false;
97
97
  };
98
98
  visible: {
@@ -289,7 +289,7 @@ export declare const VftTooltip: import("vft/es/utils").SFCWithInstall<import("v
289
289
  required: false;
290
290
  };
291
291
  effect: {
292
- type: import("vue").PropType<"dark" | "light" | undefined>;
292
+ type: import("vue").PropType<"light" | "dark" | undefined>;
293
293
  required: false;
294
294
  };
295
295
  visible: {
@@ -2,9 +2,10 @@ import { withInstall as t } from "../../utils/vue/install.mjs";
2
2
  import "vue";
3
3
  import "@vue/shared";
4
4
  import "@vft/utils";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import o from "./tooltip.vue2.mjs";
6
- const a = t(o);
7
+ const l = t(o);
7
8
  export {
8
- a as VftTooltip,
9
- a as default
9
+ l as VftTooltip,
10
+ l as default
10
11
  };
@@ -146,7 +146,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
146
146
  required: false;
147
147
  };
148
148
  effect: {
149
- type: __PropType<"dark" | "light" | undefined>;
149
+ type: __PropType<"light" | "dark" | undefined>;
150
150
  required: false;
151
151
  };
152
152
  visible: {
@@ -364,7 +364,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
364
364
  required: false;
365
365
  };
366
366
  effect: {
367
- type: __PropType<"dark" | "light" | undefined>;
367
+ type: __PropType<"light" | "dark" | undefined>;
368
368
  required: false;
369
369
  };
370
370
  visible: {
@@ -1,7 +1,8 @@
1
- import { defineComponent as k, ref as r, computed as P, provide as I, readonly as S, unref as i, watch as M, onDeactivated as N, openBlock as f, createBlock as h, withCtx as g, createVNode as b, renderSlot as w, createCommentVNode as v, createElementBlock as B, toDisplayString as $ } from "vue";
1
+ import { defineComponent as k, ref as a, computed as P, provide as I, readonly as S, unref as i, watch as M, onDeactivated as N, openBlock as f, createBlock as h, withCtx as g, createVNode as b, renderSlot as w, createCommentVNode as v, createElementBlock as B, toDisplayString as $ } from "vue";
2
2
  import { EVENT_CODE as C } from "@vft/constants";
3
3
  import { VftPopper as x } from "../popper/index.mjs";
4
4
  import { isBoolean as H } from "@vft/utils";
5
+ import "../config-provider/hooks/use-global-config.mjs";
5
6
  import "@popperjs/core";
6
7
  import "lodash";
7
8
  import "../../hooks/use-z-index/index.mjs";
@@ -10,6 +11,7 @@ import { usePopperContainer as z } from "../../hooks/use-popper-container/index.
10
11
  import { useDelayedToggle as D } from "../../hooks/use-delayed-toggle/index.mjs";
11
12
  import "@vueuse/core";
12
13
  import "@vue/shared";
14
+ import "../../utils/ns-cover.mjs";
13
15
  import { TOOLTIP_INJECTION_KEY as K } from "./constants.mjs";
14
16
  import V from "./trigger.vue2.mjs";
15
17
  import J from "./content.vue2.mjs";
@@ -17,7 +19,7 @@ import { useTooltipModelToggle as U } from "./utils.mjs";
17
19
  import Y from "../popper/arrow.vue2.mjs";
18
20
  const j = ["innerHTML"], q = { key: 1 }, G = k({
19
21
  name: "vft-tooltip"
20
- }), ce = /* @__PURE__ */ k({
22
+ }), ge = /* @__PURE__ */ k({
21
23
  ...G,
22
24
  props: {
23
25
  role: { default: "tooltip" },
@@ -69,13 +71,13 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
69
71
  triggerKeys: { default: [C.enter, C.space] }
70
72
  },
71
73
  emits: ["before-show", "before-hide", "show", "hide", "open", "close"],
72
- setup(e, { expose: T, emit: a }) {
74
+ setup(e, { expose: T, emit: r }) {
73
75
  z();
74
- const A = L(), u = r(), d = r(), m = () => {
76
+ const A = L(), u = a(), d = a(), m = () => {
75
77
  var o;
76
78
  const t = i(u);
77
79
  t && ((o = t.popperInstanceRef) == null || o.update());
78
- }, n = r(!1), l = r(), { show: E, hide: s, hasUpdateHandler: O } = U({
80
+ }, n = a(!1), l = a(), { show: E, hide: s, hasUpdateHandler: O } = U({
79
81
  indicator: n,
80
82
  toggleReason: l
81
83
  }), { onOpen: c, onClose: p } = D({
@@ -99,16 +101,16 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
99
101
  i(n) ? p(t) : c(t);
100
102
  },
101
103
  onShow: () => {
102
- a("show", l.value);
104
+ r("show", l.value);
103
105
  },
104
106
  onHide: () => {
105
- a("hide", l.value);
107
+ r("hide", l.value);
106
108
  },
107
109
  onBeforeShow: () => {
108
- a("before-show", l.value);
110
+ r("before-show", l.value);
109
111
  },
110
112
  onBeforeHide: () => {
111
- a("before-hide", l.value);
113
+ r("before-hide", l.value);
112
114
  },
113
115
  updatePopper: m
114
116
  }), M(
@@ -219,5 +221,5 @@ const j = ["innerHTML"], q = { key: 1 }, G = k({
219
221
  }
220
222
  });
221
223
  export {
222
- ce as default
224
+ ge as default
223
225
  };
@@ -4,6 +4,7 @@ import "../popper/index.mjs";
4
4
  import "@vue/shared";
5
5
  import "@vft/utils";
6
6
  import { composeEventHandlers as r } from "../../utils/event.mjs";
7
+ import "../../utils/ns-cover.mjs";
7
8
  import { useNamespace as F } from "../../hooks/use-namespace/index.mjs";
8
9
  import "@popperjs/core";
9
10
  import "lodash";
@@ -14,7 +15,7 @@ import { whenTrigger as i } from "./utils.mjs";
14
15
  import R from "../popper/trigger.vue2.mjs";
15
16
  const V = a({
16
17
  name: "VftTooltipTrigger"
17
- }), U = /* @__PURE__ */ a({
18
+ }), X = /* @__PURE__ */ a({
18
19
  ...V,
19
20
  props: {
20
21
  disabled: { type: Boolean },
@@ -23,8 +24,8 @@ const V = a({
23
24
  virtualRef: null,
24
25
  virtualTriggering: { type: Boolean }
25
26
  },
26
- setup(t, { expose: f }) {
27
- const m = F("tooltip"), { controlled: d, id: v, open: p, onOpen: u, onClose: s, onToggle: l } = E(
27
+ setup(t, { expose: m }) {
28
+ const f = F("tooltip"), { controlled: d, id: v, open: p, onOpen: u, onClose: s, onToggle: l } = E(
28
29
  I,
29
30
  void 0
30
31
  ), C = K(null), n = () => {
@@ -59,7 +60,7 @@ const V = a({
59
60
  t.triggerKeys.includes(c) && (o.preventDefault(), l(o));
60
61
  }
61
62
  );
62
- return f({
63
+ return m({
63
64
  /**
64
65
  * @description trigger element
65
66
  */
@@ -69,7 +70,7 @@ const V = a({
69
70
  "virtual-ref": t.virtualRef,
70
71
  open: e(p),
71
72
  "virtual-triggering": t.virtualTriggering,
72
- class: b(e(m).e("trigger")),
73
+ class: b(e(f).e("trigger")),
73
74
  onBlur: e(M),
74
75
  onClick: e(y),
75
76
  onContextmenu: e(k),
@@ -86,5 +87,5 @@ const V = a({
86
87
  }
87
88
  });
88
89
  export {
89
- U as default
90
+ X as default
90
91
  };
@@ -1,3 +1,4 @@
1
+ import "../config-provider/hooks/use-global-config.mjs";
1
2
  import { unref as t } from "vue";
2
3
  import "@popperjs/core";
3
4
  import "lodash";
@@ -5,14 +6,15 @@ import "../../hooks/use-z-index/index.mjs";
5
6
  import "@vueuse/core";
6
7
  import "@vue/shared";
7
8
  import { isArray as m } from "@vft/utils";
9
+ import "../../utils/ns-cover.mjs";
8
10
  import { createModelToggleComposable as p } from "../../hooks/use-model-toggle/index.mjs";
9
- const l = (o, r) => m(o) ? o.includes(r) : o === r, a = (o, r, e) => (i) => {
11
+ const l = (o, r) => m(o) ? o.includes(r) : o === r, b = (o, r, e) => (i) => {
10
12
  l(t(o), r) && e(i);
11
13
  }, {
12
- useModelToggle: M
14
+ useModelToggle: h
13
15
  } = p("visible");
14
16
  export {
15
17
  l as isTriggerType,
16
- M as useTooltipModelToggle,
17
- a as whenTrigger
18
+ h as useTooltipModelToggle,
19
+ b as whenTrigger
18
20
  };
@@ -2,10 +2,10 @@ import { ref as f } from "vue";
2
2
  function d(r) {
3
3
  const s = f();
4
4
  function i() {
5
- if (r.value == null)
5
+ if (r.value === void 0)
6
6
  return;
7
7
  const { selectionStart: e, selectionEnd: t, value: o } = r.value;
8
- if (e == null || t == null)
8
+ if (e === null || t === null)
9
9
  return;
10
10
  const l = o.slice(0, Math.max(0, e)), n = o.slice(Math.max(0, t));
11
11
  s.value = {
@@ -17,10 +17,10 @@ function d(r) {
17
17
  };
18
18
  }
19
19
  function u() {
20
- if (r.value == null || s.value == null)
20
+ if (r.value === void 0 || s.value === void 0)
21
21
  return;
22
22
  const { value: e } = r.value, { beforeTxt: t, afterTxt: o, selectionStart: l } = s.value;
23
- if (t == null || o == null || l == null)
23
+ if (t === void 0 || o === void 0 || l === void 0)
24
24
  return;
25
25
  let n = e.length;
26
26
  if (e.endsWith(o))
@@ -1,12 +1,13 @@
1
- import { getCurrentInstance as t, inject as i, computed as c, unref as s } from "vue";
1
+ import { getCurrentInstance as n, inject as i, computed as c, unref as s } from "vue";
2
2
  import { isClient as u } from "@vueuse/core";
3
3
  import "@vue/shared";
4
4
  import { debugWarn as d } from "../../utils/error.mjs";
5
+ import "../../utils/ns-cover.mjs";
5
6
  import { useGetDerivedNamespace as p } from "../use-namespace/index.mjs";
6
7
  const r = {
7
8
  prefix: Math.floor(Math.random() * 1e4),
8
9
  current: 0
9
- }, m = Symbol("elIdInjection"), I = () => t() ? i(m, r) : r, g = (n) => {
10
+ }, m = Symbol("elIdInjection"), I = () => n() ? i(m, r) : r, N = (o) => {
10
11
  const e = I();
11
12
  !u && e === r && d(
12
13
  "IdInjection",
@@ -16,13 +17,13 @@ usage: app.provide(ID_INJECTION_KEY, {
16
17
  current: number,
17
18
  })`
18
19
  );
19
- const o = p();
20
+ const t = p();
20
21
  return c(
21
- () => s(n) || `${o.value}-id-${e.prefix}-${e.current++}`
22
+ () => s(o) || `${t.value}-id-${e.prefix}-${e.current++}`
22
23
  );
23
24
  };
24
25
  export {
25
26
  m as ID_INJECTION_KEY,
26
- g as useId,
27
+ N as useId,
27
28
  I as useIdInjection
28
29
  };
@@ -4,7 +4,7 @@ export declare const _bem: (namespace: string, block: string, blockSuffix: strin
4
4
  export declare const namespaceContextKey: InjectionKey<Ref<string | undefined>>;
5
5
  export declare const useGetDerivedNamespace: (namespaceOverrides?: Ref<string>) => import("vue").ComputedRef<string>;
6
6
  export declare const useNamespace: (block: string, namespaceOverrides?: Ref<string>) => {
7
- namespace: import("vue").ComputedRef<string>;
7
+ namespace: Ref<string>;
8
8
  b: (blockSuffix?: string) => string;
9
9
  e: (element?: string) => string;
10
10
  m: (modifier?: string) => string;
@@ -1,46 +1,47 @@
1
- import { inject as v, ref as p, computed as N, unref as V } from "vue";
2
- const m = "vft", l = "is-", c = (a, r, t, o, $) => {
3
- let u = `${a}-${r}`;
4
- return t && (u += `-${t}`), o && (u += `__${o}`), $ && (u += `--${$}`), u;
5
- }, y = Symbol("localeContextKey"), B = (a) => {
6
- const r = a || v(y, p(m));
7
- return N(() => V(r) || m);
8
- }, g = (a, r) => {
9
- const t = B(r);
1
+ import { useGlobalConfig as v } from "../../components/config-provider/hooks/use-global-config.mjs";
2
+ import { inject as p, ref as l, computed as N, unref as V } from "vue";
3
+ const $ = "vft", y = "is-", c = (t, o, a, u, m) => {
4
+ let r = `${t}-${o}`;
5
+ return a && (r += `-${a}`), u && (r += `__${u}`), m && (r += `--${m}`), r;
6
+ }, i = Symbol("localeContextKey"), P = (t) => {
7
+ const o = t || p(i, l($));
8
+ return N(() => V(o) || $);
9
+ }, q = (t, o) => {
10
+ const a = v("namespace", $);
10
11
  return {
11
- namespace: t,
12
- b: (s = "") => c(t.value, a, s, "", ""),
13
- e: (s) => s ? c(t.value, a, "", s, "") : "",
14
- m: (s) => s ? c(t.value, a, "", "", s) : "",
15
- be: (s, e) => s && e ? c(t.value, a, s, e, "") : "",
16
- em: (s, e) => s && e ? c(t.value, a, "", s, e) : "",
17
- bm: (s, e) => s && e ? c(t.value, a, s, "", e) : "",
18
- bem: (s, e, n) => s && e && n ? c(t.value, a, s, e, n) : "",
12
+ namespace: a,
13
+ b: (s = "") => c(a.value, t, s, "", ""),
14
+ e: (s) => s ? c(a.value, t, "", s, "") : "",
15
+ m: (s) => s ? c(a.value, t, "", "", s) : "",
16
+ be: (s, e) => s && e ? c(a.value, t, s, e, "") : "",
17
+ em: (s, e) => s && e ? c(a.value, t, "", s, e) : "",
18
+ bm: (s, e) => s && e ? c(a.value, t, s, "", e) : "",
19
+ bem: (s, e, n) => s && e && n ? c(a.value, t, s, e, n) : "",
19
20
  is: (s, ...e) => {
20
21
  const n = e.length >= 1 ? e[0] : !0;
21
- return s && n ? `${l}${s}` : "";
22
+ return s && n ? `${y}${s}` : "";
22
23
  },
23
24
  // css
24
25
  cssVar: (s) => {
25
26
  const e = {};
26
27
  for (const n in s)
27
- s[n] && (e[`--${t.value}-${n}`] = s[n]);
28
+ s[n] && (e[`--${a.value}-${n}`] = s[n]);
28
29
  return e;
29
30
  },
30
- cssVarName: (s) => `--${t.value}-${s}`,
31
+ cssVarName: (s) => `--${a.value}-${s}`,
31
32
  cssVarBlock: (s) => {
32
33
  const e = {};
33
34
  for (const n in s)
34
- s[n] && (e[`--${t.value}-${a}-${n}`] = s[n]);
35
+ s[n] && (e[`--${a.value}-${t}-${n}`] = s[n]);
35
36
  return e;
36
37
  },
37
- cssVarBlockName: (s) => `--${t.value}-${a}-${s}`
38
+ cssVarBlockName: (s) => `--${a.value}-${t}-${s}`
38
39
  };
39
40
  };
40
41
  export {
41
42
  c as _bem,
42
- m as defaultNamespace,
43
- y as namespaceContextKey,
44
- B as useGetDerivedNamespace,
45
- g as useNamespace
43
+ $ as defaultNamespace,
44
+ i as namespaceContextKey,
45
+ P as useGetDerivedNamespace,
46
+ q as useNamespace
46
47
  };
@@ -2,17 +2,18 @@ import { shallowRef as s, isVNode as m } from "vue";
2
2
  import "@vue/shared";
3
3
  import { flattedChildren as c } from "../../utils/vue/vnode.mjs";
4
4
  import "@vft/utils";
5
- const u = (t, i, d) => c(t.subTree).filter(
5
+ import "../../utils/ns-cover.mjs";
6
+ const p = (t, i, d) => c(t.subTree).filter(
6
7
  (e) => {
7
8
  var r;
8
9
  return m(e) && ((r = e.type) == null ? void 0 : r.name) === i && !!e.component;
9
10
  }
10
- ).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e), f = (t, i) => {
11
+ ).map((e) => e.component.uid).map((e) => d[e]).filter((e) => !!e), v = (t, i) => {
11
12
  const d = {}, o = s([]);
12
13
  return {
13
14
  children: o,
14
15
  addChild: (r) => {
15
- d[r.uid] = r, o.value = u(t, i, d);
16
+ d[r.uid] = r, o.value = p(t, i, d);
16
17
  },
17
18
  removeChild: (r) => {
18
19
  delete d[r], o.value = o.value.filter(
@@ -22,5 +23,5 @@ const u = (t, i, d) => c(t.subTree).filter(
22
23
  };
23
24
  };
24
25
  export {
25
- f as useOrderedChildren
26
+ v as useOrderedChildren
26
27
  };