@vunk/form 1.1.45 → 1.1.47

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,4 +1,4 @@
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';
1
+ import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, createBlock, withCtx, createVNode, createCommentVNode, unref, renderSlot, provide, resolveDynamicComponent, normalizeProps, mergeProps, ref, shallowRef, computed, watch, onMounted, nextTick, 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';
@@ -63,6 +63,7 @@ var __spreadValues = (a, b) => {
63
63
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
64
64
  const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
65
65
  viewComponent: null,
66
+ viewComponentAttrs: null,
66
67
  readonly: {
67
68
  type: Boolean,
68
69
  default: void 0
@@ -124,6 +125,10 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
124
125
  layerIndex: {
125
126
  type: Number,
126
127
  default: 100
128
+ },
129
+ visibleElements: {
130
+ type: Object,
131
+ default: void 0
127
132
  }
128
133
  });
129
134
  const createBindProps = bindPropsFactory(props);
@@ -407,6 +412,10 @@ const _sfc_main$1 = defineComponent({
407
412
  viewComponent: {
408
413
  type: [Object, Function],
409
414
  default: () => DefaultView
415
+ },
416
+ viewComponentAttrs: {
417
+ type: Object,
418
+ default: () => ({})
410
419
  }
411
420
  },
412
421
  setup(props) {
@@ -423,12 +432,12 @@ const _sfc_main$1 = defineComponent({
423
432
  }
424
433
  });
425
434
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
426
- return !_ctx.view ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.viewComponent), { key: 0 }, {
435
+ return !_ctx.view ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.viewComponent), normalizeProps(mergeProps({ key: 0 }, _ctx.viewComponentAttrs)), {
427
436
  default: withCtx(() => [
428
437
  renderSlot(_ctx.$slots, "default")
429
438
  ]),
430
439
  _: 3
431
- })) : renderSlot(_ctx.$slots, "default", { key: 1 });
440
+ }, 16)) : renderSlot(_ctx.$slots, "default", { key: 1 });
432
441
  }
433
442
  var ViewerVue = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "viewer.vue"]]);
434
443
 
@@ -1377,6 +1386,14 @@ var _sfc_main = defineComponent({
1377
1386
  }) {
1378
1387
  const inputBindProps = _VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
1379
1388
  const inputOnEmits = _VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
1389
+ const getInputModelValue = (v) => {
1390
+ const emptyStr = "\u6682\u65E0\u6570\u636E";
1391
+ if (!v)
1392
+ return emptyStr;
1393
+ if (!v.features.length)
1394
+ return emptyStr;
1395
+ return JSON.stringify(v);
1396
+ };
1380
1397
  const readonly = useComputedReadonly(props2);
1381
1398
  const sketchIf = ref(!props2.view);
1382
1399
  const sketchRef = shallowRef();
@@ -1550,7 +1567,8 @@ var _sfc_main = defineComponent({
1550
1567
  layerLoad,
1551
1568
  sketchIf,
1552
1569
  fly,
1553
- layerRef
1570
+ layerRef,
1571
+ getInputModelValue
1554
1572
  };
1555
1573
  }
1556
1574
  });
@@ -1585,18 +1603,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1585
1603
  }, () => [
1586
1604
  createVNode(_component_VkfInput, mergeProps({
1587
1605
  readonly: true,
1588
- "model-value": JSON.stringify(_ctx.modelValue)
1606
+ "model-value": _ctx.getInputModelValue(_ctx.modelValue)
1589
1607
  }, _ctx.inputBindProps, {
1590
1608
  "input-slots": {
1591
- append: _ctx.append
1592
- }
1609
+ append: _ctx.append
1610
+ }
1593
1611
  }, toHandlers(_ctx.inputOnEmits)), null, 16 /* FULL_PROPS */, ["model-value", "input-slots"])
1594
1612
  ]),
