@vunk/form 2.10.1 → 2.10.4

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 (205) hide show
  1. package/components/api-tables-select/index.cjs +37 -36
  2. package/components/api-tables-select/index.d.ts +4 -0
  3. package/components/api-tables-select/index.mjs +37 -36
  4. package/components/api-tables-select/src/ctx.d.ts +374 -0
  5. package/components/api-tables-select/src/index.vue.d.ts +1335 -0
  6. package/components/api-tables-select/src/types.d.ts +19 -0
  7. package/components/button/index.d.ts +4 -0
  8. package/components/button/src/ctx.d.ts +190 -0
  9. package/components/button/src/index.vue.d.ts +822 -0
  10. package/components/button/src/types.d.ts +13 -0
  11. package/components/card-input-collection/index.cjs +67 -70
  12. package/components/card-input-collection/index.d.ts +4 -0
  13. package/components/card-input-collection/index.mjs +68 -71
  14. package/components/card-input-collection/src/ctx.d.ts +119 -0
  15. package/components/card-input-collection/src/index.vue.d.ts +1043 -0
  16. package/components/card-input-collection/src/types.d.ts +10 -0
  17. package/components/cascader/index.d.ts +6 -0
  18. package/components/cascader/src/ctx.d.ts +297 -0
  19. package/components/cascader/src/index.vue.d.ts +650 -0
  20. package/components/cascader/src/types.d.ts +19 -0
  21. package/components/cascader/src/use.d.ts +5 -0
  22. package/components/checkbox/index.cjs +2 -3
  23. package/components/checkbox/index.d.ts +5 -0
  24. package/components/checkbox/index.mjs +2 -3
  25. package/components/checkbox/src/ctx.d.ts +151 -0
  26. package/components/checkbox/src/index.vue.d.ts +1362 -0
  27. package/components/checkbox/src/types.d.ts +8 -0
  28. package/components/color-picker/index.d.ts +4 -0
  29. package/components/color-picker/src/ctx.d.ts +153 -0
  30. package/components/color-picker/src/index.vue.d.ts +341 -0
  31. package/components/color-picker/src/types.d.ts +7 -0
  32. package/components/date-picker/index.d.ts +5 -0
  33. package/components/date-picker/src/ctx.d.ts +325 -0
  34. package/components/date-picker/src/index.vue.d.ts +1422 -0
  35. package/components/date-picker/src/types.d.ts +20 -0
  36. package/components/date-picker-range/index.d.ts +4 -0
  37. package/components/date-picker-range/src/ctx.d.ts +328 -0
  38. package/components/date-picker-range/src/index.vue.d.ts +717 -0
  39. package/components/date-picker-range/src/types.d.ts +12 -0
  40. package/components/download-plus/index.cjs +4 -4
  41. package/components/download-plus/index.d.ts +4 -0
  42. package/components/download-plus/index.mjs +4 -4
  43. package/components/download-plus/src/api.d.ts +13 -0
  44. package/components/download-plus/src/const.d.ts +9 -0
  45. package/components/download-plus/src/ctx.d.ts +129 -0
  46. package/components/download-plus/src/index.vue.d.ts +1432 -0
  47. package/components/download-plus/src/types.d.ts +17 -0
  48. package/components/editable-text/index.cjs +9 -0
  49. package/components/editable-text/index.d.ts +4 -0
  50. package/components/editable-text/index.mjs +9 -0
  51. package/components/editable-text/src/ctx.d.ts +132 -0
  52. package/components/editable-text/src/index.vue.d.ts +3399 -0
  53. package/components/editable-text/src/types.d.ts +1 -0
  54. package/components/esri-input-geojson/index.d.ts +6 -0
  55. package/components/esri-input-geojson/src/append.vue.d.ts +1179 -0
  56. package/components/esri-input-geojson/src/const.d.ts +12 -0
  57. package/components/esri-input-geojson/src/ctx.d.ts +340 -0
  58. package/components/esri-input-geojson/src/default-view.vue.d.ts +133 -0
  59. package/components/esri-input-geojson/src/index.vue.d.ts +1459 -0
  60. package/components/esri-input-geojson/src/types.d.ts +22 -0
  61. package/components/esri-input-geojson/src/viewer.vue.d.ts +427 -0
  62. package/components/fieldset/index.d.ts +4 -0
  63. package/components/fieldset/src/ctx.d.ts +12 -0
  64. package/components/fieldset/src/index.vue.d.ts +23 -0
  65. package/components/fieldset/src/types.d.ts +1 -0
  66. package/components/fieldset/src/use.d.ts +5 -0
  67. package/components/form/index.d.ts +5 -0
  68. package/components/form/src/ctx.d.ts +132 -0
  69. package/components/form/src/index.vue.d.ts +4007 -0
  70. package/components/form/src/types.d.ts +25 -0
  71. package/components/form/src/utils.d.ts +15 -0
  72. package/components/form-item/index.d.ts +5 -0
  73. package/components/form-item/src/ctx.d.ts +107 -0
  74. package/components/form-item/src/index.vue.d.ts +961 -0
  75. package/components/form-item/src/types.d.ts +9 -0
  76. package/components/form-item-renderer/index.d.ts +4 -0
  77. package/components/form-item-renderer/src/core.vue.d.ts +38 -0
  78. package/components/form-item-renderer/src/ctx.d.ts +16 -0
  79. package/components/form-item-renderer/src/index.vue.d.ts +93 -0
  80. package/components/form-item-renderer/src/types.d.ts +5 -0
  81. package/components/form-item-renderer/src/utils.d.ts +5 -0
  82. package/components/form-item-renderer-template/index.d.ts +4 -0
  83. package/components/form-item-renderer-template/src/ctx.d.ts +7 -0
  84. package/components/form-item-renderer-template/src/index.vue.d.ts +16 -0
  85. package/components/form-item-renderer-template/src/types.d.ts +55 -0
  86. package/components/information/index.d.ts +4 -0
  87. package/components/information/src/ctx.d.ts +13 -0
  88. package/components/information/src/index.vue.d.ts +23 -0
  89. package/components/information/src/types.d.ts +3 -0
  90. package/components/information-collection/index.d.ts +4 -0
  91. package/components/information-collection/src/ctx.d.ts +147 -0
  92. package/components/information-collection/src/index.vue.d.ts +302 -0
  93. package/components/information-collection/src/types.d.ts +6 -0
  94. package/components/information-tag/index.d.ts +4 -0
  95. package/components/information-tag/src/ctx.d.ts +64 -0
  96. package/components/information-tag/src/index.vue.d.ts +134 -0
  97. package/components/information-tag/src/types.d.ts +1 -0
  98. package/components/information-templates-default/index.d.ts +4 -0
  99. package/components/information-templates-default/src/ctx.d.ts +2 -0
  100. package/components/information-templates-default/src/index.vue.d.ts +2 -0
  101. package/components/information-templates-default/src/types.d.ts +1 -0
  102. package/components/input/index.d.ts +5 -0
  103. package/components/input/src/ctx.d.ts +269 -0
  104. package/components/input/src/index.vue.d.ts +1192 -0
  105. package/components/input/src/types.d.ts +13 -0
  106. package/components/input-collection/index.cjs +105 -74
  107. package/components/input-collection/index.d.ts +4 -0
  108. package/components/input-collection/index.mjs +107 -76
  109. package/components/input-collection/src/ctx.d.ts +137 -0
  110. package/components/input-collection/src/index.vue.d.ts +1141 -0
  111. package/components/input-collection/src/types.d.ts +29 -0
  112. package/components/input-link/index.d.ts +4 -0
  113. package/components/input-link/src/ctx.d.ts +273 -0
  114. package/components/input-link/src/index.vue.d.ts +577 -0
  115. package/components/input-link/src/types.d.ts +7 -0
  116. package/components/input-number/index.d.ts +4 -0
  117. package/components/input-number/src/ctx.d.ts +208 -0
  118. package/components/input-number/src/index.vue.d.ts +816 -0
  119. package/components/input-number/src/types.d.ts +12 -0
  120. package/components/input-tag/index.d.ts +5 -0
  121. package/components/input-tag/src/ctx.d.ts +239 -0
  122. package/components/input-tag/src/index.vue.d.ts +991 -0
  123. package/components/input-tag/src/types.d.ts +22 -0
  124. package/components/monaco-editor/index.d.ts +4 -0
  125. package/components/monaco-editor/src/ctx.d.ts +115 -0
  126. package/components/monaco-editor/src/index.vue.d.ts +303 -0
  127. package/components/monaco-editor/src/types.d.ts +7 -0
  128. package/components/radio/index.cjs +2 -3
  129. package/components/radio/index.d.ts +4 -0
  130. package/components/radio/index.mjs +2 -3
  131. package/components/radio/src/ctx.d.ts +162 -0
  132. package/components/radio/src/index.vue.d.ts +1311 -0
  133. package/components/radio/src/types.d.ts +8 -0
  134. package/components/renderer-data/index.d.ts +4 -0
  135. package/components/renderer-data/src/ctx.d.ts +12 -0
  136. package/components/renderer-data/src/index.vue.d.ts +20 -0
  137. package/components/renderer-data/src/types.d.ts +1 -0
  138. package/components/select/index.d.ts +5 -0
  139. package/components/select/src/ctx.d.ts +225 -0
  140. package/components/select/src/index.vue.d.ts +1043 -0
  141. package/components/select/src/types.d.ts +11 -0
  142. package/components/slider/index.d.ts +4 -0
  143. package/components/slider/src/ctx.d.ts +253 -0
  144. package/components/slider/src/index.vue.d.ts +588 -0
  145. package/components/slider/src/types.d.ts +7 -0
  146. package/components/switch/index.d.ts +4 -0
  147. package/components/switch/src/ctx.d.ts +208 -0
  148. package/components/switch/src/index.vue.d.ts +895 -0
  149. package/components/switch/src/types.d.ts +8 -0
  150. package/components/tables-select/index.d.ts +5 -0
  151. package/components/tables-select/src/ctx.d.ts +420 -0
  152. package/components/tables-select/src/index.vue.d.ts +5411 -0
  153. package/components/tables-select/src/types.d.ts +9 -0
  154. package/components/template-instances-provider/index.d.ts +3 -0
  155. package/components/template-instances-provider/src/index.vue.d.ts +6 -0
  156. package/components/templates-default/index.d.ts +4 -0
  157. package/components/templates-default/src/ctx.d.ts +19 -0
  158. package/components/templates-default/src/index.vue.d.ts +187 -0
  159. package/components/templates-default/src/types.d.ts +55 -0
  160. package/components/templates-element-plus/index.d.ts +4 -0
  161. package/components/templates-element-plus/src/ctx.d.ts +9 -0
  162. package/components/templates-element-plus/src/index.vue.d.ts +301 -0
  163. package/components/templates-element-plus/src/types.d.ts +13 -0
  164. package/components/templates-esri/index.d.ts +4 -0
  165. package/components/templates-esri/src/ctx.d.ts +11 -0
  166. package/components/templates-esri/src/index.vue.d.ts +43 -0
  167. package/components/templates-esri/src/types.d.ts +2 -0
  168. package/components/templates-layout/index.d.ts +4 -0
  169. package/components/templates-layout/src/ctx.d.ts +9 -0
  170. package/components/templates-layout/src/index.vue.d.ts +446 -0
  171. package/components/templates-layout/src/types.d.ts +32 -0
  172. package/components/templates-variant/index.d.ts +4 -0
  173. package/components/templates-variant/src/ctx.d.ts +11 -0
  174. package/components/templates-variant/src/index.vue.d.ts +43 -0
  175. package/components/templates-variant/src/types.d.ts +2 -0
  176. package/components/upload/index.cjs +2 -2
  177. package/components/upload/index.d.ts +5 -0
  178. package/components/upload/index.mjs +2 -2
  179. package/components/upload/src/ctx.d.ts +294 -0
  180. package/components/upload/src/file.vue.d.ts +492 -0
  181. package/components/upload/src/index.vue.d.ts +1935 -0
  182. package/components/upload/src/types.d.ts +13 -0
  183. package/components/upload-plus/index.cjs +79 -86
  184. package/components/upload-plus/index.d.ts +6 -0
  185. package/components/upload-plus/index.mjs +79 -86
  186. package/components/upload-plus/src/api.d.ts +38 -0
  187. package/components/upload-plus/src/const.d.ts +9 -0
  188. package/components/upload-plus/src/ctx.d.ts +148 -0
  189. package/components/upload-plus/src/index.vue.d.ts +1754 -0
  190. package/components/upload-plus/src/types.d.ts +32 -0
  191. package/components/van-cascader/index.d.ts +4 -0
  192. package/components/van-cascader/src/ctx.d.ts +284 -0
  193. package/components/van-cascader/src/index.vue.d.ts +2116 -0
  194. package/components/van-cascader/src/types.d.ts +1 -0
  195. package/components/var-datetime-picker/index.d.ts +4 -0
  196. package/components/var-datetime-picker/src/const.d.ts +10 -0
  197. package/components/var-datetime-picker/src/ctx.d.ts +112 -0
  198. package/components/var-datetime-picker/src/index.vue.d.ts +1482 -0
  199. package/components/var-datetime-picker/src/types.d.ts +22 -0
  200. package/components/vditor/index.d.ts +4 -0
  201. package/components/vditor/src/ctx.d.ts +122 -0
  202. package/components/vditor/src/index.vue.d.ts +418 -0
  203. package/components/vditor/src/types.d.ts +7 -0
  204. package/package.json +1 -1
  205. package/shared/element-plus/ctx.d.ts +111 -30
