@vunk/form 2.0.2 → 2.1.0

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.
Files changed (36) hide show
  1. package/components/esri-input-geojson/index.cjs +484 -2
  2. package/components/esri-input-geojson/index.mjs +483 -1
  3. package/components/esri-input-geojson/src/ctx.d.ts +1 -1
  4. package/components/esri-input-geojson/src/index.vue.d.ts +1 -1
  5. package/components/index2.cjs +0 -19
  6. package/components/index2.mjs +1 -19
  7. package/components/input-collection/index.mjs +1 -1
  8. package/components/input-number/src/ctx.d.ts +1 -1
  9. package/components/input-number/src/index.vue.d.ts +2 -2
  10. package/components/select/index.cjs +12 -0
  11. package/components/select/index.d.ts +1 -0
  12. package/components/select/index.mjs +12 -1
  13. package/components/select/src/ctx.d.ts +2 -0
  14. package/components/select/src/index.vue.d.ts +1 -1
  15. package/components/tables-select/index.cjs +225 -0
  16. package/components/tables-select/index.css +3 -0
  17. package/components/tables-select/index.d.ts +4 -0
  18. package/components/tables-select/index.mjs +219 -0
  19. package/components/tables-select/src/ctx.d.ts +338 -0
  20. package/components/tables-select/src/index.vue.d.ts +4953 -0
  21. package/components/tables-select/src/types.d.ts +1 -0
  22. package/components/upload/index.mjs +1 -1
  23. package/components/upload-plus/index.mjs +1 -1
  24. package/index.css +4 -41
  25. package/package.json +9 -9
  26. package/shared/element-plus/ctx.d.ts +1 -1
  27. package/components/geoinput-update/index.cjs +0 -406
  28. package/components/geoinput-update/index.css +0 -40
  29. package/components/geoinput-update/index.d.ts +0 -5
  30. package/components/geoinput-update/index.mjs +0 -399
  31. package/components/geoinput-update/src/append.vue.d.ts +0 -815
  32. package/components/geoinput-update/src/ctx.d.ts +0 -219
  33. package/components/geoinput-update/src/index.vue.d.ts +0 -1143
  34. package/components/geoinput-update/src/types.d.ts +0 -6
  35. package/components/index3.cjs +0 -486
  36. package/components/index3.mjs +0 -484
@@ -0,0 +1 @@
1
+ export {};
@@ -4,7 +4,7 @@ import { uploadProps, ElProgress, ElIcon, useNamespace, useLocale, ElUpload, ElL
4
4
  import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createCommentVNode, normalizeClass, createBlock, createElementVNode, withModifiers, createVNode, withCtx, toDisplayString, normalizeStyle, shallowRef, normalizeProps, guardReactiveProps, mergeProps, createSlots, renderSlot, createTextVNode } from 'vue';
5
5
  import { pickObject } from '@vunk/core/shared/utils-object';
6
6
  import { createUploadBindProps } from '@vunk/form/shared/element-plus';
7
- import { g as check_default, z as zoom_in_default, h as delete_default, i as close_default, j as circle_check_default, k as document_default, d as download_default } from '../index2.mjs';
7
+ import { f as check_default, z as zoom_in_default, g as delete_default, h as close_default, i as circle_check_default, j as document_default, d as download_default } from '../index2.mjs';
8
8
  import { NOOP } from '@vunk/core/shared/utils-function';
9
9
  import { RestFetch } from '@vunk/core/shared/utils-fetch';
10
10
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
@@ -7,7 +7,7 @@ import '@vunk/core/shared/utils-promise';
7
7
  import { isPlainObject as isPlainObject$1 } from '@vunk/core/shared/utils-object';
8
8
  import { g as getToken } from '../index.mjs';
9
9
  import { restFetch as restFetch$1 } from '@skzz/platform/shared/fetch/platform';
10
- import { s as success_filled_default, c as circle_close_filled_default, l as upload_filled_default } from '../index2.mjs';
10
+ import { s as success_filled_default, c as circle_close_filled_default, k as upload_filled_default } from '../index2.mjs';
11
11
  import { useModelComputed } from '@vunk/core/composables';
12
12
  import { ToggleHandler } from '@vunk/core/shared/utils-class';
13
13
  import { _ as _export_sfc } from '../_plugin-vue_export-helper.mjs';
package/index.css CHANGED
@@ -180,47 +180,6 @@
180
180
  display: none;
181
181
  }
182
182
 
183
- .vk-geoinput-upload-x.vk-geoinput-upload-x{
184
- padding: 0;
185
- }
186
- .vk-geoinput-upload .el-upload{
187
- padding: 8px 15px;
188
- }
189
- .geoinput-map-x{
190
- margin-bottom: 18px;
191
- height: 300px;
192
- }
193
- .geoinput-map-dialog{
194
- flex: 1;
195
- overflow: hidden;
196
- display: flex;
197
- flex-direction: column;
198
- }
199
- .vk-geoinput-edit-map{
200
- height: 100%;
201
- }
202
- /* #vkGeoInputMap .vk-geoinput-edit-map{
203
- height: 100%;
204
- } */
205
- .vk-geoinput-edit-dialog-x .el-dialog.is-fullscreen{
206
- height: 100%;
207
- }
208
- .vk-geoinput-edit-dialog-x .el-dialog{
209
- display: flex;
210
- flex-direction: column;
211
- min-height: 50%;
212
- }
213
- .vk-geoinput-edit-dialog-x .el-dialog__body{
214
- display: flex;
215
- flex-direction: column;
216
- flex: 1;
217
- overflow: hidden;
218
- padding: 0;
219
- }
220
- .vk-geoinput-edit-map{
221
- flex: 1;
222
- }
223
-
224
183
  .vkf-input-collection-options{
225
184
  width: 100%;
226
185
  display: flex;
@@ -309,6 +268,10 @@
309
268
  cursor: var(--el-readonly-cursor);
310
269
  }
311
270
 
271
+ .vkf-tables-select__popper{
272
+ display: none;
273
+ }
274
+
312
275
  .vkf-flex {
313
276
  display: flex;
314
277
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "2.0.2",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {
@@ -145,6 +145,11 @@
145
145
  "types": "./components/template-instances-provider/index.d.ts",
146
146
  "require": "./components/template-instances-provider/index.cjs"
147
147
  },
148
+ "./components/tables-select": {
149
+ "import": "./components/tables-select/index.mjs",
150
+ "types": "./components/tables-select/index.d.ts",
151
+ "require": "./components/tables-select/index.cjs"
152
+ },
148
153
  "./components/switch": {
149
154
  "import": "./components/switch/index.mjs",
150
155
  "types": "./components/switch/index.d.ts",
@@ -195,11 +200,6 @@
195
200
  "types": "./components/input/index.d.ts",
196
201
  "require": "./components/input/index.cjs"
197
202
  },
198
- "./components/geoinput-update": {
199
- "import": "./components/geoinput-update/index.mjs",
200
- "types": "./components/geoinput-update/index.d.ts",
201
- "require": "./components/geoinput-update/index.cjs"
202
- },
203
203
  "./components/form-item-renderer-template": {
204
204
  "import": "./components/form-item-renderer-template/index.mjs",
205
205
  "types": "./components/form-item-renderer-template/index.d.ts",
@@ -278,6 +278,9 @@
278
278
  "./components/templates-layout/index.css": {
279
279
  "import": "./components/templates-layout/index.css"
280
280
  },
281
+ "./components/tables-select/index.css": {
282
+ "import": "./components/tables-select/index.css"
283
+ },
281
284
  "./components/switch/index.css": {
282
285
  "import": "./components/switch/index.css"
283
286
  },
@@ -299,9 +302,6 @@
299
302
  "./components/input-collection/index.css": {
300
303
  "import": "./components/input-collection/index.css"
301
304
  },
302
- "./components/geoinput-update/index.css": {
303
- "import": "./components/geoinput-update/index.css"
304
- },
305
305
  "./components/form-item/index.css": {
306
306
  "import": "./components/form-item/index.css"
307
307
  },
@@ -5,7 +5,7 @@ export declare const createFormOnEmits: <T2 extends import("@vunk/core").AnyFunc
5
5
  export declare const createFormItemBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"prop", keyof T2> | Extract<"size", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"labelPosition", 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>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required" | "prop" | "size" | "label" | "labelWidth" | "labelPosition" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>, KE> : Extract<"required" | "prop" | "size" | "label" | "labelWidth" | "labelPosition" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: { [k in Extract<"required" | "prop" | "size" | "label" | "labelWidth" | "labelPosition" | "rules" | "error" | "validateStatus" | "for" | "inlineMessage" | "showMessage", keyof T2>]: T2[k]; }[P]; }>;
6
6
  export declare const createSwitchBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"loading", keyof T2> | Extract<"width", keyof T2> | Extract<"inlinePrompt", keyof T2> | Extract<"inactiveActionIcon", keyof T2> | Extract<"activeActionIcon", keyof T2> | Extract<"activeIcon", keyof T2> | Extract<"inactiveIcon", keyof T2> | Extract<"activeText", keyof T2> | Extract<"inactiveText", keyof T2> | Extract<"activeValue", keyof T2> | Extract<"inactiveValue", keyof T2> | Extract<"beforeChange", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>, KE> : Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>]: { [k in Extract<"size" | "disabled" | "name" | "id" | "ariaLabel" | "modelValue" | "tabindex" | "validateEvent" | "loading" | "width" | "inlinePrompt" | "inactiveActionIcon" | "activeActionIcon" | "activeIcon" | "inactiveIcon" | "activeText" | "inactiveText" | "activeValue" | "inactiveValue" | "beforeChange", keyof T2>]: T2[k]; }[P]; }>;
7
7
  export declare const createSwitchOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "input" | "change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "input" | "change", KE> : "update:modelValue" | "input" | "change"]: { [k in "update:modelValue" | "input" | "change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
8
- export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"multiple", keyof T2> | Extract<"id", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>, KE> : Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: { [k in Extract<"size" | "disabled" | "name" | "multiple" | "id" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: T2[k]; }[P]; }>;
8
+ export declare const createSelectBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"id", keyof T2> | Extract<"multiple", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"autocomplete", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"suffixIcon", keyof T2> | Extract<"loading", keyof T2> | Extract<"automaticDropdown", keyof T2> | Extract<"effect", keyof T2> | Extract<"filterable", keyof T2> | Extract<"allowCreate", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"remote", keyof T2> | Extract<"loadingText", keyof T2> | Extract<"noMatchText", keyof T2> | Extract<"noDataText", keyof T2> | Extract<"remoteMethod", keyof T2> | Extract<"filterMethod", keyof T2> | Extract<"multipleLimit", keyof T2> | Extract<"defaultFirstOption", keyof T2> | Extract<"reserveKeyword", keyof T2> | Extract<"valueKey", keyof T2> | Extract<"collapseTags", keyof T2> | Extract<"collapseTagsTooltip", keyof T2> | Extract<"teleported", keyof T2> | Extract<"persistent", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"fitInputWidth", keyof T2> | Extract<"tagType", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"size" | "disabled" | "name" | "id" | "multiple" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>, KE> : Extract<"size" | "disabled" | "name" | "id" | "multiple" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: { [k in Extract<"size" | "disabled" | "name" | "id" | "multiple" | "modelValue" | "autocomplete" | "placeholder" | "clearable" | "suffixIcon" | "loading" | "automaticDropdown" | "effect" | "filterable" | "allowCreate" | "popperClass" | "remote" | "loadingText" | "noMatchText" | "noDataText" | "remoteMethod" | "filterMethod" | "multipleLimit" | "defaultFirstOption" | "reserveKeyword" | "valueKey" | "collapseTags" | "collapseTagsTooltip" | "teleported" | "persistent" | "clearIcon" | "fitInputWidth" | "tagType", keyof T2>]: T2[k]; }[P]; }>;
9
9
  export declare const createSelectOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change", KE> : "clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change"]: { [k in "clear" | "update:modelValue" | "change" | "focus" | "blur" | "remove-tag" | "visible-change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
10
10
  export declare const createDatePickerBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"type", keyof T2> | Extract<"size", keyof T2> | Extract<"disabled", keyof T2> | Extract<"name", keyof T2> | Extract<"readonly", keyof T2> | Extract<"placement", keyof T2> | Extract<"id", keyof T2> | Extract<"ariaLabel", keyof T2> | Extract<"modelValue", keyof T2> | Extract<"placeholder", keyof T2> | Extract<"clearable", keyof T2> | Extract<"prefixIcon", keyof T2> | Extract<"tabindex", keyof T2> | Extract<"validateEvent", keyof T2> | Extract<"popperClass", keyof T2> | Extract<"clearIcon", keyof T2> | Extract<"showNow", keyof T2> | Extract<"emptyValues", keyof T2> | Extract<"valueOnClear", keyof T2> | Extract<"disabledDate", keyof T2> | Extract<"cellClassName", keyof T2> | Extract<"shortcuts", keyof T2> | Extract<"arrowControl", keyof T2> | Extract<"unlinkPanels", keyof T2> | Extract<"fallbackPlacements", keyof T2> | Extract<"disabledHours", keyof T2> | Extract<"disabledMinutes", keyof T2> | Extract<"disabledSeconds", keyof T2> | Extract<"format", keyof T2> | Extract<"valueFormat", keyof T2> | Extract<"dateFormat", keyof T2> | Extract<"timeFormat", keyof T2> | Extract<"editable", keyof T2> | Extract<"popperOptions", keyof T2> | Extract<"rangeSeparator", keyof T2> | Extract<"startPlaceholder", keyof T2> | Extract<"endPlaceholder", keyof T2> | Extract<"defaultValue", keyof T2> | Extract<"defaultTime", keyof T2> | Extract<"isRange", keyof T2>)[]>(propsArg: T2, excludes?: EX) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"type" | "size" | "disabled" | "name" | "readonly" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>, KE> : Extract<"type" | "size" | "disabled" | "name" | "readonly" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>]: { [k in Extract<"type" | "size" | "disabled" | "name" | "readonly" | "placement" | "id" | "ariaLabel" | "modelValue" | "placeholder" | "clearable" | "prefixIcon" | "tabindex" | "validateEvent" | "popperClass" | "clearIcon" | "showNow" | "emptyValues" | "valueOnClear" | "disabledDate" | "cellClassName" | "shortcuts" | "arrowControl" | "unlinkPanels" | "fallbackPlacements" | "disabledHours" | "disabledMinutes" | "disabledSeconds" | "format" | "valueFormat" | "dateFormat" | "timeFormat" | "editable" | "popperOptions" | "rangeSeparator" | "startPlaceholder" | "endPlaceholder" | "defaultValue" | "defaultTime" | "isRange", keyof T2>]: T2[k]; }[P]; }>;
11
11
  export declare const createDatePickerOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change")[]>(emit: T2, excludes?: EX) => { [P in EX extends (infer KE)[] ? Exclude<"update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change", KE> : "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change"]: { [k in "update:modelValue" | "change" | "focus" | "blur" | "keydown" | "visible-change" | "calendar-change" | "panel-change"]: (...e: import("@vunk/core").RestParameters<T2>) => void; }[P]; };
@@ -1,406 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var vue = require('vue');
6
- var input = require('@vunk/form/components/input');
7
- var _static = require('@vumap/core/shared/static');
8
- var utilsVue = require('@vunk/core/shared/utils-vue');
9
- var elementPlus = require('element-plus');
10
- var index = require('../index2.cjs');
11
- var _pluginVue_exportHelper = require('../_plugin-vue_export-helper.cjs');
12
- var core = require('@vumap/core');
13
- var tdtLayers = require('@vumap/core/components/tdt-layers');
14
- var controlDraw = require('@vumap/core/components/control-draw');
15
- var utilsPromise = require('@vunk/core/shared/utils-promise');
16
- var index$1 = require('../index3.cjs');
17
- var core$1 = require('@vunk/core');
18
- var controlDrawUi = require('@vumap/core/components/control-draw-ui');
19
-
20
- const props = {
21
- ...input._VkfInputCtx.props,
22
- showMap: {
23
- type: Boolean,
24
- default: false
25
- },
26
- dialogEdit: {
27
- type: Boolean,
28
- default: true
29
- },
30
- dialogEditFullscreen: {
31
- type: Boolean,
32
- default: true
33
- },
34
- dialogEditTitle: {
35
- type: String,
36
- default: "\u7ED8\u5236\u56FE\u6591"
37
- },
38
- modelValue: {
39
- type: Object,
40
- default: () => _static.EMPTY_FEATURE_COLLECTION
41
- },
42
- editControls: {
43
- type: Array,
44
- default: () => ["trash"]
45
- },
46
- editTypes: {
47
- type: [Array, String],
48
- default: () => "polygon"
49
- },
50
- multiple: {
51
- type: Boolean,
52
- default: true
53
- },
54
- mapTo: {
55
- type: [Object, String],
56
- default: void 0
57
- },
58
- mapCenter: {
59
- type: [Object, Array],
60
- default: [120, 30]
61
- },
62
- editStyles: {
63
- type: Array,
64
- default: () => []
65
- },
66
- slots: {
67
- type: Object,
68
- default: () => ({})
69
- },
70
- spikSave: {
71
- type: Boolean,
72
- default: false
73
- }
74
- };
75
- const createBindProps = utilsVue.bindPropsFactory(props);
76
- const emits = {
77
- ...input._VkfInputCtx.emits,
78
- "update:modelValue": (e) => e,
79
- "editUpdate": (e) => e
80
- };
81
- const createOnEmits = utilsVue.onEmitsFactory(emits);
82
-
83
- var ctx = /*#__PURE__*/Object.freeze({
84
- __proto__: null,
85
- createBindProps: createBindProps,
86
- createOnEmits: createOnEmits,
87
- emits: emits,
88
- props: props
89
- });
90
-
91
- var _sfc_main$1 = vue.defineComponent({
92
- components: {
93
- ElButton: elementPlus.ElButton,
94
- ElIcon: elementPlus.ElIcon,
95
- ElButtonGroup: elementPlus.ElButtonGroup,
96
- Upload: index.upload_default,
97
- Edit: index.edit_default,
98
- ElUpload: elementPlus.ElUpload
99
- },
100
- props: {
101
- disabled: Boolean,
102
- dialog: Boolean
103
- },
104
- emits: {
105
- upload: (e) => e,
106
- edit: null
107
- },
108
- methods: {
109
- getFile(file) {
110
- this.$emit("upload", file);
111
- }
112
- }
113
- });
114
-
115
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
116
- const _component_Upload = vue.resolveComponent("Upload");
117
- const _component_ElIcon = vue.resolveComponent("ElIcon");
118
- const _component_ElUpload = vue.resolveComponent("ElUpload");
119
- const _component_ElButton = vue.resolveComponent("ElButton");
120
- const _component_Edit = vue.resolveComponent("Edit");
121
- const _component_ElButtonGroup = vue.resolveComponent("ElButtonGroup");
122
- return vue.openBlock(), vue.createBlock(_component_ElButtonGroup, null, {
123
- default: vue.withCtx(() => [
124
- vue.createVNode(_component_ElButton, { class: "vk-geoinput-upload-x" }, {
125
- default: vue.withCtx(() => [
126
- vue.createVNode(_component_ElUpload, {
127
- class: vue.normalizeClass("vk-geoinput-upload"),
128
- action: "",
129
- accept: "file",
130
- multiple: false,
131
- "show-file-list": false,
132
- "auto-upload": false,
133
- "on-change": _ctx.getFile,
134
- disabled: _ctx.disabled
135
- }, {
136
- default: vue.withCtx(() => [
137
- vue.createVNode(_component_ElIcon, { color: "var(--el-color-primary)" }, {
138
- default: vue.withCtx(() => [
139
- vue.createVNode(_component_Upload)
140
- ]),
141
- _: 1
142
- /* STABLE */
143
- })
144
- ]),
145
- _: 1
146
- /* STABLE */
147
- }, 8, ["on-change", "disabled"])
148
- ]),
149
- _: 1
150
- /* STABLE */
151
- }),
152
- _ctx.dialog ? (vue.openBlock(), vue.createBlock(_component_ElButton, {
153
- key: 0,
154
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("edit")),
155
- disabled: _ctx.disabled
156
- }, {
157
- default: vue.withCtx(() => [
158
- vue.createVNode(_component_ElIcon, { color: "var(--el-color-primary)" }, {
159
- default: vue.withCtx(() => [
160
- vue.createVNode(_component_Edit)
161
- ]),
162
- _: 1
163
- /* STABLE */
164
- })
165
- ]),
166
- _: 1
167
- /* STABLE */
168
- }, 8, ["disabled"])) : vue.createCommentVNode("v-if", true)
169
- ]),
170
- _: 1
171
- /* STABLE */
172
- });
173
- }
174
- var AppendVue = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/geoinput-update/src/append.vue"]]);
175
-
176
- var _sfc_main = /* @__PURE__ */ vue.defineComponent({
177
- name: "VkfGeoinputUpdate",
178
- components: {
179
- VkfInput: input.VkfInput,
180
- ElDialog: elementPlus.ElDialog,
181
- VmMap: core.VmMap,
182
- VmTdtLayers: tdtLayers.VmTdtLayers,
183
- VmControlDraw: controlDraw.VmControlDraw,
184
- VkAsyncTeleport: core$1.VkAsyncTeleport,
185
- VmControlDrawUi: controlDrawUi.VmControlDrawUi,
186
- ElIcon: elementPlus.ElIcon,
187
- Checked: index.checked_default
188
- },
189
- emits,
190
- props,
191
- setup(props2, {
192
- emit
193
- }) {
194
- const inputBindProps = input._VkfInputCtx.createBindProps(props2, ["inputSlots", "readonly", "modelValue"]);
195
- const inputOnEmits = input._VkfInputCtx.createOnEmits(emit, ["update:modelValue"]);
196
- const mapOptions = vue.computed(() => {
197
- return {
198
- center: props2.mapCenter
199
- };
200
- });
201
- const geoInputMapDialogNode = vue.shallowRef();
202
- const geoInputMapXNode = vue.shallowRef();
203
- const editPlayground = vue.ref(geoInputMapXNode.value);
204
- vue.onMounted(() => {
205
- editPlayground.value = geoInputMapXNode.value;
206
- });
207
- const mapTo = vue.computed(() => {
208
- return editPlayground.value === geoInputMapDialogNode.value ? geoInputMapDialogNode.value : props2.mapTo ?? editPlayground.value;
209
- });
210
- const mapControls = vue.computed(() => {
211
- return props2.readonly ? [] : typeof props2.editTypes === "string" ? [props2.editTypes, ...props2.editControls] : [...props2.editTypes, ...props2.editControls];
212
- });
213
- const currentDrawCacheValue = vue.ref(props2.modelValue);
214
- const currentDrawValue = vue.computed(() => {
215
- return props2.spikSave ? props2.modelValue : currentDrawCacheValue.value;
216
- });
217
- const setCurrentDrawValue = value => {
218
- if (props2.spikSave) {
219
- emit("update:modelValue", value);
220
- } else {
221
- currentDrawCacheValue.value = value;
222
- }
223
- };
224
- const doSave = () => {
225
- emit("update:modelValue", currentDrawCacheValue.value);
226
- elementPlus.ElMessage({
227
- message: "\u4FDD\u5B58\u6210\u529F",
228
- type: "success"
229
- });
230
- dialogShow.value = false;
231
- };
232
- const dialogShow = vue.ref(false);
233
- const mapDef = new utilsPromise.Deferred();
234
- const dialogOnOpen = async () => {
235
- await vue.nextTick();
236
- editPlayground.value = geoInputMapDialogNode.value;
237
- await vue.nextTick();
238
- const map = await mapDef.promise;
239
- currentDrawCacheValue.value = props2.modelValue;
240
- map.resize();
241
- };
242
- const dialogOnClose = async () => {
243
- editPlayground.value = geoInputMapXNode.value;
244
- const map = await mapDef.promise;
245
- map.resize();
246
- };
247
- const append = () => vue.createVNode(AppendVue, {
248
- "dialog": props2.dialogEdit,
249
- "disabled": props2.disabled,
250
- "onUpload": onUpload,
251
- "onEdit": onEdit
252
- }, null);
253
- async function onUpload(e) {
254
- if (!e.raw) return;
255
- index$1.toGeojson(e.raw).then(res => {
256
- emit("update:modelValue", res);
257
- });
258
- }
259
- function onEdit() {
260
- dialogShow.value = true;
261
- }
262
- return {
263
- inputBindProps,
264
- inputOnEmits,
265
- append,
266
- dialogShow,
267
- mapDef,
268
- dialogOnOpen,
269
- dialogOnClose,
270
- mapOptions,
271
- geoInputMapDialogNode,
272
- geoInputMapXNode,
273
- mapTo,
274
- mapControls,
275
- doSave,
276
- currentDrawValue,
277
- setCurrentDrawValue
278
- };
279
- }
280
- });
281
-
282
- const _hoisted_1 = { class: "vkf-form-item" };
283
- const _hoisted_2 = {
284
- class: "geoinput-map-dialog",
285
- ref: "geoInputMapDialogNode"
286
- };
287
- const _hoisted_3 = {
288
- class: "geoinput-map-x",
289
- ref: "geoInputMapXNode"
290
- };
291
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
292
- const _component_VkfInput = vue.resolveComponent("VkfInput");
293
- const _component_VmTdtLayers = vue.resolveComponent("VmTdtLayers");
294
- const _component_Checked = vue.resolveComponent("Checked");
295
- const _component_ElIcon = vue.resolveComponent("ElIcon");
296
- const _component_VmControlDrawUi = vue.resolveComponent("VmControlDrawUi");
297
- const _component_VmControlDraw = vue.resolveComponent("VmControlDraw");
298
- const _component_VmMap = vue.resolveComponent("VmMap");
299
- const _component_VkAsyncTeleport = vue.resolveComponent("VkAsyncTeleport");
300
- const _component_ElDialog = vue.resolveComponent("ElDialog");
301
- return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
302
- vue.createVNode(_component_VkfInput, vue.mergeProps({
303
- readonly: true,
304
- modelValue: JSON.stringify(_ctx.modelValue)
305
- }, _ctx.inputBindProps, vue.toHandlers(_ctx.inputOnEmits), {
306
- inputSlots: _ctx.readonly ? {} : {
307
- append: _ctx.append
308
- }
309
- }), null, 16, ["modelValue", "inputSlots"]),
310
- vue.createVNode(_component_VkAsyncTeleport, { to: _ctx.mapTo }, {
311
- default: vue.withCtx(() => [
312
- vue.createVNode(_component_VmMap, {
313
- defaultOptions: _ctx.mapOptions,
314
- class: "vk-geoinput-edit-map",
315
- onLoad: _cache[1] || (_cache[1] = ($event) => _ctx.mapDef.resolve($event.map))
316
- }, {
317
- default: vue.withCtx(() => [
318
- vue.createVNode(_component_VmTdtLayers),
319
- vue.createVNode(_component_VmControlDraw, {
320
- styles: _ctx.editStyles,
321
- modelValue: _ctx.currentDrawValue,
322
- "onUpdate:modelValue": _ctx.setCurrentDrawValue,
323
- onUpdate: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("editUpdate", $event)),
324
- controls: _ctx.mapControls,
325
- multiple: _ctx.multiple
326
- }, {
327
- default: vue.withCtx(() => [
328
- !_ctx.spikSave ? (vue.openBlock(), vue.createBlock(_component_VmControlDrawUi, {
329
- key: 0,
330
- onClick: vue.withModifiers(_ctx.doSave, ["prevent"])
331
- }, {
332
- default: vue.withCtx(() => [
333
- vue.createVNode(_component_ElIcon, null, {
334
- default: vue.withCtx(() => [
335
- vue.createVNode(_component_Checked)
336
- ]),
337
- _: 1
338
- /* STABLE */
339
- })
340
- ]),
341
- _: 1
342
- /* STABLE */
343
- }, 8, ["onClick"])) : vue.createCommentVNode("v-if", true)
344
- ]),
345
- _: 1
346
- /* STABLE */
347
- }, 8, ["styles", "modelValue", "onUpdate:modelValue", "controls", "multiple"]),
348
- vue.renderSlot(_ctx.$slots, "map"),
349
- _ctx.slots.map ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(typeof _ctx.slots.map === "function" ? _ctx.slots.map() : _ctx.slots.map), { key: 0 })) : vue.createCommentVNode("v-if", true)
350
- ]),
351
- _: 3
352
- /* FORWARDED */
353
- }, 8, ["defaultOptions"])
354
- ]),
355
- _: 3
356
- /* FORWARDED */
357
- }, 8, ["to"]),
358
- vue.createVNode(_component_ElDialog, {
359
- modelValue: _ctx.dialogShow,
360
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.dialogShow = $event),
361
- title: _ctx.dialogEditTitle,
362
- fullscreen: _ctx.dialogEditFullscreen,
363
- modalClass: "vk-geoinput-edit-dialog-x",
364
- appendToBody: true,
365
- onOpen: _ctx.dialogOnOpen,
366
- onClose: _ctx.dialogOnClose,
367
- closeOnClickModal: false,
368
- draggable: true
369
- }, {
370
- default: vue.withCtx(() => [
371
- vue.createElementVNode(
372
- "div",
373
- _hoisted_2,
374
- null,
375
- 512
376
- /* NEED_PATCH */
377
- )
378
- ]),
379
- _: 1
380
- /* STABLE */
381
- }, 8, ["modelValue", "title", "fullscreen", "onOpen", "onClose"]),
382
- vue.withDirectives(vue.createElementVNode(
383
- "div",
384
- _hoisted_3,
385
- null,
386
- 512
387
- /* NEED_PATCH */
388
- ), [
389
- [vue.vShow, _ctx.showMap]
390
- ])
391
- ]);
392
- }
393
- var VkfGeoinputUpdate = /* @__PURE__ */ _pluginVue_exportHelper._export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "/home/runner/work/private-vunk-form/private-vunk-form/packages/components/geoinput-update/src/index.vue"]]);
394
-
395
- var types = /*#__PURE__*/Object.freeze({
396
- __proto__: null
397
- });
398
-
399
- VkfGeoinputUpdate.install = (app) => {
400
- app.component(VkfGeoinputUpdate.name, VkfGeoinputUpdate);
401
- };
402
-
403
- exports.VkfGeoinputUpdate = VkfGeoinputUpdate;
404
- exports._VkfGeoinputUpdateCtx = ctx;
405
- exports.__VkfGeoinputUpdate = types;
406
- exports.default = VkfGeoinputUpdate;
@@ -1,40 +0,0 @@
1
- .vk-geoinput-upload-x.vk-geoinput-upload-x{
2
- padding: 0;
3
- }
4
- .vk-geoinput-upload .el-upload{
5
- padding: 8px 15px;
6
- }
7
- .geoinput-map-x{
8
- margin-bottom: 18px;
9
- height: 300px;
10
- }
11
- .geoinput-map-dialog{
12
- flex: 1;
13
- overflow: hidden;
14
- display: flex;
15
- flex-direction: column;
16
- }
17
- .vk-geoinput-edit-map{
18
- height: 100%;
19
- }
20
- /* #vkGeoInputMap .vk-geoinput-edit-map{
21
- height: 100%;
22
- } */
23
- .vk-geoinput-edit-dialog-x .el-dialog.is-fullscreen{
24
- height: 100%;
25
- }
26
- .vk-geoinput-edit-dialog-x .el-dialog{
27
- display: flex;
28
- flex-direction: column;
29
- min-height: 50%;
30
- }
31
- .vk-geoinput-edit-dialog-x .el-dialog__body{
32
- display: flex;
33
- flex-direction: column;
34
- flex: 1;
35
- overflow: hidden;
36
- padding: 0;
37
- }
38
- .vk-geoinput-edit-map{
39
- flex: 1;
40
- }
@@ -1,5 +0,0 @@
1
- import VkfGeoinputUpdate from './src/index.vue';
2
- export * as __VkfGeoinputUpdate from './src/types';
3
- export * as _VkfGeoinputUpdateCtx from './src/ctx';
4
- export { VkfGeoinputUpdate, };
5
- export default VkfGeoinputUpdate;