1595
1613
  createVNode(_component_VkAsyncTeleport, { to: _ctx.mapTo }, {
1596
1614
  default: withCtx(() => [
1597
1615
  createVNode(_component_ViewerVue, {
1598
1616
  view: _ctx.view,
1599
- "view-component": _ctx.viewComponent
1617
+ "view-component": _ctx.viewComponent,
1618
+ viewComponentAttrs: _ctx.viewComponentAttrs
1600
1619
  }, {
1601
1620
  default: withCtx(() => [
1602
1621
  createVNode(_component_VaGraphicsLayer, {
@@ -1615,7 +1634,8 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1615
1634
  "available-creature-tools": _ctx.availableCreatureTools,
1616
1635
  "model-value": _ctx.sketchValue,
1617
1636
  "onUpdate:modelValue": _ctx.handleUpdateSketchValue,
1618
- onLoad: _ctx.sketchLoad
1637
+ onLoad: _ctx.sketchLoad,
1638
+ visibleElements: _ctx.visibleElements
1619
1639
  }, {
1620
1640
  default: withCtx(() => [
1621
1641
  (!_ctx.skipSave && _ctx.shetchPanel)
@@ -1639,14 +1659,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
1639
1659
  : createCommentVNode("v-if", true)
1640
1660
  ]),
1641
1661
  _: 1 /* STABLE */
1642
- }, 8 /* PROPS */, ["view-model-active-fill-symbol", "view-model-active-line-symbol", "view-model-active-point-symbol", "multiple", "available-creature-tools", "model-value", "onUpdate:modelValue", "onLoad"]))
1662
+ }, 8 /* PROPS */, ["view-model-active-fill-symbol", "view-model-active-line-symbol", "view-model-active-point-symbol", "multiple", "available-creature-tools", "model-value", "onUpdate:modelValue", "onLoad", "visibleElements"]))
1643
1663
  : createCommentVNode("v-if", true)
1644
1664
  ]),
1645
1665
  _: 1 /* STABLE */
1646
1666
  }, 8 /* PROPS */, ["index", "graphics", "onLoad"])
1647
1667
  ]),
1648
1668
  _: 1 /* STABLE */
1649
- }, 8 /* PROPS */, ["view", "view-component"])
1669
+ }, 8 /* PROPS */, ["view", "view-component", "viewComponentAttrs"])
1650
1670
  ]),
1651
1671
  _: 1 /* STABLE */
1652
1672
  }, 8 /* PROPS */, ["to"]),
@@ -3,6 +3,7 @@ import { FeatureCollection, Geometry } from 'geojson';
3
3
  import { EDIT_TYPE } from './const';