@@ -0,0 +1,12 @@
1
+ import { BasicSource } from '@vunk/form/shared';
2
+ import { VueComponentPropsType } from '@vunk/shared';
3
+ import type Core from './index.vue';
4
+ export interface SelectMedia {
5
+ label: string;
6
+ value: [string, string];
7
+ }
8
+ export interface Source<P extends string = string> extends VueComponentPropsType<typeof Core>, BasicSource {
9
+ endprop?: P | P[];
10
+ startprop?: P | P[];
11
+ templateType: 'VkfDatePickerRange';
12
+ }
@@ -401,8 +401,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
401
401
  default: vue.withCtx(() => _cache[0] || (_cache[0] = [
402
402
  vue.createTextVNode(" \u6682\u505C ")
403
403
  ])),
404
- _: 1
405
- /* STABLE */
404
+ _: 1,
405
+ __: [0]
406
406
  }, 8, ["onClick"])) : (vue.openBlock(), vue.createBlock(_component_el_button, {
407
407
  key: 1,
408
408
  type: "primary",
@@ -411,8 +411,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
411
411
  default: vue.withCtx(() => _cache[1] || (_cache[1] = [
412
412
  vue.createTextVNode(" \u4E0B\u8F7D ")
413
413
  ])),
414
- _: 1
415
- /* STABLE */
414
+ _: 1,
415
+ __: [1]
416
416
  }, 8, ["onClick"]))
