@vunk/form 2.19.0 → 2.19.2

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 (206) hide show
  1. package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  2. package/components/api-tables-select/index.cjs +1 -1
  3. package/components/api-tables-select/index.mjs +1 -1
  4. package/components/api-tables-select/src/ctx.d.ts +16 -22
  5. package/components/api-tables-select/src/index.vue.d.ts +39 -43
  6. package/components/button/index.cjs +1 -1
  7. package/components/button/index.mjs +2 -3
  8. package/components/button/src/ctx.d.ts +7 -7
  9. package/components/button/src/index.vue.d.ts +64 -63
  10. package/components/card-input-collection/index.cjs +1 -1
  11. package/components/card-input-collection/index.mjs +9 -9
  12. package/components/card-input-collection/src/core.vue.d.ts +12 -8
  13. package/components/card-input-collection/src/ctx.d.ts +2 -2
  14. package/components/card-input-collection/src/index.vue.d.ts +7 -6
  15. package/components/cascader/src/ctx.d.ts +33 -25
  16. package/components/cascader/src/index.vue.d.ts +67 -50
  17. package/components/cascader/src/use.d.ts +1 -1
  18. package/components/checkbox/index.cjs +1 -1
  19. package/components/checkbox/index.mjs +4 -4
  20. package/components/checkbox/src/ctx.d.ts +19 -19
  21. package/components/checkbox/src/index.vue.d.ts +128 -127
  22. package/components/cloneDeep-DE0l40hv.mjs +486 -0
  23. package/components/cloneDeep-DaYwfXwD.js +1 -0
  24. package/components/color-picker/src/ctx.d.ts +22 -14
  25. package/components/color-picker/src/index.vue.d.ts +52 -32
  26. package/components/date-picker/src/ctx.d.ts +32 -24
  27. package/components/date-picker/src/index.vue.d.ts +68 -51
  28. package/components/date-picker-range/index.cjs +1 -1
  29. package/components/date-picker-range/index.mjs +1 -1
  30. package/components/date-picker-range/src/ctx.d.ts +23 -15
  31. package/components/date-picker-range/src/index.vue.d.ts +131 -98
  32. package/components/debounce-CliSPkvP.js +1 -0
  33. package/components/debounce-DIph5ENi.mjs +85 -0
  34. package/components/dialog/src/ctx.d.ts +5 -5
  35. package/components/dialog/src/index.vue.d.ts +18 -16
  36. package/components/dialog-input-collection/index.cjs +1 -1
  37. package/components/dialog-input-collection/index.mjs +11 -11
  38. package/components/dialog-input-collection/src/ctx.d.ts +4 -3
  39. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
  40. package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
  41. package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
  42. package/components/download-plus/index.cjs +1 -1
  43. package/components/download-plus/index.mjs +24 -25
  44. package/components/download-plus/src/api.d.ts +1 -1
  45. package/components/download-plus/src/ctx.d.ts +4 -3
  46. package/components/download-plus/src/index.vue.d.ts +81 -78
  47. package/components/editable-text/index.cjs +1 -1
  48. package/components/editable-text/index.mjs +1 -1
  49. package/components/editable-text/src/ctx.d.ts +2 -6
  50. package/components/editable-text/src/index.vue.d.ts +14 -10
  51. package/components/el-slider/index.cjs +1 -1
  52. package/components/el-slider/index.mjs +5 -5
  53. package/components/el-slider/src/button.vue.d.ts +2 -1
  54. package/components/el-slider/src/composables/index.cjs +1 -1
  55. package/components/el-slider/src/composables/index.mjs +1 -1
  56. package/components/el-slider/src/composables/use-slide.d.ts +1 -1
  57. package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
  58. package/components/el-slider/src/composables/use-watch.d.ts +1 -1
  59. package/components/el-slider/src/slider-core.vue.d.ts +7 -6
  60. package/components/el-slider/src/slider.d.ts +2 -1
  61. package/components/esri-input-geojson/index.cjs +1 -1
  62. package/components/esri-input-geojson/index.mjs +42 -57
  63. package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
  64. package/components/esri-input-geojson/src/ctx.d.ts +21 -22
  65. package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
  66. package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
  67. package/components/esri-input-geojson/src/types.d.ts +0 -1
  68. package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
  69. package/components/fieldset/index.cjs +1 -1
  70. package/components/fieldset/index.mjs +3 -5
  71. package/components/fieldset/src/index.vue.d.ts +3 -2
  72. package/components/form/index.cjs +1 -1
  73. package/components/form/index.mjs +1 -1
  74. package/components/form/src/ctx.d.ts +1 -1
  75. package/components/form/src/index.vue.d.ts +68 -67
  76. package/components/form-item/index.cjs +1 -1
  77. package/components/form-item/index.mjs +7 -8
  78. package/components/form-item/src/core.vue.d.ts +12 -10
  79. package/components/form-item/src/ctx.d.ts +6 -4
  80. package/components/form-item/src/index.vue.d.ts +7 -6
  81. package/components/form-item-renderer/index.mjs +2 -3
  82. package/components/form-item-renderer/src/core.vue.d.ts +3 -2
  83. package/components/form-item-renderer/src/index.vue.d.ts +7 -5
  84. package/components/form-item-renderer-template/index.mjs +1 -2
  85. package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
  86. package/components/forms-provider/src/index.vue.d.ts +5 -2
  87. package/components/forms-provider/src/segment.vue.d.ts +7 -3
  88. package/components/forms-provider/src/view.vue.d.ts +11 -7
  89. package/components/index-BCZuzyeO.mjs +317 -0
  90. package/components/index-BNPcMpOO.js +1 -0
  91. package/components/index-DJv1MwwH.mjs +14 -0
  92. package/components/information/src/index.vue.d.ts +3 -2
  93. package/components/information-collection/src/ctx.d.ts +17 -11
  94. package/components/information-collection/src/index.vue.d.ts +36 -27
  95. package/components/information-renderer/index.d.ts +9 -9
  96. package/components/information-tag/src/ctx.d.ts +4 -3
  97. package/components/information-tag/src/index.vue.d.ts +12 -11
  98. package/components/information-templates-default/src/index.vue.d.ts +2 -1
  99. package/components/input/index.cjs +1 -1
  100. package/components/input/index.mjs +1 -1
  101. package/components/input/src/ctx.d.ts +20 -20
  102. package/components/input/src/index.vue.d.ts +70 -69
  103. package/components/input-array/index.cjs +1 -1
  104. package/components/input-array/index.mjs +2 -2
  105. package/components/input-array/src/ctx.d.ts +2 -2
  106. package/components/input-array/src/form-template.vue.d.ts +2 -1
  107. package/components/input-array/src/index.vue.d.ts +6 -5
  108. package/components/input-collection/index.cjs +1 -1
  109. package/components/input-collection/index.mjs +2 -2
  110. package/components/input-collection/src/core.vue.d.ts +17 -15
  111. package/components/input-collection/src/ctx.d.ts +4 -4
  112. package/components/input-collection/src/index.vue.d.ts +13 -12
  113. package/components/input-file/src/index.vue.d.ts +51 -50
  114. package/components/input-file/src/template.vue.d.ts +2 -1
  115. package/components/input-link/index.cjs +1 -1
  116. package/components/input-link/index.mjs +2 -2
  117. package/components/input-link/src/ctx.d.ts +19 -21
  118. package/components/input-link/src/index.vue.d.ts +111 -110
  119. package/components/input-number/index.cjs +1 -1
  120. package/components/input-number/index.mjs +1 -1
  121. package/components/input-number/src/ctx.d.ts +5 -5
  122. package/components/input-number/src/index.vue.d.ts +39 -38
  123. package/components/input-tag/index.cjs +1 -1
  124. package/components/input-tag/index.mjs +1 -1
  125. package/components/input-tag/src/ctx.d.ts +10 -10
  126. package/components/input-tag/src/index.vue.d.ts +48 -47
  127. package/components/isObject-DQpnfMRp.mjs +34 -0
  128. package/components/monaco-editor/index.cjs +1 -1
  129. package/components/monaco-editor/index.mjs +1 -1
  130. package/components/monaco-editor/src/ctx.d.ts +2 -2
  131. package/components/monaco-editor/src/index.vue.d.ts +17 -16
  132. package/components/radio/index.cjs +1 -1
  133. package/components/radio/index.mjs +3 -3
  134. package/components/radio/src/ctx.d.ts +3 -3
  135. package/components/radio/src/index.vue.d.ts +32 -31
  136. package/components/radio/src/option.vue.d.ts +12 -10
  137. package/components/radio/src/wraper.vue.d.ts +9 -8
  138. package/components/renderer-data/src/index.vue.d.ts +3 -2
  139. package/components/select/index.cjs +1 -1
  140. package/components/select/index.mjs +1 -1
  141. package/components/select/src/core.vue.d.ts +99 -239
  142. package/components/select/src/ctx.d.ts +23 -95
  143. package/components/select/src/index.vue.d.ts +76 -75
  144. package/components/select/src/options.vue.d.ts +3 -2
  145. package/components/slider/src/ctx.d.ts +10 -10
  146. package/components/slider/src/index.vue.d.ts +29 -25
  147. package/components/style.css +1 -1
  148. package/components/switch/src/ctx.d.ts +11 -11
  149. package/components/switch/src/index.vue.d.ts +24 -20
  150. package/components/tables-select/index.mjs +1 -2
  151. package/components/tables-select/src/ctx.d.ts +27 -43
  152. package/components/tables-select/src/index.vue.d.ts +57 -71
  153. package/components/template-instances-provider/src/index.vue.d.ts +3 -2
  154. package/components/templates-default/index.cjs +1 -1
  155. package/components/templates-default/index.mjs +1 -1
  156. package/components/templates-default/src/ctx.d.ts +3 -5
  157. package/components/templates-default/src/index.vue.d.ts +778 -727
  158. package/components/templates-element-plus/index.cjs +1 -1
  159. package/components/templates-element-plus/index.mjs +4 -4
  160. package/components/templates-element-plus/src/index.vue.d.ts +27 -26
  161. package/components/templates-esri/index.cjs +1 -1
  162. package/components/templates-esri/index.mjs +1 -1
  163. package/components/templates-esri/src/index.vue.d.ts +600 -193
  164. package/components/templates-layout/index.cjs +1 -1
  165. package/components/templates-layout/index.mjs +4 -4
  166. package/components/templates-layout/src/index.vue.d.ts +14 -13
  167. package/components/templates-variant/index.cjs +1 -1
  168. package/components/templates-variant/index.mjs +1 -1
  169. package/components/templates-variant/src/index.vue.d.ts +132 -99
  170. package/components/time-picker/src/ctx.d.ts +31 -23
  171. package/components/time-picker/src/index.vue.d.ts +66 -49
  172. package/components/upload/index.cjs +1 -1
  173. package/components/upload/index.mjs +46 -46
  174. package/components/upload/src/ctx.d.ts +24 -22
  175. package/components/upload/src/file.vue.d.ts +75 -73
  176. package/components/upload/src/index.vue.d.ts +188 -187
  177. package/components/upload/src/wraper.vue.d.ts +48 -47
  178. package/components/upload-plus/index.cjs +7 -7
  179. package/components/upload-plus/index.mjs +1911 -1937
  180. package/components/upload-plus/src/api.d.ts +1 -1
  181. package/components/upload-plus/src/ctx.d.ts +2 -5
  182. package/components/upload-plus/src/index.vue.d.ts +6 -5
  183. package/components/use-watch-Bfrz9pv_.js +1 -0
  184. package/components/use-watch-t49wP7jy.mjs +414 -0
  185. package/components/van-cascader/src/ctx.d.ts +33 -25
  186. package/components/van-cascader/src/index.vue.d.ts +67 -50
  187. package/components/var-datetime-picker/index.cjs +1 -1
  188. package/components/var-datetime-picker/index.mjs +19 -21
  189. package/components/var-datetime-picker/src/ctx.d.ts +4 -3
  190. package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
  191. package/components/vditor/index.cjs +1 -1
  192. package/components/vditor/index.mjs +1 -1
  193. package/components/vditor/src/ctx.d.ts +2 -3
  194. package/components/vditor/src/index.vue.d.ts +19 -19
  195. package/composables/index.mjs +3 -5
  196. package/composables/useSourceManager.d.ts +2 -2
  197. package/index.css +1 -1
  198. package/package.json +1 -1
  199. package/shared/element-plus/instances.d.ts +60 -43
  200. package/components/cloneDeep.cjs +0 -1
  201. package/components/debounce.cjs +0 -1
  202. package/components/index2.cjs +0 -1
  203. package/components/use-watch.cjs +0 -1
  204. /package/components/{_plugin-vue_export-helper.cjs → _plugin-vue_export-helper-BHFhmbuH.js} +0 -0
  205. /package/components/{index.cjs → index-DSyxYMB0.js} +0 -0
  206. /package/components/{isObject.cjs → isObject-fAvOGw_H.js} +0 -0
