yh-report 2.0.7 → 2.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{StatementDesign-df9afb8d.mjs → StatementDesign-d556a432.mjs} +282 -281
- package/StatementDesign-d556a432.mjs.map +1 -0
- package/{StatementDetail-8c150a0e.mjs → StatementDetail-baf9e626.mjs} +2 -2
- package/{StatementDetail-8c150a0e.mjs.map → StatementDetail-baf9e626.mjs.map} +1 -1
- package/{StatementList-966556cb.mjs → StatementList-b4f08154.mjs} +2 -2
- package/{StatementList-966556cb.mjs.map → StatementList-b4f08154.mjs.map} +1 -1
- package/{index-0e50ad4c.mjs → index-f102cf35.mjs} +5 -5
- package/{index-0e50ad4c.mjs.map → index-f102cf35.mjs.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/StatementDesign-df9afb8d.mjs.map +0 -1
|
@@ -3,7 +3,7 @@ import { ElMessage as Ln, ElEmpty as Dm, ElDialog as Zf, ElFormItem as he, ElInp
|
|
|
3
3
|
import { useRoute as Af, onBeforeRouteLeave as Im } from "vue-router";
|
|
4
4
|
import { useFullscreen as Gm } from "@vueuse/core";
|
|
5
5
|
import { defineStore as jm, storeToRefs as Dt } from "pinia";
|
|
6
|
-
import { b as Fm, s as Hm, C as ee, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-
|
|
6
|
+
import { b as Fm, s as Hm, C as ee, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as Ei, p as ig, h as Vf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag, v as hg } from "./index-f102cf35.mjs";
|
|
7
7
|
import { cloneDeep as Ol, set as ni, get as ug } from "lodash-es";
|
|
8
8
|
import "@/libs/api.request.js";
|
|
9
9
|
import "echarts";
|
|
@@ -98,7 +98,7 @@ const Lt = function() {
|
|
|
98
98
|
class: "params-desinger desinger-container report-drop-target",
|
|
99
99
|
"data-source": "column",
|
|
100
100
|
"data-target": "params"
|
|
101
|
-
}, Og = ["
|
|
101
|
+
}, Og = ["data-index"], pg = /* @__PURE__ */ M("i", { class: "iconfont icon-delete" }, null, -1), mg = [
|
|
102
102
|
pg
|
|
103
103
|
], gg = { class: "report-desinger-container" }, _g = { class: "report-desinger-toolbar" }, Qg = { class: "report-desinger-table" }, bg = /* @__PURE__ */ M("col", { width: 80 }, null, -1), yg = ["width"], Sg = ["title", "data-area", "data-col", "data-row", "data-index", "rowspan", "colspan"], vg = ["data-index", "data-col"], xg = ["data-index", "data-row"], $g = {
|
|
104
104
|
key: 2,
|
|
@@ -113,8 +113,8 @@ const Lt = function() {
|
|
|
113
113
|
setup(n, { emit: e }) {
|
|
114
114
|
const t = n, i = Lt(), { activeIndex: s, active: r, activeParamIndex: o, activeCells: l, detail: a } = Dt(i), { prevActive: u, nextActive: h } = i, c = be(() => {
|
|
115
115
|
if (k.value && l.value && l.value.length === 1) {
|
|
116
|
-
let { col: z, row:
|
|
117
|
-
return k.value[
|
|
116
|
+
let { col: z, row: A } = l.value[0];
|
|
117
|
+
return k.value[A + 1].cols[z + 1] || {};
|
|
118
118
|
} else
|
|
119
119
|
return {};
|
|
120
120
|
}), f = be(() => t.option), d = be({
|
|
@@ -124,22 +124,22 @@ const Lt = function() {
|
|
|
124
124
|
set(z) {
|
|
125
125
|
f.value.colConfig = z;
|
|
126
126
|
}
|
|
127
|
-
}), p = be(() => d.value.reduce((z,
|
|
127
|
+
}), p = be(() => d.value.reduce((z, A) => z + A.size, 80));
|
|
128
128
|
function _(z) {
|
|
129
129
|
return String.fromCharCode(z);
|
|
130
130
|
}
|
|
131
131
|
function m(z) {
|
|
132
132
|
return z === 0 ? "" : z > 26 ? _(65 + (z / 26 - 1)) + _(65 + z % 26) : _(64 + z);
|
|
133
133
|
}
|
|
134
|
-
function O(z,
|
|
134
|
+
function O(z, A, v, q = -1) {
|
|
135
135
|
if (Array.isArray(z))
|
|
136
|
-
return z.some((
|
|
136
|
+
return z.some((V) => O(V, A, v, q));
|
|
137
137
|
if (z === null || typeof z != "object")
|
|
138
138
|
return !1;
|
|
139
|
-
const { type: Y, col: W, row: ne, index:
|
|
140
|
-
if (
|
|
139
|
+
const { type: Y, col: W, row: ne, index: ie } = z;
|
|
140
|
+
if (ie !== t.index || !Y)
|
|
141
141
|
return !1;
|
|
142
|
-
switch (
|
|
142
|
+
switch (A) {
|
|
143
143
|
case ee.COL:
|
|
144
144
|
return [ee.CELL, ee.COL].includes(Y) && W === v - 1;
|
|
145
145
|
case ee.ROW:
|
|
@@ -168,7 +168,7 @@ const Lt = function() {
|
|
|
168
168
|
bindDataLoop: !1
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
const k = ue([]), X = be(() => Ol(k.value).map((
|
|
171
|
+
const k = ue([]), X = be(() => Ol(k.value).map((A) => (A.cols = A.cols.filter((v) => v.rowSpan !== 0 && v.colSpan !== 0), A)));
|
|
172
172
|
as(
|
|
173
173
|
[l, r, f],
|
|
174
174
|
() => {
|
|
@@ -178,11 +178,11 @@ const Lt = function() {
|
|
|
178
178
|
);
|
|
179
179
|
function $() {
|
|
180
180
|
var W, ne;
|
|
181
|
-
let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5,
|
|
182
|
-
for (let
|
|
183
|
-
const
|
|
181
|
+
let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((ne = f.value.colConfig) == null ? void 0 : ne.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
|
|
182
|
+
for (let ie = 0; ie < A + 1; ie++) {
|
|
183
|
+
const V = O(v, ee.COL, ie), { bindData: _e, bindDataLoop: de } = R(ie - 1), Ce = V || !1;
|
|
184
184
|
let _s = {
|
|
185
|
-
text: m(
|
|
185
|
+
text: m(ie),
|
|
186
186
|
styleAttr: "",
|
|
187
187
|
class: "mouse-down-target head",
|
|
188
188
|
active: Ce,
|
|
@@ -190,7 +190,7 @@ const Lt = function() {
|
|
|
190
190
|
loop: de,
|
|
191
191
|
type: ee.HEAD,
|
|
192
192
|
row: -1,
|
|
193
|
-
col:
|
|
193
|
+
col: ie - 1,
|
|
194
194
|
colSpan: 1,
|
|
195
195
|
rowSpan: 1
|
|
196
196
|
};
|
|
@@ -202,24 +202,24 @@ const Lt = function() {
|
|
|
202
202
|
loop: !1,
|
|
203
203
|
cols: Y
|
|
204
204
|
});
|
|
205
|
-
for (let
|
|
206
|
-
const
|
|
205
|
+
for (let ie = 0; ie < z; ie++) {
|
|
206
|
+
const V = O(v, ee.ROW, ie), _e = [], de = {
|
|
207
207
|
type: ee.HEAD,
|
|
208
|
-
active:
|
|
208
|
+
active: V,
|
|
209
209
|
styleAttr: "",
|
|
210
210
|
class: "mouse-down-target head",
|
|
211
211
|
bind: !1,
|
|
212
212
|
loop: !1,
|
|
213
|
-
text: (
|
|
213
|
+
text: (ie + 1).toString(),
|
|
214
214
|
col: -1,
|
|
215
|
-
row:
|
|
215
|
+
row: ie,
|
|
216
216
|
colSpan: 1,
|
|
217
217
|
rowSpan: 1
|
|
218
218
|
};
|
|
219
|
-
|
|
220
|
-
for (let Vi = 0; Vi <
|
|
221
|
-
const _h = O(v, ee.CELL, Vi,
|
|
222
|
-
let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[
|
|
219
|
+
V && (de.class += " active"), _e.push(de);
|
|
220
|
+
for (let Vi = 0; Vi < A; Vi++) {
|
|
221
|
+
const _h = O(v, ee.CELL, Vi, ie);
|
|
222
|
+
let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[ie] ? f.value.config[ie][Vi] : null;
|
|
223
223
|
if (Qe) {
|
|
224
224
|
let Qi = "", Qh = "", ao = ee.TEXT;
|
|
225
225
|
if (Qe && Qe.type) {
|
|
@@ -253,16 +253,16 @@ const Lt = function() {
|
|
|
253
253
|
loop: !1,
|
|
254
254
|
type: ao,
|
|
255
255
|
col: Vi,
|
|
256
|
-
row:
|
|
256
|
+
row: ie,
|
|
257
257
|
colSpan: Qe.colSpan !== void 0 && !isNaN(Qe.colSpan) ? Qe.colSpan : 1,
|
|
258
258
|
rowSpan: Qe.rowSpan !== void 0 && !isNaN(Qe.rowSpan) ? Qe.rowSpan : 1
|
|
259
259
|
};
|
|
260
260
|
_h && (bh.class += " active"), _e.push(bh);
|
|
261
261
|
}
|
|
262
262
|
}
|
|
263
|
-
const { bindData: Ce, bindDataLoop: _s } = y(
|
|
263
|
+
const { bindData: Ce, bindDataLoop: _s } = y(ie);
|
|
264
264
|
q.push({
|
|
265
|
-
size: f.value.rowConfig[
|
|
265
|
+
size: f.value.rowConfig[ie].size || 80,
|
|
266
266
|
bind: Ce,
|
|
267
267
|
loop: _s,
|
|
268
268
|
cols: _e
|
|
@@ -273,20 +273,20 @@ const Lt = function() {
|
|
|
273
273
|
const C = be(() => {
|
|
274
274
|
let z = "";
|
|
275
275
|
f.value.widthType === "%" ? z = `calc( ${f.value.width}${f.value.widthType} - 10px)` : z = `${f.value.width - 10}${f.value.widthType}`;
|
|
276
|
-
let
|
|
276
|
+
let A = `${f.value.height}px`;
|
|
277
277
|
return {
|
|
278
278
|
width: z,
|
|
279
|
-
height:
|
|
279
|
+
height: A
|
|
280
280
|
};
|
|
281
281
|
}), w = be({
|
|
282
282
|
get() {
|
|
283
283
|
var z;
|
|
284
|
-
return (z = f.value.params) == null ? void 0 : z.map((
|
|
285
|
-
const { componentName: v, placeholerPrefix: q, type: Y } = Jm(
|
|
284
|
+
return (z = f.value.params) == null ? void 0 : z.map((A) => {
|
|
285
|
+
const { componentName: v, placeholerPrefix: q, type: Y } = Jm(A.dataType);
|
|
286
286
|
return {
|
|
287
|
-
...
|
|
287
|
+
...A,
|
|
288
288
|
componentName: v,
|
|
289
|
-
placeholer: q +
|
|
289
|
+
placeholer: q + A.name,
|
|
290
290
|
type: Y
|
|
291
291
|
};
|
|
292
292
|
});
|
|
@@ -295,16 +295,15 @@ const Lt = function() {
|
|
|
295
295
|
return f.value.params;
|
|
296
296
|
}
|
|
297
297
|
});
|
|
298
|
-
function P(z
|
|
299
|
-
let
|
|
300
|
-
if (
|
|
298
|
+
function P(z) {
|
|
299
|
+
let A = z.target;
|
|
300
|
+
if (A = A == null ? void 0 : A.closest(".del"), A && A.dataset) {
|
|
301
301
|
z.stopPropagation();
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
}
|
|
302
|
+
let { type: v, index: q } = A.dataset;
|
|
303
|
+
const Y = Number(q);
|
|
304
|
+
if (!Number.isInteger(Y))
|
|
305
|
+
return;
|
|
306
|
+
v === "params" && f.value && Array.isArray(f.value.params) && f.value.params.splice(Y, 1);
|
|
308
307
|
}
|
|
309
308
|
}
|
|
310
309
|
const g = ue();
|
|
@@ -326,23 +325,23 @@ const Lt = function() {
|
|
|
326
325
|
});
|
|
327
326
|
let L = null;
|
|
328
327
|
function I(z) {
|
|
329
|
-
var
|
|
330
|
-
if ((
|
|
328
|
+
var A, v;
|
|
329
|
+
if ((A = z.target) != null && A.closest(".report-desinger-table-content")) {
|
|
331
330
|
let { pageX: q, pageY: Y } = z, { x: W = 0, y: ne = 0 } = ((v = g.value) == null ? void 0 : v.getBoundingClientRect()) || {};
|
|
332
331
|
L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY = ne, E.left = q - W + "px", E.top = Y - ne + "px";
|
|
333
332
|
}
|
|
334
333
|
}
|
|
335
334
|
function N(z) {
|
|
336
335
|
if (L !== null) {
|
|
337
|
-
let { pageX:
|
|
338
|
-
|
|
336
|
+
let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: ne } = L;
|
|
337
|
+
A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v > ne ? E.height = v - ne - 1 + "px" : (E.top = v - Y + "px", E.height = ne - v + "px");
|
|
339
338
|
}
|
|
340
339
|
}
|
|
341
340
|
function se(z) {
|
|
342
341
|
L = null, E.width = "0px", E.height = "0px", E.left = "0px", E.top = "0px";
|
|
343
342
|
}
|
|
344
343
|
return un(async () => {
|
|
345
|
-
var z,
|
|
344
|
+
var z, A;
|
|
346
345
|
if (!f.value.colConfig) {
|
|
347
346
|
let v = [], q = 10;
|
|
348
347
|
(z = f.value.config) != null && z.length && (q = f.value.config[0].length);
|
|
@@ -355,7 +354,7 @@ const Lt = function() {
|
|
|
355
354
|
}
|
|
356
355
|
if (!f.value.rowConfig) {
|
|
357
356
|
let v = [], q = 5;
|
|
358
|
-
(
|
|
357
|
+
(A = f.value.config) != null && A.length && (q = f.value.config.length);
|
|
359
358
|
for (let Y = 0; Y < q; Y++)
|
|
360
359
|
v.push({
|
|
361
360
|
size: 40,
|
|
@@ -367,7 +366,7 @@ const Lt = function() {
|
|
|
367
366
|
}), Wr(() => {
|
|
368
367
|
var z;
|
|
369
368
|
(z = g.value) == null || z.removeEventListener("mousedown", I), document.removeEventListener("mousemove", N), document.removeEventListener("mouseup", se);
|
|
370
|
-
}), (z,
|
|
369
|
+
}), (z, A) => {
|
|
371
370
|
const v = fe("el-form-item"), q = fe("el-form"), Y = fe("el-button");
|
|
372
371
|
return U(), K("div", {
|
|
373
372
|
class: cr(["yh-statement-table report-drop-target", { active: t.index === b(s) }]),
|
|
@@ -387,7 +386,7 @@ const Lt = function() {
|
|
|
387
386
|
"data-drag": "params",
|
|
388
387
|
"data-source": "column",
|
|
389
388
|
"data-target": "params",
|
|
390
|
-
onClick: (
|
|
389
|
+
onClick: (ie) => o.value = ne,
|
|
391
390
|
"data-index": ne,
|
|
392
391
|
label: W.name
|
|
393
392
|
}, {
|
|
@@ -398,7 +397,9 @@ const Lt = function() {
|
|
|
398
397
|
}, null, 8, ["type", "placeholder"])),
|
|
399
398
|
M("div", {
|
|
400
399
|
class: "del",
|
|
401
|
-
|
|
400
|
+
"data-type": "params",
|
|
401
|
+
"data-index": ne,
|
|
402
|
+
onClick: P
|
|
402
403
|
}, mg, 8, Og)
|
|
403
404
|
]),
|
|
404
405
|
_: 2
|
|
@@ -420,13 +421,13 @@ const Lt = function() {
|
|
|
420
421
|
width: W == null ? void 0 : W.size
|
|
421
422
|
}, null, 8, yg))), 256))
|
|
422
423
|
]),
|
|
423
|
-
(U(!0), K(re, null, Fe(b(X), ({ size: W, cols: ne, bind:
|
|
424
|
+
(U(!0), K(re, null, Fe(b(X), ({ size: W, cols: ne, bind: ie, loop: V }, _e) => (U(), K("tr", {
|
|
424
425
|
style: Ct(`height: ${W}px;`)
|
|
425
426
|
}, [
|
|
426
427
|
(U(!0), K(re, null, Fe(ne, (de, Ce) => (U(), K("td", {
|
|
427
428
|
class: cr(de.class),
|
|
428
429
|
style: Ct(de.styleAttr),
|
|
429
|
-
title: `${(
|
|
430
|
+
title: `${(ie || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
|
|
430
431
|
"data-source": "column",
|
|
431
432
|
"data-target": "column",
|
|
432
433
|
"data-area": de.type === "head" ? "head" : "cell",
|
|
@@ -453,7 +454,7 @@ const Lt = function() {
|
|
|
453
454
|
"data-index": t.index,
|
|
454
455
|
"data-row": _e - 1
|
|
455
456
|
}, null, 8, xg)) : ae("", !0),
|
|
456
|
-
|
|
457
|
+
V || de.loop ? (U(), K("i", $g)) : ae("", !0)
|
|
457
458
|
], 64)) : ae("", !0)
|
|
458
459
|
], 14, Sg))), 256))
|
|
459
460
|
], 4))), 256))
|
|
@@ -464,7 +465,7 @@ const Lt = function() {
|
|
|
464
465
|
Q(Y, {
|
|
465
466
|
type: "primary",
|
|
466
467
|
disabled: t.index === 0,
|
|
467
|
-
onClick:
|
|
468
|
+
onClick: A[0] || (A[0] = (W) => b(u)(t.index))
|
|
468
469
|
}, {
|
|
469
470
|
default: x(() => [
|
|
470
471
|
wg
|
|
@@ -474,7 +475,7 @@ const Lt = function() {
|
|
|
474
475
|
Q(Y, {
|
|
475
476
|
type: "primary",
|
|
476
477
|
disabled: t.index >= b(a).options.length - 1,
|
|
477
|
-
onClick:
|
|
478
|
+
onClick: A[1] || (A[1] = (W) => b(h)(t.index))
|
|
478
479
|
}, {
|
|
479
480
|
default: x(() => [
|
|
480
481
|
kg
|
|
@@ -734,14 +735,14 @@ const Lt = function() {
|
|
|
734
735
|
const C = k ? parseInt(k) : -1;
|
|
735
736
|
let w = X ? parseInt(X) : -1, P = $ ? parseInt($) : -1, { droparea: g, index: Z, rindex: T, cindex: E } = c;
|
|
736
737
|
if (g === R && Z === C && E !== void 0 && E > -1 && T !== void 0 && T > -1) {
|
|
737
|
-
let [L, I] = [E, w].sort((
|
|
738
|
-
for (let
|
|
738
|
+
let [L, I] = [E, w].sort((A, v) => A - v), [N, se] = [T, P].sort((A, v) => A - v), z = [];
|
|
739
|
+
for (let A = N; A <= se; A++)
|
|
739
740
|
for (let v = L; v <= I; v++)
|
|
740
741
|
z.push({
|
|
741
742
|
type: ee.CELL,
|
|
742
743
|
index: C,
|
|
743
744
|
col: v,
|
|
744
|
-
row:
|
|
745
|
+
row: A
|
|
745
746
|
});
|
|
746
747
|
r.value = z;
|
|
747
748
|
} else if ([ee.COL, ee.ROW].includes(g) && (E !== void 0 && E > -1 || T !== void 0 && T > -1)) {
|
|
@@ -749,22 +750,22 @@ const Lt = function() {
|
|
|
749
750
|
switch (g) {
|
|
750
751
|
case ee.COL:
|
|
751
752
|
if (I !== void 0 && N !== void 0 && N > -1)
|
|
752
|
-
for (let
|
|
753
|
+
for (let A = I; A <= N; A++)
|
|
753
754
|
L.push({
|
|
754
755
|
type: ee.COL,
|
|
755
756
|
index: C,
|
|
756
|
-
col:
|
|
757
|
+
col: A,
|
|
757
758
|
row: -1
|
|
758
759
|
});
|
|
759
760
|
break;
|
|
760
761
|
case ee.ROW:
|
|
761
762
|
if (se !== void 0 && z !== void 0 && z > -1)
|
|
762
|
-
for (let
|
|
763
|
+
for (let A = se; A <= z; A++)
|
|
763
764
|
L.push({
|
|
764
765
|
type: ee.ROW,
|
|
765
766
|
index: C,
|
|
766
767
|
col: -1,
|
|
767
|
-
row:
|
|
768
|
+
row: A
|
|
768
769
|
});
|
|
769
770
|
break;
|
|
770
771
|
}
|
|
@@ -4964,7 +4965,7 @@ class ti {
|
|
|
4964
4965
|
var He = /* @__PURE__ */ function(n) {
|
|
4965
4966
|
return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
|
|
4966
4967
|
}(He || (He = {}));
|
|
4967
|
-
class
|
|
4968
|
+
class te extends ki {
|
|
4968
4969
|
constructor(e, t, i, s) {
|
|
4969
4970
|
super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = s;
|
|
4970
4971
|
}
|
|
@@ -5030,8 +5031,8 @@ class ie extends ki {
|
|
|
5030
5031
|
return this.widget ? this.widget.estimatedHeight > -1 : !1;
|
|
5031
5032
|
}
|
|
5032
5033
|
}
|
|
5033
|
-
|
|
5034
|
-
class hs extends
|
|
5034
|
+
te.none = ge.empty;
|
|
5035
|
+
class hs extends te {
|
|
5035
5036
|
constructor(e) {
|
|
5036
5037
|
let { start: t, end: i } = pd(e);
|
|
5037
5038
|
super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
|
|
@@ -5047,7 +5048,7 @@ class hs extends ie {
|
|
|
5047
5048
|
}
|
|
5048
5049
|
}
|
|
5049
5050
|
hs.prototype.point = !1;
|
|
5050
|
-
class us extends
|
|
5051
|
+
class us extends te {
|
|
5051
5052
|
constructor(e) {
|
|
5052
5053
|
super(-2e8, -2e8, null, e);
|
|
5053
5054
|
}
|
|
@@ -5062,7 +5063,7 @@ class us extends ie {
|
|
|
5062
5063
|
}
|
|
5063
5064
|
us.prototype.mapMode = We.TrackBefore;
|
|
5064
5065
|
us.prototype.point = !0;
|
|
5065
|
-
class di extends
|
|
5066
|
+
class di extends te {
|
|
5066
5067
|
constructor(e, t, i, s, r, o) {
|
|
5067
5068
|
super(t, i, r, e), this.block = s, this.isReplace = o, this.mapMode = s ? t <= 0 ? We.TrackBefore : We.TrackAfter : We.TrackDel;
|
|
5068
5069
|
}
|
|
@@ -5699,7 +5700,7 @@ class Ee {
|
|
|
5699
5700
|
let a = [Tn.of(l)];
|
|
5700
5701
|
return o && a.push(In.of((u) => {
|
|
5701
5702
|
let h = u.plugin(l);
|
|
5702
|
-
return h ? o(h) :
|
|
5703
|
+
return h ? o(h) : te.none;
|
|
5703
5704
|
})), r && a.push(r(l)), a;
|
|
5704
5705
|
});
|
|
5705
5706
|
}
|
|
@@ -5897,7 +5898,7 @@ class Uh extends xe {
|
|
|
5897
5898
|
return this.view.state.doc.length;
|
|
5898
5899
|
}
|
|
5899
5900
|
constructor(e) {
|
|
5900
|
-
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting =
|
|
5901
|
+
super(), this.view = e, this.decorations = [], this.dynamicDecorationMap = [!1], this.domChanged = null, this.hasComposition = null, this.markedForComposition = /* @__PURE__ */ new Set(), this.editContextFormatting = te.none, this.lastCompositionAfterCursor = !1, this.minWidth = 0, this.minWidthFrom = 0, this.minWidthTo = 0, this.impreciseAnchor = null, this.impreciseHead = null, this.forceSelection = !1, this.lastUpdate = Date.now(), this.setDOM(e.contentDOM), this.children = [new Ve()], this.children[0].setParent(this), this.updateDeco(), this.updateInner([new pt(0, 0, 0, e.state.doc.length)], 0, null);
|
|
5901
5902
|
}
|
|
5902
5903
|
// Update the document view to a given state.
|
|
5903
5904
|
update(e) {
|
|
@@ -6180,7 +6181,7 @@ class Uh extends xe {
|
|
|
6180
6181
|
let r = s == t.viewports.length ? null : t.viewports[s], o = r ? r.from - 1 : this.length;
|
|
6181
6182
|
if (o > i) {
|
|
6182
6183
|
let l = (t.lineBlockAt(o).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
|
|
6183
|
-
e.push(
|
|
6184
|
+
e.push(te.replace({
|
|
6184
6185
|
widget: new Yl(l),
|
|
6185
6186
|
block: !0,
|
|
6186
6187
|
inclusive: !0,
|
|
@@ -6191,7 +6192,7 @@ class Uh extends xe {
|
|
|
6191
6192
|
break;
|
|
6192
6193
|
i = r.to + 1;
|
|
6193
6194
|
}
|
|
6194
|
-
return
|
|
6195
|
+
return te.set(e);
|
|
6195
6196
|
}
|
|
6196
6197
|
updateDeco() {
|
|
6197
6198
|
let e = 1, t = this.view.state.facet(In).map((r) => (this.dynamicDecorationMap[e++] = typeof r == "function") ? r(this.view) : r), i = !1, s = this.view.state.facet(Xd).map((r, o) => {
|
|
@@ -7779,7 +7780,7 @@ class Qo {
|
|
|
7779
7780
|
return !0;
|
|
7780
7781
|
}
|
|
7781
7782
|
draw(e, t) {
|
|
7782
|
-
return
|
|
7783
|
+
return te.replace({
|
|
7783
7784
|
widget: new q0(this.displaySize * (t ? e.scaleY : e.scaleX), t)
|
|
7784
7785
|
}).range(this.from, this.to);
|
|
7785
7786
|
}
|
|
@@ -7806,7 +7807,7 @@ class lu {
|
|
|
7806
7807
|
this.heightOracle = new T0(t), this.stateDeco = e.facet(In).filter((i) => typeof i != "function"), this.heightMap = Ke.empty().applyChanges(this.stateDeco, Oe.empty, this.heightOracle.setDoc(e.doc), [new pt(0, 0, 0, e.doc.length)]);
|
|
7807
7808
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
7808
7809
|
;
|
|
7809
|
-
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco =
|
|
7810
|
+
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = te.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
|
|
7810
7811
|
}
|
|
7811
7812
|
updateForViewport() {
|
|
7812
7813
|
let e = [this.viewport], { main: t } = this.state.selection;
|
|
@@ -7990,7 +7991,7 @@ class lu {
|
|
|
7990
7991
|
return this.heightOracle.lineWrapping ? e.height * r : s.total * this.heightOracle.charWidth * r;
|
|
7991
7992
|
}
|
|
7992
7993
|
updateLineGaps(e) {
|
|
7993
|
-
Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco =
|
|
7994
|
+
Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = te.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
|
|
7994
7995
|
}
|
|
7995
7996
|
computeVisibleRanges(e) {
|
|
7996
7997
|
let t = this.stateDeco;
|
|
@@ -8683,11 +8684,11 @@ class B0 {
|
|
|
8683
8684
|
let a = this.toEditorPos(r.rangeStart), u = this.toEditorPos(r.rangeEnd);
|
|
8684
8685
|
if (a < u) {
|
|
8685
8686
|
let h = `text-decoration: underline ${o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${l == "Thin" ? 1 : 2}px`;
|
|
8686
|
-
s.push(
|
|
8687
|
+
s.push(te.mark({ attributes: { style: h } }).range(a, u));
|
|
8687
8688
|
}
|
|
8688
8689
|
}
|
|
8689
8690
|
}
|
|
8690
|
-
e.dispatch({ effects: Cd.of(
|
|
8691
|
+
e.dispatch({ effects: Cd.of(te.set(s)) });
|
|
8691
8692
|
}, this.handlers.compositionstart = () => {
|
|
8692
8693
|
e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
|
|
8693
8694
|
}, this.handlers.compositionend = () => {
|
|
@@ -9731,8 +9732,8 @@ function J0(n, e, t) {
|
|
|
9731
9732
|
function R(X, $, C) {
|
|
9732
9733
|
let w = 1e9, P = -1e9, g = [];
|
|
9733
9734
|
function Z(L, I, N, se, z) {
|
|
9734
|
-
let
|
|
9735
|
-
!
|
|
9735
|
+
let A = n.coordsAtPos(L, L == C.to ? -2 : 2), v = n.coordsAtPos(N, N == C.from ? 2 : -2);
|
|
9736
|
+
!A || !v || (w = Math.min(A.top, v.top, w), P = Math.max(A.bottom, v.bottom, P), z == Te.LTR ? g.push(r && I ? c : A.left, r && se ? f : v.right) : g.push(!r && se ? c : v.left, !r && I ? f : A.right));
|
|
9736
9737
|
}
|
|
9737
9738
|
let T = X ?? C.from, E = $ ?? C.to;
|
|
9738
9739
|
for (let L of n.visibleRanges)
|
|
@@ -9740,10 +9741,10 @@ function J0(n, e, t) {
|
|
|
9740
9741
|
for (let I = Math.max(L.from, T), N = Math.min(L.to, E); ; ) {
|
|
9741
9742
|
let se = n.state.doc.lineAt(I);
|
|
9742
9743
|
for (let z of n.bidiSpans(se)) {
|
|
9743
|
-
let
|
|
9744
|
-
if (
|
|
9744
|
+
let A = z.from + se.from, v = z.to + se.from;
|
|
9745
|
+
if (A >= N)
|
|
9745
9746
|
break;
|
|
9746
|
-
v > I && Z(Math.max(
|
|
9747
|
+
v > I && Z(Math.max(A, I), X == null && A <= T, Math.min(v, N), $ == null && v >= E, z.dir);
|
|
9747
9748
|
}
|
|
9748
9749
|
if (I = se.to + 1, I >= N)
|
|
9749
9750
|
break;
|
|
@@ -10077,7 +10078,7 @@ let gu = null;
|
|
|
10077
10078
|
function OQ() {
|
|
10078
10079
|
return gu || (gu = Ee.fromClass(class {
|
|
10079
10080
|
constructor(n) {
|
|
10080
|
-
this.view = n, this.decorations =
|
|
10081
|
+
this.view = n, this.decorations = te.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
|
|
10081
10082
|
}
|
|
10082
10083
|
makeDecorator(n) {
|
|
10083
10084
|
return new hQ({
|
|
@@ -10086,11 +10087,11 @@ function OQ() {
|
|
|
10086
10087
|
let { doc: s } = t.state, r = et(e[0], 0);
|
|
10087
10088
|
if (r == 9) {
|
|
10088
10089
|
let o = s.lineAt(i), l = t.state.tabSize, a = cn(o.text, l, i - o.from);
|
|
10089
|
-
return
|
|
10090
|
+
return te.replace({
|
|
10090
10091
|
widget: new _Q((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX)
|
|
10091
10092
|
});
|
|
10092
10093
|
}
|
|
10093
|
-
return this.decorationCache[r] || (this.decorationCache[r] =
|
|
10094
|
+
return this.decorationCache[r] || (this.decorationCache[r] = te.replace({ widget: new gQ(n, r) }));
|
|
10094
10095
|
},
|
|
10095
10096
|
boundary: n.replaceTabs ? void 0 : /[^]/
|
|
10096
10097
|
});
|
|
@@ -10143,7 +10144,7 @@ class _Q extends ti {
|
|
|
10143
10144
|
function QQ() {
|
|
10144
10145
|
return yQ;
|
|
10145
10146
|
}
|
|
10146
|
-
const bQ = /* @__PURE__ */
|
|
10147
|
+
const bQ = /* @__PURE__ */ te.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
|
|
10147
10148
|
constructor(n) {
|
|
10148
10149
|
this.decorations = this.getDeco(n);
|
|
10149
10150
|
}
|
|
@@ -10156,7 +10157,7 @@ const bQ = /* @__PURE__ */ ie.line({ class: "cm-activeLine" }), yQ = /* @__PURE_
|
|
|
10156
10157
|
let s = n.lineBlockAt(i.head);
|
|
10157
10158
|
s.from > e && (t.push(bQ.range(s.from)), e = s.from);
|
|
10158
10159
|
}
|
|
10159
|
-
return
|
|
10160
|
+
return te.set(t);
|
|
10160
10161
|
}
|
|
10161
10162
|
}, {
|
|
10162
10163
|
decorations: (n) => n.decorations
|
|
@@ -12231,19 +12232,19 @@ function i1(n) {
|
|
|
12231
12232
|
return;
|
|
12232
12233
|
} else
|
|
12233
12234
|
throw new RangeError(`Unrecognized record size: ${L}`);
|
|
12234
|
-
let se = a[Z], z,
|
|
12235
|
-
if (E - T <= s && (
|
|
12236
|
-
let q = new Uint16Array(
|
|
12235
|
+
let se = a[Z], z, A, v = T - X;
|
|
12236
|
+
if (E - T <= s && (A = m(l.pos - $, P))) {
|
|
12237
|
+
let q = new Uint16Array(A.size - A.skip), Y = l.pos - A.size, W = q.length;
|
|
12237
12238
|
for (; l.pos > Y; )
|
|
12238
|
-
W = O(
|
|
12239
|
-
z = new Oi(q, E -
|
|
12239
|
+
W = O(A.start, q, W);
|
|
12240
|
+
z = new Oi(q, E - A.start, i), v = A.start - X;
|
|
12240
12241
|
} else {
|
|
12241
12242
|
let q = l.pos - L;
|
|
12242
12243
|
l.next();
|
|
12243
|
-
let Y = [], W = [], ne = Z >= o ? Z : -1,
|
|
12244
|
+
let Y = [], W = [], ne = Z >= o ? Z : -1, ie = 0, V = E;
|
|
12244
12245
|
for (; l.pos > q; )
|
|
12245
|
-
ne >= 0 && l.id == ne && l.size >= 0 ? (l.end <=
|
|
12246
|
-
if (ne >= 0 &&
|
|
12246
|
+
ne >= 0 && l.id == ne && l.size >= 0 ? (l.end <= V - s && (p(Y, W, T, ie, l.end, V, ne, I, N), ie = Y.length, V = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, ne, g + 1);
|
|
12247
|
+
if (ne >= 0 && ie > 0 && ie < Y.length && p(Y, W, T, ie, T, V, ne, I, N), Y.reverse(), W.reverse(), ne > -1 && ie > 0) {
|
|
12247
12248
|
let _e = d(se, N);
|
|
12248
12249
|
z = qa(se, Y, W, 0, Y.length, 0, E - T, _e, _e);
|
|
12249
12250
|
} else
|
|
@@ -14138,13 +14139,13 @@ function _O(n) {
|
|
|
14138
14139
|
}
|
|
14139
14140
|
const Xi = /* @__PURE__ */ Le.define({
|
|
14140
14141
|
create() {
|
|
14141
|
-
return
|
|
14142
|
+
return te.none;
|
|
14142
14143
|
},
|
|
14143
14144
|
update(n, e) {
|
|
14144
14145
|
n = n.map(e.changes);
|
|
14145
14146
|
for (let t of e.effects)
|
|
14146
14147
|
if (t.is(eo) && !Z1(n, t.value.from, t.value.to)) {
|
|
14147
|
-
let { preparePlaceholder: i } = e.state.facet(Ba), s = i ?
|
|
14148
|
+
let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? te.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
|
|
14148
14149
|
n = n.update({ add: [s.range(t.value.from, t.value.to)] });
|
|
14149
14150
|
} else
|
|
14150
14151
|
t.is(ds) && (n = n.update({
|
|
@@ -14181,7 +14182,7 @@ const Xi = /* @__PURE__ */ Le.define({
|
|
|
14181
14182
|
throw new RangeError("Invalid JSON for fold state");
|
|
14182
14183
|
e.push(Mu.range(i, s));
|
|
14183
14184
|
}
|
|
14184
|
-
return
|
|
14185
|
+
return te.set(e, !0);
|
|
14185
14186
|
}
|
|
14186
14187
|
});
|
|
14187
14188
|
function Pr(n, e, t) {
|
|
@@ -14264,7 +14265,7 @@ function SO(n, e) {
|
|
|
14264
14265
|
let r = document.createElement("span");
|
|
14265
14266
|
return r.textContent = i.placeholderText, r.setAttribute("aria-label", t.phrase("folded code")), r.title = t.phrase("unfold"), r.className = "cm-foldPlaceholder", r.onclick = s, r;
|
|
14266
14267
|
}
|
|
14267
|
-
const Mu = /* @__PURE__ */
|
|
14268
|
+
const Mu = /* @__PURE__ */ te.replace({ widget: /* @__PURE__ */ new class extends ti {
|
|
14268
14269
|
toDOM(n) {
|
|
14269
14270
|
return SO(n, null);
|
|
14270
14271
|
}
|
|
@@ -14415,11 +14416,11 @@ class W1 {
|
|
|
14415
14416
|
}
|
|
14416
14417
|
buildDeco(e, t) {
|
|
14417
14418
|
if (!t || !this.tree.length)
|
|
14418
|
-
return
|
|
14419
|
+
return te.none;
|
|
14419
14420
|
let i = new Ft();
|
|
14420
14421
|
for (let { from: s, to: r } of e.visibleRanges)
|
|
14421
14422
|
m1(this.tree, t, (o, l, a) => {
|
|
14422
|
-
i.add(o, l, this.markCache[a] || (this.markCache[a] =
|
|
14423
|
+
i.add(o, l, this.markCache[a] || (this.markCache[a] = te.mark({ class: a })));
|
|
14423
14424
|
}, s, r);
|
|
14424
14425
|
return i.finish();
|
|
14425
14426
|
}
|
|
@@ -14516,14 +14517,14 @@ const B1 = /* @__PURE__ */ gi.high(/* @__PURE__ */ Ee.fromClass(W1, {
|
|
|
14516
14517
|
renderMatch: F1
|
|
14517
14518
|
});
|
|
14518
14519
|
}
|
|
14519
|
-
}), G1 = /* @__PURE__ */
|
|
14520
|
+
}), G1 = /* @__PURE__ */ te.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ te.mark({ class: "cm-nonmatchingBracket" });
|
|
14520
14521
|
function F1(n) {
|
|
14521
14522
|
let e = [], t = n.matched ? G1 : j1;
|
|
14522
14523
|
return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
|
|
14523
14524
|
}
|
|
14524
14525
|
const H1 = /* @__PURE__ */ Le.define({
|
|
14525
14526
|
create() {
|
|
14526
|
-
return
|
|
14527
|
+
return te.none;
|
|
14527
14528
|
},
|
|
14528
14529
|
update(n, e) {
|
|
14529
14530
|
if (!e.docChanged && !e.selection)
|
|
@@ -14535,7 +14536,7 @@ const H1 = /* @__PURE__ */ Le.define({
|
|
|
14535
14536
|
let r = Vt(e.state, s.head, -1, i) || s.head > 0 && Vt(e.state, s.head - 1, 1, i) || i.afterCursor && (Vt(e.state, s.head, 1, i) || s.head < e.state.doc.length && Vt(e.state, s.head + 1, -1, i));
|
|
14536
14537
|
r && (t = t.concat(i.renderMatch(r, e.state)));
|
|
14537
14538
|
}
|
|
14538
|
-
return
|
|
14539
|
+
return te.set(t, !0);
|
|
14539
14540
|
},
|
|
14540
14541
|
provide: (n) => j.decorations.from(n)
|
|
14541
14542
|
}), K1 = [
|
|
@@ -15685,7 +15686,7 @@ function yy(n) {
|
|
|
15685
15686
|
let e = [Py, $y];
|
|
15686
15687
|
return n && e.push(hp.of(n)), e;
|
|
15687
15688
|
}
|
|
15688
|
-
const Sy = /* @__PURE__ */
|
|
15689
|
+
const Sy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ te.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
15689
15690
|
function Ju(n, e, t, i) {
|
|
15690
15691
|
return (t == 0 || n(e.sliceDoc(t - 1, t)) != Xe.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Xe.Word);
|
|
15691
15692
|
}
|
|
@@ -15702,24 +15703,24 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
|
|
|
15702
15703
|
getDeco(n) {
|
|
15703
15704
|
let e = n.state.facet(hp), { state: t } = n, i = t.selection;
|
|
15704
15705
|
if (i.ranges.length > 1)
|
|
15705
|
-
return
|
|
15706
|
+
return te.none;
|
|
15706
15707
|
let s = i.main, r, o = null;
|
|
15707
15708
|
if (s.empty) {
|
|
15708
15709
|
if (!e.highlightWordAroundCursor)
|
|
15709
|
-
return
|
|
15710
|
+
return te.none;
|
|
15710
15711
|
let a = t.wordAt(s.head);
|
|
15711
15712
|
if (!a)
|
|
15712
|
-
return
|
|
15713
|
+
return te.none;
|
|
15713
15714
|
o = t.charCategorizer(s.head), r = t.sliceDoc(a.from, a.to);
|
|
15714
15715
|
} else {
|
|
15715
15716
|
let a = s.to - s.from;
|
|
15716
15717
|
if (a < e.minSelectionLength || a > 200)
|
|
15717
|
-
return
|
|
15718
|
+
return te.none;
|
|
15718
15719
|
if (e.wholeWords) {
|
|
15719
15720
|
if (r = t.sliceDoc(s.from, s.to), o = t.charCategorizer(s.head), !(Ju(o, t, s.from, s.to) && xy(o, t, s.from, s.to)))
|
|
15720
|
-
return
|
|
15721
|
+
return te.none;
|
|
15721
15722
|
} else if (r = t.sliceDoc(s.from, s.to), !r)
|
|
15722
|
-
return
|
|
15723
|
+
return te.none;
|
|
15723
15724
|
}
|
|
15724
15725
|
let l = [];
|
|
15725
15726
|
for (let a of n.visibleRanges) {
|
|
@@ -15727,10 +15728,10 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
|
|
|
15727
15728
|
for (; !u.next().done; ) {
|
|
15728
15729
|
let { from: h, to: c } = u.value;
|
|
15729
15730
|
if ((!o || Ju(o, t, h, c)) && (s.empty && h <= s.from && c >= s.to ? l.push(vy.range(h, c)) : (h >= s.to || c <= s.from) && l.push(Sy.range(h, c)), l.length > e.maxMatches))
|
|
15730
|
-
return
|
|
15731
|
+
return te.none;
|
|
15731
15732
|
}
|
|
15732
15733
|
}
|
|
15733
|
-
return
|
|
15734
|
+
return te.set(l);
|
|
15734
15735
|
}
|
|
15735
15736
|
}, {
|
|
15736
15737
|
decorations: (n) => n.decorations
|
|
@@ -15965,7 +15966,7 @@ class Zo {
|
|
|
15965
15966
|
this.query = e, this.panel = t;
|
|
15966
15967
|
}
|
|
15967
15968
|
}
|
|
15968
|
-
const Ay = /* @__PURE__ */
|
|
15969
|
+
const Ay = /* @__PURE__ */ te.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ te.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
|
|
15969
15970
|
constructor(n) {
|
|
15970
15971
|
this.view = n, this.decorations = this.highlight(n.state.field(ui));
|
|
15971
15972
|
}
|
|
@@ -15975,7 +15976,7 @@ const Ay = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE
|
|
|
15975
15976
|
}
|
|
15976
15977
|
highlight({ query: n, panel: e }) {
|
|
15977
15978
|
if (!e || !n.spec.valid)
|
|
15978
|
-
return
|
|
15979
|
+
return te.none;
|
|
15979
15980
|
let { view: t } = this, i = new Ft();
|
|
15980
15981
|
for (let s = 0, r = t.visibleRanges, o = r.length; s < o; s++) {
|
|
15981
15982
|
let { from: l, to: a } = r[s];
|
|
@@ -17289,7 +17290,7 @@ class sh {
|
|
|
17289
17290
|
return new sh(i, s);
|
|
17290
17291
|
}
|
|
17291
17292
|
}
|
|
17292
|
-
let mS = /* @__PURE__ */
|
|
17293
|
+
let mS = /* @__PURE__ */ te.widget({ widget: /* @__PURE__ */ new class extends ti {
|
|
17293
17294
|
toDOM() {
|
|
17294
17295
|
let n = document.createElement("span");
|
|
17295
17296
|
return n.className = "cm-snippetFieldPosition", n;
|
|
@@ -17297,10 +17298,10 @@ let mS = /* @__PURE__ */ ie.widget({ widget: /* @__PURE__ */ new class extends t
|
|
|
17297
17298
|
ignoreEvent() {
|
|
17298
17299
|
return !1;
|
|
17299
17300
|
}
|
|
17300
|
-
}() }), gS = /* @__PURE__ */
|
|
17301
|
+
}() }), gS = /* @__PURE__ */ te.mark({ class: "cm-snippetField" });
|
|
17301
17302
|
class mn {
|
|
17302
17303
|
constructor(e, t) {
|
|
17303
|
-
this.ranges = e, this.active = t, this.deco =
|
|
17304
|
+
this.ranges = e, this.active = t, this.deco = te.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
|
|
17304
17305
|
}
|
|
17305
17306
|
map(e) {
|
|
17306
17307
|
let t = [];
|
|
@@ -17333,7 +17334,7 @@ const gs = /* @__PURE__ */ le.define({
|
|
|
17333
17334
|
}
|
|
17334
17335
|
return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
|
|
17335
17336
|
},
|
|
17336
|
-
provide: (n) => j.decorations.from(n, (e) => e ? e.deco :
|
|
17337
|
+
provide: (n) => j.decorations.from(n, (e) => e ? e.deco : te.none)
|
|
17337
17338
|
});
|
|
17338
17339
|
function rh(n, e) {
|
|
17339
17340
|
return D.create(n.filter((t) => t.field == e).map((t) => D.range(t.from, t.to)));
|
|
@@ -17639,13 +17640,13 @@ class xi {
|
|
|
17639
17640
|
}
|
|
17640
17641
|
let p = HS(l);
|
|
17641
17642
|
if (l.some((_) => _.from == _.to || _.from == _.to - 1 && i.doc.lineAt(_.from).to == _.from))
|
|
17642
|
-
o.add(f, f,
|
|
17643
|
+
o.add(f, f, te.widget({
|
|
17643
17644
|
widget: new IS(p),
|
|
17644
17645
|
diagnostics: l.slice()
|
|
17645
17646
|
}));
|
|
17646
17647
|
else {
|
|
17647
17648
|
let _ = l.reduce((m, O) => O.markClass ? m + " " + O.markClass : m, "");
|
|
17648
|
-
o.add(f, d,
|
|
17649
|
+
o.add(f, d, te.mark({
|
|
17649
17650
|
class: "cm-lintRange cm-lintRange-" + p + _,
|
|
17650
17651
|
diagnostics: l.slice(),
|
|
17651
17652
|
inclusiveEnd: l.some((m) => m.to > d)
|
|
@@ -17684,7 +17685,7 @@ function DS(n, e) {
|
|
|
17684
17685
|
}
|
|
17685
17686
|
const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /* @__PURE__ */ le.define(), ht = /* @__PURE__ */ Le.define({
|
|
17686
17687
|
create() {
|
|
17687
|
-
return new xi(
|
|
17688
|
+
return new xi(te.none, null, null);
|
|
17688
17689
|
},
|
|
17689
17690
|
update(n, e) {
|
|
17690
17691
|
if (e.docChanged && n.diagnostics.size) {
|
|
@@ -17707,7 +17708,7 @@ const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /
|
|
|
17707
17708
|
Fn.from(n, (e) => e.panel),
|
|
17708
17709
|
j.decorations.from(n, (e) => e.diagnostics)
|
|
17709
17710
|
]
|
|
17710
|
-
}), LS = /* @__PURE__ */
|
|
17711
|
+
}), LS = /* @__PURE__ */ te.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
17711
17712
|
function US(n, e, t) {
|
|
17712
17713
|
let { diagnostics: i } = n.state.field(ht), s, r = -1, o = -1;
|
|
17713
17714
|
i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, u, { spec: h }) => {
|
|
@@ -18038,7 +18039,7 @@ const KS = [
|
|
|
18038
18039
|
ht,
|
|
18039
18040
|
/* @__PURE__ */ j.decorations.compute([ht], (n) => {
|
|
18040
18041
|
let { selected: e, panel: t } = n.field(ht);
|
|
18041
|
-
return !e || !t || e.from == e.to ?
|
|
18042
|
+
return !e || !t || e.from == e.to ? te.none : te.set([
|
|
18042
18043
|
LS.range(e.from, e.to)
|
|
18043
18044
|
]);
|
|
18044
18045
|
}),
|
|
@@ -23750,16 +23751,16 @@ function XP() {
|
|
|
23750
23751
|
}
|
|
23751
23752
|
var L = !0, I = !0, N = !1;
|
|
23752
23753
|
if (g.text === ":" ? this._flags.ternary_depth === 0 ? L = !1 : (this._flags.ternary_depth -= 1, N = !0) : g.text === "?" && (this._flags.ternary_depth += 1), !T && !Z && this._options.preserve_newlines && a(g.text, o)) {
|
|
23753
|
-
var se = g.text === ":", z = se && N,
|
|
23754
|
+
var se = g.text === ":", z = se && N, A = se && !N;
|
|
23754
23755
|
switch (this._options.operator_position) {
|
|
23755
23756
|
case _.before_newline:
|
|
23756
|
-
this._output.space_before_token = !
|
|
23757
|
+
this._output.space_before_token = !A, this.print_token(g), (!se || z) && this.allow_wrap_or_preserved_newline(g), this._output.space_before_token = !0;
|
|
23757
23758
|
return;
|
|
23758
23759
|
case _.after_newline:
|
|
23759
23760
|
this._output.space_before_token = !0, !se || z ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(g) : this._output.space_before_token = !1, this.print_token(g), this._output.space_before_token = !0;
|
|
23760
23761
|
return;
|
|
23761
23762
|
case _.preserve_newline:
|
|
23762
|
-
|
|
23763
|
+
A || this.allow_wrap_or_preserved_newline(g), L = !(this._output.just_added_newline() || A), this._output.space_before_token = L, this.print_token(g), this._output.space_before_token = !0;
|
|
23763
23764
|
return;
|
|
23764
23765
|
}
|
|
23765
23766
|
}
|
|
@@ -24732,10 +24733,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24732
24733
|
let O = ue(null);
|
|
24733
24734
|
function y() {
|
|
24734
24735
|
if (s.value && t.value && s.value.length) {
|
|
24735
|
-
let
|
|
24736
|
+
let A = /* @__PURE__ */ new Set(), v = /* @__PURE__ */ new Set();
|
|
24736
24737
|
s.value.forEach((_e) => {
|
|
24737
|
-
|
|
24738
|
-
}), Array.from(
|
|
24738
|
+
A.add(_e.col), v.add(_e.row);
|
|
24739
|
+
}), Array.from(A).forEach((_e) => {
|
|
24739
24740
|
var Ce;
|
|
24740
24741
|
let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
|
|
24741
24742
|
de && de.isFixed;
|
|
@@ -24744,11 +24745,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24744
24745
|
let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
|
|
24745
24746
|
de && de.isFixed;
|
|
24746
24747
|
});
|
|
24747
|
-
const q = Math.min(...
|
|
24748
|
+
const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A), ne = Math.max(...v), ie = W - q + 1, V = ne - Y + 1;
|
|
24748
24749
|
for (let _e = Y; _e <= ne; _e++)
|
|
24749
24750
|
for (let de = q; de <= W; de++) {
|
|
24750
24751
|
const Ce = t.value.config[_e][de];
|
|
24751
|
-
_e === Y && de === q ? (Ce.colSpan =
|
|
24752
|
+
_e === Y && de === q ? (Ce.colSpan = ie, Ce.rowSpan = V) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
|
|
24752
24753
|
}
|
|
24753
24754
|
s.value = [
|
|
24754
24755
|
{
|
|
@@ -24762,19 +24763,19 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24762
24763
|
}
|
|
24763
24764
|
function R() {
|
|
24764
24765
|
if (s.value && t.value && s.value.length) {
|
|
24765
|
-
const
|
|
24766
|
+
const A = [];
|
|
24766
24767
|
s.value.forEach((v) => {
|
|
24767
24768
|
const q = t.value.config[v.row][v.col];
|
|
24768
|
-
(q.colSpan > 1 || q.rowSpan > 1) &&
|
|
24769
|
+
(q.colSpan > 1 || q.rowSpan > 1) && A.push({
|
|
24769
24770
|
row: v.row,
|
|
24770
24771
|
col: v.col,
|
|
24771
24772
|
rowSpan: q.rowSpan,
|
|
24772
24773
|
colSpan: q.colSpan
|
|
24773
24774
|
});
|
|
24774
|
-
}),
|
|
24775
|
-
const { row: q, col: Y, rowSpan: W, colSpan: ne } = v,
|
|
24776
|
-
for (let _e = q; _e <=
|
|
24777
|
-
for (let de = Y; de <=
|
|
24775
|
+
}), A.forEach((v) => {
|
|
24776
|
+
const { row: q, col: Y, rowSpan: W, colSpan: ne } = v, ie = q + W - 1, V = Y + ne - 1;
|
|
24777
|
+
for (let _e = q; _e <= ie; _e++)
|
|
24778
|
+
for (let de = Y; de <= V; de++) {
|
|
24778
24779
|
const Ce = t.value.config[_e][de];
|
|
24779
24780
|
Ce.colSpan = 1, Ce.rowSpan = 1, Ce.mergeTarget = void 0;
|
|
24780
24781
|
}
|
|
@@ -24796,14 +24797,14 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24796
24797
|
};
|
|
24797
24798
|
}
|
|
24798
24799
|
function $() {
|
|
24799
|
-
s.value && t.value && s.value.length && (s.value.forEach((
|
|
24800
|
-
let v = t.value.config[
|
|
24800
|
+
s.value && t.value && s.value.length && (s.value.forEach((A) => {
|
|
24801
|
+
let v = t.value.config[A.row][A.col];
|
|
24801
24802
|
v.format = O.value.format, v.formatType = { ...O.value.formatType }, v.style = { ...O.value.style };
|
|
24802
24803
|
}), O = null);
|
|
24803
24804
|
}
|
|
24804
24805
|
function C() {
|
|
24805
|
-
s.value && t.value && s.value.length && s.value.forEach((
|
|
24806
|
-
let v = t.value.config[
|
|
24806
|
+
s.value && t.value && s.value.length && s.value.forEach((A) => {
|
|
24807
|
+
let v = t.value.config[A.row][A.col];
|
|
24807
24808
|
v.type = ee.TEXT, v.format = void 0, v.text = "", v.formatType = { numberDecimal: 0, numberUseGrouping: !1, currencySymbol: "¥", scientificNotation: "e", digits: 0, date: "YYYY-MM-DD HH:mm:ss" }, v.data = "", v.style = {
|
|
24808
24809
|
backgroundColor: "",
|
|
24809
24810
|
color: "",
|
|
@@ -24817,33 +24818,33 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24817
24818
|
}
|
|
24818
24819
|
as(
|
|
24819
24820
|
() => s.value,
|
|
24820
|
-
(
|
|
24821
|
-
if (
|
|
24822
|
-
if (r.value =
|
|
24823
|
-
let q =
|
|
24821
|
+
(A, v) => {
|
|
24822
|
+
if (A && A.length && t.value)
|
|
24823
|
+
if (r.value = A.length === 1, r.value) {
|
|
24824
|
+
let q = A[0];
|
|
24824
24825
|
o.value = t.value.config[q.row][q.col], a.value = [q.col], u.value = [q.row], c.value = t.value.rowConfig[q.row], d.value = t.value.colConfig[q.col], h.value = !0, f.value = !0, o.value && o.value.type && (l.value = [ee.TEXT, ee.FIELD].includes(o.value.type)), Object.entries(p).forEach(([Y, W]) => {
|
|
24825
24826
|
_[Y] = W;
|
|
24826
24827
|
}), o.value && Object.entries(o.value).forEach(([Y, W]) => {
|
|
24827
|
-
Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([ne,
|
|
24828
|
-
_.formatType[ne] =
|
|
24829
|
-
})) : Y === "style" ? Object.entries(W).forEach(([ne,
|
|
24830
|
-
_[ne] =
|
|
24828
|
+
Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([ne, ie]) => {
|
|
24829
|
+
_.formatType[ne] = ie;
|
|
24830
|
+
})) : Y === "style" ? Object.entries(W).forEach(([ne, ie]) => {
|
|
24831
|
+
_[ne] = ie;
|
|
24831
24832
|
}) : _[Y] = W;
|
|
24832
24833
|
});
|
|
24833
24834
|
} else {
|
|
24834
24835
|
o.value = null;
|
|
24835
24836
|
const q = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
|
|
24836
|
-
l.value = !0,
|
|
24837
|
+
l.value = !0, A.forEach((ne) => {
|
|
24837
24838
|
q.add(ne.col), Y.add(ne.row);
|
|
24838
|
-
const
|
|
24839
|
-
|
|
24840
|
-
W.get(
|
|
24839
|
+
const ie = t.value.config[ne.row][ne.col];
|
|
24840
|
+
ie.type && ![ee.TEXT, ee.FIELD].includes(ie.type) && (l.value = !1), Object.entries(ie).forEach(([V, _e]) => {
|
|
24841
|
+
W.get(V) || W.set(V, /* @__PURE__ */ new Set()), W.get(V).add(_e);
|
|
24841
24842
|
});
|
|
24842
|
-
}), l.value && Object.entries(p).forEach(([ne,
|
|
24843
|
-
_[ne] =
|
|
24843
|
+
}), l.value && Object.entries(p).forEach(([ne, ie]) => {
|
|
24844
|
+
_[ne] = ie;
|
|
24844
24845
|
}), a.value = [...q], u.value = [...Y], f.value = q.size === 1, h.value = Y.size === 1, f ? d.value = t.value.colConfig[a.value[0]] : d.value = null, h ? c.value = t.value.rowConfig[u.value[0]] : c.value = null;
|
|
24845
24846
|
}
|
|
24846
|
-
|
|
24847
|
+
A && A.length === 0 && t.value && (r.value = !1, o.value = null, l.value = !1, a.value = [], u.value = [], h.value = !1, c.value = null, f.value = !1, d.value = null);
|
|
24847
24848
|
},
|
|
24848
24849
|
{
|
|
24849
24850
|
immediate: !0,
|
|
@@ -24851,25 +24852,25 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24851
24852
|
}
|
|
24852
24853
|
);
|
|
24853
24854
|
const w = ue("");
|
|
24854
|
-
function P(
|
|
24855
|
+
function P(A, v, q) {
|
|
24855
24856
|
v === "cell" && s.value.forEach((Y) => {
|
|
24856
|
-
if (ni(t.value.config[Y.row][Y.col], q,
|
|
24857
|
-
const { isError: W, result: ne } = ig(
|
|
24857
|
+
if (ni(t.value.config[Y.row][Y.col], q, A), q === "data" && !A && o.value && (o.value.isGroup = !1, o.value.isRowColCombine = !1), q === "fun") {
|
|
24858
|
+
const { isError: W, result: ne } = ig(A, !1);
|
|
24858
24859
|
W ? w.value = ne : w.value = "";
|
|
24859
24860
|
}
|
|
24860
24861
|
if (q === "type" && t.value)
|
|
24861
|
-
switch (
|
|
24862
|
+
switch (A) {
|
|
24862
24863
|
case ee.TEXT:
|
|
24863
24864
|
ni(t.value.config[Y.row][Y.col], "data", ""), ni(t.value.config[Y.row][Y.col], "fun", ""), ni(t.value.config[Y.row][Y.col], "format", Re.TEXT), _.format = Re.TEXT;
|
|
24864
24865
|
}
|
|
24865
24866
|
}), v === "row" && u.value.forEach((Y) => {
|
|
24866
|
-
ni(t.value.rowConfig[Y], q,
|
|
24867
|
+
ni(t.value.rowConfig[Y], q, A), q === "data" && c.value && !A && (c.value.loop = !1, c.value.dataIndex = 0);
|
|
24867
24868
|
}), v === "col" && a.value.forEach((Y) => {
|
|
24868
|
-
ni(t.value.colConfig[Y], q,
|
|
24869
|
+
ni(t.value.colConfig[Y], q, A);
|
|
24869
24870
|
});
|
|
24870
24871
|
}
|
|
24871
24872
|
const g = be(() => t.value ? t.value.data.source : []), Z = be(() => {
|
|
24872
|
-
let
|
|
24873
|
+
let A = [];
|
|
24873
24874
|
if (r.value) {
|
|
24874
24875
|
if (h.value) {
|
|
24875
24876
|
let v = g.value.find((q) => {
|
|
@@ -24878,7 +24879,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24878
24879
|
});
|
|
24879
24880
|
if (v = Ol(v), v && v.columns) {
|
|
24880
24881
|
const q = v.columns.map((Y) => (Y.name = `行:${v.name}/${Y.name}`, Y.columnName = `row:${Y.columnName}`, Y));
|
|
24881
|
-
|
|
24882
|
+
A = A.concat(q);
|
|
24882
24883
|
}
|
|
24883
24884
|
}
|
|
24884
24885
|
if (f.value) {
|
|
@@ -24888,28 +24889,28 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24888
24889
|
});
|
|
24889
24890
|
if (v = Ol(v), v && v.columns) {
|
|
24890
24891
|
const q = v.columns.map((Y) => (Y.name = `列:${v.name}/${Y.name}`, Y.columnName = `col:${Y.columnName}`, Y));
|
|
24891
|
-
|
|
24892
|
+
A = A.concat(q);
|
|
24892
24893
|
}
|
|
24893
24894
|
}
|
|
24894
24895
|
}
|
|
24895
|
-
return
|
|
24896
|
+
return A;
|
|
24896
24897
|
});
|
|
24897
24898
|
function T() {
|
|
24898
|
-
t.value && (t.value.colConfig.forEach((
|
|
24899
|
-
|
|
24900
|
-
}), t.value.rowConfig.forEach((
|
|
24901
|
-
|
|
24902
|
-
}), t.value.config.forEach((
|
|
24903
|
-
|
|
24899
|
+
t.value && (t.value.colConfig.forEach((A, v) => {
|
|
24900
|
+
A.index = v;
|
|
24901
|
+
}), t.value.rowConfig.forEach((A, v) => {
|
|
24902
|
+
A.index = v;
|
|
24903
|
+
}), t.value.config.forEach((A, v) => {
|
|
24904
|
+
A.forEach((q, Y) => {
|
|
24904
24905
|
q.row = v, q.col = Y, q.colSpan = 1, q.rowSpan = 1;
|
|
24905
24906
|
});
|
|
24906
24907
|
}));
|
|
24907
24908
|
}
|
|
24908
24909
|
function E() {
|
|
24909
|
-
var
|
|
24910
|
+
var A, v;
|
|
24910
24911
|
if (a.value.length > 0) {
|
|
24911
24912
|
let q = Math.min(...a.value);
|
|
24912
|
-
q >= 0 && ((
|
|
24913
|
+
q >= 0 && ((A = t.value) == null || A.colConfig.splice(q, 0, {
|
|
24913
24914
|
size: 80
|
|
24914
24915
|
}), (v = t.value) == null || v.config.forEach((Y) => {
|
|
24915
24916
|
Y.splice(q, 0, {
|
|
@@ -24921,18 +24922,18 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24921
24922
|
}
|
|
24922
24923
|
}
|
|
24923
24924
|
function L() {
|
|
24924
|
-
a.value.length > 0 && (a.value.forEach((
|
|
24925
|
+
a.value.length > 0 && (a.value.forEach((A) => {
|
|
24925
24926
|
var v, q;
|
|
24926
|
-
(v = t.value) == null || v.colConfig.splice(
|
|
24927
|
-
Y.splice(
|
|
24927
|
+
(v = t.value) == null || v.colConfig.splice(A, 1), (q = t.value) == null || q.config.forEach((Y) => {
|
|
24928
|
+
Y.splice(A, 1);
|
|
24928
24929
|
});
|
|
24929
24930
|
}), s.value = []), T();
|
|
24930
24931
|
}
|
|
24931
24932
|
function I() {
|
|
24932
|
-
var
|
|
24933
|
+
var A, v;
|
|
24933
24934
|
if (a.value.length > 0) {
|
|
24934
24935
|
let q = Math.max(...a.value) + 1;
|
|
24935
|
-
q > 0 && ((
|
|
24936
|
+
q > 0 && ((A = t.value) == null || A.colConfig.splice(q, 0, {
|
|
24936
24937
|
size: 80
|
|
24937
24938
|
}), (v = t.value) == null || v.config.forEach((Y) => {
|
|
24938
24939
|
Y.splice(q, 0, {
|
|
@@ -24944,10 +24945,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24944
24945
|
}
|
|
24945
24946
|
}
|
|
24946
24947
|
function N() {
|
|
24947
|
-
var
|
|
24948
|
+
var A, v;
|
|
24948
24949
|
if (u.value.length > 0) {
|
|
24949
24950
|
let q = Math.min(...u.value);
|
|
24950
|
-
q >= 0 && ((
|
|
24951
|
+
q >= 0 && ((A = t.value) == null || A.rowConfig.splice(q, 0, {
|
|
24951
24952
|
size: 40
|
|
24952
24953
|
}), (v = t.value) == null || v.config.splice(
|
|
24953
24954
|
q,
|
|
@@ -24961,16 +24962,16 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24961
24962
|
}
|
|
24962
24963
|
}
|
|
24963
24964
|
function se() {
|
|
24964
|
-
u.value.length > 0 && (u.value.forEach((
|
|
24965
|
+
u.value.length > 0 && (u.value.forEach((A) => {
|
|
24965
24966
|
var v, q;
|
|
24966
|
-
(v = t.value) == null || v.rowConfig.splice(
|
|
24967
|
+
(v = t.value) == null || v.rowConfig.splice(A, 1), (q = t.value) == null || q.config.splice(A, 1);
|
|
24967
24968
|
}), s.value = [], T());
|
|
24968
24969
|
}
|
|
24969
24970
|
function z() {
|
|
24970
|
-
var
|
|
24971
|
+
var A, v;
|
|
24971
24972
|
if (u.value.length > 0) {
|
|
24972
24973
|
let q = Math.max(...u.value) + 1;
|
|
24973
|
-
q >= 0 && ((
|
|
24974
|
+
q >= 0 && ((A = t.value) == null || A.rowConfig.splice(q, 0, {
|
|
24974
24975
|
size: 40
|
|
24975
24976
|
}), (v = t.value) == null || v.config.splice(
|
|
24976
24977
|
q,
|
|
@@ -24983,8 +24984,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24983
24984
|
), T());
|
|
24984
24985
|
}
|
|
24985
24986
|
}
|
|
24986
|
-
return (
|
|
24987
|
-
const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), ne = fe("el-select"),
|
|
24987
|
+
return (A, v) => {
|
|
24988
|
+
const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), ne = fe("el-select"), ie = fe("el-input-number");
|
|
24988
24989
|
return U(), K(re, null, [
|
|
24989
24990
|
b(s) && b(s).length ? (U(), K(re, { key: 0 }, [
|
|
24990
24991
|
zP,
|
|
@@ -25056,8 +25057,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25056
25057
|
default: x(() => [
|
|
25057
25058
|
Q(b(Yi), {
|
|
25058
25059
|
modelValue: _.type,
|
|
25059
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
25060
|
-
onChange: v[1] || (v[1] = (
|
|
25060
|
+
"onUpdate:modelValue": v[0] || (v[0] = (V) => _.type = V),
|
|
25061
|
+
onChange: v[1] || (v[1] = (V) => P(V, "cell", "type"))
|
|
25061
25062
|
}, {
|
|
25062
25063
|
default: x(() => [
|
|
25063
25064
|
Q(b(we), { label: "text" }, {
|
|
@@ -25106,8 +25107,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25106
25107
|
default: x(() => [
|
|
25107
25108
|
Q(b(Ii), {
|
|
25108
25109
|
modelValue: o.value.text,
|
|
25109
|
-
"onUpdate:modelValue": v[2] || (v[2] = (
|
|
25110
|
-
onInput: v[3] || (v[3] = (
|
|
25110
|
+
"onUpdate:modelValue": v[2] || (v[2] = (V) => o.value.text = V),
|
|
25111
|
+
onInput: v[3] || (v[3] = (V) => P(V, "cell", "text"))
|
|
25111
25112
|
}, null, 8, ["modelValue"])
|
|
25112
25113
|
]),
|
|
25113
25114
|
_: 1
|
|
@@ -25126,15 +25127,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25126
25127
|
default: x(() => [
|
|
25127
25128
|
Q(ne, {
|
|
25128
25129
|
modelValue: o.value.data,
|
|
25129
|
-
"onUpdate:modelValue": v[4] || (v[4] = (
|
|
25130
|
+
"onUpdate:modelValue": v[4] || (v[4] = (V) => o.value.data = V),
|
|
25130
25131
|
clearable: "",
|
|
25131
|
-
onInput: v[5] || (v[5] = (
|
|
25132
|
+
onInput: v[5] || (v[5] = (V) => P(V, "cell", "data"))
|
|
25132
25133
|
}, {
|
|
25133
25134
|
default: x(() => [
|
|
25134
|
-
(U(!0), K(re, null, Fe(b(Z), (
|
|
25135
|
-
key:
|
|
25136
|
-
label:
|
|
25137
|
-
value:
|
|
25135
|
+
(U(!0), K(re, null, Fe(b(Z), (V) => (U(), oe(W, {
|
|
25136
|
+
key: V.columnName,
|
|
25137
|
+
label: V.name,
|
|
25138
|
+
value: V.columnName
|
|
25138
25139
|
}, null, 8, ["label", "value"]))), 128))
|
|
25139
25140
|
]),
|
|
25140
25141
|
_: 1
|
|
@@ -25149,7 +25150,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25149
25150
|
Q(b(Ii), {
|
|
25150
25151
|
type: "textarea",
|
|
25151
25152
|
modelValue: o.value.fun,
|
|
25152
|
-
"onUpdate:modelValue": v[6] || (v[6] = (
|
|
25153
|
+
"onUpdate:modelValue": v[6] || (v[6] = (V) => o.value.fun = V)
|
|
25153
25154
|
}, null, 8, ["modelValue"])
|
|
25154
25155
|
]),
|
|
25155
25156
|
_: 1
|
|
@@ -25168,8 +25169,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25168
25169
|
default: x(() => [
|
|
25169
25170
|
Q(b(Ii), {
|
|
25170
25171
|
modelValue: o.value.fun,
|
|
25171
|
-
"onUpdate:modelValue": v[7] || (v[7] = (
|
|
25172
|
-
onInput: v[8] || (v[8] = (
|
|
25172
|
+
"onUpdate:modelValue": v[7] || (v[7] = (V) => o.value.fun = V),
|
|
25173
|
+
onInput: v[8] || (v[8] = (V) => P(V, "cell", "fun"))
|
|
25173
25174
|
}, null, 8, ["modelValue"])
|
|
25174
25175
|
]),
|
|
25175
25176
|
_: 1
|
|
@@ -25185,7 +25186,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25185
25186
|
default: x(() => [
|
|
25186
25187
|
Q(b(yh), {
|
|
25187
25188
|
modelValue: o.value.isGroup,
|
|
25188
|
-
"onUpdate:modelValue": v[9] || (v[9] = (
|
|
25189
|
+
"onUpdate:modelValue": v[9] || (v[9] = (V) => o.value.isGroup = V)
|
|
25189
25190
|
}, {
|
|
25190
25191
|
default: x(() => [
|
|
25191
25192
|
B("分组")
|
|
@@ -25194,7 +25195,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25194
25195
|
}, 8, ["modelValue"]),
|
|
25195
25196
|
Q(b(yh), {
|
|
25196
25197
|
modelValue: o.value.isRowColCombine,
|
|
25197
|
-
"onUpdate:modelValue": v[10] || (v[10] = (
|
|
25198
|
+
"onUpdate:modelValue": v[10] || (v[10] = (V) => o.value.isRowColCombine = V)
|
|
25198
25199
|
}, {
|
|
25199
25200
|
default: x(() => [
|
|
25200
25201
|
B("行列组合")
|
|
@@ -25217,8 +25218,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25217
25218
|
default: x(() => [
|
|
25218
25219
|
Q(b(Sh), {
|
|
25219
25220
|
modelValue: _.color,
|
|
25220
|
-
"onUpdate:modelValue": v[11] || (v[11] = (
|
|
25221
|
-
onChange: v[12] || (v[12] = (
|
|
25221
|
+
"onUpdate:modelValue": v[11] || (v[11] = (V) => _.color = V),
|
|
25222
|
+
onChange: v[12] || (v[12] = (V) => P(V, "cell", "style.color"))
|
|
25222
25223
|
}, null, 8, ["modelValue"])
|
|
25223
25224
|
]),
|
|
25224
25225
|
_: 1
|
|
@@ -25232,8 +25233,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25232
25233
|
default: x(() => [
|
|
25233
25234
|
Q(b(Sh), {
|
|
25234
25235
|
modelValue: _.backgroundColor,
|
|
25235
|
-
"onUpdate:modelValue": v[13] || (v[13] = (
|
|
25236
|
-
onChange: v[14] || (v[14] = (
|
|
25236
|
+
"onUpdate:modelValue": v[13] || (v[13] = (V) => _.backgroundColor = V),
|
|
25237
|
+
onChange: v[14] || (v[14] = (V) => P(V, "cell", "style.backgroundColor"))
|
|
25237
25238
|
}, null, 8, ["modelValue"])
|
|
25238
25239
|
]),
|
|
25239
25240
|
_: 1
|
|
@@ -25252,8 +25253,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25252
25253
|
"active-value": "bold",
|
|
25253
25254
|
"inactive-value": "normal",
|
|
25254
25255
|
modelValue: _.fontWeight,
|
|
25255
|
-
"onUpdate:modelValue": v[15] || (v[15] = (
|
|
25256
|
-
onChange: v[16] || (v[16] = (
|
|
25256
|
+
"onUpdate:modelValue": v[15] || (v[15] = (V) => _.fontWeight = V),
|
|
25257
|
+
onChange: v[16] || (v[16] = (V) => P(V, "cell", "style.fontWeight"))
|
|
25257
25258
|
}, null, 8, ["modelValue"])
|
|
25258
25259
|
]),
|
|
25259
25260
|
_: 1
|
|
@@ -25265,13 +25266,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25265
25266
|
default: x(() => [
|
|
25266
25267
|
Q(b(he), { label: "字体大小" }, {
|
|
25267
25268
|
default: x(() => [
|
|
25268
|
-
Q(
|
|
25269
|
+
Q(ie, {
|
|
25269
25270
|
modelValue: _.fontSize,
|
|
25270
|
-
"onUpdate:modelValue": v[17] || (v[17] = (
|
|
25271
|
+
"onUpdate:modelValue": v[17] || (v[17] = (V) => _.fontSize = V),
|
|
25271
25272
|
"controls-position": "right",
|
|
25272
25273
|
min: 12,
|
|
25273
25274
|
step: 2,
|
|
25274
|
-
onChange: v[18] || (v[18] = (
|
|
25275
|
+
onChange: v[18] || (v[18] = (V) => P(V, "cell", "style.fontSize"))
|
|
25275
25276
|
}, null, 8, ["modelValue"])
|
|
25276
25277
|
]),
|
|
25277
25278
|
_: 1
|
|
@@ -25285,8 +25286,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25285
25286
|
default: x(() => [
|
|
25286
25287
|
Q(ne, {
|
|
25287
25288
|
modelValue: _.fontFamily,
|
|
25288
|
-
"onUpdate:modelValue": v[19] || (v[19] = (
|
|
25289
|
-
onChange: v[20] || (v[20] = (
|
|
25289
|
+
"onUpdate:modelValue": v[19] || (v[19] = (V) => _.fontFamily = V),
|
|
25290
|
+
onChange: v[20] || (v[20] = (V) => P(V, "cell", "style.fontFamily")),
|
|
25290
25291
|
clearable: ""
|
|
25291
25292
|
}, {
|
|
25292
25293
|
default: x(() => [
|
|
@@ -25359,8 +25360,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25359
25360
|
default: x(() => [
|
|
25360
25361
|
Q(b(Yi), {
|
|
25361
25362
|
modelValue: _.textAlign,
|
|
25362
|
-
"onUpdate:modelValue": v[21] || (v[21] = (
|
|
25363
|
-
onChange: v[22] || (v[22] = (
|
|
25363
|
+
"onUpdate:modelValue": v[21] || (v[21] = (V) => _.textAlign = V),
|
|
25364
|
+
onChange: v[22] || (v[22] = (V) => P(V, "cell", "style.textAlign"))
|
|
25364
25365
|
}, {
|
|
25365
25366
|
default: x(() => [
|
|
25366
25367
|
Q(b(we), {
|
|
@@ -25405,8 +25406,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25405
25406
|
default: x(() => [
|
|
25406
25407
|
Q(b(Yi), {
|
|
25407
25408
|
modelValue: _.verticalAlign,
|
|
25408
|
-
"onUpdate:modelValue": v[23] || (v[23] = (
|
|
25409
|
-
onChange: v[24] || (v[24] = (
|
|
25409
|
+
"onUpdate:modelValue": v[23] || (v[23] = (V) => _.verticalAlign = V),
|
|
25410
|
+
onChange: v[24] || (v[24] = (V) => P(V, "cell", "style.verticalAlign"))
|
|
25410
25411
|
}, {
|
|
25411
25412
|
default: x(() => [
|
|
25412
25413
|
Q(b(we), {
|
|
@@ -25451,8 +25452,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25451
25452
|
default: x(() => [
|
|
25452
25453
|
Q(b(Yi), {
|
|
25453
25454
|
modelValue: _.format,
|
|
25454
|
-
"onUpdate:modelValue": v[25] || (v[25] = (
|
|
25455
|
-
onChange: v[26] || (v[26] = (
|
|
25455
|
+
"onUpdate:modelValue": v[25] || (v[25] = (V) => _.format = V),
|
|
25456
|
+
onChange: v[26] || (v[26] = (V) => P(V, "cell", "format"))
|
|
25456
25457
|
}, {
|
|
25457
25458
|
default: x(() => [
|
|
25458
25459
|
Q(b(we), {
|
|
@@ -25542,10 +25543,10 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25542
25543
|
default: x(() => [
|
|
25543
25544
|
Q(b(he), { label: "小数位数" }, {
|
|
25544
25545
|
default: x(() => [
|
|
25545
|
-
Q(
|
|
25546
|
+
Q(ie, {
|
|
25546
25547
|
modelValue: _.formatType.numberDecimal,
|
|
25547
|
-
"onUpdate:modelValue": v[27] || (v[27] = (
|
|
25548
|
-
onInput: v[28] || (v[28] = (
|
|
25548
|
+
"onUpdate:modelValue": v[27] || (v[27] = (V) => _.formatType.numberDecimal = V),
|
|
25549
|
+
onInput: v[28] || (v[28] = (V) => P(V, "cell", "formatType.numberDecimal")),
|
|
25549
25550
|
min: 0,
|
|
25550
25551
|
max: 6,
|
|
25551
25552
|
"controls-position": "right"
|
|
@@ -25564,8 +25565,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25564
25565
|
default: x(() => [
|
|
25565
25566
|
Q(b(ii), {
|
|
25566
25567
|
modelValue: _.formatType.numberUseGrouping,
|
|
25567
|
-
"onUpdate:modelValue": v[29] || (v[29] = (
|
|
25568
|
-
onChange: v[30] || (v[30] = (
|
|
25568
|
+
"onUpdate:modelValue": v[29] || (v[29] = (V) => _.formatType.numberUseGrouping = V),
|
|
25569
|
+
onChange: v[30] || (v[30] = (V) => P(V, "cell", "formatType.numberUseGrouping"))
|
|
25569
25570
|
}, null, 8, ["modelValue"])
|
|
25570
25571
|
]),
|
|
25571
25572
|
_: 1
|
|
@@ -25581,8 +25582,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25581
25582
|
default: x(() => [
|
|
25582
25583
|
Q(b(Yi), {
|
|
25583
25584
|
modelValue: _.formatType.currencySymbol,
|
|
25584
|
-
"onUpdate:modelValue": v[31] || (v[31] = (
|
|
25585
|
-
onChange: v[32] || (v[32] = (
|
|
25585
|
+
"onUpdate:modelValue": v[31] || (v[31] = (V) => _.formatType.currencySymbol = V),
|
|
25586
|
+
onChange: v[32] || (v[32] = (V) => P(V, "cell", "formatType.currencySymbol"))
|
|
25586
25587
|
}, {
|
|
25587
25588
|
default: x(() => [
|
|
25588
25589
|
Q(b(we), { value: "¥" }, {
|
|
@@ -25627,8 +25628,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25627
25628
|
default: x(() => [
|
|
25628
25629
|
Q(b(Yi), {
|
|
25629
25630
|
modelValue: _.formatType.scientificNotation,
|
|
25630
|
-
"onUpdate:modelValue": v[33] || (v[33] = (
|
|
25631
|
-
onChange: v[34] || (v[34] = (
|
|
25631
|
+
"onUpdate:modelValue": v[33] || (v[33] = (V) => _.formatType.scientificNotation = V),
|
|
25632
|
+
onChange: v[34] || (v[34] = (V) => P(V, "cell", "formatType.scientificNotation"))
|
|
25632
25633
|
}, {
|
|
25633
25634
|
default: x(() => [
|
|
25634
25635
|
Q(b(we), { label: "E" }, {
|
|
@@ -25656,13 +25657,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25656
25657
|
default: x(() => [
|
|
25657
25658
|
Q(b(he), { label: "指数精度" }, {
|
|
25658
25659
|
default: x(() => [
|
|
25659
|
-
Q(
|
|
25660
|
+
Q(ie, {
|
|
25660
25661
|
min: 0,
|
|
25661
25662
|
max: 20,
|
|
25662
25663
|
"controls-position": "right",
|
|
25663
25664
|
modelValue: _.formatType.digits,
|
|
25664
|
-
"onUpdate:modelValue": v[35] || (v[35] = (
|
|
25665
|
-
onChange: v[36] || (v[36] = (
|
|
25665
|
+
"onUpdate:modelValue": v[35] || (v[35] = (V) => _.formatType.digits = V),
|
|
25666
|
+
onChange: v[36] || (v[36] = (V) => P(V, "cell", "formatType.digits"))
|
|
25666
25667
|
}, null, 8, ["modelValue"])
|
|
25667
25668
|
]),
|
|
25668
25669
|
_: 1
|
|
@@ -25678,8 +25679,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25678
25679
|
Q(ne, {
|
|
25679
25680
|
filterable: "",
|
|
25680
25681
|
modelValue: _.formatType.date,
|
|
25681
|
-
"onUpdate:modelValue": v[37] || (v[37] = (
|
|
25682
|
-
onChange: v[38] || (v[38] = (
|
|
25682
|
+
"onUpdate:modelValue": v[37] || (v[37] = (V) => _.formatType.date = V),
|
|
25683
|
+
onChange: v[38] || (v[38] = (V) => P(V, "cell", "formatType.date"))
|
|
25683
25684
|
}, {
|
|
25684
25685
|
default: x(() => [
|
|
25685
25686
|
Q(W, { value: "YYYY-MM-DD HH:mm:ss" }),
|
|
@@ -25715,7 +25716,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25715
25716
|
Q(Ni, {
|
|
25716
25717
|
height: 100,
|
|
25717
25718
|
modelValue: o.value.customRender,
|
|
25718
|
-
"onUpdate:modelValue": v[39] || (v[39] = (
|
|
25719
|
+
"onUpdate:modelValue": v[39] || (v[39] = (V) => o.value.customRender = V)
|
|
25719
25720
|
}, {
|
|
25720
25721
|
"pre-code": x(() => [
|
|
25721
25722
|
B("function (cell,data){")
|
|
@@ -25774,14 +25775,14 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25774
25775
|
default: x(() => [
|
|
25775
25776
|
Q(b(he), { label: "行高" }, {
|
|
25776
25777
|
default: x(() => [
|
|
25777
|
-
Q(
|
|
25778
|
+
Q(ie, {
|
|
25778
25779
|
"controls-position": "right",
|
|
25779
25780
|
modelValue: _.rowSize,
|
|
25780
|
-
"onUpdate:modelValue": v[40] || (v[40] = (
|
|
25781
|
-
onChange: v[41] || (v[41] = (
|
|
25781
|
+
"onUpdate:modelValue": v[40] || (v[40] = (V) => _.rowSize = V),
|
|
25782
|
+
onChange: v[41] || (v[41] = (V) => P(V, "row", "size"))
|
|
25782
25783
|
}, null, 8, ["modelValue"]),
|
|
25783
25784
|
Q(b($e), {
|
|
25784
|
-
onClick: v[42] || (v[42] = (
|
|
25785
|
+
onClick: v[42] || (v[42] = (V) => P(25, "row", "size"))
|
|
25785
25786
|
}, {
|
|
25786
25787
|
default: x(() => [
|
|
25787
25788
|
B("重置")
|
|
@@ -25800,8 +25801,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25800
25801
|
default: x(() => [
|
|
25801
25802
|
Q(b(ii), {
|
|
25802
25803
|
modelValue: _.rowFixed,
|
|
25803
|
-
"onUpdate:modelValue": v[43] || (v[43] = (
|
|
25804
|
-
onChange: v[44] || (v[44] = (
|
|
25804
|
+
"onUpdate:modelValue": v[43] || (v[43] = (V) => _.rowFixed = V),
|
|
25805
|
+
onChange: v[44] || (v[44] = (V) => P(V, "row", "isFixed"))
|
|
25805
25806
|
}, null, 8, ["modelValue"])
|
|
25806
25807
|
]),
|
|
25807
25808
|
_: 1
|
|
@@ -25816,16 +25817,16 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25816
25817
|
default: x(() => [
|
|
25817
25818
|
Q(ne, {
|
|
25818
25819
|
modelValue: c.value.data,
|
|
25819
|
-
"onUpdate:modelValue": v[45] || (v[45] = (
|
|
25820
|
-
onChange: v[46] || (v[46] = (
|
|
25820
|
+
"onUpdate:modelValue": v[45] || (v[45] = (V) => c.value.data = V),
|
|
25821
|
+
onChange: v[46] || (v[46] = (V) => P(V, "row", "data")),
|
|
25821
25822
|
clearable: "",
|
|
25822
25823
|
filterable: ""
|
|
25823
25824
|
}, {
|
|
25824
25825
|
default: x(() => [
|
|
25825
|
-
(U(!0), K(re, null, Fe(b(g), (
|
|
25826
|
-
key:
|
|
25827
|
-
label:
|
|
25828
|
-
value:
|
|
25826
|
+
(U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
|
|
25827
|
+
key: V.key,
|
|
25828
|
+
label: V.name,
|
|
25829
|
+
value: V.key
|
|
25829
25830
|
}, null, 8, ["label", "value"]))), 128))
|
|
25830
25831
|
]),
|
|
25831
25832
|
_: 1
|
|
@@ -25842,8 +25843,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25842
25843
|
default: x(() => [
|
|
25843
25844
|
Q(b(ii), {
|
|
25844
25845
|
modelValue: c.value.loop,
|
|
25845
|
-
"onUpdate:modelValue": v[47] || (v[47] = (
|
|
25846
|
-
onChange: v[48] || (v[48] = (
|
|
25846
|
+
"onUpdate:modelValue": v[47] || (v[47] = (V) => c.value.loop = V),
|
|
25847
|
+
onChange: v[48] || (v[48] = (V) => P(V, "row", "loop"))
|
|
25847
25848
|
}, null, 8, ["modelValue"])
|
|
25848
25849
|
]),
|
|
25849
25850
|
_: 1
|
|
@@ -25858,11 +25859,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25858
25859
|
default: x(() => [
|
|
25859
25860
|
Q(b(he), { label: "数据下标" }, {
|
|
25860
25861
|
default: x(() => [
|
|
25861
|
-
Q(
|
|
25862
|
+
Q(ie, {
|
|
25862
25863
|
min: 0,
|
|
25863
25864
|
modelValue: c.value.dataIndex,
|
|
25864
|
-
"onUpdate:modelValue": v[49] || (v[49] = (
|
|
25865
|
-
onInput: v[50] || (v[50] = (
|
|
25865
|
+
"onUpdate:modelValue": v[49] || (v[49] = (V) => c.value.dataIndex = V),
|
|
25866
|
+
onInput: v[50] || (v[50] = (V) => P(V, "row", "dataIndex"))
|
|
25866
25867
|
}, null, 8, ["modelValue"])
|
|
25867
25868
|
]),
|
|
25868
25869
|
_: 1
|
|
@@ -25913,13 +25914,13 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25913
25914
|
default: x(() => [
|
|
25914
25915
|
Q(b(he), { label: "列宽" }, {
|
|
25915
25916
|
default: x(() => [
|
|
25916
|
-
Q(
|
|
25917
|
+
Q(ie, {
|
|
25917
25918
|
"controls-position": "right",
|
|
25918
25919
|
modelValue: _.colSize,
|
|
25919
|
-
"onUpdate:modelValue": v[51] || (v[51] = (
|
|
25920
|
+
"onUpdate:modelValue": v[51] || (v[51] = (V) => _.colSize = V)
|
|
25920
25921
|
}, null, 8, ["modelValue"]),
|
|
25921
25922
|
Q(b($e), {
|
|
25922
|
-
onClick: v[52] || (v[52] = (
|
|
25923
|
+
onClick: v[52] || (v[52] = (V) => _.colSize = 80)
|
|
25923
25924
|
}, {
|
|
25924
25925
|
default: x(() => [
|
|
25925
25926
|
B("重置")
|
|
@@ -25938,8 +25939,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25938
25939
|
default: x(() => [
|
|
25939
25940
|
Q(b(ii), {
|
|
25940
25941
|
modelValue: _.colFixed,
|
|
25941
|
-
"onUpdate:modelValue": v[53] || (v[53] = (
|
|
25942
|
-
onChange: v[54] || (v[54] = (
|
|
25942
|
+
"onUpdate:modelValue": v[53] || (v[53] = (V) => _.colFixed = V),
|
|
25943
|
+
onChange: v[54] || (v[54] = (V) => P(V, "col", "isFixed"))
|
|
25943
25944
|
}, null, 8, ["modelValue"])
|
|
25944
25945
|
]),
|
|
25945
25946
|
_: 1
|
|
@@ -25954,15 +25955,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25954
25955
|
default: x(() => [
|
|
25955
25956
|
Q(ne, {
|
|
25956
25957
|
modelValue: d.value.data,
|
|
25957
|
-
"onUpdate:modelValue": v[55] || (v[55] = (
|
|
25958
|
-
onChange: v[56] || (v[56] = (
|
|
25958
|
+
"onUpdate:modelValue": v[55] || (v[55] = (V) => d.value.data = V),
|
|
25959
|
+
onChange: v[56] || (v[56] = (V) => P(V, "col", "data")),
|
|
25959
25960
|
clearable: ""
|
|
25960
25961
|
}, {
|
|
25961
25962
|
default: x(() => [
|
|
25962
|
-
(U(!0), K(re, null, Fe(b(g), (
|
|
25963
|
-
key:
|
|
25964
|
-
label:
|
|
25965
|
-
value:
|
|
25963
|
+
(U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
|
|
25964
|
+
key: V.key,
|
|
25965
|
+
label: V.name,
|
|
25966
|
+
value: V.key
|
|
25966
25967
|
}, null, 8, ["label", "value"]))), 128))
|
|
25967
25968
|
]),
|
|
25968
25969
|
_: 1
|
|
@@ -25979,8 +25980,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25979
25980
|
default: x(() => [
|
|
25980
25981
|
Q(b(ii), {
|
|
25981
25982
|
modelValue: d.value.loop,
|
|
25982
|
-
"onUpdate:modelValue": v[57] || (v[57] = (
|
|
25983
|
-
onChange: v[58] || (v[58] = (
|
|
25983
|
+
"onUpdate:modelValue": v[57] || (v[57] = (V) => d.value.loop = V),
|
|
25984
|
+
onChange: v[58] || (v[58] = (V) => P(V, "col", "loop"))
|
|
25984
25985
|
}, null, 8, ["modelValue"])
|
|
25985
25986
|
]),
|
|
25986
25987
|
_: 1
|
|
@@ -25995,11 +25996,11 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25995
25996
|
default: x(() => [
|
|
25996
25997
|
Q(b(he), { label: "数据下标" }, {
|
|
25997
25998
|
default: x(() => [
|
|
25998
|
-
Q(
|
|
25999
|
+
Q(ie, {
|
|
25999
26000
|
min: 0,
|
|
26000
26001
|
modelValue: d.value.dataIndex,
|
|
26001
|
-
"onUpdate:modelValue": v[59] || (v[59] = (
|
|
26002
|
-
onInput: v[60] || (v[60] = (
|
|
26002
|
+
"onUpdate:modelValue": v[59] || (v[59] = (V) => d.value.dataIndex = V),
|
|
26003
|
+
onInput: v[60] || (v[60] = (V) => P(V, "col", "dataIndex"))
|
|
26003
26004
|
}, null, 8, ["modelValue"])
|
|
26004
26005
|
]),
|
|
26005
26006
|
_: 1
|
|
@@ -26968,7 +26969,7 @@ const _w = function(n, e) {
|
|
|
26968
26969
|
}
|
|
26969
26970
|
return un(() => {
|
|
26970
26971
|
}), (w, P) => {
|
|
26971
|
-
const g = fe("el-input"), Z = fe("el-checkbox"), T = fe("el-checkbox-group"), E = fe("el-tag"), L = fe("el-col"), I = fe("el-switch"), N = fe("el-form-item"), se = fe("el-form"), z = fe("el-row"),
|
|
26972
|
+
const g = fe("el-input"), Z = fe("el-checkbox"), T = fe("el-checkbox-group"), E = fe("el-tag"), L = fe("el-col"), I = fe("el-switch"), N = fe("el-form-item"), se = fe("el-form"), z = fe("el-row"), A = fe("el-text");
|
|
26972
26973
|
return U(), K(re, null, [
|
|
26973
26974
|
M("div", Pw, [
|
|
26974
26975
|
ww,
|
|
@@ -27024,19 +27025,19 @@ const _w = function(n, e) {
|
|
|
27024
27025
|
}, {
|
|
27025
27026
|
header: x(() => [
|
|
27026
27027
|
Iw,
|
|
27027
|
-
Q(
|
|
27028
|
+
Q(A, { type: "info" }, {
|
|
27028
27029
|
default: x(() => [
|
|
27029
27030
|
B("数据处理函数中:")
|
|
27030
27031
|
]),
|
|
27031
27032
|
_: 1
|
|
27032
27033
|
}),
|
|
27033
|
-
Q(
|
|
27034
|
+
Q(A, { type: "warning" }, {
|
|
27034
27035
|
default: x(() => [
|
|
27035
27036
|
B("多数据源时 allData 是数组,单数据源是对象;")
|
|
27036
27037
|
]),
|
|
27037
27038
|
_: 1
|
|
27038
27039
|
}),
|
|
27039
|
-
Q(
|
|
27040
|
+
Q(A, { type: "danger" }, {
|
|
27040
27041
|
default: x(() => [
|
|
27041
27042
|
B("函数为空则直接返回原始数据;")
|
|
27042
27043
|
]),
|
|
@@ -27431,8 +27432,8 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
|
|
|
27431
27432
|
case "params":
|
|
27432
27433
|
if (s.value && (L === R && se || I === R)) {
|
|
27433
27434
|
if (L === "column" && se) {
|
|
27434
|
-
const { dataSource: z, columnIndex:
|
|
27435
|
-
let v = z.columns[
|
|
27435
|
+
const { dataSource: z, columnIndex: A } = JSON.parse(se);
|
|
27436
|
+
let v = z.columns[A], q = s.value.params.findIndex((W) => W.columnName === v.columnName), Y = {
|
|
27436
27437
|
key: z.key,
|
|
27437
27438
|
columnName: v.columnName,
|
|
27438
27439
|
name: v.name,
|
|
@@ -27455,17 +27456,17 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
|
|
|
27455
27456
|
} else if (!isNaN(N) && k) {
|
|
27456
27457
|
let z = parseInt(k);
|
|
27457
27458
|
if (N !== -1 && !isNaN(z) && z > -1) {
|
|
27458
|
-
let [
|
|
27459
|
-
|
|
27459
|
+
let [A] = s.value.params.splice(z, 1);
|
|
27460
|
+
A && s.value.params.splice(N, 0, A);
|
|
27460
27461
|
}
|
|
27461
27462
|
}
|
|
27462
27463
|
}
|
|
27463
27464
|
break;
|
|
27464
27465
|
case "column":
|
|
27465
27466
|
if (se) {
|
|
27466
|
-
let { columnIndex: z, dataSource:
|
|
27467
|
-
if (z &&
|
|
27468
|
-
let { key: v } =
|
|
27467
|
+
let { columnIndex: z, dataSource: A } = JSON.parse(se);
|
|
27468
|
+
if (z && A && s.value) {
|
|
27469
|
+
let { key: v } = A, { columnName: q } = A.columns[z], { col: Y, row: W } = E.dataset;
|
|
27469
27470
|
s.value.config[W][Y].type = ee.FIELD, T.shiftKey ? (s.value.colConfig[Y].data = v, s.value.colConfig[Y].loop = !0, s.value.config[W][Y].data = `col:${q}`) : (s.value.rowConfig[W].data = v, s.value.rowConfig[W].loop = !0, s.value.config[W][Y].data = `row:${q}`), r.value = [
|
|
27470
27471
|
{
|
|
27471
27472
|
type: ee.CELL,
|
|
@@ -27657,4 +27658,4 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
|
|
|
27657
27658
|
export {
|
|
27658
27659
|
xk as default
|
|
27659
27660
|
};
|
|
27660
|
-
//# sourceMappingURL=StatementDesign-
|
|
27661
|
+
//# sourceMappingURL=StatementDesign-d556a432.mjs.map
|