qy-vue-plugins 0.2.2 → 0.2.4

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 (29) hide show
  1. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BFusb3rd.js +880 -0
  2. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-C0OTINr4.js +1 -0
  3. package/dist/chunks/aria-CU11fhFG.js +5 -0
  4. package/dist/chunks/aria-Lnh-oIIU.js +173 -0
  5. package/dist/chunks/{base-C6ZR-g-3.js → base-BBPoamOf.js} +180 -168
  6. package/dist/chunks/base-Dbw4YzZq.js +1 -0
  7. package/dist/chunks/use-global-config-D_HRwVvW.js +301 -0
  8. package/dist/chunks/use-global-config-Wtw3ujWW.js +2 -0
  9. package/dist/manageTable/ReplaceSpeciesNameDialog.cjs +1 -1
  10. package/dist/manageTable/ReplaceSpeciesNameDialog.mjs +1 -1
  11. package/dist/manageTable/SortItem.cjs +1 -1
  12. package/dist/manageTable/SortItem.mjs +42 -39
  13. package/dist/manageTable/manageTable.cjs +1 -1
  14. package/dist/manageTable/manageTable.mjs +155 -108
  15. package/dist/mapbox/components/VideoDialog.cjs +3 -0
  16. package/dist/mapbox/components/VideoDialog.mjs +1741 -0
  17. package/dist/mapbox/widgets/LayerAttributeDialog.cjs +1 -2
  18. package/dist/mapbox/widgets/LayerAttributeDialog.mjs +264 -551
  19. package/dist/mapbox/widgets/LayerDialog.cjs +1 -1
  20. package/dist/mapbox/widgets/LayerDialog.mjs +201 -167
  21. package/dist/qy-vue-plugins.css +1 -1
  22. package/dist/types/manageTable/components/SortItem.vue.d.ts +1 -0
  23. package/dist/types/manageTable/manageTable.vue.d.ts +4 -0
  24. package/dist/types/mapbox/components/VideoDialog.vue.d.ts +58 -0
  25. package/dist/types/mapbox-components-VideoDialog.d.ts +4 -0
  26. package/package.json +1 -1
  27. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-BsMK0hpE.js +0 -1014
  28. package/dist/chunks/ReplaceSpeciesNameDialog.vue_vue_type_script_setup_true_lang-Crqsopo0.js +0 -5
  29. package/dist/chunks/base-CPjTxLkU.js +0 -1
