form-imagining 0.0.92-beta1 → 0.0.92-beta2

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 (58) hide show
  1. package/dist/App-DZeeXrAi.js +32 -0
  2. package/dist/Area-BHKEscV-.js +4 -0
  3. package/dist/Bar--Tn_i50U.js +4 -0
  4. package/dist/ChartsArea-0wrqHfos.js +4 -0
  5. package/dist/ChartsBar-De3wqxB9.js +4 -0
  6. package/dist/ChartsPie-M9v47a1y.js +4 -0
  7. package/dist/CheckBoxModel-DL90UDdw.js +4 -0
  8. package/dist/Col-DAuf-D27.js +4 -0
  9. package/dist/Collapse-D1wtVr4J.js +4 -0
  10. package/dist/CommonText copy-CnTaynHd.js +189 -0
  11. package/dist/Demo-B3jXn-Wm.js +201 -0
  12. package/dist/Demo-DCuaQcE7.js +72 -0
  13. package/dist/FView-D5njXTYr.js +4 -0
  14. package/dist/FX-Ds_RTNfB.js +4 -0
  15. package/dist/FormGridCopy-BhNEuN_v.js +168 -0
  16. package/dist/FormImagining-DPQkYBgj.js +9 -0
  17. package/dist/GenerateForm-Bc_gKUhp.js +4 -0
  18. package/dist/GenerateReport-MBi8bZl7.js +4 -0
  19. package/dist/HelloWorld-ozWUgTPI.js +9 -0
  20. package/dist/Input-/345/210/240/351/231/244-BSy1dpR9.js +87 -0
  21. package/dist/Label-/345/210/240/351/231/244-BlmENKyQ.js +92 -0
  22. package/dist/LabelModel-BAM6G3Ie.js +4 -0
  23. package/dist/Login-lb3t6gnq.js +9 -0
  24. package/dist/Pie-Bdwe3wcU.js +4 -0
  25. package/dist/PropertyIndex-DgQ24KcZ.js +4 -0
  26. package/dist/RView-CCm2BHv0.js +4 -0
  27. package/dist/SqlModule-DTW0tMR7.js +4 -0
  28. package/dist/SvgIconCopy-Bmi1qbTC.js +39 -0
  29. package/dist/TableBtnModal-r-13ZsI9.js +4 -0
  30. package/dist/TextModel-aT7LooUr.js +9 -0
  31. package/dist/childForm-BglEql5G.js +4 -0
  32. package/dist/cssMode-SsosamS5.js +1577 -0
  33. package/dist/form-imagining.js +1 -1
  34. package/dist/form-imagining.umd.cjs +3 -3
  35. package/dist/formTest-DdIjfGpu.js +19 -0
  36. package/dist/freemarker2-CcHBBlpf.js +995 -0
  37. package/dist/handlebars-DfcmDcw8.js +425 -0
  38. package/dist/html-CKJuyuep.js +314 -0
  39. package/dist/htmlMode-BWiO4pRY.js +1587 -0
  40. package/dist/index - /345/211/257/346/234/254-UCuyvE6m.js" +531 -0
  41. package/dist/index-B62shk7i.js +11 -0
  42. package/dist/index-BpyIDAPw.js +3323 -0
  43. package/dist/index-Ctpjp4rq.js +36 -0
  44. package/dist/index-wY48_10N.js +300162 -0
  45. package/dist/javascript-CPCjva_r.js +76 -0
  46. package/dist/jsonMode-BlL2u-dx.js +2002 -0
  47. package/dist/liquid-D3Ero-K5.js +246 -0
  48. package/dist/mdx-9y_7F0Bo.js +171 -0
  49. package/dist/python-CZaLu6bh.js +307 -0
  50. package/dist/razor-Bnmmlnh_.js +556 -0
  51. package/dist/style.css +1 -1
  52. package/dist/tableSelectDemo-DsTljq6I.js +134 -0
  53. package/dist/tableSelectDemo2-BaV81cyf.js +108 -0
  54. package/dist/tsMode-BMfmnceI.js +895 -0
  55. package/dist/typescript-BN1BF4_9.js +349 -0
  56. package/dist/xml-CSQLleJF.js +101 -0
  57. package/dist/yaml-DxoitMTx.js +212 -0
  58. package/package.json +1 -1