4
4
  export declare const props: {
5
5
  viewComponent: null;
6
+ viewComponentAttrs: null;
6
7
  readonly: {
7
8
  type: BooleanConstructor;
8
9
  default: undefined;
@@ -68,6 +69,10 @@ export declare const props: {
68
69
  type: NumberConstructor;
69
70
  default: number;
70
71
  };
72
+ visibleElements: {
73
+ type: PropType<__esri.SketchVisibleElements | undefined>;
74
+ default: undefined;
75
+ };
71
76
  maxlength: {
72
77
  type: NumberConstructor;
73
78
  required: boolean;
@@ -190,7 +195,7 @@ export declare const props: {
190
195
  validateEvent: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
191
196
  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>;
192
197
  };
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]; }>;
198
+ 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<"viewComponentAttrs", keyof T2> | Extract<"visibleElements", 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<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"visibleElements", 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<"viewComponentAttrs", keyof T2> | Extract<"visibleElements", 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<"viewComponentAttrs", keyof T2> | Extract<"visibleElements", 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]; }>;
194
199
  export declare const emits: {
195
200
  'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, import("geojson").GeoJsonProperties>;
196
201
  'update:flying': null;
@@ -48,6 +48,7 @@ var __spreadValues = (a, b) => {
48
48
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
49
49
  const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
50
50
  viewComponent: null,
51
+ viewComponentAttrs: null,
51
52
  readonly: {
52
53
  type: Boolean,
53
54
  default: void 0
@@ -109,6 +110,10 @@ const props = __spreadProps(__spreadValues({}, _VkfInputCtx.props), {
109
110
  layerIndex: {
110
111
  type: Number,
111
112
  default: 100
113
+ },
114
+ visibleElements: {
115
+ type: Object,
116
+ default: void 0
112
117
  }
113
118
  });
114
119
  const createBindProps = bindPropsFactory(props);
@@ -3,6 +3,7 @@ import { __VaSketch, __VaGraphicsLayer } from '@vuesri/core';
3
3
  import Graphic from '@arcgis/core/Graphic';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  viewComponent: null;
6
+ viewComponentAttrs: null;
6
7
  readonly: {
7
8
  type: BooleanConstructor;
8
9
  default: undefined;
@@ -68,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
68
69
  type: NumberConstructor;
69
70
  default: number;
70
71
  };
72
+ visibleElements: {
73
+ type: import("vue").PropType<__esri.SketchVisibleElements | undefined>;
74
+ default: undefined;
75
+ };
71
76
  maxlength: {
72
77
  type: NumberConstructor;
73
78
  required: boolean;
@@ -263,6 +268,7 @@ declare const _default: import("vue").DefineComponent<{
263
268
  sketchIf: Ref<boolean>;
264
269
  fly: () => Promise<void>;
265
270
  layerRef: Ref<__esri.GraphicsLayer>;
271
+ getInputModelValue: (v: import("geojson").FeatureCollection<import("geojson").Geometry, any>) => string;
266
272
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
267
273
  'update:modelValue': (e: import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>) => import("geojson").FeatureCollection<import("geojson").Geometry, import("geojson").GeoJsonProperties>;
268
274
  'update:flying': null;
@@ -281,6 +287,7 @@ declare const _default: import("vue").DefineComponent<{
281
287
  compositionend: (evt: CompositionEvent) => boolean;
282
288
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
283
289
  viewComponent: null;
290
+ viewComponentAttrs: null;
284
291
  readonly: {
285
292
  type: BooleanConstructor;
286
293
  default: undefined;
@@ -346,6 +353,10 @@ declare const _default: import("vue").DefineComponent<{
346
353
  type: NumberConstructor;
347
354
  default: number;
348
355
  };
356
+ visibleElements: {
357
+ type: import("vue").PropType<__esri.SketchVisibleElements | undefined>;
358
+ default: undefined;
359
+ };
349
360
  maxlength: {
350
361
  type: NumberConstructor;
351
362
  required: boolean;
@@ -515,6 +526,7 @@ declare const _default: import("vue").DefineComponent<{
515
526
  dialogEditFullscreen: boolean;
516
527
  dialogEditTitle: string;
517
528
  viewModelActiveFillSymbol: any;
529
+ visibleElements: __esri.SketchVisibleElements | undefined;
518
530
  skipSave: boolean;
519
531
  flying: boolean;
520
532
  layerIndex: number;
@@ -140,6 +140,10 @@ declare const _default: import("vue").DefineComponent<{
140
140
  }>;
141
141
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
142
142
  };
143
+ viewComponentAttrs: {
144
+ type: PropType<any>;
145
+ default: () => {};
146
+ };
143
147
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
144
148
  view: {
145
149
  type: PropType<MapView>;
@@ -280,8 +284,13 @@ declare const _default: import("vue").DefineComponent<{
280
284
  }>;
281
285
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
282
286
  };
287
+ viewComponentAttrs: {
288
+ type: PropType<any>;
289
+ default: () => {};
290
+ };
283
291
  }>>, {
284
292
  view: MapView;
285
293
  viewComponent: any;
294
+ viewComponentAttrs: any;
286
295
  }>;
287
296
  export default _default;
@@ -59,7 +59,7 @@ const restFetch = new RestFetch({
59
59
  const verify = async (params) => {
60
60
  return restFetch.request({
61
61
  method: "GET",
62
- url: "/dict/hdfs/getChunkList",
62
+ url: "/dict/nfs/getChunkList",
63
63
  params
64
64
  }).then((res) => {
65
65
  return res.data.map((item) => item.identifier);
@@ -70,7 +70,7 @@ const upload = async (data, init) => {
70
70
  var _a;
71
71
  const xhr = new XMLHttpRequest();
72
72
  xhr.upload.onprogress = (init == null ? void 0 : init.onprogress) || null;
73
- xhr.open("post", restFetch.baseURL + "/dict/hdfs/chunk/upload");
73
+ xhr.open("post", restFetch.baseURL + "/dict/nfs/chunk/upload");
74
74
  const form = new FormData();
75
75
  form.append("file", data.chunk);
76
76
  form.append("identifier", data.fileHash);
@@ -108,7 +108,7 @@ const upload = async (data, init) => {
108
108
  const merge = async (data) => {
109
109
  return restFetch.request({
110
110
  method: "POST",
111
- url: "/dict/hdfs/chunk/merge",
111
+ url: "/dict/nfs/chunk/merge",
112
112
  data
113
113
  }).then((res) => {
114
114
  return res.datas;
@@ -6,7 +6,7 @@ const restFetch = new RestFetch({
6
6
  const verify = async (params) => {
7
7
  return restFetch.request({
8
8
  method: "GET",
9
- url: "/dict/hdfs/getChunkList",
9
+ url: "/dict/nfs/getChunkList",
10
10
  params
11
11
  }).then((res) => {
12
12
  return res.data.map((item) => item.identifier);
@@ -17,7 +17,7 @@ const upload = async (data, init) => {
17
17
  var _a;
18
18
  const xhr = new XMLHttpRequest();
19
19
  xhr.upload.onprogress = (init == null ? void 0 : init.onprogress) || null;
20
- xhr.open("post", restFetch.baseURL + "/dict/hdfs/chunk/upload");
20
+ xhr.open("post", restFetch.baseURL + "/dict/nfs/chunk/upload");
21
21
  const form = new FormData();
22
22
  form.append("file", data.chunk);
23
23
  form.append("identifier", data.fileHash);
@@ -55,7 +55,7 @@ const upload = async (data, init) => {
55
55
  const merge = async (data) => {
56
56
  return restFetch.request({
57
57
  method: "POST",
58
- url: "/dict/hdfs/chunk/merge",
58
+ url: "/dict/nfs/chunk/merge",
59
59
  data
60
60
  }).then((res) => {
61
61
  return res.datas;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "1.1.45",
3
+ "version": "1.1.47",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {