vft 0.0.97 → 0.0.98

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 (198) 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/index.js +90 -90
  53. package/es/components/link/link.vue2.js +11 -12
  54. package/es/components/list-cell/list-cell.vue2.js +21 -22
  55. package/es/components/logo/logo.vue2.js +12 -13
  56. package/es/components/md-comment/md-comment.vue2.js +12 -13
  57. package/es/components/md-container/md-container.vue2.js +33 -34
  58. package/es/components/md-vue-playground/md-vue-playground.vue2.js +18 -19
  59. package/es/components/menu/menu-item-group.vue2.js +13 -14
  60. package/es/components/menu/menu-item.vue2.js +12 -13
  61. package/es/components/menu/menu.vue2.js +44 -45
  62. package/es/components/menu/sub-menu.vue2.js +30 -31
  63. package/es/components/multiple-tabs/multiple-tabs.vue2.js +35 -38
  64. package/es/components/overlay/overlay.vue2.js +23 -24
  65. package/es/components/page-wrapper/page-wrapper.vue2.js +17 -18
  66. package/es/components/pagination/pagination.vue2.js +17 -18
  67. package/es/components/popconfirm/popconfirm.vue2.js +17 -18
  68. package/es/components/popover/popover.vue2.js +31 -32
  69. package/es/components/popper/arrow.vue2.js +15 -16
  70. package/es/components/popper/content.vue2.js +38 -39
  71. package/es/components/popper/popper.vue2.js +13 -14
  72. package/es/components/popper/trigger.vue2.js +11 -12
  73. package/es/components/qrcode/qrcode.vue2.js +21 -22
  74. package/es/components/radio/radio-button.vue2.js +16 -17
  75. package/es/components/radio/radio-group.vue2.js +16 -17
  76. package/es/components/radio/radio.vue2.js +15 -16
  77. package/es/components/result/result.vue2.js +12 -13
  78. package/es/components/router-view-content/router-view-content.vue2.js +10 -11
  79. package/es/components/row/row.vue2.js +17 -18
  80. package/es/components/scrollbar/scrollbar.vue2.js +30 -31
  81. package/es/components/search/search.vue2.js +39 -40
  82. package/es/components/side-menu/side-menu.vue2.js +43 -45
  83. package/es/components/skeleton/skeleton-item.vue2.js +9 -10
  84. package/es/components/skeleton/skeleton.vue2.js +11 -12
  85. package/es/components/switch/switch.vue2.js +27 -28
  86. package/es/components/table/table.vue2.js +36 -37
  87. package/es/components/tabs/tab-nav.vue2.js +28 -29
  88. package/es/components/tabs/tab-pane.vue2.js +23 -24
  89. package/es/components/tabs/tabs.vue2.js +30 -31
  90. package/es/components/time-picker/common/picker.vue2.js +48 -49
  91. package/es/components/time-select/time-select.vue2.js +28 -29
  92. package/es/components/tooltip/content.vue2.js +36 -37
  93. package/es/components/tooltip/tooltip.vue2.js +15 -16
  94. package/es/components/tooltip/trigger.vue2.js +37 -38
  95. package/es/components/verify-code/verify-code.vue2.js +19 -20
  96. package/es/constants/date.js +7 -7
  97. package/es/index.js +90 -90
  98. package/es/package.json.js +1 -1
  99. package/lib/components/affix/affix.vue2.cjs +1 -1
  100. package/lib/components/alert/alert.vue2.cjs +1 -1
  101. package/lib/components/backtop/backtop.vue2.cjs +1 -1
  102. package/lib/components/button/button-group.vue2.cjs +1 -1
  103. package/lib/components/button/button.vue2.cjs +1 -1
  104. package/lib/components/card/card.vue2.cjs +1 -1
  105. package/lib/components/check-tag/check-tag.vue2.cjs +1 -1
  106. package/lib/components/checkbox/checkbox-button.vue2.cjs +1 -1
  107. package/lib/components/checkbox/checkbox-group.vue2.cjs +1 -1
  108. package/lib/components/checkbox/checkbox.vue2.cjs +1 -1
  109. package/lib/components/clamp/clamp.vue2.cjs +1 -1
  110. package/lib/components/clamp-toggle/clamp-toggle.vue2.cjs +1 -1
  111. package/lib/components/col/col.vue2.cjs +1 -1
  112. package/lib/components/collapse-transition/src/collapse-transition.vue2.cjs +1 -1
  113. package/lib/components/collection/collection-item.vue2.cjs +1 -1
  114. package/lib/components/collection/collection.vue2.cjs +1 -1
  115. package/lib/components/color-picker/color-picker.vue2.cjs +1 -1
  116. package/lib/components/color-picker/components/alpha-slider.vue2.cjs +1 -1
  117. package/lib/components/config-provider/config-provider.vue2.cjs +1 -1
  118. package/lib/components/container/aside.vue2.cjs +1 -1
  119. package/lib/components/container/container.vue2.cjs +1 -1
  120. package/lib/components/container/footer.vue2.cjs +1 -1
  121. package/lib/components/container/header.vue2.cjs +1 -1
  122. package/lib/components/container/main.vue2.cjs +1 -1
  123. package/lib/components/context-menu/context-menu.vue2.cjs +1 -1
  124. package/lib/components/date-picker/date-picker-com/basic-date-table.vue2.cjs +1 -1
  125. package/lib/components/date-picker/date-picker-com/basic-month-table.vue2.cjs +1 -1
  126. package/lib/components/date-picker/date-picker-com/basic-year-table.vue2.cjs +1 -1
  127. package/lib/components/date-picker/date-picker-com/panel-date-pick.vue2.cjs +1 -1
  128. package/lib/components/date-picker/date-picker-com/panel-month-range.vue2.cjs +1 -1
  129. package/lib/components/date-time-select/date-time-select.vue2.cjs +1 -1
  130. package/lib/components/descriptions/description-item.vue2.cjs +1 -1
  131. package/lib/components/descriptions/description.vue2.cjs +1 -1
  132. package/lib/components/descriptions/descriptions-row.vue2.cjs +1 -1
  133. package/lib/components/dialog/dialog-content.vue2.cjs +1 -1
  134. package/lib/components/dialog/dialog.vue2.cjs +1 -1
  135. package/lib/components/divider/divider.vue2.cjs +1 -1
  136. package/lib/components/dropdown/dropdown.vue2.cjs +1 -1
  137. package/lib/components/empty/empty.vue2.cjs +1 -1
  138. package/lib/components/footer-layout/footer-layout.vue2.cjs +1 -1
  139. package/lib/components/form/form-item.vue2.cjs +1 -1
  140. package/lib/components/form/form.vue2.cjs +1 -1
  141. package/lib/components/full-screen/full-screen.vue2.cjs +1 -1
  142. package/lib/components/header-layout/header-layout.vue2.cjs +1 -1
  143. package/lib/components/horizontal-menu/horizontal-menu.vue2.cjs +1 -1
  144. package/lib/components/icon/icon.vue2.cjs +1 -1
  145. package/lib/components/icon-text/icon-text.vue2.cjs +1 -1
  146. package/lib/components/iframe-layout/iframe-layout.vue2.cjs +1 -1
  147. package/lib/components/iframe-layout/iframe-page.vue2.cjs +1 -1
  148. package/lib/components/image/image.vue2.cjs +1 -1
  149. package/lib/components/image-viewer/image-viewer.vue2.cjs +1 -1
  150. package/lib/components/index.cjs +1 -1
  151. package/lib/components/link/link.vue2.cjs +1 -1
  152. package/lib/components/list-cell/list-cell.vue2.cjs +1 -1
  153. package/lib/components/logo/logo.vue2.cjs +1 -1
  154. package/lib/components/md-comment/md-comment.vue2.cjs +1 -1
  155. package/lib/components/md-container/md-container.vue2.cjs +1 -1
  156. package/lib/components/md-vue-playground/md-vue-playground.vue2.cjs +1 -1
  157. package/lib/components/menu/menu-item-group.vue2.cjs +1 -1
  158. package/lib/components/menu/menu-item.vue2.cjs +1 -1
  159. package/lib/components/menu/menu.vue2.cjs +1 -1
  160. package/lib/components/menu/sub-menu.vue2.cjs +1 -1
  161. package/lib/components/multiple-tabs/multiple-tabs.vue2.cjs +1 -1
  162. package/lib/components/overlay/overlay.vue2.cjs +1 -1
  163. package/lib/components/page-wrapper/page-wrapper.vue2.cjs +1 -1
  164. package/lib/components/pagination/pagination.vue2.cjs +1 -1
  165. package/lib/components/popconfirm/popconfirm.vue2.cjs +1 -1
  166. package/lib/components/popover/popover.vue2.cjs +1 -1
  167. package/lib/components/popper/arrow.vue2.cjs +1 -1
  168. package/lib/components/popper/content.vue2.cjs +1 -1
  169. package/lib/components/popper/popper.vue2.cjs +1 -1
  170. package/lib/components/popper/trigger.vue2.cjs +1 -1
  171. package/lib/components/qrcode/qrcode.vue2.cjs +1 -1
  172. package/lib/components/radio/radio-button.vue2.cjs +1 -1
  173. package/lib/components/radio/radio-group.vue2.cjs +1 -1
  174. package/lib/components/radio/radio.vue2.cjs +1 -1
  175. package/lib/components/result/result.vue2.cjs +1 -1
  176. package/lib/components/router-view-content/router-view-content.vue2.cjs +1 -1
  177. package/lib/components/row/row.vue2.cjs +1 -1
  178. package/lib/components/scrollbar/scrollbar.vue2.cjs +1 -1
  179. package/lib/components/search/search.vue2.cjs +1 -1
  180. package/lib/components/side-menu/side-menu.vue2.cjs +1 -1
  181. package/lib/components/skeleton/skeleton-item.vue2.cjs +1 -1
  182. package/lib/components/skeleton/skeleton.vue2.cjs +1 -1
  183. package/lib/components/switch/switch.vue2.cjs +1 -1
  184. package/lib/components/table/table.vue2.cjs +1 -1
  185. package/lib/components/tabs/tab-nav.vue2.cjs +1 -1
  186. package/lib/components/tabs/tab-pane.vue2.cjs +1 -1
  187. package/lib/components/tabs/tabs.vue2.cjs +1 -1
  188. package/lib/components/time-picker/common/picker.vue2.cjs +1 -1
  189. package/lib/components/time-select/time-select.vue2.cjs +1 -1
  190. package/lib/components/tooltip/content.vue2.cjs +1 -1
  191. package/lib/components/tooltip/tooltip.vue2.cjs +1 -1
  192. package/lib/components/tooltip/trigger.vue2.cjs +1 -1
  193. package/lib/components/verify-code/verify-code.vue2.cjs +1 -1
  194. package/lib/constants/date.cjs +1 -1
  195. package/lib/index.cjs +1 -1
  196. package/lib/package.json.cjs +1 -1
  197. package/package.json +8 -8
  198. package/web-types.json +1 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as w, getCurrentInstance as g, useSlots as M, ref as h, watch as p, nextTick as D, computed as d, createVNode as l, provide as O } from "vue";
