@vunk/form 1.1.42 → 1.1.44

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.
@@ -1,8 +1,8 @@
1
- import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, createBlock, withCtx, createVNode, createCommentVNode, provide, renderSlot, ref, shallowRef, computed, watch, onMounted, nextTick, mergeProps, toHandlers, withDirectives, vShow } from 'vue';
1
+ import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, createBlock, withCtx, createVNode, createCommentVNode, unref, renderSlot, provide, resolveDynamicComponent, ref, shallowRef, computed, watch, onMounted, nextTick, mergeProps, toHandlers, withDirectives, vShow } from 'vue';
2
2
  import { _VkfInputCtx, VkfInput } from '@vunk/form/components/input';
3
3
  import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
4
4
  import { ElButton, ElIcon, ElButtonGroup, ElUpload, ElMessage } from 'element-plus';
5
- import { VaTdtBasemap, VaMapView, VaSketch, VaGraphicsLayer } from '@vuesri/core';
5
+ import { VaMapView, VaTdtBasemap, VaSketch, VaGraphicsLayer } from '@vuesri/core';
6
6
  import MapView from '@arcgis/core/views/MapView';
7
7
  import SceneView from '@arcgis/core/views/SceneView';
8
8
  import { VkAsyncTeleport } from '@vunk/core';
@@ -62,6 +62,7 @@ var __spreadValues = (a, b) => {
62
62
  };
63
63
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
64
64
  const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
65
+ viewComponent: null,
65
66
  readonly: {
66
67
  type: Boolean,
67
68
  default: void 0
@@ -96,10 +97,6 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
96
97
  type: Boolean,
97
98
  default: true
98
99
  },
99
- mapTo: {
100
- type: [Object, String],
101
- default: void 0
102
- },
103
100
  skipSave: {
104
101
  type: Boolean,
105
102
  default: false
@@ -280,7 +277,7 @@ var _export_sfc = (sfc, props) => {
280
277
  return target;
281
278
  };
282
279
 
283
- const _sfc_main$2 = defineComponent({
280
+ const _sfc_main$3 = defineComponent({
284
281
  components: {
285
282
  ElButton,
286
283
  ElIcon,
@@ -379,7 +376,23 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
379
376
  _: 1
380
377
  });
381
378
  }
382
- var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__file", "append.vue"]]);
379
+ var AppendVue = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$2], ["__file", "append.vue"]]);
380
+
381
+ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
382
+ __name: "default-view",
383
+ setup(__props) {
384
+ return (_ctx, _cache) => {
385
+ return openBlock(), createBlock(unref(VaMapView), null, {
386
+ default: withCtx(() => [
387
+ createVNode(unref(VaTdtBasemap)),
388
+ renderSlot(_ctx.$slots, "default")
389
+ ]),
390
+ _: 3
391
+ });
392
+ };
393
+ }
394
+ });
395
+ var DefaultView = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "default-view.vue"]]);
383
396
 
384
397
  const _sfc_main$1 = defineComponent({
385
398
  components: {
@@ -390,6 +403,10 @@ const _sfc_main$1 = defineComponent({
390
403
  view: {
391
404
  type: Object,
392
405
  default: void 0
406
+ },
407
+ viewComponent: {
408
+ type: Object,
409
+ default: () => DefaultView
393
410
  }
394
411
  },
395
412
  setup(props) {
@@ -406,11 +423,8 @@ const _sfc_main$1 = defineComponent({
406
423
  }
407
424
  });
408
425
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
409
- const _component_VaTdtBasemap = resolveComponent("VaTdtBasemap");
410
- const _component_VaMapView = resolveComponent("VaMapView");
411
- return !_ctx.view ? (openBlock(), createBlock(_component_VaMapView, { key: 0 }, {
426
+ return !_ctx.view ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.viewComponent), { key: 0 }, {
412
427
  default: withCtx(() => [
413
- createVNode(_component_VaTdtBasemap),
414
428
  renderSlot(_ctx.$slots, "default")
415
429
  ]),
416
430
  _: 3
@@ -1580,7 +1594,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1580
1594
  ]),
1581
1595
  createVNode(_component_VkAsyncTeleport, { to: _ctx.mapTo }, {
1582
1596
  default: withCtx(() => [
1583
- createVNode(_component_ViewerVue, { view: _ctx.view }, {
1597
+ createVNode(_component_ViewerVue, {
1598
+ view: _ctx.view,
1599
+ "view-component": _ctx.viewComponent
1600
+ }, {
1584
1601
  default: withCtx(() => [
1585
1602
  createVNode(_component_VaGraphicsLayer, {
1586
1603
  index: _ctx.layerIndex,
@@ -1629,7 +1646,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1629
1646
  }, 8 /* PROPS */, ["index", "graphics", "onLoad"])
1630
1647
  ]),
1631
1648
  _: 1 /* STABLE */
1632
- }, 8 /* PROPS */, ["view"])
1649
+ }, 8 /* PROPS */, ["view", "view-component"])
1633
1650
  ]),
1634
1651
  _: 1 /* STABLE */
1635
1652
  }, 8 /* PROPS */, ["to"]),
@@ -1,7 +1,8 @@
1
- import { PropType, RendererElement } from 'vue';
1
+ import { PropType } from 'vue';
2
2
  import { FeatureCollection, Geometry } from 'geojson';
3
3
  import { EDIT_TYPE } from './const';
4
4
  export declare const props: {
5
+ viewComponent: null;
5
6
  readonly: {
6
7
  type: BooleanConstructor;
7
8
  default: undefined;
@@ -39,10 +40,6 @@ export declare const props: {
39
40
  type: BooleanConstructor;
40
41
  default: boolean;
41
42
  };
42
- mapTo: {
43
- type: PropType<string | RendererElement>;
44
- default: undefined;
45
- };
46
43
  skipSave: {
47
44
  type: BooleanConstructor;
48
45
  default: boolean;
@@ -193,7 +190,7 @@ export declare const props: {
193
190
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
194
191
  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>;
195
192
  };
196
- 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"mapTo", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", 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<"labelPosition", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"resize", 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<"form", 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<"multiple", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"mapTo", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"mapTo", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"mapTo", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
193
+ 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", 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<"labelPosition", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"resize", 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<"form", 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<"multiple", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"showMap", keyof T2>, KE> | Exclude<Extract<"dialogEdit", keyof T2>, KE> | Exclude<Extract<"dialogEditFullscreen", keyof T2>, KE> | Exclude<Extract<"dialogEditTitle", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", keyof T2>, KE> | Exclude<Extract<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", 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<"labelPosition", keyof T2> | Extract<"disabled", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"resize", keyof T2> | Extract<"autosize", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"formatter", keyof T2> | Extract<"parser", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"form", 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<"multiple", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
197
194
  export declare const emits: {
198
195
  'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, import("geojson").GeoJsonProperties>;
199
196
  'update:flying': null;
@@ -47,6 +47,7 @@ var __spreadValues = (a, b) => {
47
47
  };
48
48
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
49
49
  const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
50
+ viewComponent: null,
50
51
  readonly: {
51
52
  type: Boolean,
52
53
  default: void 0
@@ -81,10 +82,6 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
81
82
  type: Boolean,
82
83
  default: true
83
84
  },
84
- mapTo: {
85
- type: [Object, String],
86
- default: void 0
87
- },
88
85
  skipSave: {
89
86
  type: Boolean,
90
87
  default: false
@@ -0,0 +1,133 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {
2
+ readonly VaTdtBasemap: import("vue").DefineComponent<{
3
+ spatialReference: {
4
+ type: import("vue").PropType<__esri.SpatialReferenceProperties>;
5
+ default: () => {
6
+ wkid: number;
7
+ };
8
+ };
9
+ type: {
10
+ type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
11
+ default: string;
12
+ };
13
+ orphan: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ anno: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ thumbnailUrl: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ minScale: {
26
+ type: NumberConstructor;
27
+ default: number;
28
+ };
29
+ maxScale: {
30
+ type: NumberConstructor;
31
+ default: number;
32
+ };
33
+ token: {
34
+ type: StringConstructor;
35
+ default: any;
36
+ };
37
+ webTileLayerOptions: {
38
+ type: import("vue").PropType<__esri.WebTileLayerProperties>;
39
+ default: () => __esri.WebTileLayerProperties;
40
+ };
41
+ }, {
42
+ thumbnailUrl: import("vue").ComputedRef<string>;
43
+ annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
44
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
45
+ load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
46
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
47
+ spatialReference: {
48
+ type: import("vue").PropType<__esri.SpatialReferenceProperties>;
49
+ default: () => {
50
+ wkid: number;
51
+ };
52
+ };
53
+ type: {
54
+ type: import("vue").PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
55
+ default: string;
56
+ };
57
+ orphan: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ anno: {
62
+ type: BooleanConstructor;
63
+ default: boolean;
64
+ };
65
+ thumbnailUrl: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ minScale: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ maxScale: {
74
+ type: NumberConstructor;
75
+ default: number;
76
+ };
77
+ token: {
78
+ type: StringConstructor;
79
+ default: any;
80
+ };
81
+ webTileLayerOptions: {
82
+ type: import("vue").PropType<__esri.WebTileLayerProperties>;
83
+ default: () => __esri.WebTileLayerProperties;
84
+ };
85
+ }>> & {
86
+ onLoad?: ((e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any) | undefined;
87
+ }, {
88
+ type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
89
+ spatialReference: {
90
+ wkid: number;
91
+ };
92
+ orphan: boolean;
93
+ thumbnailUrl: string;
94
+ maxScale: number;
95
+ minScale: number;
96
+ token: string;
97
+ anno: boolean;
98
+ webTileLayerOptions: __esri.WebTileLayerProperties;
99
+ }>;
100
+ readonly VaMapView: import("vue").DefineComponent<{
101
+ defaultOptions: {
102
+ type: import("vue").PropType<__esri.MapViewProperties>;
103
+ default: () => {};
104
+ };
105
+ cursor: {
106
+ type: StringConstructor;
107
+ default: string;
108
+ };
109
+ }, {
110
+ viewNode: import("vue").Ref<HTMLDivElement>;
111
+ eventCursor: import("vue").Ref<string>;
112
+ cursorStyle: import("vue").ComputedRef<import("vue").StyleValue>;
113
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
114
+ load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
115
+ 'update:cursor': (e: string) => string | true;
116
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
117
+ defaultOptions: {
118
+ type: import("vue").PropType<__esri.MapViewProperties>;
119
+ default: () => {};
120
+ };
121
+ cursor: {
122
+ type: StringConstructor;
123
+ default: string;
124
+ };
125
+ }>> & {
126
+ onLoad?: ((e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any) | undefined;
127
+ "onUpdate:cursor"?: ((e: string) => any) | undefined;
128
+ }, {
129
+ defaultOptions: {};
130
+ cursor: string;
131
+ }>;
132
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
133
+ export default _default;
@@ -2,6 +2,7 @@ import { Ref } from 'vue';
2
2
  import { __VaSketch, __VaGraphicsLayer } from '@vuesri/core';
3
3
  import Graphic from '@arcgis/core/Graphic';
4
4
  declare const _default: import("vue").DefineComponent<{
5
+ viewComponent: null;
5
6
  readonly: {
6
7
  type: BooleanConstructor;
7
8
  default: undefined;
@@ -39,10 +40,6 @@ declare const _default: import("vue").DefineComponent<{
39
40
  type: BooleanConstructor;
40
41
  default: boolean;
41
42
  };
42
- mapTo: {
43
- type: import("vue").PropType<string | import("vue").RendererElement>;
44
- default: undefined;
45
- };
46
43
  skipSave: {
47
44
  type: BooleanConstructor;
48
45
  default: boolean;
@@ -283,6 +280,7 @@ declare const _default: import("vue").DefineComponent<{
283
280
  compositionupdate: (evt: CompositionEvent) => boolean;
284
281
  compositionend: (evt: CompositionEvent) => boolean;
285
282
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
283
+ viewComponent: null;
286
284
  readonly: {
287
285
  type: BooleanConstructor;
288
286
  default: undefined;
@@ -320,10 +318,6 @@ declare const _default: import("vue").DefineComponent<{
320
318
  type: BooleanConstructor;
321
319
  default: boolean;
322
320
  };
323
- mapTo: {
324
- type: import("vue").PropType<string | import("vue").RendererElement>;
325
- default: undefined;
326
- };
327
321
  skipSave: {
328
322
  type: BooleanConstructor;
329
323
  default: boolean;
@@ -520,7 +514,6 @@ declare const _default: import("vue").DefineComponent<{
520
514
  dialogEdit: boolean;
521
515
  dialogEditFullscreen: boolean;
522
516
  dialogEditTitle: string;
523
- mapTo: string | import("vue").RendererElement;
524
517
  viewModelActiveFillSymbol: any;
525
518
  skipSave: boolean;
526
519
  flying: boolean;
@@ -5,12 +5,283 @@ declare const _default: import("vue").DefineComponent<{
5
5
  type: PropType<MapView>;
6
6
  default: undefined;
7
7
  };
8
+ viewComponent: {
9
+ type: PropType<any>;
10
+ default: () => import("vue").DefineComponent<{}, {
11
+ readonly VaTdtBasemap: import("vue").DefineComponent<{
12
+ spatialReference: {
13
+ type: PropType<__esri.SpatialReferenceProperties>;
14
+ default: () => {
15
+ wkid: number;
16
+ };
17
+ };
18
+ type: {
19
+ type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
20
+ default: string;
21
+ };
22
+ orphan: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ anno: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ thumbnailUrl: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ minScale: {
35
+ type: NumberConstructor;
36
+ default: number;
37
+ };
38
+ maxScale: {
39
+ type: NumberConstructor;
40
+ default: number;
41
+ };
42
+ token: {
43
+ type: StringConstructor;
44
+ default: any;
45
+ };
46
+ webTileLayerOptions: {
47
+ type: PropType<__esri.WebTileLayerProperties>;
48
+ default: () => __esri.WebTileLayerProperties;
49
+ };
50
+ }, {
51
+ thumbnailUrl: import("vue").ComputedRef<string>;
52
+ annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
53
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
54
+ load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
55
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
56
+ spatialReference: {
57
+ type: PropType<__esri.SpatialReferenceProperties>;
58
+ default: () => {
59
+ wkid: number;
60
+ };
61
+ };
62
+ type: {
63
+ type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
64
+ default: string;
65
+ };
66
+ orphan: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
70
+ anno: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ thumbnailUrl: {
75
+ type: StringConstructor;
76
+ default: string;
77
+ };
78
+ minScale: {
79
+ type: NumberConstructor;
80
+ default: number;
81
+ };
82
+ maxScale: {
83
+ type: NumberConstructor;
84
+ default: number;
85
+ };
86
+ token: {
87
+ type: StringConstructor;
88
+ default: any;
89
+ };
90
+ webTileLayerOptions: {
91
+ type: PropType<__esri.WebTileLayerProperties>;
92
+ default: () => __esri.WebTileLayerProperties;
93
+ };
94
+ }>> & {
95
+ onLoad?: ((e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any) | undefined;
96
+ }, {
97
+ type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
98
+ spatialReference: {
99
+ wkid: number;
100
+ };
101
+ orphan: boolean;
102
+ thumbnailUrl: string;
103
+ maxScale: number;
104
+ minScale: number;
105
+ token: string;
106
+ anno: boolean;
107
+ webTileLayerOptions: __esri.WebTileLayerProperties;
108
+ }>;
109
+ readonly VaMapView: import("vue").DefineComponent<{
110
+ defaultOptions: {
111
+ type: PropType<__esri.MapViewProperties>;
112
+ default: () => {};
113
+ };
114
+ cursor: {
115
+ type: StringConstructor;
116
+ default: string;
117
+ };
118
+ }, {
119
+ viewNode: import("vue").Ref<HTMLDivElement>;
120
+ eventCursor: import("vue").Ref<string>;
121
+ cursorStyle: import("vue").ComputedRef<import("vue").StyleValue>;
122
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
123
+ load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
124
+ 'update:cursor': (e: string) => string | true;
125
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
126
+ defaultOptions: {
127
+ type: PropType<__esri.MapViewProperties>;
128
+ default: () => {};
129
+ };
130
+ cursor: {
131
+ type: StringConstructor;
132
+ default: string;
133
+ };
134
+ }>> & {
135
+ onLoad?: ((e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any) | undefined;
136
+ "onUpdate:cursor"?: ((e: string) => any) | undefined;
137
+ }, {
138
+ defaultOptions: {};
139
+ cursor: string;
140
+ }>;
141
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
142
+ };
8
143
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
9
144
  view: {
10
145
  type: PropType<MapView>;
11
146
  default: undefined;
12
147
  };
148
+ viewComponent: {
149
+ type: PropType<any>;
150
+ default: () => import("vue").DefineComponent<{}, {
151
+ readonly VaTdtBasemap: import("vue").DefineComponent<{
152
+ spatialReference: {
153
+ type: PropType<__esri.SpatialReferenceProperties>;
154
+ default: () => {
155
+ wkid: number;
156
+ };
157
+ };
158
+ type: {
159
+ type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
160
+ default: string;
161
+ };
162
+ orphan: {
163
+ type: BooleanConstructor;
164
+ default: boolean;
165
+ };
166
+ anno: {
167
+ type: BooleanConstructor;
168
+ default: boolean;
169
+ };
170
+ thumbnailUrl: {
171
+ type: StringConstructor;
172
+ default: string;
173
+ };
174
+ minScale: {
175
+ type: NumberConstructor;
176
+ default: number;
177
+ };
178
+ maxScale: {
179
+ type: NumberConstructor;
180
+ default: number;
181
+ };
182
+ token: {
183
+ type: StringConstructor;
184
+ default: any;
185
+ };
186
+ webTileLayerOptions: {
187
+ type: PropType<__esri.WebTileLayerProperties>;
188
+ default: () => __esri.WebTileLayerProperties;
189
+ };
190
+ }, {
191
+ thumbnailUrl: import("vue").ComputedRef<string>;
192
+ annoType: import("vue").ComputedRef<"cia_c" | "cva_c" | "cta_c" | "cia_w" | "cva_w" | "cta_w">;
193
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
194
+ load: (e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => import("@vuesri/core/components/basemap/src/types").LoadEvent;
195
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
196
+ spatialReference: {
197
+ type: PropType<__esri.SpatialReferenceProperties>;
198
+ default: () => {
199
+ wkid: number;
200
+ };
201
+ };
202
+ type: {
203
+ type: PropType<"img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w">;
204
+ default: string;
205
+ };
206
+ orphan: {
207
+ type: BooleanConstructor;
208
+ default: boolean;
209
+ };
210
+ anno: {
211
+ type: BooleanConstructor;
212
+ default: boolean;
213
+ };
214
+ thumbnailUrl: {
215
+ type: StringConstructor;
216
+ default: string;
217
+ };
218
+ minScale: {
219
+ type: NumberConstructor;
220
+ default: number;
221
+ };
222
+ maxScale: {
223
+ type: NumberConstructor;
224
+ default: number;
225
+ };
226
+ token: {
227
+ type: StringConstructor;
228
+ default: any;
229
+ };
230
+ webTileLayerOptions: {
231
+ type: PropType<__esri.WebTileLayerProperties>;
232
+ default: () => __esri.WebTileLayerProperties;
233
+ };
234
+ }>> & {
235
+ onLoad?: ((e: import("@vuesri/core/components/basemap/src/types").LoadEvent) => any) | undefined;
236
+ }, {
237
+ type: "img_c" | "vec_c" | "ter_c" | "img_w" | "vec_w" | "ter_w";
238
+ spatialReference: {
239
+ wkid: number;
240
+ };
241
+ orphan: boolean;
242
+ thumbnailUrl: string;
243
+ maxScale: number;
244
+ minScale: number;
245
+ token: string;
246
+ anno: boolean;
247
+ webTileLayerOptions: __esri.WebTileLayerProperties;
248
+ }>;
249
+ readonly VaMapView: import("vue").DefineComponent<{
250
+ defaultOptions: {
251
+ type: PropType<__esri.MapViewProperties>;
252
+ default: () => {};
253
+ };
254
+ cursor: {
255
+ type: StringConstructor;
256
+ default: string;
257
+ };
258
+ }, {
259
+ viewNode: import("vue").Ref<HTMLDivElement>;
260
+ eventCursor: import("vue").Ref<string>;
261
+ cursorStyle: import("vue").ComputedRef<import("vue").StyleValue>;
262
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
263
+ load: (e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => import("@vuesri/core/components/map-view/src/types").LoadEvent;
264
+ 'update:cursor': (e: string) => string | true;
265
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
266
+ defaultOptions: {
267
+ type: PropType<__esri.MapViewProperties>;
268
+ default: () => {};
269
+ };
270
+ cursor: {
271
+ type: StringConstructor;
272
+ default: string;
273
+ };
274
+ }>> & {
275
+ onLoad?: ((e: import("@vuesri/core/components/map-view/src/types").LoadEvent) => any) | undefined;
276
+ "onUpdate:cursor"?: ((e: string) => any) | undefined;
277
+ }, {
278
+ defaultOptions: {};
279
+ cursor: string;
280
+ }>;
281
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
282
+ };
13
283
  }>>, {
14
284
  view: MapView;
285
+ viewComponent: any;
15
286
  }>;
16
287
  export default _default;
@@ -60,7 +60,8 @@ const props = __spreadProps$1(__spreadValues$1({}, formProps), {
60
60
  const createBindProps = bindPropsFactory(props);
61
61
  const emits = __spreadProps$1(__spreadValues$1({}, formEmits), {
62
62
  setData: (e) => e,
63
- validate: null
63
+ validate: null,
64
+ submit: null
64
65
  });
65
66
  const createOnEmits = onEmitsFactory(emits);
66
67
 
@@ -173,13 +174,18 @@ const _sfc_main = defineComponent({
173
174
  }
174
175
  return props2.formItems;
175
176
  });
177
+ const handleSubmit = (e) => {
178
+ e.preventDefault();
179
+ emit("submit", e);
180
+ };
176
181
  return {
177
182
  formProps,
178
183
  formEmits,
179
184
  getValue,
180
185
  getRef,
181
186
  computed,
182
- rendererSource
187
+ rendererSource,
188
+ handleSubmit
183
189
  };
184
190
  }
185
191
  });
@@ -194,7 +200,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
194
200
  }
195
201
  }, _ctx.formProps, toHandlers(_ctx.formEmits), {
196
202
  model: _ctx.model || _ctx.data,
197
- ref: _ctx.getRef
203
+ ref: _ctx.getRef,
204
+ onSubmit: _ctx.handleSubmit
198
205
  }), {
199
206
  default: withCtx(() => [
200
207
  createVNode(_component_VkfFormItemRenderer, { source: _ctx.rendererSource }, {
@@ -211,7 +218,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
211
218
  renderSlot(_ctx.$slots, "default")
212
219
  ]),
213
220
  _: 3
214
- }, 16, ["class", "model"]);
221
+ }, 16, ["class", "model", "onSubmit"]);
215
222
  }
216
223
  var VkfForm = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "index.vue"]]);
217
224
 
@@ -387,8 +387,10 @@ export declare const createBindProps: <T2 extends import("@vunk/core").NormalObj
387
387
  export declare const emits: {
388
388
  setData: (e: SetDataEvent) => SetDataEvent<any>;
389
389
  validate: null;
390
+ submit: null;
390
391
  };
391
- export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("validate" | "setData")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"validate", KE> | Exclude<"setData", KE> : "validate" | "setData"]: {
392
+ export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("submit" | "validate" | "setData")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"submit", KE> | Exclude<"validate", KE> | Exclude<"setData", KE> : "submit" | "validate" | "setData"]: {
392
393
  setData: (...e: import("@vunk/core").RestParameters<T2>) => void;
393
394
  validate: (...e: import("@vunk/core").RestParameters<T2>) => void;
395
+ submit: (...e: import("@vunk/core").RestParameters<T2>) => void;
394
396
  }[P]; };
@@ -53,7 +53,8 @@ const props = __spreadProps(__spreadValues({}, formProps), {
53
53
  const createBindProps = bindPropsFactory(props);
54
54
  const emits = __spreadProps(__spreadValues({}, formEmits), {
55
55
  setData: (e) => e,
56
- validate: null
56
+ validate: null,
57
+ submit: null
57
58
  });
58
59
  const createOnEmits = onEmitsFactory(emits);
59
60
 
@@ -393,9 +393,11 @@ declare const _default: import("vue").DefineComponent<{
393
393
  getRef: (e: InstanceType<typeof ElForm>) => void;
394
394
  computed: typeof import("@vue/reactivity").computed;
395
395
  rendererSource: import("vue").ComputedRef<any>;
396
+ handleSubmit: (e: Event) => void;
396
397
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
397
398
  setData: (e: import("@vunk/core").SetDataEvent<any>) => import("@vunk/core").SetDataEvent<any>;
398
399
  validate: null;
400
+ submit: null;
399
401
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
400
402
  data: {
401
403
  type: import("vue").PropType<Record<string, any>>;
@@ -767,6 +769,7 @@ declare const _default: import("vue").DefineComponent<{
767
769
  }>> & {
768
770
  onSetData?: ((e: import("@vunk/core").SetDataEvent<any>) => any) | undefined;
769
771
  onValidate?: ((...args: any[]) => any) | undefined;
772
+ onSubmit?: ((...args: any[]) => any) | undefined;
770
773
  }, {
771
774
  labelWidth: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
772
775
  inlineMessage: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.42",
3
+ "version": "1.1.44",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {