@vunk/form 2.19.0 → 2.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/api-tables-select/src/ctx.d.ts +16 -22
- package/components/api-tables-select/src/index.vue.d.ts +39 -43
- package/components/button/index.mjs +1 -2
- package/components/button/src/ctx.d.ts +7 -7
- package/components/button/src/index.vue.d.ts +64 -63
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +7 -7
- package/components/card-input-collection/src/core.vue.d.ts +12 -8
- package/components/card-input-collection/src/ctx.d.ts +2 -2
- package/components/card-input-collection/src/index.vue.d.ts +7 -6
- package/components/cascader/src/ctx.d.ts +33 -25
- package/components/cascader/src/index.vue.d.ts +67 -50
- package/components/cascader/src/use.d.ts +1 -1
- package/components/checkbox/index.mjs +3 -3
- package/components/checkbox/src/ctx.d.ts +19 -19
- package/components/checkbox/src/index.vue.d.ts +128 -127
- package/components/cloneDeep.cjs +1 -1
- package/components/color-picker/src/ctx.d.ts +22 -14
- package/components/color-picker/src/index.vue.d.ts +52 -32
- package/components/date-picker/src/ctx.d.ts +32 -24
- package/components/date-picker/src/index.vue.d.ts +68 -51
- package/components/date-picker-range/src/ctx.d.ts +23 -15
- package/components/date-picker-range/src/index.vue.d.ts +131 -98
- package/components/dialog/src/ctx.d.ts +5 -5
- package/components/dialog/src/index.vue.d.ts +18 -16
- package/components/dialog-input-collection/index.mjs +9 -9
- package/components/dialog-input-collection/src/ctx.d.ts +4 -3
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +12 -8
- package/components/dialog-input-collection/src/index.vue.d.ts +13 -11
- package/components/dialog-input-collection/src/layout.vue.d.ts +8 -4
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +21 -22
- package/components/download-plus/src/api.d.ts +1 -1
- package/components/download-plus/src/ctx.d.ts +4 -3
- package/components/download-plus/src/index.vue.d.ts +81 -78
- package/components/editable-text/src/ctx.d.ts +2 -6
- package/components/editable-text/src/index.vue.d.ts +14 -10
- package/components/el-slider/index.mjs +4 -4
- package/components/el-slider/src/button.vue.d.ts +2 -1
- package/components/el-slider/src/composables/use-slide.d.ts +1 -1
- package/components/el-slider/src/composables/use-slider-button.d.ts +1 -1
- package/components/el-slider/src/composables/use-watch.d.ts +1 -1
- package/components/el-slider/src/slider-core.vue.d.ts +7 -6
- package/components/el-slider/src/slider.d.ts +2 -1
- package/components/esri-input-geojson/index.mjs +40 -55
- package/components/esri-input-geojson/src/append.vue.d.ts +97 -96
- package/components/esri-input-geojson/src/ctx.d.ts +21 -22
- package/components/esri-input-geojson/src/default-view.vue.d.ts +7 -3
- package/components/esri-input-geojson/src/index.vue.d.ts +593 -186
- package/components/esri-input-geojson/src/types.d.ts +0 -1
- package/components/esri-input-geojson/src/viewer.vue.d.ts +406 -40
- package/components/fieldset/index.mjs +2 -4
- package/components/fieldset/src/index.vue.d.ts +3 -2
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +68 -67
- package/components/form-item/index.mjs +6 -7
- package/components/form-item/src/core.vue.d.ts +12 -10
- package/components/form-item/src/ctx.d.ts +6 -4
- package/components/form-item/src/index.vue.d.ts +7 -6
- package/components/form-item-renderer/index.mjs +2 -3
- package/components/form-item-renderer/src/core.vue.d.ts +3 -2
- package/components/form-item-renderer/src/index.vue.d.ts +7 -5
- package/components/form-item-renderer-template/index.mjs +1 -2
- package/components/form-item-renderer-template/src/index.vue.d.ts +3 -2
- package/components/forms-provider/src/index.vue.d.ts +5 -2
- package/components/forms-provider/src/segment.vue.d.ts +7 -3
- package/components/forms-provider/src/view.vue.d.ts +11 -7
- package/components/index2.cjs +1 -1
- package/components/information/src/index.vue.d.ts +3 -2
- package/components/information-collection/src/ctx.d.ts +17 -11
- package/components/information-collection/src/index.vue.d.ts +36 -27
- package/components/information-renderer/index.d.ts +9 -9
- package/components/information-tag/src/ctx.d.ts +4 -3
- package/components/information-tag/src/index.vue.d.ts +12 -11
- package/components/information-templates-default/src/index.vue.d.ts +2 -1
- package/components/input/src/ctx.d.ts +20 -20
- package/components/input/src/index.vue.d.ts +70 -69
- package/components/input-array/src/ctx.d.ts +2 -2
- package/components/input-array/src/form-template.vue.d.ts +2 -1
- package/components/input-array/src/index.vue.d.ts +6 -5
- package/components/input-collection/src/core.vue.d.ts +17 -15
- package/components/input-collection/src/ctx.d.ts +4 -4
- package/components/input-collection/src/index.vue.d.ts +13 -12
- package/components/input-file/src/index.vue.d.ts +51 -50
- package/components/input-file/src/template.vue.d.ts +2 -1
- package/components/input-link/src/ctx.d.ts +19 -21
- package/components/input-link/src/index.vue.d.ts +111 -110
- package/components/input-number/src/ctx.d.ts +5 -5
- package/components/input-number/src/index.vue.d.ts +39 -38
- package/components/input-tag/src/ctx.d.ts +10 -10
- package/components/input-tag/src/index.vue.d.ts +48 -47
- package/components/monaco-editor/src/ctx.d.ts +2 -2
- package/components/monaco-editor/src/index.vue.d.ts +17 -16
- package/components/radio/index.cjs +1 -1
- package/components/radio/index.mjs +2 -2
- package/components/radio/src/ctx.d.ts +3 -3
- package/components/radio/src/index.vue.d.ts +32 -31
- package/components/radio/src/option.vue.d.ts +12 -10
- package/components/radio/src/wraper.vue.d.ts +9 -8
- package/components/renderer-data/src/index.vue.d.ts +3 -2
- package/components/select/src/core.vue.d.ts +99 -239
- package/components/select/src/ctx.d.ts +23 -95
- package/components/select/src/index.vue.d.ts +76 -75
- package/components/select/src/options.vue.d.ts +3 -2
- package/components/slider/src/ctx.d.ts +10 -10
- package/components/slider/src/index.vue.d.ts +29 -25
- package/components/style.css +1 -1
- package/components/switch/src/ctx.d.ts +11 -11
- package/components/switch/src/index.vue.d.ts +24 -20
- package/components/tables-select/index.mjs +1 -2
- package/components/tables-select/src/ctx.d.ts +27 -43
- package/components/tables-select/src/index.vue.d.ts +57 -71
- package/components/template-instances-provider/src/index.vue.d.ts +3 -2
- package/components/templates-default/src/ctx.d.ts +3 -5
- package/components/templates-default/src/index.vue.d.ts +778 -727
- package/components/templates-element-plus/index.mjs +3 -3
- package/components/templates-element-plus/src/index.vue.d.ts +27 -26
- package/components/templates-esri/src/index.vue.d.ts +600 -193
- package/components/templates-layout/index.mjs +3 -3
- package/components/templates-layout/src/index.vue.d.ts +14 -13
- package/components/templates-variant/src/index.vue.d.ts +132 -99
- package/components/time-picker/src/ctx.d.ts +31 -23
- package/components/time-picker/src/index.vue.d.ts +66 -49
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +45 -45
- package/components/upload/src/ctx.d.ts +24 -22
- package/components/upload/src/file.vue.d.ts +75 -73
- package/components/upload/src/index.vue.d.ts +188 -187
- package/components/upload/src/wraper.vue.d.ts +48 -47
- package/components/upload-plus/index.cjs +7 -7
- package/components/upload-plus/index.mjs +1911 -1937
- package/components/upload-plus/src/api.d.ts +1 -1
- package/components/upload-plus/src/ctx.d.ts +2 -5
- package/components/upload-plus/src/index.vue.d.ts +6 -5
- package/components/use-watch.cjs +1 -1
- package/components/van-cascader/src/ctx.d.ts +33 -25
- package/components/van-cascader/src/index.vue.d.ts +67 -50
- package/components/var-datetime-picker/index.cjs +1 -1
- package/components/var-datetime-picker/index.mjs +18 -20
- package/components/var-datetime-picker/src/ctx.d.ts +4 -3
- package/components/var-datetime-picker/src/index.vue.d.ts +144 -179
- package/components/vditor/src/ctx.d.ts +2 -3
- package/components/vditor/src/index.vue.d.ts +19 -19
- package/composables/index.mjs +3 -5
- package/composables/useSourceManager.d.ts +2 -2
- package/index.css +1 -1
- package/package.json +1 -1
- package/shared/element-plus/instances.d.ts +60 -43
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ComputedRef, SetupContext } from 'vue';
|
|
2
2
|
import type { FormItemContext } from 'element-plus';
|
|
3
3
|
import type { SliderEmits, SliderInitData, SliderProps } from '../slider';
|
|
4
|
-
export declare const useWatch: (props: SliderProps, initData: SliderInitData, minValue: ComputedRef<number>, maxValue: ComputedRef<number>, emit: SetupContext<SliderEmits>[
|
|
4
|
+
export declare const useWatch: (props: SliderProps, initData: SliderInitData, minValue: ComputedRef<number>, maxValue: ComputedRef<number>, emit: SetupContext<SliderEmits>["emit"], elFormItem: FormItemContext) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const
|
|
1
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
2
|
isRtl: {
|
|
3
3
|
type: BooleanConstructor;
|
|
4
4
|
default: boolean;
|
|
@@ -42,7 +42,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
42
42
|
readonly default: true;
|
|
43
43
|
};
|
|
44
44
|
formatTooltip: {
|
|
45
|
-
readonly type: import("vue").PropType<(val: number) =>
|
|
45
|
+
readonly type: import("vue").PropType<(val: number) => number | string>;
|
|
46
46
|
readonly default: undefined;
|
|
47
47
|
};
|
|
48
48
|
disabled: {
|
|
@@ -69,7 +69,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
69
69
|
readonly default: undefined;
|
|
70
70
|
};
|
|
71
71
|
placement: {
|
|
72
|
-
readonly type: import("vue").PropType<import("@popperjs/core/index").
|
|
72
|
+
readonly type: import("vue").PropType<typeof import("@popperjs/core/index").placements[number]>;
|
|
73
73
|
readonly default: "top";
|
|
74
74
|
};
|
|
75
75
|
marks: {
|
|
@@ -139,7 +139,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
139
139
|
readonly default: true;
|
|
140
140
|
};
|
|
141
141
|
formatTooltip: {
|
|
142
|
-
readonly type: import("vue").PropType<(val: number) =>
|
|
142
|
+
readonly type: import("vue").PropType<(val: number) => number | string>;
|
|
143
143
|
readonly default: undefined;
|
|
144
144
|
};
|
|
145
145
|
disabled: {
|
|
@@ -166,7 +166,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
166
166
|
readonly default: undefined;
|
|
167
167
|
};
|
|
168
168
|
placement: {
|
|
169
|
-
readonly type: import("vue").PropType<import("@popperjs/core/index").
|
|
169
|
+
readonly type: import("vue").PropType<typeof import("@popperjs/core/index").placements[number]>;
|
|
170
170
|
readonly default: "top";
|
|
171
171
|
};
|
|
172
172
|
marks: {
|
|
@@ -208,11 +208,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
208
208
|
inputSize: "" | "default" | "small" | "large";
|
|
209
209
|
showStops: boolean;
|
|
210
210
|
showTooltip: boolean;
|
|
211
|
-
formatTooltip: (val: number) =>
|
|
211
|
+
formatTooltip: (val: number) => number | string;
|
|
212
212
|
range: boolean;
|
|
213
213
|
rangeStartLabel: string;
|
|
214
214
|
rangeEndLabel: string;
|
|
215
215
|
formatValueText: (val: number) => string;
|
|
216
216
|
tooltipClass: string;
|
|
217
217
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
218
|
+
declare const _default: typeof __VLS_export;
|
|
218
219
|
export default _default;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { placements } from '@popperjs/core';
|
|
1
2
|
import type { ExtractPropTypes, ExtractPublicPropTypes, PropType } from 'vue';
|
|
2
3
|
import type { SliderMarkerProps } from './marker';
|
|
3
4
|
import type Slider from './slider-core.vue';
|
|
@@ -137,7 +138,7 @@ export declare const sliderProps: {
|
|
|
137
138
|
* @description position of Tooltip
|
|
138
139
|
*/
|
|
139
140
|
readonly placement: {
|
|
140
|
-
readonly type: PropType<
|
|
141
|
+
readonly type: PropType<(typeof placements)[number]>;
|
|
141
142
|
readonly default: "top";
|
|
142
143
|
};
|
|
143
144
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as F, resolveComponent as h, openBlock as w, createBlock as _, withCtx as v, createVNode as y, createCommentVNode as O, unref as te, renderSlot as A, provide as G, resolveDynamicComponent as Te, normalizeProps as Re, mergeProps as fe, ref as
|
|
2
|
-
import { _VkfInputCtx as T, VkfInput as
|
|
3
|
-
import { bindPropsFactory as
|
|
4
|
-
import {
|
|
1
|
+
import { defineComponent as F, resolveComponent as h, openBlock as w, createBlock as _, withCtx as v, createVNode as y, createCommentVNode as O, unref as te, renderSlot as A, provide as G, resolveDynamicComponent as Te, normalizeProps as Re, mergeProps as fe, ref as N, shallowRef as k, computed as ne, watch as oe, onMounted as Fe, nextTick as Le, createElementBlock as $e, toHandlers as Be, withDirectives as Ue, createElementVNode as re, vShow as Ge } from "vue";
|
|
2
|
+
import { _VkfInputCtx as T, VkfInput as Ne } from "@vunk/form/components/input";
|
|
3
|
+
import { bindPropsFactory as De, onEmitsFactory as Je } from "@vunk/core/shared/utils-vue";
|
|
4
|
+
import { ElUpload as qe, ElButtonGroup as ze, ElIcon as Ze, ElButton as He, ElMessage as ae } from "element-plus";
|
|
5
5
|
import { k as xe, e as Ye, l as Xe, n as Ke } from "../index.cjs";
|
|
6
6
|
import { _ as Y } from "../_plugin-vue_export-helper.cjs";
|
|
7
|
-
import { VaMapView as ce, VaTdtBasemap as de,
|
|
7
|
+
import { VaMapView as ce, VaTdtBasemap as de, VaGraphicsLayer as Qe, VaSketch as We } from "@vuesri/core";
|
|
8
8
|
import je from "@arcgis/core/views/MapView";
|
|
9
9
|
import et from "@arcgis/core/views/SceneView";
|
|
10
10
|
import { VkAsyncTeleport as tt } from "@vunk/core";
|
|
@@ -103,7 +103,7 @@ const it = [
|
|
|
103
103
|
type: Object,
|
|
104
104
|
default: void 0
|
|
105
105
|
}
|
|
106
|
-
}, st =
|
|
106
|
+
}, st = De(X), K = {
|
|
107
107
|
...T.emits,
|
|
108
108
|
"update:modelValue": (e) => e,
|
|
109
109
|
"update:flying": null,
|
|
@@ -120,13 +120,13 @@ const it = [
|
|
|
120
120
|
props: X
|
|
121
121
|
}, Symbol.toStringTag, { value: "Module" })), ct = F({
|
|
122
122
|
components: {
|
|
123
|
-
ElButton:
|
|
124
|
-
ElIcon:
|
|
125
|
-
ElButtonGroup:
|
|
126
|
-
Upload:
|
|
123
|
+
ElButton: He,
|
|
124
|
+
ElIcon: Ze,
|
|
125
|
+
ElButtonGroup: ze,
|
|
126
|
+
Upload: Xe,
|
|
127
127
|
Edit: Ye,
|
|
128
|
-
ElUpload:
|
|
129
|
-
MapLocation:
|
|
128
|
+
ElUpload: qe,
|
|
129
|
+
MapLocation: xe
|
|
130
130
|
},
|
|
131
131
|
props: {
|
|
132
132
|
disabled: Boolean,
|
|
@@ -280,7 +280,7 @@ function bt(e) {
|
|
|
280
280
|
}, n.onerror = o, n.ontimeout = o, n.open("GET", e, !0), n.send();
|
|
281
281
|
});
|
|
282
282
|
}
|
|
283
|
-
function
|
|
283
|
+
function D(e) {
|
|
284
284
|
return (typeof fetch == "function" ? _t : bt)(e);
|
|
285
285
|
}
|
|
286
286
|
function ie(e) {
|
|
@@ -291,10 +291,8 @@ function kt() {
|
|
|
291
291
|
return this._source.cancel();
|
|
292
292
|
}
|
|
293
293
|
function Ct(e, t) {
|
|
294
|
-
if (!e.length)
|
|
295
|
-
|
|
296
|
-
if (!t.length)
|
|
297
|
-
return e;
|
|
294
|
+
if (!e.length) return t;
|
|
295
|
+
if (!t.length) return e;
|
|
298
296
|
var o = new Uint8Array(e.length + t.length);
|
|
299
297
|
return o.set(e), o.set(t, e.length), o;
|
|
300
298
|
}
|
|
@@ -305,8 +303,7 @@ function St() {
|
|
|
305
303
|
});
|
|
306
304
|
}
|
|
307
305
|
function Et(e) {
|
|
308
|
-
if ((e |= 0) < 0)
|
|
309
|
-
throw new Error("invalid length");
|
|
306
|
+
if ((e |= 0) < 0) throw new Error("invalid length");
|
|
310
307
|
var t = this, o = this._array.length - this._index;
|
|
311
308
|
if (this._index + e <= this._array.length)
|
|
312
309
|
return Promise.resolve(this._array.subarray(this._index, this._index += e));
|
|
@@ -372,8 +369,7 @@ function Tt(e, t) {
|
|
|
372
369
|
function ve(e, t, o, n) {
|
|
373
370
|
this._source = e, this._decode = t.decode.bind(t), this._recordLength = o.getUint16(10, !0), this._fields = [];
|
|
374
371
|
for (var r = 0; n.getUint8(r) !== 13; r += 32) {
|
|
375
|
-
for (var a = 0; a < 11 && n.getUint8(r + a) !== 0; ++a)
|
|
376
|
-
;
|
|
372
|
+
for (var a = 0; a < 11 && n.getUint8(r + a) !== 0; ++a) ;
|
|
377
373
|
this._fields.push({
|
|
378
374
|
name: this._decode(new Uint8Array(n.buffer, n.byteOffset + r, a)),
|
|
379
375
|
type: String.fromCharCode(n.getUint8(r + 11)),
|
|
@@ -389,8 +385,7 @@ function Rt() {
|
|
|
389
385
|
}
|
|
390
386
|
function J(e) {
|
|
391
387
|
var t = 40, o, n = e.getInt32(36, !0), r = new Array(n);
|
|
392
|
-
for (o = 0; o < n; ++o, t += 16)
|
|
393
|
-
r[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
388
|
+
for (o = 0; o < n; ++o, t += 16) r[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
394
389
|
return { type: "MultiPoint", coordinates: r };
|
|
395
390
|
}
|
|
396
391
|
function Ft() {
|
|
@@ -401,10 +396,8 @@ function q(e) {
|
|
|
401
396
|
}
|
|
402
397
|
function z(e) {
|
|
403
398
|
var t = 44, o, n = e.getInt32(36, !0), r = e.getInt32(40, !0), a = new Array(n), l = new Array(r), i = [], s = [];
|
|
404
|
-
for (o = 0; o < n; ++o, t += 4)
|
|
405
|
-
|
|
406
|
-
for (o = 0; o < r; ++o, t += 16)
|
|
407
|
-
l[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
399
|
+
for (o = 0; o < n; ++o, t += 4) a[o] = e.getInt32(t, !0);
|
|
400
|
+
for (o = 0; o < r; ++o, t += 16) l[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
408
401
|
return a.forEach(function(c, f) {
|
|
409
402
|
var p = l.slice(c, a[f + 1]);
|
|
410
403
|
Lt(p) ? i.push([p]) : s.push(p);
|
|
@@ -416,10 +409,8 @@ function z(e) {
|
|
|
416
409
|
}), i.length === 1 ? { type: "Polygon", coordinates: i[0] } : { type: "MultiPolygon", coordinates: i };
|
|
417
410
|
}
|
|
418
411
|
function Lt(e) {
|
|
419
|
-
if ((o = e.length) < 4)
|
|
420
|
-
|
|
421
|
-
for (var t = 0, o, n = e[o - 1][1] * e[0][0] - e[o - 1][0] * e[0][1]; ++t < o; )
|
|
422
|
-
n += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1];
|
|
412
|
+
if ((o = e.length) < 4) return !1;
|
|
413
|
+
for (var t = 0, o, n = e[o - 1][1] * e[0][0] - e[o - 1][0] * e[0][1]; ++t < o; ) n += e[t - 1][1] * e[t][0] - e[t - 1][0] * e[t][1];
|
|
423
414
|
return n >= 0;
|
|
424
415
|
}
|
|
425
416
|
function $t(e, t) {
|
|
@@ -439,20 +430,16 @@ function Bt(e, t) {
|
|
|
439
430
|
}
|
|
440
431
|
function Ut(e, t, o) {
|
|
441
432
|
var n = o[0] - e[0], r = o[1] - e[1];
|
|
442
|
-
if (n === 0 && r === 0)
|
|
443
|
-
return !0;
|
|
433
|
+
if (n === 0 && r === 0) return !0;
|
|
444
434
|
var a = t[0] - e[0], l = t[1] - e[1];
|
|
445
|
-
if (a === 0 && l === 0)
|
|
446
|
-
return !1;
|
|
435
|
+
if (a === 0 && l === 0) return !1;
|
|
447
436
|
var i = (n * a + r * l) / (a * a + l * l);
|
|
448
437
|
return i < 0 || i > 1 ? !1 : i === 0 || i === 1 ? !0 : i * a === n && i * l === r;
|
|
449
438
|
}
|
|
450
439
|
function Z(e) {
|
|
451
440
|
var t = 44, o, n = e.getInt32(36, !0), r = e.getInt32(40, !0), a = new Array(n), l = new Array(r);
|
|
452
|
-
for (o = 0; o < n; ++o, t += 4)
|
|
453
|
-
|
|
454
|
-
for (o = 0; o < r; ++o, t += 16)
|
|
455
|
-
l[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
441
|
+
for (o = 0; o < n; ++o, t += 4) a[o] = e.getInt32(t, !0);
|
|
442
|
+
for (o = 0; o < r; ++o, t += 16) l[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
456
443
|
return n === 1 ? { type: "LineString", coordinates: l } : { type: "MultiLineString", coordinates: a.map(function(i, s) {
|
|
457
444
|
return l.slice(i, a[s + 1]);
|
|
458
445
|
}) };
|
|
@@ -464,8 +451,7 @@ function ue(e, t) {
|
|
|
464
451
|
function Gt() {
|
|
465
452
|
var e = this;
|
|
466
453
|
return ++e._index, e._source.slice(12).then(function(t) {
|
|
467
|
-
if (t == null)
|
|
468
|
-
return { done: !0, value: void 0 };
|
|
454
|
+
if (t == null) return { done: !0, value: void 0 };
|
|
469
455
|
var o = C(t);
|
|
470
456
|
function n() {
|
|
471
457
|
return e._source.slice(4).then(function(a) {
|
|
@@ -504,27 +490,26 @@ var se = {
|
|
|
504
490
|
28: J
|
|
505
491
|
// MultiPointM
|
|
506
492
|
};
|
|
507
|
-
function
|
|
493
|
+
function Nt(e) {
|
|
508
494
|
return e = pe(e), e.slice(100).then(function(t) {
|
|
509
495
|
return new he(e, C(t));
|
|
510
496
|
});
|
|
511
497
|
}
|
|
512
498
|
function he(e, t) {
|
|
513
499
|
var o = t.getInt32(32, !0);
|
|
514
|
-
if (!(o in se))
|
|
515
|
-
throw new Error("unsupported shape type: " + o);
|
|
500
|
+
if (!(o in se)) throw new Error("unsupported shape type: " + o);
|
|
516
501
|
this._source = e, this._type = o, this._index = 0, this._parse = se[o], this.bbox = [t.getFloat64(36, !0), t.getFloat64(44, !0), t.getFloat64(52, !0), t.getFloat64(60, !0)];
|
|
517
502
|
}
|
|
518
503
|
var me = he.prototype;
|
|
519
504
|
me.read = Gt;
|
|
520
505
|
me.cancel = Rt;
|
|
521
|
-
function
|
|
506
|
+
function Dt() {
|
|
522
507
|
}
|
|
523
508
|
function Jt() {
|
|
524
509
|
return Promise.all([
|
|
525
510
|
this._dbf && this._dbf.cancel(),
|
|
526
511
|
this._shp.cancel()
|
|
527
|
-
]).then(
|
|
512
|
+
]).then(Dt);
|
|
528
513
|
}
|
|
529
514
|
function qt() {
|
|
530
515
|
var e = this;
|
|
@@ -545,7 +530,7 @@ function qt() {
|
|
|
545
530
|
}
|
|
546
531
|
function zt(e, t, o) {
|
|
547
532
|
return Promise.all([
|
|
548
|
-
|
|
533
|
+
Nt(e),
|
|
549
534
|
t && Tt(t, o)
|
|
550
535
|
]).then(function(n) {
|
|
551
536
|
return new ge(n[0], n[1]);
|
|
@@ -558,8 +543,8 @@ var we = ge.prototype;
|
|
|
558
543
|
we.read = qt;
|
|
559
544
|
we.cancel = Jt;
|
|
560
545
|
function Zt(e, t, o) {
|
|
561
|
-
return typeof t == "string" ? (/\.dbf$/.test(t) || (t += ".dbf"), t =
|
|
562
|
-
})), e =
|
|
546
|
+
return typeof t == "string" ? (/\.dbf$/.test(t) || (t += ".dbf"), t = D(t)) : t instanceof ArrayBuffer || t instanceof Uint8Array ? t = R(t) : t != null && (t = ie(t)), typeof e == "string" ? (/\.shp$/.test(e) || (e += ".shp"), t === void 0 && (t = D(e.substring(0, e.length - 4) + ".dbf").catch(function() {
|
|
547
|
+
})), e = D(e)) : e instanceof ArrayBuffer || e instanceof Uint8Array ? e = R(e) : e = ie(e), Promise.all([e, t]).then(function(n) {
|
|
563
548
|
var r = n[0], a = n[1], l = "windows-1252";
|
|
564
549
|
return zt(r, a, a && new TextDecoder(l));
|
|
565
550
|
});
|
|
@@ -745,12 +730,12 @@ var Yt = function(t, o, n, r) {
|
|
|
745
730
|
const on = /* @__PURE__ */ F({
|
|
746
731
|
name: "VkfEsriInputGeojson",
|
|
747
732
|
components: {
|
|
748
|
-
VkfInput:
|
|
749
|
-
VaSketch:
|
|
733
|
+
VkfInput: Ne,
|
|
734
|
+
VaSketch: We,
|
|
750
735
|
ViewerVue: mt,
|
|
751
736
|
VkAsyncTeleport: tt,
|
|
752
737
|
DocumentChecked: Ke,
|
|
753
|
-
VaGraphicsLayer:
|
|
738
|
+
VaGraphicsLayer: Qe
|
|
754
739
|
},
|
|
755
740
|
props: X,
|
|
756
741
|
emits: K,
|
|
@@ -762,7 +747,7 @@ const on = /* @__PURE__ */ F({
|
|
|
762
747
|
} = rt(), a = (u) => {
|
|
763
748
|
const d = r("el.table.emptyText", "暂无数据");
|
|
764
749
|
return !u || !u.features.length ? d : JSON.stringify(u);
|
|
765
|
-
}, l = ot(e), i =
|
|
750
|
+
}, l = ot(e), i = N(!e.view), s = k(), c = ne(() => {
|
|
766
751
|
var d;
|
|
767
752
|
const u = (d = s.value) == null ? void 0 : d.container;
|
|
768
753
|
return u == null ? void 0 : u.querySelector(".esri-sketch__panel");
|
|
@@ -773,7 +758,7 @@ const on = /* @__PURE__ */ F({
|
|
|
773
758
|
layer: d
|
|
774
759
|
}) => {
|
|
775
760
|
f.resolve(u), p.value = d;
|
|
776
|
-
}, $ = ne(() => Array.isArray(e.editTypes) ? e.editTypes.reduce((u, d) => u.concat(le[d].availableCreatureTools), []) : le[e.editTypes].availableCreatureTools), B =
|
|
761
|
+
}, $ = ne(() => Array.isArray(e.editTypes) ? e.editTypes.reduce((u, d) => u.concat(le[d].availableCreatureTools), []) : le[e.editTypes].availableCreatureTools), B = N(!1), S = k([]);
|
|
777
762
|
oe(() => e.modelValue, (u, d) => {
|
|
778
763
|
B.value || (Ae(), d != null && d.features.length || V());
|
|
779
764
|
}, {
|
|
@@ -785,7 +770,7 @@ const on = /* @__PURE__ */ F({
|
|
|
785
770
|
Fe(() => {
|
|
786
771
|
I.value = U.value;
|
|
787
772
|
});
|
|
788
|
-
const E =
|
|
773
|
+
const E = N(!1), Se = (u) => {
|
|
789
774
|
E.value = u;
|
|
790
775
|
}, Ee = async () => {
|
|
791
776
|
I.value = j.value;
|