@vunk/form 2.19.12 → 2.19.15
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.
- package/components/api-tables-select/src/ctx.d.ts +14 -10
- package/components/api-tables-select/src/index.vue.d.ts +30 -21
- package/components/button/src/ctx.d.ts +4 -0
- package/components/button/src/index.vue.d.ts +18 -0
- package/components/card-input-collection/src/core.vue.d.ts +9 -0
- package/components/card-input-collection/src/ctx.d.ts +4 -0
- package/components/card-input-collection/src/index.vue.d.ts +9 -0
- package/components/cascader/src/ctx.d.ts +5 -1
- package/components/cascader/src/index.vue.d.ts +12 -3
- package/components/checkbox/src/ctx.d.ts +5 -1
- package/components/checkbox/src/index.vue.d.ts +19 -1
- package/components/collapse/index.cjs +1 -0
- package/components/collapse/index.d.ts +4 -0
- package/components/collapse/index.mjs +45 -0
- package/components/collapse/src/index.vue.d.ts +15 -0
- package/components/collapse/src/set-attrs.vue.d.ts +23 -0
- package/components/collapse-item/index.cjs +1 -0
- package/components/collapse-item/index.d.ts +6 -0
- package/components/collapse-item/index.mjs +63 -0
- package/components/collapse-item/src/ctx.d.ts +7 -0
- package/components/collapse-item/src/index.vue.d.ts +36 -0
- package/components/collapse-item/src/types.d.ts +1 -0
- package/components/collapse-item/src/use.d.ts +13 -0
- package/components/color-picker/src/ctx.d.ts +4 -0
- package/components/color-picker/src/index.vue.d.ts +10 -1
- package/components/date-picker/src/ctx.d.ts +5 -1
- package/components/date-picker/src/index.vue.d.ts +13 -4
- package/components/date-picker-range/src/ctx.d.ts +90 -86
- package/components/date-picker-range/src/index.vue.d.ts +198 -180
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog-input-collection/src/ctx.d.ts +4 -0
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +9 -0
- package/components/download-plus/src/ctx.d.ts +4 -0
- package/components/download-plus/src/index.vue.d.ts +18 -0
- package/components/editable-text/src/ctx.d.ts +4 -0
- package/components/editable-text/src/index.vue.d.ts +9 -0
- package/components/el-slider/src/slider-core.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +5 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +34 -6
- package/components/form/index.cjs +1 -1
- package/components/form/index.d.ts +1 -0
- package/components/form/index.mjs +115 -80
- package/components/form/src/index.vue.d.ts +1 -1
- package/components/form/src/types.d.ts +2 -1
- package/components/form/src/use.d.ts +206 -0
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +103 -80
- package/components/form-item/src/core.vue.d.ts +4 -0
- package/components/form-item/src/ctx.d.ts +6 -1
- package/components/form-item/src/index.vue.d.ts +9 -0
- package/components/information-collection/src/ctx.d.ts +4 -0
- package/components/information-collection/src/index.vue.d.ts +9 -0
- package/components/information-tag/src/index.vue.d.ts +2 -2
- package/components/input/src/ctx.d.ts +5 -1
- package/components/input/src/index.vue.d.ts +21 -3
- package/components/input-array/src/ctx.d.ts +4 -0
- package/components/input-array/src/index.vue.d.ts +9 -0
- package/components/input-collection/src/core.vue.d.ts +9 -0
- package/components/input-collection/src/ctx.d.ts +4 -0
- package/components/input-collection/src/index.vue.d.ts +9 -0
- package/components/input-file/src/index.vue.d.ts +9 -0
- package/components/input-link/src/ctx.d.ts +4 -0
- package/components/input-link/src/index.vue.d.ts +31 -4
- package/components/input-number/src/ctx.d.ts +5 -1
- package/components/input-number/src/index.vue.d.ts +21 -3
- package/components/input-tag/src/ctx.d.ts +5 -1
- package/components/input-tag/src/index.vue.d.ts +25 -7
- package/components/monaco-editor/src/ctx.d.ts +4 -0
- package/components/monaco-editor/src/index.vue.d.ts +18 -0
- package/components/radio/src/ctx.d.ts +4 -0
- package/components/radio/src/index.vue.d.ts +21 -3
- package/components/radio/src/wraper.vue.d.ts +10 -1
- package/components/select/src/core.vue.d.ts +33 -15
- package/components/select/src/ctx.d.ts +5 -1
- package/components/select/src/index.vue.d.ts +15 -6
- package/components/slider/src/ctx.d.ts +4 -0
- package/components/slider/src/index.vue.d.ts +11 -2
- package/components/switch/src/ctx.d.ts +4 -0
- package/components/switch/src/index.vue.d.ts +9 -0
- package/components/tables-select/src/ctx.d.ts +5 -1
- package/components/tables-select/src/index.vue.d.ts +10 -1
- package/components/templates-default/src/index.vue.d.ts +218 -38
- package/components/templates-esri/src/index.vue.d.ts +34 -6
- package/components/templates-variant/src/index.vue.d.ts +198 -180
- package/components/time-picker/src/ctx.d.ts +5 -1
- package/components/time-picker/src/index.vue.d.ts +13 -4
- package/components/upload/src/ctx.d.ts +5 -1
- package/components/upload/src/index.vue.d.ts +18 -0
- package/components/upload/src/wraper.vue.d.ts +9 -0
- package/components/upload-plus/src/ctx.d.ts +4 -0
- package/components/upload-plus/src/index.vue.d.ts +9 -0
- package/components/van-cascader/src/ctx.d.ts +4 -0
- package/components/van-cascader/src/index.vue.d.ts +12 -3
- package/components/var-datetime-picker/src/ctx.d.ts +4 -0
- package/components/var-datetime-picker/src/index.vue.d.ts +18 -0
- package/components/vditor/src/ctx.d.ts +4 -0
- package/components/vditor/src/index.vue.d.ts +18 -0
- package/composables/form-mitt/index.cjs +1 -0
- package/composables/form-mitt/index.d.ts +37 -0
- package/composables/form-mitt/index.mjs +41 -0
- package/composables/index.cjs +1 -1
- package/composables/index.d.ts +1 -0
- package/composables/index.mjs +16 -14
- package/package.json +19 -1
- package/shared/element-plus/ctx.d.ts +14 -13
- package/shared/element-plus/index.cjs +1 -1
- package/shared/element-plus/index.mjs +57 -56
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { timePickerDefaultProps as P, inputProps as f, inputEmits as g, formProps as h, formEmits as k, formItemProps as B, switchProps as O, switchEmits as
|
|
2
|
-
import { bindPropsFactory as r, onEmitsFactory as
|
|
3
|
-
const
|
|
1
|
+
import { timePickerDefaultProps as P, inputProps as f, inputEmits as g, formProps as h, formEmits as k, formItemProps as B, switchProps as O, switchEmits as I, selectProps as b, selectEmits as w, inputNumberProps as x, inputNumberEmits as y, radioGroupProps as S, radioGroupEmits as T, checkboxGroupProps as v, checkboxGroupEmits as G, uploadProps as C, colorPickerProps as N, colorPickerEmits as F, buttonProps as z, buttonEmits as V, cascaderProps as D, cascaderEmits as R, sliderProps as $, sliderEmits as j, inputTagProps as M, inputTagEmits as _, tagProps as A, tagEmits as U, collapseItemProps as W, version as X } from "element-plus";
|
|
2
|
+
import { bindPropsFactory as r, onEmitsFactory as o } from "@vunk/core/shared/utils-vue";
|
|
3
|
+
const q = {
|
|
4
4
|
...P,
|
|
5
5
|
type: {
|
|
6
6
|
type: String,
|
|
7
7
|
default: "date"
|
|
8
8
|
}
|
|
9
|
-
},
|
|
9
|
+
}, H = {
|
|
10
10
|
"update:modelValue": null,
|
|
11
11
|
change: null,
|
|
12
12
|
focus: null,
|
|
@@ -15,44 +15,44 @@ const X = {
|
|
|
15
15
|
"panel-change": null,
|
|
16
16
|
"visible-change": null,
|
|
17
17
|
keydown: null
|
|
18
|
-
}, H = {
|
|
19
|
-
...P
|
|
20
18
|
}, J = {
|
|
19
|
+
...P
|
|
20
|
+
}, K = {
|
|
21
21
|
"update:modelValue": null,
|
|
22
22
|
change: null,
|
|
23
23
|
focus: null,
|
|
24
24
|
blur: null,
|
|
25
25
|
"visible-change": null,
|
|
26
26
|
keydown: null
|
|
27
|
-
}, nt = r(f),
|
|
27
|
+
}, nt = r(f), st = o(g), ct = r(h), it = o(k), at = r(B), pt = r(O), lt = o(I), ut = r(b), mt = o(w), dt = r(q), Pt = o(H), Et = r(J), ft = o(K), gt = r(x), ht = o(y), kt = r(S), Bt = o(T), Ot = r(v), It = o(G), bt = r(C), wt = r(N), xt = o(F), yt = r(z), St = o(V), Tt = r(D), vt = o(R), Gt = r($), Ct = o(j), Nt = r(M), Ft = o(_), zt = r(A), Vt = o(U), Dt = r(W), L = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, p = (t) => {
|
|
28
28
|
if (typeof t != "string")
|
|
29
29
|
throw new TypeError("Invalid argument expected string");
|
|
30
|
-
const e = t.match(
|
|
30
|
+
const e = t.match(L);
|
|
31
31
|
if (!e)
|
|
32
32
|
throw new Error(`Invalid argument not valid semver ('${t}' received)`);
|
|
33
33
|
return e.shift(), e;
|
|
34
34
|
}, l = (t) => t === "*" || t === "x" || t === "X", u = (t) => {
|
|
35
35
|
const e = parseInt(t, 10);
|
|
36
36
|
return isNaN(e) ? t : e;
|
|
37
|
-
},
|
|
37
|
+
}, Q = (t, e) => typeof t != typeof e ? [String(t), String(e)] : [t, e], Y = (t, e) => {
|
|
38
38
|
if (l(t) || l(e))
|
|
39
39
|
return 0;
|
|
40
|
-
const [
|
|
41
|
-
return
|
|
42
|
-
},
|
|
43
|
-
for (let
|
|
44
|
-
const s =
|
|
40
|
+
const [n, s] = Q(u(t), u(e));
|
|
41
|
+
return n > s ? 1 : n < s ? -1 : 0;
|
|
42
|
+
}, m = (t, e) => {
|
|
43
|
+
for (let n = 0; n < Math.max(t.length, e.length); n++) {
|
|
44
|
+
const s = Y(t[n] || "0", e[n] || "0");
|
|
45
45
|
if (s !== 0)
|
|
46
46
|
return s;
|
|
47
47
|
}
|
|
48
48
|
return 0;
|
|
49
|
-
},
|
|
50
|
-
const
|
|
51
|
-
return a !== 0 ? a : c && i ?
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
const s =
|
|
55
|
-
return E[
|
|
49
|
+
}, Z = (t, e) => {
|
|
50
|
+
const n = p(t), s = p(e), c = n.pop(), i = s.pop(), a = m(n, s);
|
|
51
|
+
return a !== 0 ? a : c && i ? m(c.split("."), i.split(".")) : c || i ? c ? -1 : 1 : 0;
|
|
52
|
+
}, tt = (t, e, n) => {
|
|
53
|
+
et(n);
|
|
54
|
+
const s = Z(t, e);
|
|
55
|
+
return E[n].includes(s);
|
|
56
56
|
}, E = {
|
|
57
57
|
">": [1],
|
|
58
58
|
">=": [0, 1],
|
|
@@ -60,46 +60,47 @@ const X = {
|
|
|
60
60
|
"<=": [-1, 0],
|
|
61
61
|
"<": [-1],
|
|
62
62
|
"!=": [-1, 1]
|
|
63
|
-
},
|
|
64
|
-
if (
|
|
65
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
66
|
-
},
|
|
63
|
+
}, d = Object.keys(E), et = (t) => {
|
|
64
|
+
if (d.indexOf(t) === -1)
|
|
65
|
+
throw new Error(`Invalid operator, expected one of ${d.join("|")}`);
|
|
66
|
+
}, Rt = tt(X, "2.6.0", ">=");
|
|
67
67
|
export {
|
|
68
68
|
yt as createButtonBindProps,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
St as createButtonOnEmits,
|
|
70
|
+
Tt as createCascaderBindProps,
|
|
71
|
+
vt as createCascaderOnEmits,
|
|
72
|
+
Ot as createCheckboxGroupBindProps,
|
|
73
|
+
It as createCheckboxGroupOnEmits,
|
|
74
|
+
Dt as createCollapseItemBindProps,
|
|
74
75
|
wt as createColorPickerBindProps,
|
|
75
76
|
xt as createColorPickerOnEmits,
|
|
76
77
|
dt as createDatePickerBindProps,
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
78
|
+
Pt as createDatePickerOnEmits,
|
|
79
|
+
ct as createFormBindProps,
|
|
80
|
+
at as createFormItemBindProps,
|
|
81
|
+
it as createFormOnEmits,
|
|
81
82
|
nt as createInputBindProps,
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
83
|
+
gt as createInputNumberBindProps,
|
|
84
|
+
ht as createInputNumberOnEmits,
|
|
85
|
+
st as createInputOnEmits,
|
|
86
|
+
Nt as createInputTagBindProps,
|
|
87
|
+
Ft as createInputTagOnEmits,
|
|
88
|
+
kt as createRadioGroupBindProps,
|
|
89
|
+
Bt as createRadioGroupOnEmits,
|
|
90
|
+
ut as createSelectBindProps,
|
|
91
|
+
mt as createSelectOnEmits,
|
|
92
|
+
Gt as createSliderBindProps,
|
|
93
|
+
Ct as createSliderOnEmits,
|
|
94
|
+
pt as createSwitchBindProps,
|
|
95
|
+
lt as createSwitchOnEmits,
|
|
96
|
+
zt as createTagBindProps,
|
|
97
|
+
Vt as createTagOnEmits,
|
|
98
|
+
Et as createTimePickerBindProps,
|
|
99
|
+
ft as createTimePickerOnEmits,
|
|
99
100
|
bt as createUploadBindProps,
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
H as datePickerEmits,
|
|
102
|
+
q as datePickerProps,
|
|
103
|
+
Rt as isGte2_6_0,
|
|
104
|
+
K as timePickerEmits,
|
|
105
|
+
J as timePickerProps
|
|
105
106
|
};
|