yh-report 2.0.8 → 2.0.10
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-a78008d8.mjs → StatementDesign-c631779a.mjs} +216 -217
- package/StatementDesign-c631779a.mjs.map +1 -0
- package/{StatementDetail-13610ada.mjs → StatementDetail-7a7ce1bb.mjs} +2 -2
- package/{StatementDetail-13610ada.mjs.map → StatementDetail-7a7ce1bb.mjs.map} +1 -1
- package/{StatementList-74031b06.mjs → StatementList-dd1048ae.mjs} +2 -2
- package/{StatementList-74031b06.mjs.map → StatementList-dd1048ae.mjs.map} +1 -1
- package/{index-1e2fd643.mjs → index-b93c655c.mjs} +5 -5
- package/index-b93c655c.mjs.map +1 -0
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/StatementDesign-a78008d8.mjs.map +0 -1
- package/index-1e2fd643.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
|
|
6
|
+
import { b as Fm, s as Hm, C as te, 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-b93c655c.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";
|
|
@@ -136,16 +136,16 @@ const Lt = function() {
|
|
|
136
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:
|
|
140
|
-
if (
|
|
139
|
+
const { type: Y, col: W, row: J, index: ne } = z;
|
|
140
|
+
if (ne !== t.index || !Y)
|
|
141
141
|
return !1;
|
|
142
142
|
switch (A) {
|
|
143
|
-
case
|
|
144
|
-
return [
|
|
145
|
-
case
|
|
146
|
-
return [
|
|
147
|
-
case
|
|
148
|
-
return Y ===
|
|
143
|
+
case te.COL:
|
|
144
|
+
return [te.CELL, te.COL].includes(Y) && W === v - 1;
|
|
145
|
+
case te.ROW:
|
|
146
|
+
return [te.ROW, te.CELL].includes(Y) && J === v;
|
|
147
|
+
case te.CELL:
|
|
148
|
+
return Y === te.ROW && J === q || Y === te.COL && W === v || Y === te.CELL && W === v && J === q;
|
|
149
149
|
default:
|
|
150
150
|
return !1;
|
|
151
151
|
}
|
|
@@ -177,20 +177,20 @@ const Lt = function() {
|
|
|
177
177
|
{ deep: !0, immediate: !0 }
|
|
178
178
|
);
|
|
179
179
|
function $() {
|
|
180
|
-
var W,
|
|
181
|
-
let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((
|
|
182
|
-
for (let
|
|
183
|
-
const V = O(v,
|
|
180
|
+
var W, J;
|
|
181
|
+
let z = ((W = f.value.rowConfig) == null ? void 0 : W.length) ?? 5, A = ((J = f.value.colConfig) == null ? void 0 : J.length) ?? 10, v = t.index === s.value && Array.isArray(l.value) ? [...l.value] : [], q = [], Y = [];
|
|
182
|
+
for (let ne = 0; ne < A + 1; ne++) {
|
|
183
|
+
const V = O(v, te.COL, ne), { bindData: _e, bindDataLoop: de } = R(ne - 1), Ce = V || !1;
|
|
184
184
|
let _s = {
|
|
185
|
-
text: m(
|
|
185
|
+
text: m(ne),
|
|
186
186
|
styleAttr: "",
|
|
187
187
|
class: "mouse-down-target head",
|
|
188
188
|
active: Ce,
|
|
189
189
|
bind: _e,
|
|
190
190
|
loop: de,
|
|
191
|
-
type:
|
|
191
|
+
type: te.HEAD,
|
|
192
192
|
row: -1,
|
|
193
|
-
col:
|
|
193
|
+
col: ne - 1,
|
|
194
194
|
colSpan: 1,
|
|
195
195
|
rowSpan: 1
|
|
196
196
|
};
|
|
@@ -202,43 +202,43 @@ const Lt = function() {
|
|
|
202
202
|
loop: !1,
|
|
203
203
|
cols: Y
|
|
204
204
|
});
|
|
205
|
-
for (let
|
|
206
|
-
const V = O(v,
|
|
207
|
-
type:
|
|
205
|
+
for (let ne = 0; ne < z; ne++) {
|
|
206
|
+
const V = O(v, te.ROW, ne), _e = [], de = {
|
|
207
|
+
type: te.HEAD,
|
|
208
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: (ne + 1).toString(),
|
|
214
214
|
col: -1,
|
|
215
|
-
row:
|
|
215
|
+
row: ne,
|
|
216
216
|
colSpan: 1,
|
|
217
217
|
rowSpan: 1
|
|
218
218
|
};
|
|
219
219
|
V && (de.class += " active"), _e.push(de);
|
|
220
220
|
for (let Vi = 0; Vi < A; Vi++) {
|
|
221
|
-
const _h = O(v,
|
|
222
|
-
let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[
|
|
221
|
+
const _h = O(v, te.CELL, Vi, ne);
|
|
222
|
+
let { bindData: Am, bindDataLoop: ck } = R(Vi), Qe = f.value.config && f.value.config[ne] ? f.value.config[ne][Vi] : null;
|
|
223
223
|
if (Qe) {
|
|
224
|
-
let Qi = "", Qh = "", ao =
|
|
224
|
+
let Qi = "", Qh = "", ao = te.TEXT;
|
|
225
225
|
if (Qe && Qe.type) {
|
|
226
226
|
ao = Qe.type;
|
|
227
227
|
let ho = Qe.format && Qe.format !== Re.TEXT ? ` | ${Qe.format}` : "";
|
|
228
228
|
switch (Qe.type) {
|
|
229
|
-
case
|
|
229
|
+
case te.TEXT:
|
|
230
230
|
Qe.text && (Qi = Qe.text + ho || "");
|
|
231
231
|
break;
|
|
232
|
-
case
|
|
232
|
+
case te.FIELD:
|
|
233
233
|
Qe.data ? Qi = `\${${Qe.data}}${ho}` : Qe.format === Re.STRING && Qe.fun && (Qi = Qe.fun);
|
|
234
234
|
break;
|
|
235
|
-
case
|
|
235
|
+
case te.FUN:
|
|
236
236
|
Qe.fun && (Qi = `=${Qe.fun}${ho}`);
|
|
237
237
|
break;
|
|
238
|
-
case
|
|
238
|
+
case te.ICON:
|
|
239
239
|
Qe.text && (Qi = `Icon: ${Qe.text}`);
|
|
240
240
|
break;
|
|
241
|
-
case
|
|
241
|
+
case te.IMAGE:
|
|
242
242
|
Qe.text && (Qi = `image: ${Qe.text}`);
|
|
243
243
|
break;
|
|
244
244
|
}
|
|
@@ -253,16 +253,16 @@ const Lt = function() {
|
|
|
253
253
|
loop: !1,
|
|
254
254
|
type: ao,
|
|
255
255
|
col: Vi,
|
|
256
|
-
row:
|
|
256
|
+
row: ne,
|
|
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(ne);
|
|
264
264
|
q.push({
|
|
265
|
-
size: f.value.rowConfig[
|
|
265
|
+
size: f.value.rowConfig[ne].size || 80,
|
|
266
266
|
bind: Ce,
|
|
267
267
|
loop: _s,
|
|
268
268
|
cols: _e
|
|
@@ -299,12 +299,11 @@ const Lt = function() {
|
|
|
299
299
|
let A = z.target;
|
|
300
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();
|
|
@@ -328,14 +327,14 @@ const Lt = function() {
|
|
|
328
327
|
function I(z) {
|
|
329
328
|
var A, v;
|
|
330
329
|
if ((A = z.target) != null && A.closest(".report-desinger-table-content")) {
|
|
331
|
-
let { pageX: q, pageY: Y } = z, { x: W = 0, y:
|
|
332
|
-
L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY =
|
|
330
|
+
let { pageX: q, pageY: Y } = z, { x: W = 0, y: J = 0 } = ((v = g.value) == null ? void 0 : v.getBoundingClientRect()) || {};
|
|
331
|
+
L = {}, L.x = q, L.y = Y, L.tableX = W, L.tableY = J, E.left = q - W + "px", E.top = Y - J + "px";
|
|
333
332
|
}
|
|
334
333
|
}
|
|
335
334
|
function N(z) {
|
|
336
335
|
if (L !== null) {
|
|
337
|
-
let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y:
|
|
338
|
-
A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v >
|
|
336
|
+
let { pageX: A, pageY: v } = z, { tableX: q, tableY: Y, x: W, y: J } = L;
|
|
337
|
+
A > W ? E.width = A - W - 1 + "px" : (E.left = A - q + "px", E.width = W - A + "px"), v > J ? E.height = v - J - 1 + "px" : (E.top = v - Y + "px", E.height = J - v + "px");
|
|
339
338
|
}
|
|
340
339
|
}
|
|
341
340
|
function se(z) {
|
|
@@ -381,14 +380,14 @@ const Lt = function() {
|
|
|
381
380
|
M("div", dg, [
|
|
382
381
|
Q(q, { inline: "" }, {
|
|
383
382
|
default: x(() => [
|
|
384
|
-
(U(!0), K(re, null, Fe(b(w), (W,
|
|
383
|
+
(U(!0), K(re, null, Fe(b(w), (W, J) => (U(), oe(v, {
|
|
385
384
|
class: "params-desinger-item report-drag-source report-drop-target",
|
|
386
385
|
draggable: "true",
|
|
387
386
|
"data-drag": "params",
|
|
388
387
|
"data-source": "column",
|
|
389
388
|
"data-target": "params",
|
|
390
|
-
onClick: (
|
|
391
|
-
"data-index":
|
|
389
|
+
onClick: (ne) => o.value = J,
|
|
390
|
+
"data-index": J,
|
|
392
391
|
label: W.name
|
|
393
392
|
}, {
|
|
394
393
|
default: x(() => [
|
|
@@ -399,7 +398,7 @@ const Lt = function() {
|
|
|
399
398
|
M("div", {
|
|
400
399
|
class: "del",
|
|
401
400
|
"data-type": "params",
|
|
402
|
-
"data-index":
|
|
401
|
+
"data-index": J,
|
|
403
402
|
onClick: P
|
|
404
403
|
}, mg, 8, Og)
|
|
405
404
|
]),
|
|
@@ -422,13 +421,13 @@ const Lt = function() {
|
|
|
422
421
|
width: W == null ? void 0 : W.size
|
|
423
422
|
}, null, 8, yg))), 256))
|
|
424
423
|
]),
|
|
425
|
-
(U(!0), K(re, null, Fe(b(X), ({ size: W, cols:
|
|
424
|
+
(U(!0), K(re, null, Fe(b(X), ({ size: W, cols: J, bind: ne, loop: V }, _e) => (U(), K("tr", {
|
|
426
425
|
style: Ct(`height: ${W}px;`)
|
|
427
426
|
}, [
|
|
428
|
-
(U(!0), K(re, null, Fe(
|
|
427
|
+
(U(!0), K(re, null, Fe(J, (de, Ce) => (U(), K("td", {
|
|
429
428
|
class: cr(de.class),
|
|
430
429
|
style: Ct(de.styleAttr),
|
|
431
|
-
title: `${(
|
|
430
|
+
title: `${(ne || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
|
|
432
431
|
"data-source": "column",
|
|
433
432
|
"data-target": "column",
|
|
434
433
|
"data-area": de.type === "head" ? "head" : "cell",
|
|
@@ -688,7 +687,7 @@ const Lt = function() {
|
|
|
688
687
|
if (R) {
|
|
689
688
|
let { area: k, index: X, col: $, row: C } = R.dataset, w = $ ? parseInt($) : -1, P = C ? parseInt(C) : -1;
|
|
690
689
|
const g = Number(X), Z = isNaN(g) ? -1 : g;
|
|
691
|
-
k && Z > -1 && (k ===
|
|
690
|
+
k && Z > -1 && (k === te.HEAD && (w > -1 ? k = te.COL : P > -1 && (k = te.ROW)), c = {
|
|
692
691
|
droparea: k,
|
|
693
692
|
index: Z,
|
|
694
693
|
rindex: P,
|
|
@@ -740,30 +739,30 @@ const Lt = function() {
|
|
|
740
739
|
for (let A = N; A <= se; A++)
|
|
741
740
|
for (let v = L; v <= I; v++)
|
|
742
741
|
z.push({
|
|
743
|
-
type:
|
|
742
|
+
type: te.CELL,
|
|
744
743
|
index: C,
|
|
745
744
|
col: v,
|
|
746
745
|
row: A
|
|
747
746
|
});
|
|
748
747
|
r.value = z;
|
|
749
|
-
} else if ([
|
|
748
|
+
} else if ([te.COL, te.ROW].includes(g) && (E !== void 0 && E > -1 || T !== void 0 && T > -1)) {
|
|
750
749
|
let L = [], [I, N] = [E, w].sort(), [se, z] = [T, P].sort();
|
|
751
750
|
switch (g) {
|
|
752
|
-
case
|
|
751
|
+
case te.COL:
|
|
753
752
|
if (I !== void 0 && N !== void 0 && N > -1)
|
|
754
753
|
for (let A = I; A <= N; A++)
|
|
755
754
|
L.push({
|
|
756
|
-
type:
|
|
755
|
+
type: te.COL,
|
|
757
756
|
index: C,
|
|
758
757
|
col: A,
|
|
759
758
|
row: -1
|
|
760
759
|
});
|
|
761
760
|
break;
|
|
762
|
-
case
|
|
761
|
+
case te.ROW:
|
|
763
762
|
if (se !== void 0 && z !== void 0 && z > -1)
|
|
764
763
|
for (let A = se; A <= z; A++)
|
|
765
764
|
L.push({
|
|
766
|
-
type:
|
|
765
|
+
type: te.ROW,
|
|
767
766
|
index: C,
|
|
768
767
|
col: -1,
|
|
769
768
|
row: A
|
|
@@ -4966,7 +4965,7 @@ class ti {
|
|
|
4966
4965
|
var He = /* @__PURE__ */ function(n) {
|
|
4967
4966
|
return n[n.Text = 0] = "Text", n[n.WidgetBefore = 1] = "WidgetBefore", n[n.WidgetAfter = 2] = "WidgetAfter", n[n.WidgetRange = 3] = "WidgetRange", n;
|
|
4968
4967
|
}(He || (He = {}));
|
|
4969
|
-
class
|
|
4968
|
+
class ie extends ki {
|
|
4970
4969
|
constructor(e, t, i, s) {
|
|
4971
4970
|
super(), this.startSide = e, this.endSide = t, this.widget = i, this.spec = s;
|
|
4972
4971
|
}
|
|
@@ -5032,8 +5031,8 @@ class te extends ki {
|
|
|
5032
5031
|
return this.widget ? this.widget.estimatedHeight > -1 : !1;
|
|
5033
5032
|
}
|
|
5034
5033
|
}
|
|
5035
|
-
|
|
5036
|
-
class hs extends
|
|
5034
|
+
ie.none = ge.empty;
|
|
5035
|
+
class hs extends ie {
|
|
5037
5036
|
constructor(e) {
|
|
5038
5037
|
let { start: t, end: i } = pd(e);
|
|
5039
5038
|
super(t ? -1 : 5e8, i ? 1 : -6e8, null, e), this.tagName = e.tagName || "span", this.class = e.class || "", this.attrs = e.attributes || null;
|
|
@@ -5049,7 +5048,7 @@ class hs extends te {
|
|
|
5049
5048
|
}
|
|
5050
5049
|
}
|
|
5051
5050
|
hs.prototype.point = !1;
|
|
5052
|
-
class us extends
|
|
5051
|
+
class us extends ie {
|
|
5053
5052
|
constructor(e) {
|
|
5054
5053
|
super(-2e8, -2e8, null, e);
|
|
5055
5054
|
}
|
|
@@ -5064,7 +5063,7 @@ class us extends te {
|
|
|
5064
5063
|
}
|
|
5065
5064
|
us.prototype.mapMode = We.TrackBefore;
|
|
5066
5065
|
us.prototype.point = !0;
|
|
5067
|
-
class di extends
|
|
5066
|
+
class di extends ie {
|
|
5068
5067
|
constructor(e, t, i, s, r, o) {
|
|
5069
5068
|
super(t, i, r, e), this.block = s, this.isReplace = o, this.mapMode = s ? t <= 0 ? We.TrackBefore : We.TrackAfter : We.TrackDel;
|
|
5070
5069
|
}
|
|
@@ -5701,7 +5700,7 @@ class Ee {
|
|
|
5701
5700
|
let a = [Tn.of(l)];
|
|
5702
5701
|
return o && a.push(In.of((u) => {
|
|
5703
5702
|
let h = u.plugin(l);
|
|
5704
|
-
return h ? o(h) :
|
|
5703
|
+
return h ? o(h) : ie.none;
|
|
5705
5704
|
})), r && a.push(r(l)), a;
|
|
5706
5705
|
});
|
|
5707
5706
|
}
|
|
@@ -5899,7 +5898,7 @@ class Uh extends xe {
|
|
|
5899
5898
|
return this.view.state.doc.length;
|
|
5900
5899
|
}
|
|
5901
5900
|
constructor(e) {
|
|
5902
|
-
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 = ie.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);
|
|
5903
5902
|
}
|
|
5904
5903
|
// Update the document view to a given state.
|
|
5905
5904
|
update(e) {
|
|
@@ -6182,7 +6181,7 @@ class Uh extends xe {
|
|
|
6182
6181
|
let r = s == t.viewports.length ? null : t.viewports[s], o = r ? r.from - 1 : this.length;
|
|
6183
6182
|
if (o > i) {
|
|
6184
6183
|
let l = (t.lineBlockAt(o).bottom - t.lineBlockAt(i).top) / this.view.scaleY;
|
|
6185
|
-
e.push(
|
|
6184
|
+
e.push(ie.replace({
|
|
6186
6185
|
widget: new Yl(l),
|
|
6187
6186
|
block: !0,
|
|
6188
6187
|
inclusive: !0,
|
|
@@ -6193,7 +6192,7 @@ class Uh extends xe {
|
|
|
6193
6192
|
break;
|
|
6194
6193
|
i = r.to + 1;
|
|
6195
6194
|
}
|
|
6196
|
-
return
|
|
6195
|
+
return ie.set(e);
|
|
6197
6196
|
}
|
|
6198
6197
|
updateDeco() {
|
|
6199
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) => {
|
|
@@ -7781,7 +7780,7 @@ class Qo {
|
|
|
7781
7780
|
return !0;
|
|
7782
7781
|
}
|
|
7783
7782
|
draw(e, t) {
|
|
7784
|
-
return
|
|
7783
|
+
return ie.replace({
|
|
7785
7784
|
widget: new q0(this.displaySize * (t ? e.scaleY : e.scaleX), t)
|
|
7786
7785
|
}).range(this.from, this.to);
|
|
7787
7786
|
}
|
|
@@ -7808,7 +7807,7 @@ class lu {
|
|
|
7808
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)]);
|
|
7809
7808
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
7810
7809
|
;
|
|
7811
|
-
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco =
|
|
7810
|
+
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = ie.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
|
|
7812
7811
|
}
|
|
7813
7812
|
updateForViewport() {
|
|
7814
7813
|
let e = [this.viewport], { main: t } = this.state.selection;
|
|
@@ -7992,7 +7991,7 @@ class lu {
|
|
|
7992
7991
|
return this.heightOracle.lineWrapping ? e.height * r : s.total * this.heightOracle.charWidth * r;
|
|
7993
7992
|
}
|
|
7994
7993
|
updateLineGaps(e) {
|
|
7995
|
-
Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco =
|
|
7994
|
+
Qo.same(e, this.lineGaps) || (this.lineGaps = e, this.lineGapDeco = ie.set(e.map((t) => t.draw(this, this.heightOracle.lineWrapping))));
|
|
7996
7995
|
}
|
|
7997
7996
|
computeVisibleRanges(e) {
|
|
7998
7997
|
let t = this.stateDeco;
|
|
@@ -8685,11 +8684,11 @@ class B0 {
|
|
|
8685
8684
|
let a = this.toEditorPos(r.rangeStart), u = this.toEditorPos(r.rangeEnd);
|
|
8686
8685
|
if (a < u) {
|
|
8687
8686
|
let h = `text-decoration: underline ${o == "Dashed" ? "dashed " : o == "Squiggle" ? "wavy " : ""}${l == "Thin" ? 1 : 2}px`;
|
|
8688
|
-
s.push(
|
|
8687
|
+
s.push(ie.mark({ attributes: { style: h } }).range(a, u));
|
|
8689
8688
|
}
|
|
8690
8689
|
}
|
|
8691
8690
|
}
|
|
8692
|
-
e.dispatch({ effects: Cd.of(
|
|
8691
|
+
e.dispatch({ effects: Cd.of(ie.set(s)) });
|
|
8693
8692
|
}, this.handlers.compositionstart = () => {
|
|
8694
8693
|
e.inputState.composing < 0 && (e.inputState.composing = 0, e.inputState.compositionFirstChange = !0);
|
|
8695
8694
|
}, this.handlers.compositionend = () => {
|
|
@@ -10079,7 +10078,7 @@ let gu = null;
|
|
|
10079
10078
|
function OQ() {
|
|
10080
10079
|
return gu || (gu = Ee.fromClass(class {
|
|
10081
10080
|
constructor(n) {
|
|
10082
|
-
this.view = n, this.decorations =
|
|
10081
|
+
this.view = n, this.decorations = ie.none, this.decorationCache = /* @__PURE__ */ Object.create(null), this.decorator = this.makeDecorator(n.state.facet(sr)), this.decorations = this.decorator.createDeco(n);
|
|
10083
10082
|
}
|
|
10084
10083
|
makeDecorator(n) {
|
|
10085
10084
|
return new hQ({
|
|
@@ -10088,11 +10087,11 @@ function OQ() {
|
|
|
10088
10087
|
let { doc: s } = t.state, r = et(e[0], 0);
|
|
10089
10088
|
if (r == 9) {
|
|
10090
10089
|
let o = s.lineAt(i), l = t.state.tabSize, a = cn(o.text, l, i - o.from);
|
|
10091
|
-
return
|
|
10090
|
+
return ie.replace({
|
|
10092
10091
|
widget: new _Q((l - a % l) * this.view.defaultCharacterWidth / this.view.scaleX)
|
|
10093
10092
|
});
|
|
10094
10093
|
}
|
|
10095
|
-
return this.decorationCache[r] || (this.decorationCache[r] =
|
|
10094
|
+
return this.decorationCache[r] || (this.decorationCache[r] = ie.replace({ widget: new gQ(n, r) }));
|
|
10096
10095
|
},
|
|
10097
10096
|
boundary: n.replaceTabs ? void 0 : /[^]/
|
|
10098
10097
|
});
|
|
@@ -10145,7 +10144,7 @@ class _Q extends ti {
|
|
|
10145
10144
|
function QQ() {
|
|
10146
10145
|
return yQ;
|
|
10147
10146
|
}
|
|
10148
|
-
const bQ = /* @__PURE__ */
|
|
10147
|
+
const bQ = /* @__PURE__ */ ie.line({ class: "cm-activeLine" }), yQ = /* @__PURE__ */ Ee.fromClass(class {
|
|
10149
10148
|
constructor(n) {
|
|
10150
10149
|
this.decorations = this.getDeco(n);
|
|
10151
10150
|
}
|
|
@@ -10158,7 +10157,7 @@ const bQ = /* @__PURE__ */ te.line({ class: "cm-activeLine" }), yQ = /* @__PURE_
|
|
|
10158
10157
|
let s = n.lineBlockAt(i.head);
|
|
10159
10158
|
s.from > e && (t.push(bQ.range(s.from)), e = s.from);
|
|
10160
10159
|
}
|
|
10161
|
-
return
|
|
10160
|
+
return ie.set(t);
|
|
10162
10161
|
}
|
|
10163
10162
|
}, {
|
|
10164
10163
|
decorations: (n) => n.decorations
|
|
@@ -12242,10 +12241,10 @@ function i1(n) {
|
|
|
12242
12241
|
} else {
|
|
12243
12242
|
let q = l.pos - L;
|
|
12244
12243
|
l.next();
|
|
12245
|
-
let Y = [], W = [],
|
|
12244
|
+
let Y = [], W = [], J = Z >= o ? Z : -1, ne = 0, V = E;
|
|
12246
12245
|
for (; l.pos > q; )
|
|
12247
|
-
|
|
12248
|
-
if (
|
|
12246
|
+
J >= 0 && l.id == J && l.size >= 0 ? (l.end <= V - s && (p(Y, W, T, ne, l.end, V, J, I, N), ne = Y.length, V = l.end), l.next()) : g > 2500 ? f(T, q, Y, W) : c(T, q, Y, W, J, g + 1);
|
|
12247
|
+
if (J >= 0 && ne > 0 && ne < Y.length && p(Y, W, T, ne, T, V, J, I, N), Y.reverse(), W.reverse(), J > -1 && ne > 0) {
|
|
12249
12248
|
let _e = d(se, N);
|
|
12250
12249
|
z = qa(se, Y, W, 0, Y.length, 0, E - T, _e, _e);
|
|
12251
12250
|
} else
|
|
@@ -14140,13 +14139,13 @@ function _O(n) {
|
|
|
14140
14139
|
}
|
|
14141
14140
|
const Xi = /* @__PURE__ */ Le.define({
|
|
14142
14141
|
create() {
|
|
14143
|
-
return
|
|
14142
|
+
return ie.none;
|
|
14144
14143
|
},
|
|
14145
14144
|
update(n, e) {
|
|
14146
14145
|
n = n.map(e.changes);
|
|
14147
14146
|
for (let t of e.effects)
|
|
14148
14147
|
if (t.is(eo) && !Z1(n, t.value.from, t.value.to)) {
|
|
14149
|
-
let { preparePlaceholder: i } = e.state.facet(Ba), s = i ?
|
|
14148
|
+
let { preparePlaceholder: i } = e.state.facet(Ba), s = i ? ie.replace({ widget: new D1(i(e.state, t.value)) }) : Mu;
|
|
14150
14149
|
n = n.update({ add: [s.range(t.value.from, t.value.to)] });
|
|
14151
14150
|
} else
|
|
14152
14151
|
t.is(ds) && (n = n.update({
|
|
@@ -14183,7 +14182,7 @@ const Xi = /* @__PURE__ */ Le.define({
|
|
|
14183
14182
|
throw new RangeError("Invalid JSON for fold state");
|
|
14184
14183
|
e.push(Mu.range(i, s));
|
|
14185
14184
|
}
|
|
14186
|
-
return
|
|
14185
|
+
return ie.set(e, !0);
|
|
14187
14186
|
}
|
|
14188
14187
|
});
|
|
14189
14188
|
function Pr(n, e, t) {
|
|
@@ -14266,7 +14265,7 @@ function SO(n, e) {
|
|
|
14266
14265
|
let r = document.createElement("span");
|
|
14267
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;
|
|
14268
14267
|
}
|
|
14269
|
-
const Mu = /* @__PURE__ */
|
|
14268
|
+
const Mu = /* @__PURE__ */ ie.replace({ widget: /* @__PURE__ */ new class extends ti {
|
|
14270
14269
|
toDOM(n) {
|
|
14271
14270
|
return SO(n, null);
|
|
14272
14271
|
}
|
|
@@ -14417,11 +14416,11 @@ class W1 {
|
|
|
14417
14416
|
}
|
|
14418
14417
|
buildDeco(e, t) {
|
|
14419
14418
|
if (!t || !this.tree.length)
|
|
14420
|
-
return
|
|
14419
|
+
return ie.none;
|
|
14421
14420
|
let i = new Ft();
|
|
14422
14421
|
for (let { from: s, to: r } of e.visibleRanges)
|
|
14423
14422
|
m1(this.tree, t, (o, l, a) => {
|
|
14424
|
-
i.add(o, l, this.markCache[a] || (this.markCache[a] =
|
|
14423
|
+
i.add(o, l, this.markCache[a] || (this.markCache[a] = ie.mark({ class: a })));
|
|
14425
14424
|
}, s, r);
|
|
14426
14425
|
return i.finish();
|
|
14427
14426
|
}
|
|
@@ -14518,14 +14517,14 @@ const B1 = /* @__PURE__ */ gi.high(/* @__PURE__ */ Ee.fromClass(W1, {
|
|
|
14518
14517
|
renderMatch: F1
|
|
14519
14518
|
});
|
|
14520
14519
|
}
|
|
14521
|
-
}), G1 = /* @__PURE__ */
|
|
14520
|
+
}), G1 = /* @__PURE__ */ ie.mark({ class: "cm-matchingBracket" }), j1 = /* @__PURE__ */ ie.mark({ class: "cm-nonmatchingBracket" });
|
|
14522
14521
|
function F1(n) {
|
|
14523
14522
|
let e = [], t = n.matched ? G1 : j1;
|
|
14524
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;
|
|
14525
14524
|
}
|
|
14526
14525
|
const H1 = /* @__PURE__ */ Le.define({
|
|
14527
14526
|
create() {
|
|
14528
|
-
return
|
|
14527
|
+
return ie.none;
|
|
14529
14528
|
},
|
|
14530
14529
|
update(n, e) {
|
|
14531
14530
|
if (!e.docChanged && !e.selection)
|
|
@@ -14537,7 +14536,7 @@ const H1 = /* @__PURE__ */ Le.define({
|
|
|
14537
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));
|
|
14538
14537
|
r && (t = t.concat(i.renderMatch(r, e.state)));
|
|
14539
14538
|
}
|
|
14540
|
-
return
|
|
14539
|
+
return ie.set(t, !0);
|
|
14541
14540
|
},
|
|
14542
14541
|
provide: (n) => j.decorations.from(n)
|
|
14543
14542
|
}), K1 = [
|
|
@@ -15687,7 +15686,7 @@ function yy(n) {
|
|
|
15687
15686
|
let e = [Py, $y];
|
|
15688
15687
|
return n && e.push(hp.of(n)), e;
|
|
15689
15688
|
}
|
|
15690
|
-
const Sy = /* @__PURE__ */
|
|
15689
|
+
const Sy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch" }), vy = /* @__PURE__ */ ie.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
15691
15690
|
function Ju(n, e, t, i) {
|
|
15692
15691
|
return (t == 0 || n(e.sliceDoc(t - 1, t)) != Xe.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Xe.Word);
|
|
15693
15692
|
}
|
|
@@ -15704,24 +15703,24 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
|
|
|
15704
15703
|
getDeco(n) {
|
|
15705
15704
|
let e = n.state.facet(hp), { state: t } = n, i = t.selection;
|
|
15706
15705
|
if (i.ranges.length > 1)
|
|
15707
|
-
return
|
|
15706
|
+
return ie.none;
|
|
15708
15707
|
let s = i.main, r, o = null;
|
|
15709
15708
|
if (s.empty) {
|
|
15710
15709
|
if (!e.highlightWordAroundCursor)
|
|
15711
|
-
return
|
|
15710
|
+
return ie.none;
|
|
15712
15711
|
let a = t.wordAt(s.head);
|
|
15713
15712
|
if (!a)
|
|
15714
|
-
return
|
|
15713
|
+
return ie.none;
|
|
15715
15714
|
o = t.charCategorizer(s.head), r = t.sliceDoc(a.from, a.to);
|
|
15716
15715
|
} else {
|
|
15717
15716
|
let a = s.to - s.from;
|
|
15718
15717
|
if (a < e.minSelectionLength || a > 200)
|
|
15719
|
-
return
|
|
15718
|
+
return ie.none;
|
|
15720
15719
|
if (e.wholeWords) {
|
|
15721
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)))
|
|
15722
|
-
return
|
|
15721
|
+
return ie.none;
|
|
15723
15722
|
} else if (r = t.sliceDoc(s.from, s.to), !r)
|
|
15724
|
-
return
|
|
15723
|
+
return ie.none;
|
|
15725
15724
|
}
|
|
15726
15725
|
let l = [];
|
|
15727
15726
|
for (let a of n.visibleRanges) {
|
|
@@ -15729,10 +15728,10 @@ const $y = /* @__PURE__ */ Ee.fromClass(class {
|
|
|
15729
15728
|
for (; !u.next().done; ) {
|
|
15730
15729
|
let { from: h, to: c } = u.value;
|
|
15731
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))
|
|
15732
|
-
return
|
|
15731
|
+
return ie.none;
|
|
15733
15732
|
}
|
|
15734
15733
|
}
|
|
15735
|
-
return
|
|
15734
|
+
return ie.set(l);
|
|
15736
15735
|
}
|
|
15737
15736
|
}, {
|
|
15738
15737
|
decorations: (n) => n.decorations
|
|
@@ -15967,7 +15966,7 @@ class Zo {
|
|
|
15967
15966
|
this.query = e, this.panel = t;
|
|
15968
15967
|
}
|
|
15969
15968
|
}
|
|
15970
|
-
const Ay = /* @__PURE__ */
|
|
15969
|
+
const Ay = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE__ */ ie.mark({ class: "cm-searchMatch cm-searchMatch-selected" }), Yy = /* @__PURE__ */ Ee.fromClass(class {
|
|
15971
15970
|
constructor(n) {
|
|
15972
15971
|
this.view = n, this.decorations = this.highlight(n.state.field(ui));
|
|
15973
15972
|
}
|
|
@@ -15977,7 +15976,7 @@ const Ay = /* @__PURE__ */ te.mark({ class: "cm-searchMatch" }), Vy = /* @__PURE
|
|
|
15977
15976
|
}
|
|
15978
15977
|
highlight({ query: n, panel: e }) {
|
|
15979
15978
|
if (!e || !n.spec.valid)
|
|
15980
|
-
return
|
|
15979
|
+
return ie.none;
|
|
15981
15980
|
let { view: t } = this, i = new Ft();
|
|
15982
15981
|
for (let s = 0, r = t.visibleRanges, o = r.length; s < o; s++) {
|
|
15983
15982
|
let { from: l, to: a } = r[s];
|
|
@@ -17291,7 +17290,7 @@ class sh {
|
|
|
17291
17290
|
return new sh(i, s);
|
|
17292
17291
|
}
|
|
17293
17292
|
}
|
|
17294
|
-
let mS = /* @__PURE__ */
|
|
17293
|
+
let mS = /* @__PURE__ */ ie.widget({ widget: /* @__PURE__ */ new class extends ti {
|
|
17295
17294
|
toDOM() {
|
|
17296
17295
|
let n = document.createElement("span");
|
|
17297
17296
|
return n.className = "cm-snippetFieldPosition", n;
|
|
@@ -17299,10 +17298,10 @@ let mS = /* @__PURE__ */ te.widget({ widget: /* @__PURE__ */ new class extends t
|
|
|
17299
17298
|
ignoreEvent() {
|
|
17300
17299
|
return !1;
|
|
17301
17300
|
}
|
|
17302
|
-
}() }), gS = /* @__PURE__ */
|
|
17301
|
+
}() }), gS = /* @__PURE__ */ ie.mark({ class: "cm-snippetField" });
|
|
17303
17302
|
class mn {
|
|
17304
17303
|
constructor(e, t) {
|
|
17305
|
-
this.ranges = e, this.active = t, this.deco =
|
|
17304
|
+
this.ranges = e, this.active = t, this.deco = ie.set(e.map((i) => (i.from == i.to ? mS : gS).range(i.from, i.to)));
|
|
17306
17305
|
}
|
|
17307
17306
|
map(e) {
|
|
17308
17307
|
let t = [];
|
|
@@ -17335,7 +17334,7 @@ const gs = /* @__PURE__ */ le.define({
|
|
|
17335
17334
|
}
|
|
17336
17335
|
return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
|
|
17337
17336
|
},
|
|
17338
|
-
provide: (n) => j.decorations.from(n, (e) => e ? e.deco :
|
|
17337
|
+
provide: (n) => j.decorations.from(n, (e) => e ? e.deco : ie.none)
|
|
17339
17338
|
});
|
|
17340
17339
|
function rh(n, e) {
|
|
17341
17340
|
return D.create(n.filter((t) => t.field == e).map((t) => D.range(t.from, t.to)));
|
|
@@ -17641,13 +17640,13 @@ class xi {
|
|
|
17641
17640
|
}
|
|
17642
17641
|
let p = HS(l);
|
|
17643
17642
|
if (l.some((_) => _.from == _.to || _.from == _.to - 1 && i.doc.lineAt(_.from).to == _.from))
|
|
17644
|
-
o.add(f, f,
|
|
17643
|
+
o.add(f, f, ie.widget({
|
|
17645
17644
|
widget: new IS(p),
|
|
17646
17645
|
diagnostics: l.slice()
|
|
17647
17646
|
}));
|
|
17648
17647
|
else {
|
|
17649
17648
|
let _ = l.reduce((m, O) => O.markClass ? m + " " + O.markClass : m, "");
|
|
17650
|
-
o.add(f, d,
|
|
17649
|
+
o.add(f, d, ie.mark({
|
|
17651
17650
|
class: "cm-lintRange cm-lintRange-" + p + _,
|
|
17652
17651
|
diagnostics: l.slice(),
|
|
17653
17652
|
inclusiveEnd: l.some((m) => m.to > d)
|
|
@@ -17686,7 +17685,7 @@ function DS(n, e) {
|
|
|
17686
17685
|
}
|
|
17687
17686
|
const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /* @__PURE__ */ le.define(), ht = /* @__PURE__ */ Le.define({
|
|
17688
17687
|
create() {
|
|
17689
|
-
return new xi(
|
|
17688
|
+
return new xi(ie.none, null, null);
|
|
17690
17689
|
},
|
|
17691
17690
|
update(n, e) {
|
|
17692
17691
|
if (e.docChanged && n.diagnostics.size) {
|
|
@@ -17709,7 +17708,7 @@ const wp = /* @__PURE__ */ le.define(), lh = /* @__PURE__ */ le.define(), kp = /
|
|
|
17709
17708
|
Fn.from(n, (e) => e.panel),
|
|
17710
17709
|
j.decorations.from(n, (e) => e.diagnostics)
|
|
17711
17710
|
]
|
|
17712
|
-
}), LS = /* @__PURE__ */
|
|
17711
|
+
}), LS = /* @__PURE__ */ ie.mark({ class: "cm-lintRange cm-lintRange-active" });
|
|
17713
17712
|
function US(n, e, t) {
|
|
17714
17713
|
let { diagnostics: i } = n.state.field(ht), s, r = -1, o = -1;
|
|
17715
17714
|
i.between(e - (t < 0 ? 1 : 0), e + (t > 0 ? 1 : 0), (a, u, { spec: h }) => {
|
|
@@ -18040,7 +18039,7 @@ const KS = [
|
|
|
18040
18039
|
ht,
|
|
18041
18040
|
/* @__PURE__ */ j.decorations.compute([ht], (n) => {
|
|
18042
18041
|
let { selected: e, panel: t } = n.field(ht);
|
|
18043
|
-
return !e || !t || e.from == e.to ?
|
|
18042
|
+
return !e || !t || e.from == e.to ? ie.none : ie.set([
|
|
18044
18043
|
LS.range(e.from, e.to)
|
|
18045
18044
|
]);
|
|
18046
18045
|
}),
|
|
@@ -22043,7 +22042,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22043
22042
|
r,
|
|
22044
22043
|
o.update(l, { userEvent: "input.complete", scrollIntoView: !0 })
|
|
22045
22044
|
]), !0);
|
|
22046
|
-
}), Pn = ["_blank", "_self", "_top", "_parent"], Fo = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ho = ["get", "post", "put", "delete"], Ko = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], lt = ["true", "false"],
|
|
22045
|
+
}), Pn = ["_blank", "_self", "_top", "_parent"], Fo = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], Ho = ["get", "post", "put", "delete"], Ko = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], lt = ["true", "false"], ee = {}, bP = {
|
|
22047
22046
|
a: {
|
|
22048
22047
|
attrs: {
|
|
22049
22048
|
href: null,
|
|
@@ -22054,8 +22053,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22054
22053
|
hreflang: null
|
|
22055
22054
|
}
|
|
22056
22055
|
},
|
|
22057
|
-
abbr:
|
|
22058
|
-
address:
|
|
22056
|
+
abbr: ee,
|
|
22057
|
+
address: ee,
|
|
22059
22058
|
area: {
|
|
22060
22059
|
attrs: {
|
|
22061
22060
|
alt: null,
|
|
@@ -22069,8 +22068,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22069
22068
|
shape: ["default", "rect", "circle", "poly"]
|
|
22070
22069
|
}
|
|
22071
22070
|
},
|
|
22072
|
-
article:
|
|
22073
|
-
aside:
|
|
22071
|
+
article: ee,
|
|
22072
|
+
aside: ee,
|
|
22074
22073
|
audio: {
|
|
22075
22074
|
attrs: {
|
|
22076
22075
|
src: null,
|
|
@@ -22082,13 +22081,13 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22082
22081
|
controls: ["controls"]
|
|
22083
22082
|
}
|
|
22084
22083
|
},
|
|
22085
|
-
b:
|
|
22084
|
+
b: ee,
|
|
22086
22085
|
base: { attrs: { href: null, target: Pn } },
|
|
22087
|
-
bdi:
|
|
22088
|
-
bdo:
|
|
22086
|
+
bdi: ee,
|
|
22087
|
+
bdo: ee,
|
|
22089
22088
|
blockquote: { attrs: { cite: null } },
|
|
22090
|
-
body:
|
|
22091
|
-
br:
|
|
22089
|
+
body: ee,
|
|
22090
|
+
br: ee,
|
|
22092
22091
|
button: {
|
|
22093
22092
|
attrs: {
|
|
22094
22093
|
form: null,
|
|
@@ -22105,10 +22104,10 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22105
22104
|
}
|
|
22106
22105
|
},
|
|
22107
22106
|
canvas: { attrs: { width: null, height: null } },
|
|
22108
|
-
caption:
|
|
22109
|
-
center:
|
|
22110
|
-
cite:
|
|
22111
|
-
code:
|
|
22107
|
+
caption: ee,
|
|
22108
|
+
center: ee,
|
|
22109
|
+
cite: ee,
|
|
22110
|
+
code: ee,
|
|
22112
22111
|
col: { attrs: { span: null } },
|
|
22113
22112
|
colgroup: { attrs: { span: null } },
|
|
22114
22113
|
command: {
|
|
@@ -22126,20 +22125,20 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22126
22125
|
data: { attrs: { value: null } },
|
|
22127
22126
|
datagrid: { attrs: { disabled: ["disabled"], multiple: ["multiple"] } },
|
|
22128
22127
|
datalist: { attrs: { data: null } },
|
|
22129
|
-
dd:
|
|
22128
|
+
dd: ee,
|
|
22130
22129
|
del: { attrs: { cite: null, datetime: null } },
|
|
22131
22130
|
details: { attrs: { open: ["open"] } },
|
|
22132
|
-
dfn:
|
|
22133
|
-
div:
|
|
22134
|
-
dl:
|
|
22135
|
-
dt:
|
|
22136
|
-
em:
|
|
22131
|
+
dfn: ee,
|
|
22132
|
+
div: ee,
|
|
22133
|
+
dl: ee,
|
|
22134
|
+
dt: ee,
|
|
22135
|
+
em: ee,
|
|
22137
22136
|
embed: { attrs: { src: null, type: null, width: null, height: null } },
|
|
22138
22137
|
eventsource: { attrs: { src: null } },
|
|
22139
22138
|
fieldset: { attrs: { disabled: ["disabled"], form: null, name: null } },
|
|
22140
|
-
figcaption:
|
|
22141
|
-
figure:
|
|
22142
|
-
footer:
|
|
22139
|
+
figcaption: ee,
|
|
22140
|
+
figure: ee,
|
|
22141
|
+
footer: ee,
|
|
22143
22142
|
form: {
|
|
22144
22143
|
attrs: {
|
|
22145
22144
|
action: null,
|
|
@@ -22152,22 +22151,22 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22152
22151
|
target: Pn
|
|
22153
22152
|
}
|
|
22154
22153
|
},
|
|
22155
|
-
h1:
|
|
22156
|
-
h2:
|
|
22157
|
-
h3:
|
|
22158
|
-
h4:
|
|
22159
|
-
h5:
|
|
22160
|
-
h6:
|
|
22154
|
+
h1: ee,
|
|
22155
|
+
h2: ee,
|
|
22156
|
+
h3: ee,
|
|
22157
|
+
h4: ee,
|
|
22158
|
+
h5: ee,
|
|
22159
|
+
h6: ee,
|
|
22161
22160
|
head: {
|
|
22162
22161
|
children: ["title", "base", "link", "style", "meta", "script", "noscript", "command"]
|
|
22163
22162
|
},
|
|
22164
|
-
header:
|
|
22165
|
-
hgroup:
|
|
22166
|
-
hr:
|
|
22163
|
+
header: ee,
|
|
22164
|
+
hgroup: ee,
|
|
22165
|
+
hr: ee,
|
|
22167
22166
|
html: {
|
|
22168
22167
|
attrs: { manifest: null }
|
|
22169
22168
|
},
|
|
22170
|
-
i:
|
|
22169
|
+
i: ee,
|
|
22171
22170
|
iframe: {
|
|
22172
22171
|
attrs: {
|
|
22173
22172
|
src: null,
|
|
@@ -22249,7 +22248,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22249
22248
|
}
|
|
22250
22249
|
},
|
|
22251
22250
|
ins: { attrs: { cite: null, datetime: null } },
|
|
22252
|
-
kbd:
|
|
22251
|
+
kbd: ee,
|
|
22253
22252
|
keygen: {
|
|
22254
22253
|
attrs: {
|
|
22255
22254
|
challenge: null,
|
|
@@ -22261,7 +22260,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22261
22260
|
}
|
|
22262
22261
|
},
|
|
22263
22262
|
label: { attrs: { for: null, form: null } },
|
|
22264
|
-
legend:
|
|
22263
|
+
legend: ee,
|
|
22265
22264
|
li: { attrs: { value: null } },
|
|
22266
22265
|
link: {
|
|
22267
22266
|
attrs: {
|
|
@@ -22273,7 +22272,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22273
22272
|
}
|
|
22274
22273
|
},
|
|
22275
22274
|
map: { attrs: { name: null } },
|
|
22276
|
-
mark:
|
|
22275
|
+
mark: ee,
|
|
22277
22276
|
menu: { attrs: { label: null, type: ["list", "context", "toolbar"] } },
|
|
22278
22277
|
meta: {
|
|
22279
22278
|
attrs: {
|
|
@@ -22284,8 +22283,8 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22284
22283
|
}
|
|
22285
22284
|
},
|
|
22286
22285
|
meter: { attrs: { value: null, min: null, low: null, high: null, max: null, optimum: null } },
|
|
22287
|
-
nav:
|
|
22288
|
-
noscript:
|
|
22286
|
+
nav: ee,
|
|
22287
|
+
noscript: ee,
|
|
22289
22288
|
object: {
|
|
22290
22289
|
attrs: {
|
|
22291
22290
|
data: null,
|
|
@@ -22305,15 +22304,15 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22305
22304
|
optgroup: { attrs: { disabled: ["disabled"], label: null } },
|
|
22306
22305
|
option: { attrs: { disabled: ["disabled"], label: null, selected: ["selected"], value: null } },
|
|
22307
22306
|
output: { attrs: { for: null, form: null, name: null } },
|
|
22308
|
-
p:
|
|
22307
|
+
p: ee,
|
|
22309
22308
|
param: { attrs: { name: null, value: null } },
|
|
22310
|
-
pre:
|
|
22309
|
+
pre: ee,
|
|
22311
22310
|
progress: { attrs: { value: null, max: null } },
|
|
22312
22311
|
q: { attrs: { cite: null } },
|
|
22313
|
-
rp:
|
|
22314
|
-
rt:
|
|
22315
|
-
ruby:
|
|
22316
|
-
samp:
|
|
22312
|
+
rp: ee,
|
|
22313
|
+
rt: ee,
|
|
22314
|
+
ruby: ee,
|
|
22315
|
+
samp: ee,
|
|
22317
22316
|
script: {
|
|
22318
22317
|
attrs: {
|
|
22319
22318
|
type: ["text/javascript"],
|
|
@@ -22323,7 +22322,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22323
22322
|
charset: Fo
|
|
22324
22323
|
}
|
|
22325
22324
|
},
|
|
22326
|
-
section:
|
|
22325
|
+
section: ee,
|
|
22327
22326
|
select: {
|
|
22328
22327
|
attrs: {
|
|
22329
22328
|
form: null,
|
|
@@ -22335,10 +22334,10 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22335
22334
|
}
|
|
22336
22335
|
},
|
|
22337
22336
|
slot: { attrs: { name: null } },
|
|
22338
|
-
small:
|
|
22337
|
+
small: ee,
|
|
22339
22338
|
source: { attrs: { src: null, type: null, media: null } },
|
|
22340
|
-
span:
|
|
22341
|
-
strong:
|
|
22339
|
+
span: ee,
|
|
22340
|
+
strong: ee,
|
|
22342
22341
|
style: {
|
|
22343
22342
|
attrs: {
|
|
22344
22343
|
type: ["text/css"],
|
|
@@ -22346,13 +22345,13 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22346
22345
|
scoped: null
|
|
22347
22346
|
}
|
|
22348
22347
|
},
|
|
22349
|
-
sub:
|
|
22350
|
-
summary:
|
|
22351
|
-
sup:
|
|
22352
|
-
table:
|
|
22353
|
-
tbody:
|
|
22348
|
+
sub: ee,
|
|
22349
|
+
summary: ee,
|
|
22350
|
+
sup: ee,
|
|
22351
|
+
table: ee,
|
|
22352
|
+
tbody: ee,
|
|
22354
22353
|
td: { attrs: { colspan: null, rowspan: null, headers: null } },
|
|
22355
|
-
template:
|
|
22354
|
+
template: ee,
|
|
22356
22355
|
textarea: {
|
|
22357
22356
|
attrs: {
|
|
22358
22357
|
dirname: null,
|
|
@@ -22369,12 +22368,12 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22369
22368
|
wrap: ["soft", "hard"]
|
|
22370
22369
|
}
|
|
22371
22370
|
},
|
|
22372
|
-
tfoot:
|
|
22371
|
+
tfoot: ee,
|
|
22373
22372
|
th: { attrs: { colspan: null, rowspan: null, headers: null, scope: ["row", "col", "rowgroup", "colgroup"] } },
|
|
22374
|
-
thead:
|
|
22373
|
+
thead: ee,
|
|
22375
22374
|
time: { attrs: { datetime: null } },
|
|
22376
|
-
title:
|
|
22377
|
-
tr:
|
|
22375
|
+
title: ee,
|
|
22376
|
+
tr: ee,
|
|
22378
22377
|
track: {
|
|
22379
22378
|
attrs: {
|
|
22380
22379
|
src: null,
|
|
@@ -22385,7 +22384,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22385
22384
|
}
|
|
22386
22385
|
},
|
|
22387
22386
|
ul: { children: ["li", "script", "template", "ul", "ol"] },
|
|
22388
|
-
var:
|
|
22387
|
+
var: ee,
|
|
22389
22388
|
video: {
|
|
22390
22389
|
attrs: {
|
|
22391
22390
|
src: null,
|
|
@@ -22400,7 +22399,7 @@ const _P = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
22400
22399
|
controls: ["controls"]
|
|
22401
22400
|
}
|
|
22402
22401
|
},
|
|
22403
|
-
wbr:
|
|
22402
|
+
wbr: ee
|
|
22404
22403
|
}, bm = {
|
|
22405
22404
|
accesskey: null,
|
|
22406
22405
|
class: null,
|
|
@@ -24730,7 +24729,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24730
24729
|
colFixed: !1,
|
|
24731
24730
|
rowSize: 40,
|
|
24732
24731
|
rowFixed: !1
|
|
24733
|
-
}), m = be(() => r.value && o.value && o.value.type ? [
|
|
24732
|
+
}), m = be(() => r.value && o.value && o.value.type ? [te.TEXT, te.FIELD, te.FUN].includes(o.value.type) : [te.TEXT, te.FIELD, te.FUN].includes(_.type));
|
|
24734
24733
|
let O = ue(null);
|
|
24735
24734
|
function y() {
|
|
24736
24735
|
if (s.value && t.value && s.value.length) {
|
|
@@ -24746,15 +24745,15 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24746
24745
|
let de = (Ce = t.value) == null ? void 0 : Ce.colConfig[_e];
|
|
24747
24746
|
de && de.isFixed;
|
|
24748
24747
|
});
|
|
24749
|
-
const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A),
|
|
24750
|
-
for (let _e = Y; _e <=
|
|
24748
|
+
const q = Math.min(...A), Y = Math.min(...v), W = Math.max(...A), J = Math.max(...v), ne = W - q + 1, V = J - Y + 1;
|
|
24749
|
+
for (let _e = Y; _e <= J; _e++)
|
|
24751
24750
|
for (let de = q; de <= W; de++) {
|
|
24752
24751
|
const Ce = t.value.config[_e][de];
|
|
24753
|
-
_e === Y && de === q ? (Ce.colSpan =
|
|
24752
|
+
_e === Y && de === q ? (Ce.colSpan = ne, Ce.rowSpan = V) : (Ce.colSpan = 0, Ce.rowSpan = 0, Ce.mergeTarget = [Y, q]);
|
|
24754
24753
|
}
|
|
24755
24754
|
s.value = [
|
|
24756
24755
|
{
|
|
24757
|
-
type:
|
|
24756
|
+
type: te.CELL,
|
|
24758
24757
|
row: Y,
|
|
24759
24758
|
col: q,
|
|
24760
24759
|
index: i.value
|
|
@@ -24774,8 +24773,8 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24774
24773
|
colSpan: q.colSpan
|
|
24775
24774
|
});
|
|
24776
24775
|
}), A.forEach((v) => {
|
|
24777
|
-
const { row: q, col: Y, rowSpan: W, colSpan:
|
|
24778
|
-
for (let _e = q; _e <=
|
|
24776
|
+
const { row: q, col: Y, rowSpan: W, colSpan: J } = v, ne = q + W - 1, V = Y + J - 1;
|
|
24777
|
+
for (let _e = q; _e <= ne; _e++)
|
|
24779
24778
|
for (let de = Y; de <= V; de++) {
|
|
24780
24779
|
const Ce = t.value.config[_e][de];
|
|
24781
24780
|
Ce.colSpan = 1, Ce.rowSpan = 1, Ce.mergeTarget = void 0;
|
|
@@ -24806,7 +24805,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24806
24805
|
function C() {
|
|
24807
24806
|
s.value && t.value && s.value.length && s.value.forEach((A) => {
|
|
24808
24807
|
let v = t.value.config[A.row][A.col];
|
|
24809
|
-
v.type =
|
|
24808
|
+
v.type = te.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 = {
|
|
24810
24809
|
backgroundColor: "",
|
|
24811
24810
|
color: "",
|
|
24812
24811
|
textAlign: "center",
|
|
@@ -24823,26 +24822,26 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24823
24822
|
if (A && A.length && t.value)
|
|
24824
24823
|
if (r.value = A.length === 1, r.value) {
|
|
24825
24824
|
let q = A[0];
|
|
24826
|
-
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 = [
|
|
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 = [te.TEXT, te.FIELD].includes(o.value.type)), Object.entries(p).forEach(([Y, W]) => {
|
|
24827
24826
|
_[Y] = W;
|
|
24828
24827
|
}), o.value && Object.entries(o.value).forEach(([Y, W]) => {
|
|
24829
|
-
Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([
|
|
24830
|
-
_.formatType[
|
|
24831
|
-
})) : Y === "style" ? Object.entries(W).forEach(([
|
|
24832
|
-
_[
|
|
24828
|
+
Y === "formatType" ? (_.formatType || (_.formatType = {}), Object.entries(W).forEach(([J, ne]) => {
|
|
24829
|
+
_.formatType[J] = ne;
|
|
24830
|
+
})) : Y === "style" ? Object.entries(W).forEach(([J, ne]) => {
|
|
24831
|
+
_[J] = ne;
|
|
24833
24832
|
}) : _[Y] = W;
|
|
24834
24833
|
});
|
|
24835
24834
|
} else {
|
|
24836
24835
|
o.value = null;
|
|
24837
24836
|
const q = /* @__PURE__ */ new Set(), Y = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Map();
|
|
24838
|
-
l.value = !0, A.forEach((
|
|
24839
|
-
q.add(
|
|
24840
|
-
const
|
|
24841
|
-
|
|
24837
|
+
l.value = !0, A.forEach((J) => {
|
|
24838
|
+
q.add(J.col), Y.add(J.row);
|
|
24839
|
+
const ne = t.value.config[J.row][J.col];
|
|
24840
|
+
ne.type && ![te.TEXT, te.FIELD].includes(ne.type) && (l.value = !1), Object.entries(ne).forEach(([V, _e]) => {
|
|
24842
24841
|
W.get(V) || W.set(V, /* @__PURE__ */ new Set()), W.get(V).add(_e);
|
|
24843
24842
|
});
|
|
24844
|
-
}), l.value && Object.entries(p).forEach(([
|
|
24845
|
-
_[
|
|
24843
|
+
}), l.value && Object.entries(p).forEach(([J, ne]) => {
|
|
24844
|
+
_[J] = ne;
|
|
24846
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;
|
|
24847
24846
|
}
|
|
24848
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);
|
|
@@ -24856,12 +24855,12 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24856
24855
|
function P(A, v, q) {
|
|
24857
24856
|
v === "cell" && s.value.forEach((Y) => {
|
|
24858
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") {
|
|
24859
|
-
const { isError: W, result:
|
|
24860
|
-
W ? w.value =
|
|
24858
|
+
const { isError: W, result: J } = ig(A, !1);
|
|
24859
|
+
W ? w.value = J : w.value = "";
|
|
24861
24860
|
}
|
|
24862
24861
|
if (q === "type" && t.value)
|
|
24863
24862
|
switch (A) {
|
|
24864
|
-
case
|
|
24863
|
+
case te.TEXT:
|
|
24865
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;
|
|
24866
24865
|
}
|
|
24867
24866
|
}), v === "row" && u.value.forEach((Y) => {
|
|
@@ -24915,7 +24914,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24915
24914
|
size: 80
|
|
24916
24915
|
}), (v = t.value) == null || v.config.forEach((Y) => {
|
|
24917
24916
|
Y.splice(q, 0, {
|
|
24918
|
-
type:
|
|
24917
|
+
type: te.TEXT,
|
|
24919
24918
|
colSpan: 1,
|
|
24920
24919
|
rowSpan: 1
|
|
24921
24920
|
});
|
|
@@ -24938,7 +24937,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24938
24937
|
size: 80
|
|
24939
24938
|
}), (v = t.value) == null || v.config.forEach((Y) => {
|
|
24940
24939
|
Y.splice(q, 0, {
|
|
24941
|
-
type:
|
|
24940
|
+
type: te.TEXT,
|
|
24942
24941
|
colSpan: 1,
|
|
24943
24942
|
rowSpan: 1
|
|
24944
24943
|
});
|
|
@@ -24955,7 +24954,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24955
24954
|
q,
|
|
24956
24955
|
0,
|
|
24957
24956
|
t.value.colConfig.map(() => ({
|
|
24958
|
-
type:
|
|
24957
|
+
type: te.TEXT,
|
|
24959
24958
|
colSpan: 1,
|
|
24960
24959
|
rowSpan: 1
|
|
24961
24960
|
}))
|
|
@@ -24978,7 +24977,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24978
24977
|
q,
|
|
24979
24978
|
0,
|
|
24980
24979
|
t.value.colConfig.map(() => ({
|
|
24981
|
-
type:
|
|
24980
|
+
type: te.TEXT,
|
|
24982
24981
|
colSpan: 1,
|
|
24983
24982
|
rowSpan: 1
|
|
24984
24983
|
}))
|
|
@@ -24986,7 +24985,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
24986
24985
|
}
|
|
24987
24986
|
}
|
|
24988
24987
|
return (A, v) => {
|
|
24989
|
-
const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"),
|
|
24988
|
+
const q = fe("el-button-group"), Y = fe("el-col"), W = fe("el-option"), J = fe("el-select"), ne = fe("el-input-number");
|
|
24990
24989
|
return U(), K(re, null, [
|
|
24991
24990
|
b(s) && b(s).length ? (U(), K(re, { key: 0 }, [
|
|
24992
24991
|
zP,
|
|
@@ -25117,7 +25116,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25117
25116
|
]),
|
|
25118
25117
|
_: 1
|
|
25119
25118
|
}, 512), [
|
|
25120
|
-
[Tt, o.value.type === b(
|
|
25119
|
+
[Tt, o.value.type === b(te).TEXT]
|
|
25121
25120
|
]),
|
|
25122
25121
|
kt(Q(Y, { span: 24 }, {
|
|
25123
25122
|
default: x(() => [
|
|
@@ -25126,7 +25125,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25126
25125
|
label: "数据字段"
|
|
25127
25126
|
}, {
|
|
25128
25127
|
default: x(() => [
|
|
25129
|
-
Q(
|
|
25128
|
+
Q(J, {
|
|
25130
25129
|
modelValue: o.value.data,
|
|
25131
25130
|
"onUpdate:modelValue": v[4] || (v[4] = (V) => o.value.data = V),
|
|
25132
25131
|
clearable: "",
|
|
@@ -25159,7 +25158,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25159
25158
|
]),
|
|
25160
25159
|
_: 1
|
|
25161
25160
|
}, 512), [
|
|
25162
|
-
[Tt, o.value.type === b(
|
|
25161
|
+
[Tt, o.value.type === b(te).FIELD]
|
|
25163
25162
|
]),
|
|
25164
25163
|
kt(Q(Y, { span: 24 }, {
|
|
25165
25164
|
default: x(() => [
|
|
@@ -25179,7 +25178,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25179
25178
|
]),
|
|
25180
25179
|
_: 1
|
|
25181
25180
|
}, 512), [
|
|
25182
|
-
[Tt, o.value.type === b(
|
|
25181
|
+
[Tt, o.value.type === b(te).FUN]
|
|
25183
25182
|
]),
|
|
25184
25183
|
kt(Q(Y, { span: 24 }, {
|
|
25185
25184
|
default: x(() => [
|
|
@@ -25209,7 +25208,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25209
25208
|
]),
|
|
25210
25209
|
_: 1
|
|
25211
25210
|
}, 512), [
|
|
25212
|
-
[Tt, o.value.type === b(
|
|
25211
|
+
[Tt, o.value.type === b(te).FIELD && _.format !== b(Re).STRING]
|
|
25213
25212
|
])
|
|
25214
25213
|
], 64)) : ae("", !0),
|
|
25215
25214
|
b(m) ? (U(), K(re, { key: 1 }, [
|
|
@@ -25267,7 +25266,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25267
25266
|
default: x(() => [
|
|
25268
25267
|
Q(b(he), { label: "字体大小" }, {
|
|
25269
25268
|
default: x(() => [
|
|
25270
|
-
Q(
|
|
25269
|
+
Q(ne, {
|
|
25271
25270
|
modelValue: _.fontSize,
|
|
25272
25271
|
"onUpdate:modelValue": v[17] || (v[17] = (V) => _.fontSize = V),
|
|
25273
25272
|
"controls-position": "right",
|
|
@@ -25285,7 +25284,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25285
25284
|
default: x(() => [
|
|
25286
25285
|
Q(b(he), { label: "字体类型" }, {
|
|
25287
25286
|
default: x(() => [
|
|
25288
|
-
Q(
|
|
25287
|
+
Q(J, {
|
|
25289
25288
|
modelValue: _.fontFamily,
|
|
25290
25289
|
"onUpdate:modelValue": v[19] || (v[19] = (V) => _.fontFamily = V),
|
|
25291
25290
|
onChange: v[20] || (v[20] = (V) => P(V, "cell", "style.fontFamily")),
|
|
@@ -25520,7 +25519,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25520
25519
|
]),
|
|
25521
25520
|
_: 1
|
|
25522
25521
|
}, 8, ["label"]),
|
|
25523
|
-
_.type === b(
|
|
25522
|
+
_.type === b(te).FIELD ? (U(), oe(b(we), {
|
|
25524
25523
|
key: 0,
|
|
25525
25524
|
label: b(Re).STRING,
|
|
25526
25525
|
title: "自定义格式化"
|
|
@@ -25544,7 +25543,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25544
25543
|
default: x(() => [
|
|
25545
25544
|
Q(b(he), { label: "小数位数" }, {
|
|
25546
25545
|
default: x(() => [
|
|
25547
|
-
Q(
|
|
25546
|
+
Q(ne, {
|
|
25548
25547
|
modelValue: _.formatType.numberDecimal,
|
|
25549
25548
|
"onUpdate:modelValue": v[27] || (v[27] = (V) => _.formatType.numberDecimal = V),
|
|
25550
25549
|
onInput: v[28] || (v[28] = (V) => P(V, "cell", "formatType.numberDecimal")),
|
|
@@ -25658,7 +25657,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25658
25657
|
default: x(() => [
|
|
25659
25658
|
Q(b(he), { label: "指数精度" }, {
|
|
25660
25659
|
default: x(() => [
|
|
25661
|
-
Q(
|
|
25660
|
+
Q(ne, {
|
|
25662
25661
|
min: 0,
|
|
25663
25662
|
max: 20,
|
|
25664
25663
|
"controls-position": "right",
|
|
@@ -25677,7 +25676,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25677
25676
|
default: x(() => [
|
|
25678
25677
|
Q(b(he), { label: "日期格式" }, {
|
|
25679
25678
|
default: x(() => [
|
|
25680
|
-
Q(
|
|
25679
|
+
Q(J, {
|
|
25681
25680
|
filterable: "",
|
|
25682
25681
|
modelValue: _.formatType.date,
|
|
25683
25682
|
"onUpdate:modelValue": v[37] || (v[37] = (V) => _.formatType.date = V),
|
|
@@ -25776,7 +25775,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25776
25775
|
default: x(() => [
|
|
25777
25776
|
Q(b(he), { label: "行高" }, {
|
|
25778
25777
|
default: x(() => [
|
|
25779
|
-
Q(
|
|
25778
|
+
Q(ne, {
|
|
25780
25779
|
"controls-position": "right",
|
|
25781
25780
|
modelValue: _.rowSize,
|
|
25782
25781
|
"onUpdate:modelValue": v[40] || (v[40] = (V) => _.rowSize = V),
|
|
@@ -25816,7 +25815,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25816
25815
|
default: x(() => [
|
|
25817
25816
|
Q(b(he), { label: "数据源" }, {
|
|
25818
25817
|
default: x(() => [
|
|
25819
|
-
Q(
|
|
25818
|
+
Q(J, {
|
|
25820
25819
|
modelValue: c.value.data,
|
|
25821
25820
|
"onUpdate:modelValue": v[45] || (v[45] = (V) => c.value.data = V),
|
|
25822
25821
|
onChange: v[46] || (v[46] = (V) => P(V, "row", "data")),
|
|
@@ -25860,7 +25859,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25860
25859
|
default: x(() => [
|
|
25861
25860
|
Q(b(he), { label: "数据下标" }, {
|
|
25862
25861
|
default: x(() => [
|
|
25863
|
-
Q(
|
|
25862
|
+
Q(ne, {
|
|
25864
25863
|
min: 0,
|
|
25865
25864
|
modelValue: c.value.dataIndex,
|
|
25866
25865
|
"onUpdate:modelValue": v[49] || (v[49] = (V) => c.value.dataIndex = V),
|
|
@@ -25915,7 +25914,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25915
25914
|
default: x(() => [
|
|
25916
25915
|
Q(b(he), { label: "列宽" }, {
|
|
25917
25916
|
default: x(() => [
|
|
25918
|
-
Q(
|
|
25917
|
+
Q(ne, {
|
|
25919
25918
|
"controls-position": "right",
|
|
25920
25919
|
modelValue: _.colSize,
|
|
25921
25920
|
"onUpdate:modelValue": v[51] || (v[51] = (V) => _.colSize = V)
|
|
@@ -25954,7 +25953,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25954
25953
|
default: x(() => [
|
|
25955
25954
|
Q(b(he), { label: "数据源" }, {
|
|
25956
25955
|
default: x(() => [
|
|
25957
|
-
Q(
|
|
25956
|
+
Q(J, {
|
|
25958
25957
|
modelValue: d.value.data,
|
|
25959
25958
|
"onUpdate:modelValue": v[55] || (v[55] = (V) => d.value.data = V),
|
|
25960
25959
|
onChange: v[56] || (v[56] = (V) => P(V, "col", "data")),
|
|
@@ -25997,7 +25996,7 @@ const zP = /* @__PURE__ */ M("div", { class: "statement-option-title" }, [
|
|
|
25997
25996
|
default: x(() => [
|
|
25998
25997
|
Q(b(he), { label: "数据下标" }, {
|
|
25999
25998
|
default: x(() => [
|
|
26000
|
-
Q(
|
|
25999
|
+
Q(ne, {
|
|
26001
26000
|
min: 0,
|
|
26002
26001
|
modelValue: d.value.dataIndex,
|
|
26003
26002
|
"onUpdate:modelValue": v[59] || (v[59] = (V) => d.value.dataIndex = V),
|
|
@@ -27467,13 +27466,13 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
|
|
|
27467
27466
|
if (se) {
|
|
27468
27467
|
let { columnIndex: z, dataSource: A } = JSON.parse(se);
|
|
27469
27468
|
if (z && A && s.value) {
|
|
27470
|
-
let { key: v } = A, { columnName: q } = A.columns[z], { col:
|
|
27471
|
-
s.value.config[W][Y].type =
|
|
27469
|
+
let { key: v } = A, { columnName: q, name: Y } = A.columns[z], { col: W, row: J } = E.dataset;
|
|
27470
|
+
T.ctrlKey ? (s.value.config[J][W].type = te.TEXT, s.value.config[J][W].text = Y) : (s.value.config[J][W].type = te.FIELD, T.shiftKey ? (s.value.colConfig[W].data = v, s.value.colConfig[W].loop = !0, s.value.config[J][W].data = `col:${q}`) : (s.value.rowConfig[J].data = v, s.value.rowConfig[J].loop = !0, s.value.config[J][W].data = `row:${q}`)), r.value = [
|
|
27472
27471
|
{
|
|
27473
|
-
type:
|
|
27472
|
+
type: te.CELL,
|
|
27474
27473
|
index: parseInt(N),
|
|
27475
|
-
row: parseInt(
|
|
27476
|
-
col: parseInt(
|
|
27474
|
+
row: parseInt(J),
|
|
27475
|
+
col: parseInt(W)
|
|
27477
27476
|
}
|
|
27478
27477
|
];
|
|
27479
27478
|
}
|
|
@@ -27659,4 +27658,4 @@ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" },
|
|
|
27659
27658
|
export {
|
|
27660
27659
|
xk as default
|
|
27661
27660
|
};
|
|
27662
|
-
//# sourceMappingURL=StatementDesign-
|
|
27661
|
+
//# sourceMappingURL=StatementDesign-c631779a.mjs.map
|