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,4 +1,4 @@
1
- import { defineComponent as g, useSlots as w, computed as k, openBlock as d, createBlock as z, resolveDynamicComponent as E, unref as a, normalizeClass as i, withCtx as x, createElementVNode as c, withDirectives as y, createElementBlock as m, isRef as C, vModelCheckbox as h, renderSlot as I, Fragment as K, createTextVNode as O, toDisplayString as R, createCommentVNode as B } from "vue";
1
+ import { defineComponent as D, useSlots as w, computed as f, openBlock as d, createBlock as x, resolveDynamicComponent as z, unref as a, normalizeClass as i, withCtx as E, createElementVNode as c, withDirectives as y, createElementBlock as m, isRef as h, vModelCheckbox as C, renderSlot as I, Fragment as K, createTextVNode as O, toDisplayString as R, createCommentVNode as B } from "vue";
2
2
  import { useNamespace as U } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -11,10 +11,9 @@ import { useCheckbox as j } from "./composables/use-checkbox.js";
11
11
  const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name", "tabindex", "disabled", "true-value", "false-value"], q = ["id", "aria-hidden", "disabled", "value", "name", "tabindex"], n = (
12
12
  /* hoist-static*/
13
13
  U("checkbox")
14
- ), A = g({
15
- name: n.b()
16
- }), ee = /* @__PURE__ */ g({
17
- ...A,
14
+ ), _ = /* @__PURE__ */ D({
15
+ name: n.b(),
16
+ __name: "checkbox",
18
17
  props: {
19
18
  modelValue: { type: [Number, String, Boolean] },
20
19
  label: { type: [Number, String, Boolean, Object] },
@@ -32,39 +31,39 @@ const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name"
32
31
  validateEvent: { type: Boolean, default: !0 }
33
32
  },
34
33
  emits: ["update:modelValue", "change"],
35
- setup(L) {
36
- const b = L, V = w(), {
34
+ setup(g) {
35
+ const b = g, L = w(), {
37
36
  inputId: p,
38
- isLabeledByFormItem: N,
37
+ isLabeledByFormItem: V,
39
38
  isChecked: v,
40
39
  isDisabled: r,
41
40
  isFocused: s,
42
- checkboxSize: S,
43
- hasOwnLabel: f,
41
+ checkboxSize: N,
42
+ hasOwnLabel: k,
44
43
  model: t,
45
44
  handleChange: u,
46
- onClickRoot: $
47
- } = j(b, V), F = k(() => [
45
+ onClickRoot: S
46
+ } = j(b, L), $ = f(() => [
48
47
  n.b(),
49
- n.m(S.value),
48
+ n.m(N.value),
50
49
  n.is("disabled", r.value),
51
50
  n.is("bordered", b.border),
52
51
  n.is("checked", v.value)
53
- ]), D = k(() => [
52
+ ]), F = f(() => [
54
53
  n.e("input"),
55
54
  n.is("disabled", r.value),
56
55
  n.is("checked", v.value),
57
56
  n.is("indeterminate", b.indeterminate),
58
57
  n.is("focus", s.value)
59
58
  ]);
60
- return (e, l) => (d(), z(E(!a(f) && a(N) ? "span" : "label"), {
61
- class: i(F.value),
59
+ return (e, l) => (d(), x(z(!a(k) && a(V) ? "span" : "label"), {
60
+ class: i($.value),
62
61
  "aria-controls": e.indeterminate ? e.controls : null,
63
- onClick: a($)
62
+ onClick: a(S)
64
63
  }, {
65
- default: x(() => [
64
+ default: E(() => [
66
65
  c("span", {
67
- class: i(D.value),
66
+ class: i(F.value),
68
67
  tabindex: e.indeterminate ? 0 : void 0,
69
68
  role: e.indeterminate ? "checkbox" : void 0,
70
69
  "aria-checked": e.indeterminate ? "mixed" : void 0
@@ -72,7 +71,7 @@ const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name"
72
71
  e.trueLabel || e.falseLabel ? y((d(), m("input", {
73
72
  key: 0,
74
73
  id: a(p),
75
- "onUpdate:modelValue": l[0] || (l[0] = (o) => C(t) ? t.value = o : null),
74
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => h(t) ? t.value = o : null),
76
75
  class: i(a(n).e("original")),
77
76
  type: "checkbox",
78
77
  "aria-hidden": e.indeterminate ? "true" : "false",
@@ -86,11 +85,11 @@ const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name"
86
85
  onFocus: l[2] || (l[2] = (o) => s.value = !0),
87
86
  onBlur: l[3] || (l[3] = (o) => s.value = !1)
88
87
  }, null, 42, T)), [
89
- [h, a(t)]
88
+ [C, a(t)]
90
89
  ]) : y((d(), m("input", {
91
90
  key: 1,
92
91
  id: a(p),
93
- "onUpdate:modelValue": l[4] || (l[4] = (o) => C(t) ? t.value = o : null),
92
+ "onUpdate:modelValue": l[4] || (l[4] = (o) => h(t) ? t.value = o : null),
94
93
  class: i(a(n).e("original")),
95
94
  type: "checkbox",
96
95
  "aria-hidden": e.indeterminate ? "true" : "false",
@@ -103,13 +102,13 @@ const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name"
103
102
  onFocus: l[6] || (l[6] = (o) => s.value = !0),
104
103
  onBlur: l[7] || (l[7] = (o) => s.value = !1)
105
104
  }, null, 42, q)), [
106
- [h, a(t)]
105
+ [C, a(t)]
107
106
  ]),
108
107
  c("span", {
109
108
  class: i(a(n).e("inner"))
110
109
  }, null, 2)
111
110
  ], 10, M),
112
- a(f) ? (d(), m("span", {
111
+ a(k) ? (d(), m("span", {
113
112
  key: 0,
114
113
  class: i(a(n).e("label"))
115
114
  }, [
@@ -124,5 +123,5 @@ const M = ["tabindex", "role", "aria-checked"], T = ["id", "aria-hidden", "name"
124
123
  }
125
124
  });
126
125
  export {
127
- ee as default
126
+ _ as default
128
127
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as M, ref as v, reactive as N, computed as r, watch as s, nextTick as E, onUnmounted as O, onMounted as S, openBlock as F, createElementBlock as V, normalizeStyle as q, createElementVNode as w, renderSlot as B } from "vue";
1
+ import { defineComponent as A, ref as v, reactive as N, computed as r, watch as s, nextTick as E, onUnmounted as O, onMounted as S, openBlock as F, createElementBlock as V, normalizeStyle as q, createElementVNode as w, renderSlot as p } from "vue";
2
2
  import { addUnit as D } from "@vft/utils";
3
3
  import { addListener as G, removeListener as I } from "resize-detector";
4
4
  import { useNamespace as J } from "../../hooks/use-namespace/index.js";
@@ -10,10 +10,9 @@ import "../../utils/ns-cover.js";
10
10
  const K = ["aria-label"], P = (
11
11
  /* hoist-static*/
12
12
  J("clamp")
13
- ), Q = M({
14
- name: P.b()
15
- }), ne = /* @__PURE__ */ M({
16
- ...Q,
13
+ ), ae = /* @__PURE__ */ A({
14
+ name: P.b(),
15
+ __name: "clamp",
17
16
  props: {
18
17
  text: {},
19
18
  maxHeight: {},
@@ -29,11 +28,11 @@ const K = ["aria-label"], P = (
29
28
  offset: 0,
30
29
  localExpanded: e.expanded,
31
30
  unregisterResizeCallback: null
32
- }), T = r(() => {
31
+ }), B = r(() => {
33
32
  if (!l.localExpanded && e.maxHeight)
34
33
  return D(e.maxHeight);
35
34
  }), y = () => {
36
- m.value && (m.value.textContent = U.value);
35
+ m.value && (m.value.textContent = j.value);
37
36
  }, c = () => {
38
37
  l.localExpanded || (y(), (d() || n.value) && g());
39
38
  }, k = () => {
@@ -54,19 +53,19 @@ const K = ["aria-label"], P = (
54
53
  ).length : 0, g = (...t) => {
55
54
  const [i = 0, f = l.offset] = t;
56
55
  if (f - i <= 3) {
57
- $();
56
+ M();
58
57
  return;
59
58
  }
60
59
  const o = Math.floor((f + i) / 2);
61
60
  h(o), d() ? g(i, o) : g(o, f);
62
61
  }, h = (t) => {
63
62
  l.offset = t, y();
64
- }, $ = () => {
65
- j(), p();
66
- }, j = () => {
63
+ }, M = () => {
64
+ T(), $();
65
+ }, T = () => {
67
66
  for (; (!d() || x() < 2) && l.offset < e.text.length; )
68
67
  H(1);
69
- }, p = () => {
68
+ }, $ = () => {
70
69
  for (; d() && x() > 1 && l.offset > 0; )
71
70
  H(-1);
72
71
  }, H = (t) => {
@@ -81,7 +80,7 @@ const K = ["aria-label"], P = (
81
80
  },
82
81
  { immediate: !0 }
83
82
  );
84
- const U = r(() => n.value ? A.value : e.text), A = r(() => {
83
+ const j = r(() => n.value ? U.value : e.text), U = r(() => {
85
84
  if (e.location === "start")
86
85
  return e.ellipsis + (e.text.slice(0, l.offset) || "").trim();
87
86
  if (e.location === "middle") {
@@ -130,14 +129,14 @@ const K = ["aria-label"], P = (
130
129
  class: "text-clamp",
131
130
  style: q({
132
131
  overflow: "hidden",
133
- maxHeight: T.value
132
+ maxHeight: B.value
134
133
  })
135
134
  }, [
136
135
  w("span", {
137
136
  ref_key: "contentRef",
138
137
  ref: u
139
138
  }, [
140
- B(t.$slots, "before", {
139
+ p(t.$slots, "before", {
141
140
  expand: b,
142
141
  collapse: L,
143
142
  toggle: z,
@@ -149,7 +148,7 @@ const K = ["aria-label"], P = (
149
148
  ref: m,
150
149
  "aria-label": t.text
151
150
  }, null, 8, K),
152
- B(t.$slots, "after", {
151
+ p(t.$slots, "after", {
153
152
  expand: b,
154
153
  collapse: L,
155
154
  toggle: z,
@@ -161,5 +160,5 @@ const K = ["aria-label"], P = (
161
160
  }
162
161
  });
163
162
  export {
164
- ne as default
163
+ ae as default
165
164
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as i, computed as g, openBlock as l, createBlock as p, unref as a, normalizeStyle as d, withCtx as u, createElementBlock as c, normalizeClass as f, toDisplayString as x, createCommentVNode as z } from "vue";
1
+ import { defineComponent as m, computed as g, openBlock as l, createBlock as p, unref as a, normalizeStyle as c, withCtx as d, createElementBlock as u, normalizeClass as f, toDisplayString as x, createCommentVNode as z } from "vue";
2
2
  import "@vft/utils";
3
3
  import "lodash";
4
4
  import "@vueuse/core";
@@ -7,13 +7,12 @@ import { useNamespace as y } from "../../hooks/use-namespace/index.js";
7
7
  import "@popperjs/core";
8
8
  import "../../hooks/use-z-index/index.js";
9
9
  import { VftClamp as h } from "../clamp/index.js";
10
- const k = ["onClick"], s = (
10
+ const k = ["onClick"], i = (
11
11
  /* hoist-static*/
12
12
  y("clamp-toggle")
13
- ), B = i({
14
- name: s.b()
15
- }), D = /* @__PURE__ */ i({
16
- ...B,
13
+ ), w = /* @__PURE__ */ m({
14
+ name: i.b(),
15
+ __name: "clamp-toggle",
17
16
  props: {
18
17
  text: {},
19
18
  maxHeight: {},
@@ -29,9 +28,9 @@ const k = ["onClick"], s = (
29
28
  toggleText: { default: ["展开", "收缩"] }
30
29
  },
31
30
  setup(t) {
32
- const n = g(() => C({ color: t.color, size: t.size, toggleColor: t.toggleColor, toggleSize: t.toggleSize }, "clamp-toggle"));
33
- return (e, S) => (l(), p(a(h), {
34
- style: d(n.value),
31
+ const s = g(() => C({ color: t.color, size: t.size, toggleColor: t.toggleColor, toggleSize: t.toggleSize }, "clamp-toggle"));
32
+ return (e, B) => (l(), p(a(h), {
33
+ style: c(s.value),
35
34
  text: e.text,
36
35
  maxHeight: e.maxHeight,
37
36
  maxLines: e.maxLines,
@@ -40,11 +39,11 @@ const k = ["onClick"], s = (
40
39
  ellipsis: e.ellipsis,
41
40
  autoResize: e.autoResize
42
41
  }, {
43
- after: u(({ toggle: r, expanded: o, clamped: m }) => [
44
- o || m ? (l(), c("span", {
42
+ after: d(({ toggle: n, expanded: o, clamped: r }) => [
43
+ o || r ? (l(), u("span", {
45
44
  key: 0,
46
- class: f(["cursor-pointer", a(s).e("more")]),
47
- onClick: r
45
+ class: f(["cursor-pointer", a(i).e("more")]),
46
+ onClick: n
48
47
  }, x(o ? e.toggleText[1] : e.toggleText[0]), 11, k)) : z("", !0)
49
48
  ]),
50
49
  _: 1
@@ -52,5 +51,5 @@ const k = ["onClick"], s = (
52
51
  }
53
52
  });
54
53
  export {
55
- D as default
54
+ w as default
56
55
  };
@@ -1,6 +1,6 @@
1
- import { defineComponent as c, inject as d, computed as n, openBlock as h, createBlock as $, resolveDynamicComponent as b, normalizeClass as g, normalizeStyle as v, withCtx as x, renderSlot as y } from "vue";
2
- import { isNumber as u, isObject as _ } from "@vft/utils";
3
- import { useNamespace as C } from "../../hooks/use-namespace/index.js";
1
+ import { defineComponent as p, inject as d, computed as n, openBlock as h, createBlock as $, resolveDynamicComponent as b, normalizeClass as g, normalizeStyle as v, withCtx as x, renderSlot as y } from "vue";
2
+ import { isNumber as u, isObject as C } from "@vft/utils";
3
+ import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
4
4
  import "@popperjs/core";
5
5
  import "lodash";
6
6
  import "../../hooks/use-z-index/index.js";
@@ -8,13 +8,12 @@ import "@vueuse/core";
8
8
  import "../../utils/ns-cover.js";
9
9
  import "../row/index.js";
10
10
  import { rowContextKey as j } from "../row/constants.js";
11
- const e = (
11
+ const s = (
12
12
  /* hoist-static*/
13
- C("col")
14
- ), E = c({
15
- name: e.b()
16
- }), A = /* @__PURE__ */ c({
17
- ...E,
13
+ _("col")
14
+ ), q = /* @__PURE__ */ p({
15
+ name: s.b(),
16
+ __name: "col",
18
17
  props: {
19
18
  tag: { default: "div" },
20
19
  span: { default: 24 },
@@ -27,26 +26,26 @@ const e = (
27
26
  lg: {},
28
27
  xl: {}
29
28
  },
30
- setup(f) {
31
- const o = f, { gutter: a } = d(j, { gutter: n(() => 0) }), i = n(() => {
29
+ setup(c) {
30
+ const o = c, { gutter: a } = d(j, { gutter: n(() => 0) }), f = n(() => {
32
31
  const t = {};
33
32
  return a.value && (t.paddingLeft = t.paddingRight = `${a.value / 2}px`), t;
34
33
  }), m = n(() => {
35
34
  const t = [];
36
- return ["span", "offset", "pull", "push"].forEach((s) => {
37
- const l = o[s];
38
- u(l) && (s === "span" ? t.push(e.b(`${o[s]}`)) : l > 0 && t.push(e.b(`${s}-${o[s]}`)));
39
- }), ["xs", "sm", "md", "lg", "xl"].forEach((s) => {
40
- u(o[s]) ? t.push(e.b(`${s}-${o[s]}`)) : _(o[s]) && Object.entries(o[s]).forEach(([l, r]) => {
35
+ return ["span", "offset", "pull", "push"].forEach((e) => {
36
+ const l = o[e];
37
+ u(l) && (e === "span" ? t.push(s.b(`${o[e]}`)) : l > 0 && t.push(s.b(`${e}-${o[e]}`)));
38
+ }), ["xs", "sm", "md", "lg", "xl"].forEach((e) => {
39
+ u(o[e]) ? t.push(s.b(`${e}-${o[e]}`)) : C(o[e]) && Object.entries(o[e]).forEach(([l, r]) => {
41
40
  t.push(
42
- l !== "span" ? e.b(`${s}-${l}-${r}`) : e.b(`${s}-${r}`)
41
+ l !== "span" ? s.b(`${e}-${l}-${r}`) : s.b(`${e}-${r}`)
43
42
  );
44
43
  });
45
- }), a.value && t.push(e.is("guttered")), [e.b(), t];
44
+ }), a.value && t.push(s.is("guttered")), [s.b(), t];
46
45
  });
47
- return (t, p) => (h(), $(b(t.tag), {
46
+ return (t, i) => (h(), $(b(t.tag), {
48
47
  class: g(m.value),
49
- style: v(i.value)
48
+ style: v(f.value)
50
49
  }, {
51
50
  default: x(() => [
52
51
  y(t.$slots, "default")
@@ -56,5 +55,5 @@ const e = (
56
55
  }
57
56
  });
58
57
  export {
59
- A as default
58
+ q as default
60
59
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as g, renderSlot as m } from "vue";
1
+ import { defineComponent as d, openBlock as e, createBlock as s, Transition as i, mergeProps as n, unref as r, toHandlers as p, withCtx as m, renderSlot as g } from "vue";
2
2
  import { useNamespace as l } from "../../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -6,12 +6,11 @@ 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 f = o({
10
- name: "VtfCollapseTransition"
11
- }), _ = /* @__PURE__ */ o({
12
- ...f,
13
- setup(y) {
14
- const a = l("collapse-transition"), d = {
9
+ const P = /* @__PURE__ */ d({
10
+ name: "VtfCollapseTransition",
11
+ __name: "collapse-transition",
12
+ setup(f) {
13
+ const o = l("collapse-transition"), a = {
15
14
  beforeEnter(t) {
16
15
  t.dataset || (t.dataset = {}), t.dataset.oldPaddingTop = t.style.paddingTop, t.dataset.oldPaddingBottom = t.style.paddingBottom, t.style.maxHeight = 0, t.style.paddingTop = 0, t.style.paddingBottom = 0;
17
16
  },
@@ -31,16 +30,16 @@ const f = o({
31
30
  t.style.maxHeight = "", t.style.overflow = t.dataset.oldOverflow, t.style.paddingTop = t.dataset.oldPaddingTop, t.style.paddingBottom = t.dataset.oldPaddingBottom;
32
31
  }
33
32
  };
34
- return (t, c) => (e(), s(i, n({
35
- name: r(a).b()
36
- }, p(d)), {
37
- default: g(() => [
38
- m(t.$slots, "default")
33
+ return (t, y) => (e(), s(i, n({
34
+ name: r(o).b()
35
+ }, p(a)), {
36
+ default: m(() => [
37
+ g(t.$slots, "default")
39
38
  ]),
40
39
  _: 3
41
40
  }, 16, ["name"]));
42
41
  }
43
42
  });
44
43
  export {
45
- _ as default
44
+ P as default
46
45
  };
@@ -1,13 +1,12 @@
1
1
  import { defineComponent as t, renderSlot as n } from "vue";
2
- const o = t({
2
+ const s = /* @__PURE__ */ t({
3
3
  name: "VftCollectionItem",
4
- inheritAttrs: !1
5
- }), a = /* @__PURE__ */ t({
6
- ...o,
7
- setup(r) {
8
- return (e, s) => n(e.$slots, "default");
4
+ inheritAttrs: !1,
5
+ __name: "collection-item",
6
+ setup(o) {
7
+ return (e, r) => n(e.$slots, "default");
9
8
  }
10
9
  });
11
10
  export {
12
- a as default
11
+ s as default
13
12
  };
@@ -1,11 +1,9 @@
1
- import { defineComponent as e, renderSlot as n } from "vue";
2
- const o = e({
3
- inheritAttrs: !1
4
- }), a = /* @__PURE__ */ e({
5
- ...o,
1
+ import { defineComponent as t, renderSlot as r } from "vue";
2
+ const a = /* @__PURE__ */ t({
3
+ inheritAttrs: !1,
6
4
  __name: "collection",
7
- setup(r) {
8
- return (t, _) => n(t.$slots, "default");
5
+ setup(n) {
6
+ return (e, o) => r(e.$slots, "default");
9
7
  }
10
8
  });
11
9
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as U, ref as c, reactive as ne, computed as h, onMounted as ie, watch as w, nextTick as g, provide as se, openBlock as m, createBlock as y, unref as o, withCtx as C, withDirectives as D, createElementBlock as x, createElementVNode as p, normalizeClass as t, createVNode as f, createCommentVNode as V, withKeys as L, createTextVNode as H, normalizeStyle as ue, vShow as ce } from "vue";
1
+ import { defineComponent as te, ref as u, reactive as ne, computed as h, onMounted as ie, watch as w, nextTick as g, provide as se, openBlock as m, createBlock as y, unref as o, withCtx as C, withDirectives as D, createElementBlock as x, createElementVNode as p, normalizeClass as t, createVNode as f, createCommentVNode as V, withKeys as L, createTextVNode as H, normalizeStyle as ce, vShow as ue } from "vue";
2
2
  import { debounce as pe } from "lodash";
3
3
  import { VftButton as M } from "../button/index.js";
4
4
  import { VftIcon as O } from "../icon/index.js";
@@ -12,20 +12,19 @@ import "../../hooks/use-z-index/index.js";
12
12
  import "@vueuse/core";
13
13
  import "@vft/utils";
14
14
  import { debugWarn as R } from "../../utils/error.js";
15
- import { UPDATE_MODEL_EVENT as P, CHANGE_EVENT as be } from "../../constants/event.js";
15
+ import { UPDATE_MODEL_EVENT as $, CHANGE_EVENT as be } from "../../constants/event.js";
16
16
  import "../../utils/ns-cover.js";
17
17
  import he from "./components/alpha-slider.vue2.js";
18
18
  import { colorPickerContextKey as ke } from "./contants.js";
19
19
  import we from "./components/hue-slider.vue.js";
20
20
  import ge from "./components/predefine.vue.js";
21
21
  import ye from "./components/sv-panel.vue.js";
22
- import $ from "./utils/color.js";
22
+ import z from "./utils/color.js";
23
23
  import { useFormItem as Ce, useFormItemInputId as Ve } from "../form/hooks/use-form-item.js";
24
24
  import { useFormSize as Ee, useFormDisabled as Ae } from "../form/hooks/use-form-common-props.js";
25
- const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex", "onKeydown"], _e = U({
26
- name: "VftColorPicker"
27
- }), Ye = /* @__PURE__ */ U({
28
- ..._e,
25
+ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex", "onKeydown"], Xe = /* @__PURE__ */ te({
26
+ name: "VftColorPicker",
27
+ __name: "color-picker",
29
28
  props: {
30
29
  modelValue: {},
31
30
  id: {},
@@ -39,37 +38,37 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
39
38
  predefine: {},
40
39
  validateEvent: { type: Boolean, default: !0 }
41
40
  },
42
- emits: [P, be, "activeChange", "click-outside"],
43
- setup(G, { expose: W, emit: d }) {
44
- const a = G, l = ve("color"), { formItem: i } = Ce(), j = Ee(), E = Ae(), { inputId: q, isLabeledByFormItem: z } = Ve(a, {
41
+ emits: [$, be, "activeChange", "click-outside"],
42
+ setup(U, { expose: G, emit: d }) {
43
+ const a = U, l = ve("color"), { formItem: i } = Ce(), W = Ee(), E = Ae(), { inputId: j, isLabeledByFormItem: B } = Ve(a, {
45
44
  formItemContext: i
46
- }), B = c(), J = c(), F = c(), Q = c();
45
+ }), _ = u(), q = u(), F = u(), J = u();
47
46
  let A = !0;
48
47
  const r = ne(
49
- new $({
48
+ new z({
50
49
  enableAlpha: a.showAlpha,
51
50
  format: a.colorFormat || "",
52
51
  value: a.modelValue
53
52
  })
54
- ), v = c(!1), s = c(!1), b = c(""), X = h(() => !a.modelValue && !s.value ? "transparent" : oe(r, a.showAlpha)), S = h(() => !a.modelValue && !s.value ? "" : r.value), Y = h(() => z.value ? void 0 : a.label || "色彩选择器"), Z = h(() => z.value ? i == null ? void 0 : i.labelId : void 0), ee = h(() => [
53
+ ), v = u(!1), s = u(!1), b = u(""), Q = h(() => !a.modelValue && !s.value ? "transparent" : ee(r, a.showAlpha)), S = h(() => !a.modelValue && !s.value ? "" : r.value), X = h(() => B.value ? void 0 : a.label || "色彩选择器"), Y = h(() => B.value ? i == null ? void 0 : i.labelId : void 0), Z = h(() => [
55
54
  l.b("picker"),
56
55
  l.is("disabled", E.value),
57
- l.bm("picker", j.value)
56
+ l.bm("picker", W.value)
58
57
  ]);
59
- function oe(e, n) {
60
- if (!(e instanceof $))
58
+ function ee(e, n) {
59
+ if (!(e instanceof z))
61
60
  throw new TypeError("color should be instance of _color Class");
62
- const { r: u, g: I, b: K } = e.toRgb();
63
- return n ? `rgba(${u}, ${I}, ${K}, ${e.get("alpha") / 100})` : `rgb(${u}, ${I}, ${K})`;
61
+ const { r: c, g: I, b: K } = e.toRgb();
62
+ return n ? `rgba(${c}, ${I}, ${K}, ${e.get("alpha") / 100})` : `rgb(${c}, ${I}, ${K})`;
64
63
  }
65
- function le(e) {
64
+ function oe(e) {
66
65
  v.value = e;
67
66
  }
68
- const k = pe(le, 100);
69
- function ae(e) {
70
- k(!1), _(), d("click-outside", e);
67
+ const k = pe(oe, 100);
68
+ function le(e) {
69
+ k(!1), P(), d("click-outside", e);
71
70
  }
72
- function _() {
71
+ function P() {
73
72
  g(() => {
74
73
  a.modelValue ? r.fromString(a.modelValue) : (r.value = "", g(() => {
75
74
  s.value = !1;
@@ -82,19 +81,19 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
82
81
  function T() {
83
82
  r.fromString(b.value);
84
83
  }
85
- function re() {
84
+ function ae() {
86
85
  const e = r.value;
87
- d(P, e), d("change", e), a.validateEvent && (i == null || i.validate("change").catch((n) => R(n))), k(!1), g(() => {
88
- const n = new $({
86
+ d($, e), d("change", e), a.validateEvent && (i == null || i.validate("change").catch((n) => R(n))), k(!1), g(() => {
87
+ const n = new z({
89
88
  enableAlpha: a.showAlpha,
90
89
  format: a.colorFormat || "",
91
90
  value: a.modelValue
92
91
  });
93
- r.compare(n) || _();
92
+ r.compare(n) || P();
94
93
  });
95
94
  }
96
- function te() {
97
- k(!1), d(P, null), d("change", null), a.modelValue !== null && a.validateEvent && (i == null || i.validate("change").catch((e) => R(e))), _();
95
+ function re() {
96
+ k(!1), d($, null), d("change", null), a.modelValue !== null && a.validateEvent && (i == null || i.validate("change").catch((e) => R(e))), P();
98
97
  }
99
98
  return ie(() => {
100
99
  a.modelValue && (b.value = S.value);
@@ -117,13 +116,13 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
117
116
  () => v.value,
118
117
  () => {
119
118
  g(() => {
120
- var e, n, u;
121
- (e = B.value) == null || e.update(), (n = J.value) == null || n.update(), (u = F.value) == null || u.update();
119
+ var e, n, c;
120
+ (e = _.value) == null || e.update(), (n = q.value) == null || n.update(), (c = F.value) == null || c.update();
122
121
  });
123
122
  }
124
123
  ), se(ke, {
125
124
  currentColor: S
126
- }), W({
125
+ }), G({
127
126
  /**
128
127
  * @description current color object
129
128
  */
@@ -131,7 +130,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
131
130
  showPicker: v
132
131
  }), (e, n) => (m(), y(o(me), {
133
132
  ref_key: "popper",
134
- ref: Q,
133
+ ref: J,
135
134
  visible: v.value,
136
135
  "show-arrow": !1,
137
136
  "fallback-placements": ["bottom", "top", "right", "left"],
@@ -151,7 +150,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
151
150
  }, [
152
151
  f(we, {
153
152
  ref_key: "hue",
154
- ref: B,
153
+ ref: _,
155
154
  class: "hue-slider",
156
155
  color: r,
157
156
  vertical: ""
@@ -181,7 +180,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
181
180
  }, [
182
181
  f(o(fe), {
183
182
  modelValue: b.value,
184
- "onUpdate:modelValue": n[0] || (n[0] = (u) => b.value = u),
183
+ "onUpdate:modelValue": n[0] || (n[0] = (c) => b.value = c),
185
184
  "validate-event": !1,
186
185
  size: "small",
187
186
  onKeyup: L(T, ["enter"]),
@@ -192,7 +191,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
192
191
  class: t(o(l).be("dropdown", "link-btn")),
193
192
  text: "",
194
193
  size: "small",
195
- onClick: te
194
+ onClick: re
196
195
  }, {
197
196
  default: C(() => [
198
197
  H(" 取消 ")
@@ -203,7 +202,7 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
203
202
  plain: "",
204
203
  size: "small",
205
204
  class: t(o(l).be("dropdown", "btn")),
206
- onClick: re
205
+ onClick: ae
207
206
  }, {
208
207
  default: C(() => [
209
208
  H(" 确认 ")
@@ -212,16 +211,16 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
212
211
  }, 8, ["class"])
213
212
  ], 2)
214
213
  ])), [
215
- [o(de), ae]
214
+ [o(de), le]
216
215
  ])
217
216
  ]),
218
217
  default: C(() => [
219
218
  p("div", {
220
- id: o(q),
221
- class: t(ee.value),
219
+ id: o(j),
220
+ class: t(Z.value),
222
221
  role: "button",
223
- "aria-label": Y.value,
224
- "aria-labelledby": Z.value,
222
+ "aria-label": X.value,
223
+ "aria-labelledby": Y.value,
225
224
  "aria-description": `目前色彩為 {color}。按一下 Enter 以選擇新色彩${e.modelValue}`,
226
225
  tabindex: e.tabindex,
227
226
  onKeydown: L(N, ["enter"])
@@ -239,15 +238,15 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
239
238
  }, [
240
239
  p("span", {
241
240
  class: t(o(l).be("picker", "color-inner")),
242
- style: ue({
243
- backgroundColor: X.value
241
+ style: ce({
242
+ backgroundColor: Q.value
244
243
  })
245
244
  }, [
246
245
  D(f(o(O), {
247
246
  icon: "ico-ep:arrow-down",
248
247
  class: t([o(l).be("picker", "icon"), o(l).is("icon-arrow-down")])
249
248
  }, null, 8, ["class"]), [
250
- [ce, e.modelValue || s.value]
249
+ [ue, e.modelValue || s.value]
251
250
  ]),
252
251
  !e.modelValue && !s.value ? (m(), y(o(O), {
253
252
  key: 0,
@@ -264,5 +263,5 @@ const Se = ["id", "aria-label", "aria-labelledby", "aria-description", "tabindex
264
263
  }
265
264
  });
266
265
  export {
267
- Ye as default
266
+ Xe as default
268
267
  };