@@ -1,14 +1,14 @@
1
- import { _VkfFormItemCtx as Y, VkfFormItem as M } from "@vunk/form/components/form-item";
2
- import { defineComponent as w, computed as n, ref as F, resolveComponent as r, openBlock as h, createBlock as R, normalizeProps as B, guardReactiveProps as H, withCtx as i, createElementVNode as I, createVNode as u, normalizeClass as S, createCommentVNode as C } from "vue";
1
+ import { _VkfFormItemCtx as Y, VkfFormItem as w } from "@vunk/form/components/form-item";
2
+ import { defineComponent as B, computed as n, ref as h, resolveComponent as r, openBlock as F, createBlock as R, normalizeProps as E, guardReactiveProps as H, withCtx as i, createElementVNode as I, createVNode as u, normalizeClass as S, createCommentVNode as C } from "vue";
3
3
  import { useComputedReadonly as O } from "@vunk/form/composables";
4
4
  import { useLocale as U } from "@vunk/form/composables/element-plus";
5
5
  import { Popup as $ } from "vant";
6
- import { DatePicker as j, TimePicker as z } from "@varlet/ui";
7
- import { ElDatePicker as N, ElTabPane as L, ElTabs as _, dayjs as m } from "element-plus";
6
+ import { TimePicker as j, DatePicker as z } from "@varlet/ui";
7
+ import { ElTabs as N, ElTabPane as L, ElDatePicker as _, dayjs as m } from "element-plus";
8
8
  import "vant/es/popup/style";