@@ -1,561 +1,274 @@
1
- import { b as he, i as xe, d as oe, a as Ce, c as Ie, e as Se, f as Le, u as we, g as Ne, n as _e, S as ke, r as F, h as ne, j as _, k as Z, l as re, m as De } from "../../chunks/base-C6ZR-g-3.js";
2
- import { getCurrentInstance as P, inject as S, computed as b, unref as h, ref as f, isRef as le, provide as Te, reactive as Ee, defineComponent as se, h as k, Transition as Ae, withCtx as N, withDirectives as ie, createVNode as O, vShow as Oe, createApp as Fe, toRefs as Pe, nextTick as ue, watch as ze, createBlock as j, openBlock as E, createElementVNode as K, createElementBlock as Ve, Fragment as Be, renderList as Je, createTextVNode as U } from "vue";
3
- import { g as Me, r as je, d as Ke } from "../../chunks/ProvideKeys-B6IuZ5VV.js";
4
- import { ElDialog as $e, ElTable as Ye, ElTableColumn as Re, ElPagination as Ge, ElButton as H, dayjs as q } from "element-plus";
5
- import { u as Ze } from "../../chunks/mapStore-oFrNzlQO.js";
6
- import { isClient as ce } from "@vueuse/core";
7
- import { _ as Ue } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
8
- const de = Symbol();
9
- function He(e, a, t) {
10
- var n = e == null ? void 0 : he(e, a);
11
- return n === void 0 ? t : n;
12
- }
13
- const W = {
14
- current: 0
15
- }, X = f(0), ve = 2e3, Q = Symbol("elZIndexContextKey"), ge = Symbol("zIndexContextKey"), qe = (e) => {
16
- const a = P() ? S(Q, W) : W, t = e || (P() ? S(ge, void 0) : void 0), n = b(() => {
17
- const d = h(t);
18
- return xe(d) ? d : ve;
19
- }), o = b(() => n.value + X.value), l = () => (a.current++, X.value = a.current, o.value);
20
- return !ce && !S(Q) && oe("ZIndexInjection", `Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
21
- usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`), {
22
- initialZIndex: n,
23
- currentZIndex: o,
24
- nextZIndex: l
25
- };
26
- };
27
- var We = {
28
- name: "en",
29
- el: {
30
- breadcrumb: {
31
- label: "Breadcrumb"
32
- },
33
- colorpicker: {
34
- confirm: "OK",
35
- clear: "Clear",
36
- defaultLabel: "color picker",
37
- description: "current color is {color}. press enter to select a new color.",
38
- alphaLabel: "pick alpha value",
39
- alphaDescription: "alpha {alpha}, current color is {color}",
40
- hueLabel: "pick hue value",
41
- hueDescription: "hue {hue}, current color is {color}",
42
- svLabel: "pick saturation and brightness value",
43
- svDescription: "saturation {saturation}, brightness {brightness}, current color is {color}",
44
- predefineDescription: "select {value} as the color"
45
- },
46
- datepicker: {
47
- now: "Now",
48
- today: "Today",
49
- cancel: "Cancel",
50
- clear: "Clear",
51
- confirm: "OK",
52
- dateTablePrompt: "Use the arrow keys and enter to select the day of the month",
53
- monthTablePrompt: "Use the arrow keys and enter to select the month",
54
- yearTablePrompt: "Use the arrow keys and enter to select the year",
55
- selectedDate: "Selected date",
56
- selectDate: "Select date",
57
- selectTime: "Select time",
58
- startDate: "Start Date",
59
- startTime: "Start Time",
60
- endDate: "End Date",
61
- endTime: "End Time",
62
- prevYear: "Previous Year",
63
- nextYear: "Next Year",
64
- prevMonth: "Previous Month",
65
- nextMonth: "Next Month",
66
- year: "",
67
- month1: "January",
68
- month2: "February",
69
- month3: "March",
70
- month4: "April",
71
- month5: "May",
72
- month6: "June",
73
- month7: "July",
74
- month8: "August",
75
- month9: "September",
76
- month10: "October",
77
- month11: "November",
78
- month12: "December",
79
- weeks: {
80
- sun: "Sun",
81
- mon: "Mon",
82
- tue: "Tue",
83
- wed: "Wed",
84
- thu: "Thu",
85
- fri: "Fri",
86
- sat: "Sat"
87
- },
88
- weeksFull: {
89
- sun: "Sunday",
90
- mon: "Monday",
91
- tue: "Tuesday",
92
- wed: "Wednesday",
93
- thu: "Thursday",
94
- fri: "Friday",
95
- sat: "Saturday"
96
- },
97
- months: {
98
- jan: "Jan",
99
- feb: "Feb",
100
- mar: "Mar",
101
- apr: "Apr",
102
- may: "May",
103
- jun: "Jun",
104
- jul: "Jul",
105
- aug: "Aug",
106
- sep: "Sep",
107
- oct: "Oct",
108
- nov: "Nov",
109
- dec: "Dec"
110
- }
111
- },
112
- inputNumber: {
113
- decrease: "decrease number",
114
- increase: "increase number"
115
- },
116
- select: {
117
- loading: "Loading",
118
- noMatch: "No matching data",
119
- noData: "No data",
120
- placeholder: "Select"
121
- },
122
- mention: {
123
- loading: "Loading"
124
- },
125
- dropdown: {
126
- toggleDropdown: "Toggle Dropdown"
127
- },
128
- cascader: {
129
- noMatch: "No matching data",
130
- loading: "Loading",
131
- placeholder: "Select",
132
- noData: "No data"
133
- },
134
- pagination: {
135
- goto: "Go to",
136
- pagesize: "/page",
137
- total: "Total {total}",
138
- pageClassifier: "",
139
- page: "Page",
140
- prev: "Go to previous page",
141
- next: "Go to next page",
142
- currentPage: "page {pager}",
143
- prevPages: "Previous {pager} pages",
144
- nextPages: "Next {pager} pages",
145
- deprecationWarning: "Deprecated usages detected, please refer to the el-pagination documentation for more details"
146
- },
147
- dialog: {
148
- close: "Close this dialog"
149
- },
150
- drawer: {
151
- close: "Close this dialog"
152
- },
153
- messagebox: {
154
- title: "Message",
155
- confirm: "OK",
156
- cancel: "Cancel",
157
- error: "Illegal input",
158
- close: "Close this dialog"
159
- },
160
- upload: {
161
- deleteTip: "press delete to remove",
162
- delete: "Delete",
163
- preview: "Preview",
164
- continue: "Continue"
165
- },
166
- slider: {
167
- defaultLabel: "slider between {min} and {max}",
168
- defaultRangeStartLabel: "pick start value",
169
- defaultRangeEndLabel: "pick end value"
170
- },
171
- table: {
172
- emptyText: "No Data",
173
- confirmFilter: "Confirm",
174
- resetFilter: "Reset",
175
- clearFilter: "All",
176
- sumText: "Sum",
177
- selectAllLabel: "Select all rows",
178
- selectRowLabel: "Select this row",
179
- expandRowLabel: "Expand this row",
180
- collapseRowLabel: "Collapse this row",
181
- sortLabel: "Sort by {column}",
182
- filterLabel: "Filter by {column}"
183
- },
184
- tag: {
185
- close: "Close this tag"
186
- },
187
- tour: {
188
- next: "Next",
189
- previous: "Previous",
190
- finish: "Finish",
191
- close: "Close this dialog"
192
- },
193
- tree: {
194
- emptyText: "No Data"
195
- },
196
- transfer: {
197
- noMatch: "No matching data",
198
- noData: "No data",
199
- titles: ["List 1", "List 2"],
200
- filterPlaceholder: "Enter keyword",
201
- noCheckedFormat: "{total} items",
202
- hasCheckedFormat: "{checked}/{total} checked"
203
- },
204
- image: {
205
- error: "FAILED"
206
- },
207
- pageHeader: {
208
- title: "Back"
209
- },
210
- popconfirm: {
211
- confirmButtonText: "Yes",
212
- cancelButtonText: "No"
213
- },
214
- carousel: {
215
- leftArrow: "Carousel arrow left",
216
- rightArrow: "Carousel arrow right",
217
- indicator: "Carousel switch to index {index}"
218
- }
219
- }
220
- };
221
- const Xe = (e) => (a, t) => Qe(a, t, h(e)), Qe = (e, a, t) => He(t, e, e).replace(/\{(\w+)\}/g, (n, o) => {
222
- var l;
223
- return `${(l = a?.[o]) != null ? l : `{${o}}`}`;
224
- }), et = (e) => {
225
- const a = b(() => h(e).name), t = le(e) ? e : f(e);
226
- return {
227
- lang: a,
228
- locale: t,
229
- t: Xe(e)
230
- };
231
- }, pe = Symbol("localeContextKey"), tt = (e) => {
232
- const a = e || S(pe, f());
233
- return et(b(() => a.value || We));
234
- }, at = Symbol("emptyValuesContextKey");
235
- Ce({
236
- emptyValues: Array,
237
- valueOnClear: {
238
- type: Ie([
239
- String,
240
- Number,
241
- Boolean,
242
- Function
243
- ]),
244
- default: void 0,
245
- validator: (e) => (e = Se(e) ? e() : e, Le(e) ? e.every((a) => !a) : !e)
246
- }
247
- });
248
- const ee = (e) => Object.keys(e), z = f();
249
- function me(e, a = void 0) {
250
- return P() ? S(de, z) : z;
251
- }
252
- function ot(e, a) {
253
- const t = me(), n = we(e, b(() => {
254
- var i;
255
- return ((i = t.value) == null ? void 0 : i.namespace) || Ne;
256
- })), o = tt(b(() => {
257
- var i;
258
- return (i = t.value) == null ? void 0 : i.locale;
259
- })), l = qe(b(() => {
260
- var i;
261
- return ((i = t.value) == null ? void 0 : i.zIndex) || ve;
262
- })), d = b(() => {
263
- var i;
264
- return h(a) || ((i = t.value) == null ? void 0 : i.size) || "";
265
- });
266
- return nt(b(() => h(t) || {})), {
267
- ns: n,
268
- locale: o,
269
- zIndex: l,
270
- size: d
271
- };
272
- }
273
- const nt = (e, a, t = !1) => {
274
- var n;
275
- const o = !!P(), l = o ? me() : void 0, d = (n = void 0) != null ? n : o ? Te : void 0;
276
- if (!d) {
277
- oe("provideGlobalConfig", "provideGlobalConfig() can only be used inside setup().");
278
- return;
279
- }
280
- const i = b(() => {
281
- const x = h(e);
282
- return l?.value ? rt(l.value, x) : x;
283
- });
284
- return d(de, i), d(pe, b(() => i.value.locale)), d(_e, b(() => i.value.namespace)), d(ge, b(() => i.value.zIndex)), d(ke, {
285
- size: b(() => i.value.size || "")
286
- }), d(at, b(() => ({
287
- emptyValues: i.value.emptyValues,
288
- valueOnClear: i.value.valueOnClear
289
- }))), (t || !z.value) && (z.value = i.value), i;
290
- }, rt = (e, a) => {
291
- const t = [.../* @__PURE__ */ new Set([...ee(e), ...ee(a)])], n = {};
292
- for (const o of t)
293
- n[o] = a[o] !== void 0 ? a[o] : e[o];
294
- return n;
295
- };
296
- function lt(e, a) {
1
+ import { r as E, i as Z, g as I, a as M, b as Q, h as ne } from "../../chunks/base-BBPoamOf.js";
2
+ import { ref as f, reactive as le, defineComponent as W, h as N, Transition as re, withCtx as S, withDirectives as X, createVNode as T, vShow as se, createApp as ue, toRefs as ie, nextTick as ee, isRef as ce, inject as z, watch as de, createBlock as J, openBlock as w, unref as C, createElementVNode as P, createElementBlock as ve, Fragment as ge, renderList as me, createTextVNode as U } from "vue";
3
+ import { g as fe, r as pe, d as be } from "../../chunks/ProvideKeys-B6IuZ5VV.js";
4
+ import { ElDialog as ye, ElTable as he, ElTableColumn as xe, ElPagination as Ce, ElButton as q, dayjs as H } from "element-plus";
5
+ import { u as _e } from "../../chunks/mapStore-oFrNzlQO.js";
6
+ import { u as Le } from "../../chunks/use-global-config-D_HRwVvW.js";
7
+ import { isClient as Se } from "@vueuse/core";
8
+ import { _ as Ie } from "../../chunks/_plugin-vue_export-helper-CHgC5LLL.js";
9
+ function Ne(e, o) {
297
10
  let t;
298
- const n = f(!1), o = Ee({
11
+ const r = f(!1), n = le({
299
12
  ...e,
300
13
  originalPosition: "",
301
14
  originalOverflow: "",
302
15
  visible: !1
303
16
  });
304
- function l(s) {
305
- o.text = s;
17
+ function i(l) {
18
+ n.text = l;
306
19
  }
307
- function d() {
308
- const s = o.parent, g = c.ns;
309
- if (!s.vLoadingAddClassList) {
310
- let y = s.getAttribute("loading-number");
311
- y = Number.parseInt(y) - 1, y ? s.setAttribute("loading-number", y.toString()) : (F(s, g.bm("parent", "relative")), s.removeAttribute("loading-number")), F(s, g.bm("parent", "hidden"));
20
+ function p() {
21
+ const l = n.parent, d = u.ns;
22
+ if (!l.vLoadingAddClassList) {
23
+ let m = l.getAttribute("loading-number");
24
+ m = Number.parseInt(m) - 1, m ? l.setAttribute("loading-number", m.toString()) : (E(l, d.bm("parent", "relative")), l.removeAttribute("loading-number")), E(l, d.bm("parent", "hidden"));
312
25
  }
313
- i(), I.unmount();
26
+ b(), x.unmount();
314
27
  }
315
- function i() {
316
- var s, g;
317
- (g = (s = c.$el) == null ? void 0 : s.parentNode) == null || g.removeChild(c.$el);
28
+ function b() {
29
+ var l, d;
30
+ (d = (l = u.$el) == null ? void 0 : l.parentNode) == null || d.removeChild(u.$el);
318
31
  }
319
- function x() {
320
- var s;
321
- e.beforeClose && !e.beforeClose() || (n.value = !0, clearTimeout(t), t = setTimeout(m, 400), o.visible = !1, (s = e.closed) == null || s.call(e));
32
+ function y() {
33
+ var l;
34
+ e.beforeClose && !e.beforeClose() || (r.value = !0, clearTimeout(t), t = setTimeout(g, 400), n.visible = !1, (l = e.closed) == null || l.call(e));
322
35
  }
323
- function m() {
324
- if (!n.value)
36
+ function g() {
37
+ if (!r.value)
325
38
  return;
326
- const s = o.parent;
327
- n.value = !1, s.vLoadingAddClassList = void 0, d();
39
+ const l = n.parent;
40
+ r.value = !1, l.vLoadingAddClassList = void 0, p();
328
41
  }
329
- const C = se({
42
+ const h = W({
330
43
  name: "ElLoading",
331
- setup(s, { expose: g }) {
332
- const { ns: y, zIndex: V } = ot("loading");
333
- return g({
334
- ns: y,
335
- zIndex: V
44
+ setup(l, { expose: d }) {
45
+ const { ns: m, zIndex: O } = Le("loading");
46
+ return d({
47
+ ns: m,
48
+ zIndex: O
336
49
  }), () => {
337
- const T = o.spinner || o.svg, B = k("svg", {
50
+ const k = n.spinner || n.svg, B = N("svg", {
338
51
  class: "circular",
339
- viewBox: o.svgViewBox ? o.svgViewBox : "0 0 50 50",
340
- ...T ? { innerHTML: T } : {}
52
+ viewBox: n.svgViewBox ? n.svgViewBox : "0 0 50 50",
53
+ ...k ? { innerHTML: k } : {}
341
54
  }, [
342
- k("circle", {
55
+ N("circle", {
343
56
  class: "path",
344
57
  cx: "25",
345
58
  cy: "25",
346
59
  r: "20",
347
60
  fill: "none"
348
61
  })
349
- ]), J = o.text ? k("p", { class: y.b("text") }, [o.text]) : void 0;
350
- return k(Ae, {
351
- name: y.b("fade"),
352
- onAfterLeave: m
62
+ ]), V = n.text ? N("p", { class: m.b("text") }, [n.text]) : void 0;
63
+ return N(re, {
64
+ name: m.b("fade"),
65
+ onAfterLeave: g
353
66
  }, {
354
- default: N(() => [
355
- ie(O("div", {
67
+ default: S(() => [
68
+ X(T("div", {
356
69
  style: {
357
- backgroundColor: o.background || ""
70
+ backgroundColor: n.background || ""
358
71
  },
359
72
  class: [
360
- y.b("mask"),
361
- o.customClass,
362
- y.is("fullscreen", o.fullscreen)
73
+ m.b("mask"),
74
+ n.customClass,
75
+ m.is("fullscreen", n.fullscreen)
363
76
  ]
364
77
  }, [
365
- k("div", {
366
- class: y.b("spinner")
367
- }, [B, J])
368
- ]), [[Oe, o.visible]])
78
+ N("div", {
79
+ class: m.b("spinner")
80
+ }, [B, V])
81
+ ]), [[se, n.visible]])
369
82
  ])
370
83
  });
371
84
  };
372
85
  }
373
- }), I = Fe(C);
374
- Object.assign(I._context, a ?? {});
375
- const c = I.mount(document.createElement("div"));
86
+ }), x = ue(h);
87
+ Object.assign(x._context, o ?? {});
88
+ const u = x.mount(document.createElement("div"));
376
89
  return {
377
- ...Pe(o),
378
- setText: l,
379
- removeElLoadingChild: i,
380
- close: x,
381
- handleAfterLeave: m,
382
- vm: c,
90
+ ...ie(n),
91
+ setText: i,
92
+ removeElLoadingChild: b,
93
+ close: y,
94
+ handleAfterLeave: g,
95
+ vm: u,
383
96
  get $el() {
384
- return c.$el;
97
+ return u.$el;
385
98
  }
386
99
  };
387
100
  }
388
101
  let A;
389
- const $ = function(e = {}, a) {
390
- if (!ce)
102
+ const j = function(e = {}, o) {
103
+ if (!Se)
391
104
  return;
392
- const t = st(e);
105
+ const t = De(e);
393
106
  if (t.fullscreen && A)
394
107
  return A;
395
- const n = lt({
108
+ const r = Ne({
396
109
  ...t,
397
110
  closed: () => {
398
- var l;
399
- (l = t.closed) == null || l.call(t), t.fullscreen && (A = void 0);
111
+ var i;
112
+ (i = t.closed) == null || i.call(t), t.fullscreen && (A = void 0);
400
113
  }
401
- }, a ?? $._context);
402
- it(t, t.parent, n), te(t, t.parent, n), t.parent.vLoadingAddClassList = () => te(t, t.parent, n);
403
- let o = t.parent.getAttribute("loading-number");
404
- return o ? o = `${Number.parseInt(o) + 1}` : o = "1", t.parent.setAttribute("loading-number", o), t.parent.appendChild(n.$el), ue(() => n.visible.value = t.visible), t.fullscreen && (A = n), n;
405
- }, st = (e) => {
406
- var a, t, n, o;
407
- let l;
408
- return ne(e.target) ? l = (a = document.querySelector(e.target)) != null ? a : document.body : l = e.target || document.body, {
409
- parent: l === document.body || e.body ? document.body : l,
114
+ }, o ?? j._context);
115
+ ke(t, t.parent, r), K(t, t.parent, r), t.parent.vLoadingAddClassList = () => K(t, t.parent, r);
116
+ let n = t.parent.getAttribute("loading-number");
117
+ return n ? n = `${Number.parseInt(n) + 1}` : n = "1", t.parent.setAttribute("loading-number", n), t.parent.appendChild(r.$el), ee(() => r.visible.value = t.visible), t.fullscreen && (A = r), r;
118
+ }, De = (e) => {
119
+ var o, t, r, n;
120
+ let i;
121
+ return Z(e.target) ? i = (o = document.querySelector(e.target)) != null ? o : document.body : i = e.target || document.body, {
122
+ parent: i === document.body || e.body ? document.body : i,
410
123
  background: e.background || "",
411
124
  svg: e.svg || "",
412
125
  svgViewBox: e.svgViewBox || "",
413
126
  spinner: e.spinner || !1,
414
127
  text: e.text || "",
415
- fullscreen: l === document.body && ((t = e.fullscreen) != null ? t : !0),
416
- lock: (n = e.lock) != null ? n : !1,
128
+ fullscreen: i === document.body && ((t = e.fullscreen) != null ? t : !0),
129
+ lock: (r = e.lock) != null ? r : !1,
417
130
  customClass: e.customClass || "",
418
- visible: (o = e.visible) != null ? o : !0,
131
+ visible: (n = e.visible) != null ? n : !0,
419
132
  beforeClose: e.beforeClose,
420
133
  closed: e.closed,
421
- target: l
134
+ target: i
422
135
  };
423
- }, it = async (e, a, t) => {
424
- const { nextZIndex: n } = t.vm.zIndex || t.vm._.exposed.zIndex, o = {};
136
+ }, ke = async (e, o, t) => {
137
+ const { nextZIndex: r } = t.vm.zIndex || t.vm._.exposed.zIndex, n = {};
425
138
  if (e.fullscreen)
426
- t.originalPosition.value = _(document.body, "position"), t.originalOverflow.value = _(document.body, "overflow"), o.zIndex = n();
139
+ t.originalPosition.value = I(document.body, "position"), t.originalOverflow.value = I(document.body, "overflow"), n.zIndex = r();
427
140
  else if (e.parent === document.body) {
428
- t.originalPosition.value = _(document.body, "position"), await ue();
429
- for (const l of ["top", "left"]) {
430
- const d = l === "top" ? "scrollTop" : "scrollLeft";
431
- o[l] = `${e.target.getBoundingClientRect()[l] + document.body[d] + document.documentElement[d] - Number.parseInt(_(document.body, `margin-${l}`), 10)}px`;
141
+ t.originalPosition.value = I(document.body, "position"), await ee();
142
+ for (const i of ["top", "left"]) {
143
+ const p = i === "top" ? "scrollTop" : "scrollLeft";
144
+ n[i] = `${e.target.getBoundingClientRect()[i] + document.body[p] + document.documentElement[p] - Number.parseInt(I(document.body, `margin-${i}`), 10)}px`;
432
145
  }
433
- for (const l of ["height", "width"])
434
- o[l] = `${e.target.getBoundingClientRect()[l]}px`;
146
+ for (const i of ["height", "width"])
147
+ n[i] = `${e.target.getBoundingClientRect()[i]}px`;
435
148
  } else
436
- t.originalPosition.value = _(a, "position");
437
- for (const [l, d] of Object.entries(o))
438
- t.$el.style[l] = d;
439
- }, te = (e, a, t) => {
440
- const n = t.vm.ns || t.vm._.exposed.ns;
441
- ["absolute", "fixed", "sticky"].includes(t.originalPosition.value) ? F(a, n.bm("parent", "relative")) : Z(a, n.bm("parent", "relative")), e.fullscreen && e.lock ? Z(a, n.bm("parent", "hidden")) : F(a, n.bm("parent", "hidden"));
149
+ t.originalPosition.value = I(o, "position");
150
+ for (const [i, p] of Object.entries(n))
151
+ t.$el.style[i] = p;
152
+ }, K = (e, o, t) => {
153
+ const r = t.vm.ns || t.vm._.exposed.ns;
154
+ ["absolute", "fixed", "sticky"].includes(t.originalPosition.value) ? E(o, r.bm("parent", "relative")) : M(o, r.bm("parent", "relative")), e.fullscreen && e.lock ? M(o, r.bm("parent", "hidden")) : E(o, r.bm("parent", "hidden"));
442
155
  };
443
- $._context = null;
444
- const D = Symbol("ElLoading"), L = (e) => `element-loading-${De(e)}`, ae = (e, a) => {
445
- var t, n, o, l;
446
- const d = a.instance, i = (s) => re(a.value) ? a.value[s] : void 0, x = (s) => {
447
- const g = ne(s) && d?.[s] || s;
448
- return f(g);
449
- }, m = (s) => x(i(s) || e.getAttribute(L(s))), C = (t = i("fullscreen")) != null ? t : a.modifiers.fullscreen, I = {
450
- text: m("text"),
451
- svg: m("svg"),
452
- svgViewBox: m("svgViewBox"),
453
- spinner: m("spinner"),
454
- background: m("background"),
455
- customClass: m("customClass"),
456
- fullscreen: C,
457
- target: (n = i("target")) != null ? n : C ? void 0 : e,
458
- body: (o = i("body")) != null ? o : a.modifiers.body,
459
- lock: (l = i("lock")) != null ? l : a.modifiers.lock
460
- }, c = $(I);
461
- c._context = Y._context, e[D] = {
462
- options: I,
463
- instance: c
156
+ j._context = null;
157
+ const D = Symbol("ElLoading"), _ = (e) => `element-loading-${ne(e)}`, G = (e, o) => {
158
+ var t, r, n, i;
159
+ const p = o.instance, b = (l) => Q(o.value) ? o.value[l] : void 0, y = (l) => {
160
+ const d = Z(l) && p?.[l] || l;
161
+ return f(d);
162
+ }, g = (l) => y(b(l) || e.getAttribute(_(l))), h = (t = b("fullscreen")) != null ? t : o.modifiers.fullscreen, x = {
163
+ text: g("text"),
164
+ svg: g("svg"),
165
+ svgViewBox: g("svgViewBox"),
166
+ spinner: g("spinner"),
167
+ background: g("background"),
168
+ customClass: g("customClass"),
169
+ fullscreen: h,
170
+ target: (r = b("target")) != null ? r : h ? void 0 : e,
171
+ body: (n = b("body")) != null ? n : o.modifiers.body,
172
+ lock: (i = b("lock")) != null ? i : o.modifiers.lock
173
+ }, u = j(x);
174
+ u._context = F._context, e[D] = {
175
+ options: x,
176
+ instance: u
464
177
  };
465
- }, ut = (e, a) => {
178
+ }, we = (e, o) => {
466
179
  for (const t of Object.keys(e))
467
- le(e[t]) && (e[t].value = a[t]);
468
- }, Y = {
469
- mounted(e, a) {
470
- a.value && ae(e, a);
180
+ ce(e[t]) && (e[t].value = o[t]);
181
+ }, F = {
182
+ mounted(e, o) {
183
+ o.value && G(e, o);
471
184
  },
472
- updated(e, a) {
185
+ updated(e, o) {
473
186
  const t = e[D];
474
- if (!a.value) {
187
+ if (!o.value) {
475
188
  t?.instance.close(), e[D] = null;
476
189
  return;
477
190
  }
478
- t ? ut(t.options, re(a.value) ? a.value : {
479
- text: e.getAttribute(L("text")),
480
- svg: e.getAttribute(L("svg")),
481
- svgViewBox: e.getAttribute(L("svgViewBox")),
482
- spinner: e.getAttribute(L("spinner")),
483
- background: e.getAttribute(L("background")),
484
- customClass: e.getAttribute(L("customClass"))
485
- }) : ae(e, a);
191
+ t ? we(t.options, Q(o.value) ? o.value : {
192
+ text: e.getAttribute(_("text")),
193
+ svg: e.getAttribute(_("svg")),
194
+ svgViewBox: e.getAttribute(_("svgViewBox")),
195
+ spinner: e.getAttribute(_("spinner")),
196
+ background: e.getAttribute(_("background")),
197
+ customClass: e.getAttribute(_("customClass"))
198
+ }) : G(e, o);
486
199
  },
487
200
  unmounted(e) {
488
- var a;
489
- (a = e[D]) == null || a.instance.close(), e[D] = null;
201
+ var o;
202
+ (o = e[D]) == null || o.instance.close(), e[D] = null;
490
203
  }
491
204
  };
492
- Y._context = null;
493
- const ct = { class: "attribute-table-container" }, dt = { class: "pagination-container" }, vt = /* @__PURE__ */ se({
205
+ F._context = null;
206
+ const Ae = { class: "attribute-table-container" }, Te = { class: "pagination-container" }, Ee = /* @__PURE__ */ W({
494
207
  __name: "LayerAttributeDialog",
495
- setup(e, { expose: a }) {
496
- const t = Ze(), n = f(!1), o = f(!1), l = () => {
497
- n.value = !1;
498
- }, d = S(Me), i = S(je), x = f([]), m = f(1), C = f(10), I = f(0), c = f(), s = f([]), g = f([]), y = f(!0), V = () => {
499
- n.value = !1;
500
- }, T = (v) => {
501
- C.value = v, M();
502
- }, B = (v) => {
503
- m.value = v, M();
504
- }, J = (v) => {
505
- n.value = !0, c.value = v, m.value = 1, s.value = [], g.value = [], M();
208
+ setup(e, { expose: o }) {
209
+ const t = _e(), r = f(!1), n = f(!1), i = () => {
210
+ r.value = !1;
211
+ }, p = z(fe), b = z(pe), y = f([]), g = f(1), h = f(10), x = f(0), u = f(), l = f([]), d = f([]), m = f(!0), O = () => {
212
+ r.value = !1;
213
+ }, k = (c) => {
214
+ h.value = c, $();
215
+ }, B = (c) => {
216
+ g.value = c, $();
217
+ }, V = (c) => {
218
+ r.value = !0, u.value = c, g.value = 1, l.value = [], d.value = [], $();
506
219
  }, R = () => {
507
- if (x.value.length === 0) {
508
- s.value = [], g.value = [];
220
+ if (y.value.length === 0) {
221
+ l.value = [], d.value = [];
509
222
  return;
510
223
  }
511
224
  try {
512
- const v = x.value[0];
513
- v && v.data && (s.value = JSON.parse(v.data));
514
- const r = x.value.slice(1).map((u) => {
515
- const p = u.data ? JSON.parse(u.data) : [];
516
- return s.value.reduce((w, be, ye) => (w[be] = p[ye] || "", w), {});
225
+ const c = y.value[0];
226
+ c && c.data && (l.value = JSON.parse(c.data));
227
+ const a = y.value.slice(1).map((s) => {
228
+ const v = s.data ? JSON.parse(s.data) : [];
229
+ return l.value.reduce((L, ae, oe) => (L[ae] = v[oe] || "", L), {});
517
230
  });
518
- g.value = r;
519
- } catch (v) {
520
- console.error("解析数据出错:", v), s.value = [], g.value = [];
231
+ d.value = a;
232
+ } catch (c) {
233
+ console.error("解析数据出错:", c), l.value = [], d.value = [];
521
234
  }
522
235
  };
523
- function fe(v) {
524
- console.log("geoJSON----->", v), s.value = ["FID", "*Type", "Longitude", "Latitude"], g.value = [], v.features.forEach((r) => {
525
- r.geometry.type == "Point" ? g.value.push({
236
+ function te(c) {
237
+ console.log("geoJSON----->", c), l.value = ["FID", "*Type", "Longitude", "Latitude"], d.value = [], c.features.forEach((a) => {
238
+ a.geometry.type == "Point" ? d.value.push({
526
239
  FID: "1",
527
- "*Type": r.geometry.type,
528
- Longitude: r.geometry.coordinates[0],
529
- Latitude: r.geometry.coordinates[1]
530
- }) : r.geometry.type == "Polygon" ? r.geometry.coordinates.forEach((u) => {
531
- u.forEach((p, w) => {
532
- g.value.push({
533
- FID: (w + 1).toString(),
534
- "*Type": r.geometry.type,
535
- Longitude: p[0],
536
- Latitude: p[1]
240
+ "*Type": a.geometry.type,
241
+ Longitude: a.geometry.coordinates[0],
242
+ Latitude: a.geometry.coordinates[1]
243
+ }) : a.geometry.type == "Polygon" ? a.geometry.coordinates.forEach((s) => {
244
+ s.forEach((v, L) => {
245
+ d.value.push({
246
+ FID: (L + 1).toString(),
247
+ "*Type": a.geometry.type,
248
+ Longitude: v[0],
249
+ Latitude: v[1]
537
250
  });
538
251
  });
539
- }) : r.geometry.coordinates.forEach((u, p) => {
540
- console.log("coord--->", u), g.value.push({
541
- FID: (p + 1).toString(),
542
- "*Type": r.geometry.type,
543
- Longitude: u[0],
544
- Latitude: u[1]
252
+ }) : a.geometry.coordinates.forEach((s, v) => {
253
+ console.log("coord--->", s), d.value.push({
254
+ FID: (v + 1).toString(),
255
+ "*Type": a.geometry.type,
256
+ Longitude: s[0],
257
+ Latitude: s[1]
545
258
  });
546
259
  });
547
260
  });
548
261
  }
549
- const M = () => {
550
- if (console.log("getList", c.value), c.value?.geoJSON) {
551
- if (!c.value.geoJSON) {
262
+ const $ = () => {
263
+ if (console.log("getList", u.value), u.value?.geoJSON) {
264
+ if (!u.value.geoJSON) {
552
265
  console.warn("Topic geoJSON is not set, cannot fetch data.");
553
266
  return;
554
267
  }
555
- y.value = !0, fe(JSON.parse(c.value.geoJSON));
268
+ m.value = !0, te(JSON.parse(u.value.geoJSON));
556
269
  } else {
557
- if (y.value = !1, c.value?.layerType == "species-group") {
558
- s.value = [
270
+ if (m.value = !1, u.value?.layerType == "species-group") {
271
+ l.value = [
559
272
  "FID",
560
273
  "shape*",
561
274
  "物种名称",
@@ -573,32 +286,32 @@ const ct = { class: "attribute-table-container" }, dt = { class: "pagination-con
573
286
  "所属项目",
574
287
  "所属调查编号",
575
288
  "备注"
576
- ], g.value = [], d?.value.forEach((v, r) => {
577
- if (v.pid === c.value?.id) {
578
- const u = JSON.parse(v.rowDataInstance || "{}");
579
- console.log("rowDataInstance", u), g.value.push({
580
- FID: r + 1,
289
+ ], d.value = [], p?.value.forEach((c, a) => {
290
+ if (c.pid === u.value?.id) {
291
+ const s = JSON.parse(c.rowDataInstance || "{}");
292
+ console.log("rowDataInstance", s), d.value.push({
293
+ FID: a + 1,
581
294
  "shape*": "point",
582
- 物种名称: u.species_c,
583
- 拉丁名: u.canorical_me,
584
- 目: u.order_c,
585
- 科: u.family_c,
586
- 属: u.genus_c,
587
- 国家保护等级: u.state_protection_grade,
588
- 经度: u.longitude,
589
- 纬度: u.latitude,
295
+ 物种名称: s.species_c,
296
+ 拉丁名: s.canorical_me,
297
+ 目: s.order_c,
298
+ 科: s.family_c,
299
+ 属: s.genus_c,
300
+ 国家保护等级: s.state_protection_grade,
301
+ 经度: s.longitude,
302
+ 纬度: s.latitude,
590
303
  // 海拔: rowDataInstance.altitude,
591
- 调查人: u.createUserName,
592
- 调查时间: q(u.createDate * 1e3).format("YYYY-MM-DD HH:mm"),
593
- 照片: JSON.parse(u.imagesList ?? "[]").map((p) => p.url).join(", "),
594
- 所属项目: u.projectName,
595
- 所属调查编号: u.serialNumberAndCode,
596
- 备注: u.remark || ""
304
+ 调查人: s.createUserName,
305
+ 调查时间: H(s.createDate * 1e3).format("YYYY-MM-DD HH:mm"),
306
+ 照片: JSON.parse(s.imagesList ?? "[]").map((v) => v.url).join(", "),
307
+ 所属项目: s.projectName,
308
+ 所属调查编号: s.serialNumberAndCode,
309
+ 备注: s.remark || ""
597
310
  });
598
311
  }
599
312
  });
600
313
  return;
601
- } else c.value?.layerDataType == "research" && (s.value = [
314
+ } else u.value?.layerDataType == "research" && (l.value = [
602
315
  "FID",
603
316
  "shape*",
604
317
  "调查人员",
@@ -612,113 +325,113 @@ const ct = { class: "attribute-table-container" }, dt = { class: "pagination-con
612
325
  "调查时间",
613
326
  "所属调查编号",
614
327
  "备注"
615
- ], c.value && !c.value.lineInfo && i?.(c.value).then((v) => {
616
- if (v && c.value) {
617
- const { pointInfo: r, lineInfo: u } = v;
618
- c.value.lineInfo = u, c.value.pointInfo = r, console.log("pointInfo", r), g.value.push({
328
+ ], u.value && !u.value.lineInfo && b?.(u.value).then((c) => {
329
+ if (c && u.value) {
330
+ const { pointInfo: a, lineInfo: s } = c;
331
+ u.value.lineInfo = s, u.value.pointInfo = a, console.log("pointInfo", a), d.value.push({
619
332
  FID: 1,
620
- "shape*": c.value.layerType == "symbol" ? "point" : "line_string",
621
- 调查人员: r?.createUserName || "",
622
- 协查人员: r?.collaboratorUserName || "",
623
- 起点经纬度: `${r?.longitudeStart}, ${r?.latitudeStart}`,
624
- 起点海拔: r?.altitudeStart || "",
625
- 终点经纬度: `${r?.longitudeEnd}, ${r?.latitudeEnd}`,
626
- 终点海拔: r?.altitudeEnd || "",
627
- 所属项目: r?.projectName || "",
628
- 照片: JSON.parse(r?.imagesList ?? "[]").map((p) => p.url).join(", "),
629
- 调查时间: q(r?.createDate * 1e3).format("YYYY-MM-DD HH:mm"),
630
- 所属调查编号: r?.serialNumberAndCode || "",
631
- 备注: r?.remark || ""
333
+ "shape*": u.value.layerType == "symbol" ? "point" : "line_string",
334
+ 调查人员: a?.createUserName || "",
335
+ 协查人员: a?.collaboratorUserName || "",
336
+ 起点经纬度: `${a?.longitudeStart}, ${a?.latitudeStart}`,
337
+ 起点海拔: a?.altitudeStart || "",
338
+ 终点经纬度: `${a?.longitudeEnd}, ${a?.latitudeEnd}`,
339
+ 终点海拔: a?.altitudeEnd || "",
340
+ 所属项目: a?.projectName || "",
341
+ 照片: JSON.parse(a?.imagesList ?? "[]").map((v) => v.url).join(", "),
342
+ 调查时间: H(a?.createDate * 1e3).format("YYYY-MM-DD HH:mm"),
343
+ 所属调查编号: a?.serialNumberAndCode || "",
344
+ 备注: a?.remark || ""
632
345
  });
633
346
  }
634
347
  }));
635
- if (!G) return;
636
- if (!c.value) {
348
+ if (!Y) return;
349
+ if (!u.value) {
637
350
  console.warn("Topic is not set, cannot fetch data.");
638
351
  return;
639
352
  }
640
- if (!c.value?.sourceId) {
353
+ if (!u.value?.sourceId) {
641
354
  console.warn("Topic sourceId is not set, cannot fetch data.");
642
355
  return;
643
356
  }
644
- o.value = !0, G(c.value.sourceId, m.value, C.value).then((v) => {
645
- x.value = v.data.list, I.value = v.count, R();
357
+ n.value = !0, Y(u.value.sourceId, g.value, h.value).then((c) => {
358
+ y.value = c.data.list, x.value = c.count, R();
646
359
  }).finally(() => {
647
- o.value = !1;
360
+ n.value = !1;
648
361
  });
649
362
  }
650
363
  };
651
- ze(
652
- x,
364
+ de(
365
+ y,
653
366
  () => {
654
367
  R();
655
368
  },
656
369
  { deep: !0 }
657
370
  );
658
- const G = S(Ke);
659
- return a({
660
- open: J
661
- }), (v, r) => {
662
- const u = Y;
663
- return E(), j(h($e), {
371
+ const Y = z(be);
372
+ return o({
373
+ open: V
374
+ }), (c, a) => {
375
+ const s = F;
376
+ return w(), J(C(ye), {
664
377
  title: "地理图层属性表",
665
- modelValue: n.value,
666
- "onUpdate:modelValue": r[3] || (r[3] = (p) => n.value = p),
378
+ modelValue: r.value,
379
+ "onUpdate:modelValue": a[3] || (a[3] = (v) => r.value = v),
667
380
  width: "1000",
668
- center: h(t).dialogConfig.center,
669
- "before-close": l
381
+ center: C(t).dialogConfig.center,
382
+ "before-close": i
670
383
  }, {
671
- footer: N(() => [
672
- K("span", null, [
673
- O(h(H), {
674
- onClick: r[2] || (r[2] = (p) => n.value = !1)
384
+ footer: S(() => [
385
+ P("span", null, [
386
+ T(C(q), {
387
+ onClick: a[2] || (a[2] = (v) => r.value = !1)
675
388
  }, {
676
- default: N(() => [...r[4] || (r[4] = [
389
+ default: S(() => [...a[4] || (a[4] = [
677
390
  U("取消", -1)
678
391
  ])]),
679
392
  _: 1
680
393
  }),
681
- O(h(H), {
394
+ T(C(q), {
682
395
  type: "primary",
683
- onClick: V
396
+ onClick: O
684
397
  }, {
685
- default: N(() => [...r[5] || (r[5] = [
398
+ default: S(() => [...a[5] || (a[5] = [
686
399
  U("确定", -1)
687
400
  ])]),
688
401
  _: 1
689
402
  })
690
403
  ])
691
404
  ]),
692
- default: N(() => [
693
- K("div", ct, [
694
- ie((E(), j(h(Ye), {
695
- data: g.value,
405
+ default: S(() => [
406
+ P("div", Ae, [
407
+ X((w(), J(C(he), {
408
+ data: d.value,
696
409
  border: "",
697
410
  style: { width: "100%", "--el-table-header-bg-color": "#eee" },
698
411
  height: "400"
699
412
  }, {
700
- default: N(() => [
701
- (E(!0), Ve(Be, null, Je(s.value, (p, w) => (E(), j(h(Re), {
413
+ default: S(() => [
414
+ (w(!0), ve(ge, null, me(l.value, (v, L) => (w(), J(C(xe), {
702
415
  "min-width": "120",
703
- key: w,
704
- prop: p,
705
- label: p
416
+ key: L,
417
+ prop: v,
418
+ label: v
706
419
  }, null, 8, ["prop", "label"]))), 128))
707
420
  ]),
708
421
  _: 1
709
422
  }, 8, ["data"])), [
710
- [u, o.value]
423
+ [s, n.value]
711
424
  ]),
712
- K("div", dt, [
713
- O(h(Ge), {
714
- "current-page": m.value,
715
- "onUpdate:currentPage": r[0] || (r[0] = (p) => m.value = p),
716
- "page-size": C.value,
717
- "onUpdate:pageSize": r[1] || (r[1] = (p) => C.value = p),
425
+ P("div", Te, [
426
+ T(C(Ce), {
427
+ "current-page": g.value,
428
+ "onUpdate:currentPage": a[0] || (a[0] = (v) => g.value = v),
429
+ "page-size": h.value,
430
+ "onUpdate:pageSize": a[1] || (a[1] = (v) => h.value = v),
718
431
  "page-sizes": [10, 20, 50, 100],
719
432
  layout: "total, sizes, prev, pager, next, jumper",
720
- total: I.value,
721
- onSizeChange: T,
433
+ total: x.value,
434
+ onSizeChange: k,
722
435
  onCurrentChange: B
723
436
  }, null, 8, ["current-page", "page-size", "total"])
724
437
  ])
@@ -728,7 +441,7 @@ const ct = { class: "attribute-table-container" }, dt = { class: "pagination-con
728
441
  }, 8, ["modelValue", "center"]);
729
442
  };
730
443
  }
731
- }), xt = /* @__PURE__ */ Ue(vt, [["__scopeId", "data-v-833a0d24"]]);
444
+ }), Fe = /* @__PURE__ */ Ie(Ee, [["__scopeId", "data-v-833a0d24"]]);
732
445
  export {
733
- xt as default
446
+ Fe as default
734
447
  };