@vunk/form 1.1.22 → 1.1.24
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.css +38 -0
- package/components/esri-input-geojson/index.d.ts +5 -0
- package/components/esri-input-geojson/index.js +1526 -0
- package/components/esri-input-geojson/src/append.vue.d.ts +30 -0
- package/components/esri-input-geojson/src/const.d.ts +8 -0
- package/components/esri-input-geojson/src/const.js +29 -0
- package/components/esri-input-geojson/src/ctx.d.ts +213 -0
- package/components/esri-input-geojson/src/ctx.js +90 -0
- package/components/esri-input-geojson/src/index.vue.d.ts +494 -0
- package/components/esri-input-geojson/src/types.d.ts +13 -0
- package/components/esri-input-geojson/src/types.js +1 -0
- package/components/esri-input-geojson/src/viewer.vue.d.ts +12 -0
- package/components/select/src/ctx.d.ts +4 -0
- package/components/select/src/index.vue.d.ts +16 -0
- package/components/switch/src/ctx.d.ts +12 -0
- package/components/switch/src/index.vue.d.ts +26 -0
- package/components/templates-esri/index.d.ts +4 -0
- package/components/templates-esri/index.js +64 -0
- package/components/templates-esri/src/ctx.d.ts +11 -0
- package/components/templates-esri/src/ctx.js +11 -0
- package/components/templates-esri/src/index.vue.d.ts +20 -0
- package/components/templates-esri/src/types.d.ts +2 -0
- package/components/templates-esri/src/types.js +1 -0
- package/index.css +39 -0
- package/package.json +1 -1
- package/shared/element-plus/ctx.d.ts +1 -1
- package/shared/types/source/index.d.ts +2 -1
|
@@ -13,6 +13,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
13
13
|
};
|
|
14
14
|
width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
15
15
|
inlinePrompt: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
16
|
+
inactiveActionIcon: {
|
|
17
|
+
readonly type: import("vue").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>>;
|
|
18
|
+
readonly required: false;
|
|
19
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
20
|
+
__epPropKey: true;
|
|
21
|
+
};
|
|
22
|
+
activeActionIcon: {
|
|
23
|
+
readonly type: import("vue").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>>;
|
|
24
|
+
readonly required: false;
|
|
25
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
26
|
+
__epPropKey: true;
|
|
27
|
+
};
|
|
16
28
|
activeIcon: {
|
|
17
29
|
readonly type: import("vue").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>>;
|
|
18
30
|
readonly required: false;
|
|
@@ -126,6 +138,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
126
138
|
validateEvent: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
127
139
|
width: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
|
|
128
140
|
inlinePrompt: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
141
|
+
inactiveActionIcon: 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> | undefined;
|
|
142
|
+
activeActionIcon: 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> | undefined;
|
|
129
143
|
activeIcon: 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> | undefined;
|
|
130
144
|
inactiveIcon: 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> | undefined;
|
|
131
145
|
activeText: string;
|
|
@@ -162,6 +176,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
162
176
|
};
|
|
163
177
|
width: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
|
|
164
178
|
inlinePrompt: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
|
|
179
|
+
inactiveActionIcon: {
|
|
180
|
+
readonly type: import("vue").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>>;
|
|
181
|
+
readonly required: false;
|
|
182
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
183
|
+
__epPropKey: true;
|
|
184
|
+
};
|
|
185
|
+
activeActionIcon: {
|
|
186
|
+
readonly type: import("vue").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>>;
|
|
187
|
+
readonly required: false;
|
|
188
|
+
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
189
|
+
__epPropKey: true;
|
|
190
|
+
};
|
|
165
191
|
activeIcon: {
|
|
166
192
|
readonly type: import("vue").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>>;
|
|
167
193
|
readonly required: false;
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { defineComponent, resolveComponent, openBlock, createBlock, withCtx, mergeProps, createCommentVNode } from 'vue';
|
|
2
|
+
import { VkfEsriInputGeojson } from '@vunk/form/components/esri-input-geojson';
|
|
3
|
+
import { VkfFormItemRendererTemplate } from '@vunk/form/components/form-item-renderer-template';
|
|
4
|
+
import { getValue } from '@vunk/core';
|
|
5
|
+
|
|
6
|
+
const props = {
|
|
7
|
+
data: {
|
|
8
|
+
type: Object,
|
|
9
|
+
default: () => ({})
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
const emits = {
|
|
13
|
+
setData: (data) => data
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
var _export_sfc = (sfc, props) => {
|
|
17
|
+
const target = sfc.__vccOpts || sfc;
|
|
18
|
+
for (const [key, val] of props) {
|
|
19
|
+
target[key] = val;
|
|
20
|
+
}
|
|
21
|
+
return target;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
const _sfc_main = defineComponent({
|
|
25
|
+
name: "VkfTemplatesEsri",
|
|
26
|
+
components: {
|
|
27
|
+
VkfFormItemRendererTemplate,
|
|
28
|
+
VkfEsriInputGeojson
|
|
29
|
+
},
|
|
30
|
+
emits,
|
|
31
|
+
props,
|
|
32
|
+
setup() {
|
|
33
|
+
return {
|
|
34
|
+
getValue
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
39
|
+
const _component_VkfEsriInputGeojson = resolveComponent("VkfEsriInputGeojson");
|
|
40
|
+
const _component_VkfFormItemRendererTemplate = resolveComponent("VkfFormItemRendererTemplate");
|
|
41
|
+
return openBlock(), createBlock(_component_VkfFormItemRendererTemplate, { type: "VkfEsriInputGeojson" }, {
|
|
42
|
+
default: withCtx(({ data: props2, templateIf }) => [
|
|
43
|
+
templateIf(_ctx.data) ? (openBlock(), createBlock(_component_VkfEsriInputGeojson, mergeProps({ key: 0 }, props2, {
|
|
44
|
+
"model-value": _ctx.getValue(_ctx.data, props2.prop),
|
|
45
|
+
"onUpdate:modelValue": ($event) => _ctx.$emit("setData", {
|
|
46
|
+
k: props2.prop,
|
|
47
|
+
v: $event
|
|
48
|
+
})
|
|
49
|
+
}), null, 16, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true)
|
|
50
|
+
]),
|
|
51
|
+
_: 1
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
var VkfTemplatesEsri = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
|
|
55
|
+
|
|
56
|
+
var types = /*#__PURE__*/Object.freeze({
|
|
57
|
+
__proto__: null
|
|
58
|
+
});
|
|
59
|
+
|
|
60
|
+
VkfTemplatesEsri.install = (app) => {
|
|
61
|
+
app.component(VkfTemplatesEsri.name, VkfTemplatesEsri);
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
export { VkfTemplatesEsri, types as __VkfTemplatesEsri, VkfTemplatesEsri as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { NormalObject, SetDataEvent } from '@vunk/core';
|
|
2
|
+
import { PropType } from 'vue';
|
|
3
|
+
export declare const props: {
|
|
4
|
+
data: {
|
|
5
|
+
type: PropType<NormalObject>;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
export declare const emits: {
|
|
10
|
+
setData: (data: SetDataEvent) => SetDataEvent<any>;
|
|
11
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
data: {
|
|
3
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, {
|
|
7
|
+
getValue: (obj: any, k: any, intoUndefined?: import("@vunk/core").IntoUndefined | undefined, safe?: boolean | undefined) => any;
|
|
8
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
+
setData: (data: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
|
|
10
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
data: {
|
|
12
|
+
type: import("vue").PropType<import("@vunk/core").NormalObject>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}>> & {
|
|
16
|
+
onSetData?: ((data: import("@vunk/core").SetDataEvent<any>) => any) | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
data: import("@vunk/core").NormalObject;
|
|
19
|
+
}>;
|
|
20
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/index.css
CHANGED
|
@@ -49,6 +49,45 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
|
|
52
|
+
.vkf-esri-input-geojson__map{
|
|
53
|
+
height: 350px;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.vkf-esri-input-geojson-dialog .el-dialog.is-fullscreen{
|
|
57
|
+
height: 100%;
|
|
58
|
+
}
|
|
59
|
+
.vkf-esri-input-geojson-dialog .el-dialog{
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
min-height: 50%;
|
|
63
|
+
}
|
|
64
|
+
.vkf-esri-input-geojson-dialog .el-dialog__body{
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
flex: 1;
|
|
68
|
+
overflow: hidden;
|
|
69
|
+
padding: 0;
|
|
70
|
+
}
|
|
71
|
+
.vkf-esri-input-geojson-dialog__map{
|
|
72
|
+
flex: 1;
|
|
73
|
+
display: flex;
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
overflow: hidden;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.vkf-esri-input-geojson-dialog__map > .va-map-view{
|
|
79
|
+
flex: 1;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
.el-button.vkf-esri-input-geojson__upload{
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
background-color: transparent;
|
|
86
|
+
color: inherit;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
52
91
|
|
|
53
92
|
.vkf-form-item.vkf-form-item--label-right.el-form-item{
|
|
54
93
|
display: flex;
|
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@ export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc
|
|
|
18
18
|
validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
19
19
|
}[P]; };
|
|
20
20
|
export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"size", 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>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"size", 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> : Extract<"required", keyof T2> | Extract<"size", 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>]: { [k in Extract<"required", keyof T2> | Extract<"size", 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>]: T2[k]; }[P]; }>;
|
|
21
|
-
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
|
|
21
|
+
export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"inactiveActionIcon", keyof T2> | Extract<"activeActionIcon", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"value", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"tabindex", keyof T2>, KE> | Exclude<Extract<"validateEvent", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"loading", keyof T2>, KE> | Exclude<Extract<"width", keyof T2>, KE> | Exclude<Extract<"inlinePrompt", keyof T2>, KE> | Exclude<Extract<"inactiveActionIcon", keyof T2>, KE> | Exclude<Extract<"activeActionIcon", keyof T2>, KE> | Exclude<Extract<"activeIcon", keyof T2>, KE> | Exclude<Extract<"inactiveIcon", keyof T2>, KE> | Exclude<Extract<"activeText", keyof T2>, KE> | Exclude<Extract<"inactiveText", keyof T2>, KE> | Exclude<Extract<"activeValue", keyof T2>, KE> | Exclude<Extract<"inactiveValue", keyof T2>, KE> | Exclude<Extract<"activeColor", keyof T2>, KE> | Exclude<Extract<"inactiveColor", keyof T2>, KE> | Exclude<Extract<"borderColor", keyof T2>, KE> | Exclude<Extract<"beforeChange", keyof T2>, KE> : Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"inactiveActionIcon", keyof T2> | Extract<"activeActionIcon", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>]: { [k in Extract<"size", keyof T2> | Extract<"value", keyof T2> | Extract<"id", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"name", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"inactiveActionIcon", keyof T2> | Extract<"activeActionIcon", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"activeColor", keyof T2> | Extract<"inactiveColor", keyof T2> | Extract<"borderColor", keyof T2> | Extract<"beforeChange", keyof T2>]: T2[k]; }[P]; }>;
|
|
22
22
|
export declare const createSwitchOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue", KE> | Exclude<"input", KE> | Exclude<"change", KE> : "update:modelValue" | "input" | "change"]: {
|
|
23
23
|
"update:modelValue": (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
24
24
|
change: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
@@ -2,6 +2,7 @@ import { __VkfTemplatesDefault } from '@vunk/form/components/templates-default';
|
|
|
2
2
|
import { __VkfTemplatesLayout } from '@vunk/form/components/templates-layout';
|
|
3
3
|
import { __VkfTemplatesElementPlus } from '@vunk/form/components/templates-element-plus';
|
|
4
4
|
import { __VkfTemplatesMapbox } from '@vunk/form/components/templates-mapbox';
|
|
5
|
+
import { __VkfTemplatesEsri } from '@vunk/form/components/templates-esri';
|
|
5
6
|
import { NormalObject } from '@vunk/core';
|
|
6
7
|
export interface BasicSource {
|
|
7
8
|
templateIf?: ((data?: NormalObject) => boolean) | string | boolean;
|
|
@@ -16,4 +17,4 @@ export interface BasicSource {
|
|
|
16
17
|
* ```
|
|
17
18
|
*/
|
|
18
19
|
export declare type FormItemRendererSource<P extends string = string> = __VkfTemplatesDefault.Source<P>;
|
|
19
|
-
export declare type AllTemplatesSource<P extends string = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesMapbox.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source;
|
|
20
|
+
export declare type AllTemplatesSource<P extends string = string> = __VkfTemplatesDefault.Source<P> | __VkfTemplatesMapbox.Source<P> | __VkfTemplatesEsri.Source<P> | __VkfTemplatesLayout.ElRowSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.ElColSource<AllTemplatesSource<P>> | __VkfTemplatesLayout.VkfFlexSource<AllTemplatesSource<P>> | __VkfTemplatesElementPlus.Source;
|