@vunk/form 2.0.2 → 2.1.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/esri-input-geojson/index.cjs +484 -2
- package/components/esri-input-geojson/index.mjs +483 -1
- package/components/esri-input-geojson/src/ctx.d.ts +1 -1
- package/components/esri-input-geojson/src/index.vue.d.ts +1 -1
- package/components/index2.cjs +0 -19
- package/components/index2.mjs +1 -19
- package/components/input-collection/index.mjs +1 -1
- package/components/input-number/src/ctx.d.ts +1 -1
- package/components/input-number/src/index.vue.d.ts +2 -2
- package/components/select/index.cjs +12 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/index.mjs +12 -1
- package/components/select/src/ctx.d.ts +2 -0
- package/components/select/src/index.vue.d.ts +1 -1
- package/components/tables-select/index.cjs +225 -0
- package/components/tables-select/index.css +3 -0
- package/components/tables-select/index.d.ts +4 -0
- package/components/tables-select/index.mjs +219 -0
- package/components/tables-select/src/ctx.d.ts +338 -0
- package/components/tables-select/src/index.vue.d.ts +4953 -0
- package/components/tables-select/src/types.d.ts +1 -0
- package/components/upload/index.mjs +1 -1
- package/components/upload-plus/index.mjs +1 -1
- package/index.css +4 -41
- package/package.json +9 -9
- package/shared/element-plus/ctx.d.ts +1 -1
- package/components/geoinput-update/index.cjs +0 -406
- package/components/geoinput-update/index.css +0 -40
- package/components/geoinput-update/index.d.ts +0 -5
- package/components/geoinput-update/index.mjs +0 -399
- package/components/geoinput-update/src/append.vue.d.ts +0 -815
- package/components/geoinput-update/src/ctx.d.ts +0 -219
- package/components/geoinput-update/src/index.vue.d.ts +0 -1143
- package/components/geoinput-update/src/types.d.ts +0 -6
- package/components/index3.cjs +0 -486
- package/components/index3.mjs +0 -484
|
@@ -1,219 +0,0 @@
|
|
|
1
|
-
import { PropType, RendererElement } from 'vue';
|
|
2
|
-
import { FeatureCollection, Geometry } from 'geojson';
|
|
3
|
-
import { __VmControlDraw } from '@vumap/core/components/control-draw';
|
|
4
|
-
import { EditType, Slots } from './types';
|
|
5
|
-
import type { LngLatLike } from 'mapbox-gl';
|
|
6
|
-
export declare const props: {
|
|
7
|
-
showMap: {
|
|
8
|
-
type: BooleanConstructor;
|
|
9
|
-
default: boolean;
|
|
10
|
-
};
|
|
11
|
-
dialogEdit: {
|
|
12
|
-
type: BooleanConstructor;
|
|
13
|
-
default: boolean;
|
|
14
|
-
};
|
|
15
|
-
dialogEditFullscreen: {
|
|
16
|
-
type: BooleanConstructor;
|
|
17
|
-
default: boolean;
|
|
18
|
-
};
|
|
19
|
-
dialogEditTitle: {
|
|
20
|
-
type: StringConstructor;
|
|
21
|
-
default: string;
|
|
22
|
-
};
|
|
23
|
-
modelValue: {
|
|
24
|
-
type: PropType<FeatureCollection<Geometry, any>>;
|
|
25
|
-
default: () => FeatureCollection<Geometry, {
|
|
26
|
-
[name: string]: any;
|
|
27
|
-
}>;
|
|
28
|
-
};
|
|
29
|
-
editControls: {
|
|
30
|
-
type: PropType<EditType[]>;
|
|
31
|
-
default: () => string[];
|
|
32
|
-
};
|
|
33
|
-
editTypes: {
|
|
34
|
-
type: PropType<EditType[] | EditType>;
|
|
35
|
-
default: () => string;
|
|
36
|
-
};
|
|
37
|
-
multiple: {
|
|
38
|
-
type: BooleanConstructor;
|
|
39
|
-
default: boolean;
|
|
40
|
-
};
|
|
41
|
-
mapTo: {
|
|
42
|
-
type: PropType<RendererElement | string>;
|
|
43
|
-
default: any;
|
|
44
|
-
};
|
|
45
|
-
mapCenter: {
|
|
46
|
-
type: PropType<LngLatLike>;
|
|
47
|
-
default: number[];
|
|
48
|
-
};
|
|
49
|
-
editStyles: {
|
|
50
|
-
type: PropType<__VmControlDraw.StyleLayer[]>;
|
|
51
|
-
default: () => any[];
|
|
52
|
-
};
|
|
53
|
-
slots: {
|
|
54
|
-
type: PropType<Slots>;
|
|
55
|
-
default: () => {};
|
|
56
|
-
};
|
|
57
|
-
spikSave: {
|
|
58
|
-
type: BooleanConstructor;
|
|
59
|
-
default: boolean;
|
|
60
|
-
};
|
|
61
|
-
maxlength: {
|
|
62
|
-
type: NumberConstructor;
|
|
63
|
-
required: boolean;
|
|
64
|
-
};
|
|
65
|
-
minlength: {
|
|
66
|
-
type: NumberConstructor;
|
|
67
|
-
required: boolean;
|
|
68
|
-
};
|
|
69
|
-
inputSlots: {
|
|
70
|
-
type: PropType<import("@vunk/form/components/input/src/types").InputSlots>;
|
|
71
|
-
default: any;
|
|
72
|
-
};
|
|
73
|
-
rows: {
|
|
74
|
-
type: NumberConstructor;
|
|
75
|
-
default: any;
|
|
76
|
-
};
|
|
77
|
-
required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
78
|
-
formItemSize: {
|
|
79
|
-
type: PropType<"default" | "small" | "large">;
|
|
80
|
-
default: "default" | "small" | "large";
|
|
81
|
-
};
|
|
82
|
-
formItemSlots: {
|
|
83
|
-
type: PropType<import("@vunk/form/components/form-item/src/types").FormItemSlots>;
|
|
84
|
-
default: any;
|
|
85
|
-
};
|
|
86
|
-
elRef: {
|
|
87
|
-
type: PropType<any>;
|
|
88
|
-
required: boolean;
|
|
89
|
-
};
|
|
90
|
-
inline: {
|
|
91
|
-
type: BooleanConstructor;
|
|
92
|
-
default: boolean;
|
|
93
|
-
};
|
|
94
|
-
readonly: {
|
|
95
|
-
type: BooleanConstructor;
|
|
96
|
-
default: any;
|
|
97
|
-
};
|
|
98
|
-
formItemTip: {
|
|
99
|
-
type: StringConstructor;
|
|
100
|
-
default: any;
|
|
101
|
-
};
|
|
102
|
-
formItemTipClass: any;
|
|
103
|
-
labelTip: {
|
|
104
|
-
type: StringConstructor;
|
|
105
|
-
default: any;
|
|
106
|
-
};
|
|
107
|
-
label: StringConstructor;
|
|
108
|
-
labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
109
|
-
labelPosition: import("element-plus/es/utils").EpPropFinalized<StringConstructor, "" | "top" | "left" | "right", unknown, "", boolean>;
|
|
110
|
-
prop: {
|
|
111
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => string | string[]) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
|
|
112
|
-
readonly required: false;
|
|
113
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
114
|
-
__epPropKey: true;
|
|
115
|
-
};
|
|
116
|
-
rules: {
|
|
117
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>) | ((new (...args: any[]) => import("element-plus").FormItemRule | import("element-plus").FormItemRule[]) | (() => import("element-plus/es/utils").Arrayable<import("element-plus").FormItemRule>))[], unknown, unknown>>;
|
|
118
|
-
readonly required: false;
|
|
119
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
120
|
-
__epPropKey: true;
|
|
121
|
-
};
|
|
122
|
-
error: StringConstructor;
|
|
123
|
-
validateStatus: {
|
|
124
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
|
|
125
|
-
readonly required: false;
|
|
126
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
127
|
-
__epPropKey: true;
|
|
128
|
-
};
|
|
129
|
-
for: StringConstructor;
|
|
130
|
-
inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
|
|
131
|
-
showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
132
|
-
ariaLabel: StringConstructor;
|
|
133
|
-
id: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
134
|
-
size: {
|
|
135
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "small" | "default" | "large", never>>;
|
|
136
|
-
readonly required: false;
|
|
137
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
138
|
-
__epPropKey: true;
|
|
139
|
-
};
|
|
140
|
-
disabled: BooleanConstructor;
|
|
141
|
-
type: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "text", boolean>;
|
|
142
|
-
resize: {
|
|
143
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
|
|
144
|
-
readonly required: false;
|
|
145
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
146
|
-
__epPropKey: true;
|
|
147
|
-
};
|
|
148
|
-
autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => boolean | {
|
|
149
|
-
minRows?: number;
|
|
150
|
-
maxRows?: number;
|
|
151
|
-
}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => boolean | {
|
|
152
|
-
minRows?: number;
|
|
153
|
-
maxRows?: number;
|
|
154
|
-
}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
|
|
155
|
-
autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
|
|
156
|
-
formatter: {
|
|
157
|
-
readonly type: import("vue").PropType<Function>;
|
|
158
|
-
readonly required: false;
|
|
159
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
160
|
-
__epPropKey: true;
|
|
161
|
-
};
|
|
162
|
-
parser: {
|
|
163
|
-
readonly type: import("vue").PropType<Function>;
|
|
164
|
-
readonly required: false;
|
|
165
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
166
|
-
__epPropKey: true;
|
|
167
|
-
};
|
|
168
|
-
placeholder: {
|
|
169
|
-
readonly type: import("vue").PropType<string>;
|
|
170
|
-
readonly required: false;
|
|
171
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
172
|
-
__epPropKey: true;
|
|
173
|
-
};
|
|
174
|
-
form: {
|
|
175
|
-
readonly type: import("vue").PropType<string>;
|
|
176
|
-
readonly required: false;
|
|
177
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
178
|
-
__epPropKey: true;
|
|
179
|
-
};
|
|
180
|
-
clearable: BooleanConstructor;
|
|
181
|
-
showPassword: BooleanConstructor;
|
|
182
|
-
showWordLimit: BooleanConstructor;
|
|
183
|
-
suffixIcon: {
|
|
184
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
185
|
-
readonly required: false;
|
|
186
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
187
|
-
__epPropKey: true;
|
|
188
|
-
};
|
|
189
|
-
prefixIcon: {
|
|
190
|
-
readonly type: import("vue").PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component) | ((new (...args: any[]) => (string | import("vue").Component) & {}) | (() => string | import("vue").Component))[], unknown, unknown>>;
|
|
191
|
-
readonly required: false;
|
|
192
|
-
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
193
|
-
__epPropKey: true;
|
|
194
|
-
};
|
|
195
|
-
containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
|
|
196
|
-
tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
|
|
197
|
-
validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
198
|
-
inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue) | ((new (...args: any[]) => string | import("vue").CSSProperties | import("vue").StyleValue[]) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
|
|
199
|
-
autofocus: BooleanConstructor;
|
|
200
|
-
};
|
|
201
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"type", keyof T2> | Extract<"autofocus", keyof T2> | Extract<"required", keyof T2> | Extract<"slots", 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<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"prop", 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<"multiple", keyof T2> | Extract<"id", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"form", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"rows", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"mapTo", keyof T2> | Extract<"editControls", keyof T2> | Extract<"mapCenter", keyof T2> | Extract<"editStyles", keyof T2> | Extract<"spikSave", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "slots" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "editTypes" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "inputSlots" | "mapTo" | "editControls" | "mapCenter" | "editStyles" | "spikSave", keyof T2>, KE> : Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "slots" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "editTypes" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "inputSlots" | "mapTo" | "editControls" | "mapCenter" | "editStyles" | "spikSave", keyof T2>]: { [k in Extract<"size" | "disabled" | "type" | "autofocus" | "required" | "slots" | "formItemSize" | "formItemSlots" | "elRef" | "inline" | "readonly" | "formItemTip" | "formItemTipClass" | "labelTip" | "label" | "labelWidth" | "labelPosition" | "prop" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage" | "multiple" | "id" | "placeholder" | "clearable" | "validateEvent" | "modelValue" | "tabindex" | "ariaLabel" | "prefixIcon" | "maxlength" | "minlength" | "resize" | "autosize" | "autocomplete" | "formatter" | "parser" | "form" | "showPassword" | "showWordLimit" | "suffixIcon" | "containerRole" | "inputStyle" | "rows" | "editTypes" | "showMap" | "dialogEdit" | "dialogEditFullscreen" | "dialogEditTitle" | "inputSlots" | "mapTo" | "editControls" | "mapCenter" | "editStyles" | "spikSave", keyof T2>]: T2[k]; }[P]; }>;
|
|
202
|
-
export declare const emits: {
|
|
203
|
-
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, {
|
|
204
|
-
[name: string]: any;
|
|
205
|
-
}>;
|
|
206
|
-
editUpdate: (e: __VmControlDraw.UpdateEvent) => any;
|
|
207
|
-
input: (value: string) => boolean;
|
|
208
|
-
change: (value: string) => boolean;
|
|
209
|
-
focus: (evt: FocusEvent) => boolean;
|
|
210
|
-
blur: (evt: FocusEvent) => boolean;
|
|
211
|
-
clear: () => boolean;
|
|
212
|
-
mouseleave: (evt: MouseEvent) => boolean;
|
|
213
|
-
mouseenter: (evt: MouseEvent) => boolean;
|
|
214
|
-
keydown: (evt: KeyboardEvent | Event) => boolean;
|
|
215
|
-
compositionstart: (evt: CompositionEvent) => boolean;
|
|
216
|
-
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
217
|
-
compositionend: (evt: CompositionEvent) => boolean;
|
|
218
|
-
};
|
|
219
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "compositionend" | "compositionstart" | "compositionupdate" | "mouseenter" | "mouseleave" | "editUpdate")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear" | "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "compositionend" | "compositionstart" | "compositionupdate" | "mouseenter" | "mouseleave" | "editUpdate", KE> : "clear" | "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "compositionend" | "compositionstart" | "compositionupdate" | "mouseenter" | "mouseleave" | "editUpdate"]: { [k in "clear" | "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "input" | "compositionend" | "compositionstart" | "compositionupdate" | "mouseenter" | "mouseleave" | "editUpdate"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
|