9
- import "@varlet/ui/es/date-picker/style";
10
- import "@varlet/ui/es/time-picker/style";
11
- import { _ as q } from "../_plugin-vue_export-helper.cjs";
9
+ import "@varlet/ui/es/date-picker/date-picker.css";
10
+ import "@varlet/ui/es/time-picker/timePicker.css";
11
+ import { _ as q } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
12
12
  const A = {
13
13
  ...Y.props,
14
14
  modelValue: null,
@@ -105,28 +105,26 @@ const A = {
105
105
  varDatePickerType: "month",
106
106
  isRange: !0
107
107
  }
108
- ], T = Q.reduce((e, a) => (e[a.value] = a, e), {}), W = w({
108
+ ], T = Q.reduce((e, a) => (e[a.value] = a, e), {}), W = B({
109
109
  name: "VkfVarDatetimePicker",
110
110
  components: {
111
- VkfFormItem: M,
112
- ElDatePicker: N,
113
- DatePicker: j,
114
- TimePicker: z,
111
+ VkfFormItem: w,
112
+ ElDatePicker: _,
113
+ DatePicker: z,
114
+ TimePicker: j,
115
115
  Popup: $,
116
116
  ElTabPane: L,
117
- ElTabs: _
117
+ ElTabs: N
118
118
  },
119
119
  props: A,
120
120
  emits: G,
121
121
  setup(e, { emit: a }) {
122
122
  const P = Y.createBindProps(e), { tr: D } = U(), p = n(() => T[e.type].varDatePickerType), c = n(() => K[p.value].format), f = n(() => !!T[e.type].isRange), s = n(() => !!T[e.type].hasTime), d = () => e.modelValue ? m(e.modelValue).format(c.value) : "", v = () => e.modelValue ? m(e.modelValue).format(e.useSeconds ? "HH:mm:ss" : "HH:mm") : "", k = (o) => {
123
- if (!o)
124
- return "";
123
+ if (!o) return "";
125
124
  const t = m(o, c.value);
126
125
  return e.modelValue ? m(e.modelValue).year(t.year()).month(t.month()).date(t.date()).format(e.valueFormat) : t.format(e.valueFormat);
127
126
  }, y = (o) => {
128
- if (!o)
129
- return "";
127
+ if (!o) return "";
130
128
  const t = m(
131
129
  o,
132
130
  e.useSeconds ? "HH:mm:ss" : "HH:mm"
@@ -148,10 +146,10 @@ const A = {
148
146
  const t = y(o);
149
147
  a("update:modelValue", t);
150
148
  }
151
- }), E = O(e), b = F(!1), g = F("date");
149
+ }), M = O(e), b = h(!1), g = h("date");
152
150
  return {
153
151
  preInput: () => {
154
- E.value || (e.modelValue && s.value && (g.value = "time"), b.value = !0);
152
+ M.value || (e.modelValue && s.value && (g.value = "time"), b.value = !0);
155
153
  },
156
154
  inputBlur: (o) => {
157
155
  o.target.blur();
@@ -170,7 +168,7 @@ const A = {
170
168
  });
171
169
  function X(e, a, P, D, p, c) {
172
170
  const f = r("ElDatePicker"), s = r("DatePicker"), d = r("ElTabPane"), v = r("TimePicker"), k = r("ElTabs"), y = r("Popup"), V = r("VkfFormItem");
173
- return h(), R(V, B(H(e.formItemBindProps)), {
171
+ return F(), R(V, E(H(e.formItemBindProps)), {
174
172
  default: i(() => [
175
173
  I("div", {
176
174
  onClickCapture: a[0] || (a[0] = (...l) => e.preInput && e.preInput(...l))
@@ -214,7 +212,7 @@ function X(e, a, P, D, p, c) {
214
212
  ]),
215
213
  _: 1
216
214
  }, 8, ["label"]),
217
- e.hasTime ? (h(), R(d, {
215
+ e.hasTime ? (F(), R(d, {
218
216
  key: 0,
219
217
  label: e.valueTime || e.tr("el.datepicker.selectTime", "选择时间"),
220
218
  name: "time"
@@ -1,9 +1,10 @@
1
1
  import type { PropType } from 'vue';
2
+ import { DatePickType } from 'element-plus';
2
3
  export declare const props: {
3
4
  modelValue: null;
4
5
  readonly: BooleanConstructor;
5
6
  type: {
6
- type: PropType<"year" | "years" | "month" | "months" | "date" | "dates" | "week" | "datetime" | "daterange" | "monthrange" | "yearrange">;
7
+ type: PropType<Exclude<DatePickType, "datetimerange">>;
7
8
  default: string;
8
9
  };
9
10
  allowedDates: {
@@ -56,14 +57,14 @@ export declare const props: {
56
57
  };
57
58
  labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
58
59
  rules: {
59
- readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | null)[], unknown, unknown>>;
60
+ readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>) | (((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>)) | null)[], unknown, unknown>>;
60
61
  readonly required: false;
61
62
  readonly validator: ((val: unknown) => boolean) | undefined;
62
63
  __epPropKey: true;
63
64
  };
64
65
  error: StringConstructor;
65
66
  validateStatus: {
66
- readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
67
+ readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
67
68
  readonly required: false;
68
69
  readonly validator: ((val: unknown) => boolean) | undefined;
69
70
  __epPropKey: true;