@vunk/form 1.0.1 → 1.1.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 (38) hide show
  1. package/components/geoinput/index.d.ts +4 -0
  2. package/components/geoinput/index.js +94 -0
  3. package/components/geoinput/src/ctx.d.ts +218 -0
  4. package/components/geoinput/src/ctx.js +39 -0
  5. package/components/geoinput/src/index.vue.d.ts +608 -0
  6. package/components/geoinput/src/types.d.ts +12 -0
  7. package/components/geoinput/src/types.js +1 -0
  8. package/components/geoinput-read/index.css +9 -0
  9. package/components/geoinput-read/index.d.ts +5 -0
  10. package/components/geoinput-read/index.js +355 -0
  11. package/components/geoinput-read/src/append.vue.d.ts +6 -0
  12. package/components/geoinput-read/src/core.vue.d.ts +457 -0
  13. package/components/geoinput-read/src/ctx.d.ts +205 -0
  14. package/components/geoinput-read/src/ctx.js +62 -0
  15. package/components/geoinput-read/src/index.vue.d.ts +486 -0
  16. package/components/geoinput-read/src/types.d.ts +3 -0
  17. package/components/geoinput-read/src/types.js +1 -0
  18. package/components/geoinput-update/index.css +44 -0
  19. package/components/geoinput-update/index.d.ts +5 -0
  20. package/components/geoinput-update/index.js +982 -0
  21. package/components/geoinput-update/src/append.vue.d.ts +20 -0
  22. package/components/geoinput-update/src/ctx.d.ts +211 -0
  23. package/components/geoinput-update/src/ctx.js +85 -0
  24. package/components/geoinput-update/src/index.vue.d.ts +483 -0
  25. package/components/geoinput-update/src/types.d.ts +6 -0
  26. package/components/geoinput-update/src/types.js +1 -0
  27. package/components/input-link/index.js +1 -1
  28. package/components/templates-mapbox/index.d.ts +4 -0
  29. package/components/templates-mapbox/index.js +64 -0
  30. package/components/templates-mapbox/src/ctx.d.ts +11 -0
  31. package/components/templates-mapbox/src/ctx.js +11 -0
  32. package/components/templates-mapbox/src/index.vue.d.ts +20 -0
  33. package/components/templates-mapbox/src/types.d.ts +3 -0
  34. package/components/templates-mapbox/src/types.js +1 -0
  35. package/index.css +55 -0
  36. package/package.json +1 -1
  37. package/shared/types/form/radio.d.ts +1 -1
  38. package/shared/types/source/index.d.ts +2 -1
