yh-report 1.1.27 → 1.1.28
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-6877a950.mjs → StatementDesign-5466e301.mjs} +673 -638
- package/{StatementDesign-6877a950.mjs.map → StatementDesign-5466e301.mjs.map} +1 -1
- package/{StatementDetail-073e21ca.mjs → StatementDetail-1e4806bc.mjs} +2 -2
- package/{StatementDetail-073e21ca.mjs.map → StatementDetail-1e4806bc.mjs.map} +1 -1
- package/{StatementList-f9acc640.mjs → StatementList-8631916e.mjs} +2 -2
- package/{StatementList-f9acc640.mjs.map → StatementList-8631916e.mjs.map} +1 -1
- package/{index-83ae5cda.mjs → index-87509e3a.mjs} +946 -910
- package/{index-83ae5cda.mjs.map → index-87509e3a.mjs.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as w1 from "vue";
|
|
2
|
-
import { ref as pe, watch as ji, computed as Te, defineComponent as wt, resolveComponent as
|
|
3
|
-
import { ElMessage as ln, ElScrollbar as aO, ElDialog as jo, ElButton as Ut, ElForm as
|
|
2
|
+
import { ref as pe, watch as ji, computed as Te, defineComponent as wt, resolveComponent as ce, openBlock as D, createBlock as ee, unref as v, withCtx as S, createVNode as b, createTextVNode as N, createElementBlock as K, Fragment as fe, renderList as Je, toDisplayString as De, createElementVNode as Y, nextTick as rO, normalizeStyle as gi, normalizeClass as Wo, withModifiers as Hs, renderSlot as Da, createCommentVNode as ue, pushScopeId as P1, popScopeId as $1, onMounted as Qr, onUnmounted as Xh, resolveDynamicComponent as sO, toRaw as k1, reactive as T1, withKeys as C1, onActivated as R1, onDeactivated as Z1, withDirectives as Vc, vShow as Dc, isRef as E1 } from "vue";
|
|
3
|
+
import { ElMessage as ln, ElScrollbar as aO, ElDialog as jo, ElButton as Ut, ElForm as cr, ElFormItem as G, ElInput as Ue, ElTable as oO, ElTableColumn as un, ElSwitch as je, ElRadioGroup as Et, ElMessageBox as Mc, ElCheckbox as Oi, ElRadioButton as ve, ElTabs as lO, ElTabPane as ro, ElRow as Yc, ElCol as dt, ElTooltip as Ma, ElTag as Ks, ElColorPicker as Qu, ElCollapse as X1, ElCollapseItem as Lc, ElInputNumber as Js, ElCascader as Uc } from "element-plus";
|
|
4
4
|
import { defineStore as A1, storeToRefs as Qt } from "pinia";
|
|
5
|
-
import { cloneDeep as
|
|
5
|
+
import { cloneDeep as fr } from "lodash-es";
|
|
6
6
|
import { useRoute as uO, onBeforeRouteLeave as V1 } from "vue-router";
|
|
7
|
-
import { a as D1, b as hO, e as M1, l as Y1, s as L1, f as cO, h as U1, i as I1, j as W1, _ as fO, k as j1, m as dO, n as N1, o as q1, p as z1, D as Nn, q as G1, r as B1, t as F1, u as H1 } from "./index-
|
|
7
|
+
import { a as D1, b as hO, e as M1, l as Y1, s as L1, f as cO, h as U1, i as I1, j as W1, _ as fO, k as j1, m as dO, n as N1, o as q1, p as z1, D as Nn, q as G1, r as B1, t as F1, u as H1 } from "./index-87509e3a.mjs";
|
|
8
8
|
import { useFullscreen as K1 } from "@vueuse/core";
|
|
9
9
|
import "@/libs/api.request.js";
|
|
10
10
|
import "echarts";
|
|
@@ -130,7 +130,7 @@ function ev (n) {
|
|
|
130
130
|
let k = await D1(Q);
|
|
131
131
|
c.value[$] = k.data;
|
|
132
132
|
}), h.value = [], x.forEach(async ($) => {
|
|
133
|
-
let Q =
|
|
133
|
+
let Q = fr($);
|
|
134
134
|
Q.columns || (Q.columns = await hO(Q.id)), h.value.push(Q);
|
|
135
135
|
});
|
|
136
136
|
},
|
|
@@ -215,7 +215,7 @@ const xt = function () {
|
|
|
215
215
|
});
|
|
216
216
|
}
|
|
217
217
|
return (o, l) => {
|
|
218
|
-
const u =
|
|
218
|
+
const u = ce("el-text"), h = ce("el-button"), c = ce("el-collapse-item"), f = ce("el-collapse");
|
|
219
219
|
return D(), ee(v(aO), { class: "statement-data-source-list" }, {
|
|
220
220
|
default: S(() => [
|
|
221
221
|
b(u, { type: "info" }, {
|
|
@@ -229,12 +229,12 @@ const xt = function () {
|
|
|
229
229
|
"onUpdate:modelValue": l[0] || (l[0] = (d) => r.value = d)
|
|
230
230
|
}, {
|
|
231
231
|
default: S(() => [
|
|
232
|
-
(D(!0), K(
|
|
232
|
+
(D(!0), K(fe, null, Je(v(t), (d) => (D(), ee(c, null, {
|
|
233
233
|
title: S(() => [
|
|
234
234
|
N(De(d.name) + "(" + De(d.columns.length) + ")", 1)
|
|
235
235
|
]),
|
|
236
236
|
default: S(() => [
|
|
237
|
-
(D(!0), K(
|
|
237
|
+
(D(!0), K(fe, null, Je(d.columns, (p) => (D(), K("div", tv, [
|
|
238
238
|
Y("div", iv, De(p.name), 1),
|
|
239
239
|
b(h, {
|
|
240
240
|
type: "text",
|
|
@@ -301,11 +301,11 @@ const rv = /* @__PURE__ */ wt({
|
|
|
301
301
|
})
|
|
302
302
|
]),
|
|
303
303
|
default: S(() => [
|
|
304
|
-
b(v(
|
|
304
|
+
b(v(cr), { inline: "" }, {
|
|
305
305
|
default: S(() => [
|
|
306
306
|
b(v(G), { label: "筛选名称" }, {
|
|
307
307
|
default: S(() => [
|
|
308
|
-
b(v(
|
|
308
|
+
b(v(Ue), {
|
|
309
309
|
modelValue: o.value,
|
|
310
310
|
"onUpdate:modelValue": p[0] || (p[0] = (g) => o.value = g),
|
|
311
311
|
clearable: "",
|
|
@@ -471,7 +471,7 @@ function Ni (n) {
|
|
|
471
471
|
if (typeof window < "u" && window.navigator)
|
|
472
472
|
return !!/* @__PURE__ */ navigator.userAgent.match(n);
|
|
473
473
|
}
|
|
474
|
-
var Hi = Ni(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ms = Ni(/Edge/i), jc = Ni(/firefox/i),
|
|
474
|
+
var Hi = Ni(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), Ms = Ni(/Edge/i), jc = Ni(/firefox/i), os = Ni(/safari/i) && !Ni(/chrome/i) && !Ni(/android/i), OO = Ni(/iP(ad|od|hone)/i), pv = Ni(/chrome/i) && Ni(/android/i), mO = {
|
|
475
475
|
capture: !1,
|
|
476
476
|
passive: !1
|
|
477
477
|
};
|
|
@@ -592,7 +592,7 @@ function qc (n, e, t) {
|
|
|
592
592
|
}
|
|
593
593
|
return !1;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
595
|
+
function dr (n, e, t, i) {
|
|
596
596
|
for (var r = 0, s = 0, a = n.children; s < a.length;) {
|
|
597
597
|
if (a[s].style.display !== "none" && a[s] !== ge.ghost && (i || a[s] !== ge.dragged) && mi(a[s], t.draggable, n, !1)) {
|
|
598
598
|
if (r === e)
|
|
@@ -661,19 +661,19 @@ function gv (n, e) {
|
|
|
661
661
|
function cl (n, e) {
|
|
662
662
|
return Math.round(n.top) === Math.round(e.top) && Math.round(n.left) === Math.round(e.left) && Math.round(n.height) === Math.round(e.height) && Math.round(n.width) === Math.round(e.width);
|
|
663
663
|
}
|
|
664
|
-
var
|
|
664
|
+
var ls;
|
|
665
665
|
function vO (n, e) {
|
|
666
666
|
return function () {
|
|
667
|
-
if (!
|
|
667
|
+
if (!ls) {
|
|
668
668
|
var t = arguments, i = this;
|
|
669
|
-
t.length === 1 ? n.call(i, t[0]) : n.apply(i, t),
|
|
670
|
-
|
|
669
|
+
t.length === 1 ? n.call(i, t[0]) : n.apply(i, t), ls = setTimeout(function () {
|
|
670
|
+
ls = void 0;
|
|
671
671
|
}, e);
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
function vv () {
|
|
676
|
-
clearTimeout(
|
|
676
|
+
clearTimeout(ls), ls = void 0;
|
|
677
677
|
}
|
|
678
678
|
function bO (n, e, t) {
|
|
679
679
|
n.scrollLeft += e, n.scrollTop += t;
|
|
@@ -805,7 +805,7 @@ var qn = [], dl = {
|
|
|
805
805
|
}), r;
|
|
806
806
|
}
|
|
807
807
|
};
|
|
808
|
-
function
|
|
808
|
+
function Hr (n) {
|
|
809
809
|
var e = n.sortable, t = n.rootEl, i = n.name, r = n.targetEl, s = n.cloneEl, a = n.toEl, o = n.fromEl, l = n.oldIndex, u = n.newIndex, h = n.oldDraggableIndex, c = n.newDraggableIndex, f = n.originalEvent, d = n.putSortable, p = n.extraEventProperties;
|
|
810
810
|
if (e = e || t && t[kt], !!e) {
|
|
811
811
|
var g, m = e.options, O = "on" + i.charAt(0).toUpperCase() + i.substr(1);
|
|
@@ -830,12 +830,12 @@ var Sv = ["evt"], Yt = function (e, t) {
|
|
|
830
830
|
lastDownEl: La,
|
|
831
831
|
cloneEl: it,
|
|
832
832
|
cloneHidden: an,
|
|
833
|
-
dragStarted:
|
|
833
|
+
dragStarted: Kr,
|
|
834
834
|
putSortable: vt,
|
|
835
835
|
activeSortable: ge.active,
|
|
836
836
|
originalEvent: r,
|
|
837
837
|
oldIndex: tr,
|
|
838
|
-
oldDraggableIndex:
|
|
838
|
+
oldDraggableIndex: us,
|
|
839
839
|
newIndex: Kt,
|
|
840
840
|
newDraggableIndex: nn,
|
|
841
841
|
hideGhostForTarget: QO,
|
|
@@ -856,18 +856,18 @@ var Sv = ["evt"], Yt = function (e, t) {
|
|
|
856
856
|
}, s));
|
|
857
857
|
};
|
|
858
858
|
function Zt (n) {
|
|
859
|
-
|
|
859
|
+
Hr(Vi({
|
|
860
860
|
putSortable: vt,
|
|
861
861
|
cloneEl: it,
|
|
862
862
|
targetEl: F,
|
|
863
863
|
rootEl: Ge,
|
|
864
864
|
oldIndex: tr,
|
|
865
|
-
oldDraggableIndex:
|
|
865
|
+
oldDraggableIndex: us,
|
|
866
866
|
newIndex: Kt,
|
|
867
867
|
newDraggableIndex: nn
|
|
868
868
|
}, n));
|
|
869
869
|
}
|
|
870
|
-
var F, tt, we, Ge, Rn, La, it, an, tr, Kt,
|
|
870
|
+
var F, tt, we, Ge, Rn, La, it, an, tr, Kt, us, nn, ea, vt, Kn = !1, ao = !1, oo = [], $n, di, pl, Ol, Bc, Fc, Kr, zn, hs, cs = !1, ta = !1, Ua, Pt, ml = [], wu = !1, lo = [], No = typeof document < "u", ia = OO, Hc = Ms || Hi ? "cssFloat" : "float", Qv = No && !pv && !OO && "draggable" in document.createElement("div"), yO = function () {
|
|
871
871
|
if (No) {
|
|
872
872
|
if (Hi)
|
|
873
873
|
return !1;
|
|
@@ -875,7 +875,7 @@ var F, tt, we, Ge, Rn, La, it, an, tr, Kt, ls, nn, ea, vt, Kn = !1, ao = !1, oo
|
|
|
875
875
|
return n.style.cssText = "pointer-events:auto", n.style.pointerEvents === "auto";
|
|
876
876
|
}
|
|
877
877
|
}(), _O = function (e, t) {
|
|
878
|
-
var i = ae(e), r = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), s =
|
|
878
|
+
var i = ae(e), r = parseInt(i.width) - parseInt(i.paddingLeft) - parseInt(i.paddingRight) - parseInt(i.borderLeftWidth) - parseInt(i.borderRightWidth), s = dr(e, 0, t), a = dr(e, 1, t), o = s && ae(s), l = a && ae(a), u = o && parseInt(o.marginLeft) + parseInt(o.marginRight) + Be(s).width, h = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + Be(a).width;
|
|
879
879
|
if (i.display === "flex")
|
|
880
880
|
return i.flexDirection === "column" || i.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
881
881
|
if (i.display === "grid")
|
|
@@ -987,7 +987,7 @@ function ge (n, e) {
|
|
|
987
987
|
x: 0,
|
|
988
988
|
y: 0
|
|
989
989
|
},
|
|
990
|
-
supportPointer: ge.supportPointer !== !1 && "PointerEvent" in window && !
|
|
990
|
+
supportPointer: ge.supportPointer !== !1 && "PointerEvent" in window && !os,
|
|
991
991
|
emptyInsertThreshold: 5
|
|
992
992
|
};
|
|
993
993
|
Ys.initializePlugins(this, n, t);
|
|
@@ -1010,8 +1010,8 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1010
1010
|
_onTapStart: function (e) {
|
|
1011
1011
|
if (e.cancelable) {
|
|
1012
1012
|
var t = this, i = this.el, r = this.options, s = r.preventOnFilter, a = e.type, o = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (o || e).target, u = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, h = r.filter;
|
|
1013
|
-
if (Xv(i), !F && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable &&
|
|
1014
|
-
if (tr = nt(l),
|
|
1013
|
+
if (Xv(i), !F && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !u.isContentEditable && !(!this.nativeDraggable && os && l && l.tagName.toUpperCase() === "SELECT") && (l = mi(l, r.draggable, i, !1), !(l && l.animated) && La !== l)) {
|
|
1014
|
+
if (tr = nt(l), us = nt(l, r.draggable), typeof h == "function") {
|
|
1015
1015
|
if (h.call(this, e, l, this)) {
|
|
1016
1016
|
Zt({
|
|
1017
1017
|
sortable: t,
|
|
@@ -1182,7 +1182,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1182
1182
|
sortable: i,
|
|
1183
1183
|
name: "clone"
|
|
1184
1184
|
}));
|
|
1185
|
-
}), !t && Ke(F, s.dragClass, !0), t ? (ao = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (ke(document, "mouseup", i._onDrop), ke(document, "touchend", i._onDrop), ke(document, "touchcancel", i._onDrop), r && (r.effectAllowed = "move", s.setData && s.setData.call(i, r, F)), Ce(document, "drop", i), ae(F, "transform", "translateZ(0)")), Kn = !0, i._dragStartId = Ia(i._dragStarted.bind(i, t, e)), Ce(document, "selectstart", i),
|
|
1185
|
+
}), !t && Ke(F, s.dragClass, !0), t ? (ao = !0, i._loopId = setInterval(i._emulateDragOver, 50)) : (ke(document, "mouseup", i._onDrop), ke(document, "touchend", i._onDrop), ke(document, "touchcancel", i._onDrop), r && (r.effectAllowed = "move", s.setData && s.setData.call(i, r, F)), Ce(document, "drop", i), ae(F, "transform", "translateZ(0)")), Kn = !0, i._dragStartId = Ia(i._dragStarted.bind(i, t, e)), Ce(document, "selectstart", i), Kr = !0, os && ae(document.body, "user-select", "none");
|
|
1186
1186
|
},
|
|
1187
1187
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
1188
1188
|
_onDragOver: function (e) {
|
|
@@ -1243,7 +1243,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1243
1243
|
if (x && t === e.target && (i = x), i && (s = Be(i)), na(Ge, t, F, r, i, s, e, !!i) !== !1)
|
|
1244
1244
|
return O(), t.appendChild(F), tt = t, T(), _(!0);
|
|
1245
1245
|
} else if (x && Tv(e, d, this)) {
|
|
1246
|
-
var $ =
|
|
1246
|
+
var $ = dr(t, 0, o, !0);
|
|
1247
1247
|
if ($ === F)
|
|
1248
1248
|
return _(!1);
|
|
1249
1249
|
if (i = $, s = Be(i), na(Ge, t, F, r, i, s, e, !1) !== !1)
|
|
@@ -1251,7 +1251,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1251
1251
|
} else if (i.parentNode === t) {
|
|
1252
1252
|
s = Be(i);
|
|
1253
1253
|
var Q = 0, k, C = F.parentNode !== t, R = !xv(F.animated && F.toRect || r, i.animated && i.toRect || s, d), y = d ? "top" : "left", w = qc(i, "top", "top") || qc(F, "top", "top"), Z = w ? w.scrollTop : void 0;
|
|
1254
|
-
zn !== i && (k = s[y],
|
|
1254
|
+
zn !== i && (k = s[y], cs = !1, ta = !R && o.invertSwap || C), Q = Rv(e, i, s, d, R ? 1 : o.swapThreshold, o.invertedSwapThreshold == null ? o.swapThreshold : o.invertedSwapThreshold, ta, zn === i);
|
|
1255
1255
|
var E;
|
|
1256
1256
|
if (Q !== 0) {
|
|
1257
1257
|
var X = nt(F);
|
|
@@ -1261,7 +1261,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1261
1261
|
}
|
|
1262
1262
|
if (Q === 0 || E === i)
|
|
1263
1263
|
return _(!1);
|
|
1264
|
-
zn = i,
|
|
1264
|
+
zn = i, hs = Q;
|
|
1265
1265
|
var j = i.nextElementSibling, q = !1;
|
|
1266
1266
|
q = Q === 1;
|
|
1267
1267
|
var L = na(Ge, t, F, r, i, s, e, q);
|
|
@@ -1289,7 +1289,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1289
1289
|
this._nulling();
|
|
1290
1290
|
return;
|
|
1291
1291
|
}
|
|
1292
|
-
Kn = !1, ta = !1,
|
|
1292
|
+
Kn = !1, ta = !1, cs = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Pu(this.cloneId), Pu(this._dragStartId), this.nativeDraggable && (ke(document, "drop", this), ke(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), os && ae(document.body, "user-select", ""), ae(F, "transform", ""), e && (Kr && (e.cancelable && e.preventDefault(), !i.dropBubble && e.stopPropagation()), we && we.parentNode && we.parentNode.removeChild(we), (Ge === tt || vt && vt.lastPutMode !== "clone") && it && it.parentNode && it.parentNode.removeChild(it), F && (this.nativeDraggable && ke(F, "dragend", this), gl(F), F.style["will-change"] = "", Kr && !Kn && Ke(F, vt ? vt.options.ghostClass : this.options.ghostClass, !1), Ke(F, this.options.chosenClass, !1), Zt({
|
|
1293
1293
|
sortable: this,
|
|
1294
1294
|
name: "unchoose",
|
|
1295
1295
|
toEl: tt,
|
|
@@ -1328,7 +1328,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1328
1328
|
name: "sort",
|
|
1329
1329
|
toEl: tt,
|
|
1330
1330
|
originalEvent: e
|
|
1331
|
-
})), ge.active && ((Kt == null || Kt === -1) && (Kt = tr, nn =
|
|
1331
|
+
})), ge.active && ((Kt == null || Kt === -1) && (Kt = tr, nn = us), Zt({
|
|
1332
1332
|
sortable: this,
|
|
1333
1333
|
name: "end",
|
|
1334
1334
|
toEl: tt,
|
|
@@ -1336,7 +1336,7 @@ ge.prototype = /** @lends Sortable.prototype */
|
|
|
1336
1336
|
}), this.save()))), this._nulling();
|
|
1337
1337
|
},
|
|
1338
1338
|
_nulling: function () {
|
|
1339
|
-
Yt("nulling", this), Ge = F = tt = we = Rn = it = La = an = $n = di =
|
|
1339
|
+
Yt("nulling", this), Ge = F = tt = we = Rn = it = La = an = $n = di = Kr = Kt = nn = tr = us = zn = hs = vt = ea = ge.dragged = ge.ghost = ge.clone = ge.active = null, lo.forEach(function (e) {
|
|
1340
1340
|
e.checked = !0;
|
|
1341
1341
|
}), lo.length = pl = Ol = 0;
|
|
1342
1342
|
},
|
|
@@ -1452,7 +1452,7 @@ function kv () {
|
|
|
1452
1452
|
wu = !1;
|
|
1453
1453
|
}
|
|
1454
1454
|
function Tv (n, e, t) {
|
|
1455
|
-
var i = Be(
|
|
1455
|
+
var i = Be(dr(t.el, 0, t.options, !0)), r = 10;
|
|
1456
1456
|
return e ? n.clientX < i.left - r || n.clientY < i.top && n.clientX < i.right : n.clientY < i.top - r || n.clientY < i.bottom && n.clientX < i.left;
|
|
1457
1457
|
}
|
|
1458
1458
|
function Cv (n, e, t) {
|
|
@@ -1463,10 +1463,10 @@ function Rv (n, e, t, i, r, s, a, o) {
|
|
|
1463
1463
|
var l = i ? n.clientY : n.clientX, u = i ? t.height : t.width, h = i ? t.top : t.left, c = i ? t.bottom : t.right, f = !1;
|
|
1464
1464
|
if (!a) {
|
|
1465
1465
|
if (o && Ua < u * r) {
|
|
1466
|
-
if (!
|
|
1466
|
+
if (!cs && (hs === 1 ? l > h + u * s / 2 : l < c - u * s / 2) && (cs = !0), cs)
|
|
1467
1467
|
f = !0;
|
|
1468
|
-
else if (
|
|
1469
|
-
return -
|
|
1468
|
+
else if (hs === 1 ? l < h + Ua : l > c - Ua)
|
|
1469
|
+
return -hs;
|
|
1470
1470
|
} else if (l > h + u * (1 - r) / 2 && l < c - u * (1 - r) / 2)
|
|
1471
1471
|
return Zv(e);
|
|
1472
1472
|
}
|
|
@@ -1513,7 +1513,7 @@ ge.utils = {
|
|
|
1513
1513
|
nextTick: Ia,
|
|
1514
1514
|
cancelNextTick: Pu,
|
|
1515
1515
|
detectDirection: _O,
|
|
1516
|
-
getChild:
|
|
1516
|
+
getChild: dr
|
|
1517
1517
|
};
|
|
1518
1518
|
ge.get = function (n) {
|
|
1519
1519
|
return n[kt];
|
|
@@ -1531,7 +1531,7 @@ ge.create = function (n, e) {
|
|
|
1531
1531
|
return new ge(n, e);
|
|
1532
1532
|
};
|
|
1533
1533
|
ge.version = dv;
|
|
1534
|
-
var at = [],
|
|
1534
|
+
var at = [], Jr, $u, ku = !1, vl, bl, uo, es;
|
|
1535
1535
|
function Av () {
|
|
1536
1536
|
function n () {
|
|
1537
1537
|
this.defaults = {
|
|
@@ -1557,17 +1557,17 @@ function Av () {
|
|
|
1557
1557
|
this.sortable.nativeDraggable ? ke(document, "dragover", this._handleAutoScroll) : (ke(document, "pointermove", this._handleFallbackAutoScroll), ke(document, "touchmove", this._handleFallbackAutoScroll), ke(document, "mousemove", this._handleFallbackAutoScroll)), Kc(), Wa(), vv();
|
|
1558
1558
|
},
|
|
1559
1559
|
nulling: function () {
|
|
1560
|
-
uo = $u =
|
|
1560
|
+
uo = $u = Jr = ku = es = vl = bl = null, at.length = 0;
|
|
1561
1561
|
},
|
|
1562
1562
|
_handleFallbackAutoScroll: function (t) {
|
|
1563
1563
|
this._handleAutoScroll(t, !0);
|
|
1564
1564
|
},
|
|
1565
1565
|
_handleAutoScroll: function (t, i) {
|
|
1566
1566
|
var r = this, s = (t.touches ? t.touches[0] : t).clientX, a = (t.touches ? t.touches[0] : t).clientY, o = document.elementFromPoint(s, a);
|
|
1567
|
-
if (uo = t, i || this.options.forceAutoScrollFallback || Ms || Hi ||
|
|
1567
|
+
if (uo = t, i || this.options.forceAutoScrollFallback || Ms || Hi || os) {
|
|
1568
1568
|
yl(t, this.options, o, i);
|
|
1569
1569
|
var l = hn(o, !0);
|
|
1570
|
-
ku && (!
|
|
1570
|
+
ku && (!es || s !== vl || a !== bl) && (es && Kc(), es = setInterval(function () {
|
|
1571
1571
|
var u = hn(document.elementFromPoint(s, a), !0);
|
|
1572
1572
|
u !== l && (l = u, Wa()), yl(t, r.options, u, i);
|
|
1573
1573
|
}, 10), vl = s, bl = a);
|
|
@@ -1590,13 +1590,13 @@ function Wa () {
|
|
|
1590
1590
|
}), at = [];
|
|
1591
1591
|
}
|
|
1592
1592
|
function Kc () {
|
|
1593
|
-
clearInterval(
|
|
1593
|
+
clearInterval(es);
|
|
1594
1594
|
}
|
|
1595
1595
|
var yl = vO(function (n, e, t, i) {
|
|
1596
1596
|
if (e.scroll) {
|
|
1597
1597
|
var r = (n.touches ? n.touches[0] : n).clientX, s = (n.touches ? n.touches[0] : n).clientY, a = e.scrollSensitivity, o = e.scrollSpeed, l = Xi(), u = !1, h;
|
|
1598
|
-
$u !== t && ($u = t, Wa(),
|
|
1599
|
-
var c = 0, f =
|
|
1598
|
+
$u !== t && ($u = t, Wa(), Jr = e.scroll, h = e.scrollFn, Jr === !0 && (Jr = hn(t, !0)));
|
|
1599
|
+
var c = 0, f = Jr;
|
|
1600
1600
|
do {
|
|
1601
1601
|
var d = f, p = Be(d), g = p.top, m = p.bottom, O = p.left, _ = p.right, T = p.width, x = p.height, $ = void 0, Q = void 0, k = d.scrollWidth, C = d.scrollHeight, R = ae(d), y = d.scrollLeft, w = d.scrollTop;
|
|
1602
1602
|
d === l ? ($ = T < k && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), Q = x < C && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : ($ = T < k && (R.overflowX === "auto" || R.overflowX === "scroll"), Q = x < C && (R.overflowY === "auto" || R.overflowY === "scroll"));
|
|
@@ -1637,7 +1637,7 @@ Dh.prototype = {
|
|
|
1637
1637
|
onSpill: function (e) {
|
|
1638
1638
|
var t = e.dragEl, i = e.putSortable;
|
|
1639
1639
|
this.sortable.captureAnimationState(), i && i.captureAnimationState();
|
|
1640
|
-
var r =
|
|
1640
|
+
var r = dr(this.sortable.el, this.startIndex, this.options);
|
|
1641
1641
|
r ? this.sortable.el.insertBefore(t, r) : this.sortable.el.appendChild(t), this.sortable.animateAll(), i && i.animateAll();
|
|
1642
1642
|
},
|
|
1643
1643
|
drop: wO
|
|
@@ -1700,7 +1700,7 @@ function Dv (n, e) {
|
|
|
1700
1700
|
var t = n.parentNode, i = e.parentNode, r, s;
|
|
1701
1701
|
!t || !i || t.isEqualNode(e) || i.isEqualNode(n) || (r = nt(n), s = nt(e), t.isEqualNode(i) && r < s && s++, t.insertBefore(e, t.children[r]), i.insertBefore(n, i.children[s]));
|
|
1702
1702
|
}
|
|
1703
|
-
var Qe = [], Ht = [],
|
|
1703
|
+
var Qe = [], Ht = [], Dr, pi, Mr = !1, Lt = !1, Gn = !1, We, Yr, ra;
|
|
1704
1704
|
function Mv () {
|
|
1705
1705
|
function n (e) {
|
|
1706
1706
|
for (var t in this)
|
|
@@ -1721,16 +1721,16 @@ function Mv () {
|
|
|
1721
1721
|
isMultiDrag: !1,
|
|
1722
1722
|
delayStartGlobal: function (t) {
|
|
1723
1723
|
var i = t.dragEl;
|
|
1724
|
-
|
|
1724
|
+
We = i;
|
|
1725
1725
|
},
|
|
1726
1726
|
delayEnded: function () {
|
|
1727
|
-
this.isMultiDrag = ~Qe.indexOf(
|
|
1727
|
+
this.isMultiDrag = ~Qe.indexOf(We);
|
|
1728
1728
|
},
|
|
1729
1729
|
setupClone: function (t) {
|
|
1730
1730
|
var i = t.sortable, r = t.cancel;
|
|
1731
1731
|
if (this.isMultiDrag) {
|
|
1732
1732
|
for (var s = 0; s < Qe.length; s++)
|
|
1733
|
-
Ht.push(Vh(Qe[s])), Ht[s].sortableIndex = Qe[s].sortableIndex, Ht[s].draggable = !1, Ht[s].style["will-change"] = "", Ke(Ht[s], this.options.selectedClass, !1), Qe[s] ===
|
|
1733
|
+
Ht.push(Vh(Qe[s])), Ht[s].sortableIndex = Qe[s].sortableIndex, Ht[s].draggable = !1, Ht[s].style["will-change"] = "", Ke(Ht[s], this.options.selectedClass, !1), Qe[s] === We && Ke(Ht[s], this.options.chosenClass, !1);
|
|
1734
1734
|
i._hideClone(), r();
|
|
1735
1735
|
}
|
|
1736
1736
|
},
|
|
@@ -1764,15 +1764,15 @@ function Mv () {
|
|
|
1764
1764
|
if (this.isMultiDrag) {
|
|
1765
1765
|
if (this.options.sort && (r.captureAnimationState(), this.options.animation)) {
|
|
1766
1766
|
Qe.forEach(function (a) {
|
|
1767
|
-
a !==
|
|
1767
|
+
a !== We && ae(a, "position", "absolute");
|
|
1768
1768
|
});
|
|
1769
|
-
var s = Be(
|
|
1769
|
+
var s = Be(We, !1, !0, !0);
|
|
1770
1770
|
Qe.forEach(function (a) {
|
|
1771
|
-
a !==
|
|
1772
|
-
}), Lt = !0,
|
|
1771
|
+
a !== We && Gc(a, s);
|
|
1772
|
+
}), Lt = !0, Mr = !0;
|
|
1773
1773
|
}
|
|
1774
1774
|
r.animateAll(function () {
|
|
1775
|
-
Lt = !1,
|
|
1775
|
+
Lt = !1, Mr = !1, i.options.animation && Qe.forEach(function (a) {
|
|
1776
1776
|
fl(a);
|
|
1777
1777
|
}), i.options.sort && sa();
|
|
1778
1778
|
});
|
|
@@ -1794,10 +1794,10 @@ function Mv () {
|
|
|
1794
1794
|
dragOverCompleted: function (t) {
|
|
1795
1795
|
var i = t.sortable, r = t.isOwner, s = t.insertion, a = t.activeSortable, o = t.parentEl, l = t.putSortable, u = this.options;
|
|
1796
1796
|
if (s) {
|
|
1797
|
-
if (r && a._hideClone(),
|
|
1798
|
-
var h = Be(
|
|
1797
|
+
if (r && a._hideClone(), Mr = !1, u.animation && Qe.length > 1 && (Lt || !r && !a.options.sort && !l)) {
|
|
1798
|
+
var h = Be(We, !1, !0, !0);
|
|
1799
1799
|
Qe.forEach(function (f) {
|
|
1800
|
-
f !==
|
|
1800
|
+
f !== We && (Gc(f, h), o.appendChild(f));
|
|
1801
1801
|
}), Lt = !0;
|
|
1802
1802
|
}
|
|
1803
1803
|
if (!r)
|
|
@@ -1806,8 +1806,8 @@ function Mv () {
|
|
|
1806
1806
|
a._showClone(i), a.options.animation && !ra && c && Ht.forEach(function (f) {
|
|
1807
1807
|
a.addAnimationState({
|
|
1808
1808
|
target: f,
|
|
1809
|
-
rect:
|
|
1810
|
-
}), f.fromRect =
|
|
1809
|
+
rect: Yr
|
|
1810
|
+
}), f.fromRect = Yr, f.thisAnimationDuration = null;
|
|
1811
1811
|
});
|
|
1812
1812
|
} else
|
|
1813
1813
|
a._showClone(i);
|
|
@@ -1818,9 +1818,9 @@ function Mv () {
|
|
|
1818
1818
|
if (Qe.forEach(function (o) {
|
|
1819
1819
|
o.thisAnimationDuration = null;
|
|
1820
1820
|
}), s.options.animation && !r && s.multiDrag.isMultiDrag) {
|
|
1821
|
-
|
|
1822
|
-
var a = Dn(
|
|
1823
|
-
|
|
1821
|
+
Yr = ui({}, i);
|
|
1822
|
+
var a = Dn(We, !0);
|
|
1823
|
+
Yr.top -= a.f, Yr.left -= a.e;
|
|
1824
1824
|
}
|
|
1825
1825
|
},
|
|
1826
1826
|
dragOverAnimationComplete: function () {
|
|
@@ -1831,27 +1831,27 @@ function Mv () {
|
|
|
1831
1831
|
if (i) {
|
|
1832
1832
|
var c = this.options, f = s.children;
|
|
1833
1833
|
if (!Gn)
|
|
1834
|
-
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), Ke(
|
|
1835
|
-
Qe.splice(Qe.indexOf(
|
|
1834
|
+
if (c.multiDragKey && !this.multiDragKeyDown && this._deselectMultiDrag(), Ke(We, c.selectedClass, !~Qe.indexOf(We)), ~Qe.indexOf(We))
|
|
1835
|
+
Qe.splice(Qe.indexOf(We), 1), Dr = null, Hr({
|
|
1836
1836
|
sortable: a,
|
|
1837
1837
|
rootEl: r,
|
|
1838
1838
|
name: "deselect",
|
|
1839
|
-
targetEl:
|
|
1839
|
+
targetEl: We,
|
|
1840
1840
|
originalEvt: i
|
|
1841
1841
|
});
|
|
1842
1842
|
else {
|
|
1843
|
-
if (Qe.push(
|
|
1843
|
+
if (Qe.push(We), Hr({
|
|
1844
1844
|
sortable: a,
|
|
1845
1845
|
rootEl: r,
|
|
1846
1846
|
name: "select",
|
|
1847
|
-
targetEl:
|
|
1847
|
+
targetEl: We,
|
|
1848
1848
|
originalEvt: i
|
|
1849
|
-
}), i.shiftKey &&
|
|
1850
|
-
var d = nt(
|
|
1849
|
+
}), i.shiftKey && Dr && a.el.contains(Dr)) {
|
|
1850
|
+
var d = nt(Dr), p = nt(We);
|
|
1851
1851
|
if (~d && ~p && d !== p) {
|
|
1852
1852
|
var g, m;
|
|
1853
1853
|
for (p > d ? (m = d, g = p) : (m = p, g = d + 1); m < g; m++)
|
|
1854
|
-
~Qe.indexOf(f[m]) || (Ke(f[m], c.selectedClass, !0), Qe.push(f[m]),
|
|
1854
|
+
~Qe.indexOf(f[m]) || (Ke(f[m], c.selectedClass, !0), Qe.push(f[m]), Hr({
|
|
1855
1855
|
sortable: a,
|
|
1856
1856
|
rootEl: r,
|
|
1857
1857
|
name: "select",
|
|
@@ -1860,14 +1860,14 @@ function Mv () {
|
|
|
1860
1860
|
}));
|
|
1861
1861
|
}
|
|
1862
1862
|
} else
|
|
1863
|
-
|
|
1863
|
+
Dr = We;
|
|
1864
1864
|
pi = h;
|
|
1865
1865
|
}
|
|
1866
1866
|
if (Gn && this.isMultiDrag) {
|
|
1867
1867
|
if (Lt = !1, (s[kt].options.sort || s !== r) && Qe.length > 1) {
|
|
1868
|
-
var O = Be(
|
|
1869
|
-
if (!
|
|
1870
|
-
if (x.thisAnimationDuration = null, x !==
|
|
1868
|
+
var O = Be(We), _ = nt(We, ":not(." + this.options.selectedClass + ")");
|
|
1869
|
+
if (!Mr && c.animation && (We.thisAnimationDuration = null), h.captureAnimationState(), !Mr && (c.animation && (We.fromRect = O, Qe.forEach(function (x) {
|
|
1870
|
+
if (x.thisAnimationDuration = null, x !== We) {
|
|
1871
1871
|
var $ = Lt ? Be(x) : O;
|
|
1872
1872
|
x.fromRect = $, h.addAnimationState({
|
|
1873
1873
|
target: x,
|
|
@@ -1876,7 +1876,7 @@ function Mv () {
|
|
|
1876
1876
|
}
|
|
1877
1877
|
})), sa(), Qe.forEach(function (x) {
|
|
1878
1878
|
f[_] ? s.insertBefore(x, f[_]) : s.appendChild(x), _++;
|
|
1879
|
-
}), l === nt(
|
|
1879
|
+
}), l === nt(We))) {
|
|
1880
1880
|
var T = !1;
|
|
1881
1881
|
Qe.forEach(function (x) {
|
|
1882
1882
|
if (x.sortableIndex !== nt(x)) {
|
|
@@ -1906,7 +1906,7 @@ function Mv () {
|
|
|
1906
1906
|
if (!(typeof Gn < "u" && Gn) && pi === this.sortable && !(t && mi(t.target, this.options.draggable, this.sortable.el, !1)) && !(t && t.button !== 0))
|
|
1907
1907
|
for (; Qe.length;) {
|
|
1908
1908
|
var i = Qe[0];
|
|
1909
|
-
Ke(i, this.options.selectedClass, !1), Qe.shift(),
|
|
1909
|
+
Ke(i, this.options.selectedClass, !1), Qe.shift(), Hr({
|
|
1910
1910
|
sortable: this.sortable,
|
|
1911
1911
|
rootEl: this.sortable.el,
|
|
1912
1912
|
name: "deselect",
|
|
@@ -1950,7 +1950,7 @@ function Mv () {
|
|
|
1950
1950
|
index: s.sortableIndex
|
|
1951
1951
|
});
|
|
1952
1952
|
var a;
|
|
1953
|
-
Lt && s !==
|
|
1953
|
+
Lt && s !== We ? a = -1 : Lt ? a = nt(s, ":not(." + t.options.selectedClass + ")") : a = nt(s), r.push({
|
|
1954
1954
|
multiDragElement: s,
|
|
1955
1955
|
index: a
|
|
1956
1956
|
});
|
|
@@ -1982,7 +1982,7 @@ function Jc (n, e) {
|
|
|
1982
1982
|
}
|
|
1983
1983
|
function sa () {
|
|
1984
1984
|
Qe.forEach(function (n) {
|
|
1985
|
-
n !==
|
|
1985
|
+
n !== We && n.parentNode && n.parentNode.removeChild(n);
|
|
1986
1986
|
});
|
|
1987
1987
|
}
|
|
1988
1988
|
ge.mount(new Av());
|
|
@@ -3284,7 +3284,7 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3284
3284
|
a4d3: (
|
|
3285
3285
|
/***/
|
|
3286
3286
|
function (r, s, a) {
|
|
3287
|
-
var o = a("23e7"), l = a("da84"), u = a("d066"), h = a("c430"), c = a("83ab"), f = a("4930"), d = a("fdbf"), p = a("d039"), g = a("5135"), m = a("e8b5"), O = a("861d"), _ = a("825a"), T = a("7b0b"), x = a("fc6a"), $ = a("c04e"), Q = a("5c6c"), k = a("7c73"), C = a("df75"), R = a("241c"), y = a("057f"), w = a("7418"), Z = a("06cf"), E = a("9bf2"), X = a("d1e7"), j = a("9112"), q = a("6eeb"), L = a("5692"), U = a("f772"), A = a("d012"), te = a("90e3"), J = a("b622"), W = a("e538"), be = a("746f"), de = a("d44e"), Oe = a("69f3"), ye = a("b727").forEach, Me = U("hidden"), Dt = "Symbol", ft = "prototype", zt = J("toPrimitive"), Li = Oe.set, en = Oe.getterFor(Dt), mt = Object[ft], gt = l.Symbol, Pn = u("JSON", "stringify"), Si = Z.f, Qi = E.f, Bs = y.f, ll = X.f, fi = L("symbols"), tn = L("op-symbols"), jn = L("string-to-symbol-registry"),
|
|
3287
|
+
var o = a("23e7"), l = a("da84"), u = a("d066"), h = a("c430"), c = a("83ab"), f = a("4930"), d = a("fdbf"), p = a("d039"), g = a("5135"), m = a("e8b5"), O = a("861d"), _ = a("825a"), T = a("7b0b"), x = a("fc6a"), $ = a("c04e"), Q = a("5c6c"), k = a("7c73"), C = a("df75"), R = a("241c"), y = a("057f"), w = a("7418"), Z = a("06cf"), E = a("9bf2"), X = a("d1e7"), j = a("9112"), q = a("6eeb"), L = a("5692"), U = a("f772"), A = a("d012"), te = a("90e3"), J = a("b622"), W = a("e538"), be = a("746f"), de = a("d44e"), Oe = a("69f3"), ye = a("b727").forEach, Me = U("hidden"), Dt = "Symbol", ft = "prototype", zt = J("toPrimitive"), Li = Oe.set, en = Oe.getterFor(Dt), mt = Object[ft], gt = l.Symbol, Pn = u("JSON", "stringify"), Si = Z.f, Qi = E.f, Bs = y.f, ll = X.f, fi = L("symbols"), tn = L("op-symbols"), jn = L("string-to-symbol-registry"), Rr = L("symbol-to-string-registry"), Zr = L("wks"), Er = l.QObject, Xr = !Er || !Er[ft] || !Er[ft].findChild, Ar = c && p(function () {
|
|
3288
3288
|
return k(Qi({}, "a", {
|
|
3289
3289
|
get: function () {
|
|
3290
3290
|
return Qi(this, "a", { value: 7 }).a;
|
|
@@ -3293,7 +3293,7 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3293
3293
|
}) ? function (Se, oe, me) {
|
|
3294
3294
|
var Re = Si(mt, oe);
|
|
3295
3295
|
Re && delete mt[oe], Qi(Se, oe, me), Re && Se !== mt && Qi(mt, oe, Re);
|
|
3296
|
-
} : Qi,
|
|
3296
|
+
} : Qi, Vr = function (Se, oe) {
|
|
3297
3297
|
var me = fi[Se] = k(gt[ft]);
|
|
3298
3298
|
return Li(me, {
|
|
3299
3299
|
type: Dt,
|
|
@@ -3307,7 +3307,7 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3307
3307
|
}, V = function (oe, me, Re) {
|
|
3308
3308
|
oe === mt && V(tn, me, Re), _(oe);
|
|
3309
3309
|
var Ee = $(me, !0);
|
|
3310
|
-
return _(Re), g(fi, Ee) ? (Re.enumerable ? (g(oe, Me) && oe[Me][Ee] && (oe[Me][Ee] = !1), Re = k(Re, { enumerable: Q(0, !1) })) : (g(oe, Me) || Qi(oe, Me, Q(1, {})), oe[Me][Ee] = !0),
|
|
3310
|
+
return _(Re), g(fi, Ee) ? (Re.enumerable ? (g(oe, Me) && oe[Me][Ee] && (oe[Me][Ee] = !1), Re = k(Re, { enumerable: Q(0, !1) })) : (g(oe, Me) || Qi(oe, Me, Q(1, {})), oe[Me][Ee] = !0), Ar(oe, Ee, Re)) : Qi(oe, Ee, Re);
|
|
3311
3311
|
}, I = function (oe, me) {
|
|
3312
3312
|
_(oe);
|
|
3313
3313
|
var Re = x(me), Ee = C(Re).concat(Ve(Re));
|
|
@@ -3340,15 +3340,15 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3340
3340
|
if (this instanceof gt)
|
|
3341
3341
|
throw TypeError("Symbol is not a constructor");
|
|
3342
3342
|
var oe = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), me = te(oe), Re = function (Ee) {
|
|
3343
|
-
this === mt && Re.call(tn, Ee), g(this, Me) && g(this[Me], me) && (this[Me][me] = !1),
|
|
3343
|
+
this === mt && Re.call(tn, Ee), g(this, Me) && g(this[Me], me) && (this[Me][me] = !1), Ar(this, me, Q(1, Ee));
|
|
3344
3344
|
};
|
|
3345
|
-
return c &&
|
|
3345
|
+
return c && Xr && Ar(mt, me, { configurable: !0, set: Re }), Vr(me, oe);
|
|
3346
3346
|
}, q(gt[ft], "toString", function () {
|
|
3347
3347
|
return en(this).tag;
|
|
3348
3348
|
}), q(gt, "withoutSetter", function (Se) {
|
|
3349
|
-
return
|
|
3349
|
+
return Vr(te(Se), Se);
|
|
3350
3350
|
}), X.f = se, E.f = V, Z.f = _e, R.f = y.f = Pe, w.f = Ve, W.f = function (Se) {
|
|
3351
|
-
return
|
|
3351
|
+
return Vr(J(Se), Se);
|
|
3352
3352
|
}, c && (Qi(gt[ft], "description", {
|
|
3353
3353
|
configurable: !0,
|
|
3354
3354
|
get: function () {
|
|
@@ -3356,7 +3356,7 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3356
3356
|
}
|
|
3357
3357
|
}), h || q(mt, "propertyIsEnumerable", se, { unsafe: !0 }))), o({ global: !0, wrap: !0, forced: !f, sham: !f }, {
|
|
3358
3358
|
Symbol: gt
|
|
3359
|
-
}), ye(C(
|
|
3359
|
+
}), ye(C(Zr), function (Se) {
|
|
3360
3360
|
be(Se);
|
|
3361
3361
|
}), o({ target: Dt, stat: !0, forced: !f }, {
|
|
3362
3362
|
// `Symbol.for` method
|
|
@@ -3366,21 +3366,21 @@ const Lv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3366
3366
|
if (g(jn, oe))
|
|
3367
3367
|
return jn[oe];
|
|
3368
3368
|
var me = gt(oe);
|
|
3369
|
-
return jn[oe] = me,
|
|
3369
|
+
return jn[oe] = me, Rr[me] = oe, me;
|
|
3370
3370
|
},
|
|
3371
3371
|
// `Symbol.keyFor` method
|
|
3372
3372
|
// https://tc39.github.io/ecma262/#sec-symbol.keyfor
|
|
3373
3373
|
keyFor: function (oe) {
|
|
3374
3374
|
if (!M(oe))
|
|
3375
3375
|
throw TypeError(oe + " is not a symbol");
|
|
3376
|
-
if (g(
|
|
3377
|
-
return
|
|
3376
|
+
if (g(Rr, oe))
|
|
3377
|
+
return Rr[oe];
|
|
3378
3378
|
},
|
|
3379
3379
|
useSetter: function () {
|
|
3380
|
-
|
|
3380
|
+
Xr = !0;
|
|
3381
3381
|
},
|
|
3382
3382
|
useSimple: function () {
|
|
3383
|
-
|
|
3383
|
+
Xr = !1;
|
|
3384
3384
|
}
|
|
3385
3385
|
}), o({ target: "Object", stat: !0, forced: !f, sham: !c }, {
|
|
3386
3386
|
// `Object.create` method
|
|
@@ -4531,13 +4531,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4531
4531
|
return V["onDrag".concat(M)](I, B);
|
|
4532
4532
|
};
|
|
4533
4533
|
}
|
|
4534
|
-
function
|
|
4534
|
+
function Rr (M) {
|
|
4535
4535
|
var V = this, I = jn.call(this, M);
|
|
4536
4536
|
return function (B, se) {
|
|
4537
4537
|
I.call(V, B, se), tn.call(V, M, B);
|
|
4538
4538
|
};
|
|
4539
4539
|
}
|
|
4540
|
-
var
|
|
4540
|
+
var Zr = null, Er = {
|
|
4541
4541
|
list: {
|
|
4542
4542
|
type: Array,
|
|
4543
4543
|
required: !1,
|
|
@@ -4571,13 +4571,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4571
4571
|
required: !1,
|
|
4572
4572
|
default: null
|
|
4573
4573
|
}
|
|
4574
|
-
},
|
|
4574
|
+
}, Xr = ["update:modelValue", "change"].concat(Q([].concat(Q(A.manageAndEmit), Q(A.emit)).map(function (M) {
|
|
4575
4575
|
return M.toLowerCase();
|
|
4576
|
-
}))),
|
|
4576
|
+
}))), Ar = Object(Si.defineComponent)({
|
|
4577
4577
|
name: "draggable",
|
|
4578
4578
|
inheritAttrs: !1,
|
|
4579
|
-
props:
|
|
4580
|
-
emits:
|
|
4579
|
+
props: Er,
|
|
4580
|
+
emits: Xr,
|
|
4581
4581
|
data: function () {
|
|
4582
4582
|
return {
|
|
4583
4583
|
error: !1
|
|
@@ -4618,7 +4618,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4618
4618
|
$attrs: I,
|
|
4619
4619
|
callBackBuilder: {
|
|
4620
4620
|
manageAndEmit: function (rt) {
|
|
4621
|
-
return
|
|
4621
|
+
return Rr.call(V, rt);
|
|
4622
4622
|
},
|
|
4623
4623
|
emit: function (rt) {
|
|
4624
4624
|
return tn.bind(V, rt);
|
|
@@ -4714,7 +4714,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4714
4714
|
return this.componentStructure.getVmIndexFromDomIndex(V, this.targetDomElement);
|
|
4715
4715
|
},
|
|
4716
4716
|
onDragStart: function (V) {
|
|
4717
|
-
this.context = this.getUnderlyingVm(V.item), V.item._underlying_vm_ = this.clone(this.context.element),
|
|
4717
|
+
this.context = this.getUnderlyingVm(V.item), V.item._underlying_vm_ = this.clone(this.context.element), Zr = V.item;
|
|
4718
4718
|
},
|
|
4719
4719
|
onDragAdd: function (V) {
|
|
4720
4720
|
var I = V.item._underlying_vm_;
|
|
@@ -4764,7 +4764,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4764
4764
|
return 0;
|
|
4765
4765
|
var B = Q(I.to.children).filter(function (Ve) {
|
|
4766
4766
|
return Ve.style.display !== "none";
|
|
4767
|
-
}), se = B.indexOf(I.related), _e = V.component.getVmIndexFromDomIndex(se), Pe = B.indexOf(
|
|
4767
|
+
}), se = B.indexOf(I.related), _e = V.component.getVmIndexFromDomIndex(se), Pe = B.indexOf(Zr) !== -1;
|
|
4768
4768
|
return Pe || !I.willInsertAfter ? _e : _e + 1;
|
|
4769
4769
|
},
|
|
4770
4770
|
onDragMove: function (V, I) {
|
|
@@ -4780,11 +4780,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4780
4780
|
return B(rt, I);
|
|
4781
4781
|
},
|
|
4782
4782
|
onDragEnd: function () {
|
|
4783
|
-
|
|
4783
|
+
Zr = null;
|
|
4784
4784
|
}
|
|
4785
4785
|
}
|
|
4786
|
-
}),
|
|
4787
|
-
s.default =
|
|
4786
|
+
}), Vr = Ar;
|
|
4787
|
+
s.default = Vr;
|
|
4788
4788
|
}
|
|
4789
4789
|
),
|
|
4790
4790
|
/***/
|
|
@@ -4925,7 +4925,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
4925
4925
|
}, [
|
|
4926
4926
|
Da(d.$slots, "default", {}, void 0, !0)
|
|
4927
4927
|
], 2),
|
|
4928
|
-
n.elData.id == v(r) ? (D(), K(
|
|
4928
|
+
n.elData.id == v(r) ? (D(), K(fe, { key: 0 }, [
|
|
4929
4929
|
Y("div", Wv, [
|
|
4930
4930
|
v(o).isSuspend ? (D(), K("i", {
|
|
4931
4931
|
key: 0,
|
|
@@ -5217,13 +5217,13 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5217
5217
|
te.classList.remove("selected");
|
|
5218
5218
|
}), s.value = null;
|
|
5219
5219
|
}
|
|
5220
|
-
return
|
|
5220
|
+
return Qr(async () => {
|
|
5221
5221
|
T.value && (T.value.addEventListener("mousedown", E), T.value.addEventListener("click", q), T.value.addEventListener("drop", a), T.value.addEventListener("dragover", o), T.value.addEventListener("dragleave", l), window.addEventListener("mousemove", X), window.addEventListener("mouseup", j));
|
|
5222
5222
|
}), Xh(() => {
|
|
5223
5223
|
T.value && (T.value.removeEventListener("mousedown", E), T.value.removeEventListener("click", q), T.value.removeEventListener("drop", a), T.value.removeEventListener("dragover", o), T.value.removeEventListener("dragleave", l)), window.removeEventListener("mousemove", X), window.removeEventListener("mouseup", j);
|
|
5224
5224
|
}), (L, U) => {
|
|
5225
5225
|
var be;
|
|
5226
|
-
const A =
|
|
5226
|
+
const A = ce("el-form-item"), te = ce("el-form"), J = ce("el-text"), W = ce("el-button");
|
|
5227
5227
|
return D(), K("div", {
|
|
5228
5228
|
class: Wo(["yh-statement-table", { active: n.index === v($) }]),
|
|
5229
5229
|
style: gi(v(p)),
|
|
@@ -5233,7 +5233,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5233
5233
|
Y("div", rb, [
|
|
5234
5234
|
b(te, { inline: "" }, {
|
|
5235
5235
|
default: S(() => [
|
|
5236
|
-
(D(!0), K(
|
|
5236
|
+
(D(!0), K(fe, null, Je(v(_), (de, Oe) => (D(), ee(A, {
|
|
5237
5237
|
class: "params-desinger-item",
|
|
5238
5238
|
draggable: "true",
|
|
5239
5239
|
onDragend: c,
|
|
@@ -5273,7 +5273,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5273
5273
|
v(k) ? (D(), K("div", hb, [
|
|
5274
5274
|
cb,
|
|
5275
5275
|
Y("div", fb, [
|
|
5276
|
-
(D(!0), K(
|
|
5276
|
+
(D(!0), K(fe, null, Je(v(g), (de, Oe) => (D(), K("div", {
|
|
5277
5277
|
class: "table-item",
|
|
5278
5278
|
"data-area": "rows",
|
|
5279
5279
|
style: gi(`${isNaN(de.width) ? "" : "width: " + de.width + "px"}`),
|
|
@@ -5306,7 +5306,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5306
5306
|
])) : ue("", !0),
|
|
5307
5307
|
Y("div", vb, [
|
|
5308
5308
|
Y("div", bb, [
|
|
5309
|
-
(D(!0), K(
|
|
5309
|
+
(D(!0), K(fe, null, Je(v(m), (de, Oe) => (D(), K("div", {
|
|
5310
5310
|
class: "table-item",
|
|
5311
5311
|
"data-area": "columns",
|
|
5312
5312
|
"data-index": Oe,
|
|
@@ -5337,7 +5337,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5337
5337
|
], 12, yb))), 256))
|
|
5338
5338
|
]),
|
|
5339
5339
|
v(k) ? (D(), K("div", wb, [
|
|
5340
|
-
(D(!0), K(
|
|
5340
|
+
(D(!0), K(fe, null, Je(v(O), (de, Oe) => (D(), K("div", {
|
|
5341
5341
|
class: "table-item",
|
|
5342
5342
|
"data-area": "values",
|
|
5343
5343
|
"data-index": Oe
|
|
@@ -5422,7 +5422,7 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5422
5422
|
});
|
|
5423
5423
|
function u (f) {
|
|
5424
5424
|
Array.isArray(l.value) || (l.value = []);
|
|
5425
|
-
let d =
|
|
5425
|
+
let d = fr(N1);
|
|
5426
5426
|
d.id = `${f}_${Date.now()}`, d.type = f, l.value.push(d);
|
|
5427
5427
|
}
|
|
5428
5428
|
function h ({ option: f, index: d }) {
|
|
@@ -5433,8 +5433,8 @@ const qo = (n) => (P1("data-v-45eeeaeb"), n = n(), $1(), n), Wv = { class: "fiel
|
|
|
5433
5433
|
function c (f) {
|
|
5434
5434
|
s.value = null, a.value = null, o.value = null, l.value.splice(f, 1);
|
|
5435
5435
|
}
|
|
5436
|
-
return (f, d) => (D(), K(
|
|
5437
|
-
(D(!0), K(
|
|
5436
|
+
return (f, d) => (D(), K(fe, null, [
|
|
5437
|
+
(D(!0), K(fe, null, Je(v(l), (p, g) => (D(), ee(Ab, {
|
|
5438
5438
|
statement: p,
|
|
5439
5439
|
index: g,
|
|
5440
5440
|
onChoose: h,
|
|
@@ -5482,9 +5482,9 @@ const Ub = /* @__PURE__ */ Y("i", { class: "iconfont icon-delete" }, null, -1),
|
|
|
5482
5482
|
function o (l) {
|
|
5483
5483
|
t.value.paramsData && t.value.paramsData.length && t.value.paramsData.splice(l, 1);
|
|
5484
5484
|
}
|
|
5485
|
-
return
|
|
5485
|
+
return Qr(() => {
|
|
5486
5486
|
}), (l, u) => {
|
|
5487
|
-
const h =
|
|
5487
|
+
const h = ce("el-button"), c = ce("el-form-item"), f = ce("el-form");
|
|
5488
5488
|
return D(), ee(f, {
|
|
5489
5489
|
inline: "",
|
|
5490
5490
|
ref_key: "paramDataRef",
|
|
@@ -5492,7 +5492,7 @@ const Ub = /* @__PURE__ */ Y("i", { class: "iconfont icon-delete" }, null, -1),
|
|
|
5492
5492
|
class: "chart-param-data-container"
|
|
5493
5493
|
}, {
|
|
5494
5494
|
default: S(() => [
|
|
5495
|
-
(D(!0), K(
|
|
5495
|
+
(D(!0), K(fe, null, Je(v(s), (d, p) => (D(), ee(c, {
|
|
5496
5496
|
label: d.config.name
|
|
5497
5497
|
}, {
|
|
5498
5498
|
default: S(() => [
|
|
@@ -5676,7 +5676,7 @@ class Ze {
|
|
|
5676
5676
|
Replace a range of the text with the given content.
|
|
5677
5677
|
*/
|
|
5678
5678
|
replace (e, t, i) {
|
|
5679
|
-
[e, t] =
|
|
5679
|
+
[e, t] = pr(this, e, t);
|
|
5680
5680
|
let r = [];
|
|
5681
5681
|
return this.decompose(
|
|
5682
5682
|
0,
|
|
@@ -5708,7 +5708,7 @@ class Ze {
|
|
|
5708
5708
|
Retrieve the text between the given points.
|
|
5709
5709
|
*/
|
|
5710
5710
|
slice (e, t = this.length) {
|
|
5711
|
-
[e, t] =
|
|
5711
|
+
[e, t] = pr(this, e, t);
|
|
5712
5712
|
let i = [];
|
|
5713
5713
|
return this.decompose(e, t, i, 0), ki.from(i, t - e);
|
|
5714
5714
|
}
|
|
@@ -5720,7 +5720,7 @@ class Ze {
|
|
|
5720
5720
|
return !0;
|
|
5721
5721
|
if (e.length != this.length || e.lines != this.lines)
|
|
5722
5722
|
return !1;
|
|
5723
|
-
let t = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new
|
|
5723
|
+
let t = this.scanIdentical(e, 1), i = this.length - this.scanIdentical(e, -1), r = new fs(this), s = new fs(e);
|
|
5724
5724
|
for (let a = t, o = t; ;) {
|
|
5725
5725
|
if (r.next(a), s.next(a), a = 0, r.lineBreak != s.lineBreak || r.done != s.done || r.value != s.value)
|
|
5726
5726
|
return !1;
|
|
@@ -5734,7 +5734,7 @@ class Ze {
|
|
|
5734
5734
|
them as separate strings.
|
|
5735
5735
|
*/
|
|
5736
5736
|
iter (e = 1) {
|
|
5737
|
-
return new
|
|
5737
|
+
return new fs(this, e);
|
|
5738
5738
|
}
|
|
5739
5739
|
/**
|
|
5740
5740
|
Iterate over a range of the text. When `from` > `to`, the
|
|
@@ -5824,13 +5824,13 @@ class st extends Ze {
|
|
|
5824
5824
|
replace (e, t, i) {
|
|
5825
5825
|
if (!(i instanceof st))
|
|
5826
5826
|
return super.replace(e, t, i);
|
|
5827
|
-
[e, t] =
|
|
5827
|
+
[e, t] = pr(this, e, t);
|
|
5828
5828
|
let r = ja(this.text, ja(i.text, rf(this.text, 0, e)), t), s = this.length + i.length - (t - e);
|
|
5829
5829
|
return r.length <= 32 ? new st(r, s) : ki.from(st.split(r, []), s);
|
|
5830
5830
|
}
|
|
5831
5831
|
sliceString (e, t = this.length, i = `
|
|
5832
5832
|
`) {
|
|
5833
|
-
[e, t] =
|
|
5833
|
+
[e, t] = pr(this, e, t);
|
|
5834
5834
|
let r = "";
|
|
5835
5835
|
for (let s = 0, a = 0; s <= t && a < this.text.length; a++) {
|
|
5836
5836
|
let o = this.text[a], l = s + o.length;
|
|
@@ -5877,7 +5877,7 @@ class ki extends Ze {
|
|
|
5877
5877
|
}
|
|
5878
5878
|
}
|
|
5879
5879
|
replace (e, t, i) {
|
|
5880
|
-
if ([e, t] =
|
|
5880
|
+
if ([e, t] = pr(this, e, t), i.lines < this.lines)
|
|
5881
5881
|
for (let r = 0, s = 0; r < this.children.length; r++) {
|
|
5882
5882
|
let a = this.children[r], o = s + a.length;
|
|
5883
5883
|
if (e >= s && t <= o) {
|
|
@@ -5894,7 +5894,7 @@ class ki extends Ze {
|
|
|
5894
5894
|
}
|
|
5895
5895
|
sliceString (e, t = this.length, i = `
|
|
5896
5896
|
`) {
|
|
5897
|
-
[e, t] =
|
|
5897
|
+
[e, t] = pr(this, e, t);
|
|
5898
5898
|
let r = "";
|
|
5899
5899
|
for (let s = 0, a = 0; s < this.children.length && a <= t; s++) {
|
|
5900
5900
|
let o = this.children[s], l = a + o.length;
|
|
@@ -5967,7 +5967,7 @@ function ja (n, e, t = 0, i = 1e9) {
|
|
|
5967
5967
|
function rf (n, e, t) {
|
|
5968
5968
|
return ja(n, [""], e, t);
|
|
5969
5969
|
}
|
|
5970
|
-
class
|
|
5970
|
+
class fs {
|
|
5971
5971
|
constructor (e, t = 1) {
|
|
5972
5972
|
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof st ? e.text.length : e.children.length) << 1];
|
|
5973
5973
|
}
|
|
@@ -6000,7 +6000,7 @@ class cs {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
class RO {
|
|
6002
6002
|
constructor (e, t, i) {
|
|
6003
|
-
this.value = "", this.done = !1, this.cursor = new
|
|
6003
|
+
this.value = "", this.done = !1, this.cursor = new fs(e, t > i ? -1 : 1), this.pos = t > i ? e.length : 0, this.from = Math.min(t, i), this.to = Math.max(t, i);
|
|
6004
6004
|
}
|
|
6005
6005
|
nextInner (e, t) {
|
|
6006
6006
|
if (t < 0 ? this.pos <= this.from : this.pos >= this.to)
|
|
@@ -6032,7 +6032,7 @@ class ZO {
|
|
|
6032
6032
|
}
|
|
6033
6033
|
typeof Symbol < "u" && (Ze.prototype[Symbol.iterator] = function () {
|
|
6034
6034
|
return this.iter();
|
|
6035
|
-
},
|
|
6035
|
+
}, fs.prototype[Symbol.iterator] = RO.prototype[Symbol.iterator] = ZO.prototype[Symbol.iterator] = function () {
|
|
6036
6036
|
return this;
|
|
6037
6037
|
});
|
|
6038
6038
|
class Kb {
|
|
@@ -6049,7 +6049,7 @@ class Kb {
|
|
|
6049
6049
|
return this.to - this.from;
|
|
6050
6050
|
}
|
|
6051
6051
|
}
|
|
6052
|
-
function
|
|
6052
|
+
function pr (n, e, t) {
|
|
6053
6053
|
return e = Math.max(0, Math.min(n.length, e)), [e, Math.max(e, Math.min(n.length, t))];
|
|
6054
6054
|
}
|
|
6055
6055
|
function St (n, e, t = !0, i = !0) {
|
|
@@ -6869,7 +6869,7 @@ function sf (n, e, t) {
|
|
|
6869
6869
|
function Eu (n, e) {
|
|
6870
6870
|
let t = !1;
|
|
6871
6871
|
for (let i of e)
|
|
6872
|
-
|
|
6872
|
+
ds(n, i) & 1 && (t = !0);
|
|
6873
6873
|
return t;
|
|
6874
6874
|
}
|
|
6875
6875
|
function ty (n, e, t) {
|
|
@@ -6889,7 +6889,7 @@ function ty (n, e, t) {
|
|
|
6889
6889
|
return {
|
|
6890
6890
|
create (l) {
|
|
6891
6891
|
for (let u of i)
|
|
6892
|
-
|
|
6892
|
+
ds(l, u);
|
|
6893
6893
|
return l.values[a] = o(l), 1;
|
|
6894
6894
|
},
|
|
6895
6895
|
update (l, u) {
|
|
@@ -6958,7 +6958,7 @@ class Ot {
|
|
|
6958
6958
|
}
|
|
6959
6959
|
}
|
|
6960
6960
|
const En = { lowest: 4, low: 3, default: 2, high: 1, highest: 0 };
|
|
6961
|
-
function
|
|
6961
|
+
function Lr (n) {
|
|
6962
6962
|
return (e) => new AO(e, n);
|
|
6963
6963
|
}
|
|
6964
6964
|
const xn = {
|
|
@@ -6966,26 +6966,26 @@ const xn = {
|
|
|
6966
6966
|
The highest precedence level, for extensions that should end up
|
|
6967
6967
|
near the start of the precedence ordering.
|
|
6968
6968
|
*/
|
|
6969
|
-
highest: /* @__PURE__ */
|
|
6969
|
+
highest: /* @__PURE__ */ Lr(En.highest),
|
|
6970
6970
|
/**
|
|
6971
6971
|
A higher-than-default precedence, for extensions that should
|
|
6972
6972
|
come before those with default precedence.
|
|
6973
6973
|
*/
|
|
6974
|
-
high: /* @__PURE__ */
|
|
6974
|
+
high: /* @__PURE__ */ Lr(En.high),
|
|
6975
6975
|
/**
|
|
6976
6976
|
The default precedence, which is also used for extensions
|
|
6977
6977
|
without an explicit precedence.
|
|
6978
6978
|
*/
|
|
6979
|
-
default: /* @__PURE__ */
|
|
6979
|
+
default: /* @__PURE__ */ Lr(En.default),
|
|
6980
6980
|
/**
|
|
6981
6981
|
A lower-than-default precedence.
|
|
6982
6982
|
*/
|
|
6983
|
-
low: /* @__PURE__ */
|
|
6983
|
+
low: /* @__PURE__ */ Lr(En.low),
|
|
6984
6984
|
/**
|
|
6985
6985
|
The lowest precedence level. Meant for things that should end up
|
|
6986
6986
|
near the end of the extension order.
|
|
6987
6987
|
*/
|
|
6988
|
-
lowest: /* @__PURE__ */
|
|
6988
|
+
lowest: /* @__PURE__ */ Lr(En.lowest)
|
|
6989
6989
|
};
|
|
6990
6990
|
class AO {
|
|
6991
6991
|
constructor (e, t) {
|
|
@@ -7095,7 +7095,7 @@ function iy (n, e, t) {
|
|
|
7095
7095
|
}
|
|
7096
7096
|
return s(n, En.default), i.reduce((a, o) => a.concat(o));
|
|
7097
7097
|
}
|
|
7098
|
-
function
|
|
7098
|
+
function ds (n, e) {
|
|
7099
7099
|
if (e & 1)
|
|
7100
7100
|
return 2;
|
|
7101
7101
|
let t = e >> 1, i = n.status[t];
|
|
@@ -7401,7 +7401,7 @@ class Xe {
|
|
|
7401
7401
|
constructor (e, t, i, r, s, a) {
|
|
7402
7402
|
this.config = e, this.doc = t, this.selection = i, this.values = r, this.status = e.statusTemplate.slice(), this.computeSlot = s, a && (a._state = this);
|
|
7403
7403
|
for (let o = 0; o < this.config.dynamicSlots.length; o++)
|
|
7404
|
-
|
|
7404
|
+
ds(this, o << 1);
|
|
7405
7405
|
this.computeSlot = null;
|
|
7406
7406
|
}
|
|
7407
7407
|
field (e, t = !0) {
|
|
@@ -7411,7 +7411,7 @@ class Xe {
|
|
|
7411
7411
|
throw new RangeError("Field is not present in this state");
|
|
7412
7412
|
return;
|
|
7413
7413
|
}
|
|
7414
|
-
return
|
|
7414
|
+
return ds(this, i), co(this, i);
|
|
7415
7415
|
}
|
|
7416
7416
|
/**
|
|
7417
7417
|
Create a [transaction](https://codemirror.net/6/docs/ref/#state.Transaction) that updates this
|
|
@@ -7506,7 +7506,7 @@ class Xe {
|
|
|
7506
7506
|
*/
|
|
7507
7507
|
facet (e) {
|
|
7508
7508
|
let t = this.config.address[e.id];
|
|
7509
|
-
return t == null ? e.default : (
|
|
7509
|
+
return t == null ? e.default : (ds(this, t), co(this, t));
|
|
7510
7510
|
}
|
|
7511
7511
|
/**
|
|
7512
7512
|
Convert this state to a JSON-serializable object. When custom
|
|
@@ -7890,7 +7890,7 @@ class Ae {
|
|
|
7890
7890
|
to notify it of possible differences.
|
|
7891
7891
|
*/
|
|
7892
7892
|
static compare (e, t, i, r, s = -1) {
|
|
7893
|
-
let a = e.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= s), o = t.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= s), l = af(a, o, i), u = new
|
|
7893
|
+
let a = e.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= s), o = t.filter((c) => c.maxPoint > 0 || !c.isEmpty && c.maxPoint >= s), l = af(a, o, i), u = new Ur(a, l, s), h = new Ur(o, l, s);
|
|
7894
7894
|
i.iterGaps((c, f, d) => of(u, c, h, f, d, r)), i.empty && i.length == 0 && of(u, 0, h, 0, 0, r);
|
|
7895
7895
|
}
|
|
7896
7896
|
/**
|
|
@@ -7904,7 +7904,7 @@ class Ae {
|
|
|
7904
7904
|
return !1;
|
|
7905
7905
|
if (!s.length)
|
|
7906
7906
|
return !0;
|
|
7907
|
-
let o = af(s, a), l = new
|
|
7907
|
+
let o = af(s, a), l = new Ur(s, o, 0).goto(i), u = new Ur(a, o, 0).goto(i);
|
|
7908
7908
|
for (; ;) {
|
|
7909
7909
|
if (l.to != u.to || !Lu(l.active, u.active) || l.point && (!u.point || !l.point.eq(u.point)))
|
|
7910
7910
|
return !1;
|
|
@@ -7921,7 +7921,7 @@ class Ae {
|
|
|
7921
7921
|
of the iteration.
|
|
7922
7922
|
*/
|
|
7923
7923
|
static spans (e, t, i, r, s = -1) {
|
|
7924
|
-
let a = new
|
|
7924
|
+
let a = new Ur(e, null, s).goto(t), o = t, l = a.openStart;
|
|
7925
7925
|
for (; ;) {
|
|
7926
7926
|
let u = Math.min(a.to, i);
|
|
7927
7927
|
if (a.point) {
|
|
@@ -8142,7 +8142,7 @@ function Sl (n, e) {
|
|
|
8142
8142
|
n[i] = t, n[e] = r, e = i;
|
|
8143
8143
|
}
|
|
8144
8144
|
}
|
|
8145
|
-
class
|
|
8145
|
+
class Ur {
|
|
8146
8146
|
constructor (e, t, i) {
|
|
8147
8147
|
this.minPoint = i, this.active = [], this.activeTo = [], this.activeRank = [], this.minActive = -1, this.point = null, this.pointFrom = 0, this.pointRank = 0, this.to = -1e9, this.endSide = 0, this.openStart = -1, this.cursor = bs.from(e, t, i);
|
|
8148
8148
|
}
|
|
@@ -8252,7 +8252,7 @@ function lf (n, e) {
|
|
|
8252
8252
|
(e[r] - i || n[r].endSide - n[t].endSide) < 0 && (t = r, i = e[r]);
|
|
8253
8253
|
return t;
|
|
8254
8254
|
}
|
|
8255
|
-
function
|
|
8255
|
+
function xr (n, e, t = n.length) {
|
|
8256
8256
|
let i = 0;
|
|
8257
8257
|
for (let r = 0; r < t && r < n.length;)
|
|
8258
8258
|
n.charCodeAt(r) == 9 ? (i += e - i % e, r++) : (i++, r = St(n, r));
|
|
@@ -8491,7 +8491,7 @@ function qa (n, e) {
|
|
|
8491
8491
|
function Ss (n) {
|
|
8492
8492
|
return n.nodeType == 3 ? Un(n, 0, n.nodeValue.length).getClientRects() : n.nodeType == 1 ? n.getClientRects() : [];
|
|
8493
8493
|
}
|
|
8494
|
-
function
|
|
8494
|
+
function ps (n, e, t, i) {
|
|
8495
8495
|
return t ? ff(n, e, t, i, -1) || ff(n, e, t, i, 1) : !1;
|
|
8496
8496
|
}
|
|
8497
8497
|
function Ln (n) {
|
|
@@ -8737,7 +8737,7 @@ class Tt {
|
|
|
8737
8737
|
}
|
|
8738
8738
|
}
|
|
8739
8739
|
const Wh = [];
|
|
8740
|
-
class
|
|
8740
|
+
class Ie {
|
|
8741
8741
|
constructor () {
|
|
8742
8742
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
8743
8743
|
}
|
|
@@ -8768,7 +8768,7 @@ class Ue {
|
|
|
8768
8768
|
for (let a of this.children) {
|
|
8769
8769
|
if (a.flags & 7) {
|
|
8770
8770
|
if (!a.dom && (s = r ? r.nextSibling : i.firstChild)) {
|
|
8771
|
-
let o =
|
|
8771
|
+
let o = Ie.get(s);
|
|
8772
8772
|
(!o || !o.parent && o.canReuseDOM(a)) && a.reuseDOM(s);
|
|
8773
8773
|
}
|
|
8774
8774
|
a.sync(e, t), a.flags &= -8;
|
|
@@ -8804,7 +8804,7 @@ class Ue {
|
|
|
8804
8804
|
}
|
|
8805
8805
|
if (i == this.dom.firstChild)
|
|
8806
8806
|
return 0;
|
|
8807
|
-
for (; i && !
|
|
8807
|
+
for (; i && !Ie.get(i);)
|
|
8808
8808
|
i = i.nextSibling;
|
|
8809
8809
|
if (!i)
|
|
8810
8810
|
return this.length;
|
|
@@ -8917,7 +8917,7 @@ class Ue {
|
|
|
8917
8917
|
this.parent = null;
|
|
8918
8918
|
}
|
|
8919
8919
|
}
|
|
8920
|
-
|
|
8920
|
+
Ie.prototype.breakAfter = 0;
|
|
8921
8921
|
function pf (n) {
|
|
8922
8922
|
let e = n.nextSibling;
|
|
8923
8923
|
return n.parentNode.removeChild(n), e;
|
|
@@ -8978,7 +8978,7 @@ var ne = {
|
|
|
8978
8978
|
tabSize: Nu.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
|
|
8979
8979
|
};
|
|
8980
8980
|
const Qy = 256;
|
|
8981
|
-
class bi extends
|
|
8981
|
+
class bi extends Ie {
|
|
8982
8982
|
constructor (e) {
|
|
8983
8983
|
super(), this.text = e;
|
|
8984
8984
|
}
|
|
@@ -9014,7 +9014,7 @@ class bi extends Ue {
|
|
|
9014
9014
|
return xy(this.dom, e, t);
|
|
9015
9015
|
}
|
|
9016
9016
|
}
|
|
9017
|
-
class Bi extends
|
|
9017
|
+
class Bi extends Ie {
|
|
9018
9018
|
constructor (e, t = [], i = 0) {
|
|
9019
9019
|
super(), this.mark = e, this.children = t, this.length = i;
|
|
9020
9020
|
for (let r of t)
|
|
@@ -9065,7 +9065,7 @@ function xy (n, e, t) {
|
|
|
9065
9065
|
let l = o[(a ? a < 0 : t >= 0) ? 0 : o.length - 1];
|
|
9066
9066
|
return ne.safari && !a && l.width == 0 && (l = Array.prototype.find.call(o, (u) => u.width) || l), a ? Go(l, a < 0) : l || null;
|
|
9067
9067
|
}
|
|
9068
|
-
class fn extends
|
|
9068
|
+
class fn extends Ie {
|
|
9069
9069
|
static create (e, t, i) {
|
|
9070
9070
|
return new fn(e, t, i);
|
|
9071
9071
|
}
|
|
@@ -9134,7 +9134,7 @@ class fn extends Ue {
|
|
|
9134
9134
|
super.destroy(), this.dom && this.widget.destroy(this.dom);
|
|
9135
9135
|
}
|
|
9136
9136
|
}
|
|
9137
|
-
class
|
|
9137
|
+
class Or extends Ie {
|
|
9138
9138
|
constructor (e) {
|
|
9139
9139
|
super(), this.side = e;
|
|
9140
9140
|
}
|
|
@@ -9145,10 +9145,10 @@ class pr extends Ue {
|
|
|
9145
9145
|
return !1;
|
|
9146
9146
|
}
|
|
9147
9147
|
become (e) {
|
|
9148
|
-
return e instanceof
|
|
9148
|
+
return e instanceof Or && e.side == this.side;
|
|
9149
9149
|
}
|
|
9150
9150
|
split () {
|
|
9151
|
-
return new
|
|
9151
|
+
return new Or(this.side);
|
|
9152
9152
|
}
|
|
9153
9153
|
sync () {
|
|
9154
9154
|
if (!this.dom) {
|
|
@@ -9178,7 +9178,7 @@ class pr extends Ue {
|
|
|
9178
9178
|
return !0;
|
|
9179
9179
|
}
|
|
9180
9180
|
}
|
|
9181
|
-
bi.prototype.children = fn.prototype.children =
|
|
9181
|
+
bi.prototype.children = fn.prototype.children = Or.prototype.children = Wh;
|
|
9182
9182
|
function nm (n, e) {
|
|
9183
9183
|
let t = n.dom, { children: i } = n, r = 0;
|
|
9184
9184
|
for (let s = 0; r < i.length; r++) {
|
|
@@ -9481,7 +9481,7 @@ function za (n, e, t, i = 0) {
|
|
|
9481
9481
|
let r = t.length - 1;
|
|
9482
9482
|
r >= 0 && t[r] + i >= n ? t[r] = Math.max(t[r], e) : t.push(n, e);
|
|
9483
9483
|
}
|
|
9484
|
-
class ot extends
|
|
9484
|
+
class ot extends Ie {
|
|
9485
9485
|
constructor () {
|
|
9486
9486
|
super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
|
|
9487
9487
|
}
|
|
@@ -9530,9 +9530,9 @@ class ot extends Ue {
|
|
|
9530
9530
|
var i;
|
|
9531
9531
|
this.dom ? this.flags & 4 && (GO(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (Bu(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
|
|
9532
9532
|
let r = this.dom.lastChild;
|
|
9533
|
-
for (; r &&
|
|
9533
|
+
for (; r && Ie.get(r) instanceof Bi;)
|
|
9534
9534
|
r = r.lastChild;
|
|
9535
|
-
if (!r || !this.length || r.nodeName != "BR" && ((i =
|
|
9535
|
+
if (!r || !this.length || r.nodeName != "BR" && ((i = Ie.get(r)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!ne.ios || !this.children.some((s) => s instanceof bi))) {
|
|
9536
9536
|
let s = document.createElement("BR");
|
|
9537
9537
|
s.cmIgnore = !0, this.dom.appendChild(s);
|
|
9538
9538
|
}
|
|
@@ -9586,7 +9586,7 @@ class ot extends Ue {
|
|
|
9586
9586
|
return null;
|
|
9587
9587
|
}
|
|
9588
9588
|
}
|
|
9589
|
-
class qi extends
|
|
9589
|
+
class qi extends Ie {
|
|
9590
9590
|
constructor (e, t, i) {
|
|
9591
9591
|
super(), this.widget = e, this.length = t, this.deco = i, this.breakAfter = 0, this.prevWidget = null;
|
|
9592
9592
|
}
|
|
@@ -9665,7 +9665,7 @@ class Fu extends Ji {
|
|
|
9665
9665
|
return !1;
|
|
9666
9666
|
}
|
|
9667
9667
|
}
|
|
9668
|
-
class
|
|
9668
|
+
class Os {
|
|
9669
9669
|
constructor (e, t, i, r) {
|
|
9670
9670
|
this.doc = e, this.pos = t, this.end = i, this.disallowBlockEffectsFor = r, this.content = [], this.curLine = null, this.breakAtStart = 0, this.pendingBuffer = 0, this.bufferMarks = [], this.atCursorPos = !0, this.openStart = -1, this.openEnd = -1, this.text = "", this.textOff = 0, this.cursor = e.iter(), this.skip = t;
|
|
9671
9671
|
}
|
|
@@ -9679,7 +9679,7 @@ class ps {
|
|
|
9679
9679
|
return this.curLine || (this.content.push(this.curLine = new ot()), this.atCursorPos = !0), this.curLine;
|
|
9680
9680
|
}
|
|
9681
9681
|
flushBuffer (e = this.bufferMarks) {
|
|
9682
|
-
this.pendingBuffer && (this.curLine.append(ua(new
|
|
9682
|
+
this.pendingBuffer && (this.curLine.append(ua(new Or(-1), e), e.length), this.pendingBuffer = 0);
|
|
9683
9683
|
}
|
|
9684
9684
|
addBlockWidget (e) {
|
|
9685
9685
|
this.flushBuffer(), this.curLine = null, this.content.push(e);
|
|
@@ -9721,17 +9721,17 @@ class ps {
|
|
|
9721
9721
|
let o = t - e;
|
|
9722
9722
|
if (i instanceof bn)
|
|
9723
9723
|
if (i.block)
|
|
9724
|
-
i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new qi(i.widget ||
|
|
9724
|
+
i.startSide > 0 && !this.posCovered() && this.getLine(), this.addBlockWidget(new qi(i.widget || mr.block, o, i));
|
|
9725
9725
|
else {
|
|
9726
|
-
let l = fn.create(i.widget ||
|
|
9727
|
-
this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (c.append(ua(new
|
|
9726
|
+
let l = fn.create(i.widget || mr.inline, o, o ? 0 : i.startSide), u = this.atCursorPos && !l.isEditable && s <= r.length && (e < t || i.startSide > 0), h = !l.isEditable && (e < t || s > r.length || i.startSide <= 0), c = this.getLine();
|
|
9727
|
+
this.pendingBuffer == 2 && !u && !l.isEditable && (this.pendingBuffer = 0), this.flushBuffer(r), u && (c.append(ua(new Or(1), r), s), s = r.length + Math.max(0, s - r.length)), c.append(ua(l, r), s), this.atCursorPos = h, this.pendingBuffer = h ? e < t || s > r.length ? 1 : 2 : 0, this.pendingBuffer && (this.bufferMarks = r.slice());
|
|
9728
9728
|
}
|
|
9729
9729
|
else
|
|
9730
9730
|
this.doc.lineAt(this.pos).from == this.pos && this.getLine().addLineDeco(i);
|
|
9731
9731
|
o && (this.textOff + o <= this.text.length ? this.textOff += o : (this.skip += o - (this.text.length - this.textOff), this.text = "", this.textOff = 0), this.pos = t), this.openStart < 0 && (this.openStart = s);
|
|
9732
9732
|
}
|
|
9733
9733
|
static build (e, t, i, r, s) {
|
|
9734
|
-
let a = new
|
|
9734
|
+
let a = new Os(e, t, i, s);
|
|
9735
9735
|
return a.openEnd = Ae.spans(r, t, i, a), a.openStart < 0 && (a.openStart = a.openEnd), a.finish(a.openEnd), a;
|
|
9736
9736
|
}
|
|
9737
9737
|
}
|
|
@@ -9740,7 +9740,7 @@ function ua (n, e) {
|
|
|
9740
9740
|
n = new Bi(t, [n], n.length);
|
|
9741
9741
|
return n;
|
|
9742
9742
|
}
|
|
9743
|
-
class
|
|
9743
|
+
class mr extends Ji {
|
|
9744
9744
|
constructor (e) {
|
|
9745
9745
|
super(), this.tag = e;
|
|
9746
9746
|
}
|
|
@@ -9757,8 +9757,8 @@ class Or extends Ji {
|
|
|
9757
9757
|
return !0;
|
|
9758
9758
|
}
|
|
9759
9759
|
}
|
|
9760
|
-
|
|
9761
|
-
|
|
9760
|
+
mr.inline = /* @__PURE__ */ new mr("span");
|
|
9761
|
+
mr.block = /* @__PURE__ */ new mr("div");
|
|
9762
9762
|
var ze = /* @__PURE__ */ function (n) {
|
|
9763
9763
|
return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
|
|
9764
9764
|
}(ze || (ze = {}));
|
|
@@ -10069,7 +10069,7 @@ function Nt (n, e, t) {
|
|
|
10069
10069
|
}
|
|
10070
10070
|
const Wi = /* @__PURE__ */ re.define({ combine: (n) => n.length ? n[0] : !0 });
|
|
10071
10071
|
let Dy = 0;
|
|
10072
|
-
const
|
|
10072
|
+
const ts = /* @__PURE__ */ re.define();
|
|
10073
10073
|
class ut {
|
|
10074
10074
|
constructor (e, t, i, r, s) {
|
|
10075
10075
|
this.id = e, this.create = t, this.domEventHandlers = i, this.domEventObservers = r, this.extension = s(this);
|
|
@@ -10081,7 +10081,7 @@ class ut {
|
|
|
10081
10081
|
static define (e, t) {
|
|
10082
10082
|
const { eventHandlers: i, eventObservers: r, provide: s, decorations: a } = t || {};
|
|
10083
10083
|
return new ut(Dy++, e, i, r, (o) => {
|
|
10084
|
-
let l = [
|
|
10084
|
+
let l = [ts.of(o)];
|
|
10085
10085
|
return a && l.push(Qs.of((u) => {
|
|
10086
10086
|
let h = u.plugin(o);
|
|
10087
10087
|
return h ? a(h) : he.none;
|
|
@@ -10169,7 +10169,7 @@ function Bh (n) {
|
|
|
10169
10169
|
}
|
|
10170
10170
|
return { left: e, right: t, top: i, bottom: r };
|
|
10171
10171
|
}
|
|
10172
|
-
const
|
|
10172
|
+
const is = /* @__PURE__ */ re.define();
|
|
10173
10173
|
class oi {
|
|
10174
10174
|
constructor (e, t, i, r) {
|
|
10175
10175
|
this.fromA = e, this.toA = t, this.fromB = i, this.toB = r;
|
|
@@ -10277,7 +10277,7 @@ class Oo {
|
|
|
10277
10277
|
return this.flags == 0 && this.transactions.length == 0;
|
|
10278
10278
|
}
|
|
10279
10279
|
}
|
|
10280
|
-
class yf extends
|
|
10280
|
+
class yf extends Ie {
|
|
10281
10281
|
get length () {
|
|
10282
10282
|
return this.view.state.doc.length;
|
|
10283
10283
|
}
|
|
@@ -10328,12 +10328,12 @@ class yf extends Ue {
|
|
|
10328
10328
|
break;
|
|
10329
10329
|
let { fromA: l, toA: u, fromB: h, toB: c } = o, f, d, p, g;
|
|
10330
10330
|
if (i && i.range.fromB < c && i.range.toB > h) {
|
|
10331
|
-
let x =
|
|
10331
|
+
let x = Os.build(this.view.state.doc, h, i.range.fromB, this.decorations, this.dynamicDecorationMap), $ = Os.build(this.view.state.doc, i.range.toB, c, this.decorations, this.dynamicDecorationMap);
|
|
10332
10332
|
d = x.breakAtStart, p = x.openStart, g = $.openEnd;
|
|
10333
10333
|
let Q = this.compositionView(i);
|
|
10334
10334
|
$.breakAtStart ? Q.breakAfter = 1 : $.content.length && Q.merge(Q.length, Q.length, $.content[0], !1, $.openStart, 0) && (Q.breakAfter = $.content[0].breakAfter, $.content.shift()), x.content.length && Q.merge(0, 0, x.content[x.content.length - 1], !0, 0, x.openEnd) && x.content.pop(), f = x.content.concat(Q).concat($.content);
|
|
10335
10335
|
} else
|
|
10336
|
-
({ content: f, breakAtStart: d, openStart: p, openEnd: g } =
|
|
10336
|
+
({ content: f, breakAtStart: d, openStart: p, openEnd: g } = Os.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
|
|
10337
10337
|
let { i: m, off: O } = s.findPos(u, 1), { i: _, off: T } = s.findPos(l, -1);
|
|
10338
10338
|
JO(this, _, T, m, O, f, d, p, g);
|
|
10339
10339
|
}
|
|
@@ -10359,7 +10359,7 @@ class yf extends Ue {
|
|
|
10359
10359
|
(l) => l.flags & 7
|
|
10360
10360
|
/* ViewFlag.Dirty */
|
|
10361
10361
|
) ? 1 : 0), this.markedForComposition.add(a);
|
|
10362
|
-
let o =
|
|
10362
|
+
let o = Ie.get(s);
|
|
10363
10363
|
o && o != a && (o.dom = null), a.setDOM(s);
|
|
10364
10364
|
}, i = this.childPos(e.range.fromB, 1), r = this.children[i.i];
|
|
10365
10365
|
t(e.line, r);
|
|
@@ -10380,7 +10380,7 @@ class yf extends Ue {
|
|
|
10380
10380
|
this.view.observer.ignore(() => l.node.insertBefore(c, l.node.childNodes[l.offset] || null)), l = u = new Tt(c, 0), a = !0;
|
|
10381
10381
|
}
|
|
10382
10382
|
let h = this.view.observer.selectionRange;
|
|
10383
|
-
(a || !h.focusNode || (!
|
|
10383
|
+
(a || !h.focusNode || (!ps(l.node, l.offset, h.anchorNode, h.anchorOffset) || !ps(u.node, u.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, o)) && (this.view.observer.ignore(() => {
|
|
10384
10384
|
ne.android && ne.chrome && this.dom.contains(h.focusNode) && Wy(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
|
|
10385
10385
|
let c = _s(this.view.root);
|
|
10386
10386
|
if (c)
|
|
@@ -10410,7 +10410,7 @@ class yf extends Ue {
|
|
|
10410
10410
|
// composition, avoid moving it across it and disrupting the
|
|
10411
10411
|
// composition.
|
|
10412
10412
|
suppressWidgetCursorChange (e, t) {
|
|
10413
|
-
return this.hasComposition && t.empty &&
|
|
10413
|
+
return this.hasComposition && t.empty && ps(e.focusNode, e.focusOffset, e.anchorNode, e.anchorOffset) && this.posFromDOM(e.focusNode, e.focusOffset) == t.head;
|
|
10414
10414
|
}
|
|
10415
10415
|
enforceCursorAssoc () {
|
|
10416
10416
|
if (this.hasComposition)
|
|
@@ -10439,18 +10439,18 @@ class yf extends Ue {
|
|
|
10439
10439
|
if (e.node != t)
|
|
10440
10440
|
return e;
|
|
10441
10441
|
for (let r = e.offset; !i && r < t.childNodes.length; r++) {
|
|
10442
|
-
let s =
|
|
10442
|
+
let s = Ie.get(t.childNodes[r]);
|
|
10443
10443
|
s instanceof ot && (i = s.domAtPos(0));
|
|
10444
10444
|
}
|
|
10445
10445
|
for (let r = e.offset - 1; !i && r >= 0; r--) {
|
|
10446
|
-
let s =
|
|
10446
|
+
let s = Ie.get(t.childNodes[r]);
|
|
10447
10447
|
s instanceof ot && (i = s.domAtPos(s.length));
|
|
10448
10448
|
}
|
|
10449
10449
|
return i ? new Tt(i.node, i.offset, !0) : e;
|
|
10450
10450
|
}
|
|
10451
10451
|
nearest (e) {
|
|
10452
10452
|
for (let t = e; t;) {
|
|
10453
|
-
let i =
|
|
10453
|
+
let i = Ie.get(t);
|
|
10454
10454
|
if (i && i.rootView == this)
|
|
10455
10455
|
return i;
|
|
10456
10456
|
t = t.parentNode;
|
|
@@ -10632,11 +10632,11 @@ function Pm (n, e) {
|
|
|
10632
10632
|
return null;
|
|
10633
10633
|
let i = FO(t.focusNode, t.focusOffset), r = HO(t.focusNode, t.focusOffset), s = i || r;
|
|
10634
10634
|
if (r && i && r.node != i.node) {
|
|
10635
|
-
let o =
|
|
10635
|
+
let o = Ie.get(r.node);
|
|
10636
10636
|
if (!o || o instanceof bi && o.text != r.node.nodeValue)
|
|
10637
10637
|
s = r;
|
|
10638
10638
|
else if (n.docView.lastCompositionAfterCursor) {
|
|
10639
|
-
let l =
|
|
10639
|
+
let l = Ie.get(i.node);
|
|
10640
10640
|
!l || l instanceof bi && l.text != i.node.nodeValue || (s = r);
|
|
10641
10641
|
}
|
|
10642
10642
|
}
|
|
@@ -10654,7 +10654,7 @@ function Yy (n, e, t) {
|
|
|
10654
10654
|
return null;
|
|
10655
10655
|
let l = e.invertedDesc, u = new oi(l.mapPos(s), l.mapPos(a), s, a), h = [];
|
|
10656
10656
|
for (let c = r.parentNode; ; c = c.parentNode) {
|
|
10657
|
-
let f =
|
|
10657
|
+
let f = Ie.get(c);
|
|
10658
10658
|
if (f instanceof Bi)
|
|
10659
10659
|
h.push({ node: c, deco: f.mark });
|
|
10660
10660
|
else {
|
|
@@ -10957,7 +10957,7 @@ function $l (n, e, t) {
|
|
|
10957
10957
|
let i = Ga(n.state.facet(Gh).map((r) => r(n)), t.from, e.head > t.from ? -1 : 1);
|
|
10958
10958
|
return i == t.from ? t : z.cursor(i, i < t.from ? 1 : -1);
|
|
10959
10959
|
}
|
|
10960
|
-
const
|
|
10960
|
+
const ns = "";
|
|
10961
10961
|
class Jy {
|
|
10962
10962
|
constructor (e, t) {
|
|
10963
10963
|
this.points = e, this.text = "", this.lineSeparator = t.facet(Xe.lineSeparator);
|
|
@@ -10966,7 +10966,7 @@ class Jy {
|
|
|
10966
10966
|
this.text += e;
|
|
10967
10967
|
}
|
|
10968
10968
|
lineBreak () {
|
|
10969
|
-
this.text +=
|
|
10969
|
+
this.text += ns;
|
|
10970
10970
|
}
|
|
10971
10971
|
readRange (e, t) {
|
|
10972
10972
|
if (!e)
|
|
@@ -10979,7 +10979,7 @@ class Jy {
|
|
|
10979
10979
|
let a = r.nextSibling;
|
|
10980
10980
|
if (a == t)
|
|
10981
10981
|
break;
|
|
10982
|
-
let o =
|
|
10982
|
+
let o = Ie.get(r), l = Ie.get(a);
|
|
10983
10983
|
(o && l ? o.breakAfter : (o ? o.breakAfter : fo(r)) || fo(a) && (r.nodeName != "BR" || r.cmIgnore) && this.text.length > s) && this.lineBreak(), r = a;
|
|
10984
10984
|
}
|
|
10985
10985
|
return this.findPointBefore(i, t), this;
|
|
@@ -11001,7 +11001,7 @@ class Jy {
|
|
|
11001
11001
|
readNode (e) {
|
|
11002
11002
|
if (e.cmIgnore)
|
|
11003
11003
|
return;
|
|
11004
|
-
let t =
|
|
11004
|
+
let t = Ie.get(e), i = t && t.overrideDOMText;
|
|
11005
11005
|
if (i != null) {
|
|
11006
11006
|
this.findPointInside(e, i.length);
|
|
11007
11007
|
for (let r = i.iter(); !r.next().done;)
|
|
@@ -11056,11 +11056,11 @@ function km (n, e) {
|
|
|
11056
11056
|
if (e.bounds) {
|
|
11057
11057
|
let { from: a, to: o } = e.bounds, l = r.from, u = null;
|
|
11058
11058
|
(s === 8 || ne.android && e.text.length < o - a) && (l = r.to, u = "end");
|
|
11059
|
-
let h = n_(n.state.doc.sliceString(a, o,
|
|
11060
|
-
h && (ne.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) ==
|
|
11059
|
+
let h = n_(n.state.doc.sliceString(a, o, ns), e.text, l - a, u);
|
|
11060
|
+
h && (ne.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == ns + ns && h.toB--, t = {
|
|
11061
11061
|
from: a + h.from,
|
|
11062
11062
|
to: a + h.toA,
|
|
11063
|
-
insert: Ze.of(e.text.slice(h.from, h.toB).split(
|
|
11063
|
+
insert: Ze.of(e.text.slice(h.from, h.toB).split(ns))
|
|
11064
11064
|
});
|
|
11065
11065
|
} else
|
|
11066
11066
|
i && (!n.hasFocus && n.state.facet(Wi) || i.main.eq(r)) && (i = null);
|
|
@@ -11363,7 +11363,7 @@ function p_ (n, e) {
|
|
|
11363
11363
|
if (e.defaultPrevented)
|
|
11364
11364
|
return !1;
|
|
11365
11365
|
for (let t = e.target, i; t != n.contentDOM; t = t.parentNode)
|
|
11366
|
-
if (!t || t.nodeType == 11 || (i =
|
|
11366
|
+
if (!t || t.nodeType == 11 || (i = Ie.get(t)) && i.ignoreEvent(e))
|
|
11367
11367
|
return !1;
|
|
11368
11368
|
return !0;
|
|
11369
11369
|
}
|
|
@@ -11654,9 +11654,9 @@ function S_ (n) {
|
|
|
11654
11654
|
}));
|
|
11655
11655
|
}
|
|
11656
11656
|
const Vf = ["pre-wrap", "normal", "pre-line", "break-spaces"];
|
|
11657
|
-
let
|
|
11657
|
+
let gr = !1;
|
|
11658
11658
|
function Df () {
|
|
11659
|
-
|
|
11659
|
+
gr = !1;
|
|
11660
11660
|
}
|
|
11661
11661
|
class Q_ {
|
|
11662
11662
|
constructor (e) {
|
|
@@ -11751,9 +11751,9 @@ class Ci {
|
|
|
11751
11751
|
return new Ci(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
11752
11752
|
}
|
|
11753
11753
|
}
|
|
11754
|
-
var
|
|
11754
|
+
var qe = /* @__PURE__ */ function (n) {
|
|
11755
11755
|
return n[n.ByPos = 0] = "ByPos", n[n.ByHeight = 1] = "ByHeight", n[n.ByPosNoHeight = 2] = "ByPosNoHeight", n;
|
|
11756
|
-
}(
|
|
11756
|
+
}(qe || (qe = {}));
|
|
11757
11757
|
const Ba = 1e-3;
|
|
11758
11758
|
class At {
|
|
11759
11759
|
constructor (e, t, i = 2) {
|
|
@@ -11766,7 +11766,7 @@ class At {
|
|
|
11766
11766
|
this.flags = (e ? 2 : 0) | this.flags & -3;
|
|
11767
11767
|
}
|
|
11768
11768
|
setHeight (e) {
|
|
11769
|
-
this.height != e && (Math.abs(this.height - e) > Ba && (
|
|
11769
|
+
this.height != e && (Math.abs(this.height - e) > Ba && (gr = !0), this.height = e);
|
|
11770
11770
|
}
|
|
11771
11771
|
// Base case is to replace a leaf node, which simply builds a tree
|
|
11772
11772
|
// from the new nodes and returns that (HeightMapBranch and
|
|
@@ -11784,9 +11784,9 @@ class At {
|
|
|
11784
11784
|
applyChanges (e, t, i, r) {
|
|
11785
11785
|
let s = this, a = i.doc;
|
|
11786
11786
|
for (let o = r.length - 1; o >= 0; o--) {
|
|
11787
|
-
let { fromA: l, toA: u, fromB: h, toB: c } = r[o], f = s.lineAt(l,
|
|
11787
|
+
let { fromA: l, toA: u, fromB: h, toB: c } = r[o], f = s.lineAt(l, qe.ByPosNoHeight, i.setDoc(t), 0, 0), d = f.to >= u ? f : s.lineAt(u, qe.ByPosNoHeight, i, 0, 0);
|
|
11788
11788
|
for (c += d.to - u, u = d.to; o > 0 && f.from <= r[o - 1].toA;)
|
|
11789
|
-
l = r[o - 1].fromA, h = r[o - 1].fromB, o--, l < f.from && (f = s.lineAt(l,
|
|
11789
|
+
l = r[o - 1].fromA, h = r[o - 1].fromB, o--, l < f.from && (f = s.lineAt(l, qe.ByPosNoHeight, i, 0, 0));
|
|
11790
11790
|
h += f.from - l, l = f.from;
|
|
11791
11791
|
let p = Hh.build(i.setDoc(a), e, h, c);
|
|
11792
11792
|
s = mo(s, s.replace(l, u, p));
|
|
@@ -11826,7 +11826,7 @@ class At {
|
|
|
11826
11826
|
}
|
|
11827
11827
|
}
|
|
11828
11828
|
function mo (n, e) {
|
|
11829
|
-
return n == e ? n : (n.constructor != e.constructor && (
|
|
11829
|
+
return n == e ? n : (n.constructor != e.constructor && (gr = !0), e);
|
|
11830
11830
|
}
|
|
11831
11831
|
At.prototype.size = 1;
|
|
11832
11832
|
class Dm extends At {
|
|
@@ -11891,9 +11891,9 @@ class bt extends At {
|
|
|
11891
11891
|
}
|
|
11892
11892
|
}
|
|
11893
11893
|
lineAt (e, t, i, r, s) {
|
|
11894
|
-
if (t ==
|
|
11894
|
+
if (t == qe.ByHeight)
|
|
11895
11895
|
return this.blockAt(e, i, r, s);
|
|
11896
|
-
if (t ==
|
|
11896
|
+
if (t == qe.ByPosNoHeight) {
|
|
11897
11897
|
let { from: d, to: p } = i.doc.lineAt(e);
|
|
11898
11898
|
return new Ci(d, p - d, 0, 0, 0);
|
|
11899
11899
|
}
|
|
@@ -11945,7 +11945,7 @@ class bt extends At {
|
|
|
11945
11945
|
}
|
|
11946
11946
|
o <= s && a.push(null, new bt(s - o).updateHeight(e, o));
|
|
11947
11947
|
let u = At.of(a);
|
|
11948
|
-
return (l < 0 || Math.abs(u.height - this.height) >= Ba || Math.abs(l - this.heightMetrics(e, t).perLine) >= Ba) && (
|
|
11948
|
+
return (l < 0 || Math.abs(u.height - this.height) >= Ba || Math.abs(l - this.heightMetrics(e, t).perLine) >= Ba) && (gr = !0), mo(this, u);
|
|
11949
11949
|
} else
|
|
11950
11950
|
(i || this.outdated) && (this.setHeight(e.heightForGap(t, t + this.length)), this.outdated = !1);
|
|
11951
11951
|
return this;
|
|
@@ -11966,10 +11966,10 @@ class w_ extends At {
|
|
|
11966
11966
|
return e < s ? this.left.blockAt(e, t, i, r) : this.right.blockAt(e, t, s, r + this.left.length + this.break);
|
|
11967
11967
|
}
|
|
11968
11968
|
lineAt (e, t, i, r, s) {
|
|
11969
|
-
let a = r + this.left.height, o = s + this.left.length + this.break, l = t ==
|
|
11969
|
+
let a = r + this.left.height, o = s + this.left.length + this.break, l = t == qe.ByHeight ? e < a : e < o, u = l ? this.left.lineAt(e, t, i, r, s) : this.right.lineAt(e, t, i, a, o);
|
|
11970
11970
|
if (this.break || (l ? u.to < o : u.from > o))
|
|
11971
11971
|
return u;
|
|
11972
|
-
let h = t ==
|
|
11972
|
+
let h = t == qe.ByPosNoHeight ? qe.ByPosNoHeight : qe.ByPos;
|
|
11973
11973
|
return l ? u.join(this.right.lineAt(o, h, i, a, o)) : this.left.lineAt(o, h, i, r, s).join(u);
|
|
11974
11974
|
}
|
|
11975
11975
|
forEachLine (e, t, i, r, s, a) {
|
|
@@ -11977,7 +11977,7 @@ class w_ extends At {
|
|
|
11977
11977
|
if (this.break)
|
|
11978
11978
|
e < l && this.left.forEachLine(e, t, i, r, s, a), t >= l && this.right.forEachLine(e, t, i, o, l, a);
|
|
11979
11979
|
else {
|
|
11980
|
-
let u = this.lineAt(l,
|
|
11980
|
+
let u = this.lineAt(l, qe.ByPos, i, r, s);
|
|
11981
11981
|
e < u.from && this.left.forEachLine(e, u.from - 1, i, r, s, a), u.to >= e && u.from <= t && a(u), t > u.to && this.right.forEachLine(u.to + 1, t, i, o, l, a);
|
|
11982
11982
|
}
|
|
11983
11983
|
}
|
|
@@ -12204,7 +12204,7 @@ class Yf {
|
|
|
12204
12204
|
}
|
|
12205
12205
|
updateViewportLines () {
|
|
12206
12206
|
this.viewportLines = [], this.heightMap.forEachLine(this.viewport.from, this.viewport.to, this.heightOracle.setDoc(this.state.doc), 0, 0, (e) => {
|
|
12207
|
-
this.viewportLines.push(
|
|
12207
|
+
this.viewportLines.push(rs(e, this.scaler));
|
|
12208
12208
|
});
|
|
12209
12209
|
}
|
|
12210
12210
|
update (e, t = null) {
|
|
@@ -12212,7 +12212,7 @@ class Yf {
|
|
|
12212
12212
|
let i = this.stateDeco;
|
|
12213
12213
|
this.stateDeco = this.state.facet(Qs).filter((h) => typeof h != "function");
|
|
12214
12214
|
let r = e.changedRanges, s = oi.extendWithRanges(r, $_(i, this.stateDeco, e ? e.changes : ct.empty(this.state.doc.length))), a = this.heightMap.height, o = this.scrolledToBottom ? null : this.scrollAnchorAt(this.scrollTop);
|
|
12215
|
-
Df(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), (this.heightMap.height != a ||
|
|
12215
|
+
Df(), this.heightMap = this.heightMap.applyChanges(this.stateDeco, e.startState.doc, this.heightOracle.setDoc(this.state.doc), s), (this.heightMap.height != a || gr) && (e.flags |= 2), o ? (this.scrollAnchorPos = e.changes.mapPos(o.from, -1), this.scrollAnchorHeight = o.top) : (this.scrollAnchorPos = -1, this.scrollAnchorHeight = this.heightMap.height);
|
|
12216
12216
|
let l = s.length ? this.mapViewport(this.viewport, e.changes) : this.viewport;
|
|
12217
12217
|
(t && (t.range.head < l.from || t.range.head > l.to) || !this.viewportIsAppropriate(l)) && (l = this.getViewport(0, t));
|
|
12218
12218
|
let u = l.from != this.viewport.from || l.to != this.viewport.to;
|
|
@@ -12249,7 +12249,7 @@ class Yf {
|
|
|
12249
12249
|
let Q = $.from == this.viewport.from ? x : e.docView.measureVisibleLineHeights($);
|
|
12250
12250
|
this.heightMap = (a ? At.empty().applyChanges(this.stateDeco, Ze.empty, this.heightOracle, [new oi(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, a, new x_($.from, Q));
|
|
12251
12251
|
}
|
|
12252
|
-
|
|
12252
|
+
gr && (u |= 2);
|
|
12253
12253
|
}
|
|
12254
12254
|
let T = !this.viewportIsAppropriate(this.viewport, h) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
|
|
12255
12255
|
return T && (u & 2 && (u |= this.updateScaler()), this.viewport = this.getViewport(h, this.scrollTarget), u |= this.updateForViewport()), (u & 2 || T) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(a ? [] : this.lineGaps, e)), u |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), u;
|
|
@@ -12261,26 +12261,26 @@ class Yf {
|
|
|
12261
12261
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
12262
12262
|
}
|
|
12263
12263
|
getViewport (e, t) {
|
|
12264
|
-
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, s = this.heightOracle, { visibleTop: a, visibleBottom: o } = this, l = new da(r.lineAt(a - i * 1e3,
|
|
12264
|
+
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), r = this.heightMap, s = this.heightOracle, { visibleTop: a, visibleBottom: o } = this, l = new da(r.lineAt(a - i * 1e3, qe.ByHeight, s, 0, 0).from, r.lineAt(o + (1 - i) * 1e3, qe.ByHeight, s, 0, 0).to);
|
|
12265
12265
|
if (t) {
|
|
12266
12266
|
let { head: u } = t.range;
|
|
12267
12267
|
if (u < l.from || u > l.to) {
|
|
12268
|
-
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), c = r.lineAt(u,
|
|
12269
|
-
t.y == "center" ? f = (c.top + c.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && u < l.from ? f = c.top : f = c.bottom - h, l = new da(r.lineAt(f - 1e3 / 2,
|
|
12268
|
+
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), c = r.lineAt(u, qe.ByPos, s, 0, 0), f;
|
|
12269
|
+
t.y == "center" ? f = (c.top + c.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && u < l.from ? f = c.top : f = c.bottom - h, l = new da(r.lineAt(f - 1e3 / 2, qe.ByHeight, s, 0, 0).from, r.lineAt(f + h + 1e3 / 2, qe.ByHeight, s, 0, 0).to);
|
|
12270
12270
|
}
|
|
12271
12271
|
}
|
|
12272
12272
|
return l;
|
|
12273
12273
|
}
|
|
12274
12274
|
mapViewport (e, t) {
|
|
12275
12275
|
let i = t.mapPos(e.from, -1), r = t.mapPos(e.to, 1);
|
|
12276
|
-
return new da(this.heightMap.lineAt(i,
|
|
12276
|
+
return new da(this.heightMap.lineAt(i, qe.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(r, qe.ByPos, this.heightOracle, 0, 0).to);
|
|
12277
12277
|
}
|
|
12278
12278
|
// Checks if a given viewport covers the visible part of the
|
|
12279
12279
|
// document and not too much beyond that.
|
|
12280
12280
|
viewportIsAppropriate ({ from: e, to: t }, i = 0) {
|
|
12281
12281
|
if (!this.inView)
|
|
12282
12282
|
return !0;
|
|
12283
|
-
let { top: r } = this.heightMap.lineAt(e,
|
|
12283
|
+
let { top: r } = this.heightMap.lineAt(e, qe.ByPos, this.heightOracle, 0, 0), { bottom: s } = this.heightMap.lineAt(t, qe.ByPos, this.heightOracle, 0, 0), { visibleTop: a, visibleBottom: o } = this;
|
|
12284
12284
|
return (e == 0 || r <= a - Math.max(10, Math.min(
|
|
12285
12285
|
-i,
|
|
12286
12286
|
250
|
|
@@ -12393,17 +12393,17 @@ class Yf {
|
|
|
12393
12393
|
return this.visibleRanges = i, r;
|
|
12394
12394
|
}
|
|
12395
12395
|
lineBlockAt (e) {
|
|
12396
|
-
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) ||
|
|
12396
|
+
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || rs(this.heightMap.lineAt(e, qe.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
12397
12397
|
}
|
|
12398
12398
|
lineBlockAtHeight (e) {
|
|
12399
|
-
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) ||
|
|
12399
|
+
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || rs(this.heightMap.lineAt(this.scaler.fromDOM(e), qe.ByHeight, this.heightOracle, 0, 0), this.scaler);
|
|
12400
12400
|
}
|
|
12401
12401
|
scrollAnchorAt (e) {
|
|
12402
12402
|
let t = this.lineBlockAtHeight(e + 8);
|
|
12403
12403
|
return t.from >= this.viewport.from || this.viewportLines[0].top - e > 200 ? t : this.viewportLines[0];
|
|
12404
12404
|
}
|
|
12405
12405
|
elementAtHeight (e) {
|
|
12406
|
-
return
|
|
12406
|
+
return rs(this.heightMap.blockAt(this.scaler.fromDOM(e), this.heightOracle, 0, 0), this.scaler);
|
|
12407
12407
|
}
|
|
12408
12408
|
get docHeight () {
|
|
12409
12409
|
return this.scaler.toDOM(this.heightMap.height);
|
|
@@ -12472,7 +12472,7 @@ class Kh {
|
|
|
12472
12472
|
constructor (e, t, i) {
|
|
12473
12473
|
let r = 0, s = 0, a = 0;
|
|
12474
12474
|
this.viewports = i.map(({ from: o, to: l }) => {
|
|
12475
|
-
let u = t.lineAt(o,
|
|
12475
|
+
let u = t.lineAt(o, qe.ByPos, e, 0, 0).top, h = t.lineAt(l, qe.ByPos, e, 0, 0).bottom;
|
|
12476
12476
|
return r += h - u, { from: o, to: l, top: u, bottom: h, domTop: 0, domBottom: 0 };
|
|
12477
12477
|
}), this.scale = (7e6 - r) / (t.height - r);
|
|
12478
12478
|
for (let o of this.viewports)
|
|
@@ -12502,11 +12502,11 @@ class Kh {
|
|
|
12502
12502
|
return e instanceof Kh ? this.scale == e.scale && this.viewports.length == e.viewports.length && this.viewports.every((t, i) => t.from == e.viewports[i].from && t.to == e.viewports[i].to) : !1;
|
|
12503
12503
|
}
|
|
12504
12504
|
}
|
|
12505
|
-
function
|
|
12505
|
+
function rs (n, e) {
|
|
12506
12506
|
if (e.scale == 1)
|
|
12507
12507
|
return n;
|
|
12508
12508
|
let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
|
|
12509
|
-
return new Ci(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((r) =>
|
|
12509
|
+
return new Ci(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((r) => rs(r, e)) : n._content);
|
|
12510
12510
|
}
|
|
12511
12511
|
const ma = /* @__PURE__ */ re.define({ combine: (n) => n.join(" ") }), rh = /* @__PURE__ */ re.define({ combine: (n) => n.indexOf(!0) > -1 }), sh = /* @__PURE__ */ gn.newName(), Mm = /* @__PURE__ */ gn.newName(), Ym = /* @__PURE__ */ gn.newName(), Lm = { "&light": "." + Mm, "&dark": "." + Ym };
|
|
12512
12512
|
function ah (n, e, t) {
|
|
@@ -12837,7 +12837,7 @@ class D_ {
|
|
|
12837
12837
|
return;
|
|
12838
12838
|
}
|
|
12839
12839
|
(ne.ie && ne.ie_version <= 11 || ne.android && ne.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
|
|
12840
|
-
r.focusNode &&
|
|
12840
|
+
r.focusNode && ps(r.focusNode, r.focusOffset, r.anchorNode, r.anchorOffset) ? this.flushSoon() : this.flush(!1);
|
|
12841
12841
|
}
|
|
12842
12842
|
readSelectionRange () {
|
|
12843
12843
|
let { view: e } = this, t = _s(e.root);
|
|
@@ -12999,7 +12999,7 @@ class D_ {
|
|
|
12999
12999
|
}
|
|
13000
13000
|
function Uf (n, e, t) {
|
|
13001
13001
|
for (; e;) {
|
|
13002
|
-
let i =
|
|
13002
|
+
let i = Ie.get(e);
|
|
13003
13003
|
if (i && i.parent == n)
|
|
13004
13004
|
return i;
|
|
13005
13005
|
let r = e.parentNode;
|
|
@@ -13009,7 +13009,7 @@ function Uf (n, e, t) {
|
|
|
13009
13009
|
}
|
|
13010
13010
|
function If (n, e) {
|
|
13011
13011
|
let t = e.startContainer, i = e.startOffset, r = e.endContainer, s = e.endOffset, a = n.docView.domAtPos(n.state.selection.main.anchor);
|
|
13012
|
-
return
|
|
13012
|
+
return ps(a.node, a.offset, r, s) && ([t, i, r, s] = [r, s, t, i]), { anchorNode: t, anchorOffset: i, focusNode: r, focusOffset: s };
|
|
13013
13013
|
}
|
|
13014
13014
|
function M_ (n, e) {
|
|
13015
13015
|
if (e.getComposedRanges) {
|
|
@@ -13228,7 +13228,7 @@ class ie {
|
|
|
13228
13228
|
var t;
|
|
13229
13229
|
this.plugins = [], this.pluginMap = /* @__PURE__ */ new Map(), this.editorAttrs = {}, this.contentAttrs = {}, this.bidiCache = [], this.destroyed = !1, this.updateState = 2, this.measureScheduled = -1, this.measureRequests = [], this.contentDOM = document.createElement("div"), this.scrollDOM = document.createElement("div"), this.scrollDOM.tabIndex = -1, this.scrollDOM.className = "cm-scroller", this.scrollDOM.appendChild(this.contentDOM), this.announceDOM = document.createElement("div"), this.announceDOM.className = "cm-announced", this.announceDOM.setAttribute("aria-live", "polite"), this.dom = document.createElement("div"), this.dom.appendChild(this.announceDOM), this.dom.appendChild(this.scrollDOM), e.parent && e.parent.appendChild(this.dom);
|
|
13230
13230
|
let { dispatch: i } = e;
|
|
13231
|
-
this.dispatchTransactions = e.dispatchTransactions || i && ((r) => r.forEach((s) => i(s, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || _y(e.parent) || document, this.viewState = new Yf(e.state || Xe.create(e)), e.scrollTo && e.scrollTo.is(ha) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(
|
|
13231
|
+
this.dispatchTransactions = e.dispatchTransactions || i && ((r) => r.forEach((s) => i(s, this))) || ((r) => this.update(r)), this.dispatch = this.dispatch.bind(this), this._root = e.root || _y(e.parent) || document, this.viewState = new Yf(e.state || Xe.create(e)), e.scrollTo && e.scrollTo.is(ha) && (this.viewState.scrollTarget = e.scrollTo.value.clip(this.viewState.state)), this.plugins = this.state.facet(ts).map((r) => new wl(r));
|
|
13232
13232
|
for (let r of this.plugins)
|
|
13233
13233
|
r.update(this);
|
|
13234
13234
|
this.observer = new D_(this), this.inputState = new a_(this), this.inputState.ensureHandlers(this.plugins), this.docView = new yf(this), this.mountStyles(), this.updateAttrs(), this.updateState = 0, this.requestMeasure(), !((t = document.fonts) === null || t === void 0) && t.ready && document.fonts.ready.then(() => this.requestMeasure());
|
|
@@ -13275,7 +13275,7 @@ class ie {
|
|
|
13275
13275
|
for (let d of f.effects)
|
|
13276
13276
|
d.is(ha) && (c = d.value.clip(this.state));
|
|
13277
13277
|
}
|
|
13278
|
-
this.viewState.update(r, c), this.bidiCache = go.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(
|
|
13278
|
+
this.viewState.update(r, c), this.bidiCache = go.update(this.bidiCache, r.changes), r.empty || (this.updatePlugins(r), this.inputState.update(r)), t = this.docView.update(r), this.state.facet(is) != this.styleModules && this.mountStyles(), i = this.updateAttrs(), this.showAnnouncements(e), this.docView.updateSelection(t, e.some((f) => f.isUserEvent("select.pointer")));
|
|
13279
13279
|
} finally {
|
|
13280
13280
|
this.updateState = 0;
|
|
13281
13281
|
}
|
|
@@ -13309,7 +13309,7 @@ class ie {
|
|
|
13309
13309
|
try {
|
|
13310
13310
|
for (let i of this.plugins)
|
|
13311
13311
|
i.destroy(this);
|
|
13312
|
-
this.viewState = new Yf(e), this.plugins = e.facet(
|
|
13312
|
+
this.viewState = new Yf(e), this.plugins = e.facet(ts).map((i) => new wl(i)), this.pluginMap.clear();
|
|
13313
13313
|
for (let i of this.plugins)
|
|
13314
13314
|
i.update(this);
|
|
13315
13315
|
this.docView.destroy(), this.docView = new yf(this), this.inputState.ensureHandlers(this.plugins), this.mountStyles(), this.updateAttrs(), this.bidiCache = [];
|
|
@@ -13319,7 +13319,7 @@ class ie {
|
|
|
13319
13319
|
t && this.focus(), this.requestMeasure();
|
|
13320
13320
|
}
|
|
13321
13321
|
updatePlugins (e) {
|
|
13322
|
-
let t = e.startState.facet(
|
|
13322
|
+
let t = e.startState.facet(ts), i = e.state.facet(ts);
|
|
13323
13323
|
if (t != i) {
|
|
13324
13324
|
let r = [];
|
|
13325
13325
|
for (let s of i) {
|
|
@@ -13461,7 +13461,7 @@ class ie {
|
|
|
13461
13461
|
}
|
|
13462
13462
|
}
|
|
13463
13463
|
mountStyles () {
|
|
13464
|
-
this.styleModules = this.state.facet(
|
|
13464
|
+
this.styleModules = this.state.facet(is);
|
|
13465
13465
|
let e = this.state.facet(ie.cspNonce);
|
|
13466
13466
|
gn.mount(this.root, this.styleModules.concat(A_).reverse(), e ? { nonce: e } : void 0);
|
|
13467
13467
|
}
|
|
@@ -13865,7 +13865,7 @@ class ie {
|
|
|
13865
13865
|
`&light` when a light theme is active).
|
|
13866
13866
|
*/
|
|
13867
13867
|
static theme (e, t) {
|
|
13868
|
-
let i = gn.newName(), r = [ma.of(i),
|
|
13868
|
+
let i = gn.newName(), r = [ma.of(i), is.of(ah(`.${i}`, e))];
|
|
13869
13869
|
return t && t.dark && r.push(rh.of(!0)), r;
|
|
13870
13870
|
}
|
|
13871
13871
|
/**
|
|
@@ -13876,7 +13876,7 @@ class ie {
|
|
|
13876
13876
|
target editors with a dark or light theme.
|
|
13877
13877
|
*/
|
|
13878
13878
|
static baseTheme (e) {
|
|
13879
|
-
return xn.lowest(
|
|
13879
|
+
return xn.lowest(is.of(ah("." + sh, e, Lm)));
|
|
13880
13880
|
}
|
|
13881
13881
|
/**
|
|
13882
13882
|
Retrieve an editor view instance from the view's DOM
|
|
@@ -13884,11 +13884,11 @@ class ie {
|
|
|
13884
13884
|
*/
|
|
13885
13885
|
static findFromDOM (e) {
|
|
13886
13886
|
var t;
|
|
13887
|
-
let i = e.querySelector(".cm-content"), r = i &&
|
|
13887
|
+
let i = e.querySelector(".cm-content"), r = i && Ie.get(i) || Ie.get(e);
|
|
13888
13888
|
return ((t = r == null ? void 0 : r.rootView) === null || t === void 0 ? void 0 : t.view) || null;
|
|
13889
13889
|
}
|
|
13890
13890
|
}
|
|
13891
|
-
ie.styleModule =
|
|
13891
|
+
ie.styleModule = is;
|
|
13892
13892
|
ie.inputHandler = mm;
|
|
13893
13893
|
ie.clipboardInputFilter = Nh;
|
|
13894
13894
|
ie.clipboardOutputFilter = qh;
|
|
@@ -14263,7 +14263,7 @@ const J_ = /* @__PURE__ */ xn.highest(/* @__PURE__ */ ie.theme(lh)), zm = /* @__
|
|
|
14263
14263
|
map (n, e) {
|
|
14264
14264
|
return n == null ? null : e.mapPos(n);
|
|
14265
14265
|
}
|
|
14266
|
-
}),
|
|
14266
|
+
}), ss = /* @__PURE__ */ Ot.define({
|
|
14267
14267
|
create () {
|
|
14268
14268
|
return null;
|
|
14269
14269
|
},
|
|
@@ -14276,11 +14276,11 @@ const J_ = /* @__PURE__ */ xn.highest(/* @__PURE__ */ ie.theme(lh)), zm = /* @__
|
|
|
14276
14276
|
}
|
|
14277
14277
|
update (n) {
|
|
14278
14278
|
var e;
|
|
14279
|
-
let t = n.state.field(
|
|
14280
|
-
t == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (n.startState.field(
|
|
14279
|
+
let t = n.state.field(ss);
|
|
14280
|
+
t == null ? this.cursor != null && ((e = this.cursor) === null || e === void 0 || e.remove(), this.cursor = null) : (this.cursor || (this.cursor = this.view.scrollDOM.appendChild(document.createElement("div")), this.cursor.className = "cm-dropCursor"), (n.startState.field(ss) != t || n.docChanged || n.geometryChanged) && this.view.requestMeasure(this.measureReq));
|
|
14281
14281
|
}
|
|
14282
14282
|
readPos () {
|
|
14283
|
-
let { view: n } = this, e = n.state.field(
|
|
14283
|
+
let { view: n } = this, e = n.state.field(ss), t = e != null && n.coordsAtPos(e);
|
|
14284
14284
|
if (!t)
|
|
14285
14285
|
return null;
|
|
14286
14286
|
let i = n.scrollDOM.getBoundingClientRect();
|
|
@@ -14300,7 +14300,7 @@ const J_ = /* @__PURE__ */ xn.highest(/* @__PURE__ */ ie.theme(lh)), zm = /* @__
|
|
|
14300
14300
|
this.cursor && this.cursor.remove();
|
|
14301
14301
|
}
|
|
14302
14302
|
setDropPos (n) {
|
|
14303
|
-
this.view.state.field(
|
|
14303
|
+
this.view.state.field(ss) != n && this.view.dispatch({ effects: zm.of(n) });
|
|
14304
14304
|
}
|
|
14305
14305
|
}, {
|
|
14306
14306
|
eventObservers: {
|
|
@@ -14319,7 +14319,7 @@ const J_ = /* @__PURE__ */ xn.highest(/* @__PURE__ */ ie.theme(lh)), zm = /* @__
|
|
|
14319
14319
|
}
|
|
14320
14320
|
});
|
|
14321
14321
|
function tS () {
|
|
14322
|
-
return [
|
|
14322
|
+
return [ss, eS];
|
|
14323
14323
|
}
|
|
14324
14324
|
function Gf (n, e, t, i, r) {
|
|
14325
14325
|
e.lastIndex = 0;
|
|
@@ -14467,7 +14467,7 @@ function lS () {
|
|
|
14467
14467
|
decoration: (e, t, i) => {
|
|
14468
14468
|
let { doc: r } = t.state, s = It(e[0], 0);
|
|
14469
14469
|
if (s == 9) {
|
|
14470
|
-
let a = r.lineAt(i), o = t.state.tabSize, l =
|
|
14470
|
+
let a = r.lineAt(i), o = t.state.tabSize, l = xr(a.text, o, i - a.from);
|
|
14471
14471
|
return he.replace({
|
|
14472
14472
|
widget: new fS((o - l % o) * this.view.defaultCharacterWidth / this.view.scaleX)
|
|
14473
14473
|
});
|
|
@@ -14570,7 +14570,7 @@ function gS (n, e) {
|
|
|
14570
14570
|
return t ? Math.round(Math.abs((t.left - e) / n.defaultCharacterWidth)) : -1;
|
|
14571
14571
|
}
|
|
14572
14572
|
function Ff (n, e) {
|
|
14573
|
-
let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), r = t - i.from, s = r > hh ? -1 : r == i.length ? gS(n, e.clientX) :
|
|
14573
|
+
let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1), i = n.state.doc.lineAt(t), r = t - i.from, s = r > hh ? -1 : r == i.length ? gS(n, e.clientX) : xr(i.text, n.state.tabSize, t - i.from);
|
|
14574
14574
|
return { line: i.number, col: s, off: r };
|
|
14575
14575
|
}
|
|
14576
14576
|
function vS (n, e) {
|
|
@@ -14630,7 +14630,7 @@ function SS (n = {}) {
|
|
|
14630
14630
|
})
|
|
14631
14631
|
];
|
|
14632
14632
|
}
|
|
14633
|
-
const
|
|
14633
|
+
const Ir = "-10000px";
|
|
14634
14634
|
class Gm {
|
|
14635
14635
|
constructor (e, t, i, r) {
|
|
14636
14636
|
this.facet = t, this.createTooltipView = i, this.removeTooltipView = r, this.input = e.state.facet(t), this.tooltips = this.input.filter((a) => a);
|
|
@@ -14730,7 +14730,7 @@ const Rl = /* @__PURE__ */ re.define({
|
|
|
14730
14730
|
let r = document.createElement("div");
|
|
14731
14731
|
r.className = "cm-tooltip-arrow", t.dom.appendChild(r);
|
|
14732
14732
|
}
|
|
14733
|
-
return t.dom.style.position = this.position, t.dom.style.top =
|
|
14733
|
+
return t.dom.style.position = this.position, t.dom.style.top = Ir, t.dom.style.left = "0px", this.container.insertBefore(t.dom, i), t.mount && t.mount(this.view), this.resizeObserver && this.resizeObserver.observe(t.dom), t;
|
|
14734
14734
|
}
|
|
14735
14735
|
destroy () {
|
|
14736
14736
|
var n, e, t;
|
|
@@ -14745,7 +14745,7 @@ const Rl = /* @__PURE__ */ re.define({
|
|
|
14745
14745
|
let { dom: s } = this.manager.tooltipViews[0];
|
|
14746
14746
|
if (ne.gecko)
|
|
14747
14747
|
t = s.offsetParent != this.container.ownerDocument.body;
|
|
14748
|
-
else if (s.style.top ==
|
|
14748
|
+
else if (s.style.top == Ir && s.style.left == "0px") {
|
|
14749
14749
|
let a = s.getBoundingClientRect();
|
|
14750
14750
|
t = Math.abs(a.top + 1e4) > 1 || Math.abs(a.left) > 1;
|
|
14751
14751
|
}
|
|
@@ -14787,7 +14787,7 @@ const Rl = /* @__PURE__ */ re.define({
|
|
|
14787
14787
|
for (let o = 0; o < this.manager.tooltips.length; o++) {
|
|
14788
14788
|
let l = this.manager.tooltips[o], u = this.manager.tooltipViews[o], { dom: h } = u, c = n.pos[o], f = n.size[o];
|
|
14789
14789
|
if (!c || l.clip !== !1 && (c.bottom <= Math.max(t.top, i.top) || c.top >= Math.min(t.bottom, i.bottom) || c.right < Math.max(t.left, i.left) - 0.1 || c.left > Math.min(t.right, i.right) + 0.1)) {
|
|
14790
|
-
h.style.top =
|
|
14790
|
+
h.style.top = Ir;
|
|
14791
14791
|
continue;
|
|
14792
14792
|
}
|
|
14793
14793
|
let d = l.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, g = f.right - f.left, m = (e = Hf.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, O = u.offset || wS, _ = this.view.textDirection == ze.LTR, T = f.width > i.right - i.left ? _ ? i.left : i.right - f.width : _ ? Math.max(i.left, Math.min(c.left - (d ? 14 : 0) + O.x, i.right - g)) : Math.min(Math.max(i.left, c.left - g + (d ? 14 : 0) - O.x), i.right - g), x = this.above[o];
|
|
@@ -14795,7 +14795,7 @@ const Rl = /* @__PURE__ */ re.define({
|
|
|
14795
14795
|
let $ = (x ? c.top - i.top : i.bottom - c.bottom) - p;
|
|
14796
14796
|
if ($ < m && u.resize !== !1) {
|
|
14797
14797
|
if ($ < this.view.defaultLineHeight) {
|
|
14798
|
-
h.style.top =
|
|
14798
|
+
h.style.top = Ir;
|
|
14799
14799
|
continue;
|
|
14800
14800
|
}
|
|
14801
14801
|
Hf.set(u, m), h.style.height = (m = $) / s + "px";
|
|
@@ -14815,7 +14815,7 @@ const Rl = /* @__PURE__ */ re.define({
|
|
|
14815
14815
|
maybeMeasure () {
|
|
14816
14816
|
if (this.manager.tooltips.length && (this.view.inView && this.view.requestMeasure(this.measureReq), this.inView != this.view.inView && (this.inView = this.view.inView, !this.inView)))
|
|
14817
14817
|
for (let n of this.manager.tooltipViews)
|
|
14818
|
-
n.dom.style.top =
|
|
14818
|
+
n.dom.style.top = Ir;
|
|
14819
14819
|
}
|
|
14820
14820
|
}, {
|
|
14821
14821
|
eventObservers: {
|
|
@@ -15228,9 +15228,9 @@ const Ka = /* @__PURE__ */ re.define(), ZS = /* @__PURE__ */ re.define(), ES = {
|
|
|
15228
15228
|
initialSpacer: null,
|
|
15229
15229
|
updateSpacer: null,
|
|
15230
15230
|
domEventHandlers: {}
|
|
15231
|
-
},
|
|
15231
|
+
}, ms = /* @__PURE__ */ re.define();
|
|
15232
15232
|
function XS (n) {
|
|
15233
|
-
return [Hm(),
|
|
15233
|
+
return [Hm(), ms.of(Object.assign(Object.assign({}, ES), n))];
|
|
15234
15234
|
}
|
|
15235
15235
|
const ch = /* @__PURE__ */ re.define({
|
|
15236
15236
|
combine: (n) => n.some((e) => e)
|
|
@@ -15243,7 +15243,7 @@ function Hm (n) {
|
|
|
15243
15243
|
}
|
|
15244
15244
|
const AS = /* @__PURE__ */ ut.fromClass(class {
|
|
15245
15245
|
constructor (n) {
|
|
15246
|
-
this.view = n, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(
|
|
15246
|
+
this.view = n, this.prevViewport = n.viewport, this.dom = document.createElement("div"), this.dom.className = "cm-gutters", this.dom.setAttribute("aria-hidden", "true"), this.dom.style.minHeight = this.view.contentHeight / this.view.scaleY + "px", this.gutters = n.state.facet(ms).map((e) => new id(n, e));
|
|
15247
15247
|
for (let e of this.gutters)
|
|
15248
15248
|
this.dom.appendChild(e.dom);
|
|
15249
15249
|
this.fixed = !n.state.facet(ch), this.fixed && (this.dom.style.position = "sticky"), this.syncGutters(!1), n.scrollDOM.insertBefore(this.dom, n.contentDOM);
|
|
@@ -15283,7 +15283,7 @@ const AS = /* @__PURE__ */ ut.fromClass(class {
|
|
|
15283
15283
|
n && this.view.scrollDOM.insertBefore(this.dom, e);
|
|
15284
15284
|
}
|
|
15285
15285
|
updateGutters (n) {
|
|
15286
|
-
let e = n.startState.facet(
|
|
15286
|
+
let e = n.startState.facet(ms), t = n.state.facet(ms), i = n.docChanged || n.heightChanged || n.viewportChanged || !Ae.eq(n.startState.facet(Ka), n.state.facet(Ka), n.view.viewport.from, n.view.viewport.to);
|
|
15287
15287
|
if (e == t)
|
|
15288
15288
|
for (let r of this.gutters)
|
|
15289
15289
|
r.update(n) && (i = !0);
|
|
@@ -15464,7 +15464,7 @@ class Zl extends Fi {
|
|
|
15464
15464
|
function El (n, e) {
|
|
15465
15465
|
return n.state.facet(ir).formatNumber(e, n.state);
|
|
15466
15466
|
}
|
|
15467
|
-
const LS = /* @__PURE__ */
|
|
15467
|
+
const LS = /* @__PURE__ */ ms.compute([ir], (n) => ({
|
|
15468
15468
|
class: "cm-lineNumbers",
|
|
15469
15469
|
renderEmptyElements: !1,
|
|
15470
15470
|
markers (e) {
|
|
@@ -15704,10 +15704,10 @@ class tc {
|
|
|
15704
15704
|
}
|
|
15705
15705
|
}
|
|
15706
15706
|
const ya = /* @__PURE__ */ new WeakMap(), rd = /* @__PURE__ */ new WeakMap();
|
|
15707
|
-
var
|
|
15707
|
+
var Ne;
|
|
15708
15708
|
(function (n) {
|
|
15709
15709
|
n[n.ExcludeBuffers = 1] = "ExcludeBuffers", n[n.IncludeAnonymous = 2] = "IncludeAnonymous", n[n.IgnoreMounts = 4] = "IgnoreMounts", n[n.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
15710
|
-
})(
|
|
15710
|
+
})(Ne || (Ne = {}));
|
|
15711
15711
|
class et {
|
|
15712
15712
|
/**
|
|
15713
15713
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
@@ -15801,8 +15801,8 @@ class et {
|
|
|
15801
15801
|
not have its children iterated over (or `leave` called).
|
|
15802
15802
|
*/
|
|
15803
15803
|
iterate (e) {
|
|
15804
|
-
let { enter: t, leave: i, from: r = 0, to: s = this.length } = e, a = e.mode || 0, o = (a &
|
|
15805
|
-
for (let l = this.cursor(a |
|
|
15804
|
+
let { enter: t, leave: i, from: r = 0, to: s = this.length } = e, a = e.mode || 0, o = (a & Ne.IncludeAnonymous) > 0;
|
|
15805
|
+
for (let l = this.cursor(a | Ne.IncludeAnonymous); ;) {
|
|
15806
15806
|
let u = !1;
|
|
15807
15807
|
if (l.from <= s && l.to >= r && (!o && l.type.isAnonymous || t(l) !== !1)) {
|
|
15808
15808
|
if (l.firstChild())
|
|
@@ -15957,7 +15957,7 @@ function ks (n, e, t, i) {
|
|
|
15957
15957
|
return n;
|
|
15958
15958
|
n = a;
|
|
15959
15959
|
}
|
|
15960
|
-
let s = i ? 0 :
|
|
15960
|
+
let s = i ? 0 : Ne.IgnoreOverlays;
|
|
15961
15961
|
if (i)
|
|
15962
15962
|
for (let a = n, o = a.parent; o; a = o, o = a.parent)
|
|
15963
15963
|
a instanceof Ct && a.index < 0 && ((r = o.enter(e, t, s)) === null || r === void 0 ? void 0 : r.from) != a.from && (n = o);
|
|
@@ -16024,21 +16024,21 @@ class Ct extends tg {
|
|
|
16024
16024
|
let h = o[e], c = l[e] + a.from;
|
|
16025
16025
|
if (eg(r, i, c, c + h.length)) {
|
|
16026
16026
|
if (h instanceof yn) {
|
|
16027
|
-
if (s &
|
|
16027
|
+
if (s & Ne.ExcludeBuffers)
|
|
16028
16028
|
continue;
|
|
16029
16029
|
let f = h.findChild(0, h.buffer.length, t, i - c, r);
|
|
16030
16030
|
if (f > -1)
|
|
16031
16031
|
return new Ri(new zS(a, h, e, c), null, f);
|
|
16032
|
-
} else if (s &
|
|
16032
|
+
} else if (s & Ne.IncludeAnonymous || !h.type.isAnonymous || nc(h)) {
|
|
16033
16033
|
let f;
|
|
16034
|
-
if (!(s &
|
|
16034
|
+
if (!(s & Ne.IgnoreMounts) && (f = $s.get(h)) && !f.overlay)
|
|
16035
16035
|
return new Ct(f.tree, c, e, a);
|
|
16036
16036
|
let d = new Ct(h, c, e, a);
|
|
16037
|
-
return s &
|
|
16037
|
+
return s & Ne.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, r);
|
|
16038
16038
|
}
|
|
16039
16039
|
}
|
|
16040
16040
|
}
|
|
16041
|
-
if (s &
|
|
16041
|
+
if (s & Ne.IncludeAnonymous || !a.type.isAnonymous || (a.index >= 0 ? e = a.index + t : e = t < 0 ? -1 : a._parent._tree.children.length, a = a._parent, !a))
|
|
16042
16042
|
return null;
|
|
16043
16043
|
}
|
|
16044
16044
|
}
|
|
@@ -16080,7 +16080,7 @@ class Ct extends tg {
|
|
|
16080
16080
|
}
|
|
16081
16081
|
enter (e, t, i = 0) {
|
|
16082
16082
|
let r;
|
|
16083
|
-
if (!(i &
|
|
16083
|
+
if (!(i & Ne.IgnoreOverlays) && (r = $s.get(this._tree)) && r.overlay) {
|
|
16084
16084
|
let s = e - this.from;
|
|
16085
16085
|
for (let { from: a, to: o } of r.overlay)
|
|
16086
16086
|
if ((t > 0 ? a <= s : a < s) && (t < 0 ? o >= s : o > s))
|
|
@@ -16211,7 +16211,7 @@ class Ri extends tg {
|
|
|
16211
16211
|
);
|
|
16212
16212
|
}
|
|
16213
16213
|
enter (e, t, i = 0) {
|
|
16214
|
-
if (i &
|
|
16214
|
+
if (i & Ne.ExcludeBuffers)
|
|
16215
16215
|
return null;
|
|
16216
16216
|
let { buffer: r } = this.context, s = r.findChild(this.index + 4, r.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
16217
16217
|
return s < 0 ? null : new Ri(this.context, this, s);
|
|
@@ -16397,17 +16397,17 @@ class bo {
|
|
|
16397
16397
|
set to false.
|
|
16398
16398
|
*/
|
|
16399
16399
|
enter (e, t, i = this.mode) {
|
|
16400
|
-
return this.buffer ? i &
|
|
16400
|
+
return this.buffer ? i & Ne.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, i));
|
|
16401
16401
|
}
|
|
16402
16402
|
/**
|
|
16403
16403
|
Move to the node's parent node, if this isn't the top node.
|
|
16404
16404
|
*/
|
|
16405
16405
|
parent () {
|
|
16406
16406
|
if (!this.buffer)
|
|
16407
|
-
return this.yieldNode(this.mode &
|
|
16407
|
+
return this.yieldNode(this.mode & Ne.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
16408
16408
|
if (this.stack.length)
|
|
16409
16409
|
return this.yieldBuf(this.stack.pop());
|
|
16410
|
-
let e = this.mode &
|
|
16410
|
+
let e = this.mode & Ne.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
16411
16411
|
return this.buffer = null, this.yieldNode(e);
|
|
16412
16412
|
}
|
|
16413
16413
|
/**
|
|
@@ -16464,7 +16464,7 @@ class bo {
|
|
|
16464
16464
|
if (t > -1)
|
|
16465
16465
|
for (let s = t + e, a = e < 0 ? -1 : i._tree.children.length; s != a; s += e) {
|
|
16466
16466
|
let o = i._tree.children[s];
|
|
16467
|
-
if (this.mode &
|
|
16467
|
+
if (this.mode & Ne.IncludeAnonymous || o instanceof yn || !o.type.isAnonymous || nc(o))
|
|
16468
16468
|
return !1;
|
|
16469
16469
|
}
|
|
16470
16470
|
return !0;
|
|
@@ -16989,7 +16989,7 @@ class eQ {
|
|
|
16989
16989
|
this.inner[t].parse.stopAt(e);
|
|
16990
16990
|
}
|
|
16991
16991
|
startInner () {
|
|
16992
|
-
let e = new nQ(this.fragments), t = null, i = null, r = new bo(new Ct(this.baseTree, this.ranges[0].from, 0, null),
|
|
16992
|
+
let e = new nQ(this.fragments), t = null, i = null, r = new bo(new Ct(this.baseTree, this.ranges[0].from, 0, null), Ne.IncludeAnonymous | Ne.IgnoreMounts);
|
|
16993
16993
|
e:
|
|
16994
16994
|
for (let s, a; ;) {
|
|
16995
16995
|
let o = !0, l;
|
|
@@ -17072,13 +17072,13 @@ function iQ (n) {
|
|
|
17072
17072
|
}
|
|
17073
17073
|
class hd {
|
|
17074
17074
|
constructor (e, t) {
|
|
17075
|
-
this.offset = t, this.done = !1, this.cursor = e.cursor(
|
|
17075
|
+
this.offset = t, this.done = !1, this.cursor = e.cursor(Ne.IncludeAnonymous | Ne.IgnoreMounts);
|
|
17076
17076
|
}
|
|
17077
17077
|
// Move to the first node (in pre-order) that starts at or after `pos`.
|
|
17078
17078
|
moveTo (e) {
|
|
17079
17079
|
let { cursor: t } = this, i = e - this.offset;
|
|
17080
17080
|
for (; !this.done && t.from < i;)
|
|
17081
|
-
t.to >= e && t.enter(i, 1,
|
|
17081
|
+
t.to >= e && t.enter(i, 1, Ne.IgnoreOverlays | Ne.ExcludeBuffers) || t.next(!1) || (this.done = !0);
|
|
17082
17082
|
}
|
|
17083
17083
|
hasNode (e) {
|
|
17084
17084
|
if (this.moveTo(e.from), !this.done && this.cursor.from + this.offset == e.from && this.cursor.tree)
|
|
@@ -17256,7 +17256,7 @@ function lQ (n) {
|
|
|
17256
17256
|
e.push(e[i].concat(n[t]));
|
|
17257
17257
|
return e.sort((t, i) => i.length - t.length);
|
|
17258
17258
|
}
|
|
17259
|
-
function
|
|
17259
|
+
function wr (n) {
|
|
17260
17260
|
let e = /* @__PURE__ */ Object.create(null);
|
|
17261
17261
|
for (let t in n) {
|
|
17262
17262
|
let i = n[t];
|
|
@@ -17398,7 +17398,7 @@ function fQ (n) {
|
|
|
17398
17398
|
e = e.next;
|
|
17399
17399
|
return e || null;
|
|
17400
17400
|
}
|
|
17401
|
-
const H = ni.define, _a = H(), rn = H(), dd = H(rn), pd = H(rn), sn = H(), Sa = H(sn), Xl = H(sn), $i = H(), Tn = H($i), wi = H(), Pi = H(), Oh = H(),
|
|
17401
|
+
const H = ni.define, _a = H(), rn = H(), dd = H(rn), pd = H(rn), sn = H(), Sa = H(sn), Xl = H(sn), $i = H(), Tn = H($i), wi = H(), Pi = H(), Oh = H(), Wr = H(Oh), Qa = H(), P = {
|
|
17402
17402
|
/**
|
|
17403
17403
|
A comment.
|
|
17404
17404
|
*/
|
|
@@ -17602,27 +17602,27 @@ const H = ni.define, _a = H(), rn = H(), dd = H(rn), pd = H(rn), sn = H(), Sa =
|
|
|
17602
17602
|
/**
|
|
17603
17603
|
Bracket-style [punctuation](#highlight.tags.punctuation).
|
|
17604
17604
|
*/
|
|
17605
|
-
bracket:
|
|
17605
|
+
bracket: Wr,
|
|
17606
17606
|
/**
|
|
17607
17607
|
Angle [brackets](#highlight.tags.bracket) (usually `<` and `>`
|
|
17608
17608
|
tokens).
|
|
17609
17609
|
*/
|
|
17610
|
-
angleBracket: H(
|
|
17610
|
+
angleBracket: H(Wr),
|
|
17611
17611
|
/**
|
|
17612
17612
|
Square [brackets](#highlight.tags.bracket) (usually `[` and `]`
|
|
17613
17613
|
tokens).
|
|
17614
17614
|
*/
|
|
17615
|
-
squareBracket: H(
|
|
17615
|
+
squareBracket: H(Wr),
|
|
17616
17616
|
/**
|
|
17617
17617
|
Parentheses (usually `(` and `)` tokens). Subtag of
|
|
17618
17618
|
[bracket](#highlight.tags.bracket).
|
|
17619
17619
|
*/
|
|
17620
|
-
paren: H(
|
|
17620
|
+
paren: H(Wr),
|
|
17621
17621
|
/**
|
|
17622
17622
|
Braces (usually `{` and `}` tokens). Subtag of
|
|
17623
17623
|
[bracket](#highlight.tags.bracket).
|
|
17624
17624
|
*/
|
|
17625
|
-
brace: H(
|
|
17625
|
+
brace: H(Wr),
|
|
17626
17626
|
/**
|
|
17627
17627
|
Content, for example plain text in XML or markup documents.
|
|
17628
17628
|
*/
|
|
@@ -17896,7 +17896,7 @@ vi.setState = /* @__PURE__ */ xe.define();
|
|
|
17896
17896
|
function Od (n, e, t) {
|
|
17897
17897
|
let i = n.facet(Sn), r = He(n).topNode;
|
|
17898
17898
|
if (!i || i.allowsNesting)
|
|
17899
|
-
for (let s = r; s; s = s.enter(e, t,
|
|
17899
|
+
for (let s = r; s; s = s.enter(e, t, Ne.ExcludeBuffers))
|
|
17900
17900
|
s.type.isTop && (r = s);
|
|
17901
17901
|
return r;
|
|
17902
17902
|
}
|
|
@@ -17952,7 +17952,7 @@ class dQ {
|
|
|
17952
17952
|
return e < i || t >= this.cursorPos ? this.doc.sliceString(e, t) : this.string.slice(e - i, t - i);
|
|
17953
17953
|
}
|
|
17954
17954
|
}
|
|
17955
|
-
let
|
|
17955
|
+
let jr = null;
|
|
17956
17956
|
class So {
|
|
17957
17957
|
constructor (e, t, i = [], r, s, a, o, l) {
|
|
17958
17958
|
this.parser = e, this.state = t, this.fragments = i, this.tree = r, this.treeLen = s, this.viewport = a, this.skipped = o, this.scheduleOn = l, this.parse = null, this.tempSkipped = [];
|
|
@@ -17999,12 +17999,12 @@ class So {
|
|
|
17999
17999
|
}), this.treeLen = e, this.tree = t, this.fragments = this.withoutTempSkipped(zi.addTree(this.tree, this.fragments, !0)), this.parse = null);
|
|
18000
18000
|
}
|
|
18001
18001
|
withContext (e) {
|
|
18002
|
-
let t =
|
|
18003
|
-
|
|
18002
|
+
let t = jr;
|
|
18003
|
+
jr = this;
|
|
18004
18004
|
try {
|
|
18005
18005
|
return e();
|
|
18006
18006
|
} finally {
|
|
18007
|
-
|
|
18007
|
+
jr = t;
|
|
18008
18008
|
}
|
|
18009
18009
|
}
|
|
18010
18010
|
withoutTempSkipped (e) {
|
|
@@ -18073,7 +18073,7 @@ class So {
|
|
|
18073
18073
|
return {
|
|
18074
18074
|
parsedPos: s,
|
|
18075
18075
|
advance () {
|
|
18076
|
-
let l =
|
|
18076
|
+
let l = jr;
|
|
18077
18077
|
if (l) {
|
|
18078
18078
|
for (let u of r)
|
|
18079
18079
|
l.tempSkipped.push(u);
|
|
@@ -18101,13 +18101,13 @@ class So {
|
|
|
18101
18101
|
parse is in progress.
|
|
18102
18102
|
*/
|
|
18103
18103
|
static get () {
|
|
18104
|
-
return
|
|
18104
|
+
return jr;
|
|
18105
18105
|
}
|
|
18106
18106
|
}
|
|
18107
18107
|
function md (n, e, t) {
|
|
18108
18108
|
return zi.applyChanges(n, [{ fromA: e, toA: t, fromB: e, toB: t }]);
|
|
18109
18109
|
}
|
|
18110
|
-
class
|
|
18110
|
+
class vr {
|
|
18111
18111
|
constructor (e) {
|
|
18112
18112
|
this.context = e, this.tree = e.tree;
|
|
18113
18113
|
}
|
|
@@ -18115,20 +18115,20 @@ class gr {
|
|
|
18115
18115
|
if (!e.docChanged && this.tree == this.context.tree)
|
|
18116
18116
|
return this;
|
|
18117
18117
|
let t = this.context.changes(e.changes, e.state), i = this.context.treeLen == e.startState.doc.length ? void 0 : Math.max(e.changes.mapPos(this.context.treeLen), t.viewport.to);
|
|
18118
|
-
return t.work(20, i) || t.takeTree(), new
|
|
18118
|
+
return t.work(20, i) || t.takeTree(), new vr(t);
|
|
18119
18119
|
}
|
|
18120
18120
|
static init (e) {
|
|
18121
18121
|
let t = Math.min(3e3, e.doc.length), i = So.create(e.facet(Sn).parser, e, { from: 0, to: t });
|
|
18122
|
-
return i.work(20, t) || i.takeTree(), new
|
|
18122
|
+
return i.work(20, t) || i.takeTree(), new vr(i);
|
|
18123
18123
|
}
|
|
18124
18124
|
}
|
|
18125
18125
|
vi.state = /* @__PURE__ */ Ot.define({
|
|
18126
|
-
create:
|
|
18126
|
+
create: vr.init,
|
|
18127
18127
|
update (n, e) {
|
|
18128
18128
|
for (let t of e.effects)
|
|
18129
18129
|
if (t.is(vi.setState))
|
|
18130
18130
|
return t.value;
|
|
18131
|
-
return e.startState.facet(Sn) != e.state.facet(Sn) ?
|
|
18131
|
+
return e.startState.facet(Sn) != e.state.facet(Sn) ? vr.init(e.state) : n.apply(e);
|
|
18132
18132
|
}
|
|
18133
18133
|
});
|
|
18134
18134
|
let lg = (n) => {
|
|
@@ -18178,7 +18178,7 @@ const Vl = typeof navigator < "u" && (!((Al = navigator.scheduling) === null ||
|
|
|
18178
18178
|
))
|
|
18179
18179
|
return;
|
|
18180
18180
|
let a = Date.now() + Math.min(this.chunkBudget, 100, e && !Vl ? Math.max(25, e.timeRemaining() - 5) : 1e9), o = s.context.treeLen < r && i.doc.length > r + 1e3, l = s.context.work(() => Vl && Vl() || Date.now() > a, r + (o ? 0 : 1e5));
|
|
18181
|
-
this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: vi.setState.of(new
|
|
18181
|
+
this.chunkBudget -= Date.now() - t, (l || this.chunkBudget <= 0) && (s.context.takeTree(), this.view.dispatch({ effects: vi.setState.of(new vr(s.context)) })), this.chunkBudget > 0 && !(l && !o) && this.scheduleWork(), this.checkAsyncSchedule(s.context);
|
|
18182
18182
|
}
|
|
18183
18183
|
checkAsyncSchedule (e) {
|
|
18184
18184
|
e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => Nt(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
|
|
@@ -18292,7 +18292,7 @@ class el {
|
|
|
18292
18292
|
position in the given string.
|
|
18293
18293
|
*/
|
|
18294
18294
|
countColumn (e, t = e.length) {
|
|
18295
|
-
return
|
|
18295
|
+
return xr(e, this.state.tabSize, t);
|
|
18296
18296
|
}
|
|
18297
18297
|
/**
|
|
18298
18298
|
Find the indentation column of the line at the given point.
|
|
@@ -18315,7 +18315,7 @@ class el {
|
|
|
18315
18315
|
return this.options.simulateBreak || null;
|
|
18316
18316
|
}
|
|
18317
18317
|
}
|
|
18318
|
-
const
|
|
18318
|
+
const Pr = /* @__PURE__ */ new $e();
|
|
18319
18319
|
function mQ (n, e, t) {
|
|
18320
18320
|
let i = e.resolveStack(t), r = e.resolveInner(t, -1).resolve(t, 0).enterUnfinishedNodesBefore(t);
|
|
18321
18321
|
if (r != i.node) {
|
|
@@ -18339,7 +18339,7 @@ function gQ (n) {
|
|
|
18339
18339
|
return n.pos == n.options.simulateBreak && n.options.simulateDoubleBreak;
|
|
18340
18340
|
}
|
|
18341
18341
|
function vQ (n) {
|
|
18342
|
-
let e = n.type.prop(
|
|
18342
|
+
let e = n.type.prop(Pr);
|
|
18343
18343
|
if (e)
|
|
18344
18344
|
return e;
|
|
18345
18345
|
let t = n.firstChild, i;
|
|
@@ -18477,7 +18477,7 @@ function QQ () {
|
|
|
18477
18477
|
return l.length ? [n, { changes: l, sequential: !0 }] : n;
|
|
18478
18478
|
});
|
|
18479
18479
|
}
|
|
18480
|
-
const xQ = /* @__PURE__ */ re.define(),
|
|
18480
|
+
const xQ = /* @__PURE__ */ re.define(), $r = /* @__PURE__ */ new $e();
|
|
18481
18481
|
function lc (n) {
|
|
18482
18482
|
let e = n.firstChild, t = n.lastChild;
|
|
18483
18483
|
return e && e.to < t.from ? { from: e.to, to: t.type.isError ? n.to : t.from } : null;
|
|
@@ -18493,7 +18493,7 @@ function wQ (n, e, t) {
|
|
|
18493
18493
|
continue;
|
|
18494
18494
|
if (s && o.from < e)
|
|
18495
18495
|
break;
|
|
18496
|
-
let l = o.type.prop(
|
|
18496
|
+
let l = o.type.prop($r);
|
|
18497
18497
|
if (l && (o.to < i.length - 50 || i.length == n.doc.length || !PQ(o))) {
|
|
18498
18498
|
let u = l(o, n);
|
|
18499
18499
|
u && u.from <= t && u.from >= e && u.to > t && (s = u);
|
|
@@ -19052,7 +19052,7 @@ function KQ (n, e) {
|
|
|
19052
19052
|
let a = yd[r] = Vt.define({
|
|
19053
19053
|
id: vd.length,
|
|
19054
19054
|
name: i,
|
|
19055
|
-
props: [
|
|
19055
|
+
props: [wr({ [i]: t })]
|
|
19056
19056
|
});
|
|
19057
19057
|
return vd.push(a), a.id;
|
|
19058
19058
|
}
|
|
@@ -19086,16 +19086,16 @@ function cc (n, e) {
|
|
|
19086
19086
|
let t = n.languageDataAt("commentTokens", e);
|
|
19087
19087
|
return t.length ? t[0] : {};
|
|
19088
19088
|
}
|
|
19089
|
-
const
|
|
19089
|
+
const Nr = 50;
|
|
19090
19090
|
function nx (n, { open: e, close: t }, i, r) {
|
|
19091
|
-
let s = n.sliceDoc(i -
|
|
19091
|
+
let s = n.sliceDoc(i - Nr, i), a = n.sliceDoc(r, r + Nr), o = /\s*$/.exec(s)[0].length, l = /^\s*/.exec(a)[0].length, u = s.length - o;
|
|
19092
19092
|
if (s.slice(u - e.length, u) == e && a.slice(l, l + t.length) == t)
|
|
19093
19093
|
return {
|
|
19094
19094
|
open: { pos: i - o, margin: o && 1 },
|
|
19095
19095
|
close: { pos: r + l, margin: l && 1 }
|
|
19096
19096
|
};
|
|
19097
19097
|
let h, c;
|
|
19098
|
-
r - i <= 2 *
|
|
19098
|
+
r - i <= 2 * Nr ? h = c = n.sliceDoc(i, r) : (h = n.sliceDoc(i, i + Nr), c = n.sliceDoc(r - Nr, r));
|
|
19099
19099
|
let f = /^\s*/.exec(h)[0].length, d = /\s*$/.exec(c)[0].length, p = c.length - d - t.length;
|
|
19100
19100
|
return h.slice(f, f + e.length) == e && c.slice(p, p + t.length) == t ? {
|
|
19101
19101
|
open: {
|
|
@@ -19373,14 +19373,14 @@ const gx = [
|
|
|
19373
19373
|
{ key: "Mod-u", run: ux, preventDefault: !0 },
|
|
19374
19374
|
{ key: "Alt-u", mac: "Mod-Shift-u", run: hx, preventDefault: !0 }
|
|
19375
19375
|
];
|
|
19376
|
-
function
|
|
19376
|
+
function kr (n, e) {
|
|
19377
19377
|
return z.create(n.ranges.map(e), n.mainIndex);
|
|
19378
19378
|
}
|
|
19379
19379
|
function Yi (n, e) {
|
|
19380
19380
|
return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
|
|
19381
19381
|
}
|
|
19382
19382
|
function _i ({ state: n, dispatch: e }, t) {
|
|
19383
|
-
let i =
|
|
19383
|
+
let i = kr(n.selection, t);
|
|
19384
19384
|
return i.eq(n.selection, !0) ? !1 : (e(Yi(n, i)), !0);
|
|
19385
19385
|
}
|
|
19386
19386
|
function nl (n, e) {
|
|
@@ -19442,7 +19442,7 @@ function Mg (n) {
|
|
|
19442
19442
|
};
|
|
19443
19443
|
}
|
|
19444
19444
|
function Yg (n, e) {
|
|
19445
|
-
let t = Mg(n), { state: i } = n, r =
|
|
19445
|
+
let t = Mg(n), { state: i } = n, r = kr(i.selection, (a) => a.empty ? n.moveVertically(a, e, t.height) : nl(a, e));
|
|
19446
19446
|
if (r.eq(i.selection))
|
|
19447
19447
|
return !1;
|
|
19448
19448
|
let s;
|
|
@@ -19463,7 +19463,7 @@ function wn (n, e, t) {
|
|
|
19463
19463
|
}
|
|
19464
19464
|
const Qx = (n) => _i(n, (e) => wn(n, e, !0)), xx = (n) => _i(n, (e) => wn(n, e, !1)), wx = (n) => _i(n, (e) => wn(n, e, !Rt(n))), Px = (n) => _i(n, (e) => wn(n, e, Rt(n))), $x = (n) => _i(n, (e) => z.cursor(n.lineBlockAt(e.head).from, 1)), kx = (n) => _i(n, (e) => z.cursor(n.lineBlockAt(e.head).to, -1));
|
|
19465
19465
|
function Tx (n, e, t) {
|
|
19466
|
-
let i = !1, r =
|
|
19466
|
+
let i = !1, r = kr(n.selection, (s) => {
|
|
19467
19467
|
let a = Zi(n, s.head, -1) || Zi(n, s.head, 1) || s.head > 0 && Zi(n, s.head - 1, 1) || s.head < n.doc.length && Zi(n, s.head + 1, -1);
|
|
19468
19468
|
if (!a || !a.end)
|
|
19469
19469
|
return s;
|
|
@@ -19475,7 +19475,7 @@ function Tx (n, e, t) {
|
|
|
19475
19475
|
}
|
|
19476
19476
|
const Cx = ({ state: n, dispatch: e }) => Tx(n, e, !1);
|
|
19477
19477
|
function ci (n, e) {
|
|
19478
|
-
let t =
|
|
19478
|
+
let t = kr(n.state.selection, (i) => {
|
|
19479
19479
|
let r = e(i);
|
|
19480
19480
|
return z.range(i.anchor, r.head, r.goalColumn, r.bidiLevel || void 0);
|
|
19481
19481
|
});
|
|
@@ -19500,7 +19500,7 @@ const Sd = (n) => zg(n, !1), Qd = (n) => zg(n, !0), Ax = (n) => ci(n, (e) => wn(
|
|
|
19500
19500
|
let t = sl(n).map(({ from: i, to: r }) => z.range(i, Math.min(r + 1, n.doc.length)));
|
|
19501
19501
|
return e(n.update({ selection: z.create(t), userEvent: "select" })), !0;
|
|
19502
19502
|
}, Wx = ({ state: n, dispatch: e }) => {
|
|
19503
|
-
let t =
|
|
19503
|
+
let t = kr(n.selection, (i) => {
|
|
19504
19504
|
let r = He(n), s = r.resolveStack(i.from, 1);
|
|
19505
19505
|
if (i.empty) {
|
|
19506
19506
|
let a = r.resolveStack(i.from, -1);
|
|
@@ -19549,7 +19549,7 @@ const Gg = (n, e, t) => qs(n, (i) => {
|
|
|
19549
19549
|
if (t && !e && r > a.from && r < a.from + 200 && !/[^ \t]/.test(o = a.text.slice(0, r - a.from))) {
|
|
19550
19550
|
if (o[o.length - 1] == " ")
|
|
19551
19551
|
return r - 1;
|
|
19552
|
-
let u =
|
|
19552
|
+
let u = xr(o, s.tabSize), h = u % Qo(s) || Qo(s);
|
|
19553
19553
|
for (let c = 0; c < h && o[o.length - 1 - c] == " "; c++)
|
|
19554
19554
|
r--;
|
|
19555
19555
|
l = r;
|
|
@@ -19650,7 +19650,7 @@ function Jg (n, e, t) {
|
|
|
19650
19650
|
const Jx = ({ state: n, dispatch: e }) => Jg(n, e, !1), ew = ({ state: n, dispatch: e }) => Jg(n, e, !0), tw = (n) => {
|
|
19651
19651
|
if (n.state.readOnly)
|
|
19652
19652
|
return !1;
|
|
19653
|
-
let { state: e } = n, t = e.changes(sl(e).map(({ from: r, to: s }) => (r > 0 ? r-- : s < e.doc.length && s++, { from: r, to: s }))), i =
|
|
19653
|
+
let { state: e } = n, t = e.changes(sl(e).map(({ from: r, to: s }) => (r > 0 ? r-- : s < e.doc.length && s++, { from: r, to: s }))), i = kr(e.selection, (r) => {
|
|
19654
19654
|
let s;
|
|
19655
19655
|
if (n.lineWrapping) {
|
|
19656
19656
|
let a = n.lineBlockAt(r.head), o = n.coordsAtPos(r.head, r.assoc || 1);
|
|
@@ -19675,7 +19675,7 @@ function e0 (n) {
|
|
|
19675
19675
|
let { from: s, to: a } = r, o = e.doc.lineAt(s), l = !n && s == a && iw(e, s);
|
|
19676
19676
|
n && (s = a = (a <= o.to ? o : e.doc.lineAt(a)).to);
|
|
19677
19677
|
let u = new el(e, { simulateBreak: s, simulateDoubleBreak: !!l }), h = ac(u, s);
|
|
19678
|
-
for (h == null && (h =
|
|
19678
|
+
for (h == null && (h = xr(/^\s*/.exec(e.doc.lineAt(s).text)[0], e.tabSize)); a < o.to && /\s/.test(o.text[a - o.from]);)
|
|
19679
19679
|
a++;
|
|
19680
19680
|
l ? { from: s, to: a } = l : s > o.from && s < o.from + 100 && !/\S/.test(o.text.slice(0, s)) && (s = o.from);
|
|
19681
19681
|
let c = ["", Ts(e, h)];
|
|
@@ -19725,7 +19725,7 @@ const rw = ({ state: n, dispatch: e }) => {
|
|
|
19725
19725
|
let r = /^\s*/.exec(t.text)[0];
|
|
19726
19726
|
if (!r)
|
|
19727
19727
|
return;
|
|
19728
|
-
let s =
|
|
19728
|
+
let s = xr(r, n.tabSize), a = 0, o = Ts(n, Math.max(0, s - Qo(n)));
|
|
19729
19729
|
for (; a < r.length && a < o.length && r.charCodeAt(a) == o.charCodeAt(a);)
|
|
19730
19730
|
a++;
|
|
19731
19731
|
i.push({ from: t.from + a, to: t.from + r.length, insert: o.slice(a) });
|
|
@@ -19819,7 +19819,7 @@ function t0 (n, e) {
|
|
|
19819
19819
|
throw new RangeError("Unsupported child node: " + e);
|
|
19820
19820
|
}
|
|
19821
19821
|
const Td = typeof String.prototype.normalize == "function" ? (n) => n.normalize("NFKD") : (n) => n;
|
|
19822
|
-
class
|
|
19822
|
+
class br {
|
|
19823
19823
|
/**
|
|
19824
19824
|
Create a text cursor. The query is the search string, `from` to
|
|
19825
19825
|
`to` provides the region to search.
|
|
@@ -19889,7 +19889,7 @@ class vr {
|
|
|
19889
19889
|
return this.query.charCodeAt(0) == e && (this.query.length == 1 ? r = { from: t, to: i } : this.matches.push(1, t)), r && this.test && !this.test(r.from, r.to, this.buffer, this.bufferStart) && (r = null), r;
|
|
19890
19890
|
}
|
|
19891
19891
|
}
|
|
19892
|
-
typeof Symbol < "u" && (
|
|
19892
|
+
typeof Symbol < "u" && (br.prototype[Symbol.iterator] = function () {
|
|
19893
19893
|
return this;
|
|
19894
19894
|
});
|
|
19895
19895
|
const i0 = { from: -1, to: -1, match: /* @__PURE__ */ /.*/.exec("") }, dc = "gm" + (/x/.unicode == null ? "" : "u");
|
|
@@ -19997,7 +19997,7 @@ function Qh (n) {
|
|
|
19997
19997
|
let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t = Ye("input", { class: "cm-textfield", name: "line", value: e }), i = Ye("form", {
|
|
19998
19998
|
class: "cm-gotoLine",
|
|
19999
19999
|
onkeydown: (s) => {
|
|
20000
|
-
s.keyCode == 27 ? (s.preventDefault(), n.dispatch({ effects:
|
|
20000
|
+
s.keyCode == 27 ? (s.preventDefault(), n.dispatch({ effects: gs.of(!1) }), n.focus()) : s.keyCode == 13 && (s.preventDefault(), r());
|
|
20001
20001
|
},
|
|
20002
20002
|
onsubmit: (s) => {
|
|
20003
20003
|
s.preventDefault(), r();
|
|
@@ -20005,7 +20005,7 @@ function Qh (n) {
|
|
|
20005
20005
|
}, Ye("label", n.state.phrase("Go to line"), ": ", t), " ", Ye("button", { class: "cm-button", type: "submit" }, n.state.phrase("go")), Ye("button", {
|
|
20006
20006
|
name: "close",
|
|
20007
20007
|
onclick: () => {
|
|
20008
|
-
n.dispatch({ effects:
|
|
20008
|
+
n.dispatch({ effects: gs.of(!1) }), n.focus();
|
|
20009
20009
|
},
|
|
20010
20010
|
"aria-label": n.state.phrase("close"),
|
|
20011
20011
|
type: "button"
|
|
@@ -20022,26 +20022,26 @@ function Qh (n) {
|
|
|
20022
20022
|
u && l && (d = d * (l == "-" ? -1 : 1) + o.number);
|
|
20023
20023
|
let p = a.doc.line(Math.max(1, Math.min(a.doc.lines, d))), g = z.cursor(p.from + Math.max(0, Math.min(f, p.length)));
|
|
20024
20024
|
n.dispatch({
|
|
20025
|
-
effects: [
|
|
20025
|
+
effects: [gs.of(!1), ie.scrollIntoView(g.from, { y: "center" })],
|
|
20026
20026
|
selection: g
|
|
20027
20027
|
}), n.focus();
|
|
20028
20028
|
}
|
|
20029
20029
|
return { dom: i };
|
|
20030
20030
|
}
|
|
20031
|
-
const
|
|
20031
|
+
const gs = /* @__PURE__ */ xe.define(), Cd = /* @__PURE__ */ Ot.define({
|
|
20032
20032
|
create () {
|
|
20033
20033
|
return !0;
|
|
20034
20034
|
},
|
|
20035
20035
|
update (n, e) {
|
|
20036
20036
|
for (let t of e.effects)
|
|
20037
|
-
t.is(
|
|
20037
|
+
t.is(gs) && (n = t.value);
|
|
20038
20038
|
return n;
|
|
20039
20039
|
},
|
|
20040
20040
|
provide: (n) => Ps.from(n, (e) => e ? Qh : null)
|
|
20041
20041
|
}), fw = (n) => {
|
|
20042
20042
|
let e = ws(n, Qh);
|
|
20043
20043
|
if (!e) {
|
|
20044
|
-
let t = [
|
|
20044
|
+
let t = [gs.of(!0)];
|
|
20045
20045
|
n.state.field(Cd, !1) == null && t.push(xe.appendConfig.of([Cd, dw])), n.dispatch({ effects: t }), e = ws(n, Qh);
|
|
20046
20046
|
}
|
|
20047
20047
|
return e && e.dom.querySelector("input").select(), !0;
|
|
@@ -20117,7 +20117,7 @@ const bw = /* @__PURE__ */ ut.fromClass(class {
|
|
|
20117
20117
|
}
|
|
20118
20118
|
let o = [];
|
|
20119
20119
|
for (let l of n.visibleRanges) {
|
|
20120
|
-
let u = new
|
|
20120
|
+
let u = new br(t.doc, s, l.from, l.to);
|
|
20121
20121
|
for (; !u.next().done;) {
|
|
20122
20122
|
let { from: h, to: c } = u.value;
|
|
20123
20123
|
if ((!a || Rd(a, t, h, c)) && (r.empty && h <= r.from && c >= r.to ? o.push(gw.range(h, c)) : (h >= r.to || c <= r.from) && o.push(mw.range(h, c)), o.length > e.maxMatches))
|
|
@@ -20137,11 +20137,11 @@ const bw = /* @__PURE__ */ ut.fromClass(class {
|
|
|
20137
20137
|
};
|
|
20138
20138
|
function Sw (n, e) {
|
|
20139
20139
|
let { main: t, ranges: i } = n.selection, r = n.wordAt(t.head), s = r && r.from == t.from && r.to == t.to;
|
|
20140
|
-
for (let a = !1, o = new
|
|
20140
|
+
for (let a = !1, o = new br(n.doc, e, i[i.length - 1].to); ;)
|
|
20141
20141
|
if (o.next(), o.done) {
|
|
20142
20142
|
if (a)
|
|
20143
20143
|
return null;
|
|
20144
|
-
o = new
|
|
20144
|
+
o = new br(n.doc, e, 0, Math.max(0, i[i.length - 1].from - 1)), a = !0;
|
|
20145
20145
|
} else {
|
|
20146
20146
|
if (a && i.some((l) => l.from == o.value.from))
|
|
20147
20147
|
continue;
|
|
@@ -20165,7 +20165,7 @@ const Qw = ({ state: n, dispatch: e }) => {
|
|
|
20165
20165
|
selection: n.selection.addRange(z.range(r.from, r.to), !1),
|
|
20166
20166
|
effects: ie.scrollIntoView(r.to)
|
|
20167
20167
|
})), !0) : !1;
|
|
20168
|
-
},
|
|
20168
|
+
}, Tr = /* @__PURE__ */ re.define({
|
|
20169
20169
|
combine (n) {
|
|
20170
20170
|
return Mi(n, {
|
|
20171
20171
|
top: !1,
|
|
@@ -20219,7 +20219,7 @@ class o0 {
|
|
|
20219
20219
|
}
|
|
20220
20220
|
}
|
|
20221
20221
|
function Jn (n, e, t, i) {
|
|
20222
|
-
return new
|
|
20222
|
+
return new br(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (r) => r.toLowerCase(), n.wholeWord ? xw(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
|
|
20223
20223
|
}
|
|
20224
20224
|
function xw (n, e) {
|
|
20225
20225
|
return (t, i, r, s) => ((s > t || s + r.length < i) && (s = Math.max(0, t - 2), r = n.sliceString(s, Math.min(n.length, i + 2))), (e(ko(r, t - s)) != Fe.Word || e(To(r, t - s)) != Fe.Word) && (e(To(r, i - s)) != Fe.Word || e(ko(r, i - s)) != Fe.Word));
|
|
@@ -20395,7 +20395,7 @@ const Co = /* @__PURE__ */ zs((n, { query: e }) => {
|
|
|
20395
20395
|
let { to: t } = n.state.selection.main, i = e.nextMatch(n.state, t, t);
|
|
20396
20396
|
if (!i)
|
|
20397
20397
|
return !1;
|
|
20398
|
-
let r = z.single(i.from, i.to), s = n.state.facet(
|
|
20398
|
+
let r = z.single(i.from, i.to), s = n.state.facet(Tr);
|
|
20399
20399
|
return n.dispatch({
|
|
20400
20400
|
selection: r,
|
|
20401
20401
|
effects: [mc(n, i), s.scrollToMatch(r.main, n)],
|
|
@@ -20405,7 +20405,7 @@ const Co = /* @__PURE__ */ zs((n, { query: e }) => {
|
|
|
20405
20405
|
let { state: t } = n, { from: i } = t.selection.main, r = e.prevMatch(t, i, i);
|
|
20406
20406
|
if (!r)
|
|
20407
20407
|
return !1;
|
|
20408
|
-
let s = z.single(r.from, r.to), a = n.state.facet(
|
|
20408
|
+
let s = z.single(r.from, r.to), a = n.state.facet(Tr);
|
|
20409
20409
|
return n.dispatch({
|
|
20410
20410
|
selection: s,
|
|
20411
20411
|
effects: [mc(n, r), a.scrollToMatch(s.main, n)],
|
|
@@ -20422,7 +20422,7 @@ const Co = /* @__PURE__ */ zs((n, { query: e }) => {
|
|
|
20422
20422
|
if (t.ranges.length > 1 || t.main.empty)
|
|
20423
20423
|
return !1;
|
|
20424
20424
|
let { from: i, to: r } = t.main, s = [], a = 0;
|
|
20425
|
-
for (let o = new
|
|
20425
|
+
for (let o = new br(n.doc, n.sliceDoc(i, r)); !o.next().done;) {
|
|
20426
20426
|
if (s.length > 1e3)
|
|
20427
20427
|
return !1;
|
|
20428
20428
|
o.value.from == i && (a = s.length), s.push(z.range(o.value.from, o.value.to));
|
|
@@ -20441,7 +20441,7 @@ const Co = /* @__PURE__ */ zs((n, { query: e }) => {
|
|
|
20441
20441
|
let a = s, o = [], l, u, h = [];
|
|
20442
20442
|
if (a.from == i && a.to == r && (u = t.toText(e.getReplacement(a)), o.push({ from: a.from, to: a.to, insert: u }), a = e.nextMatch(t, a.from, a.to), h.push(ie.announce.of(t.phrase("replaced match on line $", t.doc.lineAt(i).number) + "."))), a) {
|
|
20443
20443
|
let c = o.length == 0 || o[0].from >= s.to ? 0 : s.to - s.from - u.length;
|
|
20444
|
-
l = z.single(a.from - c, a.to - c), h.push(mc(n, a)), h.push(t.facet(
|
|
20444
|
+
l = z.single(a.from - c, a.to - c), h.push(mc(n, a)), h.push(t.facet(Tr).scrollToMatch(l.main, n));
|
|
20445
20445
|
}
|
|
20446
20446
|
return n.dispatch({
|
|
20447
20447
|
changes: o,
|
|
@@ -20466,14 +20466,14 @@ const Co = /* @__PURE__ */ zs((n, { query: e }) => {
|
|
|
20466
20466
|
}), !0;
|
|
20467
20467
|
});
|
|
20468
20468
|
function Oc (n) {
|
|
20469
|
-
return n.state.facet(
|
|
20469
|
+
return n.state.facet(Tr).createPanel(n);
|
|
20470
20470
|
}
|
|
20471
20471
|
function xh (n, e) {
|
|
20472
20472
|
var t, i, r, s, a;
|
|
20473
20473
|
let o = n.selection.main, l = o.empty || o.to > o.from + 100 ? "" : n.sliceDoc(o.from, o.to);
|
|
20474
20474
|
if (e && !l)
|
|
20475
20475
|
return e;
|
|
20476
|
-
let u = n.facet(
|
|
20476
|
+
let u = n.facet(Tr);
|
|
20477
20477
|
return new a0({
|
|
20478
20478
|
search: ((t = e == null ? void 0 : e.literal) !== null && t !== void 0 ? t : u.literal) ? l : l.replace(/\n/g, "\\n"),
|
|
20479
20479
|
caseSensitive: (i = e == null ? void 0 : e.caseSensitive) !== null && i !== void 0 ? i : u.caseSensitive,
|
|
@@ -20616,7 +20616,7 @@ class Aw {
|
|
|
20616
20616
|
return 80;
|
|
20617
20617
|
}
|
|
20618
20618
|
get top () {
|
|
20619
|
-
return this.view.state.facet(
|
|
20619
|
+
return this.view.state.facet(Tr).top;
|
|
20620
20620
|
}
|
|
20621
20621
|
}
|
|
20622
20622
|
function Gt (n, e) {
|
|
@@ -21696,7 +21696,7 @@ let hP = /* @__PURE__ */ he.widget({
|
|
|
21696
21696
|
}
|
|
21697
21697
|
}()
|
|
21698
21698
|
}), cP = /* @__PURE__ */ he.mark({ class: "cm-snippetField" });
|
|
21699
|
-
class
|
|
21699
|
+
class Cr {
|
|
21700
21700
|
constructor (e, t) {
|
|
21701
21701
|
this.ranges = e, this.active = t, this.deco = he.set(e.map((i) => (i.from == i.to ? hP : cP).range(i.from, i.to)));
|
|
21702
21702
|
}
|
|
@@ -21708,7 +21708,7 @@ class Tr {
|
|
|
21708
21708
|
return null;
|
|
21709
21709
|
t.push(r);
|
|
21710
21710
|
}
|
|
21711
|
-
return new
|
|
21711
|
+
return new Cr(t, this.active);
|
|
21712
21712
|
}
|
|
21713
21713
|
selectionInsideField (e) {
|
|
21714
21714
|
return e.ranges.every((t) => this.ranges.some((i) => i.field == this.active && i.from <= t.from && i.to >= t.to));
|
|
@@ -21727,7 +21727,7 @@ const Gs = /* @__PURE__ */ xe.define({
|
|
|
21727
21727
|
if (t.is(Gs))
|
|
21728
21728
|
return t.value;
|
|
21729
21729
|
if (t.is(fP) && n)
|
|
21730
|
-
return new
|
|
21730
|
+
return new Cr(n.ranges, t.value);
|
|
21731
21731
|
}
|
|
21732
21732
|
return n && e.docChanged && (n = n.map(e.changes)), n && e.selection && !n.selectionInsideField(e.selection) && (n = null), n;
|
|
21733
21733
|
},
|
|
@@ -21745,7 +21745,7 @@ function dP (n) {
|
|
|
21745
21745
|
annotations: i ? [vc.of(i), lt.userEvent.of("input.complete")] : void 0
|
|
21746
21746
|
};
|
|
21747
21747
|
if (o.length && (u.selection = Qc(o, 0)), o.some((h) => h.field > 0)) {
|
|
21748
|
-
let h = new
|
|
21748
|
+
let h = new Cr(o, 0), c = u.effects = [Gs.of(h)];
|
|
21749
21749
|
t.state.field(Zs, !1) === void 0 && c.push(xe.appendConfig.of([Zs, vP, bP, g0]));
|
|
21750
21750
|
}
|
|
21751
21751
|
t.dispatch(t.state.update(u));
|
|
@@ -21759,7 +21759,7 @@ function v0 (n) {
|
|
|
21759
21759
|
let r = i.active + n, s = n > 0 && !i.ranges.some((a) => a.field == r + n);
|
|
21760
21760
|
return t(e.update({
|
|
21761
21761
|
selection: Qc(i.ranges, r),
|
|
21762
|
-
effects: Gs.of(s ? null : new
|
|
21762
|
+
effects: Gs.of(s ? null : new Cr(i.ranges, r)),
|
|
21763
21763
|
scrollIntoView: !0
|
|
21764
21764
|
})), !0;
|
|
21765
21765
|
};
|
|
@@ -21783,7 +21783,7 @@ const bP = /* @__PURE__ */ ie.domEventHandlers({
|
|
|
21783
21783
|
let r = t.ranges.find((s) => s.from <= i && s.to >= i);
|
|
21784
21784
|
return !r || r.field == t.active ? !1 : (e.dispatch({
|
|
21785
21785
|
selection: Qc(t.ranges, r.field),
|
|
21786
|
-
effects: Gs.of(t.ranges.some((s) => s.field > r.field) ? new
|
|
21786
|
+
effects: Gs.of(t.ranges.some((s) => s.field > r.field) ? new Cr(t.ranges, r.field) : null),
|
|
21787
21787
|
scrollIntoView: !0
|
|
21788
21788
|
}), !0);
|
|
21789
21789
|
}
|
|
@@ -22054,10 +22054,10 @@ class Xn {
|
|
|
22054
22054
|
o[g].to <= l && o.splice(g--, 1);
|
|
22055
22055
|
}
|
|
22056
22056
|
let u = a.finish();
|
|
22057
|
-
return new Xn(u, t,
|
|
22057
|
+
return new Xn(u, t, yr(u));
|
|
22058
22058
|
}
|
|
22059
22059
|
}
|
|
22060
|
-
function
|
|
22060
|
+
function yr (n, e = null, t = 0) {
|
|
22061
22061
|
let i = null;
|
|
22062
22062
|
return n.between(t, 1e9, (r, s, { spec: a }) => {
|
|
22063
22063
|
if (!(e && a.diagnostics.indexOf(e) < 0))
|
|
@@ -22089,7 +22089,7 @@ const x0 = /* @__PURE__ */ xe.define(), wc = /* @__PURE__ */ xe.define(), w0 = /
|
|
|
22089
22089
|
let t = n.diagnostics.map(e.changes), i = null, r = n.panel;
|
|
22090
22090
|
if (n.selected) {
|
|
22091
22091
|
let s = e.changes.mapPos(n.selected.from, 1);
|
|
22092
|
-
i =
|
|
22092
|
+
i = yr(t, n.selected.diagnostic, s) || yr(t, null, s);
|
|
22093
22093
|
}
|
|
22094
22094
|
!t.size && r && e.state.facet(Xs).autoPanel && (r = null), n = new Xn(t, r, i);
|
|
22095
22095
|
}
|
|
@@ -22179,7 +22179,7 @@ function $0 (n, e, t) {
|
|
|
22179
22179
|
if (f.preventDefault(), o)
|
|
22180
22180
|
return;
|
|
22181
22181
|
o = !0;
|
|
22182
|
-
let d =
|
|
22182
|
+
let d = yr(n.state.field(ei).diagnostics, e);
|
|
22183
22183
|
d && s.apply(n, d.from, d.to);
|
|
22184
22184
|
}, { name: u } = s, h = r[a] ? u.indexOf(r[a]) : -1, c = h < 0 ? u : [
|
|
22185
22185
|
u.slice(0, h),
|
|
@@ -22231,7 +22231,7 @@ class As {
|
|
|
22231
22231
|
let { diagnostic: s } = this.items[this.selectedIndex], a = P0(s.actions);
|
|
22232
22232
|
for (let o = 0; o < a.length; o++)
|
|
22233
22233
|
if (a[o].toUpperCase().charCodeAt(0) == r.keyCode) {
|
|
22234
|
-
let l =
|
|
22234
|
+
let l = yr(this.view.state.field(ei).diagnostics, s);
|
|
22235
22235
|
l && s.actions[o].apply(e, l.from, l.to);
|
|
22236
22236
|
}
|
|
22237
22237
|
} else
|
|
@@ -22313,7 +22313,7 @@ class As {
|
|
|
22313
22313
|
moveSelection (e) {
|
|
22314
22314
|
if (this.selectedIndex < 0)
|
|
22315
22315
|
return;
|
|
22316
|
-
let t = this.view.state.field(ei), i =
|
|
22316
|
+
let t = this.view.state.field(ei), i = yr(t.diagnostics, this.items[e].diagnostic);
|
|
22317
22317
|
i && this.view.dispatch({
|
|
22318
22318
|
selection: { anchor: i.from, head: i.to },
|
|
22319
22319
|
scrollIntoView: !0,
|
|
@@ -22892,7 +22892,7 @@ class Ao {
|
|
|
22892
22892
|
return new Ao(this.stack, this.pos, this.index);
|
|
22893
22893
|
}
|
|
22894
22894
|
}
|
|
22895
|
-
function
|
|
22895
|
+
function as (n, e = Uint16Array) {
|
|
22896
22896
|
if (typeof n != "string")
|
|
22897
22897
|
return n;
|
|
22898
22898
|
let t = null;
|
|
@@ -23078,7 +23078,7 @@ class hr {
|
|
|
23078
23078
|
hr.prototype.contextual = hr.prototype.fallback = hr.prototype.extend = !1;
|
|
23079
23079
|
class Vo {
|
|
23080
23080
|
constructor (e, t, i) {
|
|
23081
|
-
this.precTable = t, this.elseToken = i, this.data = typeof e == "string" ?
|
|
23081
|
+
this.precTable = t, this.elseToken = i, this.data = typeof e == "string" ? as(e) : e;
|
|
23082
23082
|
}
|
|
23083
23083
|
token (e, t) {
|
|
23084
23084
|
let i = e.pos, r = 0;
|
|
@@ -23153,7 +23153,7 @@ function FP (n, e, t, i) {
|
|
|
23153
23153
|
const Bt = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
23154
23154
|
let Nl = null;
|
|
23155
23155
|
function Bd (n, e, t) {
|
|
23156
|
-
let i = n.cursor(
|
|
23156
|
+
let i = n.cursor(Ne.IncludeAnonymous);
|
|
23157
23157
|
for (i.moveTo(e); ;)
|
|
23158
23158
|
if (!(t < 0 ? i.childBefore(e) : i.childAfter(e)))
|
|
23159
23159
|
for (; ;) {
|
|
@@ -23545,11 +23545,11 @@ class Qn extends rg {
|
|
|
23545
23545
|
error: l == 0,
|
|
23546
23546
|
skipped: e.skippedNodes && e.skippedNodes.indexOf(l) > -1
|
|
23547
23547
|
}))), e.propSources && (this.nodeSet = this.nodeSet.extend(...e.propSources)), this.strict = !1, this.bufferLength = Jm;
|
|
23548
|
-
let a =
|
|
23548
|
+
let a = as(e.tokenData);
|
|
23549
23549
|
this.context = e.context, this.specializerSpecs = e.specialized || [], this.specialized = new Uint16Array(this.specializerSpecs.length);
|
|
23550
23550
|
for (let o = 0; o < this.specializerSpecs.length; o++)
|
|
23551
23551
|
this.specialized[o] = this.specializerSpecs[o].term;
|
|
23552
|
-
this.specializers = this.specializerSpecs.map(Hd), this.states =
|
|
23552
|
+
this.specializers = this.specializerSpecs.map(Hd), this.states = as(e.states, Uint32Array), this.data = as(e.stateData), this.goto = as(e.goto), this.maxTerm = e.maxTerm, this.tokenizers = e.tokenizers.map((o) => typeof o == "number" ? new hr(a, o) : o), this.topRules = e.topRules, this.dialects = e.dialects || {}, this.dynamicPrecedences = e.dynamicPrecedences || null, this.tokenPrecTable = e.tokenPrec, this.termNames = e.termNames || null, this.maxNode = this.nodeSet.types.length - 1, this.dialect = this.parseDialect(), this.top = this.topRules[Object.keys(this.topRules)[0]];
|
|
23553
23553
|
}
|
|
23554
23554
|
createParse (e, t, i) {
|
|
23555
23555
|
let r = new JP(this, e, t, i);
|
|
@@ -23853,7 +23853,7 @@ const $$ = new ti((n, e) => {
|
|
|
23853
23853
|
}
|
|
23854
23854
|
}
|
|
23855
23855
|
n.acceptToken(a$, -t);
|
|
23856
|
-
}), k$ =
|
|
23856
|
+
}), k$ = wr({
|
|
23857
23857
|
"get set async static": P.modifier,
|
|
23858
23858
|
"for while do if else switch try catch finally return throw break continue default case": P.controlKeyword,
|
|
23859
23859
|
"in of await yield void typeof delete instanceof": P.operatorKeyword,
|
|
@@ -24027,19 +24027,19 @@ const $$ = new ti((n, e) => {
|
|
|
24027
24027
|
"MethodDeclaration",
|
|
24028
24028
|
"ForStatement"
|
|
24029
24029
|
]);
|
|
24030
|
-
function
|
|
24030
|
+
function qr (n) {
|
|
24031
24031
|
return (e, t) => {
|
|
24032
24032
|
let i = e.node.getChild("VariableDefinition");
|
|
24033
24033
|
return i && t(i, n), !0;
|
|
24034
24034
|
};
|
|
24035
24035
|
}
|
|
24036
24036
|
const X$ = ["FunctionDeclaration"], A$ = {
|
|
24037
|
-
FunctionDeclaration: /* @__PURE__ */
|
|
24038
|
-
ClassDeclaration: /* @__PURE__ */
|
|
24037
|
+
FunctionDeclaration: /* @__PURE__ */ qr("function"),
|
|
24038
|
+
ClassDeclaration: /* @__PURE__ */ qr("class"),
|
|
24039
24039
|
ClassExpression: () => !0,
|
|
24040
|
-
EnumDeclaration: /* @__PURE__ */
|
|
24041
|
-
TypeAliasDeclaration: /* @__PURE__ */
|
|
24042
|
-
NamespaceDeclaration: /* @__PURE__ */
|
|
24040
|
+
EnumDeclaration: /* @__PURE__ */ qr("constant"),
|
|
24041
|
+
TypeAliasDeclaration: /* @__PURE__ */ qr("type"),
|
|
24042
|
+
NamespaceDeclaration: /* @__PURE__ */ qr("namespace"),
|
|
24043
24043
|
VariableDefinition (n, e) {
|
|
24044
24044
|
n.matchContext(X$) || e(n, "variable");
|
|
24045
24045
|
},
|
|
@@ -24057,7 +24057,7 @@ function E0 (n, e) {
|
|
|
24057
24057
|
let l = n.sliceString(a.from, a.to);
|
|
24058
24058
|
i.push({ label: l, type: o });
|
|
24059
24059
|
}
|
|
24060
|
-
return e.cursor(
|
|
24060
|
+
return e.cursor(Ne.IncludeAnonymous).iterate((a) => {
|
|
24061
24061
|
if (r)
|
|
24062
24062
|
r = !1;
|
|
24063
24063
|
else if (a.name) {
|
|
@@ -24112,7 +24112,7 @@ const li = /* @__PURE__ */ _n.define({
|
|
|
24112
24112
|
name: "javascript",
|
|
24113
24113
|
parser: /* @__PURE__ */ Z$.configure({
|
|
24114
24114
|
props: [
|
|
24115
|
-
/* @__PURE__ */
|
|
24115
|
+
/* @__PURE__ */ Pr.add({
|
|
24116
24116
|
IfStatement: /* @__PURE__ */ On({ except: /^\s*({|else\b)/ }),
|
|
24117
24117
|
TryStatement: /* @__PURE__ */ On({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
24118
24118
|
LabeledStatement: fg,
|
|
@@ -24136,7 +24136,7 @@ const li = /* @__PURE__ */ _n.define({
|
|
|
24136
24136
|
return n.column(n.node.from) + n.unit;
|
|
24137
24137
|
}
|
|
24138
24138
|
}),
|
|
24139
|
-
/* @__PURE__ */
|
|
24139
|
+
/* @__PURE__ */ $r.add({
|
|
24140
24140
|
"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType": lc,
|
|
24141
24141
|
BlockComment (n) {
|
|
24142
24142
|
return { from: n.from + 2, to: n.to - 2 };
|
|
@@ -24216,7 +24216,7 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24216
24216
|
s,
|
|
24217
24217
|
a.update(o, { userEvent: "input.complete", scrollIntoView: !0 })
|
|
24218
24218
|
]), !0);
|
|
24219
|
-
}), U$ = "#002b36", I$ = "#073642", Gl = "#586e75", ip = "#657b83", I0 = "#839496", $h = "#93a1a1", to = "#eee8d5", W$ = "#fdf6e3", Ta = "#dc322f", j$ = "#cb4b16",
|
|
24219
|
+
}), U$ = "#002b36", I$ = "#073642", Gl = "#586e75", ip = "#657b83", I0 = "#839496", $h = "#93a1a1", to = "#eee8d5", W$ = "#fdf6e3", Ta = "#dc322f", j$ = "#cb4b16", zr = "#b58900", Bl = "#859900", Fl = "#2aa198", np = "#268bd2", N$ = "#6c71c4", Ca = "#d33682", rp = "#d30102", q$ = I0, sp = "#00252f", Hl = "#173541", z$ = U$, Kl = I$, G$ = "#173541", ap = I0, B$ = /* @__PURE__ */ ie.theme({
|
|
24220
24220
|
"&": {
|
|
24221
24221
|
color: $h,
|
|
24222
24222
|
backgroundColor: z$
|
|
@@ -24283,7 +24283,7 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24283
24283
|
{ tag: [P.labelName], color: Ca },
|
|
24284
24284
|
{
|
|
24285
24285
|
tag: [P.color, /* @__PURE__ */ P.constant(P.name), /* @__PURE__ */ P.standard(P.name)],
|
|
24286
|
-
color:
|
|
24286
|
+
color: zr
|
|
24287
24287
|
},
|
|
24288
24288
|
{ tag: [/* @__PURE__ */ P.definition(P.name), P.separator], color: Fl },
|
|
24289
24289
|
{ tag: [P.brace], color: Ca },
|
|
@@ -24327,7 +24327,7 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24327
24327
|
tag: [P.quote],
|
|
24328
24328
|
color: Bl
|
|
24329
24329
|
},
|
|
24330
|
-
{ tag: [P.string], color:
|
|
24330
|
+
{ tag: [P.string], color: zr },
|
|
24331
24331
|
{
|
|
24332
24332
|
tag: P.link,
|
|
24333
24333
|
color: Fl,
|
|
@@ -24336,14 +24336,14 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24336
24336
|
},
|
|
24337
24337
|
{
|
|
24338
24338
|
tag: [P.url, P.escape, /* @__PURE__ */ P.special(P.string)],
|
|
24339
|
-
color:
|
|
24339
|
+
color: zr
|
|
24340
24340
|
},
|
|
24341
24341
|
{ tag: [P.meta], color: Ta },
|
|
24342
24342
|
{ tag: [P.comment], color: Gl, fontStyle: "italic" },
|
|
24343
24343
|
{ tag: P.strong, fontWeight: "bold", color: to },
|
|
24344
24344
|
{ tag: P.emphasis, fontStyle: "italic", color: Bl },
|
|
24345
24345
|
{ tag: P.strikethrough, textDecoration: "line-through" },
|
|
24346
|
-
{ tag: P.heading, fontWeight: "bold", color:
|
|
24346
|
+
{ tag: P.heading, fontWeight: "bold", color: zr },
|
|
24347
24347
|
{ tag: P.heading1, fontWeight: "bold", color: W$ },
|
|
24348
24348
|
{
|
|
24349
24349
|
tag: [P.heading2, P.heading3, P.heading4],
|
|
@@ -24361,13 +24361,13 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24361
24361
|
},
|
|
24362
24362
|
{
|
|
24363
24363
|
tag: [P.contentSeparator],
|
|
24364
|
-
color:
|
|
24364
|
+
color: zr
|
|
24365
24365
|
},
|
|
24366
24366
|
{ tag: P.invalid, color: Gl, borderBottom: `1px dotted ${Ta}` }
|
|
24367
24367
|
]), H$ = [
|
|
24368
24368
|
B$,
|
|
24369
24369
|
/* @__PURE__ */ yg(F$)
|
|
24370
|
-
], K$ =
|
|
24370
|
+
], K$ = wr({
|
|
24371
24371
|
null: P.null,
|
|
24372
24372
|
instanceof: P.operatorKeyword,
|
|
24373
24373
|
this: P.self,
|
|
@@ -24427,7 +24427,7 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24427
24427
|
name: "java",
|
|
24428
24428
|
parser: /* @__PURE__ */ e2.configure({
|
|
24429
24429
|
props: [
|
|
24430
|
-
/* @__PURE__ */
|
|
24430
|
+
/* @__PURE__ */ Pr.add({
|
|
24431
24431
|
IfStatement: /* @__PURE__ */ On({ except: /^\s*({|else\b)/ }),
|
|
24432
24432
|
TryStatement: /* @__PURE__ */ On({ except: /^\s*({|catch|finally)\b/ }),
|
|
24433
24433
|
LabeledStatement: fg,
|
|
@@ -24439,7 +24439,7 @@ const Y$ = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
24439
24439
|
BlockComment: () => null,
|
|
24440
24440
|
Statement: /* @__PURE__ */ On({ except: /^{/ })
|
|
24441
24441
|
}),
|
|
24442
|
-
/* @__PURE__ */
|
|
24442
|
+
/* @__PURE__ */ $r.add({
|
|
24443
24443
|
"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer": lc,
|
|
24444
24444
|
BlockComment (n) {
|
|
24445
24445
|
return { from: n.from + 2, to: n.to - 2 };
|
|
@@ -24515,7 +24515,7 @@ const O2 = new ti((n, e) => {
|
|
|
24515
24515
|
n.acceptToken(op);
|
|
24516
24516
|
}
|
|
24517
24517
|
}
|
|
24518
|
-
}), v2 =
|
|
24518
|
+
}), v2 = wr({
|
|
24519
24519
|
"AtKeyword import charset namespace keyframes media supports": P.definitionKeyword,
|
|
24520
24520
|
"from to selector": P.keyword,
|
|
24521
24521
|
NamespaceName: P.namespace,
|
|
@@ -25327,7 +25327,7 @@ function q0 (n, e, t) {
|
|
|
25327
25327
|
let i = cp.get(e);
|
|
25328
25328
|
if (i)
|
|
25329
25329
|
return i;
|
|
25330
|
-
let r = [], s = /* @__PURE__ */ new Set(), a = e.cursor(
|
|
25330
|
+
let r = [], s = /* @__PURE__ */ new Set(), a = e.cursor(Ne.IncludeAnonymous);
|
|
25331
25331
|
if (a.firstChild())
|
|
25332
25332
|
do
|
|
25333
25333
|
for (let o of q0(n, a.node, t))
|
|
@@ -25375,10 +25375,10 @@ const T2 = (n) => (e) => {
|
|
|
25375
25375
|
name: "css",
|
|
25376
25376
|
parser: /* @__PURE__ */ S2.configure({
|
|
25377
25377
|
props: [
|
|
25378
|
-
/* @__PURE__ */
|
|
25378
|
+
/* @__PURE__ */ Pr.add({
|
|
25379
25379
|
Declaration: /* @__PURE__ */ On()
|
|
25380
25380
|
}),
|
|
25381
|
-
/* @__PURE__ */
|
|
25381
|
+
/* @__PURE__ */ $r.add({
|
|
25382
25382
|
"Block KeyframeList": lc
|
|
25383
25383
|
})
|
|
25384
25384
|
]
|
|
@@ -25776,10 +25776,10 @@ function fk (n, e, t) {
|
|
|
25776
25776
|
}
|
|
25777
25777
|
let dk = /* @__PURE__ */ ik.configure({
|
|
25778
25778
|
props: [
|
|
25779
|
-
/* @__PURE__ */
|
|
25779
|
+
/* @__PURE__ */ Pr.add({
|
|
25780
25780
|
Statement: /* @__PURE__ */ On()
|
|
25781
25781
|
}),
|
|
25782
|
-
/* @__PURE__ */
|
|
25782
|
+
/* @__PURE__ */ $r.add({
|
|
25783
25783
|
Statement (n, e) {
|
|
25784
25784
|
return { from: Math.min(n.from + 100, e.doc.lineAt(n.from).to), to: n.to };
|
|
25785
25785
|
},
|
|
@@ -25787,7 +25787,7 @@ let dk = /* @__PURE__ */ ik.configure({
|
|
|
25787
25787
|
return { from: n.from + 2, to: n.to - 2 };
|
|
25788
25788
|
}
|
|
25789
25789
|
}),
|
|
25790
|
-
/* @__PURE__ */
|
|
25790
|
+
/* @__PURE__ */ wr({
|
|
25791
25791
|
Keyword: P.keyword,
|
|
25792
25792
|
Type: P.typeName,
|
|
25793
25793
|
Builtin: /* @__PURE__ */ P.standard(P.name),
|
|
@@ -26061,7 +26061,7 @@ function Cc (n, e, t) {
|
|
|
26061
26061
|
}
|
|
26062
26062
|
});
|
|
26063
26063
|
}
|
|
26064
|
-
const Hk = Cc("script", bk, yk), Kk = Cc("style", _k, Sk), Jk = Cc("textarea", Qk, xk), eT =
|
|
26064
|
+
const Hk = Cc("script", bk, yk), Kk = Cc("style", _k, Sk), Jk = Cc("textarea", Qk, xk), eT = wr({
|
|
26065
26065
|
"Text RawText": P.content,
|
|
26066
26066
|
"StartTag StartCloseTag SelfClosingEndTag EndTag": P.angleBracket,
|
|
26067
26067
|
TagName: P.tagName,
|
|
@@ -26162,14 +26162,14 @@ function u1 (n = [], e = []) {
|
|
|
26162
26162
|
return null;
|
|
26163
26163
|
});
|
|
26164
26164
|
}
|
|
26165
|
-
const
|
|
26165
|
+
const Gr = ["_blank", "_self", "_top", "_parent"], su = ["ascii", "utf-8", "utf-16", "latin1", "latin1"], au = ["get", "post", "put", "delete"], ou = ["application/x-www-form-urlencoded", "multipart/form-data", "text/plain"], Ft = ["true", "false"], le = {}, iT = {
|
|
26166
26166
|
a: {
|
|
26167
26167
|
attrs: {
|
|
26168
26168
|
href: null,
|
|
26169
26169
|
ping: null,
|
|
26170
26170
|
type: null,
|
|
26171
26171
|
media: null,
|
|
26172
|
-
target:
|
|
26172
|
+
target: Gr,
|
|
26173
26173
|
hreflang: null
|
|
26174
26174
|
}
|
|
26175
26175
|
},
|
|
@@ -26202,7 +26202,7 @@ const zr = ["_blank", "_self", "_top", "_parent"], su = ["ascii", "utf-8", "utf-
|
|
|
26202
26202
|
}
|
|
26203
26203
|
},
|
|
26204
26204
|
b: le,
|
|
26205
|
-
base: { attrs: { href: null, target:
|
|
26205
|
+
base: { attrs: { href: null, target: Gr } },
|
|
26206
26206
|
bdi: le,
|
|
26207
26207
|
bdo: le,
|
|
26208
26208
|
blockquote: { attrs: { cite: null } },
|
|
@@ -26219,7 +26219,7 @@ const zr = ["_blank", "_self", "_top", "_parent"], su = ["ascii", "utf-8", "utf-
|
|
|
26219
26219
|
formenctype: ou,
|
|
26220
26220
|
formmethod: au,
|
|
26221
26221
|
formnovalidate: ["novalidate"],
|
|
26222
|
-
formtarget:
|
|
26222
|
+
formtarget: Gr,
|
|
26223
26223
|
type: ["submit", "reset", "button"]
|
|
26224
26224
|
}
|
|
26225
26225
|
},
|
|
@@ -26268,7 +26268,7 @@ const zr = ["_blank", "_self", "_top", "_parent"], su = ["ascii", "utf-8", "utf-
|
|
|
26268
26268
|
enctype: ou,
|
|
26269
26269
|
method: au,
|
|
26270
26270
|
novalidate: ["novalidate"],
|
|
26271
|
-
target:
|
|
26271
|
+
target: Gr
|
|
26272
26272
|
}
|
|
26273
26273
|
},
|
|
26274
26274
|
h1: le,
|
|
@@ -26336,7 +26336,7 @@ const zr = ["_blank", "_self", "_top", "_parent"], su = ["ascii", "utf-8", "utf-
|
|
|
26336
26336
|
formenctype: ou,
|
|
26337
26337
|
formmethod: au,
|
|
26338
26338
|
formnovalidate: ["novalidate"],
|
|
26339
|
-
formtarget:
|
|
26339
|
+
formtarget: Gr,
|
|
26340
26340
|
multiple: ["multiple"],
|
|
26341
26341
|
readonly: ["readonly"],
|
|
26342
26342
|
required: ["required"],
|
|
@@ -26589,13 +26589,13 @@ class Uo {
|
|
|
26589
26589
|
}
|
|
26590
26590
|
}
|
|
26591
26591
|
Uo.default = /* @__PURE__ */ new Uo();
|
|
26592
|
-
function
|
|
26592
|
+
function _r (n, e, t = n.length) {
|
|
26593
26593
|
if (!e)
|
|
26594
26594
|
return "";
|
|
26595
26595
|
let i = e.firstChild, r = i && i.getChild("TagName");
|
|
26596
26596
|
return r ? n.sliceString(r.from, Math.min(r.to, t)) : "";
|
|
26597
26597
|
}
|
|
26598
|
-
function
|
|
26598
|
+
function Sr (n, e = !1) {
|
|
26599
26599
|
for (; n; n = n.parent)
|
|
26600
26600
|
if (n.name == "Element")
|
|
26601
26601
|
if (e)
|
|
@@ -26605,13 +26605,13 @@ function _r (n, e = !1) {
|
|
|
26605
26605
|
return null;
|
|
26606
26606
|
}
|
|
26607
26607
|
function f1 (n, e, t) {
|
|
26608
|
-
let i = t.tags[
|
|
26608
|
+
let i = t.tags[_r(n, Sr(e))];
|
|
26609
26609
|
return (i == null ? void 0 : i.children) || t.allTags;
|
|
26610
26610
|
}
|
|
26611
26611
|
function Rc (n, e) {
|
|
26612
26612
|
let t = [];
|
|
26613
|
-
for (let i =
|
|
26614
|
-
let r =
|
|
26613
|
+
for (let i = Sr(e); i && !i.type.isTop; i = Sr(i.parent)) {
|
|
26614
|
+
let r = _r(n, i);
|
|
26615
26615
|
if (r && i.lastChild.name == "CloseTag")
|
|
26616
26616
|
break;
|
|
26617
26617
|
r && t.indexOf(r) < 0 && (e.name == "EndTag" || e.from >= i.firstChild.to) && t.push(r);
|
|
@@ -26620,7 +26620,7 @@ function Rc (n, e) {
|
|
|
26620
26620
|
}
|
|
26621
26621
|
const d1 = /^[:\-\.\w\u00b7-\uffff]*$/;
|
|
26622
26622
|
function Tp (n, e, t, i, r) {
|
|
26623
|
-
let s = /\s*>/.test(n.sliceDoc(r, r + 5)) ? "" : ">", a =
|
|
26623
|
+
let s = /\s*>/.test(n.sliceDoc(r, r + 5)) ? "" : ">", a = Sr(t, !0);
|
|
26624
26624
|
return {
|
|
26625
26625
|
from: i,
|
|
26626
26626
|
to: r,
|
|
@@ -26651,7 +26651,7 @@ function nT (n, e, t, i) {
|
|
|
26651
26651
|
return { from: i, to: i, options: r, validFor: /^<\/?[:\-\.\w\u00b7-\uffff]*$/ };
|
|
26652
26652
|
}
|
|
26653
26653
|
function rT (n, e, t, i, r) {
|
|
26654
|
-
let s =
|
|
26654
|
+
let s = Sr(t), a = s ? e.tags[_r(n.doc, s)] : null, o = a && a.attrs ? Object.keys(a.attrs) : [], l = a && a.globalAttrs === !1 ? o : o.length ? o.concat(e.globalAttrNames) : e.globalAttrNames;
|
|
26655
26655
|
return {
|
|
26656
26656
|
from: i,
|
|
26657
26657
|
to: r,
|
|
@@ -26665,7 +26665,7 @@ function sT (n, e, t, i, r) {
|
|
|
26665
26665
|
if (a) {
|
|
26666
26666
|
let u = n.sliceDoc(a.from, a.to), h = e.globalAttrs[u];
|
|
26667
26667
|
if (!h) {
|
|
26668
|
-
let c =
|
|
26668
|
+
let c = Sr(t), f = c ? e.tags[_r(n.doc, c)] : null;
|
|
26669
26669
|
h = (f == null ? void 0 : f.attrs) && f.attrs[u];
|
|
26670
26670
|
}
|
|
26671
26671
|
if (h) {
|
|
@@ -26737,7 +26737,7 @@ const lT = /* @__PURE__ */ li.parser.configure({ top: "SingleExpression" }), p1
|
|
|
26737
26737
|
name: "html",
|
|
26738
26738
|
parser: /* @__PURE__ */ tT.configure({
|
|
26739
26739
|
props: [
|
|
26740
|
-
/* @__PURE__ */
|
|
26740
|
+
/* @__PURE__ */ Pr.add({
|
|
26741
26741
|
Element (n) {
|
|
26742
26742
|
let e = /^(\s*)(<\/)?/.exec(n.textAfter);
|
|
26743
26743
|
return n.node.to <= n.pos + e[0].length ? n.continue() : n.lineIndent(n.node.from) + (e[2] ? 0 : n.unit);
|
|
@@ -26758,7 +26758,7 @@ const lT = /* @__PURE__ */ li.parser.configure({ top: "SingleExpression" }), p1
|
|
|
26758
26758
|
return e && !((t = e.lastChild) && (t.name == "CloseTag" || t.name == "SelfClosingTag")) ? n.lineIndent(e.from) + n.unit : null;
|
|
26759
26759
|
}
|
|
26760
26760
|
}),
|
|
26761
|
-
/* @__PURE__ */
|
|
26761
|
+
/* @__PURE__ */ $r.add({
|
|
26762
26762
|
Element (n) {
|
|
26763
26763
|
let e = n.firstChild, t = n.lastChild;
|
|
26764
26764
|
return !e || e.name != "OpenTag" ? null : { from: e.to, to: t.name == "CloseTag" ? t.from : n.to };
|
|
@@ -26796,13 +26796,13 @@ const Rp = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
|
|
|
26796
26796
|
let f = a.doc.sliceString(l.from - 1, l.to) == i, { head: d } = l, p = He(a).resolveInner(d, -1), g;
|
|
26797
26797
|
if (f && i == ">" && p.name == "EndTag") {
|
|
26798
26798
|
let m = p.parent;
|
|
26799
|
-
if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g =
|
|
26799
|
+
if (((h = (u = m.parent) === null || u === void 0 ? void 0 : u.lastChild) === null || h === void 0 ? void 0 : h.name) != "CloseTag" && (g = _r(a.doc, m.parent, d)) && !Rp.has(g)) {
|
|
26800
26800
|
let O = d + (a.doc.sliceString(d, d + 1) === ">" ? 1 : 0), _ = `</${g}>`;
|
|
26801
26801
|
return { range: l, changes: { from: d, to: O, insert: _ } };
|
|
26802
26802
|
}
|
|
26803
26803
|
} else if (f && i == "/" && p.name == "IncompleteCloseTag") {
|
|
26804
26804
|
let m = p.parent;
|
|
26805
|
-
if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g =
|
|
26805
|
+
if (p.from == d - 2 && ((c = m.lastChild) === null || c === void 0 ? void 0 : c.name) != "CloseTag" && (g = _r(a.doc, m, d)) && !Rp.has(g)) {
|
|
26806
26806
|
let O = d + (a.doc.sliceString(d, d + 1) === ">" ? 1 : 0), _ = `${g}>`;
|
|
26807
26807
|
return {
|
|
26808
26808
|
range: z.cursor(d + _.length, -1),
|
|
@@ -26828,7 +26828,7 @@ const Rp = /* @__PURE__ */ new Set(/* @__PURE__ */ "area base br col command emb
|
|
|
26828
26828
|
}, Zp = function (n) {
|
|
26829
26829
|
return cT[n]();
|
|
26830
26830
|
};
|
|
26831
|
-
var g1 = { exports: {} },
|
|
26831
|
+
var g1 = { exports: {} }, Br = {}, Ra = { exports: {} }, lu = {}, uu = {}, Ep;
|
|
26832
26832
|
function Zc () {
|
|
26833
26833
|
if (Ep)
|
|
26834
26834
|
return uu;
|
|
@@ -26977,10 +26977,10 @@ function b1 () {
|
|
|
26977
26977
|
|` + n.newline.source), n.allLineBreaks = new RegExp(n.lineBreak.source, "g");
|
|
26978
26978
|
}(cu)), cu;
|
|
26979
26979
|
}
|
|
26980
|
-
var fu = {},
|
|
26980
|
+
var fu = {}, Fr = {}, Vp;
|
|
26981
26981
|
function Ec () {
|
|
26982
26982
|
if (Vp)
|
|
26983
|
-
return
|
|
26983
|
+
return Fr;
|
|
26984
26984
|
Vp = 1;
|
|
26985
26985
|
function n (i, r) {
|
|
26986
26986
|
this.raw_options = e(i, r), this.disabled = this._get_boolean("disabled"), this.eol = this._get_characters("eol", "auto"), this.end_with_newline = this._get_boolean("end_with_newline"), this.indent_size = this._get_number("indent_size", 4), this.indent_char = this._get_characters("indent_char", " "), this.indent_level = this._get_number("indent_level"), this.preserve_newlines = this._get_boolean("preserve_newlines", !0), this.max_preserve_newlines = this._get_number("max_preserve_newlines", 32786), this.preserve_newlines || (this.max_preserve_newlines = 0), this.indent_with_tabs = this._get_boolean("indent_with_tabs", this.indent_char === " "), this.indent_with_tabs && (this.indent_char = " ", this.indent_size === 1 && (this.indent_size = 4)), this.wrap_line_length = this._get_number("wrap_line_length", this._get_number("max_char")), this.indent_empty_lines = this._get_boolean("indent_empty_lines"), this.templating = this._get_selection_list("templating", ["auto", "none", "angular", "django", "erb", "handlebars", "php", "smarty"], ["auto"]);
|
|
@@ -27046,7 +27046,7 @@ You passed in: '` + this.raw_options[i] + "'"
|
|
|
27046
27046
|
}
|
|
27047
27047
|
return r;
|
|
27048
27048
|
}
|
|
27049
|
-
return
|
|
27049
|
+
return Fr.Options = n, Fr.normalizeOpts = t, Fr.mergeOpts = e, Fr;
|
|
27050
27050
|
}
|
|
27051
27051
|
var Dp;
|
|
27052
27052
|
function y1 () {
|
|
@@ -28611,13 +28611,13 @@ function bT () {
|
|
|
28611
28611
|
var iO;
|
|
28612
28612
|
function yT () {
|
|
28613
28613
|
if (iO)
|
|
28614
|
-
return
|
|
28614
|
+
return Br;
|
|
28615
28615
|
iO = 1;
|
|
28616
28616
|
var n = OT(), e = gT(), t = bT();
|
|
28617
28617
|
function i (r, s, a, o) {
|
|
28618
28618
|
return a = a || n, o = o || e, t(r, s, a, o);
|
|
28619
28619
|
}
|
|
28620
|
-
return i.defaultOptions = t.defaultOptions,
|
|
28620
|
+
return i.defaultOptions = t.defaultOptions, Br.js = n, Br.css = e, Br.html = i, Br;
|
|
28621
28621
|
}
|
|
28622
28622
|
(function (n) {
|
|
28623
28623
|
function e (t, i, r) {
|
|
@@ -28723,7 +28723,7 @@ const ST = { class: "code-slot" }, QT = { class: "code-slot" }, xT = { class: "e
|
|
|
28723
28723
|
a.focus();
|
|
28724
28724
|
}
|
|
28725
28725
|
};
|
|
28726
|
-
return
|
|
28726
|
+
return Qr(() => {
|
|
28727
28727
|
const f = [
|
|
28728
28728
|
zP,
|
|
28729
28729
|
H$,
|
|
@@ -28835,8 +28835,8 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
28835
28835
|
},
|
|
28836
28836
|
setup (n) {
|
|
28837
28837
|
const e = (s) => {
|
|
28838
|
-
let a =
|
|
28839
|
-
return a.id = r(), a.width = 600, a.height = 400, a.option =
|
|
28838
|
+
let a = fr(s);
|
|
28839
|
+
return a.id = r(), a.width = 600, a.height = 400, a.option = fr(z1[s.type]), a;
|
|
28840
28840
|
}, t = (s) => {
|
|
28841
28841
|
}, i = (s) => {
|
|
28842
28842
|
}, r = () => {
|
|
@@ -28892,15 +28892,15 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
28892
28892
|
}
|
|
28893
28893
|
});
|
|
28894
28894
|
return (a, o) => {
|
|
28895
|
-
const l =
|
|
28896
|
-
return D(), K(
|
|
28895
|
+
const l = ce("el-col"), u = ce("el-option"), h = ce("el-select");
|
|
28896
|
+
return D(), K(fe, null, [
|
|
28897
28897
|
CT,
|
|
28898
|
-
v(s) ? (D(), K(
|
|
28898
|
+
v(s) ? (D(), K(fe, { key: 0 }, [
|
|
28899
28899
|
b(l, { span: 12 }, {
|
|
28900
28900
|
default: S(() => [
|
|
28901
28901
|
b(v(G), { label: "名称" }, {
|
|
28902
28902
|
default: S(() => [
|
|
28903
|
-
b(v(
|
|
28903
|
+
b(v(Ue), {
|
|
28904
28904
|
modelValue: v(s).name,
|
|
28905
28905
|
"onUpdate:modelValue": o[0] || (o[0] = (c) => v(s).name = c),
|
|
28906
28906
|
placeholder: "修改筛选参数标签"
|
|
@@ -29072,7 +29072,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29072
29072
|
default: S(() => [
|
|
29073
29073
|
b(v(G), { label: "不能为空" }, {
|
|
29074
29074
|
default: S(() => [
|
|
29075
|
-
b(v(
|
|
29075
|
+
b(v(je), {
|
|
29076
29076
|
modelValue: v(s).isNull,
|
|
29077
29077
|
"onUpdate:modelValue": o[3] || (o[3] = (c) => v(s).isNull = c)
|
|
29078
29078
|
}, null, 8, ["modelValue"])
|
|
@@ -29086,7 +29086,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29086
29086
|
default: S(() => [
|
|
29087
29087
|
b(v(G), { label: "是否显示" }, {
|
|
29088
29088
|
default: S(() => [
|
|
29089
|
-
b(v(
|
|
29089
|
+
b(v(je), {
|
|
29090
29090
|
modelValue: v(s).isShow,
|
|
29091
29091
|
"onUpdate:modelValue": o[4] || (o[4] = (c) => v(s).isShow = c)
|
|
29092
29092
|
}, null, 8, ["modelValue"])
|
|
@@ -29100,7 +29100,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29100
29100
|
default: S(() => [
|
|
29101
29101
|
b(v(G), { label: "默认值" }, {
|
|
29102
29102
|
default: S(() => [
|
|
29103
|
-
b(v(
|
|
29103
|
+
b(v(Ue), {
|
|
29104
29104
|
modelValue: v(s).defaultValue,
|
|
29105
29105
|
"onUpdate:modelValue": o[5] || (o[5] = (c) => v(s).defaultValue = c)
|
|
29106
29106
|
}, null, 8, ["modelValue"])
|
|
@@ -29200,15 +29200,15 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29200
29200
|
}
|
|
29201
29201
|
}
|
|
29202
29202
|
return (l, u) => {
|
|
29203
|
-
const h =
|
|
29204
|
-
return D(), K(
|
|
29203
|
+
const h = ce("el-col"), c = ce("el-input-number"), f = ce("el-radio"), d = ce("el-option"), p = ce("el-select");
|
|
29204
|
+
return D(), K(fe, null, [
|
|
29205
29205
|
ZT,
|
|
29206
|
-
v(a) ? (D(), K(
|
|
29206
|
+
v(a) ? (D(), K(fe, { key: 0 }, [
|
|
29207
29207
|
b(h, { span: 12 }, {
|
|
29208
29208
|
default: S(() => [
|
|
29209
29209
|
b(v(G), { label: "名称" }, {
|
|
29210
29210
|
default: S(() => [
|
|
29211
|
-
b(v(
|
|
29211
|
+
b(v(Ue), {
|
|
29212
29212
|
modelValue: v(a).name,
|
|
29213
29213
|
"onUpdate:modelValue": u[0] || (u[0] = (g) => v(a).name = g)
|
|
29214
29214
|
}, null, 8, ["modelValue"])
|
|
@@ -29294,7 +29294,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29294
29294
|
default: S(() => [
|
|
29295
29295
|
b(v(G), { label: "描述" }, {
|
|
29296
29296
|
default: S(() => [
|
|
29297
|
-
b(v(
|
|
29297
|
+
b(v(Ue), {
|
|
29298
29298
|
type: "textarea",
|
|
29299
29299
|
placeholder: "编辑字段描述信息",
|
|
29300
29300
|
modelValue: v(a).description,
|
|
@@ -29433,13 +29433,10 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29433
29433
|
], 64);
|
|
29434
29434
|
};
|
|
29435
29435
|
}
|
|
29436
|
-
}), XT = /* @__PURE__ */ Y("
|
|
29437
|
-
/* @__PURE__ */ Y("h3", null, "报表指标元数据设置"),
|
|
29438
|
-
/* @__PURE__ */ Y("div", { class: "tips" }, "如果需要增加计算列,可以在表格下方选择添加字段,将会在渲染时对其实时计算")
|
|
29439
|
-
], -1), AT = {
|
|
29436
|
+
}), XT = { class: "s2-data-config-dialog-title" }, AT = /* @__PURE__ */ Y("h3", null, "报表指标元数据设置", -1), VT = { class: "mulit-head" }, DT = {
|
|
29440
29437
|
key: 0,
|
|
29441
29438
|
class: "desinger-container"
|
|
29442
|
-
},
|
|
29439
|
+
}, MT = { class: "el-table-append-container" }, YT = /* @__PURE__ */ Y("i", { class: "iconfont icon-add" }, null, -1), LT = /* @__PURE__ */ Y("i", { class: "iconfont icon-info-circle" }, null, -1), UT = /* @__PURE__ */ Y("i", { class: "iconfont icon-info-circle" }, null, -1), IT = /* @__PURE__ */ wt({
|
|
29443
29440
|
__name: "meta-data-config",
|
|
29444
29441
|
setup (n) {
|
|
29445
29442
|
const e = pe(!1), t = xt(), { activeStatement: i } = Qt(t), r = Te(() => {
|
|
@@ -29509,10 +29506,10 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29509
29506
|
});
|
|
29510
29507
|
}
|
|
29511
29508
|
return (u, h) => {
|
|
29512
|
-
const c =
|
|
29513
|
-
return D(), K(
|
|
29509
|
+
const c = ce("el-alert"), f = ce("el-tooltip");
|
|
29510
|
+
return D(), K(fe, null, [
|
|
29514
29511
|
b(v(Ut), {
|
|
29515
|
-
onClick: h[0] || (h[0] = (
|
|
29512
|
+
onClick: h[0] || (h[0] = (d) => e.value = !0),
|
|
29516
29513
|
type: "success",
|
|
29517
29514
|
plain: ""
|
|
29518
29515
|
}, {
|
|
@@ -29525,34 +29522,71 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29525
29522
|
fullscreen: "",
|
|
29526
29523
|
class: "s2-data-config-dialog",
|
|
29527
29524
|
modelValue: e.value,
|
|
29528
|
-
"onUpdate:modelValue": h[
|
|
29525
|
+
"onUpdate:modelValue": h[3] || (h[3] = (d) => e.value = d)
|
|
29529
29526
|
}, {
|
|
29530
29527
|
header: S(() => [
|
|
29531
|
-
XT
|
|
29528
|
+
Y("div", XT, [
|
|
29529
|
+
AT,
|
|
29530
|
+
Y("div", VT, [
|
|
29531
|
+
b(c, {
|
|
29532
|
+
title: "开启多表头后,会根据分隔符分隔字段名,进行多表头渲染",
|
|
29533
|
+
type: "warning",
|
|
29534
|
+
closable: !1,
|
|
29535
|
+
"show-icon": ""
|
|
29536
|
+
}),
|
|
29537
|
+
b(v(cr), { inline: "" }, {
|
|
29538
|
+
default: S(() => [
|
|
29539
|
+
b(v(G), { label: "开启多表头" }, {
|
|
29540
|
+
default: S(() => [
|
|
29541
|
+
b(v(je), {
|
|
29542
|
+
modelValue: v(i).custom.mulitHead,
|
|
29543
|
+
"onUpdate:modelValue": h[1] || (h[1] = (d) => v(i).custom.mulitHead = d),
|
|
29544
|
+
"inline-prompt": "",
|
|
29545
|
+
"active-text": "多表头",
|
|
29546
|
+
"inactive-text": "单表头"
|
|
29547
|
+
}, null, 8, ["modelValue"])
|
|
29548
|
+
]),
|
|
29549
|
+
_: 1
|
|
29550
|
+
}),
|
|
29551
|
+
b(v(G), { label: "设置多表头分隔符" }, {
|
|
29552
|
+
default: S(() => [
|
|
29553
|
+
b(v(Ue), {
|
|
29554
|
+
class: "split-input",
|
|
29555
|
+
modelValue: v(i).custom.columns,
|
|
29556
|
+
"onUpdate:modelValue": h[2] || (h[2] = (d) => v(i).custom.columns = d)
|
|
29557
|
+
}, null, 8, ["modelValue"])
|
|
29558
|
+
]),
|
|
29559
|
+
_: 1
|
|
29560
|
+
})
|
|
29561
|
+
]),
|
|
29562
|
+
_: 1
|
|
29563
|
+
})
|
|
29564
|
+
])
|
|
29565
|
+
])
|
|
29532
29566
|
]),
|
|
29533
29567
|
default: S(() => [
|
|
29534
|
-
v(i) ? (D(), K("div",
|
|
29568
|
+
v(i) ? (D(), K("div", DT, [
|
|
29535
29569
|
b(v(oO), {
|
|
29536
29570
|
border: "",
|
|
29537
29571
|
"row-key": "field",
|
|
29538
29572
|
data: v(r)
|
|
29539
29573
|
}, {
|
|
29540
29574
|
append: S(() => [
|
|
29541
|
-
Y("div",
|
|
29575
|
+
Y("div", MT, [
|
|
29542
29576
|
b(v(Ut), {
|
|
29543
29577
|
plain: "",
|
|
29544
29578
|
type: "success",
|
|
29545
29579
|
onClick: l
|
|
29546
29580
|
}, {
|
|
29547
29581
|
default: S(() => [
|
|
29548
|
-
|
|
29582
|
+
YT,
|
|
29549
29583
|
N(" 添加字段 "),
|
|
29550
|
-
b(
|
|
29584
|
+
b(f, {
|
|
29551
29585
|
content: "如果要对当前行的数据进行计算,可以通过添加自定义字段来处理",
|
|
29552
29586
|
placement: "top-end"
|
|
29553
29587
|
}, {
|
|
29554
29588
|
default: S(() => [
|
|
29555
|
-
|
|
29589
|
+
LT
|
|
29556
29590
|
]),
|
|
29557
29591
|
_: 1
|
|
29558
29592
|
})
|
|
@@ -29569,21 +29603,21 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29569
29603
|
b(v(un), { label: "" }, {
|
|
29570
29604
|
header: S(() => [
|
|
29571
29605
|
N(" 字段名 "),
|
|
29572
|
-
b(
|
|
29606
|
+
b(f, {
|
|
29573
29607
|
content: "会被报表的角头、列头使用,用来提示用户报表所展示的数据是什么内容",
|
|
29574
29608
|
placement: "top-end"
|
|
29575
29609
|
}, {
|
|
29576
29610
|
default: S(() => [
|
|
29577
|
-
|
|
29611
|
+
UT
|
|
29578
29612
|
]),
|
|
29579
29613
|
_: 1
|
|
29580
29614
|
})
|
|
29581
29615
|
]),
|
|
29582
|
-
default: S(({ row:
|
|
29583
|
-
b(v(
|
|
29584
|
-
modelValue:
|
|
29585
|
-
"onUpdate:modelValue": (
|
|
29586
|
-
onInput: (
|
|
29616
|
+
default: S(({ row: d, $index: p }) => [
|
|
29617
|
+
b(v(Ue), {
|
|
29618
|
+
modelValue: d.name,
|
|
29619
|
+
"onUpdate:modelValue": (g) => d.name = g,
|
|
29620
|
+
onInput: (g) => o(g, p)
|
|
29587
29621
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onInput"])
|
|
29588
29622
|
]),
|
|
29589
29623
|
_: 1
|
|
@@ -29597,12 +29631,12 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29597
29631
|
align: "center",
|
|
29598
29632
|
width: "400"
|
|
29599
29633
|
}, {
|
|
29600
|
-
default: S(({ row:
|
|
29634
|
+
default: S(({ row: d, $index: p }) => [
|
|
29601
29635
|
b(v(Ut), {
|
|
29602
29636
|
text: "",
|
|
29603
29637
|
type: "danger",
|
|
29604
29638
|
size: "small",
|
|
29605
|
-
onClick: (
|
|
29639
|
+
onClick: (g) => s(d, p)
|
|
29606
29640
|
}, {
|
|
29607
29641
|
default: S(() => [
|
|
29608
29642
|
N(" 删除 ")
|
|
@@ -29622,28 +29656,29 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29622
29656
|
], 64);
|
|
29623
29657
|
};
|
|
29624
29658
|
}
|
|
29625
|
-
})
|
|
29659
|
+
});
|
|
29660
|
+
const WT = {
|
|
29626
29661
|
key: 0,
|
|
29627
29662
|
class: "desinger-container static-data"
|
|
29628
|
-
},
|
|
29663
|
+
}, jT = { class: "data-source-title" }, NT = /* @__PURE__ */ Y("div", { class: "data-source-title-text" }, "当前报表数据来源", -1), qT = /* @__PURE__ */ Y("div", { class: "data-source-title-text" }, "选择报表数据来源", -1), zT = {
|
|
29629
29664
|
key: 0,
|
|
29630
29665
|
class: "data-source-list"
|
|
29631
|
-
},
|
|
29666
|
+
}, GT = {
|
|
29632
29667
|
key: 1,
|
|
29633
29668
|
class: "data-source-list"
|
|
29634
|
-
},
|
|
29669
|
+
}, BT = { class: "data-source-item" }, FT = { class: "data-source-name" }, HT = { class: "data-source-name-context" }, KT = { class: "data-source-columns" }, JT = /* @__PURE__ */ Y("div", { class: "custom-from-item-label" }, [
|
|
29635
29670
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-context" }, "是否分页"),
|
|
29636
29671
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-tips" }, "当数据量很大时,则可以启用分页,对数据进行分页展示")
|
|
29637
|
-
], -1),
|
|
29672
|
+
], -1), e5 = /* @__PURE__ */ Y("div", { class: "custom-from-item-label" }, [
|
|
29638
29673
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-context" }, "默认分页页数"),
|
|
29639
29674
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-tips" }, "当数据分页加载时,每页数据量设置")
|
|
29640
|
-
], -1),
|
|
29675
|
+
], -1), t5 = /* @__PURE__ */ Y("div", { class: "custom-from-item-label" }, [
|
|
29641
29676
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-context" }, "分页下拉数据"),
|
|
29642
29677
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-tips" }, "分页每页数据量设置")
|
|
29643
|
-
], -1),
|
|
29678
|
+
], -1), i5 = { class: "data-pagesizes" }, n5 = /* @__PURE__ */ Y("div", { class: "custom-from-item-label" }, [
|
|
29644
29679
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-context" }, "数据前置处理函数"),
|
|
29645
29680
|
/* @__PURE__ */ Y("div", { class: "custom-from-item-label-tips" }, "多数据源时 allData 是数组,单数据源时 allData 是对象,params 筛选条件")
|
|
29646
|
-
], -1),
|
|
29681
|
+
], -1), r5 = /* @__PURE__ */ wt({
|
|
29647
29682
|
__name: "static-data-config",
|
|
29648
29683
|
setup (n) {
|
|
29649
29684
|
const e = xt(), t = pe(!1);
|
|
@@ -29740,11 +29775,11 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29740
29775
|
r.value && r.value.data.staticData && (r.value.data.staticData = x);
|
|
29741
29776
|
}
|
|
29742
29777
|
});
|
|
29743
|
-
return
|
|
29778
|
+
return Qr(() => {
|
|
29744
29779
|
Array.isArray(T.value) && T.value.length;
|
|
29745
29780
|
}), (x, $) => {
|
|
29746
|
-
const Q =
|
|
29747
|
-
return D(), K(
|
|
29781
|
+
const Q = ce("el-checkbox"), k = ce("el-checkbox-group"), C = ce("el-tag"), R = ce("el-col"), y = ce("el-switch"), w = ce("el-form-item"), Z = ce("el-input"), E = ce("el-form"), X = ce("el-row");
|
|
29782
|
+
return D(), K(fe, null, [
|
|
29748
29783
|
b(v(Ut), {
|
|
29749
29784
|
onClick: i,
|
|
29750
29785
|
type: "success",
|
|
@@ -29763,14 +29798,14 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29763
29798
|
"onUpdate:modelValue": $[5] || ($[5] = (j) => t.value = j)
|
|
29764
29799
|
}, {
|
|
29765
29800
|
default: S(() => [
|
|
29766
|
-
v(r) ? (D(), K("div",
|
|
29801
|
+
v(r) ? (D(), K("div", WT, [
|
|
29767
29802
|
b(X, { class: "process-data" }, {
|
|
29768
29803
|
default: S(() => [
|
|
29769
29804
|
b(R, { span: 8 }, {
|
|
29770
29805
|
default: S(() => [
|
|
29771
|
-
Y("div",
|
|
29772
|
-
a.value ? (D(), K(
|
|
29773
|
-
|
|
29806
|
+
Y("div", jT, [
|
|
29807
|
+
a.value ? (D(), K(fe, { key: 1 }, [
|
|
29808
|
+
qT,
|
|
29774
29809
|
b(v(Ut), {
|
|
29775
29810
|
type: "text",
|
|
29776
29811
|
loading: u.value,
|
|
@@ -29781,8 +29816,8 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29781
29816
|
]),
|
|
29782
29817
|
_: 1
|
|
29783
29818
|
}, 8, ["loading"])
|
|
29784
|
-
], 64)) : (D(), K(
|
|
29785
|
-
|
|
29819
|
+
], 64)) : (D(), K(fe, { key: 0 }, [
|
|
29820
|
+
NT,
|
|
29786
29821
|
b(v(Ut), {
|
|
29787
29822
|
type: "text",
|
|
29788
29823
|
onClick: c
|
|
@@ -29794,13 +29829,13 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29794
29829
|
})
|
|
29795
29830
|
], 64))
|
|
29796
29831
|
]),
|
|
29797
|
-
a.value ? (D(), K("div",
|
|
29832
|
+
a.value ? (D(), K("div", zT, [
|
|
29798
29833
|
b(k, {
|
|
29799
29834
|
modelValue: l.value,
|
|
29800
29835
|
"onUpdate:modelValue": $[0] || ($[0] = (j) => l.value = j)
|
|
29801
29836
|
}, {
|
|
29802
29837
|
default: S(() => [
|
|
29803
|
-
(D(!0), K(
|
|
29838
|
+
(D(!0), K(fe, null, Je(o.value, (j) => (D(), ee(Q, {
|
|
29804
29839
|
label: j.id
|
|
29805
29840
|
}, {
|
|
29806
29841
|
default: S(() => [
|
|
@@ -29811,13 +29846,13 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29811
29846
|
]),
|
|
29812
29847
|
_: 1
|
|
29813
29848
|
}, 8, ["modelValue"])
|
|
29814
|
-
])) : (D(), K("div",
|
|
29815
|
-
(D(!0), K(
|
|
29816
|
-
Y("div", GT, [
|
|
29817
|
-
Y("div", BT, De(j.name) + " (" + De(j.url) + ")", 1)
|
|
29818
|
-
]),
|
|
29849
|
+
])) : (D(), K("div", GT, [
|
|
29850
|
+
(D(!0), K(fe, null, Je(v(r).data.source, (j) => (D(), K("div", BT, [
|
|
29819
29851
|
Y("div", FT, [
|
|
29820
|
-
(
|
|
29852
|
+
Y("div", HT, De(j.name) + " (" + De(j.url) + ")", 1)
|
|
29853
|
+
]),
|
|
29854
|
+
Y("div", KT, [
|
|
29855
|
+
(D(!0), K(fe, null, Je(j.columns, (q) => (D(), ee(C, null, {
|
|
29821
29856
|
default: S(() => [
|
|
29822
29857
|
N(De(q.columnName), 1)
|
|
29823
29858
|
]),
|
|
@@ -29835,7 +29870,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29835
29870
|
default: S(() => [
|
|
29836
29871
|
b(w, { label: "" }, {
|
|
29837
29872
|
label: S(() => [
|
|
29838
|
-
|
|
29873
|
+
JT
|
|
29839
29874
|
]),
|
|
29840
29875
|
default: S(() => [
|
|
29841
29876
|
b(y, {
|
|
@@ -29848,7 +29883,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29848
29883
|
}),
|
|
29849
29884
|
v(r).data.pagination ? (D(), ee(w, { key: 0 }, {
|
|
29850
29885
|
label: S(() => [
|
|
29851
|
-
|
|
29886
|
+
e5
|
|
29852
29887
|
]),
|
|
29853
29888
|
default: S(() => [
|
|
29854
29889
|
b(Z, {
|
|
@@ -29860,11 +29895,11 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29860
29895
|
})) : ue("", !0),
|
|
29861
29896
|
v(r).data.pagination ? (D(), ee(w, { key: 1 }, {
|
|
29862
29897
|
label: S(() => [
|
|
29863
|
-
|
|
29898
|
+
t5
|
|
29864
29899
|
]),
|
|
29865
29900
|
default: S(() => [
|
|
29866
|
-
Y("div",
|
|
29867
|
-
(D(!0), K(
|
|
29901
|
+
Y("div", i5, [
|
|
29902
|
+
(D(!0), K(fe, null, Je(s.value, (j, q) => (D(), ee(C, {
|
|
29868
29903
|
closable: "",
|
|
29869
29904
|
key: j,
|
|
29870
29905
|
"disable-transitions": !1,
|
|
@@ -29901,7 +29936,7 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29901
29936
|
})) : ue("", !0),
|
|
29902
29937
|
b(w, null, {
|
|
29903
29938
|
label: S(() => [
|
|
29904
|
-
|
|
29939
|
+
n5
|
|
29905
29940
|
]),
|
|
29906
29941
|
default: S(() => [
|
|
29907
29942
|
b(pn, {
|
|
@@ -29937,10 +29972,10 @@ const $T = { class: "chart-series-box" }, kT = {
|
|
|
29937
29972
|
};
|
|
29938
29973
|
}
|
|
29939
29974
|
});
|
|
29940
|
-
const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold"><text id="↓" fill="none"><tspan x="-0.225097656" y="8.5">↓</tspan></text></g></svg>', ArrowUp: '<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold"><text id="↑" fill="none"><tspan x="-0.225097656" y="8.5">↑</tspan></text></g></svg>', CellDown: '<?xml version="1.0" encoding="UTF-8"?><svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- Generator: Sketch 58 (84663) - https://sketch.com --><title>down</title><desc>Created with Sketch.</desc><g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><polygon id="down" fill="none" transform="translate(3.500000, 4.500000) scale(1, -1) translate(-3.500000, -4.500000) " points="3.5 0 7 9 0 9"></polygon></g></svg>', CellUp: '<?xml version="1.0" encoding="UTF-8"?><svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- Generator: Sketch 58 (84663) - https://sketch.com --><title>up</title><desc>Created with Sketch.</desc><g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><polygon id="up" fill="none" points="3.5 0 7 9 0 9"></polygon></g></svg> ', GlobalAsc: '<svg t="1557124621626" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17452" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 626.944h176c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8h-176A8 8 0 0 1 384 857.984v-56c0-4.416 3.584-8 8-8z m0-424h368c4.416 0 8 3.648 8 8v56a8 8 0 0 1-8 8h-368A8 8 0 0 1 384 433.984v-56c0-4.352 3.584-8 8-8z m528-139.968h-528A8 8 0 0 1 384 222.016v-56c0-4.416 3.584-8 8-8h528c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z m-256 424h-272A8 8 0 0 1 384 646.016v-56c0-4.416 3.584-8 8-8h272c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z" p-id="17453"></path></svg>', GlobalDesc: '<svg t="1557124685600" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17561" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h176A8 8 0 0 0 576 222.016v-56a8 8 0 0 0-8-8h-176A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h368a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-368A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m-256-424h-272A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h272a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17562"></path></svg>', GroupAsc: '<svg t="1557124695786" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17670" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 62.976h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17671"></path></svg>', GroupDesc: '<svg t="1557124710652" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17779" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17780"></path></svg>', GroupNone: '<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="设计输出" stroke="none" stroke-width="1" fill-opacity="0.25" fill-rule="evenodd"><g id="设计输出-移动端指标详情页-阅读端" transform="translate(-3275.000000, -724.000000)" fill-rule="nonzero"><g id="编组-39" transform="translate(3064.500000, 667.000000)"><g id="编组-36" transform="translate(80.500000, 44.000000)"><g id="不排序" transform="translate(130.000000, 13.000000)"><path d="M12.0009375,12.40625 C12.0696875,12.40625 12.1259375,12.4625 12.1259375,12.53125 L12.1259375,12.53125 L12.1259375,13.40625 C12.1259375,13.475 12.0696875,13.53125 12.0009375,13.53125 L12.0009375,13.53125 L6.25093747,13.53125 C6.18218747,13.53125 6.12593747,13.475 6.12593747,13.40625 L6.12593747,13.40625 L6.12593747,12.53125 C6.12593747,12.4625 6.18218747,12.40625 6.25093747,12.40625 L6.25093747,12.40625 Z M2.93949997,2.5801875 L2.97437497,2.6109375 L4.72437497,4.828125 C4.78062497,4.89776786 4.74503823,4.99725765 4.66779698,5.02426203 L4.62593747,5.03125 L3.438,5.03089062 L3.43843747,10.9691406 L4.62593747,10.9691406 C4.73062497,10.9691406 4.78999997,11.0910156 4.72437497,11.1722656 L2.97437497,13.3894531 C2.92437497,13.4535156 2.82749997,13.4535156 2.77749997,13.3894531 L1.02749997,11.1722656 C0.961874969,11.0894531 1.02124997,10.9691406 1.12593747,10.9691406 L2.31343747,10.9691406 L2.313,5.03089062 L1.12593747,5.03125 C1.03620533,5.03125 0.979764,4.94285714 1.00679571,4.8654519 L1.02749997,4.828125 L2.77749997,2.6109375 C2.81749997,2.5596875 2.88749997,2.5494375 2.93949997,2.5801875 Z M10.5009375,9.09375 C10.5696875,9.09375 10.6259375,9.15 10.6259375,9.21875 L10.6259375,9.21875 L10.6259375,10.09375 C10.6259375,10.1625 10.5696875,10.21875 10.5009375,10.21875 L10.5009375,10.21875 L6.25093747,10.21875 C6.18218747,10.21875 6.12593747,10.1625 6.12593747,10.09375 L6.12593747,10.09375 L6.12593747,9.21875 C6.12593747,9.15 6.18218747,9.09375 6.25093747,9.09375 L6.25093747,9.09375 Z M14.5009375,5.78125 C14.5696875,5.78125 14.6259375,5.8375 14.6259375,5.90625 L14.6259375,5.90625 L14.6259375,6.78125 C14.6259375,6.85 14.5696875,6.90625 14.5009375,6.90625 L14.5009375,6.90625 L6.25093747,6.90625 C6.18218747,6.90625 6.12593747,6.85 6.12593747,6.78125 L6.12593747,6.78125 L6.12593747,5.90625 C6.12593747,5.8375 6.18218747,5.78125 6.25093747,5.78125 L6.25093747,5.78125 Z M9.00093747,2.46875 C9.06968747,2.46875 9.12593747,2.525 9.12593747,2.59375 L9.12593747,2.59375 L9.12593747,3.46875 C9.12593747,3.5375 9.06968747,3.59375 9.00093747,3.59375 L9.00093747,3.59375 L6.25093747,3.59375 C6.18218747,3.59375 6.12593747,3.5375 6.12593747,3.46875 L6.12593747,3.46875 L6.12593747,2.59375 C6.12593747,2.525 6.18218747,2.46875 6.25093747,2.46875 L6.25093747,2.46875 Z" id="形状结合"></path></g></g></g></g>q</g></svg>', InfoCircle: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1590389330617" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19656" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 64c-247.4 0-448 200.6-448 448s200.6 448 448 448 448-200.6 448-448-200.6-448-448-448z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="" p-id="19657"></path><path d="M464 336c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zM536 448h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-272c0-4.4-3.6-8-8-8z" fill="" p-id="19658"></path></svg>', ExpandColIcon: '<?xml version="1.0" encoding="UTF-8"?><svg width="23px" height="12px" viewBox="0 0 23 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>编组 8备份 3</title><g id="----隐藏列标注!" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="隐藏列标注" transform="translate(-275.000000, -824.000000)"><rect fill="#FFFFFF" x="0" y="0" width="1333" height="1167"></rect><g id="编组-8备份-3" transform="translate(275.000000, 824.000000)"><rect id="矩形" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="0.5" y="0.5" width="11" height="11"></rect><rect id="矩形备份-9" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="11.5" y="0.5" width="11" height="11"></rect><g id="7.Icon/arrow/15.down/fill" transform="translate(6.000000, 6.000000) rotate(90.000000) translate(-6.000000, -6.000000) " fill="#000000" fill-rule="nonzero" opacity="0.65"><path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path></g><g id="7.Icon/arrow/15.down/fill" transform="translate(17.000000, 6.000000) rotate(270.000000) translate(-17.000000, -6.000000) translate(11.000000, 0.000000)" fill="#000000" fill-rule="nonzero" opacity="0.65"><path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path></g></g><line x1="286.5" y1="813" x2="286.5" y2="864.5" id="路径-2备份-3" stroke="#000000" opacity="0.25"></line></g></g></svg>', Minus: '<svg t="1557140120188" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16909" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <defs> <style type="text/css"> </style> </defs> <path d="M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" p-id="16910"> </path> <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z" p-id="16911"> </path></svg>', Plus: '<svg t="1557140186692" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17025" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <defs> <style type="text/css"> </style> </defs> <path d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" p-id="17026"> </path> <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z" p-id="17027"> </path></svg>', SortDownSelected: '<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path></svg>', SortDown: '<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path fill-opacity="0.45"d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path></svg>', SortUpSelected: '<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"p-id="17621"></path></svg>', SortUp: '<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path fill-opacity="0.45"d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"p-id="17621"></path></svg>', Trend: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1596433821690" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20229" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6c-3.1-3.1-8.2-3.1-11.3 0l-230 229.9L461.4 404c-3.1-3.1-8.2-3.1-11.3 0L266.3 586.7c-3.1 3.1-3.1 8.2 0 11.3l39.5 39.7z" p-id="20230"></path></svg>', DrillDownIcon: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1608030723688" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21482" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M547.648 696a32 32 0 0 1 31.488 26.24l0.512 5.76v151.68l145.216-144.512a32 32 0 0 1 40.832-3.648l4.416 3.712a32 32 0 0 1 3.584 40.832l-3.712 4.48-203.072 202.24a32 32 0 0 1-40.768 3.648l-4.416-3.712-202.24-202.24a32 32 0 0 1 40.832-48.96l4.416 3.712 150.912 150.912v-158.144a32 32 0 0 1 32-32z m194.56-529.28l4.928 3.072 233.792 180.224a32 32 0 0 1 1.728 49.28l-4.864 3.52-409.792 245.568a32 32 0 0 1-27.328 2.624l-5.184-2.432-422.4-245.568a32 32 0 0 1-7.552-49.28l4.544-4.032 242.816-180.288a32 32 0 0 1 42.432 47.552l-4.288 3.84-203.84 151.296 364.16 211.648 353.28-211.712-196.608-151.552a32 32 0 0 1-8.896-40l3.136-4.864a32 32 0 0 1 40-8.96zM547.712 28.672a32 32 0 0 1 31.488 26.24l0.512 5.76v396.992a32 32 0 0 1-63.488 5.76l-0.512-5.76V60.736a32 32 0 0 1 32-32z" p-id="21483" fill="currentColor"></path></svg>', EyeOutlined: '<svg viewBox="64 64 896 896" focusable="false" data-icon="eye" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg>', Empty: '<svg width="64" height="41" viewBox="0 0 64 41" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 1)" fill="none" fill-rule="evenodd"><ellipse fill="#f5f5f5" cx="32" cy="33" rx="32" ry="7"></ellipse><g fill-rule="nonzero" stroke="#d9d9d9"><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa"></path></g></g></svg>' }, r5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
29975
|
+
const s5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold"><text id="↓" fill="none"><tspan x="-0.225097656" y="8.5">↓</tspan></text></g></svg>', ArrowUp: '<svg width="10px" height="10px" viewBox="0 0 10 10" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" font-family="Roboto, PingFangSC, Microsoft YaHei, Arial, sans-serif" font-size="12" font-weight="bold"><text id="↑" fill="none"><tspan x="-0.225097656" y="8.5">↑</tspan></text></g></svg>', CellDown: '<?xml version="1.0" encoding="UTF-8"?><svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- Generator: Sketch 58 (84663) - https://sketch.com --><title>down</title><desc>Created with Sketch.</desc><g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><polygon id="down" fill="none" transform="translate(3.500000, 4.500000) scale(1, -1) translate(-3.500000, -4.500000) " points="3.5 0 7 9 0 9"></polygon></g></svg>', CellUp: '<?xml version="1.0" encoding="UTF-8"?><svg width="7px" height="9px" viewBox="0 0 7 9" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><!-- Generator: Sketch 58 (84663) - https://sketch.com --><title>up</title><desc>Created with Sketch.</desc><g id="一期开发" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><polygon id="up" fill="none" points="3.5 0 7 9 0 9"></polygon></g></svg> ', GlobalAsc: '<svg t="1557124621626" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17452" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 626.944h176c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8h-176A8 8 0 0 1 384 857.984v-56c0-4.416 3.584-8 8-8z m0-424h368c4.416 0 8 3.648 8 8v56a8 8 0 0 1-8 8h-368A8 8 0 0 1 384 433.984v-56c0-4.352 3.584-8 8-8z m528-139.968h-528A8 8 0 0 1 384 222.016v-56c0-4.416 3.584-8 8-8h528c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z m-256 424h-272A8 8 0 0 1 384 646.016v-56c0-4.416 3.584-8 8-8h272c4.416 0 8 3.584 8 8v56a8 8 0 0 1-8 8z" p-id="17453"></path></svg>', GlobalDesc: '<svg t="1557124685600" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17561" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h176A8 8 0 0 0 576 222.016v-56a8 8 0 0 0-8-8h-176A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h368a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-368A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m-256-424h-272A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h272a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17562"></path></svg>', GroupAsc: '<svg t="1557124695786" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17670" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 167.04a8 8 0 0 0-12.544 0L57.728 309.056A8 8 0 0 0 64 321.984h76.032v530.048c0 4.352 3.584 7.936 7.936 7.936h56.064a8 8 0 0 0 7.936-7.936V321.92H288a8 8 0 0 0 6.272-12.992l-112-141.888z m209.728 62.976h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17671"></path></svg>', GroupDesc: '<svg t="1557124710652" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17779" xmlns:xlink="http://www.w3.org/1999/xlink" width="14" height="14"><defs><style type="text/css"></style></defs><path d="M182.272 856.96a8 8 0 0 1-12.544 0l-112-141.952A8 8 0 0 1 64 702.08h76.032V172.032c0-4.416 3.584-8 7.936-8h56.064c4.352 0 7.936 3.584 7.936 8v529.984H288c6.72 0 10.496 7.808 6.272 12.992l-112 141.888z m209.728-626.944h304A8 8 0 0 0 704 222.016v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 166.016v56c0 4.416 3.584 8 8 8z m0 424h304a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8h-304A8 8 0 0 0 384 590.016v56c0 4.416 3.584 8 8 8z m528 139.968h-528a8 8 0 0 0-8 8v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z m0-424h-528A8 8 0 0 0 384 377.984v56c0 4.416 3.584 8 8 8h528a8 8 0 0 0 8-8v-56a8 8 0 0 0-8-8z" p-id="17780"></path></svg>', GroupNone: '<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g id="设计输出" stroke="none" stroke-width="1" fill-opacity="0.25" fill-rule="evenodd"><g id="设计输出-移动端指标详情页-阅读端" transform="translate(-3275.000000, -724.000000)" fill-rule="nonzero"><g id="编组-39" transform="translate(3064.500000, 667.000000)"><g id="编组-36" transform="translate(80.500000, 44.000000)"><g id="不排序" transform="translate(130.000000, 13.000000)"><path d="M12.0009375,12.40625 C12.0696875,12.40625 12.1259375,12.4625 12.1259375,12.53125 L12.1259375,12.53125 L12.1259375,13.40625 C12.1259375,13.475 12.0696875,13.53125 12.0009375,13.53125 L12.0009375,13.53125 L6.25093747,13.53125 C6.18218747,13.53125 6.12593747,13.475 6.12593747,13.40625 L6.12593747,13.40625 L6.12593747,12.53125 C6.12593747,12.4625 6.18218747,12.40625 6.25093747,12.40625 L6.25093747,12.40625 Z M2.93949997,2.5801875 L2.97437497,2.6109375 L4.72437497,4.828125 C4.78062497,4.89776786 4.74503823,4.99725765 4.66779698,5.02426203 L4.62593747,5.03125 L3.438,5.03089062 L3.43843747,10.9691406 L4.62593747,10.9691406 C4.73062497,10.9691406 4.78999997,11.0910156 4.72437497,11.1722656 L2.97437497,13.3894531 C2.92437497,13.4535156 2.82749997,13.4535156 2.77749997,13.3894531 L1.02749997,11.1722656 C0.961874969,11.0894531 1.02124997,10.9691406 1.12593747,10.9691406 L2.31343747,10.9691406 L2.313,5.03089062 L1.12593747,5.03125 C1.03620533,5.03125 0.979764,4.94285714 1.00679571,4.8654519 L1.02749997,4.828125 L2.77749997,2.6109375 C2.81749997,2.5596875 2.88749997,2.5494375 2.93949997,2.5801875 Z M10.5009375,9.09375 C10.5696875,9.09375 10.6259375,9.15 10.6259375,9.21875 L10.6259375,9.21875 L10.6259375,10.09375 C10.6259375,10.1625 10.5696875,10.21875 10.5009375,10.21875 L10.5009375,10.21875 L6.25093747,10.21875 C6.18218747,10.21875 6.12593747,10.1625 6.12593747,10.09375 L6.12593747,10.09375 L6.12593747,9.21875 C6.12593747,9.15 6.18218747,9.09375 6.25093747,9.09375 L6.25093747,9.09375 Z M14.5009375,5.78125 C14.5696875,5.78125 14.6259375,5.8375 14.6259375,5.90625 L14.6259375,5.90625 L14.6259375,6.78125 C14.6259375,6.85 14.5696875,6.90625 14.5009375,6.90625 L14.5009375,6.90625 L6.25093747,6.90625 C6.18218747,6.90625 6.12593747,6.85 6.12593747,6.78125 L6.12593747,6.78125 L6.12593747,5.90625 C6.12593747,5.8375 6.18218747,5.78125 6.25093747,5.78125 L6.25093747,5.78125 Z M9.00093747,2.46875 C9.06968747,2.46875 9.12593747,2.525 9.12593747,2.59375 L9.12593747,2.59375 L9.12593747,3.46875 C9.12593747,3.5375 9.06968747,3.59375 9.00093747,3.59375 L9.00093747,3.59375 L6.25093747,3.59375 C6.18218747,3.59375 6.12593747,3.5375 6.12593747,3.46875 L6.12593747,3.46875 L6.12593747,2.59375 C6.12593747,2.525 6.18218747,2.46875 6.25093747,2.46875 L6.25093747,2.46875 Z" id="形状结合"></path></g></g></g></g>q</g></svg>', InfoCircle: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1590389330617" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="19656" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M512 64c-247.4 0-448 200.6-448 448s200.6 448 448 448 448-200.6 448-448-200.6-448-448-448z m0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z" fill="" p-id="19657"></path><path d="M464 336c0 26.5 21.5 48 48 48s48-21.5 48-48-21.5-48-48-48-48 21.5-48 48zM536 448h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-272c0-4.4-3.6-8-8-8z" fill="" p-id="19658"></path></svg>', ExpandColIcon: '<?xml version="1.0" encoding="UTF-8"?><svg width="23px" height="12px" viewBox="0 0 23 12" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><title>编组 8备份 3</title><g id="----隐藏列标注!" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="隐藏列标注" transform="translate(-275.000000, -824.000000)"><rect fill="#FFFFFF" x="0" y="0" width="1333" height="1167"></rect><g id="编组-8备份-3" transform="translate(275.000000, 824.000000)"><rect id="矩形" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="0.5" y="0.5" width="11" height="11"></rect><rect id="矩形备份-9" stroke-opacity="0.25" stroke="#000000" fill="#F7F7F7" x="11.5" y="0.5" width="11" height="11"></rect><g id="7.Icon/arrow/15.down/fill" transform="translate(6.000000, 6.000000) rotate(90.000000) translate(-6.000000, -6.000000) " fill="#000000" fill-rule="nonzero" opacity="0.65"><path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path></g><g id="7.Icon/arrow/15.down/fill" transform="translate(17.000000, 6.000000) rotate(270.000000) translate(-17.000000, -6.000000) translate(11.000000, 0.000000)" fill="#000000" fill-rule="nonzero" opacity="0.65"><path d="M7.25020811,6.37218077 L4.91348936,8.20968077 C4.82677061,8.27764952 4.69903624,8.21671202 4.69903624,8.10655577 L4.69903624,4.43272764 C4.69903624,4.32257139 4.82677061,4.26046202 4.91348936,4.32960264 L7.25020811,6.16593077 C7.31700499,6.21866514 7.31700499,6.31944639 7.25020811,6.37218077 Z" id="fill" transform="translate(5.999671, 6.269385) rotate(90.000000) translate(-5.999671, -6.269385) "></path></g></g><line x1="286.5" y1="813" x2="286.5" y2="864.5" id="路径-2备份-3" stroke="#000000" opacity="0.25"></line></g></g></svg>', Minus: '<svg t="1557140120188" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="16909" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <defs> <style type="text/css"> </style> </defs> <path d="M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" p-id="16910"> </path> <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z" p-id="16911"> </path></svg>', Plus: '<svg t="1557140186692" class="icon" style="" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17025" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"> <defs> <style type="text/css"> </style> </defs> <path d="M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z" p-id="17026"> </path> <path d="M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32z m-40 728H184V184h656v656z" p-id="17027"> </path></svg>', SortDownSelected: '<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path></svg>', SortDown: '<svg t="1565940955886" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17472" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path fill-opacity="0.45"d="M948 392.992l-403.008 488.99200001Q532 896 512.992 896t-32-14.016L76 392.992q-18.016-20.992-7.008-46.016T108 321.98400001L916 321.98400001q28 0 39.008 24.99199999T948 392.992z"p-id="17473" data-spm-anchor-id="a313x.7781069.0.i2" class="selected"></path></svg>', SortUpSelected: '<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"p-id="17621"></path></svg>', SortUp: '<svg t="1565940979768" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="17620" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path fill-opacity="0.45"d="M76 631.008l403.008-488.99200001Q492 128 511.008 128t32 14.016L948 631.008q18.016 20.992 7.008 46.016T916 702.01599999L108 702.01599999q-28 0-39.008-24.99199999T76 631.008z"p-id="17621"></path></svg>', Trend: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1596433821690" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="20229" width="16" height="16" xmlns:xlink="http://www.w3.org/1999/xlink"><defs><style type="text/css"></style></defs><path d="M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM305.8 637.7c3.1 3.1 8.1 3.1 11.3 0l138.3-137.6L583 628.5c3.1 3.1 8.2 3.1 11.3 0l275.4-275.3c3.1-3.1 3.1-8.2 0-11.3l-39.6-39.6c-3.1-3.1-8.2-3.1-11.3 0l-230 229.9L461.4 404c-3.1-3.1-8.2-3.1-11.3 0L266.3 586.7c-3.1 3.1-3.1 8.2 0 11.3l39.5 39.7z" p-id="20230"></path></svg>', DrillDownIcon: '<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1608030723688" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="21482" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16"><defs><style type="text/css"></style></defs><path d="M547.648 696a32 32 0 0 1 31.488 26.24l0.512 5.76v151.68l145.216-144.512a32 32 0 0 1 40.832-3.648l4.416 3.712a32 32 0 0 1 3.584 40.832l-3.712 4.48-203.072 202.24a32 32 0 0 1-40.768 3.648l-4.416-3.712-202.24-202.24a32 32 0 0 1 40.832-48.96l4.416 3.712 150.912 150.912v-158.144a32 32 0 0 1 32-32z m194.56-529.28l4.928 3.072 233.792 180.224a32 32 0 0 1 1.728 49.28l-4.864 3.52-409.792 245.568a32 32 0 0 1-27.328 2.624l-5.184-2.432-422.4-245.568a32 32 0 0 1-7.552-49.28l4.544-4.032 242.816-180.288a32 32 0 0 1 42.432 47.552l-4.288 3.84-203.84 151.296 364.16 211.648 353.28-211.712-196.608-151.552a32 32 0 0 1-8.896-40l3.136-4.864a32 32 0 0 1 40-8.96zM547.712 28.672a32 32 0 0 1 31.488 26.24l0.512 5.76v396.992a32 32 0 0 1-63.488 5.76l-0.512-5.76V60.736a32 32 0 0 1 32-32z" p-id="21483" fill="currentColor"></path></svg>', EyeOutlined: '<svg viewBox="64 64 896 896" focusable="false" data-icon="eye" width="1em" height="1em" fill="currentColor" aria-hidden="true"><path d="M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"></path></svg>', Empty: '<svg width="64" height="41" viewBox="0 0 64 41" xmlns="http://www.w3.org/2000/svg"><g transform="translate(0 1)" fill="none" fill-rule="evenodd"><ellipse fill="#f5f5f5" cx="32" cy="33" rx="32" ry="7"></ellipse><g fill-rule="nonzero" stroke="#d9d9d9"><path d="M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"></path><path d="M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z" fill="#fafafa"></path></g></g></svg>' }, a5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
29941
29976
|
/* @__PURE__ */ Y("h3", null, "字段样式"),
|
|
29942
29977
|
/* @__PURE__ */ Y("div", { class: "tips" }, "可以选择多个字段,为他们统一设置样式规则,绝对字段表头及数据的显示规则")
|
|
29943
|
-
], -1),
|
|
29978
|
+
], -1), o5 = { class: "desinger-container condition-data-config" }, l5 = { class: "condition-list" }, u5 = ["onClick"], h5 = { class: "name-context" }, c5 = { class: "condition-list-item" }, f5 = /* @__PURE__ */ Y("div", { class: "iconfont icon-plus" }, null, -1), d5 = { class: "condition-form" }, p5 = ["innerHTML"], O5 = /* @__PURE__ */ wt({
|
|
29944
29979
|
__name: "condition-data-config",
|
|
29945
29980
|
setup (n) {
|
|
29946
29981
|
const e = xt(), { activeStatement: t } = Qt(e), i = pe([]);
|
|
@@ -29968,7 +30003,7 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
29968
30003
|
name: m
|
|
29969
30004
|
});
|
|
29970
30005
|
}), d;
|
|
29971
|
-
}), a = Te(() => Object.entries(
|
|
30006
|
+
}), a = Te(() => Object.entries(s5).map(([d, p]) => ({
|
|
29972
30007
|
value: d,
|
|
29973
30008
|
label: p
|
|
29974
30009
|
}))), o = pe(!1);
|
|
@@ -30011,8 +30046,8 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30011
30046
|
}), u.value === null && i.value.length && (u.value = i.value[0], h.value = 0);
|
|
30012
30047
|
}
|
|
30013
30048
|
return (d, p) => {
|
|
30014
|
-
const g =
|
|
30015
|
-
return D(), K(
|
|
30049
|
+
const g = ce("el-button"), m = ce("el-tag"), O = ce("el-scrollbar"), _ = ce("el-checkbox-group"), T = ce("el-color-picker"), x = ce("el-slider"), $ = ce("el-option"), Q = ce("el-select"), k = ce("el-input-number"), C = ce("el-form"), R = ce("el-empty"), y = ce("el-dialog");
|
|
30050
|
+
return D(), K(fe, null, [
|
|
30016
30051
|
b(g, {
|
|
30017
30052
|
onClick: l,
|
|
30018
30053
|
type: "success",
|
|
@@ -30030,14 +30065,14 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30030
30065
|
"onUpdate:modelValue": p[23] || (p[23] = (w) => o.value = w)
|
|
30031
30066
|
}, {
|
|
30032
30067
|
header: S(() => [
|
|
30033
|
-
|
|
30068
|
+
a5
|
|
30034
30069
|
]),
|
|
30035
30070
|
default: S(() => [
|
|
30036
|
-
Y("div",
|
|
30037
|
-
Y("div",
|
|
30071
|
+
Y("div", o5, [
|
|
30072
|
+
Y("div", l5, [
|
|
30038
30073
|
b(O, null, {
|
|
30039
30074
|
default: S(() => [
|
|
30040
|
-
(D(!0), K(
|
|
30075
|
+
(D(!0), K(fe, null, Je(i.value, (w, Z) => (D(), K("div", {
|
|
30041
30076
|
class: Wo(["condition-list-item", { active: Z === h.value }]),
|
|
30042
30077
|
key: w,
|
|
30043
30078
|
onClick: (E) => c(w, Z)
|
|
@@ -30080,36 +30115,36 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30080
30115
|
]),
|
|
30081
30116
|
_: 1
|
|
30082
30117
|
})),
|
|
30083
|
-
Y("span",
|
|
30084
|
-
(D(!0), K(
|
|
30118
|
+
Y("span", h5, De(w.name), 1),
|
|
30119
|
+
(D(!0), K(fe, null, Je(w.field, (E) => (D(), ee(m, { type: "info" }, {
|
|
30085
30120
|
default: S(() => [
|
|
30086
30121
|
N(De(v(r)[E]) + "(" + De(E) + ") ", 1)
|
|
30087
30122
|
]),
|
|
30088
30123
|
_: 2
|
|
30089
30124
|
}, 1024))), 256))
|
|
30090
|
-
], 10,
|
|
30125
|
+
], 10, u5))), 128))
|
|
30091
30126
|
]),
|
|
30092
30127
|
_: 1
|
|
30093
30128
|
}),
|
|
30094
|
-
Y("div",
|
|
30129
|
+
Y("div", c5, [
|
|
30095
30130
|
b(g, {
|
|
30096
30131
|
type: "success",
|
|
30097
30132
|
onClick: f
|
|
30098
30133
|
}, {
|
|
30099
30134
|
default: S(() => [
|
|
30100
|
-
|
|
30135
|
+
f5,
|
|
30101
30136
|
N(" 新增标记 ")
|
|
30102
30137
|
]),
|
|
30103
30138
|
_: 1
|
|
30104
30139
|
})
|
|
30105
30140
|
])
|
|
30106
30141
|
]),
|
|
30107
|
-
Y("div",
|
|
30142
|
+
Y("div", d5, [
|
|
30108
30143
|
u.value !== null && u.value !== void 0 ? (D(), ee(C, { key: 0 }, {
|
|
30109
30144
|
default: S(() => [
|
|
30110
30145
|
b(v(G), { label: "样式规则" }, {
|
|
30111
30146
|
default: S(() => [
|
|
30112
|
-
b(v(
|
|
30147
|
+
b(v(Ue), {
|
|
30113
30148
|
modelValue: u.value.name,
|
|
30114
30149
|
"onUpdate:modelValue": p[0] || (p[0] = (w) => u.value.name = w),
|
|
30115
30150
|
placeholder: "描述这条样式的作用或者判断规则"
|
|
@@ -30124,7 +30159,7 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30124
30159
|
"onUpdate:modelValue": p[1] || (p[1] = (w) => u.value.field = w)
|
|
30125
30160
|
}, {
|
|
30126
30161
|
default: S(() => [
|
|
30127
|
-
(D(!0), K(
|
|
30162
|
+
(D(!0), K(fe, null, Je(v(s), (w) => (D(), ee(v(Oi), {
|
|
30128
30163
|
label: w.name,
|
|
30129
30164
|
value: w.field
|
|
30130
30165
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -30173,7 +30208,7 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30173
30208
|
}),
|
|
30174
30209
|
b(v(G), { label: "是否开启自定义脚本" }, {
|
|
30175
30210
|
default: S(() => [
|
|
30176
|
-
b(v(
|
|
30211
|
+
b(v(je), {
|
|
30177
30212
|
style: { "margin-left": "8px" },
|
|
30178
30213
|
modelValue: u.value.isCustom,
|
|
30179
30214
|
"onUpdate:modelValue": p[3] || (p[3] = (w) => u.value.isCustom = w),
|
|
@@ -30196,8 +30231,8 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30196
30231
|
N("}")
|
|
30197
30232
|
]),
|
|
30198
30233
|
_: 1
|
|
30199
|
-
}, 8, ["modelValue"])) : (D(), K(
|
|
30200
|
-
u.value.type === "text" ? (D(), K(
|
|
30234
|
+
}, 8, ["modelValue"])) : (D(), K(fe, { key: 1 }, [
|
|
30235
|
+
u.value.type === "text" ? (D(), K(fe, { key: 0 }, [
|
|
30201
30236
|
b(v(G), { label: "颜色" }, {
|
|
30202
30237
|
default: S(() => [
|
|
30203
30238
|
b(T, {
|
|
@@ -30268,7 +30303,7 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30268
30303
|
]),
|
|
30269
30304
|
_: 1
|
|
30270
30305
|
}, 8, ["label"])
|
|
30271
|
-
], 64)) : u.value.type === "background" ? (D(), K(
|
|
30306
|
+
], 64)) : u.value.type === "background" ? (D(), K(fe, { key: 1 }, [
|
|
30272
30307
|
b(v(G), { label: "颜色" }, {
|
|
30273
30308
|
default: S(() => [
|
|
30274
30309
|
b(T, {
|
|
@@ -30281,14 +30316,14 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30281
30316
|
}),
|
|
30282
30317
|
b(v(G), { label: "内容反色" }, {
|
|
30283
30318
|
default: S(() => [
|
|
30284
|
-
b(v(
|
|
30319
|
+
b(v(je), {
|
|
30285
30320
|
modelValue: u.value.option.intelligentReverseTextColor,
|
|
30286
30321
|
"onUpdate:modelValue": p[11] || (p[11] = (w) => u.value.option.intelligentReverseTextColor = w)
|
|
30287
30322
|
}, null, 8, ["modelValue"])
|
|
30288
30323
|
]),
|
|
30289
30324
|
_: 1
|
|
30290
30325
|
})
|
|
30291
|
-
], 64)) : u.value.type === "icon" ? (D(), K(
|
|
30326
|
+
], 64)) : u.value.type === "icon" ? (D(), K(fe, { key: 2 }, [
|
|
30292
30327
|
b(v(G), { label: "颜色" }, {
|
|
30293
30328
|
default: S(() => [
|
|
30294
30329
|
b(T, {
|
|
@@ -30331,14 +30366,14 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30331
30366
|
"onUpdate:modelValue": p[14] || (p[14] = (w) => u.value.option.icon = w)
|
|
30332
30367
|
}, {
|
|
30333
30368
|
default: S(() => [
|
|
30334
|
-
(D(!0), K(
|
|
30369
|
+
(D(!0), K(fe, null, Je(v(a), (w) => (D(), ee($, {
|
|
30335
30370
|
value: w.value
|
|
30336
30371
|
}, {
|
|
30337
30372
|
default: S(() => [
|
|
30338
30373
|
Y("div", {
|
|
30339
30374
|
class: "s2-condition-icon-container",
|
|
30340
30375
|
innerHTML: w.label
|
|
30341
|
-
}, null, 8,
|
|
30376
|
+
}, null, 8, p5)
|
|
30342
30377
|
]),
|
|
30343
30378
|
_: 2
|
|
30344
30379
|
}, 1032, ["value"]))), 256))
|
|
@@ -30348,17 +30383,17 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30348
30383
|
]),
|
|
30349
30384
|
_: 1
|
|
30350
30385
|
})
|
|
30351
|
-
], 64)) : u.value.type === "interval" ? (D(), K(
|
|
30386
|
+
], 64)) : u.value.type === "interval" ? (D(), K(fe, { key: 3 }, [
|
|
30352
30387
|
b(v(G), { label: "是否双色" }, {
|
|
30353
30388
|
default: S(() => [
|
|
30354
|
-
b(v(
|
|
30389
|
+
b(v(je), {
|
|
30355
30390
|
modelValue: u.value.option.doubleColor,
|
|
30356
30391
|
"onUpdate:modelValue": p[15] || (p[15] = (w) => u.value.option.doubleColor = w)
|
|
30357
30392
|
}, null, 8, ["modelValue"])
|
|
30358
30393
|
]),
|
|
30359
30394
|
_: 1
|
|
30360
30395
|
}),
|
|
30361
|
-
u.value.option.doubleColor ? (D(), K(
|
|
30396
|
+
u.value.option.doubleColor ? (D(), K(fe, { key: 0 }, [
|
|
30362
30397
|
b(v(G), { label: "左边颜色" }, {
|
|
30363
30398
|
default: S(() => [
|
|
30364
30399
|
b(T, {
|
|
@@ -30403,14 +30438,14 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30403
30438
|
})),
|
|
30404
30439
|
b(v(G), { label: "是否自定义范围" }, {
|
|
30405
30440
|
default: S(() => [
|
|
30406
|
-
b(v(
|
|
30441
|
+
b(v(je), {
|
|
30407
30442
|
modelValue: u.value.option.isCompare,
|
|
30408
30443
|
"onUpdate:modelValue": p[20] || (p[20] = (w) => u.value.option.isCompare = w)
|
|
30409
30444
|
}, null, 8, ["modelValue"])
|
|
30410
30445
|
]),
|
|
30411
30446
|
_: 1
|
|
30412
30447
|
}),
|
|
30413
|
-
u.value.option.isCompare ? (D(), K(
|
|
30448
|
+
u.value.option.isCompare ? (D(), K(fe, { key: 2 }, [
|
|
30414
30449
|
b(v(G), { label: "最小值" }, {
|
|
30415
30450
|
default: S(() => [
|
|
30416
30451
|
b(k, {
|
|
@@ -30447,10 +30482,10 @@ const n5 = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30447
30482
|
};
|
|
30448
30483
|
}
|
|
30449
30484
|
});
|
|
30450
|
-
const
|
|
30485
|
+
const m5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
30451
30486
|
/* @__PURE__ */ Y("h3", null, "小计总计设置"),
|
|
30452
30487
|
/* @__PURE__ */ Y("div", { class: "tips" }, "设置行列两个循环方向的分组小计和总计的字段,以及其计算方式。")
|
|
30453
|
-
], -1),
|
|
30488
|
+
], -1), g5 = { class: "desinger-container total-data-config" }, v5 = { class: "total-list" }, b5 = { class: "total-list" }, y5 = /* @__PURE__ */ wt({
|
|
30454
30489
|
__name: "totals-data-config",
|
|
30455
30490
|
setup (n) {
|
|
30456
30491
|
const e = xt(), { activeStatement: t } = Qt(e), i = pe(!1), r = pe(!1), s = pe({});
|
|
@@ -30519,13 +30554,13 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30519
30554
|
}), o = pe(!1);
|
|
30520
30555
|
function l () {
|
|
30521
30556
|
if (o.value = !0, t.value && t.value.total) {
|
|
30522
|
-
const u =
|
|
30557
|
+
const u = fr(t.value.total);
|
|
30523
30558
|
i.value = u.row !== void 0, r.value = u.col !== void 0, s.value = u;
|
|
30524
30559
|
}
|
|
30525
30560
|
}
|
|
30526
30561
|
return (u, h) => {
|
|
30527
|
-
const c =
|
|
30528
|
-
return D(), K(
|
|
30562
|
+
const c = ce("el-button"), f = ce("el-col"), d = ce("el-checkbox-group"), p = ce("el-row"), g = ce("el-scrollbar"), m = ce("el-dialog");
|
|
30563
|
+
return D(), K(fe, null, [
|
|
30529
30564
|
b(c, {
|
|
30530
30565
|
onClick: l,
|
|
30531
30566
|
type: "success",
|
|
@@ -30543,18 +30578,18 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30543
30578
|
"onUpdate:modelValue": h[28] || (h[28] = (O) => o.value = O)
|
|
30544
30579
|
}, {
|
|
30545
30580
|
header: S(() => [
|
|
30546
|
-
|
|
30581
|
+
m5
|
|
30547
30582
|
]),
|
|
30548
30583
|
default: S(() => [
|
|
30549
|
-
Y("div",
|
|
30550
|
-
Y("div",
|
|
30584
|
+
Y("div", g5, [
|
|
30585
|
+
Y("div", v5, [
|
|
30551
30586
|
b(g, null, {
|
|
30552
30587
|
default: S(() => [
|
|
30553
|
-
b(v(
|
|
30588
|
+
b(v(cr), null, {
|
|
30554
30589
|
default: S(() => [
|
|
30555
30590
|
b(v(G), null, {
|
|
30556
30591
|
default: S(() => [
|
|
30557
|
-
b(v(
|
|
30592
|
+
b(v(je), {
|
|
30558
30593
|
"inactive-text": "不开启行小/总计",
|
|
30559
30594
|
"active-text": "开启行小/总计",
|
|
30560
30595
|
modelValue: i.value,
|
|
@@ -30584,7 +30619,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30584
30619
|
default: S(() => [
|
|
30585
30620
|
b(v(G), { label: "总计位置" }, {
|
|
30586
30621
|
default: S(() => [
|
|
30587
|
-
b(v(
|
|
30622
|
+
b(v(je), {
|
|
30588
30623
|
modelValue: s.value.row.reverseGrandTotalsLayout,
|
|
30589
30624
|
"onUpdate:modelValue": h[2] || (h[2] = (O) => s.value.row.reverseGrandTotalsLayout = O),
|
|
30590
30625
|
"inactive-text": "分组下面",
|
|
@@ -30601,7 +30636,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30601
30636
|
default: S(() => [
|
|
30602
30637
|
b(v(G), { label: "总计别名" }, {
|
|
30603
30638
|
default: S(() => [
|
|
30604
|
-
b(v(
|
|
30639
|
+
b(v(Ue), {
|
|
30605
30640
|
modelValue: s.value.row.grandTotalsLabel,
|
|
30606
30641
|
"onUpdate:modelValue": h[3] || (h[3] = (O) => s.value.row.grandTotalsLabel = O)
|
|
30607
30642
|
}, null, 8, ["modelValue"])
|
|
@@ -30620,7 +30655,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30620
30655
|
"onUpdate:modelValue": h[4] || (h[4] = (O) => s.value.row.grandTotalsGroupDimensions = O)
|
|
30621
30656
|
}, {
|
|
30622
30657
|
default: S(() => [
|
|
30623
|
-
(D(!0), K(
|
|
30658
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
30624
30659
|
label: O.field
|
|
30625
30660
|
}, {
|
|
30626
30661
|
default: S(() => [
|
|
@@ -30717,7 +30752,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30717
30752
|
default: S(() => [
|
|
30718
30753
|
b(v(G), { label: "小计位置" }, {
|
|
30719
30754
|
default: S(() => [
|
|
30720
|
-
b(v(
|
|
30755
|
+
b(v(je), {
|
|
30721
30756
|
modelValue: s.value.row.reverseSubTotalsLayout,
|
|
30722
30757
|
"onUpdate:modelValue": h[8] || (h[8] = (O) => s.value.row.reverseSubTotalsLayout = O),
|
|
30723
30758
|
"inactive-text": "分组下面",
|
|
@@ -30734,7 +30769,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30734
30769
|
default: S(() => [
|
|
30735
30770
|
b(v(G), { label: "小计别名" }, {
|
|
30736
30771
|
default: S(() => [
|
|
30737
|
-
b(v(
|
|
30772
|
+
b(v(Ue), {
|
|
30738
30773
|
modelValue: s.value.row.subTotalsLabel,
|
|
30739
30774
|
"onUpdate:modelValue": h[9] || (h[9] = (O) => s.value.row.subTotalsLabel = O)
|
|
30740
30775
|
}, null, 8, ["modelValue"])
|
|
@@ -30814,7 +30849,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30814
30849
|
"onUpdate:modelValue": h[12] || (h[12] = (O) => s.value.row.subTotalsDimensions = O)
|
|
30815
30850
|
}, {
|
|
30816
30851
|
default: S(() => [
|
|
30817
|
-
(D(!0), K(
|
|
30852
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
30818
30853
|
label: O.field
|
|
30819
30854
|
}, {
|
|
30820
30855
|
default: S(() => [
|
|
@@ -30840,7 +30875,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30840
30875
|
"onUpdate:modelValue": h[13] || (h[13] = (O) => s.value.row.subTotalsGroupDimensions = O)
|
|
30841
30876
|
}, {
|
|
30842
30877
|
default: S(() => [
|
|
30843
|
-
(D(!0), K(
|
|
30878
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
30844
30879
|
label: O.field
|
|
30845
30880
|
}, {
|
|
30846
30881
|
default: S(() => [
|
|
@@ -30867,14 +30902,14 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30867
30902
|
_: 1
|
|
30868
30903
|
})
|
|
30869
30904
|
]),
|
|
30870
|
-
Y("div",
|
|
30905
|
+
Y("div", b5, [
|
|
30871
30906
|
b(g, null, {
|
|
30872
30907
|
default: S(() => [
|
|
30873
|
-
b(v(
|
|
30908
|
+
b(v(cr), null, {
|
|
30874
30909
|
default: S(() => [
|
|
30875
30910
|
b(v(G), null, {
|
|
30876
30911
|
default: S(() => [
|
|
30877
|
-
b(v(
|
|
30912
|
+
b(v(je), {
|
|
30878
30913
|
"inactive-text": "不开启列小/总计",
|
|
30879
30914
|
"active-text": "开启列小/总计",
|
|
30880
30915
|
modelValue: r.value,
|
|
@@ -30909,7 +30944,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30909
30944
|
"onUpdate:modelValue": h[16] || (h[16] = (O) => s.value.col.grandTotalsGroupDimensions = O)
|
|
30910
30945
|
}, {
|
|
30911
30946
|
default: S(() => [
|
|
30912
|
-
(D(!0), K(
|
|
30947
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
30913
30948
|
label: O.field
|
|
30914
30949
|
}, {
|
|
30915
30950
|
default: S(() => [
|
|
@@ -30930,7 +30965,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30930
30965
|
default: S(() => [
|
|
30931
30966
|
b(v(G), { label: "总计位置" }, {
|
|
30932
30967
|
default: S(() => [
|
|
30933
|
-
b(v(
|
|
30968
|
+
b(v(je), {
|
|
30934
30969
|
modelValue: s.value.col.reverseGrandTotalsLayout,
|
|
30935
30970
|
"onUpdate:modelValue": h[17] || (h[17] = (O) => s.value.col.reverseGrandTotalsLayout = O),
|
|
30936
30971
|
"inactive-text": "分组右边",
|
|
@@ -30947,7 +30982,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30947
30982
|
default: S(() => [
|
|
30948
30983
|
b(v(G), { label: "总计别名" }, {
|
|
30949
30984
|
default: S(() => [
|
|
30950
|
-
b(v(
|
|
30985
|
+
b(v(Ue), {
|
|
30951
30986
|
modelValue: s.value.col.grandTotalsLabel,
|
|
30952
30987
|
"onUpdate:modelValue": h[18] || (h[18] = (O) => s.value.col.grandTotalsLabel = O)
|
|
30953
30988
|
}, null, 8, ["modelValue"])
|
|
@@ -31037,7 +31072,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
31037
31072
|
default: S(() => [
|
|
31038
31073
|
b(v(G), { label: "小计位置" }, {
|
|
31039
31074
|
default: S(() => [
|
|
31040
|
-
b(v(
|
|
31075
|
+
b(v(je), {
|
|
31041
31076
|
modelValue: s.value.col.reverseSubTotalsLayout,
|
|
31042
31077
|
"onUpdate:modelValue": h[22] || (h[22] = (O) => s.value.col.reverseSubTotalsLayout = O),
|
|
31043
31078
|
"inactive-text": "分组右边",
|
|
@@ -31054,7 +31089,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
31054
31089
|
default: S(() => [
|
|
31055
31090
|
b(v(G), { label: "小计别名" }, {
|
|
31056
31091
|
default: S(() => [
|
|
31057
|
-
b(v(
|
|
31092
|
+
b(v(Ue), {
|
|
31058
31093
|
modelValue: s.value.col.subTotalsLabel,
|
|
31059
31094
|
"onUpdate:modelValue": h[23] || (h[23] = (O) => s.value.col.subTotalsLabel = O)
|
|
31060
31095
|
}, null, 8, ["modelValue"])
|
|
@@ -31134,7 +31169,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
31134
31169
|
"onUpdate:modelValue": h[26] || (h[26] = (O) => s.value.col.subTotalsDimensions = O)
|
|
31135
31170
|
}, {
|
|
31136
31171
|
default: S(() => [
|
|
31137
|
-
(D(!0), K(
|
|
31172
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
31138
31173
|
label: O.field
|
|
31139
31174
|
}, {
|
|
31140
31175
|
default: S(() => [
|
|
@@ -31160,7 +31195,7 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
31160
31195
|
"onUpdate:modelValue": h[27] || (h[27] = (O) => s.value.col.subTotalsGroupDimensions = O)
|
|
31161
31196
|
}, {
|
|
31162
31197
|
default: S(() => [
|
|
31163
|
-
(D(!0), K(
|
|
31198
|
+
(D(!0), K(fe, null, Je(v(a), (O) => (D(), ee(v(Oi), {
|
|
31164
31199
|
label: O.field
|
|
31165
31200
|
}, {
|
|
31166
31201
|
default: S(() => [
|
|
@@ -31195,22 +31230,22 @@ const p5 = /* @__PURE__ */ Y("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
31195
31230
|
};
|
|
31196
31231
|
}
|
|
31197
31232
|
});
|
|
31198
|
-
const
|
|
31233
|
+
const _5 = { class: "statement-option-title" }, S5 = /* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "字段", -1), Q5 = { class: "custom-from-item-label" }, x5 = /* @__PURE__ */ Y("div", { class: "custom-from-item-label-context" }, "拖拽到指定区域设置筛选及字段", -1), w5 = /* @__PURE__ */ Y("i", { class: "iconfont icon-info-circle" }, null, -1), P5 = { class: "statement-config-meta" }, $5 = { class: "statement-config-meta-item" }, k5 = ["onDragstart"], T5 = { class: "statement-option-title" }, C5 = /* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "数据源", -1), R5 = /* @__PURE__ */ Y("div", { class: "option-tips" }, "设置数据翻页、数据预处理、自定义表头、自定义静态数据等", -1), Z5 = { class: "statement-option-title" }, E5 = /* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "字段样式", -1), X5 = /* @__PURE__ */ Y("div", { class: "option-tips" }, "指定元数据字段,并设定它的字体、图标、背景、柱状图", -1), A5 = { class: "statement-option-title" }, V5 = /* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "小计总计", -1), D5 = /* @__PURE__ */ Y("div", { class: "option-tips" }, "设置行列两个循环方向的分组小计和总计的字段,以及其计算方式。", -1), M5 = /* @__PURE__ */ Y("div", {
|
|
31199
31234
|
class: "statement-option-title",
|
|
31200
31235
|
style: { top: "0" }
|
|
31201
31236
|
}, [
|
|
31202
31237
|
/* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "宽高")
|
|
31203
|
-
], -1),
|
|
31238
|
+
], -1), Y5 = /* @__PURE__ */ Y("div", {
|
|
31204
31239
|
class: "statement-option-title",
|
|
31205
31240
|
style: { top: "0" }
|
|
31206
31241
|
}, [
|
|
31207
31242
|
/* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "文本外观")
|
|
31208
|
-
], -1),
|
|
31243
|
+
], -1), L5 = /* @__PURE__ */ Y("div", {
|
|
31209
31244
|
class: "statement-option-title",
|
|
31210
31245
|
style: { top: "100px" }
|
|
31211
31246
|
}, [
|
|
31212
31247
|
/* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "主题设置")
|
|
31213
|
-
], -1),
|
|
31248
|
+
], -1), U5 = /* @__PURE__ */ wt({
|
|
31214
31249
|
__name: "statementOption",
|
|
31215
31250
|
setup (n) {
|
|
31216
31251
|
const e = xt(), { activeStatement: t, activeStatementItem: i, metaDraging: r, detail: s } = Qt(e), a = pe("data"), o = Te(() => {
|
|
@@ -31222,7 +31257,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31222
31257
|
if (t.value && t.value.meta) {
|
|
31223
31258
|
let { rows: d, columns: p, values: g } = t.value, m = ((f = t.value.params) == null ? void 0 : f.map((O) => O.columnName)) || [];
|
|
31224
31259
|
return t.value.meta.map((O) => {
|
|
31225
|
-
let { field: _, name: T, width: x, dataType: $, selectorId: Q, description: k, formatterText: C, formatter: R, textAlign: y } =
|
|
31260
|
+
let { field: _, name: T, width: x, dataType: $, selectorId: Q, description: k, formatterText: C, formatter: R, textAlign: y } = fr(O), w = !!(d != null && d.includes(_ || "")), Z = !!(p != null && p.includes(_ || "")), E = !!(g != null && g.includes(_ || "")), X = !!m.includes(_ || "");
|
|
31226
31261
|
return {
|
|
31227
31262
|
field: _,
|
|
31228
31263
|
name: T,
|
|
@@ -31251,8 +31286,8 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31251
31286
|
});
|
|
31252
31287
|
}
|
|
31253
31288
|
return (f, d) => {
|
|
31254
|
-
const p =
|
|
31255
|
-
return v(t) !== null ? (D(), ee(v(
|
|
31289
|
+
const p = ce("el-input-number");
|
|
31290
|
+
return v(t) !== null ? (D(), ee(v(cr), {
|
|
31256
31291
|
key: 0,
|
|
31257
31292
|
"label-position": "top",
|
|
31258
31293
|
class: "statement-option"
|
|
@@ -31271,39 +31306,39 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31271
31306
|
default: S(() => [
|
|
31272
31307
|
b(v(Yc), { gutter: 10 }, {
|
|
31273
31308
|
default: S(() => [
|
|
31274
|
-
v(i) ? (D(), K(
|
|
31309
|
+
v(i) ? (D(), K(fe, { key: 0 }, [
|
|
31275
31310
|
v(i).name === "params" ? (D(), ee(RT, { key: 0 })) : (D(), ee(ET, { key: 1 }))
|
|
31276
31311
|
], 64)) : ue("", !0),
|
|
31277
|
-
Y("div",
|
|
31278
|
-
|
|
31279
|
-
b(
|
|
31312
|
+
Y("div", _5, [
|
|
31313
|
+
S5,
|
|
31314
|
+
b(IT)
|
|
31280
31315
|
]),
|
|
31281
31316
|
b(v(dt), { span: 24 }, {
|
|
31282
31317
|
default: S(() => [
|
|
31283
31318
|
b(v(G), null, {
|
|
31284
31319
|
label: S(() => [
|
|
31285
|
-
Y("div",
|
|
31286
|
-
|
|
31320
|
+
Y("div", Q5, [
|
|
31321
|
+
x5,
|
|
31287
31322
|
b(v(Ma), {
|
|
31288
31323
|
content: "筛选、行头、列头、值的数据来源",
|
|
31289
31324
|
placement: "top-end"
|
|
31290
31325
|
}, {
|
|
31291
31326
|
default: S(() => [
|
|
31292
|
-
|
|
31327
|
+
w5
|
|
31293
31328
|
]),
|
|
31294
31329
|
_: 1
|
|
31295
31330
|
})
|
|
31296
31331
|
])
|
|
31297
31332
|
]),
|
|
31298
31333
|
default: S(() => [
|
|
31299
|
-
Y("div",
|
|
31300
|
-
(D(!0), K(
|
|
31334
|
+
Y("div", P5, [
|
|
31335
|
+
(D(!0), K(fe, null, Je(v(u), (g) => (D(), K("div", $5, [
|
|
31301
31336
|
Y("div", {
|
|
31302
31337
|
class: "statement-config-meta-item-context",
|
|
31303
31338
|
draggable: "true",
|
|
31304
31339
|
onDragstart: (m) => h(m, g),
|
|
31305
31340
|
onDragend: d[0] || (d[0] = (m) => c())
|
|
31306
|
-
}, De(g.name), 41,
|
|
31341
|
+
}, De(g.name), 41, k5),
|
|
31307
31342
|
g.isParams ? (D(), ee(v(Ks), {
|
|
31308
31343
|
key: 0,
|
|
31309
31344
|
type: "info"
|
|
@@ -31345,21 +31380,21 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31345
31380
|
]),
|
|
31346
31381
|
_: 1
|
|
31347
31382
|
}),
|
|
31348
|
-
Y("div",
|
|
31349
|
-
|
|
31350
|
-
b(
|
|
31383
|
+
Y("div", T5, [
|
|
31384
|
+
C5,
|
|
31385
|
+
b(r5)
|
|
31351
31386
|
]),
|
|
31352
|
-
|
|
31353
|
-
Y("div",
|
|
31354
|
-
|
|
31355
|
-
b(
|
|
31387
|
+
R5,
|
|
31388
|
+
Y("div", Z5, [
|
|
31389
|
+
E5,
|
|
31390
|
+
b(O5)
|
|
31356
31391
|
]),
|
|
31357
|
-
|
|
31358
|
-
Y("div",
|
|
31359
|
-
|
|
31360
|
-
b(
|
|
31392
|
+
X5,
|
|
31393
|
+
Y("div", A5, [
|
|
31394
|
+
V5,
|
|
31395
|
+
b(y5)
|
|
31361
31396
|
]),
|
|
31362
|
-
|
|
31397
|
+
D5
|
|
31363
31398
|
]),
|
|
31364
31399
|
_: 1
|
|
31365
31400
|
})
|
|
@@ -31373,13 +31408,13 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31373
31408
|
default: S(() => [
|
|
31374
31409
|
b(v(Yc), { gutter: 10 }, {
|
|
31375
31410
|
default: S(() => [
|
|
31376
|
-
|
|
31377
|
-
v(t).custom ? (D(), K(
|
|
31411
|
+
M5,
|
|
31412
|
+
v(t).custom ? (D(), K(fe, { key: 0 }, [
|
|
31378
31413
|
b(v(dt), { span: 12 }, {
|
|
31379
31414
|
default: S(() => [
|
|
31380
31415
|
b(v(G), { label: "占满宽度" }, {
|
|
31381
31416
|
default: S(() => [
|
|
31382
|
-
b(v(
|
|
31417
|
+
b(v(je), {
|
|
31383
31418
|
modelValue: v(t).custom.fullContainer,
|
|
31384
31419
|
"onUpdate:modelValue": d[1] || (d[1] = (g) => v(t).custom.fullContainer = g)
|
|
31385
31420
|
}, null, 8, ["modelValue"])
|
|
@@ -31393,7 +31428,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31393
31428
|
default: S(() => [
|
|
31394
31429
|
b(v(G), { label: "占满高度(单报表)" }, {
|
|
31395
31430
|
default: S(() => [
|
|
31396
|
-
b(v(
|
|
31431
|
+
b(v(je), {
|
|
31397
31432
|
disabled: !v(o),
|
|
31398
31433
|
modelValue: v(t).custom.fullHeight,
|
|
31399
31434
|
"onUpdate:modelValue": d[2] || (d[2] = (g) => v(t).custom.fullHeight = g)
|
|
@@ -31411,7 +31446,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31411
31446
|
default: S(() => {
|
|
31412
31447
|
var g;
|
|
31413
31448
|
return [
|
|
31414
|
-
b(v(
|
|
31449
|
+
b(v(Ue), {
|
|
31415
31450
|
type: "number",
|
|
31416
31451
|
disabled: (g = v(t).custom) == null ? void 0 : g.fullContainer,
|
|
31417
31452
|
modelValue: v(t).width,
|
|
@@ -31436,7 +31471,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31436
31471
|
default: S(() => {
|
|
31437
31472
|
var g;
|
|
31438
31473
|
return [
|
|
31439
|
-
b(v(
|
|
31474
|
+
b(v(Ue), {
|
|
31440
31475
|
type: "number",
|
|
31441
31476
|
disabled: (g = v(t).custom) == null ? void 0 : g.fullHeight,
|
|
31442
31477
|
modelValue: v(t).height,
|
|
@@ -31488,12 +31523,12 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31488
31523
|
]),
|
|
31489
31524
|
_: 1
|
|
31490
31525
|
})) : ue("", !0),
|
|
31491
|
-
v(t).frozen ? (D(), K(
|
|
31526
|
+
v(t).frozen ? (D(), K(fe, { key: 2 }, [
|
|
31492
31527
|
b(v(dt), { span: 12 }, {
|
|
31493
31528
|
default: S(() => [
|
|
31494
31529
|
b(v(G), { label: "顶部冻结行数" }, {
|
|
31495
31530
|
default: S(() => [
|
|
31496
|
-
b(v(
|
|
31531
|
+
b(v(Ue), {
|
|
31497
31532
|
modelValue: v(t).frozen.rowCount,
|
|
31498
31533
|
"onUpdate:modelValue": d[6] || (d[6] = (g) => v(t).frozen.rowCount = g)
|
|
31499
31534
|
}, null, 8, ["modelValue"])
|
|
@@ -31507,7 +31542,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31507
31542
|
default: S(() => [
|
|
31508
31543
|
b(v(G), { label: "左侧冻结列数" }, {
|
|
31509
31544
|
default: S(() => [
|
|
31510
|
-
b(v(
|
|
31545
|
+
b(v(Ue), {
|
|
31511
31546
|
modelValue: v(t).frozen.colCount,
|
|
31512
31547
|
"onUpdate:modelValue": d[7] || (d[7] = (g) => v(t).frozen.colCount = g)
|
|
31513
31548
|
}, null, 8, ["modelValue"])
|
|
@@ -31521,7 +31556,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31521
31556
|
default: S(() => [
|
|
31522
31557
|
b(v(G), { label: "底部冻结行数" }, {
|
|
31523
31558
|
default: S(() => [
|
|
31524
|
-
b(v(
|
|
31559
|
+
b(v(Ue), {
|
|
31525
31560
|
modelValue: v(t).frozen.trailingRowCount,
|
|
31526
31561
|
"onUpdate:modelValue": d[8] || (d[8] = (g) => v(t).frozen.trailingRowCount = g)
|
|
31527
31562
|
}, null, 8, ["modelValue"])
|
|
@@ -31535,7 +31570,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31535
31570
|
default: S(() => [
|
|
31536
31571
|
b(v(G), { label: "右侧冻结列数" }, {
|
|
31537
31572
|
default: S(() => [
|
|
31538
|
-
b(v(
|
|
31573
|
+
b(v(Ue), {
|
|
31539
31574
|
modelValue: v(t).frozen.trailingColCount,
|
|
31540
31575
|
"onUpdate:modelValue": d[9] || (d[9] = (g) => v(t).frozen.trailingColCount = g)
|
|
31541
31576
|
}, null, 8, ["modelValue"])
|
|
@@ -31550,7 +31585,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31550
31585
|
default: S(() => [
|
|
31551
31586
|
b(v(G), { label: "序号" }, {
|
|
31552
31587
|
default: S(() => [
|
|
31553
|
-
b(v(
|
|
31588
|
+
b(v(je), {
|
|
31554
31589
|
modelValue: v(t).seriesNumberEnable,
|
|
31555
31590
|
"onUpdate:modelValue": d[10] || (d[10] = (g) => v(t).seriesNumberEnable = g)
|
|
31556
31591
|
}, null, 8, ["modelValue"])
|
|
@@ -31564,7 +31599,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31564
31599
|
default: S(() => [
|
|
31565
31600
|
b(v(G), { label: "序号列头文本" }, {
|
|
31566
31601
|
default: S(() => [
|
|
31567
|
-
b(v(
|
|
31602
|
+
b(v(Ue), {
|
|
31568
31603
|
modelValue: v(t).seriesNumberText,
|
|
31569
31604
|
"onUpdate:modelValue": d[11] || (d[11] = (g) => v(t).seriesNumberText = g)
|
|
31570
31605
|
}, null, 8, ["modelValue"])
|
|
@@ -31574,13 +31609,13 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31574
31609
|
]),
|
|
31575
31610
|
_: 1
|
|
31576
31611
|
}),
|
|
31577
|
-
v(t).textWordWrap ? (D(), K(
|
|
31578
|
-
|
|
31612
|
+
v(t).textWordWrap ? (D(), K(fe, { key: 3 }, [
|
|
31613
|
+
Y5,
|
|
31579
31614
|
b(v(dt), { span: 24 }, {
|
|
31580
31615
|
default: S(() => [
|
|
31581
31616
|
b(v(G), { label: "是否开启多行文本" }, {
|
|
31582
31617
|
default: S(() => [
|
|
31583
|
-
b(v(
|
|
31618
|
+
b(v(je), {
|
|
31584
31619
|
modelValue: v(t).textWordWrap.open,
|
|
31585
31620
|
"onUpdate:modelValue": d[12] || (d[12] = (g) => v(t).textWordWrap.open = g)
|
|
31586
31621
|
}, null, 8, ["modelValue"])
|
|
@@ -31623,7 +31658,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31623
31658
|
default: S(() => [
|
|
31624
31659
|
b(v(G), { label: "是否开启悬浮框" }, {
|
|
31625
31660
|
default: S(() => [
|
|
31626
|
-
b(v(
|
|
31661
|
+
b(v(je), {
|
|
31627
31662
|
modelValue: v(t).tooltips,
|
|
31628
31663
|
"onUpdate:modelValue": d[15] || (d[15] = (g) => v(t).tooltips = g)
|
|
31629
31664
|
}, null, 8, ["modelValue"])
|
|
@@ -31633,7 +31668,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31633
31668
|
]),
|
|
31634
31669
|
_: 1
|
|
31635
31670
|
}),
|
|
31636
|
-
|
|
31671
|
+
L5,
|
|
31637
31672
|
b(v(dt), { span: 24 }, {
|
|
31638
31673
|
default: S(() => [
|
|
31639
31674
|
b(v(G), { label: "主题" }, {
|
|
@@ -31715,9 +31750,9 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31715
31750
|
})) : ue("", !0);
|
|
31716
31751
|
};
|
|
31717
31752
|
}
|
|
31718
|
-
}),
|
|
31753
|
+
}), I5 = /* @__PURE__ */ Y("div", { class: "statement-option-title" }, [
|
|
31719
31754
|
/* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "筛选参数配置")
|
|
31720
|
-
], -1),
|
|
31755
|
+
], -1), W5 = /* @__PURE__ */ wt({
|
|
31721
31756
|
__name: "chart-param-editor",
|
|
31722
31757
|
setup (n) {
|
|
31723
31758
|
const e = xt(), { detail: t, activeChartParamDataIndex: i } = Qt(e), r = Te({
|
|
@@ -31729,15 +31764,15 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31729
31764
|
}
|
|
31730
31765
|
});
|
|
31731
31766
|
return (s, a) => {
|
|
31732
|
-
const o =
|
|
31733
|
-
return D(), K(
|
|
31734
|
-
|
|
31735
|
-
v(r) ? (D(), K(
|
|
31767
|
+
const o = ce("el-col"), l = ce("el-option"), u = ce("el-select");
|
|
31768
|
+
return D(), K(fe, null, [
|
|
31769
|
+
I5,
|
|
31770
|
+
v(r) ? (D(), K(fe, { key: 0 }, [
|
|
31736
31771
|
b(o, { span: 12 }, {
|
|
31737
31772
|
default: S(() => [
|
|
31738
31773
|
b(v(G), { label: "名称" }, {
|
|
31739
31774
|
default: S(() => [
|
|
31740
|
-
b(v(
|
|
31775
|
+
b(v(Ue), {
|
|
31741
31776
|
modelValue: v(r).name,
|
|
31742
31777
|
"onUpdate:modelValue": a[0] || (a[0] = (h) => v(r).name = h),
|
|
31743
31778
|
placeholder: "修改筛选参数标签"
|
|
@@ -31951,7 +31986,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
31951
31986
|
default: S(() => [
|
|
31952
31987
|
b(v(G), { label: "不能为空" }, {
|
|
31953
31988
|
default: S(() => [
|
|
31954
|
-
b(v(
|
|
31989
|
+
b(v(je), {
|
|
31955
31990
|
modelValue: v(r).isNull,
|
|
31956
31991
|
"onUpdate:modelValue": a[4] || (a[4] = (h) => v(r).isNull = h)
|
|
31957
31992
|
}, null, 8, ["modelValue"])
|
|
@@ -32005,7 +32040,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
32005
32040
|
default: S(() => [
|
|
32006
32041
|
b(v(G), { label: "默认值" }, {
|
|
32007
32042
|
default: S(() => [
|
|
32008
|
-
b(v(
|
|
32043
|
+
b(v(Ue), {
|
|
32009
32044
|
modelValue: v(r).defaultValue,
|
|
32010
32045
|
"onUpdate:modelValue": a[6] || (a[6] = (h) => v(r).defaultValue = h)
|
|
32011
32046
|
}, null, 8, ["modelValue"])
|
|
@@ -32019,7 +32054,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
32019
32054
|
default: S(() => [
|
|
32020
32055
|
b(v(G), { label: "是否显示" }, {
|
|
32021
32056
|
default: S(() => [
|
|
32022
|
-
b(v(
|
|
32057
|
+
b(v(je), {
|
|
32023
32058
|
modelValue: v(r).isShow,
|
|
32024
32059
|
"onUpdate:modelValue": a[7] || (a[7] = (h) => v(r).isShow = h)
|
|
32025
32060
|
}, null, 8, ["modelValue"])
|
|
@@ -32033,7 +32068,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
32033
32068
|
default: S(() => [
|
|
32034
32069
|
b(v(G), { label: "默认值" }, {
|
|
32035
32070
|
default: S(() => [
|
|
32036
|
-
b(v(
|
|
32071
|
+
b(v(Ue), {
|
|
32037
32072
|
modelValue: v(r).defaultValue,
|
|
32038
32073
|
"onUpdate:modelValue": a[8] || (a[8] = (h) => v(r).defaultValue = h)
|
|
32039
32074
|
}, null, 8, ["modelValue"])
|
|
@@ -32048,7 +32083,7 @@ const b5 = { class: "statement-option-title" }, y5 = /* @__PURE__ */ Y("div", {
|
|
|
32048
32083
|
};
|
|
32049
32084
|
}
|
|
32050
32085
|
});
|
|
32051
|
-
function
|
|
32086
|
+
function j5 (n, e, t, i, r) {
|
|
32052
32087
|
let s = pe(!1);
|
|
32053
32088
|
function a (u) {
|
|
32054
32089
|
let { clientX: h, clientY: c, target: f } = u, { classList: d } = f;
|
|
@@ -32063,7 +32098,7 @@ function I5 (n, e, t, i, r) {
|
|
|
32063
32098
|
function l (u) {
|
|
32064
32099
|
s.value && (s.value = !1, r());
|
|
32065
32100
|
}
|
|
32066
|
-
|
|
32101
|
+
Qr(() => {
|
|
32067
32102
|
var u;
|
|
32068
32103
|
(u = n.value) == null || u.addEventListener("mousedown", a), document.body.addEventListener("mousemove", o), document.body.addEventListener("mouseup", l);
|
|
32069
32104
|
}), Xh(() => {
|
|
@@ -32073,7 +32108,7 @@ function I5 (n, e, t, i, r) {
|
|
|
32073
32108
|
}
|
|
32074
32109
|
function nO (n, e = 1) {
|
|
32075
32110
|
let t = 0, i = 300, r = pe(300);
|
|
32076
|
-
return
|
|
32111
|
+
return j5(
|
|
32077
32112
|
n,
|
|
32078
32113
|
"drag-tap",
|
|
32079
32114
|
(s, a, o) => {
|
|
@@ -32090,7 +32125,7 @@ function nO (n, e = 1) {
|
|
|
32090
32125
|
formWidth: r
|
|
32091
32126
|
};
|
|
32092
32127
|
}
|
|
32093
|
-
let
|
|
32128
|
+
let N5 = [
|
|
32094
32129
|
ht("sourceData", {
|
|
32095
32130
|
label: "sourceData",
|
|
32096
32131
|
type: "variable",
|
|
@@ -32102,15 +32137,15 @@ let W5 = [
|
|
|
32102
32137
|
detail: "接口请求."
|
|
32103
32138
|
})
|
|
32104
32139
|
];
|
|
32105
|
-
const
|
|
32140
|
+
const q5 = function (n, e) {
|
|
32106
32141
|
let t = n.matchBefore(/[\w.-\[\]]+/);
|
|
32107
32142
|
if (t === null || t.from == t.to && !n.explicit)
|
|
32108
32143
|
return null;
|
|
32109
32144
|
{
|
|
32110
32145
|
let i = t.text, r = He(n.state).resolveInner(n.pos, -1), s = /\./.test(r.name) ? r.to : r.from;
|
|
32111
|
-
return
|
|
32146
|
+
return z5(s, i, e);
|
|
32112
32147
|
}
|
|
32113
|
-
},
|
|
32148
|
+
}, z5 = function (n, e, t) {
|
|
32114
32149
|
let i = [];
|
|
32115
32150
|
const r = /sourceData./, s = /sourceData.\w+\[/;
|
|
32116
32151
|
if (/sourceData.\w+\[\d+\]./.test(e)) {
|
|
@@ -32157,18 +32192,18 @@ const j5 = function (n, e) {
|
|
|
32157
32192
|
);
|
|
32158
32193
|
}), i = o;
|
|
32159
32194
|
} else
|
|
32160
|
-
i =
|
|
32195
|
+
i = N5.filter((o) => o.label.includes(e));
|
|
32161
32196
|
return i ? {
|
|
32162
32197
|
from: n,
|
|
32163
32198
|
options: i,
|
|
32164
32199
|
validFor: /^[\w.-\[\]]$/
|
|
32165
32200
|
} : null;
|
|
32166
|
-
},
|
|
32201
|
+
}, G5 = { class: "statement-design-top" }, B5 = { class: "statement-name" }, F5 = { class: "statement-actions" }, H5 = /* @__PURE__ */ Y("i", { class: "iconfont icon-fullscreen-exit" }, null, -1), K5 = /* @__PURE__ */ Y("i", { class: "iconfont icon-fullscreen" }, null, -1), J5 = /* @__PURE__ */ Y("i", { class: "iconfont icon-save" }, null, -1), eC = /* @__PURE__ */ Y("i", { class: "iconfont icon-help-circle-filled" }, null, -1), tC = /* @__PURE__ */ Y("i", { class: "iconfont icon-eye-fill" }, null, -1), iC = { class: "statement-design-body" }, nC = /* @__PURE__ */ Y("div", { class: "drag-tap right" }, null, -1), rC = /* @__PURE__ */ Y("div", { class: "title-context" }, "图表数据源", -1), sC = {
|
|
32167
32202
|
key: 1,
|
|
32168
32203
|
class: "statement-content"
|
|
32169
|
-
},
|
|
32204
|
+
}, aC = /* @__PURE__ */ Y("div", { class: "drag-tap left" }, null, -1), oC = /* @__PURE__ */ Y("div", { class: "statement-option-title" }, [
|
|
32170
32205
|
/* @__PURE__ */ Y("div", { class: "statement-option-title-context" }, "图表样式")
|
|
32171
|
-
], -1),
|
|
32206
|
+
], -1), lC = /* @__PURE__ */ Y("div", { class: "statement-option-title" }, "数据", -1), uC = /* @__PURE__ */ Y("div", { class: "statement-form-sub-title" }, "固定定位", -1), hC = /* @__PURE__ */ Y("span", { class: "tooltip-span" }, "顶部距离", -1), cC = /* @__PURE__ */ Y("span", { class: "tooltip-span" }, "左侧距离", -1), xC = /* @__PURE__ */ wt({
|
|
32172
32207
|
__name: "StatementDesign",
|
|
32173
32208
|
setup (n) {
|
|
32174
32209
|
const e = xt(), { detail: t, keyControl: i, listData: r, showListData: s, sourceData: a, isPreview: o, selectedChartId: l, selectedChart: u, activeChartParamDataIndex: h } = Qt(e), c = pe(), { isFullscreen: f, toggle: d } = K1(c), p = Te(() => {
|
|
@@ -32301,21 +32336,21 @@ const j5 = function (n, e) {
|
|
|
32301
32336
|
}), Z1(() => {
|
|
32302
32337
|
var U;
|
|
32303
32338
|
(U = document.querySelector(".main-container")) == null || U.classList.remove("statement-design-main");
|
|
32304
|
-
}),
|
|
32339
|
+
}), Qr(() => {
|
|
32305
32340
|
_(w.params.id);
|
|
32306
32341
|
}), Xh(() => {
|
|
32307
32342
|
e.$dispose();
|
|
32308
32343
|
}), (U, A) => {
|
|
32309
32344
|
var J;
|
|
32310
|
-
const te =
|
|
32345
|
+
const te = ce("el-button-group");
|
|
32311
32346
|
return D(), K("section", {
|
|
32312
32347
|
class: "yh-statement-design-container",
|
|
32313
32348
|
ref_key: "designContainerRef",
|
|
32314
32349
|
ref: c
|
|
32315
32350
|
}, [
|
|
32316
|
-
Y("div",
|
|
32317
|
-
Y("div",
|
|
32318
|
-
Y("div",
|
|
32351
|
+
Y("div", G5, [
|
|
32352
|
+
Y("div", B5, De((J = v(t)) == null ? void 0 : J.name), 1),
|
|
32353
|
+
Y("div", F5, [
|
|
32319
32354
|
b(te, null, {
|
|
32320
32355
|
default: S(() => [
|
|
32321
32356
|
v(o) ? (D(), ee(v(Ma), {
|
|
@@ -32337,18 +32372,18 @@ const j5 = function (n, e) {
|
|
|
32337
32372
|
})) : ue("", !0)
|
|
32338
32373
|
]),
|
|
32339
32374
|
_: 1
|
|
32340
|
-
})) : (D(), K(
|
|
32375
|
+
})) : (D(), K(fe, { key: 0 }, [
|
|
32341
32376
|
b(v(Ut), {
|
|
32342
32377
|
text: "",
|
|
32343
32378
|
type: "warning",
|
|
32344
32379
|
onClick: v(d)
|
|
32345
32380
|
}, {
|
|
32346
32381
|
default: S(() => [
|
|
32347
|
-
v(f) ? (D(), K(
|
|
32348
|
-
|
|
32382
|
+
v(f) ? (D(), K(fe, { key: 0 }, [
|
|
32383
|
+
H5,
|
|
32349
32384
|
N(" 退出全屏 ")
|
|
32350
|
-
], 64)) : (D(), K(
|
|
32351
|
-
|
|
32385
|
+
], 64)) : (D(), K(fe, { key: 1 }, [
|
|
32386
|
+
K5,
|
|
32352
32387
|
N(" 进入全屏 ")
|
|
32353
32388
|
], 64))
|
|
32354
32389
|
]),
|
|
@@ -32360,7 +32395,7 @@ const j5 = function (n, e) {
|
|
|
32360
32395
|
onClick: v(x)
|
|
32361
32396
|
}, {
|
|
32362
32397
|
default: S(() => [
|
|
32363
|
-
|
|
32398
|
+
J5,
|
|
32364
32399
|
N(" 保存 ")
|
|
32365
32400
|
]),
|
|
32366
32401
|
_: 1
|
|
@@ -32370,7 +32405,7 @@ const j5 = function (n, e) {
|
|
|
32370
32405
|
text: ""
|
|
32371
32406
|
}, {
|
|
32372
32407
|
default: S(() => [
|
|
32373
|
-
|
|
32408
|
+
eC,
|
|
32374
32409
|
N(" 帮助 ")
|
|
32375
32410
|
]),
|
|
32376
32411
|
_: 1
|
|
@@ -32380,7 +32415,7 @@ const j5 = function (n, e) {
|
|
|
32380
32415
|
onClick: A[1] || (A[1] = (W) => o.value = !0)
|
|
32381
32416
|
}, {
|
|
32382
32417
|
default: S(() => [
|
|
32383
|
-
|
|
32418
|
+
tC,
|
|
32384
32419
|
N(" 预览 ")
|
|
32385
32420
|
]),
|
|
32386
32421
|
_: 1
|
|
@@ -32391,7 +32426,7 @@ const j5 = function (n, e) {
|
|
|
32391
32426
|
})
|
|
32392
32427
|
])
|
|
32393
32428
|
]),
|
|
32394
|
-
Y("div",
|
|
32429
|
+
Y("div", iC, [
|
|
32395
32430
|
Vc(Y("div", {
|
|
32396
32431
|
class: "statement-form",
|
|
32397
32432
|
ref_key: "leftFormRef",
|
|
@@ -32400,7 +32435,7 @@ const j5 = function (n, e) {
|
|
|
32400
32435
|
width: `${v(k)}px`
|
|
32401
32436
|
})
|
|
32402
32437
|
}, [
|
|
32403
|
-
|
|
32438
|
+
nC,
|
|
32404
32439
|
b(v(X1), {
|
|
32405
32440
|
modelValue: R.value,
|
|
32406
32441
|
"onUpdate:modelValue": A[3] || (A[3] = (W) => R.value = W)
|
|
@@ -32424,7 +32459,7 @@ const j5 = function (n, e) {
|
|
|
32424
32459
|
name: "data-source"
|
|
32425
32460
|
}, {
|
|
32426
32461
|
title: S(() => [
|
|
32427
|
-
|
|
32462
|
+
rC,
|
|
32428
32463
|
b(v(Ut), {
|
|
32429
32464
|
onClick: v(O),
|
|
32430
32465
|
type: "primary",
|
|
@@ -32451,7 +32486,7 @@ const j5 = function (n, e) {
|
|
|
32451
32486
|
[Dc, !v(o)]
|
|
32452
32487
|
]),
|
|
32453
32488
|
v(o) ? ue("", !0) : (D(), ee(zb, { key: 0 })),
|
|
32454
|
-
v(o) ? (D(), K("div",
|
|
32489
|
+
v(o) ? (D(), K("div", sC, [
|
|
32455
32490
|
b(B1, {
|
|
32456
32491
|
id: v(w).params.id
|
|
32457
32492
|
}, null, 8, ["id"])
|
|
@@ -32464,9 +32499,9 @@ const j5 = function (n, e) {
|
|
|
32464
32499
|
width: `${v(C)}px`
|
|
32465
32500
|
})
|
|
32466
32501
|
}, [
|
|
32467
|
-
|
|
32468
|
-
b(
|
|
32469
|
-
v(l) ? (D(), ee(v(
|
|
32502
|
+
aC,
|
|
32503
|
+
b(U5),
|
|
32504
|
+
v(l) ? (D(), ee(v(cr), {
|
|
32470
32505
|
key: 0,
|
|
32471
32506
|
"label-position": "top",
|
|
32472
32507
|
class: "statement-option"
|
|
@@ -32483,13 +32518,13 @@ const j5 = function (n, e) {
|
|
|
32483
32518
|
label: "属性"
|
|
32484
32519
|
}, {
|
|
32485
32520
|
default: S(() => [
|
|
32486
|
-
v(h) !== null ? (D(), K(
|
|
32487
|
-
b(
|
|
32488
|
-
|
|
32521
|
+
v(h) !== null ? (D(), K(fe, { key: 0 }, [
|
|
32522
|
+
b(W5),
|
|
32523
|
+
oC
|
|
32489
32524
|
], 64)) : ue("", !0),
|
|
32490
32525
|
b(v(G), { label: "背景色" }, {
|
|
32491
32526
|
default: S(() => [
|
|
32492
|
-
b(v(
|
|
32527
|
+
b(v(Ue), {
|
|
32493
32528
|
modelValue: v(E).backgroundColor,
|
|
32494
32529
|
"onUpdate:modelValue": A[5] || (A[5] = (W) => v(E).backgroundColor = W)
|
|
32495
32530
|
}, {
|
|
@@ -32507,7 +32542,7 @@ const j5 = function (n, e) {
|
|
|
32507
32542
|
}),
|
|
32508
32543
|
b(v(G), { label: "标题" }, {
|
|
32509
32544
|
default: S(() => [
|
|
32510
|
-
b(v(
|
|
32545
|
+
b(v(Ue), {
|
|
32511
32546
|
modelValue: v(E).title.text,
|
|
32512
32547
|
"onUpdate:modelValue": A[6] || (A[6] = (W) => v(E).title.text = W)
|
|
32513
32548
|
}, null, 8, ["modelValue"])
|
|
@@ -32519,7 +32554,7 @@ const j5 = function (n, e) {
|
|
|
32519
32554
|
label: "X轴轴坐标名称"
|
|
32520
32555
|
}, {
|
|
32521
32556
|
default: S(() => [
|
|
32522
|
-
b(v(
|
|
32557
|
+
b(v(Ue), {
|
|
32523
32558
|
modelValue: v(E).xAxis.name,
|
|
32524
32559
|
"onUpdate:modelValue": A[7] || (A[7] = (W) => v(E).xAxis.name = W)
|
|
32525
32560
|
}, null, 8, ["modelValue"])
|
|
@@ -32531,7 +32566,7 @@ const j5 = function (n, e) {
|
|
|
32531
32566
|
label: "Y轴轴坐标名称"
|
|
32532
32567
|
}, {
|
|
32533
32568
|
default: S(() => [
|
|
32534
|
-
b(v(
|
|
32569
|
+
b(v(Ue), {
|
|
32535
32570
|
modelValue: v(E).yAxis.name,
|
|
32536
32571
|
"onUpdate:modelValue": A[8] || (A[8] = (W) => v(E).yAxis.name = W)
|
|
32537
32572
|
}, null, 8, ["modelValue"])
|
|
@@ -32613,7 +32648,7 @@ const j5 = function (n, e) {
|
|
|
32613
32648
|
label: "平滑"
|
|
32614
32649
|
}, {
|
|
32615
32650
|
default: S(() => [
|
|
32616
|
-
b(v(
|
|
32651
|
+
b(v(je), {
|
|
32617
32652
|
modelValue: v(u).smooth,
|
|
32618
32653
|
"onUpdate:modelValue": A[13] || (A[13] = (W) => v(u).smooth = W)
|
|
32619
32654
|
}, null, 8, ["modelValue"])
|
|
@@ -32625,7 +32660,7 @@ const j5 = function (n, e) {
|
|
|
32625
32660
|
label: "显示点"
|
|
32626
32661
|
}, {
|
|
32627
32662
|
default: S(() => [
|
|
32628
|
-
b(v(
|
|
32663
|
+
b(v(je), {
|
|
32629
32664
|
modelValue: v(u).symbol,
|
|
32630
32665
|
"onUpdate:modelValue": A[14] || (A[14] = (W) => v(u).symbol = W),
|
|
32631
32666
|
"active-value": "emptyCircle",
|
|
@@ -32636,7 +32671,7 @@ const j5 = function (n, e) {
|
|
|
32636
32671
|
})) : ue("", !0),
|
|
32637
32672
|
b(v(G), { label: "显示标签" }, {
|
|
32638
32673
|
default: S(() => [
|
|
32639
|
-
b(v(
|
|
32674
|
+
b(v(je), {
|
|
32640
32675
|
modelValue: v(u).showLabel,
|
|
32641
32676
|
"onUpdate:modelValue": A[15] || (A[15] = (W) => v(u).showLabel = W)
|
|
32642
32677
|
}, null, 8, ["modelValue"])
|
|
@@ -32648,7 +32683,7 @@ const j5 = function (n, e) {
|
|
|
32648
32683
|
label: "标签颜色"
|
|
32649
32684
|
}, {
|
|
32650
32685
|
default: S(() => [
|
|
32651
|
-
b(v(
|
|
32686
|
+
b(v(Ue), {
|
|
32652
32687
|
modelValue: v(u).labelColor,
|
|
32653
32688
|
"onUpdate:modelValue": A[17] || (A[17] = (W) => v(u).labelColor = W)
|
|
32654
32689
|
}, {
|
|
@@ -32768,7 +32803,7 @@ const j5 = function (n, e) {
|
|
|
32768
32803
|
label: "面积图"
|
|
32769
32804
|
}, {
|
|
32770
32805
|
default: S(() => [
|
|
32771
|
-
b(v(
|
|
32806
|
+
b(v(je), {
|
|
32772
32807
|
modelValue: v(u).areaStyle,
|
|
32773
32808
|
"onUpdate:modelValue": A[21] || (A[21] = (W) => v(u).areaStyle = W),
|
|
32774
32809
|
"active-value": "{}",
|
|
@@ -32782,17 +32817,17 @@ const j5 = function (n, e) {
|
|
|
32782
32817
|
label: "环形图"
|
|
32783
32818
|
}, {
|
|
32784
32819
|
default: S(() => [
|
|
32785
|
-
b(v(
|
|
32820
|
+
b(v(je), {
|
|
32786
32821
|
modelValue: v(u).radius,
|
|
32787
32822
|
"onUpdate:modelValue": A[22] || (A[22] = (W) => v(u).radius = W)
|
|
32788
32823
|
}, null, 8, ["modelValue"])
|
|
32789
32824
|
]),
|
|
32790
32825
|
_: 1
|
|
32791
32826
|
})) : ue("", !0),
|
|
32792
|
-
|
|
32827
|
+
lC,
|
|
32793
32828
|
b(v(G), { label: "数据分组求和" }, {
|
|
32794
32829
|
default: S(() => [
|
|
32795
|
-
b(v(
|
|
32830
|
+
b(v(je), {
|
|
32796
32831
|
modelValue: v(u).groupBy,
|
|
32797
32832
|
"onUpdate:modelValue": A[23] || (A[23] = (W) => v(u).groupBy = W)
|
|
32798
32833
|
}, null, 8, ["modelValue"])
|
|
@@ -32827,8 +32862,8 @@ const j5 = function (n, e) {
|
|
|
32827
32862
|
]),
|
|
32828
32863
|
_: 1
|
|
32829
32864
|
}),
|
|
32830
|
-
v(u).position ? (D(), K(
|
|
32831
|
-
|
|
32865
|
+
v(u).position ? (D(), K(fe, { key: 9 }, [
|
|
32866
|
+
uC,
|
|
32832
32867
|
b(v(G), null, {
|
|
32833
32868
|
label: S(() => [
|
|
32834
32869
|
b(v(Ma), {
|
|
@@ -32838,7 +32873,7 @@ const j5 = function (n, e) {
|
|
|
32838
32873
|
placement: "top-start"
|
|
32839
32874
|
}, {
|
|
32840
32875
|
default: S(() => [
|
|
32841
|
-
|
|
32876
|
+
hC
|
|
32842
32877
|
]),
|
|
32843
32878
|
_: 1
|
|
32844
32879
|
})
|
|
@@ -32861,7 +32896,7 @@ const j5 = function (n, e) {
|
|
|
32861
32896
|
placement: "top-start"
|
|
32862
32897
|
}, {
|
|
32863
32898
|
default: S(() => [
|
|
32864
|
-
|
|
32899
|
+
cC
|
|
32865
32900
|
]),
|
|
32866
32901
|
_: 1
|
|
32867
32902
|
})
|
|
@@ -32891,7 +32926,7 @@ const j5 = function (n, e) {
|
|
|
32891
32926
|
modelValue: v(j),
|
|
32892
32927
|
"onUpdate:modelValue": A[28] || (A[28] = (W) => E1(j) ? j.value = W : null),
|
|
32893
32928
|
autocomplete: {
|
|
32894
|
-
javascript: v(
|
|
32929
|
+
javascript: v(q5)
|
|
32895
32930
|
},
|
|
32896
32931
|
language: "javascript"
|
|
32897
32932
|
}, null, 8, ["modelValue", "autocomplete"])) : ue("", !0)
|
|
@@ -32921,6 +32956,6 @@ const j5 = function (n, e) {
|
|
|
32921
32956
|
}
|
|
32922
32957
|
});
|
|
32923
32958
|
export {
|
|
32924
|
-
|
|
32959
|
+
xC as default
|
|
32925
32960
|
};
|
|
32926
|
-
//# sourceMappingURL=StatementDesign-
|
|
32961
|
+
//# sourceMappingURL=StatementDesign-5466e301.mjs.map
|