@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.
- package/components/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- package/components/api-tables-select/src/ctx.d.ts +16 -22
- package/components/api-tables-select/src/index.vue.d.ts +39 -43
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +2 -3
- package/components/button/src/ctx.d.ts +7 -7
- package/components/button/src/index.vue.d.ts +64 -63
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +9 -9
- package/components/card-input-collection/src/core.vue.d.ts +12 -8
- package/components/card-input-collection/src/ctx.d.ts +2 -2
- package/components/card-input-collection/src/index.vue.d.ts +7 -6
- package/components/cascader/src/ctx.d.ts +33 -25
- package/components/cascader/src/index.vue.d.ts +67 -50
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.cjs +1 -1
- package/components/checkbox/index.mjs +4 -4
- package/components/checkbox/src/ctx.d.ts +19 -19
- package/components/checkbox/src/index.vue.d.ts +128 -127
- package/components/cloneDeep-DE0l40hv.mjs +486 -0
- package/components/cloneDeep-DaYwfXwD.js +1 -0
- package/components/color-picker/src/ctx.d.ts +22 -14
- package/components/color-picker/src/index.vue.d.ts +52 -32
- package/components/date-picker/src/ctx.d.ts +32 -24
- package/components/date-picker/src/index.vue.d.ts +68 -51
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +1 -1
- package/components/date-picker-range/src/ctx.d.ts +23 -15
- package/components/date-picker-range/src/index.vue.d.ts +131 -98
- package/components/debounce-CliSPkvP.js +1 -0
- package/components/debounce-DIph5ENi.mjs +85 -0
- package/components/dialog/src/ctx.d.ts +5 -5
- package/components/dialog/src/index.vue.d.ts +18 -16
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +11 -11
- package/components/dialog-input-collection/src/ctx.d.ts +4 -3
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
- package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
- package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +24 -25
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +4 -3
- package/components/download-plus/src/index.vue.d.ts +81 -78
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +1 -1
- package/components/editable-text/src/ctx.d.ts +2 -6
- package/components/editable-text/src/index.vue.d.ts +14 -10
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +5 -5
- package/components/el-slider/src/button.vue.d.ts +2 -1
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -1
- package/components/el-slider/src/composables/use-slide.d.ts +1 -1
- package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
- package/components/el-slider/src/composables/use-watch.d.ts +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +7 -6
- package/components/el-slider/src/slider.d.ts +2 -1
- package/components/esri-input-geojson/index.cjs +1 -1
- package/components/esri-input-geojson/index.mjs +42 -57
- package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
- package/components/esri-input-geojson/src/ctx.d.ts +21 -22
- package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
- package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
- package/components/fieldset/index.cjs +1 -1
- package/components/fieldset/index.mjs +3 -5
- package/components/fieldset/src/index.vue.d.ts +3 -2
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +68 -67
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +7 -8
- package/components/form-item/src/core.vue.d.ts +12 -10
- package/components/form-item/src/ctx.d.ts +6 -4
- package/components/form-item/src/index.vue.d.ts +7 -6
- package/components/form-item-renderer/index.mjs +2 -3
- package/components/form-item-renderer/src/core.vue.d.ts +3 -2
- package/components/form-item-renderer/src/index.vue.d.ts +7 -5
- package/components/form-item-renderer-template/index.mjs +1 -2
- package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
- package/components/forms-provider/src/index.vue.d.ts +5 -2
- package/components/forms-provider/src/segment.vue.d.ts +7 -3
- package/components/forms-provider/src/view.vue.d.ts +11 -7
- package/components/index-BCZuzyeO.mjs +317 -0
- package/components/index-BNPcMpOO.js +1 -0
- package/components/index-DJv1MwwH.mjs +14 -0
- package/components/information/src/index.vue.d.ts +3 -2
- package/components/information-collection/src/ctx.d.ts +17 -11
- package/components/information-collection/src/index.vue.d.ts +36 -27
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-tag/src/ctx.d.ts +4 -3
- package/components/information-tag/src/index.vue.d.ts +12 -11
- package/components/information-templates-default/src/index.vue.d.ts +2 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +1 -1
- package/components/input/src/ctx.d.ts +20 -20
- package/components/input/src/index.vue.d.ts +70 -69
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +2 -2
- package/components/input-array/src/ctx.d.ts +2 -2
- package/components/input-array/src/form-template.vue.d.ts +2 -1
- package/components/input-array/src/index.vue.d.ts +6 -5
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +2 -2
- package/components/input-collection/src/core.vue.d.ts +17 -15
- package/components/input-collection/src/ctx.d.ts +4 -4
- package/components/input-collection/src/index.vue.d.ts +13 -12
- package/components/input-file/src/index.vue.d.ts +51 -50
- package/components/input-file/src/template.vue.d.ts +2 -1
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +2 -2
- package/components/input-link/src/ctx.d.ts +19 -21
- package/components/input-link/src/index.vue.d.ts +111 -110
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +1 -1
- package/components/input-number/src/ctx.d.ts +5 -5
- package/components/input-number/src/index.vue.d.ts +39 -38
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +1 -1
- package/components/input-tag/src/ctx.d.ts +10 -10
- package/components/input-tag/src/index.vue.d.ts +48 -47
- package/components/isObject-DQpnfMRp.mjs +34 -0
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +1 -1
- package/components/monaco-editor/src/ctx.d.ts +2 -2
- package/components/monaco-editor/src/index.vue.d.ts +17 -16
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.mjs +3 -3
- package/components/radio/src/ctx.d.ts +3 -3
- package/components/radio/src/index.vue.d.ts +32 -31
- package/components/radio/src/option.vue.d.ts +12 -10
- package/components/radio/src/wraper.vue.d.ts +9 -8
- package/components/renderer-data/src/index.vue.d.ts +3 -2
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +1 -1
- package/components/select/src/core.vue.d.ts +99 -239
- package/components/select/src/ctx.d.ts +23 -95
- package/components/select/src/index.vue.d.ts +76 -75
- package/components/select/src/options.vue.d.ts +3 -2
- package/components/slider/src/ctx.d.ts +10 -10
- package/components/slider/src/index.vue.d.ts +29 -25
- package/components/style.css +1 -1
- package/components/switch/src/ctx.d.ts +11 -11
- package/components/switch/src/index.vue.d.ts +24 -20
- package/components/tables-select/index.mjs +1 -2
- package/components/tables-select/src/ctx.d.ts +27 -43
- package/components/tables-select/src/index.vue.d.ts +57 -71
- package/components/template-instances-provider/src/index.vue.d.ts +3 -2
- package/components/templates-default/index.cjs +1 -1
- package/components/templates-default/index.mjs +1 -1
- package/components/templates-default/src/ctx.d.ts +3 -5
- package/components/templates-default/src/index.vue.d.ts +778 -727
- package/components/templates-element-plus/index.cjs +1 -1
- package/components/templates-element-plus/index.mjs +4 -4
- package/components/templates-element-plus/src/index.vue.d.ts +27 -26
- package/components/templates-esri/index.cjs +1 -1
- package/components/templates-esri/index.mjs +1 -1
- package/components/templates-esri/src/index.vue.d.ts +600 -193
- package/components/templates-layout/index.cjs +1 -1
- package/components/templates-layout/index.mjs +4 -4
- package/components/templates-layout/src/index.vue.d.ts +14 -13
- package/components/templates-variant/index.cjs +1 -1
- package/components/templates-variant/index.mjs +1 -1
- package/components/templates-variant/src/index.vue.d.ts +132 -99
- package/components/time-picker/src/ctx.d.ts +31 -23
- package/components/time-picker/src/index.vue.d.ts +66 -49
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +46 -46
- package/components/upload/src/ctx.d.ts +24 -22
- package/components/upload/src/file.vue.d.ts +75 -73
- package/components/upload/src/index.vue.d.ts +188 -187
- package/components/upload/src/wraper.vue.d.ts +48 -47
- package/components/upload-plus/index.cjs +7 -7
- package/components/upload-plus/index.mjs +1911 -1937
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +2 -5
- package/components/upload-plus/src/index.vue.d.ts +6 -5
- package/components/use-watch-Bfrz9pv_.js +1 -0
- package/components/use-watch-t49wP7jy.mjs +414 -0
- package/components/van-cascader/src/ctx.d.ts +33 -25
- package/components/van-cascader/src/index.vue.d.ts +67 -50
- package/components/var-datetime-picker/index.cjs +1 -1
- package/components/var-datetime-picker/index.mjs +19 -21
- package/components/var-datetime-picker/src/ctx.d.ts +4 -3
- package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
- package/components/vditor/index.cjs +1 -1
- package/components/vditor/index.mjs +1 -1
- package/components/vditor/src/ctx.d.ts +2 -3
- package/components/vditor/src/index.vue.d.ts +19 -19
- package/composables/index.mjs +3 -5
- package/composables/useSourceManager.d.ts +2 -2
- package/index.css +1 -1
- package/package.json +1 -1
- package/shared/element-plus/instances.d.ts +60 -43
- package/components/cloneDeep.cjs +0 -1
- package/components/debounce.cjs +0 -1
- package/components/index2.cjs +0 -1
- package/components/use-watch.cjs +0 -1
- /package/components/{_plugin-vue_export-helper.cjs → _plugin-vue_export-helper-BHFhmbuH.js} +0 -0
- /package/components/{index.cjs → index-DSyxYMB0.js} +0 -0
- /package/components/{isObject.cjs → isObject-fAvOGw_H.js} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _VkfFormItemCtx as Y, VkfFormItem as
|
|
2
|
-
import { defineComponent as
|
|
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 {
|
|
7
|
-
import {
|
|
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/
|
|
10
|
-
import "@varlet/ui/es/time-picker/
|
|
11
|
-
import { _ as q } from "../_plugin-vue_export-helper.
|
|
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 =
|
|
108
|
+
], T = Q.reduce((e, a) => (e[a.value] = a, e), {}), W = B({
|
|
109
109
|
name: "VkfVarDatetimePicker",
|
|
110
110
|
components: {
|
|
111
|
-
VkfFormItem:
|
|
112
|
-
ElDatePicker:
|
|
113
|
-
DatePicker:
|
|
114
|
-
TimePicker:
|
|
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
|
-
}),
|
|
149
|
+
}), M = O(e), b = h(!1), g = h("date");
|
|
152
150
|
return {
|
|
153
151
|
preInput: () => {
|
|
154
|
-
|
|
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
|
|
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 ? (
|
|
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<
|
|
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, "" | "
|
|
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;
|