@vunk/form 2.19.0 → 2.19.2
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/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/components/api-tables-select/index.cjs +1 -1
- package/components/api-tables-select/index.mjs +1 -1
- 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.cjs +1 -1
- package/components/button/index.mjs +2 -3
- 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 +9 -9
- 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.cjs +1 -1
- package/components/checkbox/index.mjs +4 -4
- package/components/checkbox/src/ctx.d.ts +19 -19
- package/components/checkbox/src/index.vue.d.ts +128 -127
- package/components/cloneDeep-DE0l40hv.mjs +486 -0
- package/components/cloneDeep-DaYwfXwD.js +1 -0
- 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/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +1 -1
- 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/debounce-CliSPkvP.js +1 -0
- package/components/debounce-DIph5ENi.mjs +85 -0
- 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.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +11 -11
- 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 +24 -25
- 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/index.cjs +1 -1
- package/components/editable-text/index.mjs +1 -1
- 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.cjs +1 -1
- package/components/el-slider/index.mjs +5 -5
- package/components/el-slider/src/button.vue.d.ts +2 -1
- package/components/el-slider/src/composables/index.cjs +1 -1
- package/components/el-slider/src/composables/index.mjs +1 -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.cjs +1 -1
- package/components/esri-input-geojson/index.mjs +42 -57
- 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.cjs +1 -1
- package/components/fieldset/index.mjs +3 -5
- package/components/fieldset/src/index.vue.d.ts +3 -2
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +1 -1
- package/components/form/src/ctx.d.ts +1 -1
- package/components/form/src/index.vue.d.ts +68 -67
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +7 -8
- 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/index-BCZuzyeO.mjs +317 -0
- package/components/index-BNPcMpOO.js +1 -0
- package/components/index-DJv1MwwH.mjs +14 -0
- 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/index.cjs +1 -1
- package/components/input/index.mjs +1 -1
- package/components/input/src/ctx.d.ts +20 -20
- package/components/input/src/index.vue.d.ts +70 -69
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +2 -2
- 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/index.cjs +1 -1
- package/components/input-collection/index.mjs +2 -2
- 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/index.cjs +1 -1
- package/components/input-link/index.mjs +2 -2
- 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/index.cjs +1 -1
- package/components/input-number/index.mjs +1 -1
- 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/index.cjs +1 -1
- package/components/input-tag/index.mjs +1 -1
- package/components/input-tag/src/ctx.d.ts +10 -10
- package/components/input-tag/src/index.vue.d.ts +48 -47
- package/components/isObject-DQpnfMRp.mjs +34 -0
- package/components/monaco-editor/index.cjs +1 -1
- package/components/monaco-editor/index.mjs +1 -1
- 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 +3 -3
- 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/index.cjs +1 -1
- package/components/select/index.mjs +1 -1
- 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/index.cjs +1 -1
- package/components/templates-default/index.mjs +1 -1
- 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.cjs +1 -1
- package/components/templates-element-plus/index.mjs +4 -4
- package/components/templates-element-plus/src/index.vue.d.ts +27 -26
- package/components/templates-esri/index.cjs +1 -1
- package/components/templates-esri/index.mjs +1 -1
- package/components/templates-esri/src/index.vue.d.ts +600 -193
- package/components/templates-layout/index.cjs +1 -1
- package/components/templates-layout/index.mjs +4 -4
- package/components/templates-layout/src/index.vue.d.ts +14 -13
- package/components/templates-variant/index.cjs +1 -1
- package/components/templates-variant/index.mjs +1 -1
- 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 +46 -46
- 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-Bfrz9pv_.js +1 -0
- package/components/use-watch-t49wP7jy.mjs +414 -0
- 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 +19 -21
- 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/index.cjs +1 -1
- package/components/vditor/index.mjs +1 -1
- 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
- package/components/cloneDeep.cjs +0 -1
- package/components/debounce.cjs +0 -1
- package/components/index2.cjs +0 -1
- package/components/use-watch.cjs +0 -1
- /package/components/{_plugin-vue_export-helper.cjs → _plugin-vue_export-helper-BHFhmbuH.js} +0 -0
- /package/components/{index.cjs → index-DSyxYMB0.js} +0 -0
- /package/components/{isObject.cjs → isObject-fAvOGw_H.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../use-watch.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),d=require("../use-watch-Bfrz9pv_.js"),s=require("element-plus");require("@vunk/shared/function");const H={modelValue:{type:[Number,Array],default:0},id:{type:String,default:void 0},min:{type:Number,default:0},max:{type:Number,default:100},step:{type:[Number,String],default:1},showInput:Boolean,showInputControls:{type:Boolean,default:!0},size:{type:String,default:""},inputSize:{type:String,default:""},showStops:Boolean,showTooltip:{type:Boolean,default:!0},formatTooltip:{type:Function,default:void 0},disabled:{type:Boolean,default:void 0},range:Boolean,vertical:Boolean,height:String,rangeStartLabel:{type:String,default:void 0},rangeEndLabel:{type:String,default:void 0},formatValueText:{type:Function,default:void 0},tooltipClass:{type:String,default:void 0},placement:{type:String,default:"top"},marks:{type:Object},validateEvent:{type:Boolean,default:!0},persistent:{type:Boolean,default:!0},ariaLabel:String},O=r=>typeof r=="number"||Array.isArray(r)&&r.every(i=>typeof i=="number"),J={[s.UPDATE_MODEL_EVENT]:O,[s.INPUT_EVENT]:O,[s.CHANGE_EVENT]:O};var ie="top",ue="bottom",de="right",pe="left",me="auto",ce=[ie,ue,de,pe],fe="start",ve="end",ye=[].concat(ce,[me]).reduce(function(r,i){return r.concat([i,i+"-"+fe,i+"-"+ve])},[]);const be={modelValue:{type:Number,default:0},vertical:Boolean,tooltipClass:String,placement:{type:String,values:ye,default:"top"}},ge={[s.UPDATE_MODEL_EVENT]:r=>typeof r=="number"},ke=["tabindex"],G=e.defineComponent({name:"ElSliderButton",__name:"button",props:be,emits:ge,setup(r,{expose:i,emit:V}){const t=r,L=V,l=s.useNamespace("slider"),E=e.computed(()=>t.placement||"top"),C=e.reactive({hovering:!1,dragging:!1,isClick:!1,startX:0,currentX:0,startY:0,currentY:0,startPosition:0,newPosition:0,oldValue:t.modelValue}),p=e.computed(()=>T.value?U.value:!1),{disabled:f,button:v,tooltip:R,showTooltip:T,persistent:U,tooltipVisible:c,wrapperStyle:M,formatValue:I,handleMouseEnter:y,handleMouseLeave:b,onButtonDown:g,onKeyDown:k,setPosition:P}=d.useSliderButton(t,C,L),{hovering:w,dragging:m}=e.toRefs(C);return i({onButtonDown:g,onKeyDown:k,setPosition:P,hovering:w,dragging:m}),(A,n)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"button",ref:v,class:e.normalizeClass([e.unref(l).e("button-wrapper"),{hover:e.unref(w),dragging:e.unref(m)}]),style:e.normalizeStyle(e.unref(M)),tabindex:e.unref(f)?void 0:0,onMouseenter:n[0]||(n[0]=(...o)=>e.unref(y)&&e.unref(y)(...o)),onMouseleave:n[1]||(n[1]=(...o)=>e.unref(b)&&e.unref(b)(...o)),onMousedown:n[2]||(n[2]=(...o)=>e.unref(g)&&e.unref(g)(...o)),onFocus:n[3]||(n[3]=(...o)=>e.unref(y)&&e.unref(y)(...o)),onBlur:n[4]||(n[4]=(...o)=>e.unref(b)&&e.unref(b)(...o)),onKeydown:n[5]||(n[5]=(...o)=>e.unref(k)&&e.unref(k)(...o))},[e.createVNode(e.unref(s.ElTooltip),{ref_key:"tooltip",ref:R,visible:e.unref(c),placement:E.value,"fallback-placements":["top","bottom","right","left"],"stop-popper-mouse-event":!1,"popper-class":A.tooltipClass,disabled:!e.unref(T),persistent:p.value},{content:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(e.unref(I)),1)]),default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(l).e("button"),{hover:e.unref(w),dragging:e.unref(m)}])},null,2)]),_:1},8,["visible","placement","popper-class","disabled","persistent"])],46,ke))}}),Se={mark:{type:[String,Object],default:void 0}},Be=e.defineComponent({name:"ElSliderMarker",props:Se,setup(r){const i=s.useNamespace("slider"),V=e.computed(()=>typeof r.mark=="string"?r.mark:r.mark.label),t=e.computed(()=>typeof r.mark=="string"?void 0:r.mark.style);return()=>e.h("div",{class:i.e("marks-text"),style:t.value},V.value)}}),Ve=["id","role","aria-label","aria-labelledby"],Ee={key:1},Q=e.defineComponent({name:"VkfSliderCore",__name:"slider-core",props:{...H,isRtl:{type:Boolean,default:!1}},emits:J,setup(r,{expose:i,emit:V}){const t=r,L=V,l=s.useNamespace("slider"),{t:E}=s.useLocale(),C=a=>typeof a=="number",p=e.reactive({firstValue:0,secondValue:0,oldValue:0,dragging:!1,sliderSize:1}),f=e.computed(()=>t.isRtl),{elFormItem:v,slider:R,firstButton:T,secondButton:U,sliderDisabled:c,minValue:M,maxValue:I,runwayStyle:y,barStyle:b,resetSize:g,emitChange:k,onSliderWrapperPrevent:P,onSliderClick:w,onSliderDown:m,onSliderMarkerDown:A,setFirstValue:n,setSecondValue:o}=d.useSlide(t,p,L,f),{stops:Z,getStopStyle:K}=d.useStops(t,p,M,I,f),{inputId:q,isLabeledByFormItem:x}=s.useFormItemInputId(t,{formItemContext:v}),j=s.useFormSize(),_=e.computed(()=>t.inputSize||j.value),W=e.computed(()=>t.showInput&&!t.range&&t.step!=="mark"),X=e.computed(()=>t.ariaLabel||E("el.slider.defaultLabel",{min:t.min,max:t.max})),ee=e.computed(()=>t.range?t.rangeStartLabel||E("el.slider.defaultRangeStartLabel"):X.value),te=e.computed(()=>t.formatValueText?t.formatValueText(S.value):`${S.value}`),ae=e.computed(()=>t.rangeEndLabel||E("el.slider.defaultRangeEndLabel")),re=e.computed(()=>t.formatValueText?t.formatValueText(h.value):`${h.value}`),le=e.computed(()=>[l.b(),l.m(j.value),l.is("vertical",t.vertical),l.is("rtl",f.value),{[l.m("with-input")]:W.value}]),D=d.useMarks(t);d.useWatch(t,p,M,I,L,v);const ne=e.computed(()=>C(t.step)?t.step:1),Y=e.computed(()=>{const a=C(t.step)?t.step:1,B=[t.min,t.max,a].map(F=>{const z=`${F}`.split(".")[1];return z?z.length:0});return Math.max.apply(null,B)}),{sliderWrapper:$}=d.useLifecycle(t,p,g),{firstValue:S,secondValue:h,sliderSize:oe}=e.toRefs(p),se=a=>{p.dragging=a};return d.useEventListener($,"touchstart",P,{passive:!1}),d.useEventListener($,"touchmove",P,{passive:!1}),e.provide(d.sliderContextKey,{...e.toRefs(t),sliderSize:oe,disabled:c,precision:Y,markList:D,emitChange:k,resetSize:g,updateDragging:se,isRtl:f}),i({onSliderClick:w}),(a,B)=>{var F,z;return e.openBlock(),e.createElementBlock("div",{id:a.range?e.unref(q):void 0,ref_key:"sliderWrapper",ref:$,class:e.normalizeClass(le.value),role:a.range?"group":void 0,"aria-label":a.range&&!e.unref(x)?X.value:void 0,"aria-labelledby":a.range&&e.unref(x)?(F=e.unref(v))==null?void 0:F.labelId:void 0},[e.createElementVNode("div",{ref_key:"slider",ref:R,class:e.normalizeClass([e.unref(l).e("runway"),{"show-input":W.value},e.unref(l).is("disabled",e.unref(c))]),style:e.normalizeStyle(e.unref(y)),onMousedown:B[0]||(B[0]=(...u)=>e.unref(m)&&e.unref(m)(...u)),onTouchstartPassive:B[1]||(B[1]=(...u)=>e.unref(m)&&e.unref(m)(...u))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("bar")),style:e.normalizeStyle(e.unref(b))},null,6),e.createVNode(G,{id:a.range?void 0:e.unref(q),ref_key:"firstButton",ref:T,"model-value":e.unref(S),vertical:a.vertical,"tooltip-class":a.tooltipClass,placement:a.placement,role:"slider","aria-label":a.range||!e.unref(x)?ee.value:void 0,"aria-labelledby":!a.range&&e.unref(x)?(z=e.unref(v))==null?void 0:z.labelId:void 0,"aria-valuemin":a.min,"aria-valuemax":a.range?e.unref(h):a.max,"aria-valuenow":e.unref(S),"aria-valuetext":te.value,"aria-orientation":a.vertical?"vertical":"horizontal","aria-disabled":e.unref(c),"onUpdate:modelValue":e.unref(n)},null,8,["id","model-value","vertical","tooltip-class","placement","aria-label","aria-labelledby","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"]),a.range?(e.openBlock(),e.createBlock(G,{key:0,ref_key:"secondButton",ref:U,"model-value":e.unref(h),vertical:a.vertical,"tooltip-class":a.tooltipClass,placement:a.placement,role:"slider","aria-label":ae.value,"aria-valuemin":e.unref(S),"aria-valuemax":a.max,"aria-valuenow":e.unref(h),"aria-valuetext":re.value,"aria-orientation":a.vertical?"vertical":"horizontal","aria-disabled":e.unref(c),"onUpdate:modelValue":e.unref(o)},null,8,["model-value","vertical","tooltip-class","placement","aria-label","aria-valuemin","aria-valuemax","aria-valuenow","aria-valuetext","aria-orientation","aria-disabled","onUpdate:modelValue"])):e.createCommentVNode("",!0),a.showStops?(e.openBlock(),e.createElementBlock("div",Ee,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(Z),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,class:e.normalizeClass(e.unref(l).e("stop")),style:e.normalizeStyle(e.unref(K)(u))},null,6))),128))])):e.createCommentVNode("",!0),e.unref(D).length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("div",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(D),(u,N)=>(e.openBlock(),e.createElementBlock("div",{key:N,style:e.normalizeStyle(e.unref(K)(u.position)),class:e.normalizeClass([e.unref(l).e("stop"),e.unref(l).e("marks-stop")])},null,6))),128))]),e.createElementVNode("div",{class:e.normalizeClass(e.unref(l).e("marks"))},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(D),(u,N)=>(e.openBlock(),e.createBlock(e.unref(Be),{key:N,mark:u.mark,style:e.normalizeStyle(e.unref(K)(u.position)),onMousedown:e.withModifiers(Ce=>e.unref(A)(u.position),["stop"])},null,8,["mark","style","onMousedown"]))),128))],2)],64)):e.createCommentVNode("",!0)],38),W.value?(e.openBlock(),e.createBlock(e.unref(s.ElInputNumber),{key:0,ref:"input","model-value":e.unref(S),class:e.normalizeClass(e.unref(l).e("input")),step:ne.value,disabled:e.unref(c),controls:a.showInputControls,min:a.min,max:a.max,precision:Y.value,size:_.value,"onUpdate:modelValue":e.unref(n),onChange:e.unref(k)},null,8,["model-value","class","step","disabled","controls","min","max","precision","size","onUpdate:modelValue","onChange"])):e.createCommentVNode("",!0)],10,Ve)}}});exports.sliderContextKey=d.sliderContextKey;exports.SliderCore=Q;exports.default=Q;exports.sliderEmits=J;exports.sliderProps=H;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as _, computed as n, reactive as ie, toRefs as Z, openBlock as i, createElementBlock as p,
|
|
2
|
-
import { c as Ee, b as Ce, d as Le, a as Ie, e as Te, u as Me, f as ne, s as Ne } from "../use-watch.
|
|
3
|
-
import {
|
|
1
|
+
import { defineComponent as _, computed as n, reactive as ie, toRefs as Z, openBlock as i, createElementBlock as p, unref as e, normalizeStyle as h, normalizeClass as m, createVNode as ue, withCtx as oe, createElementVNode as E, toDisplayString as ke, h as we, provide as Be, createBlock as q, createCommentVNode as W, Fragment as K, renderList as J, withModifiers as he } from "vue";
|
|
2
|
+
import { c as Ee, b as Ce, d as Le, a as Ie, e as Te, u as Me, f as ne, s as Ne } from "../use-watch-t49wP7jy.mjs";
|
|
3
|
+
import { CHANGE_EVENT as ze, INPUT_EVENT as Pe, UPDATE_MODEL_EVENT as de, useNamespace as ee, ElTooltip as xe, useLocale as De, useFormItemInputId as Fe, useFormSize as Ue, ElInputNumber as Re } from "element-plus";
|
|
4
4
|
import "@vunk/shared/function";
|
|
5
5
|
const $e = {
|
|
6
6
|
/**
|
|
@@ -155,8 +155,8 @@ const $e = {
|
|
|
155
155
|
ariaLabel: String
|
|
156
156
|
}, Q = (l) => typeof l == "number" || Array.isArray(l) && l.every((u) => typeof u == "number"), Ae = {
|
|
157
157
|
[de]: Q,
|
|
158
|
-
[
|
|
159
|
-
[
|
|
158
|
+
[Pe]: Q,
|
|
159
|
+
[ze]: Q
|
|
160
160
|
};
|
|
161
161
|
var We = "top", Ke = "bottom", Oe = "right", je = "left", Xe = "auto", Ye = [We, Ke, Oe, je], Ge = "start", He = "end", qe = /* @__PURE__ */ [].concat(Ye, [Xe]).reduce(function(l, u) {
|
|
162
162
|
return l.concat([u, u + "-" + Ge, u + "-" + He]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Placement } from 'element-plus';
|
|
2
|
-
declare const
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
3
3
|
readonly modelValue: {
|
|
4
4
|
readonly type: NumberConstructor;
|
|
5
5
|
readonly default: 0;
|
|
@@ -38,4 +38,5 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
38
38
|
readonly vertical: boolean;
|
|
39
39
|
readonly modelValue: number;
|
|
40
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
41
|
+
declare const _default: typeof __VLS_export;
|
|
41
42
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../use-watch.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../use-watch-Bfrz9pv_.js");exports.useLifecycle=e.useLifecycle;exports.useMarks=e.useMarks;exports.useSlide=e.useSlide;exports.useSliderButton=e.useSliderButton;exports.useStops=e.useStops;exports.useWatch=e.useWatch;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ComputedRef, Ref, SetupContext } from 'vue';
|
|
2
2
|
import type { SliderEmits, SliderInitData, SliderProps } from '../slider';
|
|
3
3
|
import type { SliderButtonInstance } from '../button';
|
|
4
|
-
export declare const useSlide: (props: SliderProps, initData: SliderInitData, emit: SetupContext<SliderEmits>[
|
|
4
|
+
export declare const useSlide: (props: SliderProps, initData: SliderInitData, emit: SetupContext<SliderEmits>["emit"], isRtl: ComputedRef<boolean>) => {
|
|
5
5
|
elFormItem: import("element-plus").FormItemContext | undefined;
|
|
6
6
|
slider: import("vue").ShallowRef<HTMLElement | undefined, HTMLElement | undefined>;
|
|
7
7
|
firstButton: Ref<SliderButtonInstance | undefined, SliderButtonInstance | undefined>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CSSProperties, ComputedRef, Ref, SetupContext } from 'vue';
|
|
2
2
|
import type { SliderButtonEmits, SliderButtonInitData, SliderButtonProps } from '../button';
|
|
3
3
|
import type { TooltipInstance } from 'element-plus';
|
|
4
|
-
export declare const useSliderButton: (props: SliderButtonProps, initData: SliderButtonInitData, emit: SetupContext<SliderButtonEmits>[
|
|
4
|
+
export declare const useSliderButton: (props: SliderButtonProps, initData: SliderButtonInitData, emit: SetupContext<SliderButtonEmits>["emit"]) => {
|
|
5
5
|
disabled: ComputedRef<boolean>;
|
|
6
6
|
button: Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
|
|
7
7
|
tooltip: Ref<TooltipInstance | undefined, TooltipInstance | undefined>;
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),E=require("@vunk/form/components/input"),W=require("@vunk/core/shared/utils-vue"),w=require("element-plus"),I=require("../index.cjs"),x=require("../_plugin-vue_export-helper.cjs"),_=require("@vuesri/core"),ke=require("@arcgis/core/views/MapView"),Ve=require("@arcgis/core/views/SceneView"),be=require("@vunk/core"),Ee=require("@arcgis/core/Graphic"),Se=require("@vunk/form/composables"),Pe=require("@vunk/form/composables/element-plus"),Ie=require("@vunk/core/shared/utils-promise");var j=(e=>(e.POINT="point",e.POLYGON="polygon",e.LINE_STRING="line_string",e))(j||{});const ee=[{label:"点",value:"point",availableCreatureTools:["point"]},{label:"线",value:"line_string",availableCreatureTools:["polyline"]},{label:"面",value:"polygon",availableCreatureTools:["polygon","circle","rectangle"]}],U=ee.reduce((e,t)=>(e[t.value]=t,e),{}),te={type:"FeatureCollection",features:[]},q={...E._VkfInputCtx.props,viewComponent:null,viewComponentAttrs:null,readonly:{type:Boolean,default:void 0},view:{type:Object},editTypes:{type:[Array,String],default:()=>"polygon"},viewModelActiveFillSymbol:{type:Object,default:()=>({type:"simple-fill",color:[0,0,0,0],style:"solid",outline:{color:[255,0,0,1],width:2,style:"dash"}})},viewModelActiveLineSymbol:null,viewModelActivePointSymbol:null,modelValue:{type:Object,default:()=>te},multiple:{type:Boolean,default:!0},skipSave:{type:Boolean,default:!1},showMap:{type:Boolean,default:!1},dialogEdit:{type:Boolean,default:!0},dialogEditFullscreen:{type:Boolean,default:!0},dialogEditTitle:{type:String,default:void 0},flying:{type:Boolean,default:!1},layerIndex:{type:Number,default:100},visibleElements:{type:Object,default:void 0}},Te=W.bindPropsFactory(q),J={...E._VkfInputCtx.emits,"update:modelValue":e=>e,"update:flying":null,appendFly:null,appendEdit:null},Me=W.onEmitsFactory(J),Be=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:Te,createOnEmits:Me,emits:J,props:q},Symbol.toStringTag,{value:"Module"})),Oe=a.defineComponent({components:{ElButton:w.ElButton,ElIcon:w.ElIcon,ElButtonGroup:w.ElButtonGroup,Upload:I.upload_default,Edit:I.edit_default,ElUpload:w.ElUpload,MapLocation:I.map_location_default},props:{disabled:Boolean,dialog:Boolean,upload:{type:Boolean,default:!0}},emits:{upload:e=>e,edit:null,fly:null},methods:{getFile(e){this.$emit("upload",e)},uploadClick(e){const t=e.target.querySelector("input[type=file]");t&&t.click()}}});function Re(e,t,o,n,r,l){const i=a.resolveComponent("Upload"),u=a.resolveComponent("ElIcon"),c=a.resolveComponent("ElUpload"),d=a.resolveComponent("Edit"),f=a.resolveComponent("ElButton"),v=a.resolveComponent("MapLocation"),y=a.resolveComponent("ElButtonGroup");return a.openBlock(),a.createBlock(y,null,{default:a.withCtx(()=>[e.upload?(a.openBlock(),a.createBlock(c,{key:0,class:"el-button el-button--default vkf-esri-input-geojson__upload",action:"",accept:"file",multiple:!1,"show-file-list":!1,"auto-upload":!1,"on-change":e.getFile,disabled:e.disabled,onClick:e.uploadClick},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(i)]),_:1})]),_:1},8,["on-change","disabled","onClick"])):a.createCommentVNode("",!0),e.dialog?(a.openBlock(),a.createBlock(f,{key:1,disabled:e.disabled,onClick:t[0]||(t[0]=h=>e.$emit("edit"))},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(d)]),_:1})]),_:1},8,["disabled"])):a.createCommentVNode("",!0),a.createVNode(f,{onClick:t[1]||(t[1]=h=>e.$emit("fly"))},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(v)]),_:1})]),_:1})]),_:1})}const Ne=x._export_sfc(Oe,[["render",Re]]),Ae=a.defineComponent({__name:"default-view",setup(e){return(t,o)=>(a.openBlock(),a.createBlock(a.unref(_.VaMapView),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.VaTdtBasemap)),a.renderSlot(t.$slots,"default")]),_:3}))}}),Fe=a.defineComponent({components:{VaTdtBasemap:_.VaTdtBasemap,VaMapView:_.VaMapView},props:{view:{type:Object,default:void 0},viewComponent:{type:[Object,Function],default:()=>Ae},viewComponentAttrs:{type:Object,default:()=>({})}},setup(e){return e.view&&(a.provide("vaView",e.view),e.view instanceof ke&&a.provide("vaMapView",e.view),e.view instanceof Ve&&a.provide("vaSceneView",e.view)),{}}});function Le(e,t,o,n,r,l){return e.view?a.renderSlot(e.$slots,"default",{key:1}):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.viewComponent),a.normalizeProps(a.mergeProps({key:0},e.viewComponentAttrs)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16))}const $e=x._export_sfc(Fe,[["render",Le]]);function Ue(){return this._array=null,Promise.resolve()}function Ge(){var e=this._array;return this._array=null,Promise.resolve(e?{done:!1,value:e}:{done:!0,value:void 0})}function T(e){return new z(e instanceof Uint8Array?e:new Uint8Array(e))}function z(e){this._array=e}z.prototype.read=Ge;z.prototype.cancel=Ue;function De(e){return fetch(e).then(function(t){return t.body&&t.body.getReader?t.body.getReader():t.arrayBuffer().then(T)})}function xe(e){return new Promise(function(t,o){var n=new XMLHttpRequest;n.responseType="arraybuffer",n.onload=function(){t(T(n.response))},n.onerror=o,n.ontimeout=o,n.open("GET",e,!0),n.send()})}function N(e){return(typeof fetch=="function"?De:xe)(e)}function X(e){return typeof e.read=="function"?e:e.getReader()}var Y=new Uint8Array(0);function qe(){return this._source.cancel()}function Je(e,t){if(!e.length)return t;if(!t.length)return e;var o=new Uint8Array(e.length+t.length);return o.set(e),o.set(t,e.length),o}function ze(){var e=this,t=e._array.subarray(e._index);return e._source.read().then(function(o){return e._array=Y,e._index=0,o.done?t.length>0?{done:!1,value:t}:{done:!0,value:void 0}:{done:!1,value:Je(t,o.value)}})}function Ye(e){if((e|=0)<0)throw new Error("invalid length");var t=this,o=this._array.length-this._index;if(this._index+e<=this._array.length)return Promise.resolve(this._array.subarray(this._index,this._index+=e));var n=new Uint8Array(e);return n.set(this._array.subarray(this._index)),function r(){return t._source.read().then(function(l){return l.done?(t._array=Y,t._index=0,o>0?n.subarray(0,o):null):o+l.value.length>=e?(t._array=l.value,t._index=e-o,n.set(l.value.subarray(0,e-o),o),n):(n.set(l.value,o),o+=l.value.length,r())})}()}function ne(e){return typeof e.slice=="function"?e:new M(typeof e.read=="function"?e:e.getReader())}function M(e){this._source=e,this._array=Y,this._index=0}M.prototype.read=ze;M.prototype.slice=Ye;M.prototype.cancel=qe;function Ze(){return this._source.cancel()}function He(e){return/^[nf]$/i.test(e)?!1:/^[yt]$/i.test(e)?!0:null}function Xe(e){return new Date(+e.substring(0,4),e.substring(4,6)-1,+e.substring(6,8))}function P(e){return!(e=e.trim())||isNaN(e=+e)?null:e}function Ke(e){return e.trim()||null}var Qe={B:P,C:Ke,D:Xe,F:P,L:He,M:P,N:P};function We(){var e=this,t=1;return e._source.slice(e._recordLength).then(function(o){return o&&o[0]!==26?{done:!1,value:e._fields.reduce(function(n,r){return n[r.name]=Qe[r.type](e._decode(o.subarray(t,t+=r.length))),n},{})}:{done:!0,value:void 0}})}function g(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function je(e,t){return e=ne(e),e.slice(32).then(function(o){var n=g(o);return e.slice(n.getUint16(8,!0)-32).then(function(r){return new oe(e,t,n,g(r))})})}function oe(e,t,o,n){this._source=e,this._decode=t.decode.bind(t),this._recordLength=o.getUint16(10,!0),this._fields=[];for(var r=0;n.getUint8(r)!==13;r+=32){for(var l=0;l<11&&n.getUint8(r+l)!==0;++l);this._fields.push({name:this._decode(new Uint8Array(n.buffer,n.byteOffset+r,l)),type:String.fromCharCode(n.getUint8(r+11)),length:n.getUint8(r+16)})}}var re=oe.prototype;re.read=We;re.cancel=Ze;function et(){return this._source.cancel()}function A(e){var t=40,o,n=e.getInt32(36,!0),r=new Array(n);for(o=0;o<n;++o,t+=16)r[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return{type:"MultiPoint",coordinates:r}}function tt(){return null}function F(e){return{type:"Point",coordinates:[e.getFloat64(4,!0),e.getFloat64(12,!0)]}}function L(e){var t=44,o,n=e.getInt32(36,!0),r=e.getInt32(40,!0),l=new Array(n),i=new Array(r),u=[],c=[];for(o=0;o<n;++o,t+=4)l[o]=e.getInt32(t,!0);for(o=0;o<r;++o,t+=16)i[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return l.forEach(function(d,f){var v=i.slice(d,l[f+1]);nt(v)?u.push([v]):c.push(v)}),c.forEach(function(d){u.some(function(f){if(ot(f[0],d))return f.push(d),!0})||u.push([d])}),u.length===1?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}function nt(e){if((o=e.length)<4)return!1;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];return n>=0}function ot(e,t){for(var o=-1,n=t.length,r;++o<n;)if(r=rt(e,t[o]))return r>0;return!1}function rt(e,t){for(var o=t[0],n=t[1],r=-1,l=0,i=e.length,u=i-1;l<i;u=l++){var c=e[l],d=c[0],f=c[1],v=e[u],y=v[0],h=v[1];if(at(c,v,t))return 0;f>n!=h>n&&o<(y-d)*(n-f)/(h-f)+d&&(r=-r)}return r}function at(e,t,o){var n=o[0]-e[0],r=o[1]-e[1];if(n===0&&r===0)return!0;var l=t[0]-e[0],i=t[1]-e[1];if(l===0&&i===0)return!1;var u=(n*l+r*i)/(l*l+i*i);return u<0||u>1?!1:u===0||u===1?!0:u*l===n&&u*i===r}function $(e){var t=44,o,n=e.getInt32(36,!0),r=e.getInt32(40,!0),l=new Array(n),i=new Array(r);for(o=0;o<n;++o,t+=4)l[o]=e.getInt32(t,!0);for(o=0;o<r;++o,t+=16)i[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return n===1?{type:"LineString",coordinates:i}:{type:"MultiLineString",coordinates:l.map(function(u,c){return i.slice(u,l[c+1])})}}function K(e,t){var o=new Uint8Array(e.length+t.length);return o.set(e,0),o.set(t,e.length),o}function lt(){var e=this;return++e._index,e._source.slice(12).then(function(t){if(t==null)return{done:!0,value:void 0};var o=g(t);function n(){return e._source.slice(4).then(function(l){return l==null?{done:!0,value:void 0}:(o=g(t=K(t.slice(4),l)),o.getInt32(0,!1)!==e._index?n():r())})}function r(){var l=o.getInt32(4,!1)*2-4,i=o.getInt32(8,!0);return l<0||i&&i!==e._type?n():e._source.slice(l).then(function(u){return{done:!1,value:i?e._parse(g(K(t.slice(8),u))):null}})}return r()})}var Q={0:tt,1:F,3:$,5:L,8:A,11:F,13:$,15:L,18:A,21:F,23:$,25:L,28:A};function it(e){return e=ne(e),e.slice(100).then(function(t){return new ae(e,g(t))})}function ae(e,t){var o=t.getInt32(32,!0);if(!(o in Q))throw new Error("unsupported shape type: "+o);this._source=e,this._type=o,this._index=0,this._parse=Q[o],this.bbox=[t.getFloat64(36,!0),t.getFloat64(44,!0),t.getFloat64(52,!0),t.getFloat64(60,!0)]}var le=ae.prototype;le.read=lt;le.cancel=et;function ut(){}function st(){return Promise.all([this._dbf&&this._dbf.cancel(),this._shp.cancel()]).then(ut)}function ct(){var e=this;return Promise.all([e._dbf?e._dbf.read():{value:{}},e._shp.read()]).then(function(t){var o=t[0],n=t[1];return n.done?n:{done:!1,value:{type:"Feature",properties:o.value,geometry:n.value}}})}function ft(e,t,o){return Promise.all([it(e),t&&je(t,o)]).then(function(n){return new ie(n[0],n[1])})}function ie(e,t){this._shp=e,this._dbf=t,this.bbox=e.bbox}var ue=ie.prototype;ue.read=ct;ue.cancel=st;function dt(e,t,o){return typeof t=="string"?(/\.dbf$/.test(t)||(t+=".dbf"),t=N(t)):t instanceof ArrayBuffer||t instanceof Uint8Array?t=T(t):t!=null&&(t=X(t)),typeof e=="string"?(/\.shp$/.test(e)||(e+=".shp"),t===void 0&&(t=N(e.substring(0,e.length-4)+".dbf").catch(function(){})),e=N(e)):e instanceof ArrayBuffer||e instanceof Uint8Array?e=T(e):e=X(e),Promise.all([e,t]).then(function(n){var r=n[0],l=n[1],i="windows-1252";return ft(r,l,l&&new TextDecoder(i))})}const pt=e=>new Promise((t,o)=>{const n=new FileReader;n.readAsArrayBuffer(e);const r={type:"FeatureCollection",features:[]};n.onload=function(){dt(this.result).then(l=>l.read().then(function i(u){u.done?(u.value&&r.features.push(u.value),t(r)):(r.features.push(u.value),l.read().then(i))})).catch(o)}}),vt=e=>{const t={shp:pt};return new Promise((o,n)=>{const r=e.name.split(".").pop();r&&t[r]?o(t[r](e)):n(new Error(`Can't resolve the .${r} file`))})};/* @preserve
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("vue"),E=require("@vunk/form/components/input"),W=require("@vunk/core/shared/utils-vue"),w=require("element-plus"),I=require("../index-DSyxYMB0.js"),x=require("../_plugin-vue_export-helper-BHFhmbuH.js"),_=require("@vuesri/core"),ke=require("@arcgis/core/views/MapView"),Ve=require("@arcgis/core/views/SceneView"),be=require("@vunk/core"),Ee=require("@arcgis/core/Graphic"),Se=require("@vunk/form/composables"),Pe=require("@vunk/form/composables/element-plus"),Ie=require("@vunk/core/shared/utils-promise");var j=(e=>(e.POINT="point",e.POLYGON="polygon",e.LINE_STRING="line_string",e))(j||{});const ee=[{label:"点",value:"point",availableCreatureTools:["point"]},{label:"线",value:"line_string",availableCreatureTools:["polyline"]},{label:"面",value:"polygon",availableCreatureTools:["polygon","circle","rectangle"]}],U=ee.reduce((e,t)=>(e[t.value]=t,e),{}),te={type:"FeatureCollection",features:[]},q={...E._VkfInputCtx.props,viewComponent:null,viewComponentAttrs:null,readonly:{type:Boolean,default:void 0},view:{type:Object},editTypes:{type:[Array,String],default:()=>"polygon"},viewModelActiveFillSymbol:{type:Object,default:()=>({type:"simple-fill",color:[0,0,0,0],style:"solid",outline:{color:[255,0,0,1],width:2,style:"dash"}})},viewModelActiveLineSymbol:null,viewModelActivePointSymbol:null,modelValue:{type:Object,default:()=>te},multiple:{type:Boolean,default:!0},skipSave:{type:Boolean,default:!1},showMap:{type:Boolean,default:!1},dialogEdit:{type:Boolean,default:!0},dialogEditFullscreen:{type:Boolean,default:!0},dialogEditTitle:{type:String,default:void 0},flying:{type:Boolean,default:!1},layerIndex:{type:Number,default:100},visibleElements:{type:Object,default:void 0}},Te=W.bindPropsFactory(q),J={...E._VkfInputCtx.emits,"update:modelValue":e=>e,"update:flying":null,appendFly:null,appendEdit:null},Me=W.onEmitsFactory(J),Be=Object.freeze(Object.defineProperty({__proto__:null,createBindProps:Te,createOnEmits:Me,emits:J,props:q},Symbol.toStringTag,{value:"Module"})),Oe=a.defineComponent({components:{ElButton:w.ElButton,ElIcon:w.ElIcon,ElButtonGroup:w.ElButtonGroup,Upload:I.upload_default,Edit:I.edit_default,ElUpload:w.ElUpload,MapLocation:I.map_location_default},props:{disabled:Boolean,dialog:Boolean,upload:{type:Boolean,default:!0}},emits:{upload:e=>e,edit:null,fly:null},methods:{getFile(e){this.$emit("upload",e)},uploadClick(e){const t=e.target.querySelector("input[type=file]");t&&t.click()}}});function Re(e,t,o,n,r,l){const i=a.resolveComponent("Upload"),u=a.resolveComponent("ElIcon"),c=a.resolveComponent("ElUpload"),d=a.resolveComponent("Edit"),f=a.resolveComponent("ElButton"),v=a.resolveComponent("MapLocation"),y=a.resolveComponent("ElButtonGroup");return a.openBlock(),a.createBlock(y,null,{default:a.withCtx(()=>[e.upload?(a.openBlock(),a.createBlock(c,{key:0,class:"el-button el-button--default vkf-esri-input-geojson__upload",action:"",accept:"file",multiple:!1,"show-file-list":!1,"auto-upload":!1,"on-change":e.getFile,disabled:e.disabled,onClick:e.uploadClick},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(i)]),_:1})]),_:1},8,["on-change","disabled","onClick"])):a.createCommentVNode("",!0),e.dialog?(a.openBlock(),a.createBlock(f,{key:1,disabled:e.disabled,onClick:t[0]||(t[0]=h=>e.$emit("edit"))},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(d)]),_:1})]),_:1},8,["disabled"])):a.createCommentVNode("",!0),a.createVNode(f,{onClick:t[1]||(t[1]=h=>e.$emit("fly"))},{default:a.withCtx(()=>[a.createVNode(u,{color:"var(--el-color-primary)"},{default:a.withCtx(()=>[a.createVNode(v)]),_:1})]),_:1})]),_:1})}const Ne=x._export_sfc(Oe,[["render",Re]]),Ae=a.defineComponent({__name:"default-view",setup(e){return(t,o)=>(a.openBlock(),a.createBlock(a.unref(_.VaMapView),null,{default:a.withCtx(()=>[a.createVNode(a.unref(_.VaTdtBasemap)),a.renderSlot(t.$slots,"default")]),_:3}))}}),Fe=a.defineComponent({components:{VaTdtBasemap:_.VaTdtBasemap,VaMapView:_.VaMapView},props:{view:{type:Object,default:void 0},viewComponent:{type:[Object,Function],default:()=>Ae},viewComponentAttrs:{type:Object,default:()=>({})}},setup(e){return e.view&&(a.provide("vaView",e.view),e.view instanceof ke&&a.provide("vaMapView",e.view),e.view instanceof Ve&&a.provide("vaSceneView",e.view)),{}}});function Le(e,t,o,n,r,l){return e.view?a.renderSlot(e.$slots,"default",{key:1}):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.viewComponent),a.normalizeProps(a.mergeProps({key:0},e.viewComponentAttrs)),{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default")]),_:3},16))}const $e=x._export_sfc(Fe,[["render",Le]]);function Ue(){return this._array=null,Promise.resolve()}function Ge(){var e=this._array;return this._array=null,Promise.resolve(e?{done:!1,value:e}:{done:!0,value:void 0})}function T(e){return new z(e instanceof Uint8Array?e:new Uint8Array(e))}function z(e){this._array=e}z.prototype.read=Ge;z.prototype.cancel=Ue;function De(e){return fetch(e).then(function(t){return t.body&&t.body.getReader?t.body.getReader():t.arrayBuffer().then(T)})}function xe(e){return new Promise(function(t,o){var n=new XMLHttpRequest;n.responseType="arraybuffer",n.onload=function(){t(T(n.response))},n.onerror=o,n.ontimeout=o,n.open("GET",e,!0),n.send()})}function N(e){return(typeof fetch=="function"?De:xe)(e)}function X(e){return typeof e.read=="function"?e:e.getReader()}var Y=new Uint8Array(0);function qe(){return this._source.cancel()}function Je(e,t){if(!e.length)return t;if(!t.length)return e;var o=new Uint8Array(e.length+t.length);return o.set(e),o.set(t,e.length),o}function ze(){var e=this,t=e._array.subarray(e._index);return e._source.read().then(function(o){return e._array=Y,e._index=0,o.done?t.length>0?{done:!1,value:t}:{done:!0,value:void 0}:{done:!1,value:Je(t,o.value)}})}function Ye(e){if((e|=0)<0)throw new Error("invalid length");var t=this,o=this._array.length-this._index;if(this._index+e<=this._array.length)return Promise.resolve(this._array.subarray(this._index,this._index+=e));var n=new Uint8Array(e);return n.set(this._array.subarray(this._index)),function r(){return t._source.read().then(function(l){return l.done?(t._array=Y,t._index=0,o>0?n.subarray(0,o):null):o+l.value.length>=e?(t._array=l.value,t._index=e-o,n.set(l.value.subarray(0,e-o),o),n):(n.set(l.value,o),o+=l.value.length,r())})}()}function ne(e){return typeof e.slice=="function"?e:new M(typeof e.read=="function"?e:e.getReader())}function M(e){this._source=e,this._array=Y,this._index=0}M.prototype.read=ze;M.prototype.slice=Ye;M.prototype.cancel=qe;function Ze(){return this._source.cancel()}function He(e){return/^[nf]$/i.test(e)?!1:/^[yt]$/i.test(e)?!0:null}function Xe(e){return new Date(+e.substring(0,4),e.substring(4,6)-1,+e.substring(6,8))}function P(e){return!(e=e.trim())||isNaN(e=+e)?null:e}function Ke(e){return e.trim()||null}var Qe={B:P,C:Ke,D:Xe,F:P,L:He,M:P,N:P};function We(){var e=this,t=1;return e._source.slice(e._recordLength).then(function(o){return o&&o[0]!==26?{done:!1,value:e._fields.reduce(function(n,r){return n[r.name]=Qe[r.type](e._decode(o.subarray(t,t+=r.length))),n},{})}:{done:!0,value:void 0}})}function g(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function je(e,t){return e=ne(e),e.slice(32).then(function(o){var n=g(o);return e.slice(n.getUint16(8,!0)-32).then(function(r){return new oe(e,t,n,g(r))})})}function oe(e,t,o,n){this._source=e,this._decode=t.decode.bind(t),this._recordLength=o.getUint16(10,!0),this._fields=[];for(var r=0;n.getUint8(r)!==13;r+=32){for(var l=0;l<11&&n.getUint8(r+l)!==0;++l);this._fields.push({name:this._decode(new Uint8Array(n.buffer,n.byteOffset+r,l)),type:String.fromCharCode(n.getUint8(r+11)),length:n.getUint8(r+16)})}}var re=oe.prototype;re.read=We;re.cancel=Ze;function et(){return this._source.cancel()}function A(e){var t=40,o,n=e.getInt32(36,!0),r=new Array(n);for(o=0;o<n;++o,t+=16)r[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return{type:"MultiPoint",coordinates:r}}function tt(){return null}function F(e){return{type:"Point",coordinates:[e.getFloat64(4,!0),e.getFloat64(12,!0)]}}function L(e){var t=44,o,n=e.getInt32(36,!0),r=e.getInt32(40,!0),l=new Array(n),i=new Array(r),u=[],c=[];for(o=0;o<n;++o,t+=4)l[o]=e.getInt32(t,!0);for(o=0;o<r;++o,t+=16)i[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return l.forEach(function(d,f){var v=i.slice(d,l[f+1]);nt(v)?u.push([v]):c.push(v)}),c.forEach(function(d){u.some(function(f){if(ot(f[0],d))return f.push(d),!0})||u.push([d])}),u.length===1?{type:"Polygon",coordinates:u[0]}:{type:"MultiPolygon",coordinates:u}}function nt(e){if((o=e.length)<4)return!1;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];return n>=0}function ot(e,t){for(var o=-1,n=t.length,r;++o<n;)if(r=rt(e,t[o]))return r>0;return!1}function rt(e,t){for(var o=t[0],n=t[1],r=-1,l=0,i=e.length,u=i-1;l<i;u=l++){var c=e[l],d=c[0],f=c[1],v=e[u],y=v[0],h=v[1];if(at(c,v,t))return 0;f>n!=h>n&&o<(y-d)*(n-f)/(h-f)+d&&(r=-r)}return r}function at(e,t,o){var n=o[0]-e[0],r=o[1]-e[1];if(n===0&&r===0)return!0;var l=t[0]-e[0],i=t[1]-e[1];if(l===0&&i===0)return!1;var u=(n*l+r*i)/(l*l+i*i);return u<0||u>1?!1:u===0||u===1?!0:u*l===n&&u*i===r}function $(e){var t=44,o,n=e.getInt32(36,!0),r=e.getInt32(40,!0),l=new Array(n),i=new Array(r);for(o=0;o<n;++o,t+=4)l[o]=e.getInt32(t,!0);for(o=0;o<r;++o,t+=16)i[o]=[e.getFloat64(t,!0),e.getFloat64(t+8,!0)];return n===1?{type:"LineString",coordinates:i}:{type:"MultiLineString",coordinates:l.map(function(u,c){return i.slice(u,l[c+1])})}}function K(e,t){var o=new Uint8Array(e.length+t.length);return o.set(e,0),o.set(t,e.length),o}function lt(){var e=this;return++e._index,e._source.slice(12).then(function(t){if(t==null)return{done:!0,value:void 0};var o=g(t);function n(){return e._source.slice(4).then(function(l){return l==null?{done:!0,value:void 0}:(o=g(t=K(t.slice(4),l)),o.getInt32(0,!1)!==e._index?n():r())})}function r(){var l=o.getInt32(4,!1)*2-4,i=o.getInt32(8,!0);return l<0||i&&i!==e._type?n():e._source.slice(l).then(function(u){return{done:!1,value:i?e._parse(g(K(t.slice(8),u))):null}})}return r()})}var Q={0:tt,1:F,3:$,5:L,8:A,11:F,13:$,15:L,18:A,21:F,23:$,25:L,28:A};function it(e){return e=ne(e),e.slice(100).then(function(t){return new ae(e,g(t))})}function ae(e,t){var o=t.getInt32(32,!0);if(!(o in Q))throw new Error("unsupported shape type: "+o);this._source=e,this._type=o,this._index=0,this._parse=Q[o],this.bbox=[t.getFloat64(36,!0),t.getFloat64(44,!0),t.getFloat64(52,!0),t.getFloat64(60,!0)]}var le=ae.prototype;le.read=lt;le.cancel=et;function ut(){}function st(){return Promise.all([this._dbf&&this._dbf.cancel(),this._shp.cancel()]).then(ut)}function ct(){var e=this;return Promise.all([e._dbf?e._dbf.read():{value:{}},e._shp.read()]).then(function(t){var o=t[0],n=t[1];return n.done?n:{done:!1,value:{type:"Feature",properties:o.value,geometry:n.value}}})}function ft(e,t,o){return Promise.all([it(e),t&&je(t,o)]).then(function(n){return new ie(n[0],n[1])})}function ie(e,t){this._shp=e,this._dbf=t,this.bbox=e.bbox}var ue=ie.prototype;ue.read=ct;ue.cancel=st;function dt(e,t,o){return typeof t=="string"?(/\.dbf$/.test(t)||(t+=".dbf"),t=N(t)):t instanceof ArrayBuffer||t instanceof Uint8Array?t=T(t):t!=null&&(t=X(t)),typeof e=="string"?(/\.shp$/.test(e)||(e+=".shp"),t===void 0&&(t=N(e.substring(0,e.length-4)+".dbf").catch(function(){})),e=N(e)):e instanceof ArrayBuffer||e instanceof Uint8Array?e=T(e):e=X(e),Promise.all([e,t]).then(function(n){var r=n[0],l=n[1],i="windows-1252";return ft(r,l,l&&new TextDecoder(i))})}const pt=e=>new Promise((t,o)=>{const n=new FileReader;n.readAsArrayBuffer(e);const r={type:"FeatureCollection",features:[]};n.onload=function(){dt(this.result).then(l=>l.read().then(function i(u){u.done?(u.value&&r.features.push(u.value),t(r)):(r.features.push(u.value),l.read().then(i))})).catch(o)}}),vt=e=>{const t={shp:pt};return new Promise((o,n)=>{const r=e.name.split(".").pop();r&&t[r]?o(t[r](e)):n(new Error(`Can't resolve the .${r} file`))})};/* @preserve
|
|
2
2
|
* @terraformer/arcgis - v2.1.1 - MIT
|
|
3
3
|
* Copyright (c) 2012-2022 Environmental Systems Research Institute, Inc.
|
|
4
4
|
* Tue Aug 02 2022 14:23:48 GMT-0700 (Pacific Daylight Time)
|
|
@@ -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 {
|
|
5
|
-
import { k as xe, e as Ye, l as Xe, n as Ke } from "../index.
|
|
6
|
-
import { _ as Y } from "../_plugin-vue_export-helper.
|
|
7
|
-
import { VaMapView as ce, VaTdtBasemap as de,
|
|
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
|
+
import { k as xe, e as Ye, l as Xe, n as Ke } from "../index-BCZuzyeO.mjs";
|
|
6
|
+
import { _ as Y } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
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;
|