vft 0.0.89 → 0.0.91

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