@vunk/form 2.14.18 → 2.14.20

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 (54) hide show
  1. package/components/button/src/ctx.d.ts +8 -1
  2. package/components/button/src/index.vue.d.ts +43 -8
  3. package/components/card-input-collection/src/core.vue.d.ts +30 -9
  4. package/components/cascader/src/ctx.d.ts +63 -6
  5. package/components/cascader/src/index.vue.d.ts +155 -10
  6. package/components/color-picker/src/ctx.d.ts +14 -0
  7. package/components/color-picker/src/index.vue.d.ts +29 -0
  8. package/components/date-picker/src/ctx.d.ts +46 -4
  9. package/components/date-picker/src/index.vue.d.ts +266 -27
  10. package/components/date-picker-range/src/ctx.d.ts +48 -6
  11. package/components/date-picker-range/src/index.vue.d.ts +98 -13
  12. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +4696 -48
  13. package/components/dialog-input-collection/src/index.vue.d.ts +4723 -54
  14. package/components/download-plus/src/index.vue.d.ts +45 -6
  15. package/components/esri-input-geojson/src/append.vue.d.ts +27 -6
  16. package/components/esri-input-geojson/src/ctx.d.ts +7 -1
  17. package/components/esri-input-geojson/src/index.vue.d.ts +13 -0
  18. package/components/fieldset/index.cjs +1 -17
  19. package/components/fieldset/index.mjs +1 -17
  20. package/components/form/src/ctx.d.ts +1 -1
  21. package/components/form/src/index.vue.d.ts +2867 -22
  22. package/components/form-item/src/core.vue.d.ts +27 -6
  23. package/components/input/src/ctx.d.ts +7 -1
  24. package/components/input/src/index.vue.d.ts +31 -0
  25. package/components/input-array/src/form-template.vue.d.ts +27 -6
  26. package/components/input-array/src/index.vue.d.ts +27 -6
  27. package/components/input-collection/src/core.vue.d.ts +27 -6
  28. package/components/input-link/src/ctx.d.ts +6 -0
  29. package/components/input-link/src/index.vue.d.ts +12 -0
  30. package/components/input-number/src/ctx.d.ts +10 -1
  31. package/components/input-number/src/index.vue.d.ts +55 -0
  32. package/components/input-tag/src/ctx.d.ts +17 -1
  33. package/components/input-tag/src/index.vue.d.ts +103 -3
  34. package/components/select/src/core.vue.d.ts +2 -2
  35. package/components/select/src/ctx.d.ts +1 -1
  36. package/components/select/src/index.vue.d.ts +1 -1
  37. package/components/tables-select/src/index.vue.d.ts +108 -12
  38. package/components/upload/index.cjs +93 -35
  39. package/components/upload/index.css +3 -0
  40. package/components/upload/index.mjs +95 -37
  41. package/components/upload/src/ctx.d.ts +1 -4
  42. package/components/upload/src/file.vue.d.ts +427 -6
  43. package/components/upload/src/index.vue.d.ts +427 -12
  44. package/components/upload-plus/src/index.vue.d.ts +45 -6
  45. package/components/van-cascader/index.cjs +40 -43
  46. package/components/van-cascader/index.mjs +41 -44
  47. package/components/van-cascader/src/ctx.d.ts +62 -5
  48. package/components/van-cascader/src/index.vue.d.ts +825 -1681
  49. package/components/var-datetime-picker/src/index.vue.d.ts +159 -25
  50. package/index.css +3 -0
  51. package/package.json +1 -1
  52. package/shared/element-plus/ctx.d.ts +7 -7
  53. package/shared/element-plus/instances.d.ts +45 -3
  54. package/shared/progress-it/index.cjs +3 -1
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var cascader = require('@vunk/form/components/cascader');
6
5
  var vue = require('vue');
6
+ var cascader = require('@vunk/form/components/cascader');
7
7
  var formItem = require('@vunk/form/components/form-item');
