vft 0.0.97 → 0.0.99

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 (194) hide show
  1. package/es/components/affix/affix.vue2.js +25 -26
  2. package/es/components/alert/alert.vue2.js +17 -18
  3. package/es/components/backtop/backtop.vue2.js +14 -15
  4. package/es/components/button/button-group.vue2.js +14 -15
  5. package/es/components/button/button.vue2.js +24 -25
  6. package/es/components/card/card.vue2.js +10 -11
  7. package/es/components/check-tag/check-tag.vue2.js +10 -11
  8. package/es/components/checkbox/checkbox-button.vue2.js +13 -14
  9. package/es/components/checkbox/checkbox-group.vue2.js +15 -16
  10. package/es/components/checkbox/checkbox.vue2.js +24 -25
  11. package/es/components/clamp/clamp.vue2.js +16 -17
  12. package/es/components/clamp-toggle/clamp-toggle.vue2.js +13 -14
  13. package/es/components/col/col.vue2.js +20 -21
  14. package/es/components/collapse-transition/src/collapse-transition.vue2.js +12 -13
  15. package/es/components/collection/collection-item.vue2.js +6 -7
  16. package/es/components/collection/collection.vue2.js +5 -7
  17. package/es/components/color-picker/color-picker.vue2.js +45 -46
  18. package/es/components/color-picker/components/alpha-slider.vue2.js +20 -21
  19. package/es/components/config-provider/config-provider.vue2.js +22 -23
  20. package/es/components/container/aside.vue2.js +12 -13
  21. package/es/components/container/container.vue2.js +10 -11
  22. package/es/components/container/footer.vue2.js +11 -12
  23. package/es/components/container/header.vue2.js +10 -11
  24. package/es/components/container/main.vue2.js +12 -13
  25. package/es/components/context-menu/context-menu.vue2.js +18 -19
  26. package/es/components/date-picker/date-picker-com/basic-date-table.vue2.js +87 -87
  27. package/es/components/date-picker/date-picker-com/basic-month-table.vue2.js +1 -1
  28. package/es/components/date-picker/date-picker-com/basic-year-table.vue2.js +1 -1
  29. package/es/components/date-picker/date-picker-com/panel-date-pick.vue2.js +2 -2
  30. package/es/components/date-picker/date-picker-com/panel-month-range.vue2.js +39 -40
  31. package/es/components/date-time-select/date-time-select.vue2.js +20 -21
  32. package/es/components/descriptions/description-item.vue2.js +9 -10
  33. package/es/components/descriptions/description.vue2.js +20 -21
  34. package/es/components/descriptions/descriptions-row.vue2.js +15 -16
  35. package/es/components/dialog/dialog-content.vue2.js +12 -13
  36. package/es/components/dialog/dialog.vue2.js +40 -41
  37. package/es/components/divider/divider.vue2.js +10 -11
  38. package/es/components/dropdown/dropdown.vue2.js +38 -39
  39. package/es/components/empty/empty.vue2.js +11 -12
  40. package/es/components/footer-layout/footer-layout.vue2.js +7 -8
  41. package/es/components/form/form-item.vue2.js +43 -44
  42. package/es/components/form/form.vue2.js +28 -29
  43. package/es/components/full-screen/full-screen.vue2.js +15 -16
  44. package/es/components/header-layout/header-layout.vue2.js +21 -22
  45. package/es/components/horizontal-menu/horizontal-menu.vue2.js +50 -51
  46. package/es/components/icon/icon.vue2.js +12 -13
  47. package/es/components/icon-text/icon-text.vue2.js +13 -14
  48. package/es/components/iframe-layout/iframe-layout.vue2.js +15 -16
  49. package/es/components/iframe-layout/iframe-page.vue2.js +12 -13
  50. package/es/components/image/image.vue2.js +25 -26
  51. package/es/components/image-viewer/image-viewer.vue2.js +54 -55
  52. package/es/components/link/link.vue2.js +11 -12
  53. package/es/components/list-cell/list-cell.vue2.js +21 -22
  54. package/es/components/logo/logo.vue2.js +12 -13
  55. package/es/components/md-comment/md-comment.vue2.js +12 -13
  56. package/es/components/md-container/md-container.vue2.js +33 -34
  57. package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
  58. package/es/components/menu/menu-item-group.vue2.js +13 -14
  59. package/es/components/menu/menu-item.vue2.js +12 -13
  60. package/es/components/menu/menu.vue2.js +44 -45
  61. package/es/components/menu/sub-menu.vue2.js +30 -31
  62. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
  63. package/es/components/overlay/overlay.vue2.js +23 -24
  64. package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
  65. package/es/components/pagination/pagination.vue2.js +17 -18
  66. package/es/components/popconfirm/popconfirm.vue2.js +17 -18
  67. package/es/components/popover/popover.vue2.js +31 -32
  68. package/es/components/popper/arrow.vue2.js +15 -16
  69. package/es/components/popper/content.vue2.js +38 -39
  70. package/es/components/popper/popper.vue2.js +13 -14
  71. package/es/components/popper/trigger.vue2.js +11 -12
  72. package/es/components/qrcode/qrcode.vue2.js +21 -22
  73. package/es/components/radio/radio-button.vue2.js +16 -17
  74. package/es/components/radio/radio-group.vue2.js +16 -17
  75. package/es/components/radio/radio.vue2.js +15 -16
  76. package/es/components/result/result.vue2.js +12 -13
  77. package/es/components/router-view-content/router-view-content.vue2.js +10 -11
  78. package/es/components/row/row.vue2.js +17 -18
  79. package/es/components/scrollbar/scrollbar.vue2.js +30 -31
  80. package/es/components/search/search.vue2.js +39 -40
  81. package/es/components/side-menu/side-menu.vue2.js +43 -45
  82. package/es/components/skeleton/skeleton-item.vue2.js +9 -10
  83. package/es/components/skeleton/skeleton.vue2.js +11 -12
  84. package/es/components/switch/switch.vue2.js +27 -28
  85. package/es/components/table/table.vue2.js +53 -50
  86. package/es/components/tabs/tab-nav.vue2.js +28 -29
  87. package/es/components/tabs/tab-pane.vue2.js +23 -24
  88. package/es/components/tabs/tabs.vue2.js +30 -31
  89. package/es/components/time-picker/common/picker.vue2.js +48 -49
  90. package/es/components/time-select/time-select.vue2.js +28 -29
  91. package/es/components/tooltip/content.vue2.js +36 -37
  92. package/es/components/tooltip/tooltip.vue2.js +15 -16
  93. package/es/components/tooltip/trigger.vue2.js +37 -38
  94. package/es/components/verify-code/verify-code.vue2.js +19 -20
  95. package/es/constants/date.js +7 -7
  96. package/es/package.json.js +1 -1
  97. package/lib/components/affix/affix.vue2.cjs +1 -1
  98. package/lib/components/alert/alert.vue2.cjs +1 -1
  99. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  100. package/lib/components/button/button-group.vue2.cjs +1 -1
  101. package/lib/components/button/button.vue2.cjs +1 -1
  102. package/lib/components/card/card.vue2.cjs +1 -1
  103. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  104. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  105. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  107. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  108. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  109. package/lib/components/col/col.vue2.cjs +1 -1
  110. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  111. package/lib/components/collection/collection-item.vue2.cjs +1 -1
  112. package/lib/components/collection/collection.vue2.cjs +1 -1
  113. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  114. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  115. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  116. package/lib/components/container/aside.vue2.cjs +1 -1
  117. package/lib/components/container/container.vue2.cjs +1 -1
  118. package/lib/components/container/footer.vue2.cjs +1 -1
  119. package/lib/components/container/header.vue2.cjs +1 -1
  120. package/lib/components/container/main.vue2.cjs +1 -1
  121. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  122. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  123. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  124. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  125. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  126. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  127. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  128. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  129. package/lib/components/descriptions/description.vue2.cjs +1 -1
  130. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  131. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  132. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  133. package/lib/components/divider/divider.vue2.cjs +1 -1
  134. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  135. package/lib/components/empty/empty.vue2.cjs +1 -1
  136. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  137. package/lib/components/form/form-item.vue2.cjs +1 -1
  138. package/lib/components/form/form.vue2.cjs +1 -1
  139. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  140. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  141. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  142. package/lib/components/icon/icon.vue2.cjs +1 -1
  143. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  144. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  145. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  146. package/lib/components/image/image.vue2.cjs +1 -1
  147. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  148. package/lib/components/link/link.vue2.cjs +1 -1
  149. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  150. package/lib/components/logo/logo.vue2.cjs +1 -1
  151. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  152. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  153. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  154. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  155. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  156. package/lib/components/menu/menu.vue2.cjs +1 -1
  157. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  158. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  159. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  160. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  161. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  162. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  163. package/lib/components/popover/popover.vue2.cjs +1 -1
  164. package/lib/components/popper/arrow.vue2.cjs +1 -1
  165. package/lib/components/popper/content.vue2.cjs +1 -1
  166. package/lib/components/popper/popper.vue2.cjs +1 -1
  167. package/lib/components/popper/trigger.vue2.cjs +1 -1
  168. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  169. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  170. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  171. package/lib/components/radio/radio.vue2.cjs +1 -1
  172. package/lib/components/result/result.vue2.cjs +1 -1
  173. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  174. package/lib/components/row/row.vue2.cjs +1 -1
  175. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  176. package/lib/components/search/search.vue2.cjs +1 -1
  177. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  178. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  179. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  180. package/lib/components/switch/switch.vue2.cjs +1 -1
  181. package/lib/components/table/table.vue2.cjs +1 -1
  182. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  183. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  184. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  185. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  186. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  187. package/lib/components/tooltip/content.vue2.cjs +1 -1
  188. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  189. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  190. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  191. package/lib/constants/date.cjs +1 -1
  192. package/lib/package.json.cjs +1 -1
  193. package/package.json +8 -8
  194. package/web-types.json +1 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as t, renderSlot as o } from "vue";