@@ -0,0 +1,531 @@
1
+ import { defineComponent as ye, ref as h, computed as O, watch as be, onMounted as he, onBeforeUnmount as Ce, resolveComponent as C, openBlock as _, createBlock as E, unref as p, withCtx as c, createVNode as r, createElementVNode as I, createTextVNode as k, isRef as xe, createCommentVNode as J, createElementBlock as we, Fragment as _e, renderList as Ie } from "vue";
2
+ import { aI as Se, aj as U, ao as Ee, C as ke, t as Ae, z as De, at as Oe, d as Te, o as ze, n as Ne, e as Ue, E as Me, q as je, p as Re, r as Pe, m as Fe, l as Le, as as Be, L as Ke, au as H, A as q, H as Xe, a8 as j, a9 as Ye, a4 as Je, ab as He, v as qe, u as Ve, aE as We, _ as Ge } from "./index-wY48_10N.js";
3
+ const Qe = { class: "container-left-arrow" }, Ze = { style: { "padding-left": "20px !important", "padding-right": "20px !important" } }, $e = { style: { display: "flex", "align-items": "center", margin: "0 20px 0 auto" } }, et = { style: { background: "#fff", textAlign: "center", height: "99%" } }, tt = { style: { padding: "10px" } }, lt = /* @__PURE__ */ ye({
4
+ __name: "index - 副本",
5
+ props: {
6
+ id: {
7
+ type: String,
8
+ default: "20260325"
9
+ }
10
+ },
11
+ setup(R) {
12
+ const { execute: A } = We(), V = Se(), T = R;
13
+ let i = h({ list: [], config: { layout: "portrait", pageMargin: "zhai" } });
14
+ const w = h(!1);
15
+ let W = h(!1);
16
+ const P = h("1"), F = { width: 210, height: 297 }, L = { width: 297, height: 210 }, G = h(1);
17
+ let M = h(i.value.config.layout || "portrait");
18
+ const Q = O(() => i.value.config.pageMargin || "zhai"), Z = O(() => {
19
+ switch (Q.value) {
20
+ case "cg":
21
+ return U([2.54, 3.18, 2.54, 3.18]);
22
+ case "zhai":
23
+ return U([1.27, 1.27, 1.27, 1.27]);
24
+ case "zd":
25
+ return U([2.54, 1.91, 2.54, 1.91]);
26
+ default:
27
+ return U([1.27, 1.27, 1.27, 1.27]);
28
+ }
29
+ }), $ = O(() => M.value === "portrait" ? F.width : L.width), ee = O(() => M.value === "portrait" ? F.height : L.height);
30
+ function te(t) {
31
+ if (i.value.list.length > 0) {
32
+ let l = Math.max(...i.value.list.map((a) => a.y + a.height));
33
+ t.y = l + 10;
34
+ }
35
+ t.type === "table" && t.tableConfig && H(t.tableConfig);
36
+ const e = new q(
37
+ () => i.value,
38
+ // 函数引用,获取元素列表
39
+ [t]
40
+ // 要添加的组件
41
+ );
42
+ A(e), z(t);
43
+ }
44
+ const d = h(null), m = h(/* @__PURE__ */ new Set());
45
+ let b = h(null);
46
+ const D = O(() => {
47
+ if (d.value) {
48
+ let t = i.value.list.find((e) => e.id === d.value) || null;
49
+ if (t) {
50
+ if (t != null && t.type === "table") {
51
+ let e = { ...t };
52
+ return b.value && (e.selectedCell = b.value), e;
53
+ }
54
+ } else for (const e of i.value.list)
55
+ if (e.type === "table" && e.tableConfig && Array.isArray(e.tableConfig)) {
56
+ for (const l of e.tableConfig)
57
+ for (const a of l.tableCell)
58
+ if (a.cellObj) {
59
+ for (const n of a.cellObj)
60
+ if (n.id === d.value)
61
+ return n;
62
+ }
63
+ }
64
+ return t;
65
+ } else
66
+ return null;
67
+ }), B = h(null);
68
+ function z(t, e) {
69
+ const l = document.activeElement;
70
+ if (l && (l.isContentEditable || l.tagName === "INPUT" || l.tagName === "TEXTAREA" || l.tagName === "SELECT") && l.blur(), document.body.focus(), b.value = null, !t) {
71
+ d.value = null, m.value = /* @__PURE__ */ new Set();
72
+ return;
73
+ }
74
+ const a = (e == null ? void 0 : e.ctrlKey) || (e == null ? void 0 : e.metaKey), n = e == null ? void 0 : e.shiftKey;
75
+ if (a) {
76
+ const o = new Set(m.value);
77
+ o.has(t.id) ? (o.delete(t.id), d.value === t.id && (d.value = o.size > 0 ? Array.from(o)[0] : null)) : (o.add(t.id), m.value.size === 0 && (d.value = t.id)), m.value = o;
78
+ } else if (n && d.value) {
79
+ const o = i.value.list.findIndex((u) => u.id === d.value), s = i.value.list.findIndex((u) => u.id === t.id);
80
+ if (o !== -1 && s !== -1) {
81
+ const u = Math.min(o, s), v = Math.max(o, s), f = /* @__PURE__ */ new Set();
82
+ for (let y = u; y <= v; y++)
83
+ f.add(i.value.list[y].id);
84
+ m.value = f;
85
+ } else
86
+ d.value = t.id, m.value = /* @__PURE__ */ new Set([t.id]);
87
+ } else
88
+ d.value = t.id, m.value = /* @__PURE__ */ new Set([t.id]);
89
+ }
90
+ function le(t) {
91
+ if (m.value.size <= 1) return;
92
+ const { deltaX: e, deltaY: l, draggedElementId: a } = t;
93
+ m.value.forEach((n) => {
94
+ if (n === a) return;
95
+ const o = i.value.list.find((s) => s.id === n);
96
+ o && (o.x = Number((o.x + e).toFixed(2)), o.y = Number((o.y + l).toFixed(2)));
97
+ });
98
+ }
99
+ function ae(t) {
100
+ const e = t.target;
101
+ (e.classList.contains("ruler-content") || e.classList.contains("ruler-container")) && (d.value = null, m.value = /* @__PURE__ */ new Set(), b.value = null);
102
+ }
103
+ function K(t, e, l, a, n, o) {
104
+ return t >= l && t <= l + n && e >= a && e <= a + o;
105
+ }
106
+ function ne(t) {
107
+ const e = t.x + t.width / 2, l = t.y + t.height / 2;
108
+ for (let a = 0; a < i.value.list.length; a++) {
109
+ const n = i.value.list[a];
110
+ if (n.type === "table" && n.tableConfig && K(e, l, n.x, n.y, n.width, n.height) && Array.isArray(n.tableConfig)) {
111
+ let o = n.x, s = n.y;
112
+ for (let u = 0; u < n.tableConfig.length; u++) {
113
+ const v = n.tableConfig[u];
114
+ let f = s;
115
+ for (let y = 0; y < v.tableCell.length; y++) {
116
+ const x = v.tableCell[y];
117
+ if (K(e, l, o, f, x.width, v.height))
118
+ return {
119
+ table: n,
120
+ row: v,
121
+ cell: x
122
+ };
123
+ o += x.width;
124
+ }
125
+ o = n.x, s += v.height;
126
+ }
127
+ }
128
+ }
129
+ return null;
130
+ }
131
+ function N(t) {
132
+ t.selectedCell && (b.value = t.selectedCell);
133
+ const e = { ...t };
134
+ if (delete e.selectedCell, e.x, e.y, e.type === "table") {
135
+ const a = i.value.list.findIndex((n) => n.id === e.id);
136
+ a !== -1 && i.value.list.splice(a, 1), i.value.list.push(e);
137
+ return;
138
+ }
139
+ const l = ne(e);
140
+ if (!l || l.cell.ignore !== !0) {
141
+ const a = i.value.list.findIndex((n) => n.id === e.id);
142
+ if (a !== -1)
143
+ i.value.list.splice(a, 1);
144
+ else {
145
+ let n = !1;
146
+ for (let o = 0; o < i.value.list.length; o++) {
147
+ const s = i.value.list[o];
148
+ if (s.type === "table" && s.tableConfig && Array.isArray(s.tableConfig))
149
+ for (let u = 0; u < s.tableConfig.length; u++) {
150
+ const v = s.tableConfig[u];
151
+ for (let f = 0; f < v.tableCell.length; f++) {
152
+ const y = v.tableCell[f];
153
+ if (y.cellObj) {
154
+ const x = y.cellObj.findIndex((g) => g.id === e.id);
155
+ if (x !== -1) {
156
+ y.cellObj.splice(x, 1), n = !0;
157
+ break;
158
+ }
159
+ }
160
+ }
161
+ if (n) break;
162
+ }
163
+ if (n) break;
164
+ }
165
+ }
166
+ }
167
+ if (l) {
168
+ l.cell.cellObj || (l.cell.cellObj = []);
169
+ let a = l.table.x, n = l.table.y;
170
+ if (Array.isArray(l.table.tableConfig) && Array.isArray(l.row.tableCell)) {
171
+ const u = l.row.tableCell.indexOf(l.cell);
172
+ if (u !== -1)
173
+ for (let f = 0; f < u; f++)
174
+ a += l.row.tableCell[f].width;
175
+ const v = l.table.tableConfig.indexOf(l.row);
176
+ if (v !== -1)
177
+ for (let f = 0; f < v; f++)
178
+ n += l.table.tableConfig[f].height;
179
+ }
180
+ const o = e.x - a, s = e.y - n;
181
+ e.x = o, e.y = s, l.cell.cellObj.push(e);
182
+ } else
183
+ i.value.list.push(e);
184
+ }
185
+ function oe(t) {
186
+ d.value && (b.value = t);
187
+ }
188
+ function ie(t) {
189
+ N(t);
190
+ }
191
+ function re(t) {
192
+ i.value.config = {
193
+ ...i.value.config,
194
+ ...t
195
+ }, console.log("[index.vue] 报表配置已更新:", i.value.config);
196
+ }
197
+ be(() => b.value, (t) => {
198
+ if (!t)
199
+ return;
200
+ const e = D.value;
201
+ debugger;
202
+ if (e.type === "table") {
203
+ e.selectedCell = t, console.log("[index.vue] 选中的单元格已更新:", t);
204
+ const l = { ...e };
205
+ l.tableConfig && Array.isArray(l.tableConfig) && l.tableConfig.forEach((a, n) => {
206
+ n + 1 === b.value.row && a.tableCell.forEach((o, s) => {
207
+ s + 1 === b.value.col && (Object.assign(o, t), Object.assign(b.value, t));
208
+ });
209
+ }), N(l);
210
+ }
211
+ }, { deep: !0, immediate: !0 });
212
+ function se(t) {
213
+ }
214
+ function ue() {
215
+ console.log(JSON.stringify(i.value));
216
+ const t = { ...i.value }, e = new Xe(
217
+ () => i.value,
218
+ // 函数引用,获取元素列表
219
+ t,
220
+ // 旧状态(当前状态)
221
+ t
222
+ // 新状态(相同,因为我们只是保存快照)
223
+ );
224
+ A(e), de();
225
+ }
226
+ const de = () => {
227
+ j.post({ url: "/formapi/zrzy-form/form/report/edit", data: { id: T.id, content: Ye(JSON.stringify(i.value)) } }, { withToken: !0 }).then((e) => {
228
+ e.success && Je.success("保存成功");
229
+ });
230
+ };
231
+ let X = h([]);
232
+ function ce() {
233
+ return new Promise((t, e) => {
234
+ j.get({ url: "/formapi/zrzy-form/data/list", params: { formId: T.id } }, { withToken: !0 }).then((a) => {
235
+ a && a.success ? (X.value = a.result, t(!0)) : t(!1);
236
+ }).catch((a) => {
237
+ t(!1);
238
+ });
239
+ });
240
+ }
241
+ let S = h(!1);
242
+ function fe() {
243
+ S.value = !0;
244
+ }
245
+ function pe() {
246
+ window.open(window.location.origin + "/viewpdf?id=" + T.id);
247
+ }
248
+ function ge(t) {
249
+ t.preventDefault(), t.stopPropagation(), t.dataTransfer && (t.dataTransfer.dropEffect = "copy");
250
+ }
251
+ function me(t) {
252
+ if (t.preventDefault(), t.stopPropagation(), t.dataTransfer)
253
+ try {
254
+ const e = t.dataTransfer.getData("application/json");
255
+ if (e) {
256
+ const l = JSON.parse(e), a = document.querySelector(".ruler-content");
257
+ if (a) {
258
+ const n = a.getBoundingClientRect(), o = t.clientX - n.left, s = t.clientY - n.top;
259
+ l.x = Math.max(0, o - l.width / 2), l.y = Math.max(0, s - l.height / 2), l.id = He(l.type), l.type === "table" && l.tableConfig && H(l.tableConfig);
260
+ const u = new q(
261
+ () => i.value,
262
+ // 函数引用,获取元素列表
263
+ [l]
264
+ // 要添加的组件
265
+ );
266
+ A(u), z(l);
267
+ }
268
+ }
269
+ } catch (e) {
270
+ console.error("Failed to process dropped data:", e);
271
+ }
272
+ }
273
+ function Y(t) {
274
+ const e = t.target;
275
+ if (e) {
276
+ const o = e.tagName;
277
+ if (o === "INPUT" || o === "TEXTAREA" || o === "SELECT" || e.isContentEditable)
278
+ return;
279
+ }
280
+ if (t.key !== "Delete" && t.key !== "Backspace") return;
281
+ if (m.value.size > 1) {
282
+ const o = new qe(
283
+ () => i.value,
284
+ Array.from(m.value)
285
+ );
286
+ A(o), d.value = null, m.value = /* @__PURE__ */ new Set();
287
+ return;
288
+ }
289
+ if (!d.value) return;
290
+ const l = i.value.list.findIndex((o) => o.id === d.value);
291
+ if (l === -1) return;
292
+ const a = i.value.list[l], n = new Ve(
293
+ () => i.value,
294
+ // 函数引用,获取元素列表
295
+ a,
296
+ // 要删除的组件
297
+ l
298
+ // 组件在列表中的索引
299
+ );
300
+ A(n), d.value = null;
301
+ }
302
+ function ve() {
303
+ return new Promise((t, e) => {
304
+ j.get({ url: "/formapi/zrzy-form/form/report/query", params: { id: T.id } }, { withToken: !0 }).then((a) => {
305
+ a && a.success ? (i.value = JSON.parse(a.result.content), M.value = i.value.config.layout || "portrait", t(!0)) : t(!1);
306
+ }).catch((a) => {
307
+ t(!1);
308
+ });
309
+ });
310
+ }
311
+ return he(async () => {
312
+ typeof document < "u" && document.addEventListener("keydown", Y), await V.initToken(), await ce(), await ve(), Ee(i.value);
313
+ }), Ce(() => {
314
+ typeof document < "u" && document.removeEventListener("keydown", Y);
315
+ }), (t, e) => {
316
+ const l = C("a-tab-pane"), a = C("a-tabs"), n = C("a-layout-sider"), o = C("a-button"), s = C("a-modal"), u = C("a-space"), v = C("a-layout-header"), f = C("a-layout-content"), y = C("a-layout"), x = C("a-spin");
317
+ return _(), E(x, {
318
+ spinning: p(W),
319
+ wrapperClassName: "cici-spin-css"
320
+ }, {
321
+ default: c(() => [
322
+ r(y, { style: { height: "100%", padding: "5px 5px" } }, {
323
+ default: c(() => [
324
+ r(n, {
325
+ width: "310",
326
+ style: { left: 0, top: 0, bottom: 0, background: "#fff" },
327
+ "collapsed-width": "0",
328
+ collapsed: w.value,
329
+ "onUpdate:collapsed": e[3] || (e[3] = (g) => w.value = g),
330
+ trigger: null,
331
+ collapsible: ""
332
+ }, {
333
+ default: c(() => [
334
+ r(a, {
335
+ activeKey: P.value,
336
+ "onUpdate:activeKey": e[0] || (e[0] = (g) => P.value = g),
337
+ class: "form-tabs"
338
+ }, {
339
+ default: c(() => [
340
+ r(l, { key: "1" }, {
341
+ tab: c(() => [
342
+ I("span", null, [
343
+ r(p(Ae)),
344
+ e[5] || (e[5] = k(" 数据 ", -1))
345
+ ])
346
+ ]),
347
+ default: c(() => [
348
+ r(ke, {
349
+ formId: R.id,
350
+ data: p(X)
351
+ }, null, 8, ["formId", "data"])
352
+ ]),
353
+ _: 1
354
+ }),
355
+ r(l, { key: "2" }, {
356
+ tab: c(() => [
357
+ I("span", null, [
358
+ r(p(Te)),
359
+ e[6] || (e[6] = k(" 组件 ", -1))
360
+ ])
361
+ ]),
362
+ default: c(() => [
363
+ r(De, {
364
+ "data-source": p(Oe),
365
+ "onUpdate:elements": te
366
+ }, null, 8, ["data-source"])
367
+ ]),
368
+ _: 1
369
+ })
370
+ ]),
371
+ _: 1
372
+ }, 8, ["activeKey"]),
373
+ I("div", Qe, [
374
+ w.value ? (_(), E(p(ze), {
375
+ key: 0,
376
+ onClick: e[1] || (e[1] = () => w.value = !w.value)
377
+ })) : (_(), E(p(Ne), {
378
+ key: 1,
379
+ onClick: e[2] || (e[2] = () => w.value = !w.value)
380
+ }))
381
+ ])
382
+ ]),
383
+ _: 1
384
+ }, 8, ["collapsed"]),
385
+ r(y, { style: { margin: "0px 5px" } }, {
386
+ default: c(() => [
387
+ r(v, { style: { background: "#fff", border: "1px solid #e4e7ed", borderBottom: "0px", display: "flex !important", justifyContent: "space-between !important" } }, {
388
+ default: c(() => [
389
+ I("div", Ze, [
390
+ r(u, null, {
391
+ default: c(() => [
392
+ r(o, {
393
+ onClick: ue,
394
+ type: "primary",
395
+ size: "small"
396
+ }, {
397
+ default: c(() => [
398
+ r(p(Ue)),
399
+ e[7] || (e[7] = k("保存 ", -1))
400
+ ]),
401
+ _: 1
402
+ }),
403
+ r(o, {
404
+ onClick: fe,
405
+ size: "small"
406
+ }, {
407
+ default: c(() => [
408
+ r(p(Me)),
409
+ e[8] || (e[8] = k(" JSON ", -1))
410
+ ]),
411
+ _: 1
412
+ }),
413
+ e[10] || (e[10] = k("   ", -1)),
414
+ r(s, {
415
+ open: p(S),
416
+ "onUpdate:open": e[4] || (e[4] = (g) => xe(S) ? S.value = g : S = g),
417
+ title: "代码",
418
+ width: "1000px",
419
+ footer: !1
420
+ }, {
421
+ default: c(() => [
422
+ p(S) ? (_(), E(je, {
423
+ key: 0,
424
+ code: JSON.stringify(p(i)),
425
+ language: "json"
426
+ }, null, 8, ["code"])) : J("", !0)
427
+ ]),
428
+ _: 1
429
+ }, 8, ["open"]),
430
+ r(o, {
431
+ onClick: pe,
432
+ type: "primary",
433
+ size: "small"
434
+ }, {
435
+ default: c(() => [
436
+ r(p(Re)),
437
+ e[9] || (e[9] = k("在线预览 ", -1))
438
+ ]),
439
+ _: 1
440
+ })
441
+ ]),
442
+ _: 1
443
+ })
444
+ ]),
445
+ I("div", $e, [
446
+ D.value ? (_(), E(Pe, {
447
+ key: 0,
448
+ textElement: D.value.type === "table" && p(b) ? p(b) : D.value,
449
+ "onUpdate:textElement": se,
450
+ style: { "padding-right": "20px" }
451
+ }, null, 8, ["textElement"])) : J("", !0)
452
+ ])
453
+ ]),
454
+ _: 1
455
+ }),
456
+ r(f, { style: { overflow: "auto" } }, {
457
+ default: c(() => [
458
+ I("div", et, [
459
+ r(Fe, {
460
+ ref_key: "rulerRef",
461
+ ref: B,
462
+ width: $.value,
463
+ height: ee.value,
464
+ scale: G.value,
465
+ thick: 30,
466
+ margin: Z.value,
467
+ onDrop: me,
468
+ onDragover: ge,
469
+ onClick: ae
470
+ }, {
471
+ default: c(() => [
472
+ (_(!0), we(_e, null, Ie(p(i).list, (g) => (_(), E(Le, {
473
+ key: g.id,
474
+ element: g,
475
+ rulerRef: B.value,
476
+ selected: g.id === d.value,
477
+ isMultiSelected: m.value.has(g.id),
478
+ hasMultiSelection: m.value.size > 1,
479
+ "onUpdate:element": N,
480
+ onSelect: z,
481
+ onMultiDrag: le
482
+ }, {
483
+ default: c(() => [
484
+ r(Be, {
485
+ element: g,
486
+ selectedCell: g.id === d.value ? p(b) : null,
487
+ "onUpdate:element": N,
488
+ "onUpdate:selectedCell": oe,
489
+ onSelect: z
490
+ }, null, 8, ["element", "selectedCell"])
491
+ ]),
492
+ _: 2
493
+ }, 1032, ["element", "rulerRef", "selected", "isMultiSelected", "hasMultiSelection"]))), 128))
494
+ ]),
495
+ _: 1
496
+ }, 8, ["width", "height", "scale", "margin"])
497
+ ])
498
+ ]),
499
+ _: 1
500
+ })
501
+ ]),
502
+ _: 1
503
+ }),
504
+ r(n, {
505
+ width: "330",
506
+ style: { right: 0, top: 0, bottom: 0, background: "#fff", overflow: "auto" }
507
+ }, {
508
+ default: c(() => [
509
+ I("div", tt, [
510
+ r(Ke, {
511
+ element: D.value,
512
+ reportConfig: p(i).config,
513
+ "onUpdate:element": ie,
514
+ "onUpdate:reportConfig": re
515
+ }, null, 8, ["element", "reportConfig"])
516
+ ])
517
+ ]),
518
+ _: 1
519
+ })
520
+ ]),
521
+ _: 1
522
+ })
523
+ ]),
524
+ _: 1
525
+ }, 8, ["spinning"]);
526
+ };
527
+ }
528
+ }), it = /* @__PURE__ */ Ge(lt, [["__scopeId", "data-v-98e3c762"]]);
529
+ export {
530
+ it as default
531
+ };
@@ -0,0 +1,11 @@
1
+ import { defineComponent as e, openBlock as o, createBlock as r, unref as t } from "vue";
2
+ import { R as n } from "./index-wY48_10N.js";
3
+ const f = /* @__PURE__ */ e({
4
+ __name: "index",
5
+ setup(c) {
6
+ return (p, _) => (o(), r(t(n)));
7
+ }
8
+ });
9
+ export {
10
+ f as default
11
+ };