417
417
  ]),
418
418
  _: 1
@@ -0,0 +1,4 @@
1
+ import VkfDownloadPlus from './src/index.vue';
2
+ export * as __VkfDownloadPlus from './src/types';
3
+ export { VkfDownloadPlus, };
4
+ export default VkfDownloadPlus;
@@ -397,8 +397,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
397
397
  default: withCtx(() => _cache[0] || (_cache[0] = [
398
398
  createTextVNode(" \u6682\u505C ")
399
399
  ])),
400
- _: 1
401
- /* STABLE */
400
+ _: 1,
401
+ __: [0]
402
402
  }, 8, ["onClick"])) : (openBlock(), createBlock(_component_el_button, {
403
403
  key: 1,
404
404
  type: "primary",
@@ -407,8 +407,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
407
407
  default: withCtx(() => _cache[1] || (_cache[1] = [
408
408
  createTextVNode(" \u4E0B\u8F7D ")
409
409
  ])),
410
- _: 1
411
- /* STABLE */
410
+ _: 1,
411
+ __: [1]
412
412
  }, 8, ["onClick"]))
413
413
  ]),
414
414
  _: 1
@@ -0,0 +1,13 @@
1
+ import { RestFetch } from '@vunk/core/shared/utils-fetch';
2
+ export declare const restFetch: RestFetch;
3
+ export declare const downChunk: (params: {
4
+ fileId: string;
5
+ start: number;
6
+ end: number;
7
+ fileServiceType?: string;
8
+ }, init?: {
9
+ onprogress?: XMLHttpRequestEventTarget["onprogress"];
10
+ xhrs?: XMLHttpRequest[];
11
+ }) => Promise<{
12
+ data: Blob;
13
+ }>;
@@ -0,0 +1,9 @@
1
+ export declare enum Status {
2
+ wait = "wait",
3
+ doPause = "doPause",
4
+ pause = "pause",
5
+ doDownload = "doDownload",
6
+ downloading = "downloading",
7
+ error = "error",
8
+ done = "done"
9
+ }
@@ -0,0 +1,129 @@
1
+ import { FileServiceType } from './types';
2
+ import { Status } from './const';
3
+ import { PropType } from 'vue';
4
+ export declare const props: {
5
+ fileId: {
6
+ type: StringConstructor;
7
+ default: string;
8
+ };
9
+ url: {
10
+ type: StringConstructor;
11
+ default: any;
12
+ };
13
+ /**
14
+ * @description 分片大小
15
+ */
16
+ chunkSize: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ fileServiceType: {
21
+ type: PropType<FileServiceType>;
22
+ default: any;
23
+ };
24
+ /**
25
+ * @description
26
+ * v-model:fileStatus 当前文件状态: wait, doPause, pause, doDownload, downloading, error, done
27
+ */
28
+ fileStatus: {
29
+ type: PropType<Status>;
30
+ default: any;
31
+ };
32
+ required: {
33
+ readonly type: PropType<boolean>;
34
+ readonly required: false;
35
+ readonly validator: ((val: unknown) => boolean) | undefined;
36
+ __epPropKey: true;
37
+ } & {
38
+ readonly default: undefined;
39
+ };
40
+ formItemSize: {
41
+ type: PropType<"default" | "small" | "large">;
42
+ default: "default" | "small" | "large";
43
+ };
44
+ formItemSlots: {
45
+ type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
46
+ default: any;
47
+ };
48
+ elRef: {
49
+ type: PropType<any>;
50
+ required: boolean;
51
+ };
52
+ inline: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ readonly: {
57
+ type: BooleanConstructor;
58
+ default: any;
59
+ };
60
+ formItemTip: {
61
+ type: StringConstructor;
62
+ default: any;
63
+ };
64
+ formItemTipClass: any;
65
+ labelTip: {
66
+ type: StringConstructor;
67
+ default: any;
68
+ };
69
+ information: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ label: StringConstructor;
74
+ labelWidth: {
75
+ readonly type: PropType<string | number>;
76
+ readonly required: false;
77
+ readonly validator: ((val: unknown) => boolean) | undefined;
78
+ __epPropKey: true;
79
+ } & {
80
+ readonly default: "";
81
+ };
82
+ labelPosition: {
83
+ readonly type: PropType<"" | "top" | "left" | "right">;
84
+ readonly required: false;
85
+ readonly validator: ((val: unknown) => boolean) | undefined;
86
+ __epPropKey: true;
87
+ } & {
88
+ readonly default: "";
89
+ };
90
+ prop: {
91
+ readonly type: PropType<import("element-plus").FormItemProp>;
92
+ readonly required: false;
93
+ readonly validator: ((val: unknown) => boolean) | undefined;
94
+ __epPropKey: true;
95
+ };
96
+ rules: {
97
+ readonly type: PropType<unknown>;
98
+ readonly required: false;
99
+ readonly validator: ((val: unknown) => boolean) | undefined;
100
+ __epPropKey: true;
101
+ };
102
+ error: StringConstructor;
103
+ validateStatus: {
104
+ readonly type: PropType<"" | "error" | "success" | "validating">;
105
+ readonly required: false;
106
+ readonly validator: ((val: unknown) => boolean) | undefined;
107
+ __epPropKey: true;
108
+ };
109
+ for: StringConstructor;
110
+ inlineMessage: {
111
+ readonly type: PropType<string | boolean>;
112
+ readonly required: false;
113
+ readonly validator: ((val: unknown) => boolean) | undefined;
114
+ __epPropKey: true;
115
+ } & {
116
+ readonly default: "";
117
+ };
118
+ showMessage: {
119
+ readonly type: PropType<boolean>;
120
+ readonly required: false;
121
+ readonly validator: ((val: unknown) => boolean) | undefined;
122
+ __epPropKey: true;
123
+ } & {
124
+ readonly default: true;
125
+ };
126
+ };
127
+ export declare const emits: {
128
+ 'update:fileStatus': any;
129
+ };