@vunk/form 2.19.0 → 2.19.1

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 (148) hide show
  1. package/components/api-tables-select/src/ctx.d.ts +16 -22
  2. package/components/api-tables-select/src/index.vue.d.ts +39 -43
  3. package/components/button/index.mjs +1 -2
  4. package/components/button/src/ctx.d.ts +7 -7
  5. package/components/button/src/index.vue.d.ts +64 -63
  6. package/components/card-input-collection/index.cjs +1 -1
  7. package/components/card-input-collection/index.mjs +7 -7
  8. package/components/card-input-collection/src/core.vue.d.ts +12 -8
  9. package/components/card-input-collection/src/ctx.d.ts +2 -2
  10. package/components/card-input-collection/src/index.vue.d.ts +7 -6
  11. package/components/cascader/src/ctx.d.ts +33 -25
  12. package/components/cascader/src/index.vue.d.ts +67 -50
  13. package/components/cascader/src/use.d.ts +1 -1
  14. package/components/checkbox/index.mjs +3 -3
  15. package/components/checkbox/src/ctx.d.ts +19 -19
  16. package/components/checkbox/src/index.vue.d.ts +128 -127
  17. package/components/cloneDeep.cjs +1 -1
  18. package/components/color-picker/src/ctx.d.ts +22 -14
  19. package/components/color-picker/src/index.vue.d.ts +52 -32
  20. package/components/date-picker/src/ctx.d.ts +32 -24
  21. package/components/date-picker/src/index.vue.d.ts +68 -51
  22. package/components/date-picker-range/src/ctx.d.ts +23 -15
  23. package/components/date-picker-range/src/index.vue.d.ts +131 -98
  24. package/components/dialog/src/ctx.d.ts +5 -5
  25. package/components/dialog/src/index.vue.d.ts +18 -16
  26. package/components/dialog-input-collection/index.mjs +9 -9
  27. package/components/dialog-input-collection/src/ctx.d.ts +4 -3
  28. package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
  29. package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
  30. package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
  31. package/components/download-plus/index.cjs +1 -1
  32. package/components/download-plus/index.mjs +21 -22
  33. package/components/download-plus/src/api.d.ts +1 -1
  34. package/components/download-plus/src/ctx.d.ts +4 -3
  35. package/components/download-plus/src/index.vue.d.ts +81 -78
  36. package/components/editable-text/src/ctx.d.ts +2 -6
  37. package/components/editable-text/src/index.vue.d.ts +14 -10
  38. package/components/el-slider/index.mjs +4 -4
  39. package/components/el-slider/src/button.vue.d.ts +2 -1
  40. package/components/el-slider/src/composables/use-slide.d.ts +1 -1
  41. package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
  42. package/components/el-slider/src/composables/use-watch.d.ts +1 -1
  43. package/components/el-slider/src/slider-core.vue.d.ts +7 -6
  44. package/components/el-slider/src/slider.d.ts +2 -1
  45. package/components/esri-input-geojson/index.mjs +40 -55
  46. package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
  47. package/components/esri-input-geojson/src/ctx.d.ts +21 -22
  48. package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
  49. package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
  50. package/components/esri-input-geojson/src/types.d.ts +0 -1
  51. package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
  52. package/components/fieldset/index.mjs +2 -4
  53. package/components/fieldset/src/index.vue.d.ts +3 -2
  54. package/components/form/src/ctx.d.ts +1 -1
  55. package/components/form/src/index.vue.d.ts +68 -67
  56. package/components/form-item/index.mjs +6 -7
  57. package/components/form-item/src/core.vue.d.ts +12 -10
  58. package/components/form-item/src/ctx.d.ts +6 -4
  59. package/components/form-item/src/index.vue.d.ts +7 -6
  60. package/components/form-item-renderer/index.mjs +2 -3
  61. package/components/form-item-renderer/src/core.vue.d.ts +3 -2
  62. package/components/form-item-renderer/src/index.vue.d.ts +7 -5
  63. package/components/form-item-renderer-template/index.mjs +1 -2
  64. package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
  65. package/components/forms-provider/src/index.vue.d.ts +5 -2
  66. package/components/forms-provider/src/segment.vue.d.ts +7 -3
  67. package/components/forms-provider/src/view.vue.d.ts +11 -7
  68. package/components/index2.cjs +1 -1
  69. package/components/information/src/index.vue.d.ts +3 -2
  70. package/components/information-collection/src/ctx.d.ts +17 -11
  71. package/components/information-collection/src/index.vue.d.ts +36 -27
  72. package/components/information-renderer/index.d.ts +9 -9
  73. package/components/information-tag/src/ctx.d.ts +4 -3
  74. package/components/information-tag/src/index.vue.d.ts +12 -11
  75. package/components/information-templates-default/src/index.vue.d.ts +2 -1
  76. package/components/input/src/ctx.d.ts +20 -20
  77. package/components/input/src/index.vue.d.ts +70 -69
  78. package/components/input-array/src/ctx.d.ts +2 -2
  79. package/components/input-array/src/form-template.vue.d.ts +2 -1
  80. package/components/input-array/src/index.vue.d.ts +6 -5
  81. package/components/input-collection/src/core.vue.d.ts +17 -15
  82. package/components/input-collection/src/ctx.d.ts +4 -4
  83. package/components/input-collection/src/index.vue.d.ts +13 -12
  84. package/components/input-file/src/index.vue.d.ts +51 -50
  85. package/components/input-file/src/template.vue.d.ts +2 -1
  86. package/components/input-link/src/ctx.d.ts +19 -21
  87. package/components/input-link/src/index.vue.d.ts +111 -110
  88. package/components/input-number/src/ctx.d.ts +5 -5
  89. package/components/input-number/src/index.vue.d.ts +39 -38
  90. package/components/input-tag/src/ctx.d.ts +10 -10
  91. package/components/input-tag/src/index.vue.d.ts +48 -47
  92. package/components/monaco-editor/src/ctx.d.ts +2 -2
  93. package/components/monaco-editor/src/index.vue.d.ts +17 -16
  94. package/components/radio/index.cjs +1 -1
  95. package/components/radio/index.mjs +2 -2
  96. package/components/radio/src/ctx.d.ts +3 -3
  97. package/components/radio/src/index.vue.d.ts +32 -31
  98. package/components/radio/src/option.vue.d.ts +12 -10
  99. package/components/radio/src/wraper.vue.d.ts +9 -8
  100. package/components/renderer-data/src/index.vue.d.ts +3 -2
  101. package/components/select/src/core.vue.d.ts +99 -239
  102. package/components/select/src/ctx.d.ts +23 -95
  103. package/components/select/src/index.vue.d.ts +76 -75
  104. package/components/select/src/options.vue.d.ts +3 -2
  105. package/components/slider/src/ctx.d.ts +10 -10
  106. package/components/slider/src/index.vue.d.ts +29 -25
  107. package/components/style.css +1 -1
  108. package/components/switch/src/ctx.d.ts +11 -11
  109. package/components/switch/src/index.vue.d.ts +24 -20
  110. package/components/tables-select/index.mjs +1 -2
  111. package/components/tables-select/src/ctx.d.ts +27 -43
  112. package/components/tables-select/src/index.vue.d.ts +57 -71
  113. package/components/template-instances-provider/src/index.vue.d.ts +3 -2
  114. package/components/templates-default/src/ctx.d.ts +3 -5
  115. package/components/templates-default/src/index.vue.d.ts +778 -727
  116. package/components/templates-element-plus/index.mjs +3 -3
  117. package/components/templates-element-plus/src/index.vue.d.ts +27 -26
  118. package/components/templates-esri/src/index.vue.d.ts +600 -193
  119. package/components/templates-layout/index.mjs +3 -3
  120. package/components/templates-layout/src/index.vue.d.ts +14 -13
  121. package/components/templates-variant/src/index.vue.d.ts +132 -99
  122. package/components/time-picker/src/ctx.d.ts +31 -23
  123. package/components/time-picker/src/index.vue.d.ts +66 -49
  124. package/components/upload/index.cjs +1 -1
  125. package/components/upload/index.mjs +45 -45
  126. package/components/upload/src/ctx.d.ts +24 -22
  127. package/components/upload/src/file.vue.d.ts +75 -73
  128. package/components/upload/src/index.vue.d.ts +188 -187
  129. package/components/upload/src/wraper.vue.d.ts +48 -47
  130. package/components/upload-plus/index.cjs +7 -7
  131. package/components/upload-plus/index.mjs +1911 -1937
  132. package/components/upload-plus/src/api.d.ts +1 -1
  133. package/components/upload-plus/src/ctx.d.ts +2 -5
  134. package/components/upload-plus/src/index.vue.d.ts +6 -5
  135. package/components/use-watch.cjs +1 -1
  136. package/components/van-cascader/src/ctx.d.ts +33 -25
  137. package/components/van-cascader/src/index.vue.d.ts +67 -50
  138. package/components/var-datetime-picker/index.cjs +1 -1
  139. package/components/var-datetime-picker/index.mjs +18 -20
  140. package/components/var-datetime-picker/src/ctx.d.ts +4 -3
  141. package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
  142. package/components/vditor/src/ctx.d.ts +2 -3
  143. package/components/vditor/src/index.vue.d.ts +19 -19
  144. package/composables/index.mjs +3 -5
  145. package/composables/useSourceManager.d.ts +2 -2
  146. package/index.css +1 -1
  147. package/package.json +1 -1
  148. package/shared/element-plus/instances.d.ts +60 -43
@@ -1,11 +1,11 @@
1
1
  var X = Object.defineProperty;
2
2
  var J = (e, o, u) => o in e ? X(e, o, { enumerable: !0, configurable: !0, writable: !0, value: u }) : e[o] = u;
3
- var U = (e, o, u) => (J(e, typeof o != "symbol" ? o + "" : o, u), u);
3
+ var U = (e, o, u) => J(e, typeof o != "symbol" ? o + "" : o, u);
4
4
  import { _VkfFormItemCtx as M, VkfFormItem as K } from "@vunk/form/components/form-item";
5
- import { defineComponent as Q, watchEffect as W, ref as T, watch as E, computed as Y, onBeforeUnmount as $, resolveComponent as R, openBlock as S, createBlock as F, mergeProps as Z, withCtx as P, createElementVNode as L, createVNode as z, normalizeClass as B, createElementBlock as D, Fragment as ee, renderList as oe, normalizeStyle as H, createCommentVNode as te, createTextVNode as q, toDisplayString as N } from "vue";
5
+ import { defineComponent as Q, watchEffect as W, ref as C, watch as L, computed as Y, onBeforeUnmount as $, resolveComponent as R, openBlock as S, createBlock as E, mergeProps as Z, withCtx as P, createElementVNode as F, createVNode as z, normalizeClass as B, createElementBlock as D, Fragment as ee, renderList as oe, normalizeStyle as H, createCommentVNode as te, createTextVNode as q, toDisplayString as N } from "vue";
6
6
  import { rFile as ne } from "@skzz/platform/api/basic";
