@vunk/form 2.19.20 → 2.19.22
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/ai-provider/index.cjs +1 -0
- package/components/ai-provider/index.d.ts +7 -0
- package/components/ai-provider/index.mjs +61 -0
- package/components/ai-provider/src/ctx.d.ts +8 -0
- package/components/ai-provider/src/index.vue.d.ts +23 -0
- package/components/ai-provider/src/types.d.ts +56 -0
- package/components/ai-provider/src/use.d.ts +3 -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 +57 -57
- package/components/api-tables-select/src/index.vue.d.ts +46 -419
- package/components/button/index.cjs +1 -1
- package/components/button/index.mjs +12 -12
- package/components/button/src/ctx.d.ts +7 -2
- package/components/button/src/index.vue.d.ts +36 -14
- package/components/card-input-collection/index.cjs +1 -1
- package/components/card-input-collection/index.mjs +136 -141
- package/components/card-input-collection/src/core.vue.d.ts +18 -7
- package/components/card-input-collection/src/ctx.d.ts +7 -2
- package/components/card-input-collection/src/index.vue.d.ts +18 -7
- package/components/cascader/index.cjs +1 -1
- package/components/cascader/index.mjs +38 -39
- package/components/cascader/src/ctx.d.ts +8 -3
- package/components/cascader/src/index.vue.d.ts +19 -8
- package/components/checkbox/src/ctx.d.ts +8 -3
- package/components/checkbox/src/index.vue.d.ts +43 -21
- package/components/{cloneDeep-DE0l40hv.mjs → cloneDeep-2YeQ7w2t.mjs} +10 -10
- package/components/cloneDeep-Btpy0oPF.js +1 -0
- package/components/collapse/index.cjs +1 -1
- package/components/collapse/index.mjs +19 -22
- package/components/collapse-item/index.cjs +1 -1
- package/components/collapse-item/index.mjs +21 -21
- package/components/collapse-item/src/index.vue.d.ts +2 -2
- package/components/color-picker/index.cjs +1 -1
- package/components/color-picker/index.mjs +26 -27
- package/components/color-picker/src/ctx.d.ts +7 -2
- package/components/color-picker/src/index.vue.d.ts +17 -6
- package/components/{style.css → components.css} +1 -1
- package/components/date-picker/index.cjs +1 -1
- package/components/date-picker/index.mjs +40 -41
- package/components/date-picker/src/ctx.d.ts +8 -3
- package/components/date-picker/src/index.vue.d.ts +17 -6
- package/components/date-picker-range/index.cjs +1 -1
- package/components/date-picker-range/index.mjs +17 -17
- package/components/date-picker-range/src/ctx.d.ts +14 -9
- package/components/date-picker-range/src/index.vue.d.ts +48 -26
- package/components/dialog/index.cjs +1 -1
- package/components/dialog/index.mjs +41 -52
- package/components/dialog/src/ctx.d.ts +1 -1
- package/components/dialog/src/index.vue.d.ts +1 -1
- package/components/dialog-input-collection/index.cjs +1 -1
- package/components/dialog-input-collection/index.mjs +124 -122
- package/components/dialog-input-collection/src/ctx.d.ts +7 -2
- package/components/dialog-input-collection/src/dialog-form.vue.d.ts +1 -1
- package/components/dialog-input-collection/src/index.vue.d.ts +17 -6
- package/components/download-plus/index.cjs +1 -1
- package/components/download-plus/index.mjs +193 -202
- package/components/download-plus/src/ctx.d.ts +7 -2
- package/components/download-plus/src/index.vue.d.ts +32 -10
- package/components/editable-text/index.cjs +1 -1
- package/components/editable-text/index.mjs +72 -75
- package/components/editable-text/src/ctx.d.ts +7 -2
- package/components/editable-text/src/index.vue.d.ts +18 -7
- package/components/el-slider/index.cjs +1 -1
- package/components/el-slider/index.mjs +230 -233
- 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/slider-core.vue.d.ts +3 -3
- package/components/esri-input-geojson/index.cjs +1 -5
- package/components/esri-input-geojson/index.mjs +59 -68
- package/components/esri-input-geojson/src/append.vue.d.ts +2 -2
- package/components/esri-input-geojson/src/ctx.d.ts +9 -4
- package/components/esri-input-geojson/src/index.vue.d.ts +65 -30
- package/components/fieldset/src/index.vue.d.ts +1 -1
- package/components/form/index.cjs +1 -1
- package/components/form/index.mjs +96 -101
- package/components/form/src/ctx.d.ts +2 -2
- package/components/form/src/index.vue.d.ts +4 -4
- package/components/form/src/use.d.ts +2 -2
- package/components/form-item/index.cjs +1 -1
- package/components/form-item/index.mjs +179 -107
- package/components/form-item/src/core.vue.d.ts +7 -3
- package/components/form-item/src/ctx.d.ts +7 -1
- package/components/form-item/src/index.vue.d.ts +13 -2
- package/components/form-item/src/use.d.ts +11 -0
- package/components/form-item-renderer/index.cjs +1 -1
- package/components/form-item-renderer/index.d.ts +1 -0
- package/components/form-item-renderer/index.mjs +85 -78
- package/components/form-item-renderer/src/use.d.ts +3 -0
- package/components/forms-provider/index.cjs +1 -1
- package/components/forms-provider/index.mjs +18 -21
- package/components/index-BIo_4rr_.mjs +18620 -0
- package/components/index-Bc7UifHG.js +1 -0
- package/components/index-D0D9ABpH.js +108 -0
- package/components/{index-CeHbpfCD.mjs → index-DCNYT7Wv.mjs} +0 -1
- package/components/information-collection/index.cjs +1 -1
- package/components/information-collection/index.mjs +32 -38
- package/components/information-collection/src/ctx.d.ts +7 -2
- package/components/information-collection/src/index.vue.d.ts +17 -6
- package/components/information-tag/index.cjs +1 -1
- package/components/information-tag/index.mjs +9 -12
- package/components/information-tag/src/index.vue.d.ts +1 -1
- package/components/input/index.cjs +1 -1
- package/components/input/index.mjs +27 -27
- package/components/input/src/ctx.d.ts +9 -4
- package/components/input/src/index.vue.d.ts +35 -13
- package/components/input-array/index.cjs +1 -1
- package/components/input-array/index.mjs +71 -74
- package/components/input-array/src/ctx.d.ts +7 -2
- package/components/input-array/src/index.vue.d.ts +18 -7
- package/components/input-collection/index.cjs +1 -1
- package/components/input-collection/index.mjs +121 -126
- package/components/input-collection/src/core.vue.d.ts +17 -6
- package/components/input-collection/src/ctx.d.ts +7 -2
- package/components/input-collection/src/index.vue.d.ts +17 -6
- package/components/input-file/src/index.vue.d.ts +19 -8
- package/components/input-link/index.cjs +1 -1
- package/components/input-link/index.mjs +1 -1
- package/components/input-link/src/ctx.d.ts +7 -2
- package/components/input-link/src/index.vue.d.ts +54 -21
- package/components/input-number/index.cjs +1 -1
- package/components/input-number/index.mjs +30 -33
- package/components/input-number/src/ctx.d.ts +8 -3
- package/components/input-number/src/index.vue.d.ts +33 -11
- package/components/input-tag/index.cjs +1 -1
- package/components/input-tag/index.mjs +24 -24
- package/components/input-tag/src/ctx.d.ts +9 -4
- package/components/input-tag/src/index.vue.d.ts +33 -11
- package/components/monaco-editor/src/ctx.d.ts +8 -3
- package/components/monaco-editor/src/index.vue.d.ts +38 -16
- package/components/radio/src/ctx.d.ts +7 -2
- package/components/radio/src/index.vue.d.ts +40 -18
- package/components/radio/src/wraper.vue.d.ts +22 -11
- package/components/renderer-data/index.cjs +1 -1
- package/components/renderer-data/index.mjs +14 -17
- package/components/select/index.cjs +1 -1
- package/components/select/index.mjs +167 -131
- package/components/select/src/core.vue.d.ts +96 -69
- package/components/select/src/ctx.d.ts +9 -4
- package/components/select/src/index.vue.d.ts +53 -42
- package/components/slider/index.cjs +1 -1
- package/components/slider/index.mjs +30 -31
- package/components/slider/src/ctx.d.ts +7 -2
- package/components/slider/src/index.vue.d.ts +18 -7
- package/components/switch/src/ctx.d.ts +7 -2
- package/components/switch/src/index.vue.d.ts +18 -7
- package/components/tables-select/index.cjs +1 -1
- package/components/tables-select/index.mjs +4 -4
- package/components/tables-select/src/ctx.d.ts +68 -68
- package/components/tables-select/src/index.vue.d.ts +52 -420
- package/components/template-instances-provider/index.cjs +1 -1
- package/components/template-instances-provider/index.mjs +11 -17
- package/components/templates-default/src/index.vue.d.ts +404 -185
- package/components/templates-esri/src/index.vue.d.ts +65 -30
- package/components/templates-variant/src/index.vue.d.ts +48 -26
- package/components/time-picker/index.cjs +1 -1
- package/components/time-picker/index.mjs +38 -39
- package/components/time-picker/src/ctx.d.ts +8 -3
- package/components/time-picker/src/index.vue.d.ts +17 -6
- package/components/upload/index.cjs +1 -1
- package/components/upload/index.mjs +244 -253
- package/components/upload/src/ctx.d.ts +8 -3
- package/components/upload/src/file.vue.d.ts +3 -3
- package/components/upload/src/index.vue.d.ts +37 -15
- package/components/upload/src/wraper.vue.d.ts +19 -8
- package/components/upload-plus/index.cjs +7 -15
- package/components/upload-plus/index.mjs +1879 -1897
- package/components/upload-plus/src/ctx.d.ts +7 -2
- package/components/upload-plus/src/index.vue.d.ts +18 -7
- package/components/use-watch-C3iIa2DX.js +1 -0
- package/components/use-watch-Dp64x0si.mjs +411 -0
- package/components/van-cascader/src/ctx.d.ts +7 -2
- package/components/van-cascader/src/index.vue.d.ts +19 -8
- package/components/var-datetime-picker/src/ctx.d.ts +7 -2
- package/components/var-datetime-picker/src/index.vue.d.ts +30 -8
- package/components/vditor/src/ctx.d.ts +7 -2
- package/components/vditor/src/index.vue.d.ts +41 -19
- package/composables/element-plus/index.cjs +1 -1
- package/composables/element-plus/index.mjs +10 -10
- package/composables/form-mitt/index.mjs +1 -1
- package/composables/index.cjs +1 -1
- package/composables/index.mjs +53 -53
- package/index.css +1 -1
- package/locale/index.cjs +1 -1
- package/locale/index.mjs +8 -5
- package/locale/lang/ar.d.ts +1 -0
- package/locale/lang/en.d.ts +1 -0
- package/locale/lang/zh-cn.d.ts +1 -0
- package/package.json +9 -1
- package/shared/element-plus/ctx.d.ts +16 -16
- package/shared/types/source/index.d.ts +5 -0
- package/shared/upload/index.cjs +1 -1
- package/shared/upload/index.mjs +166 -165
- package/components/cloneDeep-DaYwfXwD.js +0 -1
- package/components/index-BBriTmQP.js +0 -1
- package/components/use-watch-Bfrz9pv_.js +0 -1
- package/components/use-watch-t49wP7jy.mjs +0 -414
|
@@ -1,5 +1 @@
|
|
|
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-BBriTmQP.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
|
-
* @terraformer/arcgis - v2.1.1 - MIT
|
|
3
|
-
* Copyright (c) 2012-2022 Environmental Systems Research Institute, Inc.
|
|
4
|
-
* Tue Aug 02 2022 14:23:48 GMT-0700 (Pacific Daylight Time)
|
|
5
|
-
*/var yt=function(t,o,n,r){var l=(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0]),i=(o[0]-t[0])*(t[1]-n[1])-(o[1]-t[1])*(t[0]-n[0]),u=(r[1]-n[1])*(o[0]-t[0])-(r[0]-n[0])*(o[1]-t[1]);if(u!==0){var c=l/u,d=i/u;if(c>=0&&c<=1&&d>=0&&d<=1)return!0}return!1},ht=function(t,o){for(var n=!1,r=-1,l=t.length,i=l-1;++r<l;i=r)(t[r][1]<=o[1]&&o[1]<t[i][1]||t[i][1]<=o[1]&&o[1]<t[r][1])&&o[0]<(t[i][0]-t[r][0])*(o[1]-t[r][1])/(t[i][1]-t[r][1])+t[r][0]&&(n=!n);return n},mt=function(t,o){for(var n=0;n<t.length;n++)if(t[n]!==o[n])return!1;return!0},se=function(t,o){for(var n=0;n<t.length-1;n++)for(var r=0;r<o.length-1;r++)if(yt(t[n],t[n+1],o[r],o[r+1]))return!0;return!1},G=function(t){return mt(t[0],t[t.length-1])||t.push(t[0]),t},D=function(t){var o=0,n=0,r=t.length,l=t[n],i;for(n;n<r-1;n++)i=t[n+1],o+=(i[0]-l[0])*(i[1]+l[1]),l=i;return o>=0},ce=function(t){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o},wt=function(t,o){var n=se(t,o),r=ht(t,o[0]);return!!(!n&&r)},gt=function(t){for(var o=[],n=[],r,l,i,u=0;u<t.length;u++){var c=G(t[u].slice(0));if(!(c.length<4))if(D(c)){var d=[c.slice().reverse()];o.push(d)}else n.push(c.slice().reverse())}for(var f=[];n.length;){i=n.pop();var v=!1;for(r=o.length-1;r>=0;r--)if(l=o[r][0],wt(l,i)){o[r].push(i),v=!0;break}v||f.push(i)}for(;f.length;){i=f.pop();var y=!1;for(r=o.length-1;r>=0;r--)if(l=o[r][0],se(l,i)){o[r].push(i),y=!0;break}y||o.push([i.reverse()])}return o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o}},_t=function(t,o){for(var n=["OBJECTID","FID"],r=0;r<n.length;r++){var l=n[r];if(l in t&&(typeof t[l]=="string"||typeof t[l]=="number"))return t[l]}throw Error("No valid id attribute found")},Ct=function e(t,o){var n={};if(t.features){n.type="FeatureCollection",n.features=[];for(var r=0;r<t.features.length;r++)n.features.push(e(t.features[r],o))}if(typeof t.x=="number"&&typeof t.y=="number"&&(n.type="Point",n.coordinates=[t.x,t.y],typeof t.z=="number"&&n.coordinates.push(t.z)),t.points&&(n.type="MultiPoint",n.coordinates=t.points.slice(0)),t.paths&&(t.paths.length===1?(n.type="LineString",n.coordinates=t.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=t.paths.slice(0))),t.rings&&(n=gt(t.rings.slice(0))),typeof t.xmin=="number"&&typeof t.ymin=="number"&&typeof t.xmax=="number"&&typeof t.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.geometry||t.attributes)&&(n.type="Feature",n.geometry=t.geometry?e(t.geometry):null,n.properties=t.attributes?ce(t.attributes):null,t.attributes))try{n.id=_t(t.attributes,o)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),t.spatialReference&&t.spatialReference.wkid&&t.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(t.spatialReference)),n},fe=function(t){var o=[],n=t.slice(0),r=G(n.shift().slice(0));if(r.length>=4){D(r)||r.reverse(),o.push(r);for(var l=0;l<n.length;l++){var i=G(n[l].slice(0));i.length>=4&&(D(i)&&i.reverse(),o.push(i))}}return o},kt=function(t){for(var o=[],n=0;n<t.length;n++)for(var r=fe(t[n]),l=r.length-1;l>=0;l--){var i=r[l].slice(0);o.push(i)}return o},Vt=function e(t,o){o=o||"OBJECTID";var n={wkid:4326},r={},l;switch(t.type){case"Point":r.x=t.coordinates[0],r.y=t.coordinates[1],t.coordinates[2]!=null&&(r.z=t.coordinates[2]),r.spatialReference=n;break;case"MultiPoint":r.points=t.coordinates.slice(0),t.coordinates[0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"LineString":r.paths=[t.coordinates.slice(0)],t.coordinates[0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"MultiLineString":r.paths=t.coordinates.slice(0),t.coordinates[0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"Polygon":r.rings=fe(t.coordinates.slice(0)),t.coordinates[0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"MultiPolygon":r.rings=kt(t.coordinates.slice(0)),t.coordinates[0][0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"Feature":t.geometry&&(r.geometry=e(t.geometry,o)),r.attributes=t.properties?ce(t.properties):{},t.id&&(r.attributes[o]=t.id);break;case"FeatureCollection":for(r=[],l=0;l<t.features.length;l++)r.push(e(t.features[l],o));break;case"GeometryCollection":for(r=[],l=0;l<t.geometries.length;l++)r.push(e(t.geometries[l],o));break}return r};const bt=a.defineComponent({name:"VkfEsriInputGeojson",components:{VkfInput:E.VkfInput,VaSketch:_.VaSketch,ViewerVue:$e,VkAsyncTeleport:be.VkAsyncTeleport,DocumentChecked:I.document_checked_default,VaGraphicsLayer:_.VaGraphicsLayer},props:q,emits:J,setup(e,{emit:t}){const o=E._VkfInputCtx.createBindProps(e,["inputSlots","readonly","modelValue"]),n=E._VkfInputCtx.createOnEmits(t,["update:modelValue"]),{tr:r}=Pe.useLocale(),l=s=>{const p=r("el.table.emptyText","暂无数据");return!s||!s.features.length?p:JSON.stringify(s)},i=Se.useComputedReadonly(e),u=a.ref(!e.view),c=a.shallowRef(),d=a.computed(()=>{var p;const s=(p=c.value)==null?void 0:p.container;return s==null?void 0:s.querySelector(".esri-sketch__panel")}),f=new Ie.Deferred,v=a.shallowRef(),y=async s=>{await s.sketch.when(),c.value=s.sketch,f.resolve(c.value.view)},h=async({view:s,layer:p})=>{f.resolve(s),v.value=p},B=a.computed(()=>Array.isArray(e.editTypes)?e.editTypes.reduce((s,p)=>s.concat(U[p].availableCreatureTools),[]):U[e.editTypes].availableCreatureTools),O=a.ref(!1),C=a.shallowRef([]);a.watch(()=>e.modelValue,(s,p)=>{O.value||(Ce(),p!=null&&p.features.length||V())},{immediate:!0});const pe=s=>{C.value=Array.isArray(s)?s:s.toArray(),e.skipSave&&H()},R=a.shallowRef(),Z=a.shallowRef(),S=a.shallowRef();a.onMounted(()=>{S.value=R.value});const k=a.ref(!1),ve=s=>{k.value=s},ye=async()=>{S.value=Z.value},he=async()=>{S.value=R.value},me=()=>{H(),w.ElMessage({message:r("vkf.esriInputGeojson.saveSuccess","保存成功"),type:"success"}),k.value=!1,e.view&&(u.value=!1)},we=()=>a.createVNode(Ne,{dialog:!i.value&&e.dialogEdit,upload:!i.value,disabled:e.disabled,onUpload:ge,onEdit:_e,onFly:()=>{!e.showMap&&!e.view&&(k.value=!0),t("appendFly"),V()}},null);async function ge(s){s.raw&&vt(s.raw).then(p=>{t("update:modelValue",p)}).then(()=>{w.ElMessage.success(r("vkf.esriInputGeojson.uploadSuccess","上传成功"))}).then(V)}function _e(){e.view?u.value=!0:k.value=!0,t("appendEdit")}function H(){O.value=!0;const s=C.value.map(p=>Ct(p));t("update:modelValue",{type:"FeatureCollection",features:s}),a.nextTick(()=>{O.value=!1})}function Ce(){const p=Vt(e.modelValue).map(b=>{const m=b.geometry;return m.rings?(m.type="polygon",b.symbol=e.viewModelActiveFillSymbol):m.paths?(m.type="polyline",b.symbol=e.viewModelActiveLineSymbol):m.x&&(m.type="point",b.symbol=e.viewModelActivePointSymbol),new Ee(b)});C.value=p}a.watch(()=>e.flying,s=>{s&&V()});async function V(){const s=await f.promise;s&&(t("update:flying",!0),await s.when(),s.goTo(C.value).finally(()=>{t("update:flying",!1)}))}return{inputBindProps:o,inputOnEmits:n,append:we,availableCreatureTools:B,sketchValue:C,handleUpdateSketchValue:pe,sketchRef:c,sketchLoad:y,shetchPanel:d,dialogShow:k,setDialogShow:ve,normalMapRef:R,dialogMapRef:Z,dialogOnOpen:ye,dialogOnClose:he,mapTo:S,doSave:me,readonly:i,layerLoad:h,sketchIf:u,fly:V,layerRef:v,getInputModelValue:l,tr:r}}}),Et={class:"vkf-form-item"},St={ref:"normalMapRef",class:"vkf-esri-input-geojson__map"},Pt={ref:"dialogMapRef",class:"vkf-esri-input-geojson-dialog__map"};function It(e,t,o,n,r,l){const i=a.resolveComponent("VkfInput"),u=a.resolveComponent("DocumentChecked"),c=a.resolveComponent("ElIcon"),d=a.resolveComponent("VkAsyncTeleport"),f=a.resolveComponent("VaSketch"),v=a.resolveComponent("VaGraphicsLayer"),y=a.resolveComponent("ViewerVue"),h=a.resolveComponent("ElDialog");return a.openBlock(),a.createElementBlock("div",Et,[a.renderSlot(e.$slots,"custom",{modelValue:e.modelValue,fly:e.fly,setDialogShow:e.setDialogShow,layer:e.layerRef,showMap:e.showMap},()=>[a.createVNode(i,a.mergeProps({readonly:!0,"model-value":e.getInputModelValue(e.modelValue)},e.inputBindProps,{"input-slots":{append:e.append}},a.toHandlers(e.inputOnEmits)),null,16,["model-value","input-slots"])]),a.createVNode(d,{to:e.mapTo},{default:a.withCtx(()=>[a.createVNode(y,{view:e.view,"view-component":e.viewComponent,"view-component-attrs":e.viewComponentAttrs},{default:a.withCtx(()=>[a.createVNode(v,{index:e.layerIndex,graphics:e.sketchValue,onLoad:e.layerLoad},{default:a.withCtx(()=>[e.readonly||!e.sketchIf?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,"view-model-active-fill-symbol":e.viewModelActiveFillSymbol,"view-model-active-line-symbol":e.viewModelActiveLineSymbol,"view-model-active-point-symbol":e.viewModelActivePointSymbol,multiple:e.multiple,"available-creature-tools":e.availableCreatureTools,"model-value":e.sketchValue,"visible-elements":e.visibleElements,"onUpdate:modelValue":e.handleUpdateSketchValue,onLoad:e.sketchLoad},{default:a.withCtx(()=>[!e.skipSave&&e.shetchPanel?(a.openBlock(),a.createBlock(d,{key:0,to:e.shetchPanel},{default:a.withCtx(()=>[a.createVNode(c,{class:"esri-sketch-ui-save esri-widget--button",onClick:e.doSave},{default:a.withCtx(()=>[a.createVNode(u)]),_:1},8,["onClick"])]),_:1},8,["to"])):a.createCommentVNode("",!0)]),_:1},8,["view-model-active-fill-symbol","view-model-active-line-symbol","view-model-active-point-symbol","multiple","available-creature-tools","model-value","visible-elements","onUpdate:modelValue","onLoad"]))]),_:1},8,["index","graphics","onLoad"])]),_:1},8,["view","view-component","view-component-attrs"])]),_:1},8,["to"]),a.withDirectives(a.createElementVNode("div",St,null,512),[[a.vShow,e.showMap]]),a.createVNode(h,{modelValue:e.dialogShow,"onUpdate:modelValue":t[0]||(t[0]=B=>e.dialogShow=B),title:e.dialogEditTitle||e.tr("vkf.esriInputGeojson.dialogEditTitle","绘制图斑"),fullscreen:e.dialogEditFullscreen,"modal-class":"vkf-esri-input-geojson-dialog","append-to-body":!0,"close-on-click-modal":!1,draggable:!0,onOpen:e.dialogOnOpen,onClose:e.dialogOnClose},{default:a.withCtx(()=>[a.createElementVNode("div",Pt,null,512)]),_:1},8,["modelValue","title","fullscreen","onOpen","onClose"])])}const de=x._export_sfc(bt,[["render",It]]),Tt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.EDIT_TYPE=j;exports.EDIT_TYPE_OPTIONS=ee;exports.EDIT_TYPE_REFLECT=U;exports.EMPTY_FEATURE_COLLECTION=te;exports.VkfEsriInputGeojson=de;exports._VkfEsriInputGeojsonCtx=Be;exports.__VkfEsriInputGeojson=Tt;exports.default=de;
|
|
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-Bc7UifHG.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"),p=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(p)]),_: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 p=i.slice(d,l[f+1]);nt(p)?u.push([p]):c.push(p)}),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],p=e[u],y=p[0],h=p[1];if(at(c,p,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`))})};var yt=function(t,o,n,r){var l=(r[0]-n[0])*(t[1]-n[1])-(r[1]-n[1])*(t[0]-n[0]),i=(o[0]-t[0])*(t[1]-n[1])-(o[1]-t[1])*(t[0]-n[0]),u=(r[1]-n[1])*(o[0]-t[0])-(r[0]-n[0])*(o[1]-t[1]);if(u!==0){var c=l/u,d=i/u;if(c>=0&&c<=1&&d>=0&&d<=1)return!0}return!1},ht=function(t,o){for(var n=!1,r=-1,l=t.length,i=l-1;++r<l;i=r)(t[r][1]<=o[1]&&o[1]<t[i][1]||t[i][1]<=o[1]&&o[1]<t[r][1])&&o[0]<(t[i][0]-t[r][0])*(o[1]-t[r][1])/(t[i][1]-t[r][1])+t[r][0]&&(n=!n);return n},mt=function(t,o){for(var n=0;n<t.length;n++)if(t[n]!==o[n])return!1;return!0},se=function(t,o){for(var n=0;n<t.length-1;n++)for(var r=0;r<o.length-1;r++)if(yt(t[n],t[n+1],o[r],o[r+1]))return!0;return!1},G=function(t){return mt(t[0],t[t.length-1])||t.push(t[0]),t},D=function(t){var o=0,n=0,r=t.length,l=t[n],i;for(n;n<r-1;n++)i=t[n+1],o+=(i[0]-l[0])*(i[1]+l[1]),l=i;return o>=0},ce=function(t){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);return o},wt=function(t,o){var n=se(t,o),r=ht(t,o[0]);return!!(!n&&r)},gt=function(t){for(var o=[],n=[],r,l,i,u=0;u<t.length;u++){var c=G(t[u].slice(0));if(!(c.length<4))if(D(c)){var d=[c.slice().reverse()];o.push(d)}else n.push(c.slice().reverse())}for(var f=[];n.length;){i=n.pop();var p=!1;for(r=o.length-1;r>=0;r--)if(l=o[r][0],wt(l,i)){o[r].push(i),p=!0;break}p||f.push(i)}for(;f.length;){i=f.pop();var y=!1;for(r=o.length-1;r>=0;r--)if(l=o[r][0],se(l,i)){o[r].push(i),y=!0;break}y||o.push([i.reverse()])}return o.length===1?{type:"Polygon",coordinates:o[0]}:{type:"MultiPolygon",coordinates:o}},_t=function(t,o){for(var n=["OBJECTID","FID"],r=0;r<n.length;r++){var l=n[r];if(l in t&&(typeof t[l]=="string"||typeof t[l]=="number"))return t[l]}throw Error("No valid id attribute found")},Ct=function e(t,o){var n={};if(t.features){n.type="FeatureCollection",n.features=[];for(var r=0;r<t.features.length;r++)n.features.push(e(t.features[r],o))}if(typeof t.x=="number"&&typeof t.y=="number"&&(n.type="Point",n.coordinates=[t.x,t.y],typeof t.z=="number"&&n.coordinates.push(t.z)),t.points&&(n.type="MultiPoint",n.coordinates=t.points.slice(0)),t.paths&&(t.paths.length===1?(n.type="LineString",n.coordinates=t.paths[0].slice(0)):(n.type="MultiLineString",n.coordinates=t.paths.slice(0))),t.rings&&(n=gt(t.rings.slice(0))),typeof t.xmin=="number"&&typeof t.ymin=="number"&&typeof t.xmax=="number"&&typeof t.ymax=="number"&&(n.type="Polygon",n.coordinates=[[[t.xmax,t.ymax],[t.xmin,t.ymax],[t.xmin,t.ymin],[t.xmax,t.ymin],[t.xmax,t.ymax]]]),(t.geometry||t.attributes)&&(n.type="Feature",n.geometry=t.geometry?e(t.geometry):null,n.properties=t.attributes?ce(t.attributes):null,t.attributes))try{n.id=_t(t.attributes,o)}catch{}return JSON.stringify(n.geometry)===JSON.stringify({})&&(n.geometry=null),t.spatialReference&&t.spatialReference.wkid&&t.spatialReference.wkid!==4326&&console.warn("Object converted in non-standard crs - "+JSON.stringify(t.spatialReference)),n},fe=function(t){var o=[],n=t.slice(0),r=G(n.shift().slice(0));if(r.length>=4){D(r)||r.reverse(),o.push(r);for(var l=0;l<n.length;l++){var i=G(n[l].slice(0));i.length>=4&&(D(i)&&i.reverse(),o.push(i))}}return o},kt=function(t){for(var o=[],n=0;n<t.length;n++)for(var r=fe(t[n]),l=r.length-1;l>=0;l--){var i=r[l].slice(0);o.push(i)}return o},Vt=function e(t,o){o=o||"OBJECTID";var n={wkid:4326},r={},l;switch(t.type){case"Point":r.x=t.coordinates[0],r.y=t.coordinates[1],t.coordinates[2]!=null&&(r.z=t.coordinates[2]),r.spatialReference=n;break;case"MultiPoint":r.points=t.coordinates.slice(0),t.coordinates[0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"LineString":r.paths=[t.coordinates.slice(0)],t.coordinates[0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"MultiLineString":r.paths=t.coordinates.slice(0),t.coordinates[0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"Polygon":r.rings=fe(t.coordinates.slice(0)),t.coordinates[0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"MultiPolygon":r.rings=kt(t.coordinates.slice(0)),t.coordinates[0][0][0][2]!=null&&(r.hasZ=!0),r.spatialReference=n;break;case"Feature":t.geometry&&(r.geometry=e(t.geometry,o)),r.attributes=t.properties?ce(t.properties):{},t.id&&(r.attributes[o]=t.id);break;case"FeatureCollection":for(r=[],l=0;l<t.features.length;l++)r.push(e(t.features[l],o));break;case"GeometryCollection":for(r=[],l=0;l<t.geometries.length;l++)r.push(e(t.geometries[l],o));break}return r};const bt=a.defineComponent({name:"VkfEsriInputGeojson",components:{VkfInput:E.VkfInput,VaSketch:_.VaSketch,ViewerVue:$e,VkAsyncTeleport:be.VkAsyncTeleport,DocumentChecked:I.document_checked_default,VaGraphicsLayer:_.VaGraphicsLayer},props:q,emits:J,setup(e,{emit:t}){const o=E._VkfInputCtx.createBindProps(e,["inputSlots","readonly","modelValue"]),n=E._VkfInputCtx.createOnEmits(t,["update:modelValue"]),{tr:r}=Pe.useLocale(),l=s=>{const v=r("el.table.emptyText","暂无数据");return!s||!s.features.length?v:JSON.stringify(s)},i=Se.useComputedReadonly(e),u=a.ref(!e.view),c=a.shallowRef(),d=a.computed(()=>c.value?.container?.querySelector(".esri-sketch__panel")),f=new Ie.Deferred,p=a.shallowRef(),y=async s=>{await s.sketch.when(),c.value=s.sketch,f.resolve(c.value.view)},h=async({view:s,layer:v})=>{f.resolve(s),p.value=v},B=a.computed(()=>Array.isArray(e.editTypes)?e.editTypes.reduce((s,v)=>s.concat(U[v].availableCreatureTools),[]):U[e.editTypes].availableCreatureTools),O=a.ref(!1),C=a.shallowRef([]);a.watch(()=>e.modelValue,(s,v)=>{O.value||(Ce(),v?.features.length||V())},{immediate:!0});const pe=s=>{C.value=Array.isArray(s)?s:s.toArray(),e.skipSave&&H()},R=a.shallowRef(),Z=a.shallowRef(),S=a.shallowRef();a.onMounted(()=>{S.value=R.value});const k=a.ref(!1),ve=s=>{k.value=s},ye=async()=>{S.value=Z.value},he=async()=>{S.value=R.value},me=()=>{H(),w.ElMessage({message:r("vkf.esriInputGeojson.saveSuccess","保存成功"),type:"success"}),k.value=!1,e.view&&(u.value=!1)},we=()=>a.createVNode(Ne,{dialog:!i.value&&e.dialogEdit,upload:!i.value,disabled:e.disabled,onUpload:ge,onEdit:_e,onFly:()=>{!e.showMap&&!e.view&&(k.value=!0),t("appendFly"),V()}},null);async function ge(s){s.raw&&vt(s.raw).then(v=>{t("update:modelValue",v)}).then(()=>{w.ElMessage.success(r("vkf.esriInputGeojson.uploadSuccess","上传成功"))}).then(V)}function _e(){e.view?u.value=!0:k.value=!0,t("appendEdit")}function H(){O.value=!0;const s=C.value.map(v=>Ct(v));t("update:modelValue",{type:"FeatureCollection",features:s}),a.nextTick(()=>{O.value=!1})}function Ce(){const v=Vt(e.modelValue).map(b=>{const m=b.geometry;return m.rings?(m.type="polygon",b.symbol=e.viewModelActiveFillSymbol):m.paths?(m.type="polyline",b.symbol=e.viewModelActiveLineSymbol):m.x&&(m.type="point",b.symbol=e.viewModelActivePointSymbol),new Ee(b)});C.value=v}a.watch(()=>e.flying,s=>{s&&V()});async function V(){const s=await f.promise;s&&(t("update:flying",!0),await s.when(),s.goTo(C.value).finally(()=>{t("update:flying",!1)}))}return{inputBindProps:o,inputOnEmits:n,append:we,availableCreatureTools:B,sketchValue:C,handleUpdateSketchValue:pe,sketchRef:c,sketchLoad:y,shetchPanel:d,dialogShow:k,setDialogShow:ve,normalMapRef:R,dialogMapRef:Z,dialogOnOpen:ye,dialogOnClose:he,mapTo:S,doSave:me,readonly:i,layerLoad:h,sketchIf:u,fly:V,layerRef:p,getInputModelValue:l,tr:r}}}),Et={class:"vkf-form-item"},St={ref:"normalMapRef",class:"vkf-esri-input-geojson__map"},Pt={ref:"dialogMapRef",class:"vkf-esri-input-geojson-dialog__map"};function It(e,t,o,n,r,l){const i=a.resolveComponent("VkfInput"),u=a.resolveComponent("DocumentChecked"),c=a.resolveComponent("ElIcon"),d=a.resolveComponent("VkAsyncTeleport"),f=a.resolveComponent("VaSketch"),p=a.resolveComponent("VaGraphicsLayer"),y=a.resolveComponent("ViewerVue"),h=a.resolveComponent("ElDialog");return a.openBlock(),a.createElementBlock("div",Et,[a.renderSlot(e.$slots,"custom",{modelValue:e.modelValue,fly:e.fly,setDialogShow:e.setDialogShow,layer:e.layerRef,showMap:e.showMap},()=>[a.createVNode(i,a.mergeProps({readonly:!0,"model-value":e.getInputModelValue(e.modelValue)},e.inputBindProps,{"input-slots":{append:e.append}},a.toHandlers(e.inputOnEmits)),null,16,["model-value","input-slots"])]),a.createVNode(d,{to:e.mapTo},{default:a.withCtx(()=>[a.createVNode(y,{view:e.view,"view-component":e.viewComponent,"view-component-attrs":e.viewComponentAttrs},{default:a.withCtx(()=>[a.createVNode(p,{index:e.layerIndex,graphics:e.sketchValue,onLoad:e.layerLoad},{default:a.withCtx(()=>[e.readonly||!e.sketchIf?a.createCommentVNode("",!0):(a.openBlock(),a.createBlock(f,{key:0,"view-model-active-fill-symbol":e.viewModelActiveFillSymbol,"view-model-active-line-symbol":e.viewModelActiveLineSymbol,"view-model-active-point-symbol":e.viewModelActivePointSymbol,multiple:e.multiple,"available-creature-tools":e.availableCreatureTools,"model-value":e.sketchValue,"visible-elements":e.visibleElements,"onUpdate:modelValue":e.handleUpdateSketchValue,onLoad:e.sketchLoad},{default:a.withCtx(()=>[!e.skipSave&&e.shetchPanel?(a.openBlock(),a.createBlock(d,{key:0,to:e.shetchPanel},{default:a.withCtx(()=>[a.createVNode(c,{class:"esri-sketch-ui-save esri-widget--button",onClick:e.doSave},{default:a.withCtx(()=>[a.createVNode(u)]),_:1},8,["onClick"])]),_:1},8,["to"])):a.createCommentVNode("",!0)]),_:1},8,["view-model-active-fill-symbol","view-model-active-line-symbol","view-model-active-point-symbol","multiple","available-creature-tools","model-value","visible-elements","onUpdate:modelValue","onLoad"]))]),_:1},8,["index","graphics","onLoad"])]),_:1},8,["view","view-component","view-component-attrs"])]),_:1},8,["to"]),a.withDirectives(a.createElementVNode("div",St,null,512),[[a.vShow,e.showMap]]),a.createVNode(h,{modelValue:e.dialogShow,"onUpdate:modelValue":t[0]||(t[0]=B=>e.dialogShow=B),title:e.dialogEditTitle||e.tr("vkf.esriInputGeojson.dialogEditTitle","绘制图斑"),fullscreen:e.dialogEditFullscreen,"modal-class":"vkf-esri-input-geojson-dialog","append-to-body":!0,"close-on-click-modal":!1,draggable:!0,onOpen:e.dialogOnOpen,onClose:e.dialogOnClose},{default:a.withCtx(()=>[a.createElementVNode("div",Pt,null,512)]),_:1},8,["modelValue","title","fullscreen","onOpen","onClose"])])}const de=x._export_sfc(bt,[["render",It]]),Tt=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"}));exports.EDIT_TYPE=j;exports.EDIT_TYPE_OPTIONS=ee;exports.EDIT_TYPE_REFLECT=U;exports.EMPTY_FEATURE_COLLECTION=te;exports.VkfEsriInputGeojson=de;exports._VkfEsriInputGeojsonCtx=Be;exports.__VkfEsriInputGeojson=Tt;exports.default=de;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as F, resolveComponent as
|
|
1
|
+
import { defineComponent as F, resolveComponent as y, openBlock as w, createBlock as _, withCtx as p, createVNode as v, 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
2
|
import { _VkfInputCtx as T, VkfInput as Ne } from "@vunk/form/components/input";
|
|
3
3
|
import { bindPropsFactory as De, onEmitsFactory as Je } from "@vunk/core/shared/utils-vue";
|
|
4
4
|
import { ElUpload as qe, ElButtonGroup as ze, ElIcon as Ze, ElButton as He, ElMessage as ae } from "element-plus";
|
|
5
|
-
import { l as xe, a as Ye, n as Xe, o as Ke } from "../index-
|
|
5
|
+
import { l as xe, a as Ye, n as Xe, o as Ke } from "../index-DCNYT7Wv.mjs";
|
|
6
6
|
import { _ as Y } from "../_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
7
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";
|
|
@@ -152,9 +152,9 @@ const it = [
|
|
|
152
152
|
}
|
|
153
153
|
});
|
|
154
154
|
function dt(e, t, o, n, r, a) {
|
|
155
|
-
const l =
|
|
155
|
+
const l = y("Upload"), i = y("ElIcon"), s = y("ElUpload"), c = y("Edit"), f = y("ElButton"), d = y("MapLocation"), m = y("ElButtonGroup");
|
|
156
156
|
return w(), _(m, null, {
|
|
157
|
-
default:
|
|
157
|
+
default: p(() => [
|
|
158
158
|
e.upload ? (w(), _(s, {
|
|
159
159
|
key: 0,
|
|
160
160
|
class: "el-button el-button--default vkf-esri-input-geojson__upload",
|
|
@@ -167,10 +167,10 @@ function dt(e, t, o, n, r, a) {
|
|
|
167
167
|
disabled: e.disabled,
|
|
168
168
|
onClick: e.uploadClick
|
|
169
169
|
}, {
|
|
170
|
-
default:
|
|
171
|
-
|
|
172
|
-
default:
|
|
173
|
-
|
|
170
|
+
default: p(() => [
|
|
171
|
+
v(i, { color: "var(--el-color-primary)" }, {
|
|
172
|
+
default: p(() => [
|
|
173
|
+
v(l)
|
|
174
174
|
]),
|
|
175
175
|
_: 1
|
|
176
176
|
})
|
|
@@ -182,23 +182,23 @@ function dt(e, t, o, n, r, a) {
|
|
|
182
182
|
disabled: e.disabled,
|
|
183
183
|
onClick: t[0] || (t[0] = (g) => e.$emit("edit"))
|
|
184
184
|
}, {
|
|
185
|
-
default:
|
|
186
|
-
|
|
187
|
-
default:
|
|
188
|
-
|
|
185
|
+
default: p(() => [
|
|
186
|
+
v(i, { color: "var(--el-color-primary)" }, {
|
|
187
|
+
default: p(() => [
|
|
188
|
+
v(c)
|
|
189
189
|
]),
|
|
190
190
|
_: 1
|
|
191
191
|
})
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
194
|
}, 8, ["disabled"])) : O("", !0),
|
|
195
|
-
|
|
195
|
+
v(f, {
|
|
196
196
|
onClick: t[1] || (t[1] = (g) => e.$emit("fly"))
|
|
197
197
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
|
|
200
|
-
default:
|
|
201
|
-
|
|
198
|
+
default: p(() => [
|
|
199
|
+
v(i, { color: "var(--el-color-primary)" }, {
|
|
200
|
+
default: p(() => [
|
|
201
|
+
v(d)
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
})
|
|
@@ -213,8 +213,8 @@ const pt = /* @__PURE__ */ Y(ct, [["render", dt]]), vt = /* @__PURE__ */ F({
|
|
|
213
213
|
__name: "default-view",
|
|
214
214
|
setup(e) {
|
|
215
215
|
return (t, o) => (w(), _(te(ce), null, {
|
|
216
|
-
default:
|
|
217
|
-
|
|
216
|
+
default: p(() => [
|
|
217
|
+
v(te(de)),
|
|
218
218
|
A(t.$slots, "default")
|
|
219
219
|
]),
|
|
220
220
|
_: 3
|
|
@@ -245,7 +245,7 @@ const pt = /* @__PURE__ */ Y(ct, [["render", dt]]), vt = /* @__PURE__ */ F({
|
|
|
245
245
|
});
|
|
246
246
|
function ht(e, t, o, n, r, a) {
|
|
247
247
|
return e.view ? A(e.$slots, "default", { key: 1 }) : (w(), _(Te(e.viewComponent), Re(fe({ key: 0 }, e.viewComponentAttrs)), {
|
|
248
|
-
default:
|
|
248
|
+
default: p(() => [
|
|
249
249
|
A(e.$slots, "default")
|
|
250
250
|
]),
|
|
251
251
|
_: 3
|
|
@@ -308,11 +308,11 @@ function Et(e) {
|
|
|
308
308
|
if (this._index + e <= this._array.length)
|
|
309
309
|
return Promise.resolve(this._array.subarray(this._index, this._index += e));
|
|
310
310
|
var n = new Uint8Array(e);
|
|
311
|
-
return n.set(this._array.subarray(this._index)), function r() {
|
|
311
|
+
return n.set(this._array.subarray(this._index)), (function r() {
|
|
312
312
|
return t._source.read().then(function(a) {
|
|
313
313
|
return a.done ? (t._array = W, t._index = 0, o > 0 ? n.subarray(0, o) : null) : o + a.value.length >= e ? (t._array = a.value, t._index = e - o, n.set(a.value.subarray(0, e - o), o), n) : (n.set(a.value, o), o += a.value.length, r());
|
|
314
314
|
});
|
|
315
|
-
}();
|
|
315
|
+
})();
|
|
316
316
|
}
|
|
317
317
|
function pe(e) {
|
|
318
318
|
return typeof e.slice == "function" ? e : new L(typeof e.read == "function" ? e : e.getReader());
|
|
@@ -399,8 +399,8 @@ function z(e) {
|
|
|
399
399
|
for (o = 0; o < n; ++o, t += 4) a[o] = e.getInt32(t, !0);
|
|
400
400
|
for (o = 0; o < r; ++o, t += 16) l[o] = [e.getFloat64(t, !0), e.getFloat64(t + 8, !0)];
|
|
401
401
|
return a.forEach(function(c, f) {
|
|
402
|
-
var
|
|
403
|
-
Lt(
|
|
402
|
+
var d = l.slice(c, a[f + 1]);
|
|
403
|
+
Lt(d) ? i.push([d]) : s.push(d);
|
|
404
404
|
}), s.forEach(function(c) {
|
|
405
405
|
i.some(function(f) {
|
|
406
406
|
if ($t(f[0], c))
|
|
@@ -421,8 +421,8 @@ function $t(e, t) {
|
|
|
421
421
|
}
|
|
422
422
|
function Bt(e, t) {
|
|
423
423
|
for (var o = t[0], n = t[1], r = -1, a = 0, l = e.length, i = l - 1; a < l; i = a++) {
|
|
424
|
-
var s = e[a], c = s[0], f = s[1],
|
|
425
|
-
if (Ut(s,
|
|
424
|
+
var s = e[a], c = s[0], f = s[1], d = e[i], m = d[0], g = d[1];
|
|
425
|
+
if (Ut(s, d, t))
|
|
426
426
|
return 0;
|
|
427
427
|
f > n != g > n && o < (m - c) * (n - f) / (g - f) + c && (r = -r);
|
|
428
428
|
}
|
|
@@ -572,11 +572,6 @@ const Ht = (e) => new Promise((t, o) => {
|
|
|
572
572
|
r && t[r] ? o(t[r](e)) : n(new Error(`Can't resolve the .${r} file`));
|
|
573
573
|
});
|
|
574
574
|
};
|
|
575
|
-
/* @preserve
|
|
576
|
-
* @terraformer/arcgis - v2.1.1 - MIT
|
|
577
|
-
* Copyright (c) 2012-2022 Environmental Systems Research Institute, Inc.
|
|
578
|
-
* Tue Aug 02 2022 14:23:48 GMT-0700 (Pacific Daylight Time)
|
|
579
|
-
*/
|
|
580
575
|
var Yt = function(t, o, n, r) {
|
|
581
576
|
var a = (r[0] - n[0]) * (t[1] - n[1]) - (r[1] - n[1]) * (t[0] - n[0]), l = (o[0] - t[0]) * (t[1] - n[1]) - (o[1] - t[1]) * (t[0] - n[0]), i = (r[1] - n[1]) * (o[0] - t[0]) - (r[0] - n[0]) * (o[1] - t[1]);
|
|
582
577
|
if (i !== 0) {
|
|
@@ -627,13 +622,13 @@ var Yt = function(t, o, n, r) {
|
|
|
627
622
|
}
|
|
628
623
|
for (var f = []; n.length; ) {
|
|
629
624
|
l = n.pop();
|
|
630
|
-
var
|
|
625
|
+
var d = !1;
|
|
631
626
|
for (r = o.length - 1; r >= 0; r--)
|
|
632
627
|
if (a = o[r][0], Qt(a, l)) {
|
|
633
|
-
o[r].push(l),
|
|
628
|
+
o[r].push(l), d = !0;
|
|
634
629
|
break;
|
|
635
630
|
}
|
|
636
|
-
|
|
631
|
+
d || f.push(l);
|
|
637
632
|
}
|
|
638
633
|
for (; f.length; ) {
|
|
639
634
|
l = f.pop();
|
|
@@ -745,22 +740,18 @@ const on = /* @__PURE__ */ F({
|
|
|
745
740
|
const o = T.createBindProps(e, ["inputSlots", "readonly", "modelValue"]), n = T.createOnEmits(t, ["update:modelValue"]), {
|
|
746
741
|
tr: r
|
|
747
742
|
} = rt(), a = (u) => {
|
|
748
|
-
const
|
|
749
|
-
return !u || !u.features.length ?
|
|
750
|
-
}, l = ot(e), i = N(!e.view), s = k(), c = ne(() => {
|
|
751
|
-
var d;
|
|
752
|
-
const u = (d = s.value) == null ? void 0 : d.container;
|
|
753
|
-
return u == null ? void 0 : u.querySelector(".esri-sketch__panel");
|
|
754
|
-
}), f = new at(), p = k(), m = async (u) => {
|
|
743
|
+
const h = r("el.table.emptyText", "暂无数据");
|
|
744
|
+
return !u || !u.features.length ? h : JSON.stringify(u);
|
|
745
|
+
}, l = ot(e), i = N(!e.view), s = k(), c = ne(() => s.value?.container?.querySelector(".esri-sketch__panel")), f = new at(), d = k(), m = async (u) => {
|
|
755
746
|
await u.sketch.when(), s.value = u.sketch, f.resolve(s.value.view);
|
|
756
747
|
}, g = async ({
|
|
757
748
|
view: u,
|
|
758
|
-
layer:
|
|
749
|
+
layer: h
|
|
759
750
|
}) => {
|
|
760
|
-
f.resolve(u),
|
|
761
|
-
}, $ = ne(() => Array.isArray(e.editTypes) ? e.editTypes.reduce((u,
|
|
762
|
-
oe(() => e.modelValue, (u,
|
|
763
|
-
B.value || (Ae(),
|
|
751
|
+
f.resolve(u), d.value = h;
|
|
752
|
+
}, $ = ne(() => Array.isArray(e.editTypes) ? e.editTypes.reduce((u, h) => u.concat(le[h].availableCreatureTools), []) : le[e.editTypes].availableCreatureTools), B = N(!1), S = k([]);
|
|
753
|
+
oe(() => e.modelValue, (u, h) => {
|
|
754
|
+
B.value || (Ae(), h?.features.length || V());
|
|
764
755
|
}, {
|
|
765
756
|
immediate: !0
|
|
766
757
|
});
|
|
@@ -781,7 +772,7 @@ const on = /* @__PURE__ */ F({
|
|
|
781
772
|
message: r("vkf.esriInputGeojson.saveSuccess", "保存成功"),
|
|
782
773
|
type: "success"
|
|
783
774
|
}), E.value = !1, e.view && (i.value = !1);
|
|
784
|
-
}, Ie = () =>
|
|
775
|
+
}, Ie = () => v(pt, {
|
|
785
776
|
dialog: !l.value && e.dialogEdit,
|
|
786
777
|
upload: !l.value,
|
|
787
778
|
disabled: e.disabled,
|
|
@@ -792,8 +783,8 @@ const on = /* @__PURE__ */ F({
|
|
|
792
783
|
}
|
|
793
784
|
}, null);
|
|
794
785
|
async function Me(u) {
|
|
795
|
-
u.raw && xt(u.raw).then((
|
|
796
|
-
t("update:modelValue",
|
|
786
|
+
u.raw && xt(u.raw).then((h) => {
|
|
787
|
+
t("update:modelValue", h);
|
|
797
788
|
}).then(() => {
|
|
798
789
|
ae.success(r("vkf.esriInputGeojson.uploadSuccess", "上传成功"));
|
|
799
790
|
}).then(V);
|
|
@@ -803,7 +794,7 @@ const on = /* @__PURE__ */ F({
|
|
|
803
794
|
}
|
|
804
795
|
function ee() {
|
|
805
796
|
B.value = !0;
|
|
806
|
-
const u = S.value.map((
|
|
797
|
+
const u = S.value.map((h) => en(h));
|
|
807
798
|
t("update:modelValue", {
|
|
808
799
|
type: "FeatureCollection",
|
|
809
800
|
features: u
|
|
@@ -812,11 +803,11 @@ const on = /* @__PURE__ */ F({
|
|
|
812
803
|
});
|
|
813
804
|
}
|
|
814
805
|
function Ae() {
|
|
815
|
-
const
|
|
806
|
+
const h = nn(e.modelValue).map((P) => {
|
|
816
807
|
const b = P.geometry;
|
|
817
808
|
return b.rings ? (b.type = "polygon", P.symbol = e.viewModelActiveFillSymbol) : b.paths ? (b.type = "polyline", P.symbol = e.viewModelActiveLineSymbol) : b.x && (b.type = "point", P.symbol = e.viewModelActivePointSymbol), new nt(P);
|
|
818
809
|
});
|
|
819
|
-
S.value =
|
|
810
|
+
S.value = h;
|
|
820
811
|
}
|
|
821
812
|
oe(() => e.flying, (u) => {
|
|
822
813
|
u && V();
|
|
@@ -849,7 +840,7 @@ const on = /* @__PURE__ */ F({
|
|
|
849
840
|
layerLoad: g,
|
|
850
841
|
sketchIf: i,
|
|
851
842
|
fly: V,
|
|
852
|
-
layerRef:
|
|
843
|
+
layerRef: d,
|
|
853
844
|
getInputModelValue: a,
|
|
854
845
|
tr: r
|
|
855
846
|
};
|
|
@@ -862,7 +853,7 @@ const on = /* @__PURE__ */ F({
|
|
|
862
853
|
class: "vkf-esri-input-geojson-dialog__map"
|
|
863
854
|
};
|
|
864
855
|
function un(e, t, o, n, r, a) {
|
|
865
|
-
const l =
|
|
856
|
+
const l = y("VkfInput"), i = y("DocumentChecked"), s = y("ElIcon"), c = y("VkAsyncTeleport"), f = y("VaSketch"), d = y("VaGraphicsLayer"), m = y("ViewerVue"), g = y("ElDialog");
|
|
866
857
|
return w(), $e("div", rn, [
|
|
867
858
|
A(e.$slots, "custom", {
|
|
868
859
|
modelValue: e.modelValue,
|
|
@@ -871,7 +862,7 @@ function un(e, t, o, n, r, a) {
|
|
|
871
862
|
layer: e.layerRef,
|
|
872
863
|
showMap: e.showMap
|
|
873
864
|
}, () => [
|
|
874
|
-
|
|
865
|
+
v(l, fe({
|
|
875
866
|
readonly: !0,
|
|
876
867
|
"model-value": e.getInputModelValue(e.modelValue)
|
|
877
868
|
}, e.inputBindProps, {
|
|
@@ -880,20 +871,20 @@ function un(e, t, o, n, r, a) {
|
|
|
880
871
|
}
|
|
881
872
|
}, Be(e.inputOnEmits)), null, 16, ["model-value", "input-slots"])
|
|
882
873
|
]),
|
|
883
|
-
|
|
884
|
-
default:
|
|
885
|
-
|
|
874
|
+
v(c, { to: e.mapTo }, {
|
|
875
|
+
default: p(() => [
|
|
876
|
+
v(m, {
|
|
886
877
|
view: e.view,
|
|
887
878
|
"view-component": e.viewComponent,
|
|
888
879
|
"view-component-attrs": e.viewComponentAttrs
|
|
889
880
|
}, {
|
|
890
|
-
default:
|
|
891
|
-
|
|
881
|
+
default: p(() => [
|
|
882
|
+
v(d, {
|
|
892
883
|
index: e.layerIndex,
|
|
893
884
|
graphics: e.sketchValue,
|
|
894
885
|
onLoad: e.layerLoad
|
|
895
886
|
}, {
|
|
896
|
-
default:
|
|
887
|
+
default: p(() => [
|
|
897
888
|
e.readonly || !e.sketchIf ? O("", !0) : (w(), _(f, {
|
|
898
889
|
key: 0,
|
|
899
890
|
"view-model-active-fill-symbol": e.viewModelActiveFillSymbol,
|
|
@@ -906,18 +897,18 @@ function un(e, t, o, n, r, a) {
|
|
|
906
897
|
"onUpdate:modelValue": e.handleUpdateSketchValue,
|
|
907
898
|
onLoad: e.sketchLoad
|
|
908
899
|
}, {
|
|
909
|
-
default:
|
|
900
|
+
default: p(() => [
|
|
910
901
|
!e.skipSave && e.shetchPanel ? (w(), _(c, {
|
|
911
902
|
key: 0,
|
|
912
903
|
to: e.shetchPanel
|
|
913
904
|
}, {
|
|
914
|
-
default:
|
|
915
|
-
|
|
905
|
+
default: p(() => [
|
|
906
|
+
v(s, {
|
|
916
907
|
class: "esri-sketch-ui-save esri-widget--button",
|
|
917
908
|
onClick: e.doSave
|
|
918
909
|
}, {
|
|
919
|
-
default:
|
|
920
|
-
|
|
910
|
+
default: p(() => [
|
|
911
|
+
v(i)
|
|
921
912
|
]),
|
|
922
913
|
_: 1
|
|
923
914
|
}, 8, ["onClick"])
|
|
@@ -939,7 +930,7 @@ function un(e, t, o, n, r, a) {
|
|
|
939
930
|
Ue(re("div", an, null, 512), [
|
|
940
931
|
[Ge, e.showMap]
|
|
941
932
|
]),
|
|
942
|
-
|
|
933
|
+
v(g, {
|
|
943
934
|
modelValue: e.dialogShow,
|
|
944
935
|
"onUpdate:modelValue": t[0] || (t[0] = ($) => e.dialogShow = $),
|
|
945
936
|
title: e.dialogEditTitle || e.tr("vkf.esriInputGeojson.dialogEditTitle", "绘制图斑"),
|
|
@@ -951,7 +942,7 @@ function un(e, t, o, n, r, a) {
|
|
|
951
942
|
onOpen: e.dialogOnOpen,
|
|
952
943
|
onClose: e.dialogOnClose
|
|
953
944
|
}, {
|
|
954
|
-
default:
|
|
945
|
+
default: p(() => [
|
|
955
946
|
re("div", ln, null, 512)
|
|
956
947
|
]),
|
|
957
948
|
_: 1
|
|
@@ -114,9 +114,9 @@ declare const __VLS_export: import("vue").DefineComponent<import("vue").ExtractP
|
|
|
114
114
|
};
|
|
115
115
|
}) & import("vue").ObjectPlugin & {
|
|
116
116
|
setPropsDefaults: (defaults: {
|
|
117
|
-
readonly size?: "" | "
|
|
117
|
+
readonly size?: "" | "small" | "default" | "large" | (() => "" | "small" | "default" | "large") | undefined;
|
|
118
118
|
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
119
|
-
readonly type?: "" | "default" | "primary" | "success" | "warning" | "info" | "danger" |
|
|
119
|
+
readonly type?: "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger" | (() => "" | "text" | "default" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
|
|
120
120
|
readonly icon?: string | import("vue").FunctionalComponent<any, {}, any, {}> | {
|
|
121
121
|
new (...args: any[]): any;
|
|
122
122
|
__isFragment?: never;
|
|
@@ -90,6 +90,8 @@ export declare const props: {
|
|
|
90
90
|
default: undefined;
|
|
91
91
|
};
|
|
92
92
|
required: import("element-plus/es/utils/index.mjs").EpPropFinalized<BooleanConstructor, unknown, unknown, undefined, boolean>;
|
|
93
|
+
error: StringConstructor;
|
|
94
|
+
prop: null;
|
|
93
95
|
labelPosition: {
|
|
94
96
|
type: PropType<"left" | "right" | "top" | "start" | "end">;
|
|
95
97
|
default: undefined;
|
|
@@ -123,12 +125,16 @@ export declare const props: {
|
|
|
123
125
|
type: BooleanConstructor;
|
|
124
126
|
default: boolean;
|
|
125
127
|
};
|
|
126
|
-
prop: null;
|
|
127
128
|
defaultModelValue: null;
|
|
128
129
|
labelTipProps: {
|
|
129
130
|
type: PropType<import("element-plus").UseTooltipProps>;
|
|
130
131
|
default: () => {};
|
|
131
132
|
};
|
|
133
|
+
ai: {
|
|
134
|
+
type: PropType<import("../../ai-provider").AiConfig>;
|
|
135
|
+
default: undefined;
|
|
136
|
+
};
|
|
137
|
+
aiOutput: null;
|
|
132
138
|
label: StringConstructor;
|
|
133
139
|
labelWidth: {
|
|
134
140
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>>;
|
|
@@ -142,7 +148,6 @@ export declare const props: {
|
|
|
142
148
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
143
149
|
__epPropKey: true;
|
|
144
150
|
};
|
|
145
|
-
error: StringConstructor;
|
|
146
151
|
validateStatus: {
|
|
147
152
|
readonly type: PropType<import("element-plus/es/utils/index.mjs").EpPropMergeType<StringConstructor, "" | "success" | "error" | "validating", unknown>>;
|
|
148
153
|
readonly required: false;
|
|
@@ -222,7 +227,7 @@ export declare const props: {
|
|
|
222
227
|
};
|
|
223
228
|
autofocus: BooleanConstructor;
|
|
224
229
|
};
|
|
225
|
-
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"modelModifiers", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", 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<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"wordLimitPosition", 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<"autofocus", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"countGraphemes", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", 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<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"type", keyof T2> | Extract<"required", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"prop", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", 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<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"name", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
230
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>)[]>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"id", keyof T2>, KE> | Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"ariaLabel", keyof T2>, KE> | Exclude<Extract<"size", keyof T2>, KE> | Exclude<Extract<"labelPosition", 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<"formItemTip", keyof T2>, KE> | Exclude<Extract<"formItemTipClass", keyof T2>, KE> | Exclude<Extract<"labelTip", keyof T2>, KE> | Exclude<Extract<"information", keyof T2>, KE> | Exclude<Extract<"defaultModelValue", keyof T2>, KE> | Exclude<Extract<"labelTipProps", keyof T2>, KE> | Exclude<Extract<"ai", keyof T2>, KE> | Exclude<Extract<"aiOutput", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"rules", 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<"disabled", keyof T2>, KE> | Exclude<Extract<"modelValue", keyof T2>, KE> | Exclude<Extract<"modelModifiers", keyof T2>, KE> | Exclude<Extract<"maxlength", keyof T2>, KE> | Exclude<Extract<"minlength", 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<"clearIcon", keyof T2>, KE> | Exclude<Extract<"showPassword", keyof T2>, KE> | Exclude<Extract<"showWordLimit", keyof T2>, KE> | Exclude<Extract<"wordLimitPosition", 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<"autofocus", keyof T2>, KE> | Exclude<Extract<"rows", keyof T2>, KE> | Exclude<Extract<"inputmode", keyof T2>, KE> | Exclude<Extract<"countGraphemes", keyof T2>, KE> | Exclude<Extract<"inputSlots", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"viewModelActiveFillSymbol", keyof T2>, KE> | Exclude<Extract<"visibleElements", keyof T2>, KE> | Exclude<Extract<"view", keyof T2>, KE> | Exclude<Extract<"viewComponent", keyof T2>, KE> | Exclude<Extract<"viewComponentAttrs", keyof T2>, KE> | Exclude<Extract<"editTypes", keyof T2>, KE> | Exclude<Extract<"viewModelActiveLineSymbol", keyof T2>, KE> | Exclude<Extract<"viewModelActivePointSymbol", keyof T2>, KE> | Exclude<Extract<"skipSave", 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<"flying", keyof T2>, KE> | Exclude<Extract<"layerIndex", keyof T2>, KE> : Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: { [k in Extract<"name", keyof T2> | Extract<"type", keyof T2> | Extract<"id", keyof T2> | Extract<"required", keyof T2> | Extract<"error", keyof T2> | Extract<"prop", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"size", keyof T2> | Extract<"labelPosition", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"formItemTip", keyof T2> | Extract<"formItemTipClass", keyof T2> | Extract<"labelTip", keyof T2> | Extract<"information", keyof T2> | Extract<"defaultModelValue", keyof T2> | Extract<"labelTipProps", keyof T2> | Extract<"ai", keyof T2> | Extract<"aiOutput", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"rules", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"disabled", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"modelModifiers", keyof T2> | Extract<"maxlength", keyof T2> | Extract<"minlength", 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<"clearIcon", keyof T2> | Extract<"showPassword", keyof T2> | Extract<"showWordLimit", keyof T2> | Extract<"wordLimitPosition", 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<"autofocus", keyof T2> | Extract<"rows", keyof T2> | Extract<"inputmode", keyof T2> | Extract<"countGraphemes", keyof T2> | Extract<"inputSlots", keyof T2> | Extract<"multiple", keyof T2> | Extract<"viewModelActiveFillSymbol", keyof T2> | Extract<"visibleElements", keyof T2> | Extract<"view", keyof T2> | Extract<"viewComponent", keyof T2> | Extract<"viewComponentAttrs", keyof T2> | Extract<"editTypes", keyof T2> | Extract<"viewModelActiveLineSymbol", keyof T2> | Extract<"viewModelActivePointSymbol", keyof T2> | Extract<"skipSave", keyof T2> | Extract<"showMap", keyof T2> | Extract<"dialogEdit", keyof T2> | Extract<"dialogEditFullscreen", keyof T2> | Extract<"dialogEditTitle", keyof T2> | Extract<"flying", keyof T2> | Extract<"layerIndex", keyof T2>]: T2[k]; }[P]; }>;
|
|
226
231
|
export declare const emits: {
|
|
227
232
|
'update:modelValue': (e: FeatureCollection) => FeatureCollection<Geometry, import("geojson").GeoJsonProperties>;
|
|
228
233
|
'update:flying': null;
|
|
@@ -243,7 +248,7 @@ export declare const emits: {
|
|
|
243
248
|
compositionupdate: (evt: CompositionEvent) => boolean;
|
|
244
249
|
compositionend: (evt: CompositionEvent) => boolean;
|
|
245
250
|
};
|
|
246
|
-
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("
|
|
251
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("input" | "clear" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit")[]>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"input", KE> | Exclude<"clear", KE> | Exclude<"focus", KE> | Exclude<"blur", KE> | Exclude<"update:modelValue", KE> | Exclude<"change", KE> | Exclude<"mouseleave", KE> | Exclude<"mouseenter", KE> | Exclude<"keydown", KE> | Exclude<"compositionstart", KE> | Exclude<"compositionupdate", KE> | Exclude<"compositionend", KE> | Exclude<"update:flying", KE> | Exclude<"appendFly", KE> | Exclude<"appendEdit", KE> : "input" | "clear" | "focus" | "blur" | "update:modelValue" | "change" | "mouseleave" | "mouseenter" | "keydown" | "compositionstart" | "compositionupdate" | "compositionend" | "update:flying" | "appendFly" | "appendEdit"]: {
|
|
247
252
|
'update:modelValue': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
248
253
|
'update:flying': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
249
254
|
appendFly: (...e: import("@vunk/core").RestParameters<T2>) => void;
|