@vunk/form 2.12.1 → 2.13.0
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 +1 -1
- package/components/api-tables-select/src/index.vue.d.ts +5 -5
- package/components/api-tables-select/src/types.d.ts +2 -2
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +1 -1
- package/components/button/src/ctx.d.ts +1 -6
- package/components/button/src/index.vue.d.ts +3 -12
- package/components/button/src/types.d.ts +2 -2
- package/components/card-input-collection/src/ctx.d.ts +1 -6
- package/components/card-input-collection/src/index.vue.d.ts +4 -18
- package/components/card-input-collection/src/types.d.ts +2 -2
- package/components/cascader/src/ctx.d.ts +2 -7
- package/components/cascader/src/index.vue.d.ts +3 -12
- package/components/cascader/src/types.d.ts +1 -1
- package/components/checkbox/src/ctx.d.ts +2 -7
- package/components/checkbox/src/index.vue.d.ts +3 -12
- package/components/checkbox/src/types.d.ts +1 -1
- package/components/color-picker/src/ctx.d.ts +1 -6
- package/components/color-picker/src/index.vue.d.ts +3 -12
- package/components/color-picker/src/types.d.ts +1 -1
- package/components/date-picker/src/ctx.d.ts +2 -7
- package/components/date-picker/src/index.vue.d.ts +3 -12
- package/components/date-picker/src/types.d.ts +2 -2
- package/components/date-picker-range/src/types.d.ts +3 -3
- package/components/dialog-input-collection/index.cjs +128 -103
- package/components/dialog-input-collection/index.mjs +127 -102
- package/components/dialog-input-collection/src/ctx.d.ts +7 -9
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1184 -49
- package/components/dialog-input-collection/src/index.vue.d.ts +1369 -241
- package/components/dialog-input-collection/src/layout.vue.d.ts +27 -27
- package/components/dialog-input-collection/src/types.d.ts +3 -3
- package/components/download-plus/src/ctx.d.ts +1 -6
- package/components/download-plus/src/index.vue.d.ts +3 -12
- package/components/editable-text/src/ctx.d.ts +1 -6
- package/components/editable-text/src/index.vue.d.ts +5 -19
- package/components/esri-input-geojson/src/ctx.d.ts +2 -7
- package/components/esri-input-geojson/src/index.vue.d.ts +4 -13
- package/components/esri-input-geojson/src/types.d.ts +2 -2
- package/components/form/src/types.d.ts +1 -1
- package/components/form-item/index.cjs +2 -1
- package/components/form-item/index.mjs +2 -1
- package/components/form-item/src/ctx.d.ts +2 -7
- package/components/form-item/src/index.vue.d.ts +4 -13
- package/components/form-item-renderer/index.cjs +5 -3
- package/components/form-item-renderer/index.mjs +5 -3
- package/components/information/src/types.d.ts +1 -1
- package/components/information-collection/src/ctx.d.ts +1 -6
- package/components/information-collection/src/index.vue.d.ts +3 -12
- package/components/input/src/ctx.d.ts +2 -7
- package/components/input/src/index.vue.d.ts +3 -12
- package/components/input/src/types.d.ts +2 -2
- package/components/input-collection/src/ctx.d.ts +1 -6
- package/components/input-collection/src/index.vue.d.ts +4 -18
- package/components/input-collection/src/types.d.ts +2 -2
- package/components/input-link/src/ctx.d.ts +1 -6
- package/components/input-link/src/index.vue.d.ts +3 -12
- package/components/input-link/src/types.d.ts +1 -1
- package/components/input-number/src/ctx.d.ts +2 -7
- package/components/input-number/src/index.vue.d.ts +3 -12
- package/components/input-number/src/types.d.ts +1 -1
- package/components/input-tag/src/ctx.d.ts +2 -7
- package/components/input-tag/src/index.vue.d.ts +3 -12
- package/components/input-tag/src/types.d.ts +2 -2
- package/components/monaco-editor/src/ctx.d.ts +1 -6
- package/components/monaco-editor/src/index.vue.d.ts +3 -12
- package/components/monaco-editor/src/types.d.ts +2 -2
- package/components/radio/src/ctx.d.ts +1 -6
- package/components/radio/src/index.vue.d.ts +3 -12
- package/components/radio/src/types.d.ts +1 -1
- package/components/select/src/ctx.d.ts +2 -7
- package/components/select/src/index.vue.d.ts +3 -12
- package/components/select/src/types.d.ts +1 -1
- package/components/slider/src/ctx.d.ts +1 -6
- package/components/slider/src/index.vue.d.ts +3 -12
- package/components/slider/src/types.d.ts +1 -1
- package/components/switch/src/ctx.d.ts +1 -6
- package/components/switch/src/index.vue.d.ts +3 -12
- package/components/switch/src/types.d.ts +1 -1
- package/components/tables-select/src/ctx.d.ts +1 -1
- package/components/tables-select/src/index.vue.d.ts +2 -2
- package/components/tables-select/src/types.d.ts +2 -2
- package/components/templates-default/src/types.d.ts +16 -16
- package/components/templates-esri/src/types.d.ts +1 -1
- package/components/templates-variant/src/types.d.ts +1 -1
- package/components/upload/src/ctx.d.ts +2 -7
- package/components/upload/src/index.vue.d.ts +3 -12
- package/components/upload/src/types.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +1 -6
- package/components/upload-plus/src/index.vue.d.ts +4 -18
- package/components/van-cascader/src/ctx.d.ts +1 -6
- package/components/van-cascader/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/ctx.d.ts +1 -6
- package/components/var-datetime-picker/src/index.vue.d.ts +3 -12
- package/components/var-datetime-picker/src/types.d.ts +2 -2
- package/components/vditor/src/ctx.d.ts +1 -6
- package/components/vditor/src/index.vue.d.ts +3 -12
- package/components/vditor/src/types.d.ts +2 -2
- package/package.json +1 -1
- package/shared/types/source/index.d.ts +2 -2
|
@@ -46,6 +46,7 @@ export declare const props: {
|
|
|
46
46
|
type: BooleanConstructor;
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
|
+
prop: any;
|
|
49
50
|
label: StringConstructor;
|
|
50
51
|
labelWidth: {
|
|
51
52
|
readonly type: PropType<string | number>;
|
|
@@ -63,12 +64,6 @@ export declare const props: {
|
|
|
63
64
|
} & {
|
|
64
65
|
readonly default: "";
|
|
65
66
|
};
|
|
66
|
-
prop: {
|
|
67
|
-
readonly type: PropType<import("element-plus").FormItemProp>;
|
|
68
|
-
readonly required: false;
|
|
69
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
70
|
-
__epPropKey: true;
|
|
71
|
-
};
|
|
72
67
|
rules: {
|
|
73
68
|
readonly type: PropType<unknown>;
|
|
74
69
|
readonly required: false;
|
|
@@ -303,7 +298,7 @@ export declare const props: {
|
|
|
303
298
|
};
|
|
304
299
|
isRange: BooleanConstructor;
|
|
305
300
|
};
|
|
306
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"
|
|
301
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2> | Extract<"datePickerSlots", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"labelPosition", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"popperClass", keyof T2>, KE> | Exclude<Extract<"fallbackPlacements", keyof T2>, KE> | Exclude<Extract<"placement", keyof T2>, KE> | Exclude<Extract<"popperOptions", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"cellClassName", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showNow", keyof T2>, KE> | Exclude<Extract<"showWeekNumber", keyof T2>, KE> | Exclude<Extract<"emptyValues", keyof T2>, KE> | Exclude<Extract<"valueOnClear", keyof T2>, KE> | Exclude<Extract<"disabledDate", keyof T2>, KE> | Exclude<Extract<"shortcuts", keyof T2>, KE> | Exclude<Extract<"arrowControl", keyof T2>, KE> | Exclude<Extract<"unlinkPanels", keyof T2>, KE> | Exclude<Extract<"disabledHours", keyof T2>, KE> | Exclude<Extract<"disabledMinutes", keyof T2>, KE> | Exclude<Extract<"disabledSeconds", keyof T2>, KE> | Exclude<Extract<"format", keyof T2>, KE> | Exclude<Extract<"valueFormat", keyof T2>, KE> | Exclude<Extract<"dateFormat", keyof T2>, KE> | Exclude<Extract<"timeFormat", keyof T2>, KE> | Exclude<Extract<"editable", keyof T2>, KE> | Exclude<Extract<"rangeSeparator", keyof T2>, KE> | Exclude<Extract<"startPlaceholder", keyof T2>, KE> | Exclude<Extract<"endPlaceholder", keyof T2>, KE> | Exclude<Extract<"defaultValue", keyof T2>, KE> | Exclude<Extract<"defaultTime", keyof T2>, KE> | Exclude<Extract<"isRange", keyof T2>, KE> | Exclude<Extract<"datePickerSlots", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2> | Extract<"datePickerSlots", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"placement", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"name", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"clearable", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showNow", keyof T2> | Extract<"showWeekNumber", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2> | Extract<"datePickerSlots", keyof T2>]: T2[k]; }[P]; }>;
|
|
307
302
|
export declare const emits: {
|
|
308
303
|
'update:modelValue': any;
|
|
309
304
|
change: any;
|
|
@@ -44,6 +44,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
44
44
|
type: BooleanConstructor;
|
|
45
45
|
default: boolean;
|
|
46
46
|
};
|
|
47
|
+
prop: any;
|
|
47
48
|
label: StringConstructor;
|
|
48
49
|
labelWidth: {
|
|
49
50
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -61,12 +62,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
61
62
|
} & {
|
|
62
63
|
readonly default: "";
|
|
63
64
|
};
|
|
64
|
-
prop: {
|
|
65
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
66
|
-
readonly required: false;
|
|
67
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
68
|
-
__epPropKey: true;
|
|
69
|
-
};
|
|
70
65
|
rules: {
|
|
71
66
|
readonly type: import("vue").PropType<unknown>;
|
|
72
67
|
readonly required: false;
|
|
@@ -400,6 +395,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
400
395
|
type: BooleanConstructor;
|
|
401
396
|
default: boolean;
|
|
402
397
|
};
|
|
398
|
+
prop: any;
|
|
403
399
|
label: StringConstructor;
|
|
404
400
|
labelWidth: {
|
|
405
401
|
readonly type: import("vue").PropType<string | number>;
|
|
@@ -417,12 +413,6 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
417
413
|
} & {
|
|
418
414
|
readonly default: "";
|
|
419
415
|
};
|
|
420
|
-
prop: {
|
|
421
|
-
readonly type: import("vue").PropType<import("element-plus").FormItemProp>;
|
|
422
|
-
readonly required: false;
|
|
423
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
424
|
-
__epPropKey: true;
|
|
425
|
-
};
|
|
426
416
|
rules: {
|
|
427
417
|
readonly type: import("vue").PropType<unknown>;
|
|
428
418
|
readonly required: false;
|
|
@@ -676,6 +666,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
676
666
|
formItemTipClass: any;
|
|
677
667
|
labelTip: string;
|
|
678
668
|
information: boolean;
|
|
669
|
+
prop: any;
|
|
679
670
|
labelWidth: string | number;
|
|
680
671
|
labelPosition: "" | "top" | "left" | "right";
|
|
681
672
|
inlineMessage: string | boolean;
|
|
@@ -14,7 +14,7 @@ export declare const datePickerEmits: {
|
|
|
14
14
|
'panel-change': any;
|
|
15
15
|
'visible-change': any;
|
|
16
16
|
};
|
|
17
|
-
export interface Source<P
|
|
18
|
-
prop?: P
|
|
17
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof VkfDatePicker>, BasicSource {
|
|
18
|
+
prop?: P;
|
|
19
19
|
templateType: 'VkfDatePicker';
|
|
20
20
|
}
|
|
@@ -5,8 +5,8 @@ export interface SelectMedia {
|
|
|
5
5
|
label: string;
|
|
6
6
|
value: [string, string];
|
|
7
7
|
}
|
|
8
|
-
export interface Source<P
|
|
9
|
-
endprop?: P
|
|
10
|
-
startprop?: P
|
|
8
|
+
export interface Source<P = string> extends VueComponentPropsType<typeof Core>, BasicSource {
|
|
9
|
+
endprop?: P;
|
|
10
|
+
startprop?: P;
|
|
11
11
|
templateType: 'VkfDatePickerRange';
|
|
12
12
|
}
|
|
@@ -7,18 +7,20 @@ var index = require('../index.cjs');
|
|
|
7
7
|
var core = require('@vunk/core');
|
|
8
8
|
var formItem = require('@vunk/form/components/form-item');
|
|
9
9
|
var informationRenderer = require('@vunk/form/components/information-renderer');
|
|
10
|
-
var composables = require('@vunk/form/composables');
|
|
10
|
+
var composables$1 = require('@vunk/form/composables');
|
|
11
|
+
var avatar = require('@vunk/plus/components/avatar');
|
|
11
12
|
var tableColumns = require('@vunk/plus/components/table-columns');
|
|
13
|
+
var _enum = require('@vunk/shared/enum');
|
|
14
|
+
var _function = require('@vunk/shared/function');
|
|
12
15
|
var elementPlus = require('element-plus');
|
|
16
|
+
var composables = require('@vunk/core/composables');
|
|
17
|
+
var form$1 = require('@vunk/form/components/form');
|
|
18
|
+
var form = require('@vunk/form/shared/form');
|
|
19
|
+
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
20
|
+
var informationTemplatesDefault = require('@vunk/form/components/information-templates-default');
|
|
13
21
|
var rendererData = require('@vunk/form/components/renderer-data');
|
|
14
22
|
var templateInstancesProvider = require('@vunk/form/components/template-instances-provider');
|
|
15
|
-
var informationTemplatesDefault = require('@vunk/form/components/information-templates-default');
|
|
16
23
|
var templatesDefault = require('@vunk/form/components/templates-default');
|
|
17
|
-
var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
|
|
18
|
-
var _enum = require('@vunk/shared/enum');
|
|
19
|
-
var avatar = require('@vunk/plus/components/avatar');
|
|
20
|
-
var form = require('@vunk/form/components/form');
|
|
21
|
-
var _function = require('@vunk/shared/function');
|
|
22
24
|
var cloneDeep = require('../cloneDeep.cjs');
|
|
23
25
|
require('../isObject.cjs');
|
|
24
26
|
|
|
@@ -64,6 +66,9 @@ const props = {
|
|
|
64
66
|
type: Object,
|
|
65
67
|
default: () => ({})
|
|
66
68
|
},
|
|
69
|
+
validateCatch: {
|
|
70
|
+
type: Function
|
|
71
|
+
},
|
|
67
72
|
modules: {
|
|
68
73
|
type: Array,
|
|
69
74
|
default: () => ["operations:add"]
|
|
@@ -74,76 +79,6 @@ const emits = {
|
|
|
74
79
|
};
|
|
75
80
|
|
|
76
81
|
var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
|
|
77
|
-
__name: "layout",
|
|
78
|
-
props: {
|
|
79
|
-
data: {
|
|
80
|
-
type: Object,
|
|
81
|
-
default: () => ({})
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
emits: ["setData"],
|
|
85
|
-
setup(__props, { expose: __expose }) {
|
|
86
|
-
__expose();
|
|
87
|
-
const __returned__ = { get VkfRendererData() {
|
|
88
|
-
return rendererData.VkfRendererData;
|
|
89
|
-
}, get VkfTemplateInstancesProvider() {
|
|
90
|
-
return templateInstancesProvider.VkfTemplateInstancesProvider;
|
|
91
|
-
}, get VkfInformationTemplates() {
|
|
92
|
-
return informationRenderer.VkfInformationTemplates;
|
|
93
|
-
}, get VkfInformationData() {
|
|
94
|
-
return informationRenderer.VkfInformationData;
|
|
95
|
-
}, get VkfInformationTemplatesDefault() {
|
|
96
|
-
return informationTemplatesDefault.VkfInformationTemplatesDefault;
|
|
97
|
-
}, get VkfTemplatesDefault() {
|
|
98
|
-
return templatesDefault.VkfTemplatesDefault;
|
|
99
|
-
} };
|
|
100
|
-
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
101
|
-
return __returned__;
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
|
|
105
|
-
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
106
|
-
return vue.openBlock(), vue.createBlock($setup["VkfTemplateInstancesProvider"], null, {
|
|
107
|
-
placeholder: vue.withCtx(() => [
|
|
108
|
-
vue.createVNode($setup["VkfTemplatesDefault"])
|
|
109
|
-
]),
|
|
110
|
-
default: vue.withCtx(() => [
|
|
111
|
-
vue.createVNode($setup["VkfInformationTemplates"], null, {
|
|
112
|
-
placeholder: vue.withCtx(() => [
|
|
113
|
-
vue.createVNode($setup["VkfInformationTemplatesDefault"])
|
|
114
|
-
]),
|
|
115
|
-
default: vue.withCtx(() => [
|
|
116
|
-
vue.createVNode($setup["VkfRendererData"], {
|
|
117
|
-
data: $props.data,
|
|
118
|
-
onSetData: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("setData", $event))
|
|
119
|
-
}, {
|
|
120
|
-
default: vue.withCtx(() => [
|
|
121
|
-
vue.createVNode($setup["VkfInformationData"], {
|
|
122
|
-
data: $props.data,
|
|
123
|
-
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
124
|
-
}, {
|
|
125
|
-
default: vue.withCtx(() => [
|
|
126
|
-
vue.renderSlot(_ctx.$slots, "default")
|
|
127
|
-
]),
|
|
128
|
-
_: 3
|
|
129
|
-
/* FORWARDED */
|
|
130
|
-
}, 8, ["data"])
|
|
131
|
-
]),
|
|
132
|
-
_: 3
|
|
133
|
-
/* FORWARDED */
|
|
134
|
-
}, 8, ["data"])
|
|
135
|
-
]),
|
|
136
|
-
_: 3
|
|
137
|
-
/* FORWARDED */
|
|
138
|
-
})
|
|
139
|
-
]),
|
|
140
|
-
_: 3
|
|
141
|
-
/* FORWARDED */
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
var TemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog-input-collection/src/layout.vue"]]);
|
|
145
|
-
|
|
146
|
-
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
147
82
|
__name: "dialog-form",
|
|
148
83
|
props: {
|
|
149
84
|
title: {
|
|
@@ -169,6 +104,10 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
169
104
|
dialogFormProps: {
|
|
170
105
|
type: Object,
|
|
171
106
|
default: () => ({})
|
|
107
|
+
},
|
|
108
|
+
validateCatch: {
|
|
109
|
+
type: Function,
|
|
110
|
+
default: form.validateCatch
|
|
172
111
|
}
|
|
173
112
|
},
|
|
174
113
|
emits: ["update:modelValue", "update:visible", "change"],
|
|
@@ -177,32 +116,42 @@ var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
177
116
|
const props = __props;
|
|
178
117
|
const emit = __emit;
|
|
179
118
|
const formData = vue.ref(props.modelValue);
|
|
119
|
+
const formDef = composables.useDeferred();
|
|
120
|
+
formDef.promise.then((form) => {
|
|
121
|
+
props.dialogFormProps.elRef?.(form);
|
|
122
|
+
});
|
|
180
123
|
vue.watch(() => props.visible, (v) => {
|
|
181
124
|
if (props.openReset && v) {
|
|
182
125
|
formData.value = { ...props.modelValue };
|
|
126
|
+
setTimeout(() => {
|
|
127
|
+
formDef.value?.clearValidate();
|
|
128
|
+
});
|
|
183
129
|
}
|
|
184
130
|
});
|
|
185
131
|
function handleSubmit() {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
132
|
+
formDef.value?.validate().then(() => {
|
|
133
|
+
emit("update:modelValue", formData.value);
|
|
134
|
+
emit("change", formData.value);
|
|
135
|
+
emit("update:visible", false);
|
|
136
|
+
}).catch(props.validateCatch);
|
|
189
137
|
}
|
|
190
|
-
const __returned__ = { props, emit, formData, handleSubmit, get
|
|
191
|
-
return
|
|
138
|
+
const __returned__ = { props, emit, formData, formDef, handleSubmit, get setData() {
|
|
139
|
+
return core.setData;
|
|
140
|
+
}, get VkfForm() {
|
|
141
|
+
return form$1.VkfForm;
|
|
192
142
|
}, get ElDialog() {
|
|
193
143
|
return elementPlus.ElDialog;
|
|
194
|
-
}, get setData() {
|
|
195
|
-
return core.setData;
|
|
196
144
|
} };
|
|
197
145
|
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
198
146
|
return __returned__;
|
|
199
147
|
}
|
|
200
148
|
});
|
|
201
149
|
|
|
202
|
-
function _sfc_render$
|
|
150
|
+
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
203
151
|
const _component_ElButton = vue.resolveComponent("ElButton");
|
|
204
152
|
return vue.openBlock(), vue.createBlock($setup["ElDialog"], {
|
|
205
153
|
"model-value": $props.visible,
|
|
154
|
+
"append-to-body": "",
|
|
206
155
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:visible", $event))
|
|
207
156
|
}, {
|
|
208
157
|
header: vue.withCtx(() => [
|
|
@@ -231,20 +180,92 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
231
180
|
]),
|
|
232
181
|
default: vue.withCtx(() => [
|
|
233
182
|
vue.createVNode($setup["VkfForm"], vue.mergeProps($props.dialogFormProps, {
|
|
183
|
+
"el-ref": $setup.formDef.resolve,
|
|
234
184
|
"form-items": $props.formItems,
|
|
235
185
|
data: $setup.formData,
|
|
236
186
|
onSetData: _cache[0] || (_cache[0] = ($event) => $setup.setData($setup.formData, $event))
|
|
237
|
-
}), null, 16, ["form-items", "data"])
|
|
187
|
+
}), null, 16, ["el-ref", "form-items", "data"])
|
|
238
188
|
]),
|
|
239
189
|
_: 3
|
|
240
190
|
/* FORWARDED */
|
|
241
191
|
}, 8, ["model-value"]);
|
|
242
192
|
}
|
|
243
|
-
var DialogForm = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$
|
|
193
|
+
var DialogForm = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog-input-collection/src/dialog-form.vue"]]);
|
|
194
|
+
|
|
195
|
+
var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
196
|
+
__name: "layout",
|
|
197
|
+
props: {
|
|
198
|
+
data: {
|
|
199
|
+
type: Object,
|
|
200
|
+
default: () => ({})
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
emits: ["setData"],
|
|
204
|
+
setup(__props, { expose: __expose }) {
|
|
205
|
+
__expose();
|
|
206
|
+
const __returned__ = { get VkfInformationData() {
|
|
207
|
+
return informationRenderer.VkfInformationData;
|
|
208
|
+
}, get VkfInformationTemplates() {
|
|
209
|
+
return informationRenderer.VkfInformationTemplates;
|
|
210
|
+
}, get VkfInformationTemplatesDefault() {
|
|
211
|
+
return informationTemplatesDefault.VkfInformationTemplatesDefault;
|
|
212
|
+
}, get VkfRendererData() {
|
|
213
|
+
return rendererData.VkfRendererData;
|
|
214
|
+
}, get VkfTemplateInstancesProvider() {
|
|
215
|
+
return templateInstancesProvider.VkfTemplateInstancesProvider;
|
|
216
|
+
}, get VkfTemplatesDefault() {
|
|
217
|
+
return templatesDefault.VkfTemplatesDefault;
|
|
218
|
+
} };
|
|
219
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
220
|
+
return __returned__;
|
|
221
|
+
}
|
|
222
|
+
});
|
|
223
|
+
|
|
224
|
+
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
225
|
+
return vue.openBlock(), vue.createBlock($setup["VkfTemplateInstancesProvider"], null, {
|
|
226
|
+
placeholder: vue.withCtx(() => [
|
|
227
|
+
vue.createVNode($setup["VkfTemplatesDefault"])
|
|
228
|
+
]),
|
|
229
|
+
default: vue.withCtx(() => [
|
|
230
|
+
vue.createVNode($setup["VkfInformationTemplates"], null, {
|
|
231
|
+
placeholder: vue.withCtx(() => [
|
|
232
|
+
vue.createVNode($setup["VkfInformationTemplatesDefault"])
|
|
233
|
+
]),
|
|
234
|
+
default: vue.withCtx(() => [
|
|
235
|
+
vue.createVNode($setup["VkfRendererData"], {
|
|
236
|
+
data: $props.data,
|
|
237
|
+
onSetData: _cache[1] || (_cache[1] = ($event) => _ctx.$emit("setData", $event))
|
|
238
|
+
}, {
|
|
239
|
+
default: vue.withCtx(() => [
|
|
240
|
+
vue.createVNode($setup["VkfInformationData"], {
|
|
241
|
+
data: $props.data,
|
|
242
|
+
onSetData: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("setData", $event))
|
|
243
|
+
}, {
|
|
244
|
+
default: vue.withCtx(() => [
|
|
245
|
+
vue.renderSlot(_ctx.$slots, "default")
|
|
246
|
+
]),
|
|
247
|
+
_: 3
|
|
248
|
+
/* FORWARDED */
|
|
249
|
+
}, 8, ["data"])
|
|
250
|
+
]),
|
|
251
|
+
_: 3
|
|
252
|
+
/* FORWARDED */
|
|
253
|
+
}, 8, ["data"])
|
|
254
|
+
]),
|
|
255
|
+
_: 3
|
|
256
|
+
/* FORWARDED */
|
|
257
|
+
})
|
|
258
|
+
]),
|
|
259
|
+
_: 3
|
|
260
|
+
/* FORWARDED */
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
var TemplatesLayout = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/dialog-input-collection/src/layout.vue"]]);
|
|
244
264
|
|
|
245
265
|
var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
246
266
|
...{
|
|
247
|
-
name: "VkfDialogInputCollection"
|
|
267
|
+
name: "VkfDialogInputCollection",
|
|
268
|
+
inheritAttrs: false
|
|
248
269
|
},
|
|
249
270
|
__name: "index",
|
|
250
271
|
props: props,
|
|
@@ -254,14 +275,14 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
254
275
|
emit: __emit
|
|
255
276
|
}) {
|
|
256
277
|
__expose();
|
|
257
|
-
const ElTable = elementPlus.ElTable;
|
|
258
278
|
const props = __props;
|
|
259
279
|
const emit = __emit;
|
|
280
|
+
const ElTable = elementPlus.ElTable;
|
|
260
281
|
const hasColAdd = vue.computed(() => {
|
|
261
282
|
return props.modules.includes("operations:add");
|
|
262
283
|
});
|
|
263
284
|
const formItemBindProps = formItem._VkfFormItemCtx.createBindProps(props);
|
|
264
|
-
const readonly = composables.useComputedReadonly(props);
|
|
285
|
+
const readonly = composables$1.useComputedReadonly(props);
|
|
265
286
|
const formData = vue.computed(() => {
|
|
266
287
|
if (!props.prop || props.prop.length === 0) {
|
|
267
288
|
return props.modelValue;
|
|
@@ -392,9 +413,9 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
392
413
|
emit("update:modelValue", core.getValue(data, props.prop));
|
|
393
414
|
};
|
|
394
415
|
const __returned__ = {
|
|
395
|
-
ElTable,
|
|
396
416
|
props,
|
|
397
417
|
emit,
|
|
418
|
+
ElTable,
|
|
398
419
|
hasColAdd,
|
|
399
420
|
formItemBindProps,
|
|
400
421
|
readonly,
|
|
@@ -409,29 +430,29 @@ var _sfc_main = /* @__PURE__ */vue.defineComponent({
|
|
|
409
430
|
handleEdit,
|
|
410
431
|
handleDialogFormChange,
|
|
411
432
|
handleFormSetData,
|
|
412
|
-
get Plus() {
|
|
413
|
-
return index.plus_default;
|
|
414
|
-
},
|
|
415
433
|
get Edit() {
|
|
416
434
|
return index.edit_default;
|
|
417
435
|
},
|
|
436
|
+
get Plus() {
|
|
437
|
+
return index.plus_default;
|
|
438
|
+
},
|
|
418
439
|
get VkfFormItem() {
|
|
419
440
|
return formItem.VkfFormItem;
|
|
420
441
|
},
|
|
442
|
+
get VkAvatar() {
|
|
443
|
+
return avatar.VkAvatar;
|
|
444
|
+
},
|
|
421
445
|
get VkTableColumns() {
|
|
422
446
|
return tableColumns.VkTableColumns;
|
|
423
447
|
},
|
|
424
|
-
get ElButton() {
|
|
425
|
-
return elementPlus.ElButton;
|
|
426
|
-
},
|
|
427
|
-
TemplatesLayout,
|
|
428
448
|
get CRUD() {
|
|
429
449
|
return _enum.CRUD;
|
|
430
450
|
},
|
|
431
|
-
get
|
|
432
|
-
return
|
|
451
|
+
get ElButton() {
|
|
452
|
+
return elementPlus.ElButton;
|
|
433
453
|
},
|
|
434
|
-
DialogForm
|
|
454
|
+
DialogForm,
|
|
455
|
+
TemplatesLayout
|
|
435
456
|
};
|
|
436
457
|
Object.defineProperty(__returned__, "__isScriptSetup", {
|
|
437
458
|
enumerable: false,
|
|
@@ -459,7 +480,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
459
480
|
default: vue.withCtx(() => [
|
|
460
481
|
vue.createVNode(
|
|
461
482
|
$setup["VkfFormItem"],
|
|
462
|
-
vue.normalizeProps(vue.guardReactiveProps(
|
|
483
|
+
vue.normalizeProps(vue.guardReactiveProps({
|
|
484
|
+
...$setup.formItemBindProps,
|
|
485
|
+
..._ctx.$attrs
|
|
486
|
+
})),
|
|
463
487
|
vue.createSlots({
|
|
464
488
|
default: vue.withCtx(() => [
|
|
465
489
|
!$setup.readonly && _ctx.splicable && !_ctx.labelActions ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
@@ -518,6 +542,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
518
542
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.cuState.data = $event),
|
|
519
543
|
"form-items": $setup.cuFormItems,
|
|
520
544
|
"dialog-form-props": _ctx.dialogFormProps,
|
|
545
|
+
"validate-catch": _ctx.validateCatch,
|
|
521
546
|
onChange: $setup.handleDialogFormChange
|
|
522
547
|
}, {
|
|
523
548
|
header: vue.withCtx(() => [
|
|
@@ -536,7 +561,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
536
561
|
]),
|
|
537
562
|
_: 1
|
|
538
563
|
/* STABLE */
|
|
539
|
-
}, 8, ["visible", "modelValue", "form-items", "dialog-form-props"])
|
|
564
|
+
}, 8, ["visible", "modelValue", "form-items", "dialog-form-props", "validate-catch"])
|
|
540
565
|
]),
|
|
541
566
|
_: 3
|
|
542
567
|
/* FORWARDED */
|