7
7
  import { restFetch as O } from "@skzz/platform/shared/fetch/platform";
8
- import { ElButtonGroup as re, ElButton as se, ElInput as le, ElMessage as ae } from "element-plus";
8
+ import { ElInput as re, ElButton as se, ElButtonGroup as le, ElMessage as ae } from "element-plus";
9
9
  import { RestFetch as de } from "@vunk/core/shared/utils-fetch";
10
10
  import { g as x } from "../index2.cjs";
11
11
  import { useModelComputed as ue } from "@vunk/core/composables";
@@ -67,8 +67,7 @@ const A = new de({
67
67
  u({
68
68
  data: h.response
69
69
  });
70
- } else
71
- t.status === 500 && v(h.response);
70
+ } else t.status === 500 && v(h.response);
72
71
  }, t.onerror = () => {
73
72
  v(t.response);
74
73
  };
@@ -82,9 +81,9 @@ const A = new de({
82
81
  name: "VkfDownloadPlus",
83
82
  components: {
84
83
  VkfFormItem: K,
85
- ElButtonGroup: re,
84
+ ElButtonGroup: le,
86
85
  ElButton: se,
87
- ElInput: le
86
+ ElInput: re
88
87
  },
89
88
  props: ve,
90
89
  emits: he,
@@ -93,8 +92,8 @@ const A = new de({
93
92
  W(() => {
94
93
  A.baseURL = e.url || O.baseURL;
95
94
  });
96
- const t = T();
97
- k(), E(() => e.fileId, k);
95
+ const t = C();
96
+ k(), L(() => e.fileId, k);
98
97
  function k() {
99
98
  e.fileId && ne({
100
99
  fileId: e.fileId
@@ -102,7 +101,7 @@ const A = new de({
102
101
  t.value = l;
103
102
  });
104
103
  }
105
- const y = Y(() => a.value === n.error ? ie : fe), r = T([]), h = T([]), a = ue({
104
+ const y = Y(() => a.value === n.error ? ie : fe), r = C([]), h = C([]), a = ue({
106
105
  default: n.wait,
107
106
  key: "fileStatus"
108
107
  }, e, o), w = () => {
@@ -145,7 +144,7 @@ const A = new de({
145
144
  a.value = n.error, ae.error(v("vkf.downloadPlus.downloadFailed", "下载失败"));
146
145
  });
147
146
  };
148
- E(() => a.value, (l) => {
147
+ L(() => a.value, (l) => {
149
148
  l === n.doDownload && w();
150
149
  });
151
150
  function p(l, g = 4, I = 10) {
@@ -186,15 +185,15 @@ const A = new de({
186
185
  b();
187
186
  });
188
187
  }
189
- const C = () => {
188
+ const T = () => {
190
189
  h.value.forEach((l) => {
191
190
  l.abort();
192
191
  }), h.value = [], a.value = n.pause;
193
192
  };
194
- E(() => a.value, (l) => {
195
- l === n.doPause && C();
193
+ L(() => a.value, (l) => {
194
+ l === n.doPause && T();
196
195
  }), $(() => {
197
- C();
196
+ T();
198
197
  });
199
198
  class j extends ce {
200
199
  constructor(I) {
@@ -217,7 +216,7 @@ const A = new de({
217
216
  formItemBindProps: u,
218
217
  fileInfo: t,
219
218
  handleDownload: w,
220
- handlePause: C,
219
+ handlePause: T,
221
220
  Status: n,
222
221
  chunks: r,
223
222
  fileStatus: a,
@@ -231,12 +230,12 @@ const A = new de({
231
230
  };
232
231
  function Se(e, o, u, v, t, k) {
233
232
  const y = R("ElInput"), r = R("el-button"), h = R("el-button-group"), a = R("VkfFormItem");
234
- return S(), F(a, Z(e.formItemBindProps, { class: "vkf-download-plus" }), {
233
+ return S(), E(a, Z(e.formItemBindProps, { class: "vkf-download-plus" }), {
235
234
  default: P(() => {
236
235
  var w;
237
236
  return [
238
- L("div", ke, [
239
- L("label", ye, [
237
+ F("div", ke, [
238
+ F("label", ye, [
240
239
  z(y, {
241
240
  class: B({
242
241
  "is-error": e.fileStatus === e.Status.error
@@ -255,7 +254,7 @@ function Se(e, o, u, v, t, k) {
255
254
  width: 100 / e.chunks.length + "%"
256
255
  })
257
256
  }, [
258
- L("div", {
257
+ F("div", {
259
258
  class: B({
260
259
  uploading: p.progress > 0 && p.progress < 100,
261
260
  success: p.progress == 100
@@ -269,7 +268,7 @@ function Se(e, o, u, v, t, k) {
269
268
  ]),
270
269
  z(h, { class: "vkf-download-plus-btng" }, {
271
270
  default: P(() => [
272
- e.fileStatus === e.Status.downloading ? (S(), F(r, {
271
+ e.fileStatus === e.Status.downloading ? (S(), E(r, {
273
272
  key: 0,
274
273
  type: "danger",
275
274
  onClick: e.handlePause
@@ -278,7 +277,7 @@ function Se(e, o, u, v, t, k) {
278
277
  q(N(e.tr("vkf.common.pause", "暂停")), 1)
279
278
  ]),
280
279
  _: 1
281
- }, 8, ["onClick"])) : (S(), F(r, {
280
+ }, 8, ["onClick"])) : (S(), E(r, {
282
281
  key: 1,
283
282
  type: "primary",
284
283
  onClick: e.handleDownload
@@ -6,7 +6,7 @@ export declare const downChunk: (params: {
6
6
  end: number;
7
7
  fileServiceType?: string;
8
8
  }, init?: {
9
- onprogress?: XMLHttpRequestEventTarget['onprogress'];
9
+ onprogress?: XMLHttpRequestEventTarget["onprogress"];
10
10
  xhrs?: XMLHttpRequest[];
11
11
  }) => Promise<{
12
12
  data: Blob;
@@ -1,3 +1,4 @@
1
+ import { FileServiceType } from './types';
1
2
  import { Status } from './const';
2
3
  import type { PropType } from 'vue';
3
4
  export declare const props: {
@@ -17,7 +18,7 @@ export declare const props: {
17
18
  default: number;
18
19
  };
19
20
  fileServiceType: {
20
- type: PropType<import("../../upload-plus/src/types").FileServiceType>;
21
+ type: PropType<FileServiceType>;
21
22
  default: undefined;
22
23
  };
23
24
  /**
@@ -73,14 +74,14 @@ export declare const props: {
73
74
  };
74
75
  labelPosition: import("element-plus/es/utils/index.mjs").EpPropFinalized<StringConstructor, "" | "left" | "right" | "top", unknown, "", boolean>;
75
76
  rules: {
76
- 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>>;
77
+ 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>>;
77
78
  readonly required: false;
78
79
  readonly validator: ((val: unknown) => boolean) | undefined;
79
80
  __epPropKey: true;
80
81
  };
81
82
  error: StringConstructor;
82
83
  validateStatus: {
83
- readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
84
+ readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
84
85
  readonly required: false;
85
86
  readonly validator: ((val: unknown) => boolean) | undefined;
86
87
  __epPropKey: true;