1
+ import { defineComponent as z, getCurrentInstance as g, useSlots as M, ref as h, watch as p, nextTick as D, computed as d, createVNode as l, provide as O } from "vue";
2
2
  import { useNamespace as U } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -13,10 +13,9 @@ import { TabsRootContextKey as S } from "./types.js";
13
13
  const s = (
14
14
  /* hoist-static*/
15
15
  U("tabs")
16
- ), j = w({
17
- name: s.b()
18
- }), oe = /* @__PURE__ */ w({
19
- ...j,
16
+ ), te = /* @__PURE__ */ z({
17
+ name: s.b(),
18
+ __name: "tabs",
20
19
  props: {
21
20
  closable: {
22
21
  type: Boolean
@@ -62,27 +61,27 @@ const s = (
62
61
  expose: c,
63
62
  emit: t
64
63
  }) {
65
- const T = g(), i = M(), u = h(), r = h(a.modelValue ?? "0"), R = (e) => {
64
+ const w = g(), i = M(), u = h(), r = h(a.modelValue ?? "0"), T = (e) => {
66
65
  r.value = e, t("update:modelValue", e), t("tabChange", e);
67
66
  }, m = async (e) => {
68
67
  var o, n, v;
69
68
  if (!(r.value === e || I(e)))
70
69
  try {
71
- await ((o = a.beforeLeave) == null ? void 0 : o.call(a, e, r.value)) !== !1 && (R(e), (v = (n = u.value) == null ? void 0 : n.removeFocus) == null || v.call(n));
70
+ await ((o = a.beforeLeave) == null ? void 0 : o.call(a, e, r.value)) !== !1 && (T(e), (v = (n = u.value) == null ? void 0 : n.removeFocus) == null || v.call(n));
72
71
  } catch {
73
72
  }
74
- }, x = (e, o, n) => {
73
+ }, R = (e, o, n) => {
75
74
  e.props.disabled || (m(o), t("tabClick", e, n));
76
- }, y = (e, o) => {
75
+ }, x = (e, o) => {
77
76
  e.props.disabled || I(e.props.name) || (o.stopPropagation(), t("edit", e.props.name, "remove"), t("tabRemove", e.props.name));
78
77
  };
79
78
  p(() => a.modelValue, (e) => m(e)), p(r, async () => {
80
79
  var e;
81
80
  await D(), (e = u.value) == null || e.scrollToActiveTab();
82
81
  });
83
- const L = () => {
82
+ const y = () => {
84
83
  t("edit", void 0, "add"), t("tabAdd");
85
- }, N = (e, o, n) => {
84
+ }, L = (e, o, n) => {
86
85
  t("tabContextMenu", e, o, n);
87
86
  }, b = d(() => {
88
87
  var e;
@@ -90,31 +89,31 @@ const s = (
90
89
  class: s.e("content")
91
90
  }, [(e = i.default) == null ? void 0 : e.call(i)]);
92
91
  }), {
93
- children: B,
94
- addChild: P,
95
- removeChild: A
92
+ children: N,
93
+ addChild: B,
94
+ removeChild: P
96
95
  } = $(g(), "vft-tab-pane");
97
96
  O(S, {
98
- props: T.props,
97
+ props: w.props,
99
98
  currentName: r,
100
- registerPane: P,
101
- unregisterPane: A
99
+ registerPane: B,
100
+ unregisterPane: P
102
101
  }), c({
103
102
  currentName: r
104
103
  });
105
- const E = d(() => ({
104
+ const A = d(() => ({
106
105
  icon: "ico-ep:plus",
107
106
  size: 12,
108
107
  ...a.addIconCfg
109
- })), V = d(() => ({
108
+ })), E = d(() => ({
110
109
  icon: "ico-ep:close",
111
110
  size: 14,
112
111
  ...a.closeIconCfg
113
- })), k = d(() => ({
112
+ })), V = d(() => ({
114
113
  icon: "ico-ep:arrow-left",
115
114
  size: 18,
116
115
  ...a.arrowLeftIconCfg
117
- })), z = d(() => ({
116
+ })), k = d(() => ({
118
117
  icon: "ico-ep:arrow-right",
119
118
  size: 18,
120
119
  ...a.arrowRightIconCfg
@@ -125,19 +124,19 @@ const s = (
125
124
  }, [l(K, {
126
125
  ref: u,
127
126
  currentName: r.value,
128
- panes: B.value,
127
+ panes: N.value,
129
128
  stretch: a.stretch,
130
129
  showBar: a.showBar,
131
- closeIconCfg: V.value,
132
- addIconCfg: E.value,
133
- arrowRightIconCfg: z.value,
134
- arrowLeftIconCfg: k.value,
130
+ closeIconCfg: E.value,
131
+ addIconCfg: A.value,
132
+ arrowRightIconCfg: k.value,
133
+ arrowLeftIconCfg: V.value,
135
134
  editable: a.editable,
136
135
  addable: a.addable,
137
- onTabClick: x,
138
- onTabRemove: y,
139
- onTabAdd: L,
140
- onTabContextmenu: N
136
+ onTabClick: R,
137
+ onTabRemove: x,
138
+ onTabAdd: y,
139
+ onTabContextmenu: L
141
140
  }, null), (e = i.headerRight) == null ? void 0 : e.call(i)]);
142
141
  });
143
142
  return () => l("div", {
@@ -146,5 +145,5 @@ const s = (
146
145
  }
147
146
  });
148
147
  export {
149
- oe as default
148
+ te as default
150
149
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as ge, ref as v, inject as je, watch as qe, nextTick as j, computed as i, unref as l, provide as He, openBlock as I, createBlock as w, mergeProps as Le, withCtx as q, normalizeClass as m, normalizeStyle as pe, withModifiers as F, createCommentVNode as H, createElementBlock as We, createElementVNode as ee, renderSlot as de, toDisplayString as Je } from "vue";
1
+ import { defineComponent as Ue, ref as v, inject as je, watch as qe, nextTick as j, computed as i, unref as l, provide as He, openBlock as I, createBlock as w, mergeProps as Le, withCtx as q, normalizeClass as m, normalizeStyle as pe, withModifiers as F, createCommentVNode as H, createElementBlock as We, createElementVNode as ee, renderSlot as de, toDisplayString as Je } from "vue";
2
2
  import { isEqual as Ge } from "lodash";
3
3
  import { onClickOutside as Qe } from "@vueuse/core";
4
4
  import { useNamespace as ae } from "../../../hooks/use-namespace/index.js";
@@ -16,10 +16,9 @@ import { valueEquals as ve, parseDate as me, formatter as he } from "../utils.js
16
16
  import { timePickerDefaultProps as Ze } from "./props.js";
17
17
  import { useFormItem as _e } from "../../form/hooks/use-form-item.js";
18
18
  import { useFormSize as xe } from "../../form/hooks/use-form-common-props.js";
19
- const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], la = ge({
20
- name: "Picker"
21
- }), Ia = /* @__PURE__ */ ge({
22
- ...la,
19
+ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa = ["id", "name", "placeholder", "value", "disabled", "readonly"], ka = /* @__PURE__ */ Ue({
20
+ name: "Picker",
21
+ __name: "picker",
23
22
  props: Ze,
24
23
  emits: [
25
24
  "update:modelValue",
@@ -31,8 +30,8 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
31
30
  "visible-change",
32
31
  "keydown"
33
32
  ],
34
- setup(ye, { expose: be, emit: p }) {
35
- const t = ye, E = v("zh-cn"), h = ae("date"), D = ae("input"), g = ae("range"), { form: W, formItem: V } = _e(), ke = je("VftPopperOptions", {}), J = v(), b = v(), u = v(!1), G = v(!1), le = v(null);
33
+ setup(ge, { expose: ye, emit: p }) {
34
+ const t = ge, E = v("zh-cn"), h = ae("date"), D = ae("input"), g = ae("range"), { form: W, formItem: V } = _e(), be = je("VftPopperOptions", {}), J = v(), b = v(), u = v(!1), G = v(!1), le = v(null);
36
35
  let Q = !1, S = !1;
37
36
  qe(u, (e) => {
38
37
  e ? j(() => {
@@ -50,7 +49,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
50
49
  (o) => he(o, t.valueFormat, E.value)
51
50
  ) : e && (a = he(e, t.valueFormat, E.value)), p("update:modelValue", e && a, E.value);
52
51
  }
53
- }, Ie = (e) => {
52
+ }, ke = (e) => {
54
53
  p("keydown", e);
55
54
  }, T = i(() => {
56
55
  if (b.value) {
@@ -58,10 +57,10 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
58
57
  return Array.from(e.querySelectorAll("input"));
59
58
  }
60
59
  return [];
61
- }), Ve = (e, a, o) => {
60
+ }), Ie = (e, a, o) => {
62
61
  const r = T.value;
63
62
  r.length && (!o || o === "min" ? (r[0].setSelectionRange(e, a), r[0].focus()) : o === "max" && (r[1].setSelectionRange(e, a), r[1].focus()));
64
- }, Pe = () => {
63
+ }, Ve = () => {
65
64
  Y(!0, !0), j(() => {
66
65
  S = !1;
67
66
  });
@@ -69,17 +68,17 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
69
68
  a || (S = !0), u.value = a;
70
69
  let o;
71
70
  y(e) ? o = e.map((r) => r.toDate()) : o = e && e.toDate(), n.value = null, k(o);
72
- }, we = () => {
71
+ }, Pe = () => {
73
72
  G.value = !0;
74
- }, Ce = () => {
73
+ }, we = () => {
75
74
  p("visible-change", !0);
76
- }, Ee = (e) => {
75
+ }, Ce = (e) => {
77
76
  (e == null ? void 0 : e.key) === C.esc && Y(!0, !0);
78
- }, De = () => {
77
+ }, Ee = () => {
79
78
  G.value = !1, u.value = !1, S = !1, p("visible-change", !1);
80
- }, Se = () => {
79
+ }, De = () => {
81
80
  u.value = !0;
82
- }, Te = () => {
81
+ }, Se = () => {
83
82
  u.value = !1;
84
83
  }, Y = (e = !0, a = !1) => {
85
84
  S = a;
@@ -118,11 +117,11 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
118
117
  return y(n.value) ? [
119
118
  n.value[0] || e && e[0] || "",
120
119
  n.value[1] || e && e[1] || ""
121
- ] : n.value !== null ? n.value : !Me.value && K.value || !u.value && K.value ? "" : e ? te.value ? e.join(", ") : e : "";
122
- }), Re = i(() => t.type.includes("time")), Me = i(() => t.type.startsWith("time")), te = i(() => t.type === "dates"), O = i(
123
- () => t.prefixIcon || (Re.value ? "ico-ep:clock" : "ico-ep:calendar")
120
+ ] : n.value !== null ? n.value : !Re.value && K.value || !u.value && K.value ? "" : e ? te.value ? e.join(", ") : e : "";
121
+ }), Te = i(() => t.type.includes("time")), Re = i(() => t.type.startsWith("time")), te = i(() => t.type === "dates"), O = i(
122
+ () => t.prefixIcon || (Te.value ? "ico-ep:clock" : "ico-ep:calendar")
124
123
  ), P = v(!1), ue = (e) => {
125
- t.readonly || c.value || P.value && (e.stopPropagation(), Pe(), k(null), X(null, !0), P.value = !1, u.value = !1, s.value.handleClear && s.value.handleClear());
124
+ t.readonly || c.value || P.value && (e.stopPropagation(), Ve(), k(null), X(null, !0), P.value = !1, u.value = !1, s.value.handleClear && s.value.handleClear());
126
125
  }, K = i(() => {
127
126
  const { modelValue: e } = t;
128
127
  return !e || y(e) && !e.filter(Boolean).length;
@@ -136,7 +135,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
136
135
  }, z = (e) => {
137
136
  var a;
138
137
  t.readonly || c.value || (((a = e.touches[0].target) == null ? void 0 : a.tagName) !== "INPUT" || T.value.includes(document.activeElement)) && (u.value = !0);
139
- }, N = i(() => t.type.includes("range")), Z = xe(), Fe = i(() => {
138
+ }, N = i(() => t.type.includes("range")), Z = xe(), Me = i(() => {
140
139
  var e, a;
141
140
  return (a = (e = l(J)) == null ? void 0 : e.popperRef) == null ? void 0 : a.contentRef;
142
141
  }), ie = i(() => {
@@ -144,7 +143,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
144
143
  return l(N) ? l(b) : (e = l(b)) == null ? void 0 : e.$el;
145
144
  });
146
145
  Qe(ie, (e) => {
147
- const a = l(Fe), o = l(ie);
146
+ const a = l(Me), o = l(ie);
148
147
  a && (e.target === a || e.composedPath().includes(a)) || e.target === o || e.composedPath().includes(o) || (u.value = !1);
149
148
  });
150
149
  const n = v(null), _ = () => {
@@ -159,7 +158,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
159
158
  if (t.readonly || c.value)
160
159
  return;
161
160
  const { code: a } = e;
162
- if (Ie(e), a === C.esc) {
161
+ if (ke(e), a === C.esc) {
163
162
  u.value === !0 && (u.value = !1, e.preventDefault(), e.stopPropagation());
164
163
  return;
165
164
  }
@@ -180,15 +179,15 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
180
179
  return;
181
180
  }
182
181
  s.value.handleKeydownInput && s.value.handleKeydownInput(e);
183
- }, Be = (e) => {
182
+ }, Fe = (e) => {
184
183
  n.value = e, u.value || (u.value = !0);
185
- }, $e = (e) => {
184
+ }, Be = (e) => {
186
185
  const a = e.target;
187
186
  n.value ? n.value = [a.value, n.value[1]] : n.value = [a.value, null];
188
- }, Oe = (e) => {
187
+ }, $e = (e) => {
189
188
  const a = e.target;
190
189
  n.value ? n.value = [n.value[0], a.value] : n.value = [null, a.value];
191
- }, Ke = () => {
190
+ }, Oe = () => {
192
191
  var r;
193
192
  const e = n.value, a = A(e && e[0]), o = l($);
194
193
  if (a && a.isValid()) {
@@ -199,7 +198,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
199
198
  const f = [a, o && (o[1] || null)];
200
199
  U(f) && (k(f), n.value = null);
201
200
  }
202
- }, ze = () => {
201
+ }, Ke = () => {
203
202
  var r;
204
203
  const e = l(n), a = A(e && e[1]), o = l($);
205
204
  if (a && a.isValid()) {
@@ -210,16 +209,16 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
210
209
  const f = [o && o[0], a];
211
210
  U(f) && (k(f), n.value = null);
212
211
  }
213
- }, s = v({}), Ne = (e) => {
212
+ }, s = v({}), ze = (e) => {
214
213
  s.value[e[0]] = e[1], s.value.panelReady = !0;
215
- }, Ae = (e) => {
214
+ }, Ne = (e) => {
216
215
  p("calendar-change", e);
217
- }, Ue = (e, a, o) => {
216
+ }, Ae = (e, a, o) => {
218
217
  p("panel-change", e, a, o);
219
218
  };
220
219
  return He("EP_PICKER_BASE", {
221
220
  props: t
222
- }), be({
221
+ }), ye({
223
222
  /**
224
223
  * @description focus input box.
225
224
  */
@@ -235,11 +234,11 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
235
234
  /**
236
235
  * @description opens picker
237
236
  */
238
- handleOpen: Se,
237
+ handleOpen: De,
239
238
  /**
240
239
  * @description closes picker
241
240
  */
242
- handleClose: Te,
241
+ handleClose: Se,
243
242
  /**
244
243
  * @description pick item manually
245
244
  */
@@ -256,15 +255,15 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
256
255
  teleported: "",
257
256
  transition: `${l(h).namespace.value}-zoom-in-top`,
258
257
  "popper-class": [`${l(h).namespace.value}-picker__popper`, e.popperClass],
259
- "popper-options": l(ke),
258
+ "popper-options": l(be),
260
259
  "fallback-placements": ["bottom", "top", "right", "left"],
261
260
  "gpu-acceleration": !1,
262
261
  "stop-popper-mouse-event": !1,
263
262
  "hide-after": 0,
264
263
  persistent: "",
265
- onBeforeShow: we,
266
- onShow: Ce,
267
- onHide: De
264
+ onBeforeShow: Pe,
265
+ onShow: we,
266
+ onHide: Ee
268
267
  }), {
269
268
  default: q(() => [
270
269
  N.value ? (I(), We("div", {
@@ -305,8 +304,8 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
305
304
  readonly: !e.editable || e.readonly,
306
305
  class: m(l(g).b("input")),
307
306
  onMousedown: M,
308
- onInput: $e,
309
- onChange: Ke,
307
+ onInput: Be,
308
+ onChange: Oe,
310
309
  onFocus: R,
311
310
  onBlur: B
312
311
  }, null, 42, ea),
@@ -327,8 +326,8 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
327
326
  onMousedown: M,
328
327
  onFocus: R,
329
328
  onBlur: B,
330
- onInput: Oe,
331
- onChange: ze
329
+ onInput: $e,
330
+ onChange: Ke
332
331
  }, null, 42, aa),
333
332
  e.clearIcon ? (I(), w(l(L), {
334
333
  key: 1,
@@ -359,7 +358,7 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
359
358
  label: e.label,
360
359
  tabindex: e.tabindex,
361
360
  "validate-event": !1,
362
- onInput: Be,
361
+ onInput: Fe,
363
362
  onFocus: R,
364
363
  onBlur: B,
365
364
  onKeydown: (
@@ -404,11 +403,11 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
404
403
  type: e.type,
405
404
  defaultValue: e.defaultValue,
406
405
  onPick: ne,
407
- onSelectRange: Ve,
408
- onSetPickerOption: Ne,
409
- onCalendarChange: Ae,
410
- onPanelChange: Ue,
411
- onKeydown: Ee,
406
+ onSelectRange: Ie,
407
+ onSetPickerOption: ze,
408
+ onCalendarChange: Ne,
409
+ onPanelChange: Ae,
410
+ onKeydown: Ce,
412
411
  onMousedown: a[1] || (a[1] = F(() => {
413
412
  }, ["stop"]))
414
413
  })
@@ -418,5 +417,5 @@ const ea = ["id", "name", "placeholder", "value", "disabled", "readonly"], aa =
418
417
  }
419
418
  });
420
419
  export {
421
- Ia as default
420
+ ka as default
422
421
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as v, ref as E, computed as r, openBlock as m, createBlock as u, unref as n, withCtx as f, normalizeClass as S, createCommentVNode as h, createElementBlock as w, Fragment as H, renderList as N } from "vue";
1
+ import { defineComponent as $, ref as E, computed as r, openBlock as s, createBlock as u, unref as n, withCtx as f, normalizeClass as S, createCommentVNode as h, createElementBlock as w, Fragment as H, renderList as N } from "vue";
2
2
  import d from "dayjs";
3
3
  import O from "dayjs/plugin/customParseFormat.js";
4
4
  import b from "../select-v2/index.js";
@@ -12,45 +12,44 @@ import "@vueuse/core";
12
12
  import "@vft/utils";
13
13
  import "../../utils/ns-cover.js";
14
14
  import { timeSelectProps as D } from "./time-select.js";
15
- import { parseTime as a, formatTime as s, compareTime as p, nextTime as L } from "./utils.js";
15
+ import { parseTime as a, formatTime as m, compareTime as p, nextTime as L } from "./utils.js";
16
16
  import { useFormDisabled as U } from "../form/hooks/use-form-common-props.js";
17
- const q = v({
18
- name: "ElTimeSelect"
19
- }), ne = /* @__PURE__ */ v({
20
- ...q,
17
+ const re = /* @__PURE__ */ $({
18
+ name: "ElTimeSelect",
19
+ __name: "time-select",
21
20
  props: D,
22
21
  emits: ["change", "blur", "focus", "update:modelValue"],
23
- setup(T, { expose: k }) {
24
- const o = T;
22
+ setup(v, { expose: T }) {
23
+ const o = v;
25
24
  d.extend(O);
26
- const { Option: V } = b, C = j("input"), i = E(), I = U(), g = r(() => o.modelValue), y = r(() => {
25
+ const { Option: k } = b, V = j("input"), i = E(), C = U(), I = r(() => o.modelValue), g = r(() => {
27
26
  const e = a(o.start);
28
- return e ? s(e) : null;
27
+ return e ? m(e) : null;
29
28
  }), c = r(() => {
30
29
  const e = a(o.end);
31
- return e ? s(e) : null;
32
- }), z = r(() => {
30
+ return e ? m(e) : null;
31
+ }), y = r(() => {
33
32
  const e = a(o.step);
34
- return e ? s(e) : null;
35
- }), B = r(() => {
33
+ return e ? m(e) : null;
34
+ }), z = r(() => {
36
35
  const e = a(o.minTime || "");
37
- return e ? s(e) : null;
38
- }), F = r(() => {
36
+ return e ? m(e) : null;
37
+ }), B = r(() => {
39
38
  const e = a(o.maxTime || "");
40
- return e ? s(e) : null;
41
- }), $ = r(() => {
39
+ return e ? m(e) : null;
40
+ }), F = r(() => {
42
41
  const e = [];
43
42
  if (o.start && o.end && o.step) {
44
- let l = y.value, t;
43
+ let l = g.value, t;
45
44
  for (; l && c.value && p(l, c.value) <= 0; )
46
45
  t = d(l, "HH:mm").format(o.format), e.push({
47
46
  value: t,
48
- disabled: p(l, B.value || "-1:-1") <= 0 || p(l, F.value || "100:100") >= 0
49
- }), l = L(l, z.value);
47
+ disabled: p(l, z.value || "-1:-1") <= 0 || p(l, B.value || "100:100") >= 0
48
+ }), l = L(l, y.value);
50
49
  }
51
50
  return e;
52
51
  });
53
- return k({
52
+ return T({
54
53
  blur: () => {
55
54
  var e, l;
56
55
  (l = (e = i.value) == null ? void 0 : e.blur) == null || l.call(e);
@@ -59,11 +58,11 @@ const q = v({
59
58
  var e, l;
60
59
  (l = (e = i.value) == null ? void 0 : e.focus) == null || l.call(e);
61
60
  }
62
- }), (e, l) => (m(), u(n(b), {
61
+ }), (e, l) => (s(), u(n(b), {
63
62
  ref_key: "select",
64
63
  ref: i,
65
- "model-value": g.value,
66
- disabled: n(I),
64
+ "model-value": I.value,
65
+ disabled: n(C),
67
66
  clearable: e.clearable,
68
67
  "clear-icon": e.clearIcon,
69
68
  size: e.size,
@@ -77,14 +76,14 @@ const q = v({
77
76
  onFocus: l[3] || (l[3] = (t) => e.$emit("focus", t))
78
77
  }, {
79
78
  prefix: f(() => [
80
- e.prefixIcon ? (m(), u(n(P), {
79
+ e.prefixIcon ? (s(), u(n(P), {
81
80
  key: 0,
82
81
  icon: e.prefixIcon,
83
- class: S(n(C).e("prefix-icon"))
82
+ class: S(n(V).e("prefix-icon"))
84
83
  }, null, 8, ["icon", "class"])) : h("", !0)
85
84
  ]),
86
85
  default: f(() => [
87
- (m(!0), w(H, null, N($.value, (t) => (m(), u(n(V), {
86
+ (s(!0), w(H, null, N(F.value, (t) => (s(), u(n(k), {
88
87
  key: t.value,
89
88
  label: t.value,
90
89
  value: t.value,
@@ -96,5 +95,5 @@ const q = v({
96
95
  }
97
96
  });
98
97
  export {
99
- ne as default
98
+ re as default
100
99
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, ref as v, inject as W, computed as n, onBeforeUnmount as Y, unref as t, watch as y, openBlock as b, createBlock as h, Teleport as q, createVNode as F, Transition as G, withCtx as C, withDirectives as Q, mergeProps as X, renderSlot as Z, createCommentVNode as B, vShow as x } from "vue";
1
+ import { defineComponent as U, ref as v, inject as W, computed as n, onBeforeUnmount as Y, unref as t, watch as y, openBlock as b, createBlock as h, Teleport as q, createVNode as F, Transition as G, withCtx as C, withDirectives as Q, mergeProps as X, renderSlot as Z, createCommentVNode as B, vShow as x } from "vue";
2
2
  import { useNamespace as _ } from "../../hooks/use-namespace/index.js";
3
3
  import "@popperjs/core";
4
4
  import "lodash";
@@ -11,11 +11,10 @@ import { usePopperContainerId as te } from "../../hooks/use-popper-container/ind
11
11
  import "../popper/index.js";
12
12
  import { TOOLTIP_INJECTION_KEY as oe } from "./constants.js";
13
13
  import ne from "../popper/content.vue2.js";
14
- const re = E({
14
+ const ye = /* @__PURE__ */ U({
15
15
  name: "VftTooltipContent",
16
- inheritAttrs: !1
17
- }), be = /* @__PURE__ */ E({
18
- ...re,
16
+ inheritAttrs: !1,
17
+ __name: "content",
19
18
  props: {
20
19
  boundariesPadding: { default: 0 },
21
20
  fallbackPlacements: {},
@@ -50,38 +49,38 @@ const re = E({
50
49
  teleported: { type: Boolean, default: !0 },
51
50
  disabled: { type: Boolean }
52
51
  },
53
- setup(o, { expose: k }) {
54
- const { selector: P } = te(), w = _("tooltip"), a = v(null), d = v(!1), {
52
+ setup(o, { expose: E }) {
53
+ const { selector: k } = te(), P = _("tooltip"), a = v(null), d = v(!1), {
55
54
  controlled: c,
56
- id: O,
55
+ id: w,
57
56
  open: l,
58
57
  trigger: i,
59
58
  onClose: s,
60
- onOpen: A,
61
- onShow: N,
62
- onHide: S,
59
+ onOpen: O,
60
+ onShow: A,
61
+ onHide: N,
63
62
  onBeforeShow: u,
64
63
  onBeforeHide: f
65
- } = W(oe, void 0), L = n(() => o.transition ?? `${w.namespace.value}-fade-in-linear`), I = n(() => process.env.NODE_ENV === "test" ? !0 : o.persistent);
64
+ } = W(oe, void 0), S = n(() => o.transition ?? `${P.namespace.value}-fade-in-linear`), L = n(() => process.env.NODE_ENV === "test" ? !0 : o.persistent);
66
65
  Y(() => {
67
66
  d.value = !0;
68
67
  });
69
- const $ = n(() => t(I) ? !0 : t(l)), m = n(() => o.disabled ? !1 : t(l)), M = n(() => o.appendTo || P.value), R = n(() => o.style ?? {}), z = n(() => !t(l)), V = () => {
70
- S();
68
+ const I = n(() => t(L) ? !0 : t(l)), m = n(() => o.disabled ? !1 : t(l)), $ = n(() => o.appendTo || k.value), M = n(() => o.style ?? {}), R = n(() => !t(l)), z = () => {
69
+ N();
71
70
  }, g = () => {
72
71
  if (t(c))
73
72
  return !0;
74
- }, D = T(g, () => {
75
- o.enterable && t(i) === "hover" && A();
76
- }), j = T(g, () => {
73
+ }, V = T(g, () => {
74
+ o.enterable && t(i) === "hover" && O();
75
+ }), D = T(g, () => {
77
76
  t(i) === "hover" && s();
78
- }), H = () => {
77
+ }), j = () => {
79
78
  var e, r;
80
79
  (r = (e = a.value) == null ? void 0 : e.updatePopper) == null || r.call(e), u == null || u();
81
- }, J = () => {
80
+ }, H = () => {
82
81
  f == null || f();
83
- }, K = () => {
84
- N(), p = ee(
82
+ }, J = () => {
83
+ A(), p = ee(
85
84
  n(() => {
86
85
  var e;
87
86
  return (e = a.value) == null ? void 0 : e.popperContentRef;
@@ -92,7 +91,7 @@ const re = E({
92
91
  t(i) !== "hover" && s();
93
92
  }
94
93
  );
95
- }, U = () => {
94
+ }, K = () => {
96
95
  o.virtualTriggering || s();
97
96
  };
98
97
  let p;
@@ -110,31 +109,31 @@ const re = E({
110
109
  var e, r;
111
110
  (r = (e = a.value) == null ? void 0 : e.updatePopper) == null || r.call(e);
112
111
  }
113
- ), k({
112
+ ), E({
114
113
  /**
115
114
  * @description el-popper-content component instance
116
115
  */
117
116
  contentRef: a
118
117
  }), (e, r) => (b(), h(q, {
119
118
  disabled: !e.teleported,
120
- to: M.value
119
+ to: $.value
121
120
  }, [
122
121
  F(G, {
123
- name: L.value,
124
- onAfterLeave: V,
125
- onBeforeEnter: H,
126
- onAfterEnter: K,
127
- onBeforeLeave: J
122
+ name: S.value,
123
+ onAfterLeave: z,
124
+ onBeforeEnter: j,
125
+ onAfterEnter: J,
126
+ onBeforeLeave: H
128
127
  }, {
129
128
  default: C(() => [
130
- $.value ? Q((b(), h(t(ne), X({
129
+ I.value ? Q((b(), h(t(ne), X({
131
130
  key: 0,
132
- id: t(O),
131
+ id: t(w),
133
132
  ref_key: "contentRef",
134
133
  ref: a
135
134
  }, e.$attrs, {
136
135
  "aria-label": e.ariaLabel,
137
- "aria-hidden": z.value,
136
+ "aria-hidden": R.value,
138
137
  "boundaries-padding": e.boundariesPadding,
139
138
  "fallback-placements": e.fallbackPlacements,
140
139
  "gpu-acceleration": e.gpuAcceleration,
@@ -146,14 +145,14 @@ const re = E({
146
145
  enterable: e.enterable,
147
146
  pure: e.pure,
148
147
  "popper-class": e.popperClass,
149
- "popper-style": [e.popperStyle, R.value],
148
+ "popper-style": [e.popperStyle, M.value],
150
149
  "reference-el": e.referenceEl,
151
150
  "trigger-target-el": e.triggerTargetEl,
152
151
  visible: m.value,
153
152
  "z-index": e.zIndex,
154
- onMouseenter: t(D),
155
- onMouseleave: t(j),
156
- onBlur: U,
153
+ onMouseenter: t(V),
154
+ onMouseleave: t(D),
155
+ onBlur: K,
157
156
  onClose: t(s)
158
157
  }), {
159
158
  default: C(() => [
@@ -170,5 +169,5 @@ const re = E({
170
169
  }
171
170
  });
172
171
  export {
173
- be as default
172
+ ye as default
174
173
  };