2
- import { useNamespace as a } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as t, renderSlot as i } from "vue";
2
+ import { useNamespace as o } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
@@ -8,11 +8,10 @@ import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  const r = (
10
10
  /* hoist-static*/
11
- a("descriptions-item")
12
- ), s = t({
13
- name: r.b()
14
- }), b = /* @__PURE__ */ t({
15
- ...s,
11
+ o("descriptions-item")
12
+ ), _ = /* @__PURE__ */ t({
13
+ name: r.b(),
14
+ __name: "description-item",
16
15
  props: {
17
16
  label: {},
18
17
  span: { default: 1 },
@@ -23,10 +22,10 @@ const r = (
23
22
  className: {},
24
23
  labelClassName: {}
25
24
  },
26
- setup(i) {
27
- return (e, l) => o(e.$slots, "default");
25
+ setup(a) {
26
+ return (e, m) => i(e.$slots, "default");
28
27
  }
29
28
  });
30
29
  export {
31
- b as default
30
+ _ as default
32
31
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as N, useSlots as w, getCurrentInstance as z, provide as V, computed as D, openBlock as u, createElementBlock as d, normalizeClass as a, unref as i, createElementVNode as c, renderSlot as g, createTextVNode as k, toDisplayString as C, createCommentVNode as I, Fragment as K, renderList as F, createBlock as L } from "vue";
1
+ import { defineComponent as E, useSlots as w, getCurrentInstance as z, provide as V, computed as D, openBlock as u, createElementBlock as d, normalizeClass as a, unref as i, createElementVNode as m, renderSlot as g, createTextVNode as k, toDisplayString as C, createCommentVNode as I, Fragment as K, renderList as F, createBlock as L } from "vue";
2
2
  import "@vft/utils";
3
3
  import { flattedChildren as R } from "../../utils/vue/vnode.js";
4
4
  import "lodash";
@@ -12,10 +12,9 @@ import { descriptionsKey as q } from "./token.js";
12
12
  const l = (
13
13
  /* hoist-static*/
14
14
  T("descriptions")
15
- ), A = N({
16
- name: l.b()
17
- }), Z = /* @__PURE__ */ N({
18
- ...A,
15
+ ), Y = /* @__PURE__ */ E({
16
+ name: l.b(),
17
+ __name: "description",
19
18
  props: {
20
19
  border: { type: Boolean, default: !1 },
21
20
  column: { default: 3 },
@@ -24,10 +23,10 @@ const l = (
24
23
  title: {},
25
24
  extra: {}
26
25
  },
27
- setup(m) {
28
- const f = w(), S = z();
29
- V(q, S.props);
30
- const $ = D(() => [l.b(), l.m("small")]), h = (e, o, t, r = !1) => (e.props || (e.props = {}), o > t && (e.props.span = t), r && (e.props.span = o), e), B = () => {
26
+ setup(c) {
27
+ const f = w(), N = z();
28
+ V(q, N.props);
29
+ const S = D(() => [l.b(), l.m("small")]), h = (e, o, t, r = !1) => (e.props || (e.props = {}), o > t && (e.props.span = t), r && (e.props.span = o), e), $ = () => {
31
30
  var y;
32
31
  const e = R((y = f.default) == null ? void 0 : y.call(f)).filter(
33
32
  (s) => {
@@ -35,33 +34,33 @@ const l = (
35
34
  return ((n = s == null ? void 0 : s.type) == null ? void 0 : n.name) === "ElDescriptionsItem";
36
35
  }
37
36
  ), o = [];
38
- let t = [], r = m.column, b = 0;
37
+ let t = [], r = c.column, b = 0;
39
38
  return e.forEach((s, n) => {
40
39
  var v;
41
40
  const p = ((v = s == null ? void 0 : s.props) == null ? void 0 : v.span) || 1;
42
41
  if (n < e.length - 1 && (b += p > r ? r : p), n === e.length - 1) {
43
- const E = m.column - b % m.column;
44
- t.push(h(s, E, r, !0)), o.push(t);
42
+ const B = c.column - b % c.column;
43
+ t.push(h(s, B, r, !0)), o.push(t);
45
44
  return;
46
45
  }
47
- p < r ? (r -= p, t.push(s)) : (t.push(h(s, p, r)), o.push(t), r = m.column, t = []);
46
+ p < r ? (r -= p, t.push(s)) : (t.push(h(s, p, r)), o.push(t), r = c.column, t = []);
48
47
  }), o;
49
48
  };
50
49
  return (e, o) => (u(), d("div", {
51
- class: a($.value)
50
+ class: a(S.value)
52
51
  }, [
53
52
  e.title || e.extra || e.$slots.title || e.$slots.extra ? (u(), d("div", {
54
53
  key: 0,
55
54
  class: a(i(l).e("header"))
56
55
  }, [
57
- c("div", {
56
+ m("div", {
58
57
  class: a(i(l).e("title"))
59
58
  }, [
60
59
  g(e.$slots, "title", {}, () => [
61
60
  k(C(e.title), 1)
62
61
  ])
63
62
  ], 2),
64
- c("div", {
63
+ m("div", {
65
64
  class: a(i(l).e("extra"))
66
65
  }, [
67
66
  g(e.$slots, "extra", {}, () => [
@@ -69,14 +68,14 @@ const l = (
69
68
  ])
70
69
  ], 2)
71
70
  ], 2)) : I("", !0),
72
- c("div", {
71
+ m("div", {
73
72
  class: a(i(l).e("body"))
74
73
  }, [
75
- c("table", {
74
+ m("table", {
76
75
  class: a([i(l).e("table"), i(l).is("bordered", e.border)])
77
76
  }, [
78
- c("tbody", null, [
79
- (u(!0), d(K, null, F(B(), (t, r) => (u(), L(j, {
77
+ m("tbody", null, [
78
+ (u(!0), d(K, null, F($(), (t, r) => (u(), L(j, {
80
79
  key: r,
81
80
  row: t
82
81
  }, null, 8, ["row"]))), 128))
@@ -87,5 +86,5 @@ const l = (
87
86
  }
88
87
  });
89
88
  export {
90
- Z as default
89
+ Y as default
91
90
  };
@@ -1,5 +1,5 @@
1
- import { defineComponent as d, inject as y, unref as r, openBlock as e, createElementBlock as o, Fragment as n, createElementVNode as a, renderList as i, createBlock as u, createVNode as m } from "vue";
2
- import { useNamespace as f } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as d, inject as y, unref as r, openBlock as e, createElementBlock as o, Fragment as n, createElementVNode as a, renderList as c, createBlock as s, createVNode as m } from "vue";
2
+ import { useNamespace as k } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
5
5
  import "../../hooks/use-z-index/index.js";
@@ -7,22 +7,21 @@ import "@vueuse/core";
7
7
  import "@vft/utils";
8
8
  import "../../utils/ns-cover.js";
9
9
  import p from "./descriptions-cell.js";
10
- import { descriptionsKey as k } from "./token.js";
10
+ import { descriptionsKey as f } from "./token.js";
11
11
  const _ = { key: 1 }, g = (
12
12
  /* hoist-static*/
13
- f("descriptions-row")
14
- ), b = d({
15
- name: g.b()
16
- }), K = /* @__PURE__ */ d({
17
- ...b,
13
+ k("descriptions-row")
14
+ ), F = /* @__PURE__ */ d({
15
+ name: g.b(),
16
+ __name: "descriptions-row",
18
17
  props: {
19
18
  row: { default: [] }
20
19
  },
21
20
  setup(w) {
22
- const s = y(k, {});
23
- return (c, h) => r(s).direction === "vertical" ? (e(), o(n, { key: 0 }, [
21
+ const u = y(f, {});
22
+ return (i, b) => r(u).direction === "vertical" ? (e(), o(n, { key: 0 }, [
24
23
  a("tr", null, [
25
- (e(!0), o(n, null, i(c.row, (t, l) => (e(), u(r(p), {
24
+ (e(!0), o(n, null, c(i.row, (t, l) => (e(), s(r(p), {
26
25
  key: `tr1-${l}`,
27
26
  cell: t,
28
27
  tag: "th",
@@ -30,7 +29,7 @@ const _ = { key: 1 }, g = (
30
29
  }, null, 8, ["cell"]))), 128))
31
30
  ]),
32
31
  a("tr", null, [
33
- (e(!0), o(n, null, i(c.row, (t, l) => (e(), u(r(p), {
32
+ (e(!0), o(n, null, c(i.row, (t, l) => (e(), s(r(p), {
34
33
  key: `tr2-${l}`,
35
34
  cell: t,
36
35
  tag: "td",
@@ -38,10 +37,10 @@ const _ = { key: 1 }, g = (
38
37
  }, null, 8, ["cell"]))), 128))
39
38
  ])
40
39
  ], 64)) : (e(), o("tr", _, [
41
- (e(!0), o(n, null, i(c.row, (t, l) => (e(), o(n, {
40
+ (e(!0), o(n, null, c(i.row, (t, l) => (e(), o(n, {
42
41
  key: `tr3-${l}`
43
42
  }, [
44
- r(s).border ? (e(), o(n, { key: 0 }, [
43
+ r(u).border ? (e(), o(n, { key: 0 }, [
45
44
  m(r(p), {
46
45
  cell: t,
47
46
  tag: "td",
@@ -52,7 +51,7 @@ const _ = { key: 1 }, g = (
52
51
  tag: "td",
53
52
  type: "content"
54
53
  }, null, 8, ["cell"])
55
- ], 64)) : (e(), u(r(p), {
54
+ ], 64)) : (e(), s(r(p), {
56
55
  key: 1,
57
56
  cell: t,
58
57
  tag: "td",
@@ -63,5 +62,5 @@ const _ = { key: 1 }, g = (
63
62
  }
64
63
  });
65
64
  export {
66
- K as default
65
+ F as default
67
66
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as p, inject as m, computed as B, openBlock as s, createElementBlock as a, unref as e, normalizeClass as l, normalizeStyle as I, createElementVNode as r, renderSlot as n, toDisplayString as R, createVNode as k, createCommentVNode as c } from "vue";
1
+ import { defineComponent as h, inject as m, computed as B, openBlock as s, createElementBlock as a, unref as e, normalizeClass as l, normalizeStyle as I, createElementVNode as r, renderSlot as n, toDisplayString as R, createVNode as k, createCommentVNode as c } from "vue";
2
2
  import { VftIcon as N } from "../icon/index.js";
3
3
  import "../focus-trap/focus-trap.vue2.js";
4
4
  import { FOCUS_TRAP_INJECTION_KEY as $ } from "../focus-trap/tokens.js";
@@ -16,10 +16,9 @@ import { dialogInjectionKey as v } from "./constants.js";
16
16
  const z = ["id"], D = (
17
17
  /* hoist-static*/
18
18
  E("dialog-content")
19
- ), T = p({
20
- name: D.b()
21
- }), W = /* @__PURE__ */ p({
22
- ...T,
19
+ ), Q = /* @__PURE__ */ h({
20
+ name: D.b(),
21
+ __name: "dialog-content",
23
22
  props: {
24
23
  center: { type: Boolean, default: !1 },
25
24
  alignCenter: { type: Boolean, default: !1 },
@@ -31,10 +30,10 @@ const z = ["id"], D = (
31
30
  title: { default: "" }
32
31
  },
33
32
  emits: ["close"],
34
- setup(u) {
35
- const { dialogRef: i, headerRef: d, bodyId: g, ns: t, style: y } = m(v), { focusTrapRef: b } = m($), C = S(b, i), h = B(() => u.draggable);
36
- return V(i, d, h), (o, f) => (s(), a("div", {
37
- ref: e(C),
33
+ setup(p) {
34
+ const { dialogRef: i, headerRef: d, bodyId: u, ns: t, style: g } = m(v), { focusTrapRef: y } = m($), b = S(y, i), C = B(() => p.draggable);
35
+ return V(i, d, C), (o, f) => (s(), a("div", {
36
+ ref: e(b),
38
37
  class: l([
39
38
  e(t).b(),
40
39
  e(t).is("fullscreen", o.fullscreen),
@@ -43,7 +42,7 @@ const z = ["id"], D = (
43
42
  { [e(t).m("center")]: o.center },
44
43
  o.customClass
45
44
  ]),
46
- style: I(e(y)),
45
+ style: I(e(g)),
47
46
  tabindex: "-1"
48
47
  }, [
49
48
  r("header", {
@@ -61,7 +60,7 @@ const z = ["id"], D = (
61
60
  key: 0,
62
61
  class: l(e(t).e("headerbtn")),
63
62
  type: "button",
64
- onClick: f[0] || (f[0] = (j) => o.$emit("close"))
63
+ onClick: f[0] || (f[0] = (T) => o.$emit("close"))
65
64
  }, [
66
65
  k(e(N), {
67
66
  class: l(e(t).e("close")),
@@ -71,7 +70,7 @@ const z = ["id"], D = (
71
70
  ], 2)) : c("", !0)
72
71
  ], 2),
73
72
  r("div", {
74
- id: e(g),
73
+ id: e(u),
75
74
  class: l(e(t).e("body"))
76
75
  }, [
77
76
  n(o.$slots, "default")
@@ -86,5 +85,5 @@ const z = ["id"], D = (
86
85
  }
87
86
  });
88
87
  export {
89
- W as default
88
+ Q as default
90
89
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as B, ref as i, getCurrentInstance as z, provide as O, computed as P, openBlock as g, createBlock as b, Teleport as N, createVNode as f, Transition as q, unref as e, withCtx as a, withDirectives as j, createElementVNode as K, normalizeClass as U, normalizeStyle as G, mergeProps as H, createSlots as J, renderSlot as n, createCommentVNode as Q, vShow as W } from "vue";
1
+ import { defineComponent as V, ref as i, getCurrentInstance as z, provide as O, computed as P, openBlock as C, createBlock as b, Teleport as N, createVNode as f, Transition as q, unref as e, withCtx as a, withDirectives as j, createElementVNode as K, normalizeClass as U, normalizeStyle as G, mergeProps as H, createSlots as J, renderSlot as n, createCommentVNode as Q, vShow as W } from "vue";
2
2
  import { VftOverlay as X } from "../overlay/index.js";
3
3
  import { useNamespace as Y } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
@@ -17,11 +17,10 @@ import { useDialog as te } from "./hooks/use-dialog.js";
17
17
  const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
18
18
  /* hoist-static*/
19
19
  Y("dialog")
20
- ), se = B({
20
+ ), ke = /* @__PURE__ */ V({
21
21
  name: d.b(),
22
- inheritAttrs: !1
23
- }), Ae = /* @__PURE__ */ B({
24
- ...se,
22
+ inheritAttrs: !1,
23
+ __name: "dialog",
25
24
  props: {
26
25
  appendToBody: { type: Boolean, default: !1 },
27
26
  beforeClose: {},
@@ -56,54 +55,54 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
56
55
  openAutoFocus: () => !0,
57
56
  closeAutoFocus: () => !0
58
57
  },
59
- setup(r, { expose: k }) {
60
- const p = i(), A = i(), c = i(), F = z(), {
58
+ setup(r, { expose: B }) {
59
+ const p = i(), k = i(), c = i(), A = z(), {
61
60
  visible: u,
62
61
  titleId: m,
63
62
  bodyId: y,
64
- style: w,
65
- overlayDialogStyle: R,
66
- rendered: v,
67
- zIndex: E,
68
- afterEnter: T,
69
- afterLeave: h,
70
- beforeLeave: I,
71
- handleClose: C,
72
- onModalClick: M,
73
- onOpenAutoFocus: $,
74
- onCloseAutoFocus: D,
75
- onCloseRequested: L,
76
- onFocusoutPrevented: S
77
- } = te(F.props, p);
63
+ style: F,
64
+ overlayDialogStyle: w,
65
+ rendered: g,
66
+ zIndex: R,
67
+ afterEnter: E,
68
+ afterLeave: T,
69
+ beforeLeave: h,
70
+ handleClose: v,
71
+ onModalClick: I,
72
+ onOpenAutoFocus: M,
73
+ onCloseAutoFocus: $,
74
+ onCloseRequested: D,
75
+ onFocusoutPrevented: L
76
+ } = te(A.props, p);
78
77
  O(le, {
79
78
  dialogRef: p,
80
- headerRef: A,
79
+ headerRef: k,
81
80
  bodyId: y,
82
81
  ns: d,
83
- rendered: v,
84
- style: w
82
+ rendered: g,
83
+ style: F
85
84
  });
86
- const l = x(M), V = P(() => r.draggable && !r.fullscreen);
87
- return k({
85
+ const l = x(I), S = P(() => r.draggable && !r.fullscreen);
86
+ return B({
88
87
  /** @description whether the dialog is visible */
89
88
  visible: u,
90
89
  dialogContentRef: c
91
- }), (o, t) => (g(), b(N, {
90
+ }), (o, t) => (C(), b(N, {
92
91
  to: "body",
93
92
  disabled: !o.appendToBody
94
93
  }, [
95
94
  f(q, {
96
95
  name: "dialog-fade",
97
- onAfterEnter: e(T),
98
- onAfterLeave: e(h),
99
- onBeforeLeave: e(I)
96
+ onAfterEnter: e(E),
97
+ onAfterLeave: e(T),
98
+ onBeforeLeave: e(h)
100
99
  }, {
101
100
  default: a(() => [
102
101
  j(f(e(X), {
103
102
  "custom-mask-event": "",
104
103
  mask: o.modal,
105
104
  "overlay-class": o.modalClass,
106
- "z-index": e(E)
105
+ "z-index": e(R)
107
106
  }, {
108
107
  default: a(() => [
109
108
  K("div", {
@@ -113,7 +112,7 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
113
112
  "aria-labelledby": o.title ? void 0 : e(m),
114
113
  "aria-describedby": e(y),
115
114
  class: U(`${e(d).namespace.value}-overlay-dialog`),
116
- style: G(e(R)),
115
+ style: G(e(w)),
117
116
  onClick: t[0] || (t[0] = //@ts-ignore
118
117
  (...s) => e(l).onClick && e(l).onClick(...s)),
119
118
  onMousedown: t[1] || (t[1] = //@ts-ignore
@@ -125,13 +124,13 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
125
124
  loop: "",
126
125
  trapped: e(u),
127
126
  "focus-start-el": "container",
128
- onFocusAfterTrapped: e($),
129
- onFocusAfterReleased: e(D),
130
- onFocusoutPrevented: e(S),
131
- onReleaseRequested: e(L)
127
+ onFocusAfterTrapped: e(M),
128
+ onFocusAfterReleased: e($),
129
+ onFocusoutPrevented: e(L),
130
+ onReleaseRequested: e(D)
132
131
  }, {
133
132
  default: a(() => [
134
- e(v) ? (g(), b(oe, H({
133
+ e(g) ? (C(), b(oe, H({
135
134
  key: 0,
136
135
  ref_key: "dialogContentRef",
137
136
  ref: c
@@ -140,16 +139,16 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
140
139
  center: o.center,
141
140
  "align-center": o.alignCenter,
142
141
  "close-icon": o.closeIcon,
143
- draggable: V.value,
142
+ draggable: S.value,
144
143
  fullscreen: o.fullscreen,
145
144
  "show-close": o.showClose,
146
145
  title: o.title,
147
- onClose: e(C)
146
+ onClose: e(v)
148
147
  }), J({
149
148
  header: a(() => [
150
149
  o.$slots.title ? n(o.$slots, "title", { key: 1 }) : n(o.$slots, "header", {
151
150
  key: 0,
152
- close: e(C),
151
+ close: e(v),
153
152
  titleId: e(m),
154
153
  titleClass: e(d).e("title")
155
154
  })
@@ -183,5 +182,5 @@ const ae = ["aria-label", "aria-labelledby", "aria-describedby"], d = (
183
182
  }
184
183
  });
185
184
  export {
186
- Ae as default
185
+ ke as default
187
186
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as a, computed as m, openBlock as i, createElementBlock as n, normalizeClass as l, unref as t, normalizeStyle as s, renderSlot as c, createCommentVNode as u } from "vue";
1
+ import { defineComponent as d, computed as m, openBlock as i, createElementBlock as n, normalizeClass as a, unref as t, normalizeStyle as s, renderSlot as c, createCommentVNode as u } from "vue";
2
2
  import { useNamespace as f } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -9,10 +9,9 @@ import "../../utils/ns-cover.js";
9
9
  const e = (
10
10
  /* hoist-static*/
11
11
  f("divider")
12
- ), p = a({
13
- name: e.b()
14
- }), h = /* @__PURE__ */ a({
15
- ...p,
12
+ ), B = /* @__PURE__ */ d({
13
+ name: e.b(),
14
+ __name: "divider",
16
15
  props: {
17
16
  direction: { default: "horizontal" },
18
17
  contentPosition: { default: "center" },
@@ -22,7 +21,7 @@ const e = (
22
21
  marginX: {}
23
22
  },
24
23
  setup(o) {
25
- const d = m(() => ({
24
+ const l = m(() => ({
26
25
  ...e.cssVarBlock({
27
26
  "border-style": o.borderStyle,
28
27
  "border-color": o.borderColor,
@@ -30,14 +29,14 @@ const e = (
30
29
  "margin-x": o.marginX
31
30
  })
32
31
  }));
33
- return (r, b) => (i(), n("div", {
34
- class: l([t(e).b(), t(e).m(r.direction)]),
35
- style: s(d.value),
32
+ return (r, p) => (i(), n("div", {
33
+ class: a([t(e).b(), t(e).m(r.direction)]),
34
+ style: s(l.value),
36
35
  role: "separator"
37
36
  }, [
38
37
  r.$slots.default && r.direction !== "vertical" ? (i(), n("div", {
39
38
  key: 0,
40
- class: l([t(e).e("text"), t(e).is(r.contentPosition)])
39
+ class: a([t(e).e("text"), t(e).is(r.contentPosition)])
41
40
  }, [
42
41
  c(r.$slots, "default")
43
42
  ], 2)) : u("", !0)
@@ -45,5 +44,5 @@ const e = (
45
44
  }
46
45
  });
47
46
  export {
48
- h as default
47
+ B as default
49
48
  };