8
8
  var vant = require('vant');
9
9
  var elementPlus = require('element-plus');
@@ -19,24 +19,25 @@ const emits = {
19
19
  ...cascader._VkfCascaderCtx.emits
20
20
  };
21
21
 
22
- var _sfc_main = vue.defineComponent({
23
- name: "VkfVanCascader",
24
- components: {
25
- VkfFormItem: formItem.VkfFormItem,
26
- Cascader: vant.Cascader,
27
- Popup: vant.Popup,
28
- ElSelect: elementPlus.ElSelect
22
+ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
23
+ ...{
24
+ name: "VkfVanCascader"
29
25
  },
26
+ __name: "index",
27
+ props: props,
30
28
  emits,
31
- props,
32
- setup(props2, { emit }) {
33
- const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props2);
29
+ setup(__props, { expose: __expose, emit: __emit }) {
30
+ __expose();
31
+ const ElSelect = elementPlus.ElSelect;
32
+ const props = __props;
33
+ const emit = __emit;
34
+ const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props);
34
35
  const popupShow = vue.ref(false);
35
36
  const fieldValue = vue.ref("");
36
37
  const cascaderValue = vue.ref("");
37
- const options = cascader._VkfCascaderUse.useOptions(props2, emit);
38
- const readonly = composables.useComputedReadonly(props2);
39
- vue.watch(() => props2.modelValue, (val) => {
38
+ const options = cascader._VkfCascaderUse.useOptions(props, emit);
39
+ const readonly = composables.useComputedReadonly(props);
40
+ vue.watch(() => props.modelValue, (val) => {
40
41
  if (Array.isArray(val) && val.length) {
41
42
  fieldValue.value = val.join("/");
42
43
  const last = val.at(-1);
@@ -55,52 +56,48 @@ var _sfc_main = vue.defineComponent({
55
56
  if (readonly.value) return;
56
57
  popupShow.value = true;
57
58
  };
58
- return {
59
- formItemBindProps,
60
- fieldValue,
61
- popupShow,
62
- handleFinish,
63
- cascaderValue,
64
- options,
65
- preInput
66
- };
59
+ const __returned__ = { ElSelect, props, emit, formItemBindProps, popupShow, fieldValue, cascaderValue, options, readonly, handleFinish, preInput, get VkfFormItem() {
60
+ return formItem.VkfFormItem;
61
+ }, get Cascader() {
62
+ return vant.Cascader;
63
+ }, get Popup() {
64
+ return vant.Popup;
65
+ } };
66
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
67
+ return __returned__;
67
68
  }
68
69
  });
69
70
 
70
71
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
71
- const _component_ElSelect = vue.resolveComponent("ElSelect");
72
- const _component_Cascader = vue.resolveComponent("Cascader");
73
- const _component_Popup = vue.resolveComponent("Popup");
74
- const _component_VkfFormItem = vue.resolveComponent("VkfFormItem");
75
72
  return vue.openBlock(), vue.createBlock(
76
- _component_VkfFormItem,
77
- vue.mergeProps({ class: "vkf-van-cascader" }, _ctx.formItemBindProps),
73
+ $setup["VkfFormItem"],
74
+ vue.mergeProps({ class: "vkf-van-cascader" }, $setup.formItemBindProps),
78
75
  {
79
76
  default: vue.withCtx(() => [
80
- vue.createVNode(_component_ElSelect, {
77
+ vue.createVNode($setup["ElSelect"], {
81
78
  "popper-class": "vkf-van-cascader-input",
82
- "model-value": _ctx.fieldValue,
83
- onClick: _ctx.preInput
84
- }, null, 8, ["model-value", "onClick"]),
85
- vue.createVNode(_component_Popup, {
86
- show: _ctx.popupShow,
87
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => _ctx.popupShow = $event),
79
+ "model-value": $setup.fieldValue,
80
+ onClick: $setup.preInput
81
+ }, null, 8, ["model-value"]),
82
+ vue.createVNode($setup["Popup"], {
83
+ show: $setup.popupShow,
84
+ "onUpdate:show": _cache[2] || (_cache[2] = ($event) => $setup.popupShow = $event),
88
85
  round: "",
89
86
  position: "bottom"
90
87
  }, {
91
88
  default: vue.withCtx(() => [
92
- vue.createVNode(_component_Cascader, {
93
- modelValue: _ctx.cascaderValue,
94
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.cascaderValue = $event),
95
- onClose: _cache[1] || (_cache[1] = ($event) => _ctx.popupShow = false),
96
- options: _ctx.options,
89
+ vue.createVNode($setup["Cascader"], {
90
+ modelValue: $setup.cascaderValue,
91
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.cascaderValue = $event),
92
+ options: $setup.options,
97
93
  "field-names": {
98
94
  text: "label",
99
95
  value: "value",
100
96
  children: "children"
101
97
  },
102
- onFinish: _ctx.handleFinish
103
- }, null, 8, ["modelValue", "options", "onFinish"])
98
+ onClose: _cache[1] || (_cache[1] = ($event) => $setup.popupShow = false),
99
+ onFinish: $setup.handleFinish
100
+ }, null, 8, ["modelValue", "options"])
104
101
  ]),
105
102
  _: 1
106
103
  /* STABLE */
@@ -1,6 +1,6 @@
1
+ import { defineComponent, ref, watch, openBlock, createBlock, mergeProps, withCtx, createVNode } from 'vue';
1
2
  import { _VkfCascaderCtx, _VkfCascaderUse } from '@vunk/form/components/cascader';
2
- import { defineComponent, ref, watch, resolveComponent, openBlock, createBlock, mergeProps, withCtx, createVNode } from 'vue';
3
- import { VkfFormItem, _VkfFormItemCtx } from '@vunk/form/components/form-item';
3
+ import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
4
4
  import { Cascader, Popup } from 'vant';
5
5
  import { ElSelect } from 'element-plus';
6
6
  import 'vant/es/cascader/style';
@@ -15,24 +15,25 @@ const emits = {
15
15
  ..._VkfCascaderCtx.emits
16
16
  };
17
17
 
18
- var _sfc_main = defineComponent({
19
- name: "VkfVanCascader",
20
- components: {
21
- VkfFormItem,
22
- Cascader,
23
- Popup,
24
- ElSelect
18
+ var _sfc_main = /* @__PURE__ */ defineComponent({
19
+ ...{
20
+ name: "VkfVanCascader"
25
21
  },
22
+ __name: "index",
23
+ props: props,
26
24
  emits,
27
- props,
28
- setup(props2, { emit }) {
29
- const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
25
+ setup(__props, { expose: __expose, emit: __emit }) {
26
+ __expose();
27
+ const ElSelect$1 = ElSelect;
28
+ const props = __props;
29
+ const emit = __emit;
30
+ const formItemBindProps = _VkfFormItemCtx.createBindProps(props);
30
31
  const popupShow = ref(false);
31
32
  const fieldValue = ref("");
32
33
  const cascaderValue = ref("");
33
- const options = _VkfCascaderUse.useOptions(props2, emit);
34
- const readonly = useComputedReadonly(props2);
35
- watch(() => props2.modelValue, (val) => {
34
+ const options = _VkfCascaderUse.useOptions(props, emit);
35
+ const readonly = useComputedReadonly(props);
36
+ watch(() => props.modelValue, (val) => {
36
37
  if (Array.isArray(val) && val.length) {
37
38
  fieldValue.value = val.join("/");
38
39
  const last = val.at(-1);
@@ -51,52 +52,48 @@ var _sfc_main = defineComponent({
51
52
  if (readonly.value) return;
52
53
  popupShow.value = true;
53
54
  };
54
- return {
55
- formItemBindProps,
56
- fieldValue,
57
- popupShow,
58
- handleFinish,
59
- cascaderValue,
60
- options,
61
- preInput
62
- };
55
+ const __returned__ = { ElSelect: ElSelect$1, props, emit, formItemBindProps, popupShow, fieldValue, cascaderValue, options, readonly, handleFinish, preInput, get VkfFormItem() {
56
+ return VkfFormItem;
57
+ }, get Cascader() {
58
+ return Cascader;
59
+ }, get Popup() {
60
+ return Popup;
61
+ } };
62
+ Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
63
+ return __returned__;
63
64
  }
64
65
  });
65
66
 
66
67
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
67
- const _component_ElSelect = resolveComponent("ElSelect");
68
- const _component_Cascader = resolveComponent("Cascader");
69
- const _component_Popup = resolveComponent("Popup");
70
- const _component_VkfFormItem = resolveComponent("VkfFormItem");
71
68
  return openBlock(), createBlock(
72
- _component_VkfFormItem,
73
- mergeProps({ class: "vkf-van-cascader" }, _ctx.formItemBindProps),
69
+ $setup["VkfFormItem"],
70
+ mergeProps({ class: "vkf-van-cascader" }, $setup.formItemBindProps),
74
71
  {
75
72
  default: withCtx(() => [
76
- createVNode(_component_ElSelect, {
73
+ createVNode($setup["ElSelect"], {
77
74
  "popper-class": "vkf-van-cascader-input",
78
- "model-value": _ctx.fieldValue,
79
- onClick: _ctx.preInput
80
- }, null, 8, ["model-value", "onClick"]),
81
- createVNode(_component_Popup, {
82
- show: _ctx.popupShow,
83
- "onUpdate:show": _cache[2] || (_cache[2] = ($event) => _ctx.popupShow = $event),
75
+ "model-value": $setup.fieldValue,
76
+ onClick: $setup.preInput
77
+ }, null, 8, ["model-value"]),
78
+ createVNode($setup["Popup"], {
79
+ show: $setup.popupShow,
80
+ "onUpdate:show": _cache[2] || (_cache[2] = ($event) => $setup.popupShow = $event),
84
81
  round: "",
85
82
  position: "bottom"
86
83
  }, {
87
84
  default: withCtx(() => [
88
- createVNode(_component_Cascader, {
89
- modelValue: _ctx.cascaderValue,
90
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.cascaderValue = $event),
91
- onClose: _cache[1] || (_cache[1] = ($event) => _ctx.popupShow = false),
92
- options: _ctx.options,
85
+ createVNode($setup["Cascader"], {
86
+ modelValue: $setup.cascaderValue,
87
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $setup.cascaderValue = $event),
88
+ options: $setup.options,
93
89
  "field-names": {
94
90
  text: "label",
95
91
  value: "value",
96
92
  children: "children"
97
93
  },
98
- onFinish: _ctx.handleFinish
99
- }, null, 8, ["modelValue", "options", "onFinish"])
94
+ onClose: _cache[1] || (_cache[1] = ($event) => $setup.popupShow = false),
95
+ onFinish: $setup.handleFinish
96
+ }, null, 8, ["modelValue", "options"])
100
97
  ]),
101
98
  _: 1
102
99
  /* STABLE */
@@ -118,6 +118,12 @@ export declare const props: {
118
118
  placeholder: StringConstructor;
119
119
  disabled: BooleanConstructor;
120
120
  clearable: BooleanConstructor;
121
+ clearIcon: {
122
+ readonly type: import("vue").PropType<unknown>;
123
+ readonly required: false;
124
+ readonly validator: ((val: unknown) => boolean) | undefined;
125
+ __epPropKey: true;
126
+ };
121
127
  filterable: BooleanConstructor;
122
128
  filterMethod: {
123
129
  readonly type: import("vue").PropType<(node: import("element-plus").CascaderNode, keyword: string) => boolean>;
@@ -192,12 +198,38 @@ export declare const props: {
192
198
  readonly default: string[];
193
199
  };
194
200
  popperClass: {
195
- readonly type: import("vue").PropType<string>;
201
+ readonly type: import("vue").PropType<string | {
202
+ [x: string]: boolean;
203
+ } | (string | {
204
+ [x: string]: boolean;
205
+ } | (string | {
206
+ [x: string]: boolean;
207
+ } | (string | {
208
+ [x: string]: boolean;
209
+ } | (string | {
210
+ [x: string]: boolean;
211
+ } | (string | {
212
+ [x: string]: boolean;
213
+ } | (string | {
214
+ [x: string]: boolean;
215
+ } | (string | {
216
+ [x: string]: boolean;
217
+ } | (string | {
218
+ [x: string]: boolean;
219
+ } | (string | {
220
+ [x: string]: boolean;
221
+ } | (string | any[] | {
222
+ [x: string]: boolean;
223
+ })[])[])[])[])[])[])[])[])[])[]>;
224
+ readonly required: false;
225
+ readonly validator: ((val: unknown) => boolean) | undefined;
226
+ __epPropKey: true;
227
+ };
228
+ popperStyle: {
229
+ readonly type: import("vue").PropType<import("vue").StyleValue>;
196
230
  readonly required: false;
197
231
  readonly validator: ((val: unknown) => boolean) | undefined;
198
232
  __epPropKey: true;
199
- } & {
200
- readonly default: string;
201
233
  };
202
234
  teleported: {
203
235
  readonly type: import("vue").PropType<boolean>;
@@ -207,6 +239,14 @@ export declare const props: {
207
239
  } & {
208
240
  readonly default: true;
209
241
  };
242
+ effect: {
243
+ readonly type: import("vue").PropType<import("element-plus").PopperEffect>;
244
+ readonly required: false;
245
+ readonly validator: ((val: unknown) => boolean) | undefined;
246
+ __epPropKey: true;
247
+ } & {
248
+ readonly default: string;
249
+ };
210
250
  tagType: {
211
251
  default: string;
212
252
  type: import("vue").PropType<"primary" | "success" | "warning" | "info" | "danger">;
@@ -237,6 +277,23 @@ export declare const props: {
237
277
  } & {
238
278
  readonly default: boolean;
239
279
  };
280
+ showCheckedStrategy: {
281
+ readonly type: import("vue").PropType<string>;
282
+ readonly required: false;
283
+ readonly validator: ((val: unknown) => boolean) | undefined;
284
+ __epPropKey: true;
285
+ } & {
286
+ readonly default: string;
287
+ };
288
+ checkOnClickNode: BooleanConstructor;
289
+ showPrefix: {
290
+ readonly type: import("vue").PropType<boolean>;
291
+ readonly required: false;
292
+ readonly validator: ((val: unknown) => boolean) | undefined;
293
+ __epPropKey: true;
294
+ } & {
295
+ readonly default: boolean;
296
+ };
240
297
  modelValue: {
241
298
  readonly type: import("vue").PropType<(string | number)[] | (string | number) | ((string | number)[] | (string | number))[]>;
242
299
  readonly required: false;
@@ -261,8 +318,8 @@ export declare const props: {
261
318
  };
262
319
  };
263
320
  export declare const emits: {
264
- "update:modelValue": (value: import("element-plus").CascaderValue) => boolean;
265
- change: (value: import("element-plus").CascaderValue) => boolean;
321
+ "update:modelValue": (value: import("element-plus").CascaderValue | null | undefined) => boolean;
322
+ change: (value: import("element-plus").CascaderValue | null | undefined) => boolean;
266
323
  focus: (evt: FocusEvent) => boolean;
267
324
  blur: (evt: FocusEvent) => boolean;
268
325
  clear: () => boolean;