@@ -0,0 +1,205 @@
1
+ import { PropType } from 'vue';
2
+ import type { FeatureCollection } from 'geojson';
3
+ import { __VmGeojsonLayer } from '@vumap/core/components/geojson-layer';
4
+ import { __VmControlDraw } from '@vumap/core/components/control-draw';
5
+ import { __VkfGeoinput } from '@vunk/form/components/geoinput';
6
+ import { FillPaint, LinePaint } from 'mapbox-gl';
7
+ export declare const props: {
8
+ modelValue: {
9
+ type: PropType<FeatureCollection<any, any>>;
10
+ default: () => FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
11
+ };
12
+ editStyles: {
13
+ type: PropType<__VmControlDraw.StyleLayer[]>;
14
+ default: () => never[];
15
+ };
16
+ editTypes: {
17
+ type: PropType<__VkfGeoinput.EditType | __VkfGeoinput.EditType[]>;
18
+ default: string;
19
+ };
20
+ paint: {
21
+ type: PropType<FillPaint | LinePaint>;
22
+ default: undefined;
23
+ };
24
+ type: {
25
+ type: StringConstructor;
26
+ default: undefined;
27
+ };
28
+ custom: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ showMap: {
33
+ type: BooleanConstructor;
34
+ default: boolean;
35
+ };
36
+ id: {
37
+ type: StringConstructor;
38
+ default: string;
39
+ };
40
+ maxzoom: NumberConstructor;
41
+ minzoom: NumberConstructor;
42
+ cursor: {
43
+ type: StringConstructor;
44
+ default: string;
45
+ };
46
+ before: StringConstructor;
47
+ data: {
48
+ type: PropType<any>;
49
+ default: () => FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
50
+ };
51
+ maxlength: {
52
+ type: NumberConstructor;
53
+ required: boolean;
54
+ };
55
+ minlength: {
56
+ type: NumberConstructor;
57
+ required: boolean;
58
+ };
59
+ inputSlots: {
60
+ type: PropType<import("../../input/src/types").InputSlots>;
61
+ default: undefined;
62
+ };
63
+ rows: {
64
+ type: NumberConstructor;
65
+ default: undefined;
66
+ };
67
+ required: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
68
+ label: StringConstructor;
69
+ labelWidth: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
70
+ prop: {
71
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp) | ((new (...args: any[]) => import("element-plus").FormItemProp & {}) | (() => import("element-plus").FormItemProp))[], unknown, unknown>>;
72
+ readonly required: false;
73
+ readonly validator: ((val: unknown) => boolean) | undefined;
74
+ __epPropKey: true;
75
+ };
76
+ rules: {
77
+ readonly type: 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>>;
78
+ readonly required: false;
79
+ readonly validator: ((val: unknown) => boolean) | undefined;
80
+ __epPropKey: true;
81
+ };
82
+ error: StringConstructor;
83
+ validateStatus: {
84
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "error" | "success" | "validating", unknown>>;
85
+ readonly required: false;
86
+ readonly validator: ((val: unknown) => boolean) | undefined;
87
+ __epPropKey: true;
88
+ };
89
+ for: StringConstructor;
90
+ inlineMessage: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, BooleanConstructor], unknown, unknown, "", boolean>;
91
+ showMessage: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
92
+ formItemSize: {
93
+ type: PropType<"default" | "small" | "large">;
94
+ default: string;
95
+ };
96
+ formItemSlots: {
97
+ type: PropType<import("../../form-item/src/types").FormItemSlots>;
98
+ default: undefined;
99
+ };
100
+ elRef: {
101
+ type: PropType<any>;
102
+ required: boolean;
103
+ };
104
+ inline: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ readonly: {
109
+ type: BooleanConstructor;
110
+ default: undefined;
111
+ };
112
+ size: {
113
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "" | "default" | "small" | "large", never>>;
114
+ readonly required: false;
115
+ readonly validator: ((val: unknown) => boolean) | undefined;
116
+ __epPropKey: true;
117
+ };
118
+ disabled: BooleanConstructor;
119
+ resize: {
120
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<StringConstructor, "none" | "both" | "horizontal" | "vertical", unknown>>;
121
+ readonly required: false;
122
+ readonly validator: ((val: unknown) => boolean) | undefined;
123
+ __epPropKey: true;
124
+ };
125
+ autosize: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize) | ((new (...args: any[]) => import("element-plus").InputAutoSize & {}) | (() => import("element-plus").InputAutoSize))[], unknown, unknown, false, boolean>;
126
+ autocomplete: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "off", boolean>;
127
+ formatter: {
128
+ readonly type: PropType<Function>;
129
+ readonly required: false;
130
+ readonly validator: ((val: unknown) => boolean) | undefined;
131
+ __epPropKey: true;
132
+ };
133
+ parser: {
134
+ readonly type: PropType<Function>;
135
+ readonly required: false;
136
+ readonly validator: ((val: unknown) => boolean) | undefined;
137
+ __epPropKey: true;
138
+ };
139
+ placeholder: {
140
+ readonly type: PropType<string>;
141
+ readonly required: false;
142
+ readonly validator: ((val: unknown) => boolean) | undefined;
143
+ __epPropKey: true;
144
+ };
145
+ form: {
146
+ readonly type: PropType<string>;
147
+ readonly required: false;
148
+ readonly validator: ((val: unknown) => boolean) | undefined;
149
+ __epPropKey: true;
150
+ };
151
+ clearable: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
152
+ showPassword: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
153
+ showWordLimit: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
154
+ suffixIcon: {
155
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
156
+ readonly required: false;
157
+ readonly validator: ((val: unknown) => boolean) | undefined;
158
+ __epPropKey: true;
159
+ };
160
+ prefixIcon: {
161
+ readonly type: PropType<import("element-plus/es/utils").EpPropMergeType<(new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) | ((new (...args: any[]) => (string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>) & {}) | (() => string | import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions>))[], unknown, unknown>>;
162
+ readonly required: false;
163
+ readonly validator: ((val: unknown) => boolean) | undefined;
164
+ __epPropKey: true;
165
+ };
166
+ containerRole: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, undefined, boolean>;
167
+ tabindex: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, 0, boolean>;
168
+ validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
169
+ inputStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, () => import("element-plus/es/utils").Mutable<{}>, boolean>;
170
+ };
171
+ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"cursor", keyof T2> | Extract<"paint", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"maxzoom", keyof T2> | Extract<"minzoom", keyof T2> | Extract<"before", keyof T2> | Extract<"editStyles", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"custom", keyof T2> | Extract<"showMap", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", 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<"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<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"form", keyof T2>, KE> | Exclude<Extract<"resize", keyof T2>, KE> | Exclude<Extract<"cursor", keyof T2>, KE> | Exclude<Extract<"paint", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"autosize", keyof T2>, KE> | Exclude<Extract<"autocomplete", keyof T2>, KE> | Exclude<Extract<"formatter", keyof T2>, KE> | Exclude<Extract<"parser", keyof T2>, KE> | Exclude<Extract<"placeholder", keyof T2>, KE> | Exclude<Extract<"clearable", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"suffixIcon", keyof T2>, KE> | Exclude<Extract<"prefixIcon", keyof T2>, KE> | Exclude<Extract<"containerRole", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"inputStyle", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"maxzoom", keyof T2>, KE> | Exclude<Extract<"minzoom", keyof T2>, KE> | Exclude<Extract<"before", keyof T2>, KE> | Exclude<Extract<"editStyles", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"custom", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"cursor", keyof T2> | Extract<"paint", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"maxzoom", keyof T2> | Extract<"minzoom", keyof T2> | Extract<"before", keyof T2> | Extract<"editStyles", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"custom", keyof T2> | Extract<"showMap", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"size", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"form", keyof T2> | Extract<"resize", keyof T2> | Extract<"cursor", keyof T2> | Extract<"paint", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"containerRole", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"inputStyle", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"rows", keyof T2> | Extract<"maxzoom", keyof T2> | Extract<"minzoom", keyof T2> | Extract<"before", keyof T2> | Extract<"editStyles", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"custom", keyof T2> | Extract<"showMap", keyof T2>]: T2[k]; }[P]; }>;
172
+ export declare const emits: {
173
+ layerChange: (layer: __VmGeojsonLayer.LoadEvent) => __VmGeojsonLayer.LoadEvent;
174
+ 'update:modelValue': (e: FeatureCollection) => FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
175
+ input: (value: string) => boolean;
176
+ change: (value: string) => boolean;
177
+ focus: (evt: FocusEvent) => boolean;
178
+ blur: (evt: FocusEvent) => boolean;
179
+ clear: () => boolean;
180
+ mouseleave: (evt: MouseEvent) => boolean;
181
+ mouseenter: (evt: MouseEvent) => boolean;
182
+ keydown: (evt: Event | KeyboardEvent) => boolean;
183
+ compositionstart: (evt: CompositionEvent) => boolean;
184
+ compositionupdate: (evt: CompositionEvent) => boolean;
185
+ compositionend: (evt: CompositionEvent) => boolean;
186
+ click: (e: __VmGeojsonLayer.ClickEvent) => __VmGeojsonLayer.ClickEvent;
187
+ load: (e: __VmGeojsonLayer.LoadEvent) => __VmGeojsonLayer.LoadEvent;
188
+ };
189
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("click" | "input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "load" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue" | "layerChange")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"click", KE> | Exclude<"input", KE> | Exclude<"blur", KE> | Exclude<"change", KE> | Exclude<"compositionend", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"focus", KE> | Exclude<"keydown", KE> | Exclude<"load", KE> | Exclude<"mouseenter", KE> | Exclude<"mouseleave", KE> | Exclude<"clear", KE> | Exclude<"update:modelValue", KE> | Exclude<"layerChange", KE> : "click" | "input" | "blur" | "change" | "compositionend" | "compositionstart" | "compositionupdate" | "focus" | "keydown" | "load" | "mouseenter" | "mouseleave" | "clear" | "update:modelValue" | "layerChange"]: {
190
+ layerChange: (...e: import("@vunk/core").RestParameters<T2>) => void;
191
+ 'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
192
+ input: (...e: import("@vunk/core").RestParameters<T2>) => void;
193
+ change: (...e: import("@vunk/core").RestParameters<T2>) => void;
194
+ focus: (...e: import("@vunk/core").RestParameters<T2>) => void;
195
+ blur: (...e: import("@vunk/core").RestParameters<T2>) => void;
196
+ clear: (...e: import("@vunk/core").RestParameters<T2>) => void;
197
+ mouseleave: (...e: import("@vunk/core").RestParameters<T2>) => void;
198
+ mouseenter: (...e: import("@vunk/core").RestParameters<T2>) => void;
199
+ keydown: (...e: import("@vunk/core").RestParameters<T2>) => void;
200
+ compositionstart: (...e: import("@vunk/core").RestParameters<T2>) => void;
201
+ compositionupdate: (...e: import("@vunk/core").RestParameters<T2>) => void;
202
+ compositionend: (...e: import("@vunk/core").RestParameters<T2>) => void;
203
+ click: (...e: import("@vunk/core").RestParameters<T2>) => void;
204
+ load: (...e: import("@vunk/core").RestParameters<T2>) => void;
205
+ }[P]; };
@@ -0,0 +1,62 @@
1
+ import { _VkfInputCtx } from '@vunk/form/components/input';
2
+ import { EMPTY_FEATURE_COLLECTION } from '@vumap/core/shared/static';
3
+ import { _VmGeojsonLayerCtx } from '@vumap/core/components/geojson-layer';
4
+ import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
5
+
6
+ var __defProp = Object.defineProperty;
7
+ var __defProps = Object.defineProperties;
8
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
9
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
10
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
11
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfInputCtx.props), _VmGeojsonLayerCtx.props), {
26
+ modelValue: {
27
+ type: Object,
28
+ default: () => EMPTY_FEATURE_COLLECTION
29
+ },
30
+ editStyles: {
31
+ type: Array,
32
+ default: () => []
33
+ },
34
+ editTypes: {
35
+ type: [Array, String],
36
+ default: "polygon"
37
+ },
38
+ paint: {
39
+ type: Object,
40
+ default: void 0
41
+ },
42
+ type: {
43
+ type: String,
44
+ default: void 0
45
+ },
46
+ custom: {
47
+ type: Boolean,
48
+ default: false
49
+ },
50
+ showMap: {
51
+ type: Boolean,
52
+ default: false
53
+ }
54
+ });
55
+ const createBindProps = bindPropsFactory(props);
56
+ const emits = __spreadProps(__spreadValues(__spreadValues({}, _VmGeojsonLayerCtx.emits), _VkfInputCtx.emits), {
57
+ "layerChange": (layer) => layer,
58
+ "update:modelValue": (e) => e
59
+ });
60
+ const createOnEmits = onEmitsFactory(emits);
61
+
62
+ export { createBindProps, createOnEmits, emits, props };