yh-report 2.3.21 → 2.3.23
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-e71d7f5f.mjs → StatementDesign-992929b6.mjs} +578 -599
- package/{StatementDesign-e71d7f5f.mjs.map → StatementDesign-992929b6.mjs.map} +1 -1
- package/{StatementDetail-4162df02.mjs → StatementDetail-e0406425.mjs} +2 -2
- package/{StatementDetail-4162df02.mjs.map → StatementDetail-e0406425.mjs.map} +1 -1
- package/{StatementList-90930ff4.mjs → StatementList-d5eabf08.mjs} +87 -68
- package/StatementList-d5eabf08.mjs.map +1 -0
- package/{index-ea29746f.mjs → index-0496fae5.mjs} +788 -788
- package/index-0496fae5.mjs.map +1 -0
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -1
- package/StatementList-90930ff4.mjs.map +0 -1
- package/index-ea29746f.mjs.map +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { onMounted as Ti, onUnmounted as _s, ref as be, computed as _e, shallowReactive as Nm, watch as Qs, defineComponent as it, resolveComponent as he, openBlock as q, createElementBlock as F, createElementVNode as
|
|
1
|
+
import { onMounted as Ti, onUnmounted as _s, ref as be, computed as _e, shallowReactive as Nm, watch as Qs, defineComponent as it, resolveComponent as he, openBlock as q, createElementBlock as F, createElementVNode as A, normalizeStyle as Pt, unref as g, Fragment as re, renderList as qe, normalizeClass as Zt, createCommentVNode as ce, createBlock as le, withCtx as b, createVNode as _, createTextVNode as D, toDisplayString as Ue, reactive as yr, resolveDynamicComponent as jm, renderSlot as In, useCssVars as Gm, onActivated as Lf, onDeactivated as zf, toRaw as Fm, withDirectives as Ut, vShow as Wt, isRef as Hm, withKeys as Km, nextTick as Jm, mergeProps as eg } from "vue";
|
|
2
2
|
import { ElMessageBox as Uf, ElMessage as Di, ElEmpty as tg, ElDialog as Wf, ElFormItem as ye, ElInput as ni, ElSwitch as pi, ElButton as Te, ElRadioGroup as Gi, ElRadioButton as Le, ElColorPicker as ku, ElCheckbox as Tu, ElForm as ig, ElTabs as If, ElCollapse as ng, ElCollapseItem as sg, ElTabPane as Cu } from "element-plus";
|
|
3
3
|
import { useRoute as Bf, useRouter as rg } from "vue-router";
|
|
4
4
|
import { defineStore as lg, storeToRefs as yt } from "pinia";
|
|
5
5
|
import { a as ag } from "./editorLock-afc375cb.mjs";
|
|
6
|
-
import { C as de, b as og, s as ug, F as Xe, r as hg, c as cg, e as va, f as fg, _ as dg, D as Sa, p as Og, h as Xu, i as Ts, j as Ru, v as pg, k as Nf, l as mg, m as gg, T as _l, n as _g, I as Qg, o as bg } from "./index-
|
|
6
|
+
import { C as de, b as og, s as ug, F as Xe, r as hg, c as cg, e as va, f as fg, _ as dg, D as Sa, p as Og, h as Xu, i as Ts, j as Ru, v as pg, k as Nf, l as mg, m as gg, T as _l, n as _g, I as Qg, o as bg } from "./index-0496fae5.mjs";
|
|
7
7
|
import { cloneDeep as He, set as Xt, get as yg } from "lodash-es";
|
|
8
8
|
import "@/libs/api.request.js";
|
|
9
9
|
import "echarts";
|
|
@@ -83,7 +83,7 @@ function wg(n) {
|
|
|
83
83
|
});
|
|
84
84
|
});
|
|
85
85
|
}), ue;
|
|
86
|
-
}), h = be(null), c = be(!1), f = be(null), d = be(!1), O = be([]), y = be([]), m = be(!1), p = be(null), v = be(!1),
|
|
86
|
+
}), h = be(null), c = be(!1), f = be(null), d = be(!1), O = be([]), y = be([]), m = be(!1), p = be(null), v = be(!1), V = be(null), S = (ue, ge) => {
|
|
87
87
|
e.value = ue, t.value = ge, ue.type === "report" && ue.tableConfig && ue.tableConfig.length ? (a.value = 0, h.value = [
|
|
88
88
|
{
|
|
89
89
|
type: de.CELL,
|
|
@@ -204,7 +204,7 @@ function wg(n) {
|
|
|
204
204
|
isOneRow: m,
|
|
205
205
|
activeRow: p,
|
|
206
206
|
isOneCol: v,
|
|
207
|
-
activeCol:
|
|
207
|
+
activeCol: V,
|
|
208
208
|
prevActive: i,
|
|
209
209
|
nextActive: s,
|
|
210
210
|
activeChooseHandle: S,
|
|
@@ -225,7 +225,7 @@ const Ql = {}, vt = function() {
|
|
|
225
225
|
const t = wg(n.params.id);
|
|
226
226
|
return Ql[e] = t, t;
|
|
227
227
|
}
|
|
228
|
-
}, Pg = { class: "report-desinger-table" }, kg = /* @__PURE__ */
|
|
228
|
+
}, Pg = { class: "report-desinger-table" }, kg = /* @__PURE__ */ A("col", { width: 101 }, null, -1), Tg = ["width"], Cg = ["title", "data-area", "data-col", "data-row", "data-index", "data-table", "rowspan", "colspan"], Xg = {
|
|
229
229
|
key: 0,
|
|
230
230
|
class: "yh-report-icon report-icon-fenzubiaoge"
|
|
231
231
|
}, Rg = {
|
|
@@ -413,7 +413,7 @@ const Ql = {}, vt = function() {
|
|
|
413
413
|
}, v = ($) => {
|
|
414
414
|
var P;
|
|
415
415
|
(P = r.value) == null || P.tableConfig.splice($, 1);
|
|
416
|
-
},
|
|
416
|
+
}, V = ($) => {
|
|
417
417
|
if ($ > 0 && r.value && r.value.tableConfig) {
|
|
418
418
|
let P = r.value.tableConfig[$];
|
|
419
419
|
P && (r.value.tableConfig.splice($, 1), r.value.tableConfig.splice($ - 1, 0, P), s.value = $ - 1);
|
|
@@ -450,23 +450,23 @@ const Ql = {}, vt = function() {
|
|
|
450
450
|
}), ($, P) => {
|
|
451
451
|
const w = he("el-button"), k = he("el-button-group");
|
|
452
452
|
return q(), F("div", Pg, [
|
|
453
|
-
|
|
453
|
+
A("table", {
|
|
454
454
|
class: "report-desinger-table-content",
|
|
455
455
|
style: Pt(`width: ${g(u)}px;`)
|
|
456
456
|
}, [
|
|
457
|
-
|
|
457
|
+
A("colgroup", null, [
|
|
458
458
|
kg,
|
|
459
|
-
(q(!0), F(
|
|
459
|
+
(q(!0), F(re, null, qe(g(o), (R) => (q(), F("col", {
|
|
460
460
|
width: R == null ? void 0 : R.size
|
|
461
461
|
}, null, 8, Tg))), 256))
|
|
462
462
|
]),
|
|
463
|
-
(q(!0), F(
|
|
463
|
+
(q(!0), F(re, null, qe(g(m), ({ size: R, cols: Q, bind: T, loop: X, hidden: z }, j) => (q(), F("tr", {
|
|
464
464
|
class: Zt({
|
|
465
465
|
hidden: z
|
|
466
466
|
}),
|
|
467
467
|
style: Pt(`height: ${R}px;`)
|
|
468
468
|
}, [
|
|
469
|
-
(q(!0), F(
|
|
469
|
+
(q(!0), F(re, null, qe(Q, (H, K) => (q(), F("td", {
|
|
470
470
|
class: Zt(H.class),
|
|
471
471
|
style: Pt(H.styleAttr),
|
|
472
472
|
title: `${(T || H.bind) && H.type === "head" ? "随数据循环" : H.text}`,
|
|
@@ -482,10 +482,10 @@ const Ql = {}, vt = function() {
|
|
|
482
482
|
}, [
|
|
483
483
|
H.group ? (q(), F("i", Xg)) : ce("", !0),
|
|
484
484
|
H.combine ? (q(), F("i", Rg)) : ce("", !0),
|
|
485
|
-
H.type === "head" ? (q(), F(
|
|
485
|
+
H.type === "head" ? (q(), F(re, { key: 2 }, [
|
|
486
486
|
X || H.loop ? (q(), F("i", Zg)) : ce("", !0),
|
|
487
487
|
T || H.bind ? (q(), F("i", Vg)) : ce("", !0),
|
|
488
|
-
j === 0 ? (q(), F(
|
|
488
|
+
j === 0 ? (q(), F(re, { key: 2 }, [
|
|
489
489
|
K !== 0 ? (q(), F("div", {
|
|
490
490
|
key: 0,
|
|
491
491
|
class: "drag-bar mouse-move-target",
|
|
@@ -502,7 +502,7 @@ const Ql = {}, vt = function() {
|
|
|
502
502
|
"data-table": e.tableIndex,
|
|
503
503
|
"data-row": j - 1
|
|
504
504
|
}, null, 8, Yg)) : ce("", !0),
|
|
505
|
-
j === 0 && K === 0 ? (q(),
|
|
505
|
+
j === 0 && K === 0 ? (q(), le(k, { key: 4 }, {
|
|
506
506
|
default: b(() => {
|
|
507
507
|
var me, Se;
|
|
508
508
|
return [
|
|
@@ -533,7 +533,7 @@ const Ql = {}, vt = function() {
|
|
|
533
533
|
type: "primary",
|
|
534
534
|
size: "small",
|
|
535
535
|
disabled: e.tableIndex === 0,
|
|
536
|
-
onClick: P[2] || (P[2] = (pe) =>
|
|
536
|
+
onClick: P[2] || (P[2] = (pe) => V(e.tableIndex))
|
|
537
537
|
}, {
|
|
538
538
|
default: b(() => [
|
|
539
539
|
D(" ↑ ")
|
|
@@ -568,9 +568,9 @@ const Ql = {}, vt = function() {
|
|
|
568
568
|
class: "params-desinger desinger-container report-drop-target",
|
|
569
569
|
"data-source": "column",
|
|
570
570
|
"data-target": "params"
|
|
571
|
-
}, Dg = ["data-index"], Lg = /* @__PURE__ */
|
|
571
|
+
}, Dg = ["data-index"], Lg = /* @__PURE__ */ A("i", { class: "iconfont icon-delete" }, null, -1), zg = [
|
|
572
572
|
Lg
|
|
573
|
-
], Ug = { class: "report-desinger-container" }, Wg = /* @__PURE__ */
|
|
573
|
+
], Ug = { class: "report-desinger-container" }, Wg = /* @__PURE__ */ A("div", { class: "report-desinger-toolbar" }, null, -1), Ig = { class: "yh-statement-table-actions" }, Bg = /* @__PURE__ */ A("i", { class: "iconfont icon-top" }, null, -1), Ng = /* @__PURE__ */ A("i", { class: "iconfont icon-bottom" }, null, -1), jg = /* @__PURE__ */ A("i", { class: "iconfont icon-delete2" }, null, -1), Gg = ["data-index"], Fg = ["data-index"], Hg = /* @__PURE__ */ it({
|
|
574
574
|
__name: "reportDesignItem",
|
|
575
575
|
props: {
|
|
576
576
|
option: null,
|
|
@@ -634,22 +634,22 @@ const Ql = {}, vt = function() {
|
|
|
634
634
|
left: "0px",
|
|
635
635
|
top: "0px"
|
|
636
636
|
});
|
|
637
|
-
let
|
|
637
|
+
let V = null;
|
|
638
638
|
function S(w) {
|
|
639
639
|
var k, R;
|
|
640
640
|
if (!w.target.classList.contains("drag-bar") && (k = w.target) != null && k.closest(".report-desinger-table-content")) {
|
|
641
641
|
let { pageX: Q, pageY: T } = w, { x: X = 0, y: z = 0 } = ((R = y.value) == null ? void 0 : R.getBoundingClientRect()) || {};
|
|
642
|
-
|
|
642
|
+
V = {}, V.x = Q, V.y = T, V.tableX = X, V.tableY = z, v.left = Q - X + "px", v.top = T - z + "px";
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
function $(w) {
|
|
646
|
-
if (
|
|
647
|
-
let { pageX: k, pageY: R } = w, { tableX: Q, tableY: T, x: X, y: z } =
|
|
646
|
+
if (V !== null) {
|
|
647
|
+
let { pageX: k, pageY: R } = w, { tableX: Q, tableY: T, x: X, y: z } = V;
|
|
648
648
|
k > X ? v.width = k - X - 1 + "px" : (v.left = k - Q + "px", v.width = X - k + "px"), R > z ? v.height = R - z - 1 + "px" : (v.top = R - T + "px", v.height = z - R + "px");
|
|
649
649
|
}
|
|
650
650
|
}
|
|
651
651
|
function P(w) {
|
|
652
|
-
|
|
652
|
+
V = null, v.width = "0px", v.height = "0px", v.left = "0px", v.top = "0px";
|
|
653
653
|
}
|
|
654
654
|
return Ti(async () => {
|
|
655
655
|
y.value && (y.value.addEventListener("mousedown", S), document.addEventListener("mousemove", $), document.addEventListener("mouseup", P));
|
|
@@ -667,10 +667,10 @@ const Ql = {}, vt = function() {
|
|
|
667
667
|
ref_key: "statementTableRef",
|
|
668
668
|
ref: y
|
|
669
669
|
}, [
|
|
670
|
-
|
|
670
|
+
A("div", Mg, [
|
|
671
671
|
_(Q, { inline: "" }, {
|
|
672
672
|
default: b(() => [
|
|
673
|
-
(q(!0), F(
|
|
673
|
+
(q(!0), F(re, null, qe(g(f), (X, z) => (q(), le(R, {
|
|
674
674
|
class: Zt(["params-desinger-item report-drag-source report-drop-target", { active: z === g(r) }]),
|
|
675
675
|
draggable: "true",
|
|
676
676
|
"data-drag": "params",
|
|
@@ -682,11 +682,11 @@ const Ql = {}, vt = function() {
|
|
|
682
682
|
label: X.name
|
|
683
683
|
}, {
|
|
684
684
|
default: b(() => [
|
|
685
|
-
(q(),
|
|
685
|
+
(q(), le(jm(X.componentName), {
|
|
686
686
|
type: X.type,
|
|
687
687
|
placeholder: X.placeholer
|
|
688
688
|
}, null, 8, ["type", "placeholder"])),
|
|
689
|
-
|
|
689
|
+
A("div", {
|
|
690
690
|
class: "del",
|
|
691
691
|
"data-type": "params",
|
|
692
692
|
"data-index": z,
|
|
@@ -699,15 +699,15 @@ const Ql = {}, vt = function() {
|
|
|
699
699
|
_: 1
|
|
700
700
|
})
|
|
701
701
|
]),
|
|
702
|
-
|
|
702
|
+
A("div", Ug, [
|
|
703
703
|
Wg,
|
|
704
|
-
(q(!0), F(
|
|
704
|
+
(q(!0), F(re, null, qe(g(h).tableConfig, (X, z) => (q(), le(Eg, {
|
|
705
705
|
"table-config": X,
|
|
706
706
|
"table-index": z,
|
|
707
707
|
index: t.index
|
|
708
708
|
}, null, 8, ["table-config", "table-index", "index"]))), 256))
|
|
709
709
|
]),
|
|
710
|
-
|
|
710
|
+
A("div", Ig, [
|
|
711
711
|
_(T, {
|
|
712
712
|
type: "primary",
|
|
713
713
|
disabled: t.index === 0,
|
|
@@ -738,7 +738,7 @@ const Ql = {}, vt = function() {
|
|
|
738
738
|
_: 1
|
|
739
739
|
})
|
|
740
740
|
]),
|
|
741
|
-
|
|
741
|
+
A("div", {
|
|
742
742
|
class: "yh-statement-table-choose-area",
|
|
743
743
|
style: Pt(v)
|
|
744
744
|
}, null, 4),
|
|
@@ -748,19 +748,19 @@ const Ql = {}, vt = function() {
|
|
|
748
748
|
"data-area": "tablewidth",
|
|
749
749
|
"data-index": t.index
|
|
750
750
|
}, null, 8, Gg)) : ce("", !0),
|
|
751
|
-
|
|
751
|
+
A("div", {
|
|
752
752
|
class: "drag-bar horizontal mouse-move-target",
|
|
753
753
|
"data-area": "tableheight",
|
|
754
754
|
"data-index": t.index
|
|
755
755
|
}, null, 8, Fg),
|
|
756
|
-
|
|
756
|
+
A("div", {
|
|
757
757
|
class: "yh-statement-table-mask",
|
|
758
758
|
onClick: m
|
|
759
759
|
})
|
|
760
760
|
], 14, qg);
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
}), Kg = ["data-index"], Jg = { class: "yh-statement-table-actions" }, e_ = /* @__PURE__ */
|
|
763
|
+
}), Kg = ["data-index"], Jg = { class: "yh-statement-table-actions" }, e_ = /* @__PURE__ */ A("i", { class: "iconfont icon-drag" }, null, -1), t_ = /* @__PURE__ */ A("i", { class: "iconfont icon-diceng" }, null, -1), i_ = /* @__PURE__ */ A("i", { class: "iconfont icon-dingceng" }, null, -1), n_ = /* @__PURE__ */ A("i", { class: "iconfont icon-top" }, null, -1), s_ = /* @__PURE__ */ A("i", { class: "iconfont icon-bottom" }, null, -1), r_ = /* @__PURE__ */ A("i", { class: "iconfont icon-delete2" }, null, -1), l_ = ["data-index"], a_ = ["data-index"], o_ = /* @__PURE__ */ it({
|
|
764
764
|
__name: "chartDesignItem",
|
|
765
765
|
props: {
|
|
766
766
|
index: null
|
|
@@ -818,8 +818,8 @@ const Ql = {}, vt = function() {
|
|
|
818
818
|
style: Pt(g(u))
|
|
819
819
|
}, [
|
|
820
820
|
In(O.$slots, "default"),
|
|
821
|
-
|
|
822
|
-
g(o).isSuspend ? (q(), F(
|
|
821
|
+
A("div", Jg, [
|
|
822
|
+
g(o).isSuspend ? (q(), F(re, { key: 0 }, [
|
|
823
823
|
_(m, {
|
|
824
824
|
type: "primary",
|
|
825
825
|
title: "移动",
|
|
@@ -843,7 +843,7 @@ const Ql = {}, vt = function() {
|
|
|
843
843
|
]),
|
|
844
844
|
_: 1
|
|
845
845
|
})
|
|
846
|
-
], 64)) : (q(),
|
|
846
|
+
], 64)) : (q(), le(m, {
|
|
847
847
|
key: 1,
|
|
848
848
|
type: "primary",
|
|
849
849
|
title: "悬浮",
|
|
@@ -885,24 +885,24 @@ const Ql = {}, vt = function() {
|
|
|
885
885
|
_: 1
|
|
886
886
|
})
|
|
887
887
|
]),
|
|
888
|
-
|
|
888
|
+
A("div", {
|
|
889
889
|
class: "drag-bar mouse-move-target",
|
|
890
890
|
"data-area": "tablewidth",
|
|
891
891
|
"data-index": t.index
|
|
892
892
|
}, null, 8, l_),
|
|
893
|
-
|
|
893
|
+
A("div", {
|
|
894
894
|
class: "drag-bar horizontal mouse-move-target",
|
|
895
895
|
"data-area": "tableheight",
|
|
896
896
|
"data-index": t.index
|
|
897
897
|
}, null, 8, a_),
|
|
898
|
-
|
|
898
|
+
A("div", {
|
|
899
899
|
class: "yh-statement-table-mask",
|
|
900
900
|
onClick: f
|
|
901
901
|
})
|
|
902
902
|
], 14, Kg);
|
|
903
903
|
};
|
|
904
904
|
}
|
|
905
|
-
}), u_ = ["data-index"], h_ = { class: "yh-statement-table-actions" }, c_ = /* @__PURE__ */
|
|
905
|
+
}), u_ = ["data-index"], h_ = { class: "yh-statement-table-actions" }, c_ = /* @__PURE__ */ A("i", { class: "iconfont icon-top" }, null, -1), f_ = /* @__PURE__ */ A("i", { class: "iconfont icon-bottom" }, null, -1), d_ = /* @__PURE__ */ A("i", { class: "iconfont icon-delete2" }, null, -1), O_ = ["data-index"], p_ = ["data-index"], m_ = /* @__PURE__ */ it({
|
|
906
906
|
__name: "labelDesignItem",
|
|
907
907
|
props: {
|
|
908
908
|
index: null,
|
|
@@ -922,10 +922,10 @@ const Ql = {}, vt = function() {
|
|
|
922
922
|
r.value.options[t.index] = p;
|
|
923
923
|
}
|
|
924
924
|
}), u = _e(() => {
|
|
925
|
-
let p = o.value.widthUnit || "px", v = o.value.heightUnit || "px",
|
|
925
|
+
let p = o.value.widthUnit || "px", v = o.value.heightUnit || "px", V = {
|
|
926
926
|
height: o.value.height + v
|
|
927
927
|
};
|
|
928
|
-
return p === "%" ?
|
|
928
|
+
return p === "%" ? V.width = `calc( ${o.value.width}${p} - 10px)` : V.width = `${o.value.width - 10}${p}`, V;
|
|
929
929
|
}), h = _e(() => `${o.value.height}px`), c = {
|
|
930
930
|
SUM: "求和",
|
|
931
931
|
AVG: "均值",
|
|
@@ -939,8 +939,8 @@ const Ql = {}, vt = function() {
|
|
|
939
939
|
}, d = _e(() => {
|
|
940
940
|
if (o.value.notSingle)
|
|
941
941
|
if (o.value.keyIds && o.value.dataIds) {
|
|
942
|
-
let p = o.value.keyIds, v = p.at(p.length - 1),
|
|
943
|
-
return
|
|
942
|
+
let p = o.value.keyIds, v = p.at(p.length - 1), V = o.value.groupBy ? "求和" : "", S = o.value.orderBy ? f[o.value.orderBy] : "";
|
|
943
|
+
return V && (S = ` | ${S}`), o.value.cutLength && (S += ` | ${o.value.cutLength}`), `${v}:(${V}${S})`;
|
|
944
944
|
} else
|
|
945
945
|
return o.value.keyIds ? o.value.dataIds ? "请需选择维度和指标" : "请需选择指标" : "请需选择维度";
|
|
946
946
|
else
|
|
@@ -961,7 +961,7 @@ const Ql = {}, vt = function() {
|
|
|
961
961
|
e("del", t.index);
|
|
962
962
|
}
|
|
963
963
|
return (p, v) => {
|
|
964
|
-
const
|
|
964
|
+
const V = he("el-button");
|
|
965
965
|
return q(), F("div", {
|
|
966
966
|
class: Zt(["yh-statement-table report-drop-target", { active: t.index === g(s) }]),
|
|
967
967
|
"data-source": "canvas",
|
|
@@ -969,12 +969,12 @@ const Ql = {}, vt = function() {
|
|
|
969
969
|
"data-index": t.index,
|
|
970
970
|
style: Pt(g(u))
|
|
971
971
|
}, [
|
|
972
|
-
|
|
972
|
+
A("div", {
|
|
973
973
|
class: "yh-statement-custom-label",
|
|
974
974
|
style: Pt(g(O))
|
|
975
975
|
}, Ue(g(d)), 5),
|
|
976
|
-
|
|
977
|
-
_(
|
|
976
|
+
A("div", h_, [
|
|
977
|
+
_(V, {
|
|
978
978
|
type: "primary",
|
|
979
979
|
disabled: t.index === 0,
|
|
980
980
|
onClick: v[0] || (v[0] = (S) => g(l)(t.index))
|
|
@@ -984,7 +984,7 @@ const Ql = {}, vt = function() {
|
|
|
984
984
|
]),
|
|
985
985
|
_: 1
|
|
986
986
|
}, 8, ["disabled"]),
|
|
987
|
-
_(
|
|
987
|
+
_(V, {
|
|
988
988
|
type: "primary",
|
|
989
989
|
disabled: t.index >= g(r).options.length - 1,
|
|
990
990
|
onClick: v[1] || (v[1] = (S) => g(a)(t.index))
|
|
@@ -994,7 +994,7 @@ const Ql = {}, vt = function() {
|
|
|
994
994
|
]),
|
|
995
995
|
_: 1
|
|
996
996
|
}, 8, ["disabled"]),
|
|
997
|
-
_(
|
|
997
|
+
_(V, {
|
|
998
998
|
type: "primary",
|
|
999
999
|
title: "移除组件",
|
|
1000
1000
|
onClick: m
|
|
@@ -1005,17 +1005,17 @@ const Ql = {}, vt = function() {
|
|
|
1005
1005
|
_: 1
|
|
1006
1006
|
})
|
|
1007
1007
|
]),
|
|
1008
|
-
|
|
1008
|
+
A("div", {
|
|
1009
1009
|
class: "drag-bar mouse-move-target",
|
|
1010
1010
|
"data-area": "tablewidth",
|
|
1011
1011
|
"data-index": t.index
|
|
1012
1012
|
}, null, 8, O_),
|
|
1013
|
-
|
|
1013
|
+
A("div", {
|
|
1014
1014
|
class: "drag-bar horizontal mouse-move-target",
|
|
1015
1015
|
"data-area": "tableheight",
|
|
1016
1016
|
"data-index": t.index
|
|
1017
1017
|
}, null, 8, p_),
|
|
1018
|
-
|
|
1018
|
+
A("div", {
|
|
1019
1019
|
class: "yh-statement-table-mask",
|
|
1020
1020
|
onClick: y
|
|
1021
1021
|
})
|
|
@@ -1159,7 +1159,7 @@ const g_ = /* @__PURE__ */ it({
|
|
|
1159
1159
|
var S;
|
|
1160
1160
|
(S = h.value) == null || S.addEventListener("mousedown", y), window.addEventListener("mousemove", m), window.addEventListener("mouseup", p);
|
|
1161
1161
|
}
|
|
1162
|
-
function
|
|
1162
|
+
function V() {
|
|
1163
1163
|
var S;
|
|
1164
1164
|
(S = h.value) == null || S.removeEventListener("mousedown", y), window.removeEventListener("mousemove", m), window.removeEventListener("mouseup", p);
|
|
1165
1165
|
}
|
|
@@ -1168,9 +1168,9 @@ const g_ = /* @__PURE__ */ it({
|
|
|
1168
1168
|
}), Ti(() => {
|
|
1169
1169
|
v();
|
|
1170
1170
|
}), _s(() => {
|
|
1171
|
-
|
|
1171
|
+
V();
|
|
1172
1172
|
}), zf(() => {
|
|
1173
|
-
|
|
1173
|
+
V();
|
|
1174
1174
|
}), (S, $) => (q(), F("section", {
|
|
1175
1175
|
class: "statement-canvas report-drop-target",
|
|
1176
1176
|
ref_key: "statementRef",
|
|
@@ -1178,20 +1178,20 @@ const g_ = /* @__PURE__ */ it({
|
|
|
1178
1178
|
"data-source": "canvas",
|
|
1179
1179
|
"data-target": "canvas"
|
|
1180
1180
|
}, [
|
|
1181
|
-
(q(!0), F(
|
|
1182
|
-
P.type === "report" ? (q(),
|
|
1181
|
+
(q(!0), F(re, null, qe(g(c), (P, w) => (q(), F(re, null, [
|
|
1182
|
+
P.type === "report" ? (q(), le(Hg, {
|
|
1183
1183
|
key: 0,
|
|
1184
1184
|
option: P,
|
|
1185
1185
|
index: w,
|
|
1186
1186
|
onChoose: f,
|
|
1187
1187
|
onDel: d
|
|
1188
|
-
}, null, 8, ["option", "index"])) : P.type === "label" ? (q(),
|
|
1188
|
+
}, null, 8, ["option", "index"])) : P.type === "label" ? (q(), le(m_, {
|
|
1189
1189
|
key: 1,
|
|
1190
1190
|
index: w,
|
|
1191
1191
|
item: P,
|
|
1192
1192
|
onChoose: f,
|
|
1193
1193
|
onDel: d
|
|
1194
|
-
}, null, 8, ["index", "item"])) : (q(),
|
|
1194
|
+
}, null, 8, ["index", "item"])) : (q(), le(o_, {
|
|
1195
1195
|
key: 2,
|
|
1196
1196
|
index: w,
|
|
1197
1197
|
onChoose: f,
|
|
@@ -1203,14 +1203,14 @@ const g_ = /* @__PURE__ */ it({
|
|
|
1203
1203
|
_: 2
|
|
1204
1204
|
}, 1032, ["index"]))
|
|
1205
1205
|
], 64))), 256)),
|
|
1206
|
-
g(c).length === 0 ? (q(),
|
|
1206
|
+
g(c).length === 0 ? (q(), le(g(tg), {
|
|
1207
1207
|
key: 0,
|
|
1208
1208
|
style: { width: "100%" },
|
|
1209
1209
|
description: "拖拽至此添加报表或图表"
|
|
1210
1210
|
})) : ce("", !0)
|
|
1211
1211
|
], 512));
|
|
1212
1212
|
}
|
|
1213
|
-
}), __ = /* @__PURE__ */
|
|
1213
|
+
}), __ = /* @__PURE__ */ A("iframe", {
|
|
1214
1214
|
src: "http://docs.js.sforcecon.com:5900/view/604",
|
|
1215
1215
|
frameborder: "0"
|
|
1216
1216
|
}, null, -1), Q_ = /* @__PURE__ */ it({
|
|
@@ -1221,7 +1221,7 @@ const g_ = /* @__PURE__ */ it({
|
|
|
1221
1221
|
emits: ["update:modelValue"],
|
|
1222
1222
|
setup(n, { emit: e }) {
|
|
1223
1223
|
const t = n;
|
|
1224
|
-
return (i, s) => (q(),
|
|
1224
|
+
return (i, s) => (q(), le(g(Wf), {
|
|
1225
1225
|
fullscreen: "",
|
|
1226
1226
|
"model-value": t.modelValue,
|
|
1227
1227
|
onClose: s[0] || (s[0] = (r) => e("update:modelValue", !1)),
|
|
@@ -1244,16 +1244,16 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1244
1244
|
},
|
|
1245
1245
|
setup(n) {
|
|
1246
1246
|
return (e, t) => (q(), F("ul", b_, [
|
|
1247
|
-
(q(!0), F(
|
|
1247
|
+
(q(!0), F(re, null, qe(n.chartReportList, (i, s) => (q(), F("li", {
|
|
1248
1248
|
class: "chart-series-box report-drag-source",
|
|
1249
1249
|
draggable: "true",
|
|
1250
1250
|
"data-drag": i.type,
|
|
1251
1251
|
"data-index": s
|
|
1252
1252
|
}, [
|
|
1253
|
-
|
|
1253
|
+
A("i", {
|
|
1254
1254
|
class: Zt(["iconfont", i.icon])
|
|
1255
1255
|
}, null, 2),
|
|
1256
|
-
|
|
1256
|
+
A("span", null, Ue(i.name), 1)
|
|
1257
1257
|
], 8, y_))), 256))
|
|
1258
1258
|
]));
|
|
1259
1259
|
}
|
|
@@ -1442,9 +1442,9 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1442
1442
|
value: "fireYear"
|
|
1443
1443
|
}
|
|
1444
1444
|
]
|
|
1445
|
-
}, P_ = /* @__PURE__ */
|
|
1446
|
-
/* @__PURE__ */
|
|
1447
|
-
], -1), k_ = /* @__PURE__ */
|
|
1445
|
+
}, P_ = /* @__PURE__ */ A("div", { class: "statement-option-title" }, [
|
|
1446
|
+
/* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "筛选参数配置")
|
|
1447
|
+
], -1), k_ = /* @__PURE__ */ A("br", null, null, -1), T_ = /* @__PURE__ */ A("br", null, null, -1), C_ = /* @__PURE__ */ A("br", null, null, -1), X_ = /* @__PURE__ */ A("br", null, null, -1), R_ = /* @__PURE__ */ A("br", null, null, -1), Z_ = /* @__PURE__ */ A("br", null, null, -1), V_ = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "开始时间(当前时间 - 时间段)", -1), A_ = /* @__PURE__ */ A("br", null, null, -1), Y_ = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "结束时间(当前时间)", -1), E_ = /* @__PURE__ */ A("br", null, null, -1), q_ = /* @__PURE__ */ A("br", null, null, -1), M_ = /* @__PURE__ */ A("br", null, null, -1), D_ = /* @__PURE__ */ A("br", null, null, -1), L_ = /* @__PURE__ */ A("br", null, null, -1), z_ = /* @__PURE__ */ A("br", null, null, -1), U_ = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "开始时间(00:00:00)", -1), W_ = /* @__PURE__ */ A("br", null, null, -1), I_ = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "结束时间(23:59:59)", -1), B_ = /* @__PURE__ */ it({
|
|
1448
1448
|
__name: "paramEditor",
|
|
1449
1449
|
setup(n) {
|
|
1450
1450
|
const e = vt(), { activeParam: t } = yt(e), i = _e(() => {
|
|
@@ -1456,7 +1456,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1456
1456
|
}), s = _e(() => t.value && t.value.dateType && ["daterange", "datetimerange"].includes(t.value.dateType));
|
|
1457
1457
|
return (r, l) => {
|
|
1458
1458
|
const a = he("el-col"), o = he("el-option"), u = he("el-select"), h = he("el-tooltip");
|
|
1459
|
-
return g(t) ? (q(), F(
|
|
1459
|
+
return g(t) ? (q(), F(re, { key: 0 }, [
|
|
1460
1460
|
P_,
|
|
1461
1461
|
_(a, { span: 12 }, {
|
|
1462
1462
|
default: b(() => [
|
|
@@ -1494,7 +1494,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1494
1494
|
"onUpdate:modelValue": l[1] || (l[1] = (c) => g(t).type = c)
|
|
1495
1495
|
}, {
|
|
1496
1496
|
default: b(() => [
|
|
1497
|
-
(q(!0), F(
|
|
1497
|
+
(q(!0), F(re, null, qe(g(x_), (c) => (q(), le(o, {
|
|
1498
1498
|
value: c.value,
|
|
1499
1499
|
label: c.label
|
|
1500
1500
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -1590,7 +1590,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1590
1590
|
]),
|
|
1591
1591
|
_: 1
|
|
1592
1592
|
}),
|
|
1593
|
-
[g(Sa).DATE, g(Sa).DATETIME].includes(g(t).dataType) ? (q(), F(
|
|
1593
|
+
[g(Sa).DATE, g(Sa).DATETIME].includes(g(t).dataType) ? (q(), F(re, { key: 0 }, [
|
|
1594
1594
|
_(a, { span: 12 }, {
|
|
1595
1595
|
default: b(() => [
|
|
1596
1596
|
_(g(ye), { label: "日期选择类型" }, {
|
|
@@ -1601,7 +1601,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1601
1601
|
"onUpdate:modelValue": l[5] || (l[5] = (c) => g(t).dateType = c)
|
|
1602
1602
|
}, {
|
|
1603
1603
|
default: b(() => [
|
|
1604
|
-
(q(!0), F(
|
|
1604
|
+
(q(!0), F(re, null, qe(g($_), (c) => (q(), le(o, {
|
|
1605
1605
|
value: c.value,
|
|
1606
1606
|
label: c.label
|
|
1607
1607
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -1623,7 +1623,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1623
1623
|
"onUpdate:modelValue": l[6] || (l[6] = (c) => g(t).defaultValue = c)
|
|
1624
1624
|
}, {
|
|
1625
1625
|
default: b(() => [
|
|
1626
|
-
(q(!0), F(
|
|
1626
|
+
(q(!0), F(re, null, qe(g(i), (c) => (q(), le(o, {
|
|
1627
1627
|
value: c.value,
|
|
1628
1628
|
label: c.label
|
|
1629
1629
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -1636,7 +1636,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1636
1636
|
]),
|
|
1637
1637
|
_: 1
|
|
1638
1638
|
}),
|
|
1639
|
-
g(s) ? (q(), F(
|
|
1639
|
+
g(s) ? (q(), F(re, { key: 0 }, [
|
|
1640
1640
|
_(a, { span: 24 }, {
|
|
1641
1641
|
default: b(() => [
|
|
1642
1642
|
_(g(ye), null, {
|
|
@@ -1709,7 +1709,7 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1709
1709
|
]),
|
|
1710
1710
|
_: 1
|
|
1711
1711
|
})
|
|
1712
|
-
], 64)) : (q(), F(
|
|
1712
|
+
], 64)) : (q(), F(re, { key: 1 }, [
|
|
1713
1713
|
_(a, { span: 24 }, {
|
|
1714
1714
|
default: b(() => [
|
|
1715
1715
|
_(g(ye), null, {
|
|
@@ -1783,8 +1783,8 @@ const b_ = { class: "chart-series-wrapper" }, y_ = ["data-drag", "data-index"],
|
|
|
1783
1783
|
_: 1
|
|
1784
1784
|
})
|
|
1785
1785
|
], 64))
|
|
1786
|
-
], 64)) : (q(), F(
|
|
1787
|
-
g(t).isNull ? (q(),
|
|
1786
|
+
], 64)) : (q(), F(re, { key: 1 }, [
|
|
1787
|
+
g(t).isNull ? (q(), le(a, {
|
|
1788
1788
|
key: 0,
|
|
1789
1789
|
span: 24
|
|
1790
1790
|
}, {
|
|
@@ -2996,7 +2996,7 @@ function td(n, e) {
|
|
|
2996
2996
|
throw new RangeError("Selection points outside of document");
|
|
2997
2997
|
}
|
|
2998
2998
|
let Co = 0;
|
|
2999
|
-
class
|
|
2999
|
+
class oe {
|
|
3000
3000
|
constructor(e, t, i, s, r) {
|
|
3001
3001
|
this.combine = e, this.compareInput = t, this.compare = i, this.isStatic = s, this.id = Co++, this.default = e([]), this.extensions = typeof r == "function" ? r(this) : r;
|
|
3002
3002
|
}
|
|
@@ -3011,7 +3011,7 @@ class ae {
|
|
|
3011
3011
|
Define a new facet.
|
|
3012
3012
|
*/
|
|
3013
3013
|
static define(e = {}) {
|
|
3014
|
-
return new
|
|
3014
|
+
return new oe(e.combine || ((t) => t), e.compareInput || ((t, i) => t === i), e.compare || (e.combine ? (t, i) => t === i : Xo), !!e.static, e.enables);
|
|
3015
3015
|
}
|
|
3016
3016
|
/**
|
|
3017
3017
|
Returns an extension that adds the given value to this facet.
|
|
@@ -3074,7 +3074,7 @@ class or {
|
|
|
3074
3074
|
let d, O = f.config.address[r];
|
|
3075
3075
|
if (O != null) {
|
|
3076
3076
|
let y = Sr(f, O);
|
|
3077
|
-
if (this.dependencies.every((m) => m instanceof
|
|
3077
|
+
if (this.dependencies.every((m) => m instanceof oe ? f.facet(m) === c.facet(m) : m instanceof Fe ? f.field(m, !1) == c.field(m, !1) : !0) || (a ? Eu(d = i(c), y, s) : s(d = i(c), y)))
|
|
3078
3078
|
return c.values[l] = y, 0;
|
|
3079
3079
|
} else
|
|
3080
3080
|
d = i(c);
|
|
@@ -3132,7 +3132,7 @@ function e0(n, e, t) {
|
|
|
3132
3132
|
}
|
|
3133
3133
|
};
|
|
3134
3134
|
}
|
|
3135
|
-
const Cs = /* @__PURE__ */
|
|
3135
|
+
const Cs = /* @__PURE__ */ oe.define({ static: !0 });
|
|
3136
3136
|
class Fe {
|
|
3137
3137
|
constructor(e, t, i, s, r) {
|
|
3138
3138
|
this.id = e, this.createF = t, this.updateF = i, this.compareF = s, this.spec = r, this.provides = void 0;
|
|
@@ -3335,13 +3335,13 @@ function Nn(n, e) {
|
|
|
3335
3335
|
function Sr(n, e) {
|
|
3336
3336
|
return e & 1 ? n.config.staticValues[e >> 1] : n.values[e >> 1];
|
|
3337
3337
|
}
|
|
3338
|
-
const nd = /* @__PURE__ */
|
|
3338
|
+
const nd = /* @__PURE__ */ oe.define(), Ca = /* @__PURE__ */ oe.define({
|
|
3339
3339
|
combine: (n) => n.some((e) => e),
|
|
3340
3340
|
static: !0
|
|
3341
|
-
}), sd = /* @__PURE__ */
|
|
3341
|
+
}), sd = /* @__PURE__ */ oe.define({
|
|
3342
3342
|
combine: (n) => n.length ? n[0] : void 0,
|
|
3343
3343
|
static: !0
|
|
3344
|
-
}), rd = /* @__PURE__ */
|
|
3344
|
+
}), rd = /* @__PURE__ */ oe.define(), ld = /* @__PURE__ */ oe.define(), ad = /* @__PURE__ */ oe.define(), od = /* @__PURE__ */ oe.define({
|
|
3345
3345
|
combine: (n) => n.length ? n[0] : !1
|
|
3346
3346
|
});
|
|
3347
3347
|
class di {
|
|
@@ -3889,12 +3889,12 @@ class Pe {
|
|
|
3889
3889
|
}
|
|
3890
3890
|
}
|
|
3891
3891
|
Pe.allowMultipleSelections = Ca;
|
|
3892
|
-
Pe.tabSize = /* @__PURE__ */
|
|
3892
|
+
Pe.tabSize = /* @__PURE__ */ oe.define({
|
|
3893
3893
|
combine: (n) => n.length ? n[0] : 4
|
|
3894
3894
|
});
|
|
3895
3895
|
Pe.lineSeparator = sd;
|
|
3896
3896
|
Pe.readOnly = od;
|
|
3897
|
-
Pe.phrases = /* @__PURE__ */
|
|
3897
|
+
Pe.phrases = /* @__PURE__ */ oe.define({
|
|
3898
3898
|
compare(n, e) {
|
|
3899
3899
|
let t = Object.keys(n), i = Object.keys(e);
|
|
3900
3900
|
return t.length == i.length && t.every((s) => n[s] == e[s]);
|
|
@@ -4823,17 +4823,17 @@ function g0(n, e, t, i, s, r, l, a) {
|
|
|
4823
4823
|
if (s == "nearest")
|
|
4824
4824
|
e.top < f.top ? (p = e.top - (f.top + l), t > 0 && e.bottom > f.bottom + p && (p = e.bottom - f.bottom + l)) : e.bottom > f.bottom && (p = e.bottom - f.bottom + l, t < 0 && e.top - p < f.top && (p = e.top - (f.top + l)));
|
|
4825
4825
|
else {
|
|
4826
|
-
let v = e.bottom - e.top,
|
|
4827
|
-
p = (s == "center" && v <=
|
|
4826
|
+
let v = e.bottom - e.top, V = f.bottom - f.top;
|
|
4827
|
+
p = (s == "center" && v <= V ? e.top + v / 2 - V / 2 : s == "start" || s == "center" && t < 0 ? e.top - l : e.bottom - V + l) - f.top;
|
|
4828
4828
|
}
|
|
4829
4829
|
if (i == "nearest" ? e.left < f.left ? (m = e.left - (f.left + r), t > 0 && e.right > f.right + m && (m = e.right - f.right + r)) : e.right > f.right && (m = e.right - f.right + r, t < 0 && e.left < f.left + m && (m = e.left - (f.left + r))) : m = (i == "center" ? e.left + (e.right - e.left) / 2 - (f.right - f.left) / 2 : i == "start" == a ? e.left - r : e.right - (f.right - f.left) + r) - f.left, m || p)
|
|
4830
4830
|
if (d)
|
|
4831
4831
|
u.scrollBy(m, p);
|
|
4832
4832
|
else {
|
|
4833
|
-
let v = 0,
|
|
4833
|
+
let v = 0, V = 0;
|
|
4834
4834
|
if (p) {
|
|
4835
4835
|
let S = h.scrollTop;
|
|
4836
|
-
h.scrollTop += p / y,
|
|
4836
|
+
h.scrollTop += p / y, V = (h.scrollTop - S) * y;
|
|
4837
4837
|
}
|
|
4838
4838
|
if (m) {
|
|
4839
4839
|
let S = h.scrollLeft;
|
|
@@ -4841,10 +4841,10 @@ function g0(n, e, t, i, s, r, l, a) {
|
|
|
4841
4841
|
}
|
|
4842
4842
|
e = {
|
|
4843
4843
|
left: e.left - v,
|
|
4844
|
-
top: e.top -
|
|
4844
|
+
top: e.top - V,
|
|
4845
4845
|
right: e.right - v,
|
|
4846
|
-
bottom: e.bottom -
|
|
4847
|
-
}, v && Math.abs(v - m) < 1 && (i = "nearest"),
|
|
4846
|
+
bottom: e.bottom - V
|
|
4847
|
+
}, v && Math.abs(v - m) < 1 && (i = "nearest"), V && Math.abs(V - p) < 1 && (s = "nearest");
|
|
4848
4848
|
}
|
|
4849
4849
|
if (d)
|
|
4850
4850
|
break;
|
|
@@ -5213,7 +5213,7 @@ function vd(n, e, t, i, s, r) {
|
|
|
5213
5213
|
}
|
|
5214
5214
|
let ct = typeof navigator < "u" ? navigator : { userAgent: "", vendor: "", platform: "" }, Da = typeof document < "u" ? document : { documentElement: { style: {} } };
|
|
5215
5215
|
const La = /* @__PURE__ */ /Edge\/(\d+)/.exec(ct.userAgent), Sd = /* @__PURE__ */ /MSIE \d/.test(ct.userAgent), za = /* @__PURE__ */ /Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(ct.userAgent), nl = !!(Sd || za || La), Nu = !nl && /* @__PURE__ */ /gecko\/(\d+)/i.test(ct.userAgent), Sl = !nl && /* @__PURE__ */ /Chrome\/(\d+)/.exec(ct.userAgent), ju = "webkitFontSmoothing" in Da.documentElement.style, xd = !nl && /* @__PURE__ */ /Apple Computer/.test(ct.vendor), Gu = xd && (/* @__PURE__ */ /Mobile\/\w+/.test(ct.userAgent) || ct.maxTouchPoints > 2);
|
|
5216
|
-
var
|
|
5216
|
+
var ae = {
|
|
5217
5217
|
mac: Gu || /* @__PURE__ */ /Mac/.test(ct.platform),
|
|
5218
5218
|
windows: /* @__PURE__ */ /Win/.test(ct.platform),
|
|
5219
5219
|
linux: /* @__PURE__ */ /Linux|X11/.test(ct.platform),
|
|
@@ -5311,12 +5311,12 @@ function S0(n, e, t) {
|
|
|
5311
5311
|
let i = n.nodeValue.length;
|
|
5312
5312
|
e > i && (e = i);
|
|
5313
5313
|
let s = e, r = e, l = 0;
|
|
5314
|
-
e == 0 && t < 0 || e == i && t >= 0 ?
|
|
5314
|
+
e == 0 && t < 0 || e == i && t >= 0 ? ae.chrome || ae.gecko || (e ? (s--, l = 1) : r < i && (r++, l = -1)) : t < 0 ? s-- : r < i && r++;
|
|
5315
5315
|
let a = Wi(n, s, r).getClientRects();
|
|
5316
5316
|
if (!a.length)
|
|
5317
5317
|
return null;
|
|
5318
5318
|
let o = a[(l ? l < 0 : t >= 0) ? 0 : a.length - 1];
|
|
5319
|
-
return
|
|
5319
|
+
return ae.safari && !l && o.width == 0 && (o = Array.prototype.find.call(a, (u) => u.width) || o), l ? il(o, l < 0) : o || null;
|
|
5320
5320
|
}
|
|
5321
5321
|
class bi extends Ae {
|
|
5322
5322
|
static create(e, t, i) {
|
|
@@ -5789,7 +5789,7 @@ class Ie extends Ae {
|
|
|
5789
5789
|
let s = this.dom.lastChild;
|
|
5790
5790
|
for (; s && Ae.get(s) instanceof hi; )
|
|
5791
5791
|
s = s.lastChild;
|
|
5792
|
-
if (!s || !this.length || s.nodeName != "BR" && ((i = Ae.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!
|
|
5792
|
+
if (!s || !this.length || s.nodeName != "BR" && ((i = Ae.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!ae.ios || !this.children.some((r) => r instanceof At))) {
|
|
5793
5793
|
let r = document.createElement("BR");
|
|
5794
5794
|
r.cmIgnore = !0, this.dom.appendChild(r);
|
|
5795
5795
|
}
|
|
@@ -6303,11 +6303,11 @@ function Y0(n, e, t) {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
return Ii;
|
|
6305
6305
|
}
|
|
6306
|
-
const Vd = /* @__PURE__ */
|
|
6306
|
+
const Vd = /* @__PURE__ */ oe.define(), Ad = /* @__PURE__ */ oe.define(), Yd = /* @__PURE__ */ oe.define(), Ed = /* @__PURE__ */ oe.define(), Ga = /* @__PURE__ */ oe.define(), qd = /* @__PURE__ */ oe.define(), Md = /* @__PURE__ */ oe.define(), Ao = /* @__PURE__ */ oe.define(), Yo = /* @__PURE__ */ oe.define(), Dd = /* @__PURE__ */ oe.define({
|
|
6307
6307
|
combine: (n) => n.some((e) => e)
|
|
6308
|
-
}), Ld = /* @__PURE__ */
|
|
6308
|
+
}), Ld = /* @__PURE__ */ oe.define({
|
|
6309
6309
|
combine: (n) => n.some((e) => e)
|
|
6310
|
-
}), zd = /* @__PURE__ */
|
|
6310
|
+
}), zd = /* @__PURE__ */ oe.define();
|
|
6311
6311
|
class un {
|
|
6312
6312
|
constructor(e, t = "nearest", i = "nearest", s = 5, r = 5, l = !1) {
|
|
6313
6313
|
this.range = e, this.y = t, this.x = i, this.yMargin = s, this.xMargin = r, this.isSnapshot = l;
|
|
@@ -6324,9 +6324,9 @@ function dt(n, e, t) {
|
|
|
6324
6324
|
let i = n.facet(Ed);
|
|
6325
6325
|
i.length ? i[0](e) : window.onerror && window.onerror(String(e), t, void 0, void 0, e) || (t ? console.error(t + ":", e) : console.error(e));
|
|
6326
6326
|
}
|
|
6327
|
-
const ri = /* @__PURE__ */
|
|
6327
|
+
const ri = /* @__PURE__ */ oe.define({ combine: (n) => n.length ? n[0] : !0 });
|
|
6328
6328
|
let E0 = 0;
|
|
6329
|
-
const nn = /* @__PURE__ */
|
|
6329
|
+
const nn = /* @__PURE__ */ oe.define({
|
|
6330
6330
|
combine(n) {
|
|
6331
6331
|
return n.filter((e, t) => {
|
|
6332
6332
|
for (let i = 0; i < t; i++)
|
|
@@ -6412,7 +6412,7 @@ class xl {
|
|
|
6412
6412
|
this.spec = this.value = null;
|
|
6413
6413
|
}
|
|
6414
6414
|
}
|
|
6415
|
-
const Wd = /* @__PURE__ */
|
|
6415
|
+
const Wd = /* @__PURE__ */ oe.define(), Eo = /* @__PURE__ */ oe.define(), ns = /* @__PURE__ */ oe.define(), Id = /* @__PURE__ */ oe.define(), qo = /* @__PURE__ */ oe.define(), Bd = /* @__PURE__ */ oe.define();
|
|
6416
6416
|
function Hu(n, e) {
|
|
6417
6417
|
let t = n.state.facet(Bd);
|
|
6418
6418
|
if (!t.length)
|
|
@@ -6435,7 +6435,7 @@ function Hu(n, e) {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
}), s;
|
|
6437
6437
|
}
|
|
6438
|
-
const Nd = /* @__PURE__ */
|
|
6438
|
+
const Nd = /* @__PURE__ */ oe.define();
|
|
6439
6439
|
function Mo(n) {
|
|
6440
6440
|
let e = 0, t = 0, i = 0, s = 0;
|
|
6441
6441
|
for (let r of n.state.facet(Nd)) {
|
|
@@ -6444,7 +6444,7 @@ function Mo(n) {
|
|
|
6444
6444
|
}
|
|
6445
6445
|
return { left: e, right: t, top: i, bottom: s };
|
|
6446
6446
|
}
|
|
6447
|
-
const Dn = /* @__PURE__ */
|
|
6447
|
+
const Dn = /* @__PURE__ */ oe.define();
|
|
6448
6448
|
class kt {
|
|
6449
6449
|
constructor(e, t, i, s) {
|
|
6450
6450
|
this.fromA = e, this.toA = t, this.fromB = i, this.toB = s;
|
|
@@ -6572,7 +6572,7 @@ class Ku extends Ae {
|
|
|
6572
6572
|
let { from: u, to: h } = this.hasComposition;
|
|
6573
6573
|
i = new kt(u, h, e.changes.mapPos(u, -1), e.changes.mapPos(h, 1)).addToSet(i.slice());
|
|
6574
6574
|
}
|
|
6575
|
-
this.hasComposition = r ? { from: r.range.fromB, to: r.range.toB } : null, (
|
|
6575
|
+
this.hasComposition = r ? { from: r.range.fromB, to: r.range.toB } : null, (ae.ie || ae.chrome) && !r && e && e.state.doc.lines != e.startState.doc.lines && (this.forceSelection = !0);
|
|
6576
6576
|
let l = this.decorations, a = this.updateDeco(), o = z0(l, a, e.changes);
|
|
6577
6577
|
return i = kt.extendWithRanges(i, o), !(this.flags & 7) && i.length == 0 ? !1 : (this.updateInner(i, e.startState.doc.length, r), e.transactions.length && (this.lastUpdate = Date.now()), !0);
|
|
6578
6578
|
}
|
|
@@ -6583,7 +6583,7 @@ class Ku extends Ae {
|
|
|
6583
6583
|
let { observer: s } = this.view;
|
|
6584
6584
|
s.ignore(() => {
|
|
6585
6585
|
this.dom.style.height = this.view.viewState.contentHeight / this.view.scaleY + "px", this.dom.style.flexBasis = this.minWidth ? this.minWidth + "px" : "";
|
|
6586
|
-
let l =
|
|
6586
|
+
let l = ae.chrome || ae.ios ? { node: s.selectionRange.focusNode, written: !1 } : void 0;
|
|
6587
6587
|
this.sync(this.view, l), this.flags &= -8, l && (l.written || s.selectionRange.focusNode != l.node) && (this.forceSelection = !0), this.dom.style.height = "";
|
|
6588
6588
|
}), this.markedForComposition.forEach(
|
|
6589
6589
|
(l) => l.flags &= -9
|
|
@@ -6609,8 +6609,8 @@ class Ku extends Ae {
|
|
|
6609
6609
|
$.breakAtStart ? P.breakAfter = 1 : $.content.length && P.merge(P.length, P.length, $.content[0], !1, $.openStart, 0) && (P.breakAfter = $.content[0].breakAfter, $.content.shift()), S.content.length && P.merge(0, 0, S.content[S.content.length - 1], !0, 0, S.openEnd) && S.content.pop(), f = S.content.concat(P).concat($.content);
|
|
6610
6610
|
} else
|
|
6611
6611
|
({ content: f, breakAtStart: d, openStart: O, openEnd: y } = Gn.build(this.view.state.doc, h, c, this.decorations, this.dynamicDecorationMap));
|
|
6612
|
-
let { i: m, off: p } = r.findPos(u, 1), { i: v, off:
|
|
6613
|
-
yd(this, v,
|
|
6612
|
+
let { i: m, off: p } = r.findPos(u, 1), { i: v, off: V } = r.findPos(o, -1);
|
|
6613
|
+
yd(this, v, V, m, p, f, d, O, y);
|
|
6614
6614
|
}
|
|
6615
6615
|
i && this.fixCompositionDOM(i);
|
|
6616
6616
|
}
|
|
@@ -6650,17 +6650,17 @@ class Ku extends Ae {
|
|
|
6650
6650
|
let l = this.forceSelection;
|
|
6651
6651
|
this.forceSelection = !1;
|
|
6652
6652
|
let a = this.view.state.selection.main, o = this.moveToLine(this.domAtPos(a.anchor)), u = a.empty ? o : this.moveToLine(this.domAtPos(a.head));
|
|
6653
|
-
if (
|
|
6653
|
+
if (ae.gecko && a.empty && !this.hasComposition && q0(o)) {
|
|
6654
6654
|
let c = document.createTextNode("");
|
|
6655
6655
|
this.view.observer.ignore(() => o.node.insertBefore(c, o.node.childNodes[o.offset] || null)), o = u = new st(c, 0), l = !0;
|
|
6656
6656
|
}
|
|
6657
6657
|
let h = this.view.observer.selectionRange;
|
|
6658
6658
|
(l || !h.focusNode || (!jn(o.node, o.offset, h.anchorNode, h.anchorOffset) || !jn(u.node, u.offset, h.focusNode, h.focusOffset)) && !this.suppressWidgetCursorChange(h, a)) && (this.view.observer.ignore(() => {
|
|
6659
|
-
|
|
6659
|
+
ae.android && ae.chrome && this.dom.contains(h.focusNode) && U0(h.focusNode, this.dom) && (this.dom.blur(), this.dom.focus({ preventScroll: !0 }));
|
|
6660
6660
|
let c = ts(this.view.root);
|
|
6661
6661
|
if (c)
|
|
6662
6662
|
if (a.empty) {
|
|
6663
|
-
if (
|
|
6663
|
+
if (ae.gecko) {
|
|
6664
6664
|
let f = D0(o.node, o.offset);
|
|
6665
6665
|
if (f && f != 3) {
|
|
6666
6666
|
let d = (f == 1 ? _d : Qd)(o.node, o.offset);
|
|
@@ -7023,10 +7023,10 @@ function Fa(n, e, t) {
|
|
|
7023
7023
|
for (let m = 0; m < y.length; m++) {
|
|
7024
7024
|
let p = y[m];
|
|
7025
7025
|
s && $l(s, p) && (p = Ju(eh(p, s.bottom), s.top));
|
|
7026
|
-
let v = B0(e, p),
|
|
7027
|
-
if (v == 0 &&
|
|
7026
|
+
let v = B0(e, p), V = N0(t, p);
|
|
7027
|
+
if (v == 0 && V == 0)
|
|
7028
7028
|
return O.nodeType == 3 ? th(O, e, t) : Fa(O, e, t);
|
|
7029
|
-
(!i || l >
|
|
7029
|
+
(!i || l > V || l == V && r > v) && (i = O, s = p, r = v, l = V, a = v ? e < p.left ? m > 0 : m < y.length - 1 : !0), v == 0 ? t > p.bottom && (!h || h.bottom < p.bottom) ? (o = O, h = p) : t < p.top && (!c || c.top > p.top) && (u = O, c = p) : h && $l(h, p) ? h = eh(h, p.bottom) : c && $l(c, p) && (c = Ju(c, p.top));
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
7032
|
if (h && h.bottom >= t ? (i = o, s = h) : c && c.top <= t && (i = u, s = c), !i)
|
|
@@ -7051,7 +7051,7 @@ function th(n, e, t) {
|
|
|
7051
7051
|
let c = (h.top > t ? h.top - t : t - h.bottom) - 1;
|
|
7052
7052
|
if (h.left - 1 <= e && h.right + 1 >= e && c < r) {
|
|
7053
7053
|
let f = e >= (h.left + h.right) / 2, d = f;
|
|
7054
|
-
if ((
|
|
7054
|
+
if ((ae.chrome || ae.gecko) && Wi(n, a).getBoundingClientRect().left == h.right && (d = !f), c <= 0)
|
|
7055
7055
|
return { node: n, offset: a + (d ? 1 : 0) };
|
|
7056
7056
|
s = a + (d ? 1 : 0), r = c;
|
|
7057
7057
|
}
|
|
@@ -7087,7 +7087,7 @@ function Gd(n, e, t, i = -1) {
|
|
|
7087
7087
|
S && ({ offsetNode: p, offset: v } = S);
|
|
7088
7088
|
} else if (O.caretRangeFromPoint) {
|
|
7089
7089
|
let S = O.caretRangeFromPoint(h, c);
|
|
7090
|
-
S && ({ startContainer: p, startOffset: v } = S, (!n.contentDOM.contains(p) ||
|
|
7090
|
+
S && ({ startContainer: p, startOffset: v } = S, (!n.contentDOM.contains(p) || ae.safari && j0(p, v, h) || ae.chrome && G0(p, v, h)) && (p = void 0));
|
|
7091
7091
|
}
|
|
7092
7092
|
p && (v = Math.min(Jt(p), v));
|
|
7093
7093
|
}
|
|
@@ -7097,14 +7097,14 @@ function Gd(n, e, t, i = -1) {
|
|
|
7097
7097
|
return f > o.top + o.height / 2 ? o.to : o.from;
|
|
7098
7098
|
({ node: p, offset: v } = Fa(S.dom, h, c));
|
|
7099
7099
|
}
|
|
7100
|
-
let
|
|
7101
|
-
if (!
|
|
7100
|
+
let V = n.docView.nearest(p);
|
|
7101
|
+
if (!V)
|
|
7102
7102
|
return null;
|
|
7103
|
-
if (
|
|
7104
|
-
let S =
|
|
7105
|
-
return e.y < S.top || e.y <= S.bottom && e.x <= (S.left + S.right) / 2 ?
|
|
7103
|
+
if (V.isWidget && ((r = V.dom) === null || r === void 0 ? void 0 : r.nodeType) == 1) {
|
|
7104
|
+
let S = V.dom.getBoundingClientRect();
|
|
7105
|
+
return e.y < S.top || e.y <= S.bottom && e.x <= (S.left + S.right) / 2 ? V.posAtStart : V.posAtEnd;
|
|
7106
7106
|
} else
|
|
7107
|
-
return
|
|
7107
|
+
return V.localPosFromDOM(p, v) + V.posAtStart;
|
|
7108
7108
|
}
|
|
7109
7109
|
function ih(n, e, t, i, s) {
|
|
7110
7110
|
let r = Math.round((i - e.left) * n.defaultCharacterWidth);
|
|
@@ -7329,7 +7329,7 @@ class tQ {
|
|
|
7329
7329
|
o.readRange(this.bounds.startDOM, this.bounds.endDOM), this.text = o.text, this.newSel = rQ(a, this.bounds.from);
|
|
7330
7330
|
} else {
|
|
7331
7331
|
let a = e.observer.selectionRange, o = r && r.node == a.focusNode && r.offset == a.focusOffset || !Ma(e.contentDOM, a.focusNode) ? e.state.selection.main.head : e.docView.posFromDOM(a.focusNode, a.focusOffset), u = l && l.node == a.anchorNode && l.offset == a.anchorOffset || !Ma(e.contentDOM, a.anchorNode) ? e.state.selection.main.anchor : e.docView.posFromDOM(a.anchorNode, a.anchorOffset), h = e.viewport;
|
|
7332
|
-
if ((
|
|
7332
|
+
if ((ae.ios || ae.chrome) && e.state.selection.main.empty && o != u && (h.from > 0 || h.to < e.state.doc.length)) {
|
|
7333
7333
|
let c = Math.min(o, u), f = Math.max(o, u), d = h.from - c, O = h.to - f;
|
|
7334
7334
|
(d == 0 || d == 1 || c == 0) && (O == 0 || O == -1 || f == e.state.doc.length) && (o = 0, u = e.state.doc.length);
|
|
7335
7335
|
}
|
|
@@ -7341,9 +7341,9 @@ function Fd(n, e) {
|
|
|
7341
7341
|
let t, { newSel: i } = e, s = n.state.selection.main, r = n.inputState.lastKeyTime > Date.now() - 100 ? n.inputState.lastKeyCode : -1;
|
|
7342
7342
|
if (e.bounds) {
|
|
7343
7343
|
let { from: l, to: a } = e.bounds, o = s.from, u = null;
|
|
7344
|
-
(r === 8 ||
|
|
7344
|
+
(r === 8 || ae.android && e.text.length < a - l) && (o = s.to, u = "end");
|
|
7345
7345
|
let h = nQ(n.state.doc.sliceString(l, a, Ln), e.text, o - l, u);
|
|
7346
|
-
h && (
|
|
7346
|
+
h && (ae.chrome && r == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == Ln + Ln && h.toB--, t = {
|
|
7347
7347
|
from: l + h.from,
|
|
7348
7348
|
to: l + h.toA,
|
|
7349
7349
|
insert: $e.of(e.text.slice(h.from, h.toB).split(Ln))
|
|
@@ -7352,11 +7352,11 @@ function Fd(n, e) {
|
|
|
7352
7352
|
i && (!n.hasFocus && n.state.facet(ri) || i.main.eq(s)) && (i = null);
|
|
7353
7353
|
if (!t && !i)
|
|
7354
7354
|
return !1;
|
|
7355
|
-
if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (
|
|
7355
|
+
if (!t && e.typeOver && !s.empty && i && i.main.empty ? t = { from: s.from, to: s.to, insert: n.state.doc.slice(s.from, s.to) } : (ae.mac || ae.android) && t && t.from == t.to && t.from == s.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = W.single(i.main.anchor - 1, i.main.head - 1)), t = { from: t.from, to: t.to, insert: $e.of([t.insert.toString().replace(".", " ")]) }) : t && t.from >= s.from && t.to <= s.to && (t.from != s.from || t.to != s.to) && s.to - s.from - (t.to - t.from) <= 4 ? t = {
|
|
7356
7356
|
from: s.from,
|
|
7357
7357
|
to: s.to,
|
|
7358
7358
|
insert: n.state.doc.slice(s.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, s.to))
|
|
7359
|
-
} :
|
|
7359
|
+
} : ae.chrome && t && t.from == t.to && t.from == s.head && t.insert.toString() == `
|
|
7360
7360
|
` && n.lineWrapping && (i && (i = W.single(i.main.anchor - 1, i.main.head - 1)), t = { from: s.from, to: s.to, insert: $e.of([" "]) }), t)
|
|
7361
7361
|
return Do(n, t, i, r);
|
|
7362
7362
|
if (i && !i.main.eq(s)) {
|
|
@@ -7366,10 +7366,10 @@ function Fd(n, e) {
|
|
|
7366
7366
|
return !1;
|
|
7367
7367
|
}
|
|
7368
7368
|
function Do(n, e, t, i = -1) {
|
|
7369
|
-
if (
|
|
7369
|
+
if (ae.ios && n.inputState.flushIOSKey(e))
|
|
7370
7370
|
return !0;
|
|
7371
7371
|
let s = n.state.selection.main;
|
|
7372
|
-
if (
|
|
7372
|
+
if (ae.android && (e.to == s.to && // GBoard will sometimes remove a space it just inserted
|
|
7373
7373
|
// after a completion when you press enter
|
|
7374
7374
|
(e.from == s.from || e.from == s.from - 1 && n.state.sliceDoc(e.from, s.from) == " ") && e.insert.length == 1 && e.insert.lines == 2 && on(n.contentDOM, "Enter", 13) || (e.from == s.from - 1 && e.to == s.to && e.insert.length == 0 || i == 8 && e.insert.length < e.to - e.from && e.to > s.head) && on(n.contentDOM, "Backspace", 8) || e.from == s.from && e.to == s.to + 1 && e.insert.length == 0 && on(n.contentDOM, "Delete", 46)))
|
|
7375
7375
|
return !0;
|
|
@@ -7458,7 +7458,7 @@ class lQ {
|
|
|
7458
7458
|
this.lastSelectionOrigin = e, this.lastSelectionTime = Date.now();
|
|
7459
7459
|
}
|
|
7460
7460
|
constructor(e) {
|
|
7461
|
-
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus,
|
|
7461
|
+
this.view = e, this.lastKeyCode = 0, this.lastKeyTime = 0, this.lastTouchTime = 0, this.lastFocusTime = 0, this.lastScrollTop = 0, this.lastScrollLeft = 0, this.pendingIOSKey = void 0, this.tabFocusMode = -1, this.lastSelectionOrigin = null, this.lastSelectionTime = 0, this.lastContextMenu = 0, this.scrollHandlers = [], this.handlers = /* @__PURE__ */ Object.create(null), this.composing = -1, this.compositionFirstChange = null, this.compositionEndedAt = 0, this.compositionPendingKey = !1, this.compositionPendingChange = !1, this.mouseSelection = null, this.draggedContent = null, this.handleEvent = this.handleEvent.bind(this), this.notifiedFocused = e.hasFocus, ae.safari && e.contentDOM.addEventListener("input", () => null), ae.gecko && vQ(e.contentDOM.ownerDocument);
|
|
7462
7462
|
}
|
|
7463
7463
|
handleEvent(e) {
|
|
7464
7464
|
!OQ(this.view, e) || this.ignoreDuringComposition(e) || e.type == "keydown" && this.keydown(e) || (this.view.updateState != 0 ? Promise.resolve().then(() => this.runHandlers(e.type, e)) : this.runHandlers(e.type, e));
|
|
@@ -7492,17 +7492,17 @@ class lQ {
|
|
|
7492
7492
|
keydown(e) {
|
|
7493
7493
|
if (this.lastKeyCode = e.keyCode, this.lastKeyTime = Date.now(), e.keyCode == 9 && this.tabFocusMode > -1 && (!this.tabFocusMode || Date.now() <= this.tabFocusMode))
|
|
7494
7494
|
return !0;
|
|
7495
|
-
if (this.tabFocusMode > 0 && e.keyCode != 27 && Kd.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1),
|
|
7495
|
+
if (this.tabFocusMode > 0 && e.keyCode != 27 && Kd.indexOf(e.keyCode) < 0 && (this.tabFocusMode = -1), ae.android && ae.chrome && !e.synthetic && (e.keyCode == 13 || e.keyCode == 8))
|
|
7496
7496
|
return this.view.observer.delayAndroidKey(e.key, e.keyCode), !0;
|
|
7497
7497
|
let t;
|
|
7498
|
-
return
|
|
7498
|
+
return ae.ios && !e.synthetic && !e.altKey && !e.metaKey && ((t = Hd.find((i) => i.keyCode == e.keyCode)) && !e.ctrlKey || oQ.indexOf(e.key) > -1 && e.ctrlKey && !e.shiftKey) ? (this.pendingIOSKey = t || e, setTimeout(() => this.flushIOSKey(), 250), !0) : (e.keyCode != 229 && this.view.observer.forceFlush(), !1);
|
|
7499
7499
|
}
|
|
7500
7500
|
flushIOSKey(e) {
|
|
7501
7501
|
let t = this.pendingIOSKey;
|
|
7502
7502
|
return !t || t.key == "Enter" && e && e.from < e.to && /^\S+$/.test(e.insert.toString()) ? !1 : (this.pendingIOSKey = void 0, on(this.view.contentDOM, t.key, t.keyCode, t instanceof KeyboardEvent ? t : void 0));
|
|
7503
7503
|
}
|
|
7504
7504
|
ignoreDuringComposition(e) {
|
|
7505
|
-
return /^key/.test(e.type) ? this.composing > 0 ? !0 :
|
|
7505
|
+
return /^key/.test(e.type) ? this.composing > 0 ? !0 : ae.safari && !ae.ios && this.compositionPendingKey && Date.now() - this.compositionEndedAt < 100 ? (this.compositionPendingKey = !1, !0) : !1 : !1;
|
|
7506
7506
|
}
|
|
7507
7507
|
startMouseSelection(e) {
|
|
7508
7508
|
this.mouseSelection && this.mouseSelection.destroy(), this.mouseSelection = e;
|
|
@@ -7622,11 +7622,11 @@ class hQ {
|
|
|
7622
7622
|
}
|
|
7623
7623
|
function cQ(n, e) {
|
|
7624
7624
|
let t = n.state.facet(Vd);
|
|
7625
|
-
return t.length ? t[0](e) :
|
|
7625
|
+
return t.length ? t[0](e) : ae.mac ? e.metaKey : e.ctrlKey;
|
|
7626
7626
|
}
|
|
7627
7627
|
function fQ(n, e) {
|
|
7628
7628
|
let t = n.state.facet(Ad);
|
|
7629
|
-
return t.length ? t[0](e) :
|
|
7629
|
+
return t.length ? t[0](e) : ae.mac ? !e.altKey : !e.ctrlKey;
|
|
7630
7630
|
}
|
|
7631
7631
|
function dQ(n, e) {
|
|
7632
7632
|
let { main: t } = n.state.selection;
|
|
@@ -7653,7 +7653,7 @@ function OQ(n, e) {
|
|
|
7653
7653
|
return !1;
|
|
7654
7654
|
return !0;
|
|
7655
7655
|
}
|
|
7656
|
-
const Yt = /* @__PURE__ */ Object.create(null), Tt = /* @__PURE__ */ Object.create(null), Jd =
|
|
7656
|
+
const Yt = /* @__PURE__ */ Object.create(null), Tt = /* @__PURE__ */ Object.create(null), Jd = ae.ie && ae.ie_version < 15 || ae.ios && ae.webkit_version < 604;
|
|
7657
7657
|
function pQ(n) {
|
|
7658
7658
|
let e = n.dom.parentNode;
|
|
7659
7659
|
if (!e)
|
|
@@ -7757,7 +7757,7 @@ function oh(n, e) {
|
|
|
7757
7757
|
let t = n.posAtCoords({ x: e.clientX, y: e.clientY }, !1);
|
|
7758
7758
|
return { pos: t, bias: mQ(n, t, e.clientX, e.clientY) };
|
|
7759
7759
|
}
|
|
7760
|
-
const gQ =
|
|
7760
|
+
const gQ = ae.ie && ae.ie_version <= 11;
|
|
7761
7761
|
let uh = null, hh = 0, ch = 0;
|
|
7762
7762
|
function tO(n) {
|
|
7763
7763
|
if (!gQ)
|
|
@@ -7907,7 +7907,7 @@ Tt.compositionstart = Tt.compositionupdate = (n) => {
|
|
|
7907
7907
|
n.observer.editContext || (n.inputState.compositionFirstChange == null && (n.inputState.compositionFirstChange = !0), n.inputState.composing < 0 && (n.inputState.composing = 0));
|
|
7908
7908
|
};
|
|
7909
7909
|
Tt.compositionend = (n) => {
|
|
7910
|
-
n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null,
|
|
7910
|
+
n.observer.editContext || (n.inputState.composing = -1, n.inputState.compositionEndedAt = Date.now(), n.inputState.compositionPendingKey = !0, n.inputState.compositionPendingChange = n.observer.pendingRecords().length > 0, n.inputState.compositionFirstChange = null, ae.chrome && ae.android ? n.observer.flushSoon() : n.inputState.compositionPendingChange ? Promise.resolve().then(() => n.observer.flush()) : setTimeout(() => {
|
|
7911
7911
|
n.inputState.composing < 0 && n.docView.hasComposition && n.update([]);
|
|
7912
7912
|
}, 50));
|
|
7913
7913
|
};
|
|
@@ -7924,14 +7924,14 @@ Yt.beforeinput = (n, e) => {
|
|
|
7924
7924
|
}
|
|
7925
7925
|
}
|
|
7926
7926
|
let s;
|
|
7927
|
-
if (
|
|
7927
|
+
if (ae.chrome && ae.android && (s = Hd.find((r) => r.inputType == e.inputType)) && (n.observer.delayAndroidKey(s.key, s.keyCode), s.key == "Backspace" || s.key == "Delete")) {
|
|
7928
7928
|
let r = ((i = window.visualViewport) === null || i === void 0 ? void 0 : i.height) || 0;
|
|
7929
7929
|
setTimeout(() => {
|
|
7930
7930
|
var l;
|
|
7931
7931
|
(((l = window.visualViewport) === null || l === void 0 ? void 0 : l.height) || 0) > r + 10 && n.hasFocus && (n.contentDOM.blur(), n.focus());
|
|
7932
7932
|
}, 100);
|
|
7933
7933
|
}
|
|
7934
|
-
return
|
|
7934
|
+
return ae.ios && e.inputType == "deleteContentForward" && n.observer.flushSoon(), ae.safari && e.inputType == "insertText" && n.inputState.composing >= 0 && setTimeout(() => Tt.compositionend(n, e), 20), !1;
|
|
7935
7935
|
};
|
|
7936
7936
|
const dh = /* @__PURE__ */ new Set();
|
|
7937
7937
|
function vQ(n) {
|
|
@@ -8537,8 +8537,8 @@ class gh {
|
|
|
8537
8537
|
}
|
|
8538
8538
|
mn && (u |= 2);
|
|
8539
8539
|
}
|
|
8540
|
-
let
|
|
8541
|
-
return
|
|
8540
|
+
let V = !this.viewportIsAppropriate(this.viewport, h) || this.scrollTarget && (this.scrollTarget.range.head < this.viewport.from || this.scrollTarget.range.head > this.viewport.to);
|
|
8541
|
+
return V && (u & 2 && (u |= this.updateScaler()), this.viewport = this.getViewport(h, this.scrollTarget), u |= this.updateForViewport()), (u & 2 || V) && this.updateViewportLines(), (this.lineGaps.length || this.viewport.to - this.viewport.from > 4e3) && this.updateLineGaps(this.ensureLineGaps(l ? [] : this.lineGaps, e)), u |= this.computeVisibleRanges(), this.mustEnforceCursorAssoc && (this.mustEnforceCursorAssoc = !1, e.docView.enforceCursorAssoc()), u;
|
|
8542
8542
|
}
|
|
8543
8543
|
get visibleTop() {
|
|
8544
8544
|
return this.scaler.fromDOM(this.pixelViewport.top);
|
|
@@ -8608,9 +8608,9 @@ class gh {
|
|
|
8608
8608
|
}
|
|
8609
8609
|
let m = VQ(e, (p) => p.from >= f.from && p.to <= f.to && Math.abs(p.from - h) < r && Math.abs(p.to - c) < r && !y.some((v) => p.from < v && p.to > v));
|
|
8610
8610
|
if (!m) {
|
|
8611
|
-
if (c < f.to && t && i && t.visibleRanges.some((
|
|
8612
|
-
let
|
|
8613
|
-
|
|
8611
|
+
if (c < f.to && t && i && t.visibleRanges.some((V) => V.from <= c && V.to >= c)) {
|
|
8612
|
+
let V = t.moveToLineBoundary(W.cursor(c), !1, !0).head;
|
|
8613
|
+
V > h && (c = V);
|
|
8614
8614
|
}
|
|
8615
8615
|
let p = this.gapSize(f, h, c, d), v = i || p < 2e6 ? p : 2e6;
|
|
8616
8616
|
m = new Pl(h, c, p, v);
|
|
@@ -8626,8 +8626,8 @@ class gh {
|
|
|
8626
8626
|
if (i) {
|
|
8627
8627
|
let y = s / this.heightOracle.lineLength * this.heightOracle.lineHeight, m, p;
|
|
8628
8628
|
if (f != null) {
|
|
8629
|
-
let v = Ms(c, f),
|
|
8630
|
-
m = v -
|
|
8629
|
+
let v = Ms(c, f), V = ((this.visibleBottom - this.visibleTop) / 2 + y) / h.height;
|
|
8630
|
+
m = v - V, p = v + V;
|
|
8631
8631
|
} else
|
|
8632
8632
|
m = (this.visibleTop - h.top - y) / h.height, p = (this.visibleBottom - h.top + y) / h.height;
|
|
8633
8633
|
d = qs(c, m), O = qs(c, p);
|
|
@@ -8636,12 +8636,12 @@ class gh {
|
|
|
8636
8636
|
if (y > 2e6)
|
|
8637
8637
|
for (let P of e)
|
|
8638
8638
|
P.from >= h.from && P.from < h.to && P.size != P.displaySize && P.from * this.heightOracle.charWidth + p < this.pixelViewport.left && (p = P.size - P.displaySize);
|
|
8639
|
-
let v = this.pixelViewport.left + p,
|
|
8639
|
+
let v = this.pixelViewport.left + p, V = this.pixelViewport.right + p, S, $;
|
|
8640
8640
|
if (f != null) {
|
|
8641
|
-
let P = Ms(c, f), w = ((
|
|
8641
|
+
let P = Ms(c, f), w = ((V - v) / 2 + m) / y;
|
|
8642
8642
|
S = P - w, $ = P + w;
|
|
8643
8643
|
} else
|
|
8644
|
-
S = (v - m) / y, $ = (
|
|
8644
|
+
S = (v - m) / y, $ = (V + m) / y;
|
|
8645
8645
|
d = qs(c, S), O = qs(c, $);
|
|
8646
8646
|
}
|
|
8647
8647
|
d > h.from && o(h.from, d, h, c), O < h.to && o(O, h.to, h, c);
|
|
@@ -8794,7 +8794,7 @@ function zn(n, e) {
|
|
|
8794
8794
|
let t = e.toDOM(n.top), i = e.toDOM(n.bottom);
|
|
8795
8795
|
return new Nt(n.from, n.length, t, i - t, Array.isArray(n._content) ? n._content.map((s) => zn(s, e)) : n._content);
|
|
8796
8796
|
}
|
|
8797
|
-
const Ds = /* @__PURE__ */
|
|
8797
|
+
const Ds = /* @__PURE__ */ oe.define({ combine: (n) => n.join(" ") }), Ja = /* @__PURE__ */ oe.define({ combine: (n) => n.indexOf(!0) > -1 }), eo = /* @__PURE__ */ Si.newName(), lO = /* @__PURE__ */ Si.newName(), aO = /* @__PURE__ */ Si.newName(), oO = { "&light": "." + lO, "&dark": "." + aO };
|
|
8798
8798
|
function to(n, e, t) {
|
|
8799
8799
|
return new Si(e, {
|
|
8800
8800
|
finish(i) {
|
|
@@ -9082,15 +9082,15 @@ const AQ = /* @__PURE__ */ to("." + eo, {
|
|
|
9082
9082
|
subtree: !0,
|
|
9083
9083
|
attributes: !0,
|
|
9084
9084
|
characterDataOldValue: !0
|
|
9085
|
-
}, kl =
|
|
9085
|
+
}, kl = ae.ie && ae.ie_version <= 11;
|
|
9086
9086
|
class EQ {
|
|
9087
9087
|
constructor(e) {
|
|
9088
9088
|
this.view = e, this.active = !1, this.editContext = null, this.selectionRange = new Q0(), this.selectionChanged = !1, this.delayedFlush = -1, this.resizeTimeout = -1, this.queue = [], this.delayedAndroidKey = null, this.flushingAndroidKey = -1, this.lastChange = 0, this.scrollTargets = [], this.intersection = null, this.resizeScroll = null, this.intersecting = !1, this.gapIntersection = null, this.gaps = [], this.printQuery = null, this.parentCheck = -1, this.dom = e.contentDOM, this.observer = new MutationObserver((t) => {
|
|
9089
9089
|
for (let i of t)
|
|
9090
9090
|
this.queue.push(i);
|
|
9091
|
-
(
|
|
9092
|
-
}), window.EditContext &&
|
|
9093
|
-
!(
|
|
9091
|
+
(ae.ie && ae.ie_version <= 11 || ae.ios && e.composing) && t.some((i) => i.type == "childList" && i.removedNodes.length || i.type == "characterData" && i.oldValue.length > i.target.nodeValue.length) ? this.flushSoon() : this.flush();
|
|
9092
|
+
}), window.EditContext && ae.android && e.constructor.EDIT_CONTEXT !== !1 && // Chrome <126 doesn't support inverted selections in edit context (#1392)
|
|
9093
|
+
!(ae.chrome && ae.chrome_version < 126) && (this.editContext = new MQ(e), e.state.facet(ri) && (e.contentDOM.editContext = this.editContext.editContext)), kl && (this.onCharData = (t) => {
|
|
9094
9094
|
this.queue.push({
|
|
9095
9095
|
target: t.target,
|
|
9096
9096
|
type: "characterData",
|
|
@@ -9141,14 +9141,14 @@ class EQ {
|
|
|
9141
9141
|
t || (this.selectionChanged = !1);
|
|
9142
9142
|
return;
|
|
9143
9143
|
}
|
|
9144
|
-
(
|
|
9144
|
+
(ae.ie && ae.ie_version <= 11 || ae.android && ae.chrome) && !i.state.selection.main.empty && // (Selection.isCollapsed isn't reliable on IE)
|
|
9145
9145
|
s.focusNode && jn(s.focusNode, s.focusOffset, s.anchorNode, s.anchorOffset) ? this.flushSoon() : this.flush(!1);
|
|
9146
9146
|
}
|
|
9147
9147
|
readSelectionRange() {
|
|
9148
9148
|
let { view: e } = this, t = ts(e.root);
|
|
9149
9149
|
if (!t)
|
|
9150
9150
|
return !1;
|
|
9151
|
-
let i =
|
|
9151
|
+
let i = ae.safari && e.root.nodeType == 11 && e.root.activeElement == this.dom && qQ(this.view, t) || t;
|
|
9152
9152
|
if (!i || this.selectionRange.eq(i))
|
|
9153
9153
|
return !1;
|
|
9154
9154
|
let s = ur(this.dom, i);
|
|
@@ -9346,7 +9346,7 @@ class MQ {
|
|
|
9346
9346
|
h.main.eq(s) || e.dispatch({ selection: h, userEvent: "select" });
|
|
9347
9347
|
return;
|
|
9348
9348
|
}
|
|
9349
|
-
if ((
|
|
9349
|
+
if ((ae.mac || ae.android) && u.from == l - 1 && /^\. ?$/.test(i.text) && e.contentDOM.getAttribute("autocorrect") == "off" && (u = { from: a, to: o, insert: $e.of([i.text.replace(".", " ")]) }), this.pendingContextChange = u, !e.state.readOnly) {
|
|
9350
9350
|
let h = this.to - this.from + (u.to - u.from + u.insert.length);
|
|
9351
9351
|
Do(e, u, W.single(this.toEditorPos(i.selectionStart, h), this.toEditorPos(i.selectionEnd, h)));
|
|
9352
9352
|
}
|
|
@@ -9740,7 +9740,7 @@ class te {
|
|
|
9740
9740
|
translate: "no",
|
|
9741
9741
|
contenteditable: this.state.facet(ri) ? "true" : "false",
|
|
9742
9742
|
class: "cm-content",
|
|
9743
|
-
style: `${
|
|
9743
|
+
style: `${ae.tabSize}: ${this.state.tabSize}`,
|
|
9744
9744
|
role: "textbox",
|
|
9745
9745
|
"aria-multiline": "true"
|
|
9746
9746
|
};
|
|
@@ -10054,7 +10054,7 @@ class te {
|
|
|
10054
10054
|
*/
|
|
10055
10055
|
get hasFocus() {
|
|
10056
10056
|
var e;
|
|
10057
|
-
return (this.dom.ownerDocument.hasFocus() ||
|
|
10057
|
+
return (this.dom.ownerDocument.hasFocus() || ae.safari && ((e = this.inputState) === null || e === void 0 ? void 0 : e.lastContextMenu) > Date.now() - 3e4) && this.root.activeElement == this.contentDOM;
|
|
10058
10058
|
}
|
|
10059
10059
|
/**
|
|
10060
10060
|
Put focus on the editor.
|
|
@@ -10208,7 +10208,7 @@ te.atomicRanges = qo;
|
|
|
10208
10208
|
te.bidiIsolatedRanges = Bd;
|
|
10209
10209
|
te.scrollMargins = Nd;
|
|
10210
10210
|
te.darkTheme = Ja;
|
|
10211
|
-
te.cspNonce = /* @__PURE__ */
|
|
10211
|
+
te.cspNonce = /* @__PURE__ */ oe.define({ combine: (n) => n.length ? n[0] : "" });
|
|
10212
10212
|
te.contentAttributes = Eo;
|
|
10213
10213
|
te.editorAttributes = Wd;
|
|
10214
10214
|
te.lineWrapping = /* @__PURE__ */ te.contentAttributes.of({ class: "cm-lineWrapping" });
|
|
@@ -10236,7 +10236,7 @@ function vh(n, e, t) {
|
|
|
10236
10236
|
}
|
|
10237
10237
|
return t;
|
|
10238
10238
|
}
|
|
10239
|
-
const LQ =
|
|
10239
|
+
const LQ = ae.mac ? "mac" : ae.windows ? "win" : ae.linux ? "linux" : "key";
|
|
10240
10240
|
function zQ(n, e) {
|
|
10241
10241
|
const t = n.split(/-(?!$)/);
|
|
10242
10242
|
let i = t[t.length - 1];
|
|
@@ -10266,7 +10266,7 @@ const UQ = /* @__PURE__ */ Ci.default(/* @__PURE__ */ te.domEventHandlers({
|
|
|
10266
10266
|
keydown(n, e) {
|
|
10267
10267
|
return hO(uO(e.state), n, e, "editor");
|
|
10268
10268
|
}
|
|
10269
|
-
})), rl = /* @__PURE__ */
|
|
10269
|
+
})), rl = /* @__PURE__ */ oe.define({ enables: UQ }), Sh = /* @__PURE__ */ new WeakMap();
|
|
10270
10270
|
function uO(n) {
|
|
10271
10271
|
let e = n.facet(rl), t = Sh.get(e);
|
|
10272
10272
|
return t || Sh.set(e, t = BQ(e.reduce((i, s) => i.concat(s), []))), t;
|
|
@@ -10291,8 +10291,8 @@ function BQ(n, e = LQ) {
|
|
|
10291
10291
|
s(v, !0), d[v] || (d[v] = {
|
|
10292
10292
|
preventDefault: !0,
|
|
10293
10293
|
stopPropagation: !1,
|
|
10294
|
-
run: [(
|
|
10295
|
-
let S = _i = { view:
|
|
10294
|
+
run: [(V) => {
|
|
10295
|
+
let S = _i = { view: V, prefix: v, scope: l };
|
|
10296
10296
|
return setTimeout(() => {
|
|
10297
10297
|
_i == S && (_i = null);
|
|
10298
10298
|
}, IQ), !0;
|
|
@@ -10340,8 +10340,8 @@ function hO(n, e, t, i) {
|
|
|
10340
10340
|
return !1;
|
|
10341
10341
|
}, d = n[i], O, y;
|
|
10342
10342
|
return d && (f(d[a + Ls(s, e, !l)]) ? o = !0 : l && (e.altKey || e.metaKey || e.ctrlKey) && // Ctrl-Alt may be used for AltGr on Windows
|
|
10343
|
-
!(
|
|
10344
|
-
!(
|
|
10343
|
+
!(ae.windows && e.ctrlKey && e.altKey) && // Alt-combinations on macOS tend to be typed characters
|
|
10344
|
+
!(ae.mac && e.altKey && !e.ctrlKey) && (O = xi[e.keyCode]) && O != s ? (f(d[a + Ls(O, e, !0)]) || e.shiftKey && (y = es[e.keyCode]) != s && y != O && f(d[a + Ls(y, e, !1)])) && (o = !0) : l && e.shiftKey && f(d[a + Ls(s, e, !0)]) && (o = !0), !o && f(d._any) && (o = !0)), u && (o = !0), o && h && e.stopPropagation(), io = null, o;
|
|
10345
10345
|
}
|
|
10346
10346
|
class vs {
|
|
10347
10347
|
/**
|
|
@@ -10398,9 +10398,9 @@ function NQ(n, e, t) {
|
|
|
10398
10398
|
return [];
|
|
10399
10399
|
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), r = n.textDirection == Me.LTR, l = n.contentDOM, a = l.getBoundingClientRect(), o = cO(n), u = l.querySelector(".cm-line"), h = u && window.getComputedStyle(u), c = a.left + (h ? parseInt(h.paddingLeft) + Math.min(0, parseInt(h.textIndent)) : 0), f = a.right - (h ? parseInt(h.paddingRight) : 0), d = Ha(n, i, 1), O = Ha(n, s, -1), y = d.type == at.Text ? d : null, m = O.type == at.Text ? O : null;
|
|
10400
10400
|
if (y && (n.lineWrapping || d.widgetLineBreaks) && (y = xh(n, i, 1, y)), m && (n.lineWrapping || O.widgetLineBreaks) && (m = xh(n, s, -1, m)), y && m && y.from == m.from && y.to == m.to)
|
|
10401
|
-
return v(
|
|
10401
|
+
return v(V(t.from, t.to, y));
|
|
10402
10402
|
{
|
|
10403
|
-
let $ = y ?
|
|
10403
|
+
let $ = y ? V(t.from, null, y) : S(d, !1), P = m ? V(null, t.to, m) : S(O, !0), w = [];
|
|
10404
10404
|
return (y || d).to < (m || O).from - (y && m ? 1 : 0) || d.widgetLineBreaks > 1 && $.bottom + n.defaultLineHeight / 2 < P.top ? w.push(p(c, $.bottom, f, P.top)) : $.bottom < P.top && n.elementAtHeight(($.bottom + P.top) / 2).type == at.Text && ($.bottom = P.top = ($.bottom + P.top) / 2), v($).concat(w).concat(v(P));
|
|
10405
10405
|
}
|
|
10406
10406
|
function p($, P, w, k) {
|
|
@@ -10412,7 +10412,7 @@ function NQ(n, e, t) {
|
|
|
10412
10412
|
k.push(p(w[R], $, w[R + 1], P));
|
|
10413
10413
|
return k;
|
|
10414
10414
|
}
|
|
10415
|
-
function
|
|
10415
|
+
function V($, P, w) {
|
|
10416
10416
|
let k = 1e9, R = -1e9, Q = [];
|
|
10417
10417
|
function T(j, H, K, me, Se) {
|
|
10418
10418
|
let pe = n.coordsAtPos(j, j == w.to ? -2 : 2), ue = n.coordsAtPos(K, K == w.from ? 2 : -2);
|
|
@@ -10481,14 +10481,14 @@ class GQ {
|
|
|
10481
10481
|
this.layer.destroy && this.layer.destroy(this.dom, this.view), this.dom.remove();
|
|
10482
10482
|
}
|
|
10483
10483
|
}
|
|
10484
|
-
const dr = /* @__PURE__ */
|
|
10484
|
+
const dr = /* @__PURE__ */ oe.define();
|
|
10485
10485
|
function fO(n) {
|
|
10486
10486
|
return [
|
|
10487
10487
|
Ne.define((e) => new GQ(e, n)),
|
|
10488
10488
|
dr.of(n)
|
|
10489
10489
|
];
|
|
10490
10490
|
}
|
|
10491
|
-
const ss = /* @__PURE__ */
|
|
10491
|
+
const ss = /* @__PURE__ */ oe.define({
|
|
10492
10492
|
combine(n) {
|
|
10493
10493
|
return ei(n, {
|
|
10494
10494
|
cursorBlinkRate: 1200,
|
|
@@ -10744,7 +10744,7 @@ function l1() {
|
|
|
10744
10744
|
}
|
|
10745
10745
|
return Tl || !1;
|
|
10746
10746
|
}
|
|
10747
|
-
const Or = /* @__PURE__ */
|
|
10747
|
+
const Or = /* @__PURE__ */ oe.define({
|
|
10748
10748
|
combine(n) {
|
|
10749
10749
|
let e = ei(n, {
|
|
10750
10750
|
render: null,
|
|
@@ -10972,11 +10972,11 @@ function S1(n) {
|
|
|
10972
10972
|
let e = n.dom.ownerDocument.documentElement;
|
|
10973
10973
|
return { top: 0, left: 0, bottom: e.clientHeight, right: e.clientWidth };
|
|
10974
10974
|
}
|
|
10975
|
-
const Cl = /* @__PURE__ */
|
|
10975
|
+
const Cl = /* @__PURE__ */ oe.define({
|
|
10976
10976
|
combine: (n) => {
|
|
10977
10977
|
var e, t, i;
|
|
10978
10978
|
return {
|
|
10979
|
-
position:
|
|
10979
|
+
position: ae.ios ? "absolute" : ((e = n.find((s) => s.position)) === null || e === void 0 ? void 0 : e.position) || "fixed",
|
|
10980
10980
|
parent: ((t = n.find((s) => s.parent)) === null || t === void 0 ? void 0 : t.parent) || null,
|
|
10981
10981
|
tooltipSpace: ((i = n.find((s) => s.tooltipSpace)) === null || i === void 0 ? void 0 : i.tooltipSpace) || S1
|
|
10982
10982
|
};
|
|
@@ -11045,7 +11045,7 @@ const Cl = /* @__PURE__ */ ae.define({
|
|
|
11045
11045
|
let n = 1, e = 1, t = !1;
|
|
11046
11046
|
if (this.position == "fixed" && this.manager.tooltipViews.length) {
|
|
11047
11047
|
let { dom: r } = this.manager.tooltipViews[0];
|
|
11048
|
-
if (
|
|
11048
|
+
if (ae.gecko)
|
|
11049
11049
|
t = r.offsetParent != this.container.ownerDocument.body;
|
|
11050
11050
|
else if (r.style.top == Cn && r.style.left == "0px") {
|
|
11051
11051
|
let l = r.getBoundingClientRect();
|
|
@@ -11092,7 +11092,7 @@ const Cl = /* @__PURE__ */ ae.define({
|
|
|
11092
11092
|
h.style.top = Cn;
|
|
11093
11093
|
continue;
|
|
11094
11094
|
}
|
|
11095
|
-
let d = o.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, O = d ? 7 : 0, y = f.right - f.left, m = (e = Th.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, p = u.offset || $1, v = this.view.textDirection == Me.LTR,
|
|
11095
|
+
let d = o.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, O = d ? 7 : 0, y = f.right - f.left, m = (e = Th.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, p = u.offset || $1, v = this.view.textDirection == Me.LTR, V = f.width > i.right - i.left ? v ? i.left : i.right - f.width : v ? Math.max(i.left, Math.min(c.left - (d ? 14 : 0) + p.x, i.right - y)) : Math.min(Math.max(i.left, c.left - y + (d ? 14 : 0) - p.x), i.right - y), S = this.above[a];
|
|
11096
11096
|
!o.strictSide && (S ? c.top - m - O - p.y < i.top : c.bottom + m + O + p.y > i.bottom) && S == i.bottom - c.bottom > c.top - i.top && (S = this.above[a] = !S);
|
|
11097
11097
|
let $ = (S ? c.top - i.top : i.bottom - c.bottom) - O;
|
|
11098
11098
|
if ($ < m && u.resize !== !1) {
|
|
@@ -11103,15 +11103,15 @@ const Cl = /* @__PURE__ */ ae.define({
|
|
|
11103
11103
|
Th.set(u, m), h.style.height = (m = $) / r + "px";
|
|
11104
11104
|
} else
|
|
11105
11105
|
h.style.height && (h.style.height = "");
|
|
11106
|
-
let P = S ? c.top - m - O - p.y : c.bottom + O + p.y, w =
|
|
11106
|
+
let P = S ? c.top - m - O - p.y : c.bottom + O + p.y, w = V + y;
|
|
11107
11107
|
if (u.overlap !== !0)
|
|
11108
11108
|
for (let k of l)
|
|
11109
|
-
k.left < w && k.right >
|
|
11110
|
-
if (this.position == "absolute" ? (h.style.top = (P - n.parent.top) / r + "px", Ch(h, (
|
|
11111
|
-
let k = c.left + (v ? p.x : -p.x) - (
|
|
11109
|
+
k.left < w && k.right > V && k.top < P + m && k.bottom > P && (P = S ? k.top - m - 2 - O : k.bottom + O + 2);
|
|
11110
|
+
if (this.position == "absolute" ? (h.style.top = (P - n.parent.top) / r + "px", Ch(h, (V - n.parent.left) / s)) : (h.style.top = P / r + "px", Ch(h, V / s)), d) {
|
|
11111
|
+
let k = c.left + (v ? p.x : -p.x) - (V + 14 - 7);
|
|
11112
11112
|
d.style.left = k / s + "px";
|
|
11113
11113
|
}
|
|
11114
|
-
u.overlap !== !0 && l.push({ left:
|
|
11114
|
+
u.overlap !== !0 && l.push({ left: V, top: P, right: w, bottom: P + m }), h.classList.toggle("cm-tooltip-above", S), h.classList.toggle("cm-tooltip-below", !S), u.positioned && u.positioned(n.space);
|
|
11115
11115
|
}
|
|
11116
11116
|
}
|
|
11117
11117
|
maybeMeasure() {
|
|
@@ -11191,9 +11191,9 @@ const x1 = /* @__PURE__ */ te.baseTheme({
|
|
|
11191
11191
|
borderBottomColor: "transparent"
|
|
11192
11192
|
}
|
|
11193
11193
|
}
|
|
11194
|
-
}), $1 = { x: 0, y: 0 }, Wo = /* @__PURE__ */
|
|
11194
|
+
}), $1 = { x: 0, y: 0 }, Wo = /* @__PURE__ */ oe.define({
|
|
11195
11195
|
enables: [Uo, x1]
|
|
11196
|
-
}), Tr = /* @__PURE__ */
|
|
11196
|
+
}), Tr = /* @__PURE__ */ oe.define({
|
|
11197
11197
|
combine: (n) => n.reduce((e, t) => e.concat(t), [])
|
|
11198
11198
|
});
|
|
11199
11199
|
class ll {
|
|
@@ -11399,7 +11399,7 @@ function mO(n, e) {
|
|
|
11399
11399
|
let i = t.manager.tooltips.indexOf(e);
|
|
11400
11400
|
return i < 0 ? null : t.manager.tooltipViews[i];
|
|
11401
11401
|
}
|
|
11402
|
-
const X1 = /* @__PURE__ */ ve.define(), Xh = /* @__PURE__ */
|
|
11402
|
+
const X1 = /* @__PURE__ */ ve.define(), Xh = /* @__PURE__ */ oe.define({
|
|
11403
11403
|
combine(n) {
|
|
11404
11404
|
let e, t;
|
|
11405
11405
|
for (let i of n)
|
|
@@ -11491,7 +11491,7 @@ function Rh(n) {
|
|
|
11491
11491
|
let e = n.nextSibling;
|
|
11492
11492
|
return n.remove(), e;
|
|
11493
11493
|
}
|
|
11494
|
-
const ls = /* @__PURE__ */
|
|
11494
|
+
const ls = /* @__PURE__ */ oe.define({
|
|
11495
11495
|
enables: gO
|
|
11496
11496
|
});
|
|
11497
11497
|
class ci extends zi {
|
|
@@ -11519,7 +11519,7 @@ ci.prototype.toDOM = void 0;
|
|
|
11519
11519
|
ci.prototype.mapMode = et.TrackBefore;
|
|
11520
11520
|
ci.prototype.startSide = ci.prototype.endSide = -1;
|
|
11521
11521
|
ci.prototype.point = !0;
|
|
11522
|
-
const pr = /* @__PURE__ */
|
|
11522
|
+
const pr = /* @__PURE__ */ oe.define(), R1 = /* @__PURE__ */ oe.define(), Z1 = {
|
|
11523
11523
|
class: "",
|
|
11524
11524
|
renderEmptyElements: !1,
|
|
11525
11525
|
elementStyle: "",
|
|
@@ -11531,11 +11531,11 @@ const pr = /* @__PURE__ */ ae.define(), R1 = /* @__PURE__ */ ae.define(), Z1 = {
|
|
|
11531
11531
|
updateSpacer: null,
|
|
11532
11532
|
domEventHandlers: {},
|
|
11533
11533
|
side: "before"
|
|
11534
|
-
}, Fn = /* @__PURE__ */
|
|
11534
|
+
}, Fn = /* @__PURE__ */ oe.define();
|
|
11535
11535
|
function V1(n) {
|
|
11536
11536
|
return [_O(), Fn.of({ ...Z1, ...n })];
|
|
11537
11537
|
}
|
|
11538
|
-
const ro = /* @__PURE__ */
|
|
11538
|
+
const ro = /* @__PURE__ */ oe.define({
|
|
11539
11539
|
combine: (n) => n.some((e) => e)
|
|
11540
11540
|
});
|
|
11541
11541
|
function _O(n) {
|
|
@@ -11749,7 +11749,7 @@ function E1(n, e) {
|
|
|
11749
11749
|
return !1;
|
|
11750
11750
|
return !0;
|
|
11751
11751
|
}
|
|
11752
|
-
const q1 = /* @__PURE__ */
|
|
11752
|
+
const q1 = /* @__PURE__ */ oe.define(), M1 = /* @__PURE__ */ oe.define(), sn = /* @__PURE__ */ oe.define({
|
|
11753
11753
|
combine(n) {
|
|
11754
11754
|
return ei(n, { formatNumber: String, domEventHandlers: {} }, {
|
|
11755
11755
|
domEventHandlers(e, t) {
|
|
@@ -13035,11 +13035,11 @@ function F1(n) {
|
|
|
13035
13035
|
T == -3 ? u = k : T == -4 && (h = k);
|
|
13036
13036
|
return w;
|
|
13037
13037
|
}
|
|
13038
|
-
let v = [],
|
|
13038
|
+
let v = [], V = [];
|
|
13039
13039
|
for (; a.pos > 0; )
|
|
13040
|
-
c(n.start || 0, n.bufferStart || 0, v,
|
|
13041
|
-
let S = (e = n.length) !== null && e !== void 0 ? e : v.length ?
|
|
13042
|
-
return new ze(o[n.topID], v.reverse(),
|
|
13040
|
+
c(n.start || 0, n.bufferStart || 0, v, V, -1, 0);
|
|
13041
|
+
let S = (e = n.length) !== null && e !== void 0 ? e : v.length ? V[0] + v[0].length : 0;
|
|
13042
|
+
return new ze(o[n.topID], v.reverse(), V.reverse(), S);
|
|
13043
13043
|
}
|
|
13044
13044
|
const qh = /* @__PURE__ */ new WeakMap();
|
|
13045
13045
|
function mr(n, e) {
|
|
@@ -13068,15 +13068,15 @@ function jo(n, e, t, i, s, r, l, a, o) {
|
|
|
13068
13068
|
/* Balance.BranchFactor */
|
|
13069
13069
|
), c = [], f = [];
|
|
13070
13070
|
function d(O, y, m, p, v) {
|
|
13071
|
-
for (let
|
|
13072
|
-
let S =
|
|
13073
|
-
for (
|
|
13074
|
-
let w = mr(n, O[
|
|
13071
|
+
for (let V = m; V < p; ) {
|
|
13072
|
+
let S = V, $ = y[V], P = mr(n, O[V]);
|
|
13073
|
+
for (V++; V < p; V++) {
|
|
13074
|
+
let w = mr(n, O[V]);
|
|
13075
13075
|
if (P + w >= h)
|
|
13076
13076
|
break;
|
|
13077
13077
|
P += w;
|
|
13078
13078
|
}
|
|
13079
|
-
if (
|
|
13079
|
+
if (V == S + 1) {
|
|
13080
13080
|
if (P > h) {
|
|
13081
13081
|
let w = O[S];
|
|
13082
13082
|
d(w.children, w.positions, 0, w.children.length, y[S] + v);
|
|
@@ -13084,8 +13084,8 @@ function jo(n, e, t, i, s, r, l, a, o) {
|
|
|
13084
13084
|
}
|
|
13085
13085
|
c.push(O[S]);
|
|
13086
13086
|
} else {
|
|
13087
|
-
let w = y[
|
|
13088
|
-
c.push(jo(n, O, y, S,
|
|
13087
|
+
let w = y[V - 1] + O[V - 1].length - $;
|
|
13088
|
+
c.push(jo(n, O, y, S, V, $, w, null, o));
|
|
13089
13089
|
}
|
|
13090
13090
|
f.push($ + v - r);
|
|
13091
13091
|
}
|
|
@@ -13371,10 +13371,10 @@ function ib(n) {
|
|
|
13371
13371
|
function u(h, c, f, d, O, y) {
|
|
13372
13372
|
let m = t[y], p = [], v = [];
|
|
13373
13373
|
Lh(l, h, m, p, v, d);
|
|
13374
|
-
let
|
|
13374
|
+
let V = a[m + 1], S = a[m + 2];
|
|
13375
13375
|
o.push(p.length);
|
|
13376
|
-
let $ = y ? u(m + 4, a[m + 3], l.set.types[a[m]],
|
|
13377
|
-
return p.push($), v.push(
|
|
13376
|
+
let $ = y ? u(m + 4, a[m + 3], l.set.types[a[m]], V, S - V, y - 1) : e.toTree();
|
|
13377
|
+
return p.push($), v.push(V - d), Lh(l, a[m + 3], c, p, v, d), new ze(f, p, v, O);
|
|
13378
13378
|
}
|
|
13379
13379
|
s.children[r] = u(0, a.length, ut.none, 0, l.length, t.length - 1);
|
|
13380
13380
|
for (let h of o) {
|
|
@@ -13682,11 +13682,11 @@ class cb {
|
|
|
13682
13682
|
if (f && f.overlay) {
|
|
13683
13683
|
let d = e.node.enter(f.overlay[0].from + a, 1), O = this.highlighters.filter((m) => !m.scope || m.scope(f.tree.type)), y = e.firstChild();
|
|
13684
13684
|
for (let m = 0, p = a; ; m++) {
|
|
13685
|
-
let v = m < f.overlay.length ? f.overlay[m] : null,
|
|
13685
|
+
let v = m < f.overlay.length ? f.overlay[m] : null, V = v ? v.from + a : o, S = Math.max(t, p), $ = Math.min(i, V);
|
|
13686
13686
|
if (S < $ && y)
|
|
13687
|
-
for (; e.from < $ && (this.highlightRange(e, S, $, s, r), this.startSpan(Math.min($, e.to), u), !(e.to >=
|
|
13687
|
+
for (; e.from < $ && (this.highlightRange(e, S, $, s, r), this.startSpan(Math.min($, e.to), u), !(e.to >= V || !e.nextSibling())); )
|
|
13688
13688
|
;
|
|
13689
|
-
if (!v ||
|
|
13689
|
+
if (!v || V > i)
|
|
13690
13690
|
break;
|
|
13691
13691
|
p = v.to + a, p > t && (this.highlightRange(d.cursor(), Math.max(t, v.from + a), Math.min(i, p), "", O), this.startSpan(Math.min(i, p), u));
|
|
13692
13692
|
}
|
|
@@ -14115,7 +14115,7 @@ wO([
|
|
|
14115
14115
|
var Vl;
|
|
14116
14116
|
const rn = /* @__PURE__ */ new xe();
|
|
14117
14117
|
function Fo(n) {
|
|
14118
|
-
return
|
|
14118
|
+
return oe.define({
|
|
14119
14119
|
combine: n ? (e) => e.concat(n) : void 0
|
|
14120
14120
|
});
|
|
14121
14121
|
}
|
|
@@ -14503,7 +14503,7 @@ const Al = typeof navigator < "u" && (!((Vl = navigator.scheduling) === null ||
|
|
|
14503
14503
|
eventHandlers: { focus() {
|
|
14504
14504
|
this.scheduleWork();
|
|
14505
14505
|
} }
|
|
14506
|
-
}), Pi = /* @__PURE__ */
|
|
14506
|
+
}), Pi = /* @__PURE__ */ oe.define({
|
|
14507
14507
|
combine(n) {
|
|
14508
14508
|
return n.length ? n[0] : null;
|
|
14509
14509
|
},
|
|
@@ -14524,7 +14524,7 @@ class xn {
|
|
|
14524
14524
|
this.language = e, this.support = t, this.extension = [e, t];
|
|
14525
14525
|
}
|
|
14526
14526
|
}
|
|
14527
|
-
const pb = /* @__PURE__ */
|
|
14527
|
+
const pb = /* @__PURE__ */ oe.define(), al = /* @__PURE__ */ oe.define({
|
|
14528
14528
|
combine: (n) => {
|
|
14529
14529
|
if (!n.length)
|
|
14530
14530
|
return " ";
|
|
@@ -14785,7 +14785,7 @@ function Sb() {
|
|
|
14785
14785
|
return o.length ? [n, { changes: o, sequential: !0 }] : n;
|
|
14786
14786
|
});
|
|
14787
14787
|
}
|
|
14788
|
-
const xb = /* @__PURE__ */
|
|
14788
|
+
const xb = /* @__PURE__ */ oe.define(), ji = /* @__PURE__ */ new xe();
|
|
14789
14789
|
function ul(n) {
|
|
14790
14790
|
let e = n.firstChild, t = n.lastChild;
|
|
14791
14791
|
return e && e.to < t.from ? { from: e.to, to: t.type.isError ? n.to : t.from } : null;
|
|
@@ -14941,7 +14941,7 @@ const Cb = (n) => {
|
|
|
14941
14941
|
placeholderDOM: null,
|
|
14942
14942
|
preparePlaceholder: null,
|
|
14943
14943
|
placeholderText: "…"
|
|
14944
|
-
}, tu = /* @__PURE__ */
|
|
14944
|
+
}, tu = /* @__PURE__ */ oe.define({
|
|
14945
14945
|
combine(n) {
|
|
14946
14946
|
return ei(n, Zb);
|
|
14947
14947
|
}
|
|
@@ -15091,7 +15091,7 @@ class $s {
|
|
|
15091
15091
|
return new $s(e, t || {});
|
|
15092
15092
|
}
|
|
15093
15093
|
}
|
|
15094
|
-
const ho = /* @__PURE__ */
|
|
15094
|
+
const ho = /* @__PURE__ */ oe.define(), YO = /* @__PURE__ */ oe.define({
|
|
15095
15095
|
combine(n) {
|
|
15096
15096
|
return n.length ? [n[0]] : null;
|
|
15097
15097
|
}
|
|
@@ -15206,7 +15206,7 @@ const Mb = /* @__PURE__ */ Ci.high(/* @__PURE__ */ Ne.fromClass(qb, {
|
|
|
15206
15206
|
]), Lb = /* @__PURE__ */ te.baseTheme({
|
|
15207
15207
|
"&.cm-focused .cm-matchingBracket": { backgroundColor: "#328c8252" },
|
|
15208
15208
|
"&.cm-focused .cm-nonmatchingBracket": { backgroundColor: "#bb555544" }
|
|
15209
|
-
}), qO = 1e4, MO = "()[]{}", DO = /* @__PURE__ */
|
|
15209
|
+
}), qO = 1e4, MO = "()[]{}", DO = /* @__PURE__ */ oe.define({
|
|
15210
15210
|
combine(n) {
|
|
15211
15211
|
return ei(n, {
|
|
15212
15212
|
afterCursor: !0,
|
|
@@ -15480,7 +15480,7 @@ function ry(n, e, t = e.selection.ranges) {
|
|
|
15480
15480
|
}
|
|
15481
15481
|
return null;
|
|
15482
15482
|
}
|
|
15483
|
-
const Oo = /* @__PURE__ */ di.define(), ly = /* @__PURE__ */ di.define(), ay = /* @__PURE__ */
|
|
15483
|
+
const Oo = /* @__PURE__ */ di.define(), ly = /* @__PURE__ */ di.define(), ay = /* @__PURE__ */ oe.define(), UO = /* @__PURE__ */ oe.define({
|
|
15484
15484
|
combine(n) {
|
|
15485
15485
|
return ei(n, {
|
|
15486
15486
|
minDepth: 100,
|
|
@@ -16342,7 +16342,7 @@ const Hn = /* @__PURE__ */ ve.define(), uc = /* @__PURE__ */ Fe.define({
|
|
|
16342
16342
|
minSelectionLength: 1,
|
|
16343
16343
|
maxMatches: 100,
|
|
16344
16344
|
wholeWords: !1
|
|
16345
|
-
}, yp = /* @__PURE__ */
|
|
16345
|
+
}, yp = /* @__PURE__ */ oe.define({
|
|
16346
16346
|
combine(n) {
|
|
16347
16347
|
return ei(n, Ov, {
|
|
16348
16348
|
highlightWordAroundCursor: (e, t) => e || t,
|
|
@@ -16441,7 +16441,7 @@ const Sv = ({ state: n, dispatch: e }) => {
|
|
|
16441
16441
|
selection: n.selection.addRange(W.range(s.from, s.to), !1),
|
|
16442
16442
|
effects: te.scrollIntoView(s.to)
|
|
16443
16443
|
})), !0) : !1;
|
|
16444
|
-
}, wn = /* @__PURE__ */
|
|
16444
|
+
}, wn = /* @__PURE__ */ oe.define({
|
|
16445
16445
|
combine(n) {
|
|
16446
16446
|
return ei(n, {
|
|
16447
16447
|
top: !1,
|
|
@@ -17097,20 +17097,20 @@ class Lv {
|
|
|
17097
17097
|
return null;
|
|
17098
17098
|
let { chars: t, folded: i, any: s, precise: r, byWord: l } = this;
|
|
17099
17099
|
if (t.length == 1) {
|
|
17100
|
-
let v = ht(e, 0),
|
|
17100
|
+
let v = ht(e, 0), V = Bt(v), S = V == e.length ? 0 : -100;
|
|
17101
17101
|
if (v != t[0])
|
|
17102
17102
|
if (v == i[0])
|
|
17103
17103
|
S += -200;
|
|
17104
17104
|
else
|
|
17105
17105
|
return null;
|
|
17106
|
-
return this.ret(S, [0,
|
|
17106
|
+
return this.ret(S, [0, V]);
|
|
17107
17107
|
}
|
|
17108
17108
|
let a = e.indexOf(this.pattern);
|
|
17109
17109
|
if (a == 0)
|
|
17110
17110
|
return this.ret(e.length == this.pattern.length ? 0 : -100, [0, this.pattern.length]);
|
|
17111
17111
|
let o = t.length, u = 0;
|
|
17112
17112
|
if (a < 0) {
|
|
17113
|
-
for (let v = 0,
|
|
17113
|
+
for (let v = 0, V = Math.min(e.length, 200); v < V && u < o; ) {
|
|
17114
17114
|
let S = ht(e, v);
|
|
17115
17115
|
(S == t[u] || S == i[u]) && (s[u++] = v), v += Bt(S);
|
|
17116
17116
|
}
|
|
@@ -17118,7 +17118,7 @@ class Lv {
|
|
|
17118
17118
|
return null;
|
|
17119
17119
|
}
|
|
17120
17120
|
let h = 0, c = 0, f = !1, d = 0, O = -1, y = -1, m = /[a-z]/.test(e), p = !0;
|
|
17121
|
-
for (let v = 0,
|
|
17121
|
+
for (let v = 0, V = Math.min(e.length, 200), S = 0; v < V && c < o; ) {
|
|
17122
17122
|
let $ = ht(e, v);
|
|
17123
17123
|
a < 0 && (h < o && $ == t[h] && (r[h++] = v), d < o && ($ == t[d] || $ == i[d] ? (d == 0 && (O = v), y = v + 1, d++) : d = 0));
|
|
17124
17124
|
let P, w = $ < 255 ? $ >= 48 && $ <= 57 || $ >= 97 && $ <= 122 ? 2 : $ >= 65 && $ <= 90 ? 1 : 0 : (P = To($)) != P.toLowerCase() ? 1 : P != P.toUpperCase() ? 2 : 0;
|
|
@@ -17146,7 +17146,7 @@ class zv {
|
|
|
17146
17146
|
return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
|
|
17147
17147
|
}
|
|
17148
17148
|
}
|
|
17149
|
-
const Ge = /* @__PURE__ */
|
|
17149
|
+
const Ge = /* @__PURE__ */ oe.define({
|
|
17150
17150
|
combine(n) {
|
|
17151
17151
|
return ei(n, {
|
|
17152
17152
|
activateOnTyping: !0,
|
|
@@ -18037,7 +18037,7 @@ function Zp(n) {
|
|
|
18037
18037
|
const OS = ({ state: n, dispatch: e }) => n.field(fs, !1) ? (e(n.update({ effects: ks.of(null) })), !0) : !1, pS = /* @__PURE__ */ Zp(1), mS = /* @__PURE__ */ Zp(-1), gS = [
|
|
18038
18038
|
{ key: "Tab", run: pS, shift: mS },
|
|
18039
18039
|
{ key: "Escape", run: OS }
|
|
18040
|
-
], Qc = /* @__PURE__ */
|
|
18040
|
+
], Qc = /* @__PURE__ */ oe.define({
|
|
18041
18041
|
combine(n) {
|
|
18042
18042
|
return n.length ? n[0] : gS;
|
|
18043
18043
|
}
|
|
@@ -18412,7 +18412,7 @@ const qS = (n) => {
|
|
|
18412
18412
|
}, DS = [
|
|
18413
18413
|
{ key: "Mod-Shift-m", run: qS, preventDefault: !0 },
|
|
18414
18414
|
{ key: "F8", run: MS }
|
|
18415
|
-
], Os = /* @__PURE__ */
|
|
18415
|
+
], Os = /* @__PURE__ */ oe.define({
|
|
18416
18416
|
combine(n) {
|
|
18417
18417
|
return Object.assign({ sources: n.map((e) => e.source).filter((e) => e != null) }, ei(n.map((e) => e.config), {
|
|
18418
18418
|
delay: 750,
|
|
@@ -22031,21 +22031,21 @@ function bw(n, e, t, i, s, r) {
|
|
|
22031
22031
|
return null;
|
|
22032
22032
|
y && c.length == 1 && (c = y[c[0]] || c);
|
|
22033
22033
|
let m = o;
|
|
22034
|
-
for (let
|
|
22035
|
-
for (; !m.children || !m.children[
|
|
22034
|
+
for (let V of c) {
|
|
22035
|
+
for (; !m.children || !m.children[V]; )
|
|
22036
22036
|
if (m == o && u)
|
|
22037
22037
|
m = u;
|
|
22038
22038
|
else if (m == u && i)
|
|
22039
22039
|
m = m.child(i);
|
|
22040
22040
|
else
|
|
22041
22041
|
return null;
|
|
22042
|
-
let S = m.maybeChild(
|
|
22042
|
+
let S = m.maybeChild(V);
|
|
22043
22043
|
if (!S)
|
|
22044
22044
|
return null;
|
|
22045
22045
|
m = S;
|
|
22046
22046
|
}
|
|
22047
22047
|
let p = d && h.state.sliceDoc(h.pos, h.pos + 1) == d, v = m.list;
|
|
22048
|
-
return m == o && y && (v = v.concat(Object.keys(y).map((
|
|
22048
|
+
return m == o && y && (v = v.concat(Object.keys(y).map((V) => ({ label: V, type: "constant" })))), {
|
|
22049
22049
|
from: f,
|
|
22050
22050
|
to: p ? h.pos + 1 : void 0,
|
|
22051
22051
|
options: gw(d, v),
|
|
@@ -23944,7 +23944,7 @@ function nr() {
|
|
|
23944
23944
|
EOF: t.EOF
|
|
23945
23945
|
}, u = new i(/\/\*/, /\*\//), h = /0[xX][0123456789abcdefABCDEF_]*n?|0[oO][01234567_]*n?|0[bB][01_]*n?|\d[\d_]*n|(?:\.\d[\d_]*|\d[\d_]*\.?[\d_]*)(?:[eE][+-]?[\d_]+)?/, c = /[0-9]/, f = /[^\d\.]/, d = ">>> === !== &&= ??= ||= << && >= ** != == <= >> || ?? |> < / - + > : & % ? ^ | *".split(" "), O = ">>>= ... >>= <<= === >>> !== **= &&= ??= ||= => ^= :: /= << <= == && -= >= >> != -- += ** || ?? ++ %= &= *= |= |> = ! ? > < : / ^ - + * & % ~ |";
|
|
23946
23946
|
O = O.replace(/[-[\]{}()*+?.,\\^$|#]/g, "\\$&"), O = "\\?\\.(?!\\d) " + O, O = O.replace(/ /g, "|");
|
|
23947
|
-
var y = new RegExp(O), m = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), p = m.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), v = new RegExp("^(?:" + p.join("|") + ")$"),
|
|
23947
|
+
var y = new RegExp(O), m = "continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(","), p = m.concat(["do", "in", "of", "else", "get", "set", "new", "catch", "finally", "typeof", "yield", "async", "await", "from", "as", "class", "extends"]), v = new RegExp("^(?:" + p.join("|") + ")$"), V, S = function(P, w) {
|
|
23948
23948
|
e.call(this, P, w), this._patterns.whitespace = this._patterns.whitespace.matching(
|
|
23949
23949
|
/\u00A0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff/.source,
|
|
23950
23950
|
/\u2028\u2029/.source
|
|
@@ -23977,7 +23977,7 @@ function nr() {
|
|
|
23977
23977
|
}, S.prototype._is_closing = function(P, w) {
|
|
23978
23978
|
return (P.type === o.END_BLOCK || P.type === o.END_EXPR) && w && (P.text === "]" && w.text === "[" || P.text === ")" && w.text === "(" || P.text === "}" && w.text === "{");
|
|
23979
23979
|
}, S.prototype._reset = function() {
|
|
23980
|
-
|
|
23980
|
+
V = !1;
|
|
23981
23981
|
}, S.prototype._get_next_token = function(P, w) {
|
|
23982
23982
|
var k = null;
|
|
23983
23983
|
this._readWhitespace();
|
|
@@ -24022,10 +24022,10 @@ function nr() {
|
|
|
24022
24022
|
if (w = this.__patterns.html_comment_start.read(), w) {
|
|
24023
24023
|
for (; this._input.hasNext() && !this._input.testChar(s.newline); )
|
|
24024
24024
|
w += this._input.next();
|
|
24025
|
-
return
|
|
24025
|
+
return V = !0, this._create_token(o.COMMENT, w);
|
|
24026
24026
|
}
|
|
24027
|
-
} else if (
|
|
24028
|
-
return
|
|
24027
|
+
} else if (V && P === "-" && (w = this.__patterns.html_comment_end.read(), w))
|
|
24028
|
+
return V = !1, this._create_token(o.COMMENT, w);
|
|
24029
24029
|
return null;
|
|
24030
24030
|
}, S.prototype._read_comment = function(P) {
|
|
24031
24031
|
var w = null;
|
|
@@ -24157,7 +24157,7 @@ function ZP() {
|
|
|
24157
24157
|
function v(Q, T) {
|
|
24158
24158
|
T.multiline_frame || T.mode === p.ForInitializer || T.mode === p.Conditional || Q.remove_indent(T.start_line_index);
|
|
24159
24159
|
}
|
|
24160
|
-
function
|
|
24160
|
+
function V(Q) {
|
|
24161
24161
|
Q = Q.replace(t.allLineBreaks, `
|
|
24162
24162
|
`);
|
|
24163
24163
|
for (var T = [], X = Q.indexOf(`
|
|
@@ -24483,7 +24483,7 @@ function ZP() {
|
|
|
24483
24483
|
} else
|
|
24484
24484
|
this.print_block_commment(Q, T);
|
|
24485
24485
|
}, k.prototype.print_block_commment = function(Q, T) {
|
|
24486
|
-
var X =
|
|
24486
|
+
var X = V(Q.text), z, j = !1, H = !1, K = Q.whitespace_before, me = K.length;
|
|
24487
24487
|
if (this.print_newline(!1, T), this.print_token_line_indentation(Q), this._output.add_token(X[0]), this.print_newline(!1, T), X.length > 1) {
|
|
24488
24488
|
for (X = X.slice(1), j = P(X, "*"), H = w(X, K), j && (this._flags.alignment = 1), z = 0; z < X.length; z++)
|
|
24489
24489
|
j ? (this.print_token_line_indentation(Q), this._output.add_token(u(X[z]))) : H && X[z] ? (this.print_token_line_indentation(Q), this._output.add_token(X[z].substring(me))) : (this._output.current_line.set_indent(-1), this._output.add_token(X[z])), this.print_newline(!1, T);
|
|
@@ -24608,7 +24608,7 @@ function AP() {
|
|
|
24608
24608
|
`);
|
|
24609
24609
|
var O = f.match(/^[\t ]*/)[0];
|
|
24610
24610
|
this._output = new e(this._options, O), this._input = new t(f), this._indentLevel = 0, this._nestedLevel = 0, this._ch = null;
|
|
24611
|
-
for (var y = 0, m = !1, p = !1, v = !1,
|
|
24611
|
+
for (var y = 0, m = !1, p = !1, v = !1, V = !1, S = !1, $ = this._ch, P = !1, w, k, R; w = this._input.read(o), k = w !== "", R = $, this._ch = this._input.next(), this._ch === "\\" && this._input.hasNext() && (this._ch += this._input.next()), $ = this._ch, this._ch; )
|
|
24612
24612
|
if (this._ch === "/" && this._input.peek() === "*") {
|
|
24613
24613
|
this._output.add_new_line(), this._input.back();
|
|
24614
24614
|
var Q = this._input.read(u), T = s.get_directives(Q);
|
|
@@ -24625,12 +24625,12 @@ function AP() {
|
|
|
24625
24625
|
else {
|
|
24626
24626
|
this.print_string(this._ch);
|
|
24627
24627
|
var z = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
|
|
24628
|
-
z.match(/[ :]$/) && (z = this.eatString(": ").replace(/\s+$/, ""), this.print_string(z), this._output.space_before_token = !0), y === 0 && z.indexOf(":") !== -1 ? (p = !0, this.indent()) : z in this.NESTED_AT_RULE ? (this._nestedLevel += 1, z in this.CONDITIONAL_GROUP_RULE && (v = !0)) : y === 0 && !p && (
|
|
24628
|
+
z.match(/[ :]$/) && (z = this.eatString(": ").replace(/\s+$/, ""), this.print_string(z), this._output.space_before_token = !0), y === 0 && z.indexOf(":") !== -1 ? (p = !0, this.indent()) : z in this.NESTED_AT_RULE ? (this._nestedLevel += 1, z in this.CONDITIONAL_GROUP_RULE && (v = !0)) : y === 0 && !p && (V = !0);
|
|
24629
24629
|
}
|
|
24630
24630
|
else if (this._ch === "#" && this._input.peek() === "{")
|
|
24631
24631
|
this.preserveSingleSpace(k), this.print_string(this._ch + this.eatString("}"));
|
|
24632
24632
|
else if (this._ch === "{")
|
|
24633
|
-
p && (p = !1, this.outdent()),
|
|
24633
|
+
p && (p = !1, this.outdent()), V = !1, v ? (v = !1, m = this._indentLevel >= this._nestedLevel) : m = this._indentLevel >= this._nestedLevel - 1, this._options.newline_between_rules && m && this._output.previous_line && this._output.previous_line.item(-1) !== "{" && this._output.ensure_empty_line_above("/", ","), this._output.space_before_token = !0, this._options.brace_style === "expand" ? (this._output.add_new_line(), this.print_string(this._ch), this.indent(), this._output.set_indent(this._indentLevel)) : (R === "(" ? this._output.space_before_token = !1 : R !== "," && this.indent(), this.print_string(this._ch)), this.eatWhitespace(!0), this._output.add_new_line();
|
|
24634
24634
|
else if (this._ch === "}")
|
|
24635
24635
|
this.outdent(), this._output.add_new_line(), R === "{" && this._output.trim(!0), p && (this.outdent(), p = !1), this.print_string(this._ch), m = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
|
|
24636
24636
|
else if (this._ch === ":") {
|
|
@@ -24639,12 +24639,12 @@ function AP() {
|
|
|
24639
24639
|
P = !0;
|
|
24640
24640
|
break;
|
|
24641
24641
|
}
|
|
24642
|
-
(m || v) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !
|
|
24642
|
+
(m || v) && !(this._input.lookBack("&") || this.foundNestedPseudoClass()) && !this._input.lookBack("(") && !V && y === 0 ? (this.print_string(":"), p || (p = !0, this._output.space_before_token = !0, this.eatWhitespace(!0), this.indent())) : (this._input.lookBack(" ") && (this._output.space_before_token = !0), this._input.peek() === ":" ? (this._ch = this._input.next(), this.print_string("::")) : this.print_string(":"));
|
|
24643
24643
|
} else if (this._ch === '"' || this._ch === "'") {
|
|
24644
24644
|
var H = R === '"' || R === "'";
|
|
24645
24645
|
this.preserveSingleSpace(H || k), this.print_string(this._ch + this.eatString(this._ch)), this.eatWhitespace(!0);
|
|
24646
24646
|
} else if (this._ch === ";")
|
|
24647
|
-
P = !1, y === 0 ? (p && (this.outdent(), p = !1),
|
|
24647
|
+
P = !1, y === 0 ? (p && (this.outdent(), p = !1), V = !1, this.print_string(this._ch), this.eatWhitespace(!0), this._input.peek() !== "/" && this._output.add_new_line()) : (this.print_string(this._ch), this.eatWhitespace(!0), this._output.space_before_token = !0);
|
|
24648
24648
|
else if (this._ch === "(")
|
|
24649
24649
|
if (this._input.lookBack("url"))
|
|
24650
24650
|
this.print_string(this._ch), this.eatWhitespace(), y++, this.indent(), this._ch = this._input.next(), this._ch === ")" || this._ch === '"' || this._ch === "'" ? this._input.back() : this._ch && (this.print_string(this._ch + this.eatString(")")), y && (y--, this.outdent()));
|
|
@@ -24655,7 +24655,7 @@ function AP() {
|
|
|
24655
24655
|
else if (this._ch === ")")
|
|
24656
24656
|
y && (y--, this.outdent()), S && this._input.peek() === ";" && this._options.selector_separator_newline && (S = !1, this.outdent(), this._output.add_new_line()), this.print_string(this._ch);
|
|
24657
24657
|
else if (this._ch === ",")
|
|
24658
|
-
this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!p || S) && y === 0 && !
|
|
24658
|
+
this.print_string(this._ch), this.eatWhitespace(!0), this._options.selector_separator_newline && (!p || S) && y === 0 && !V ? this._output.add_new_line() : this._output.space_before_token = !0;
|
|
24659
24659
|
else if ((this._ch === ">" || this._ch === "+" || this._ch === "~") && !p && y === 0)
|
|
24660
24660
|
this._options.space_around_combinator ? (this._output.space_before_token = !0, this.print_string(this._ch), this._output.space_before_token = !0) : (this.print_string(this._ch), this.eatWhitespace(), this._ch && a.test(this._ch) && (this._ch = ""));
|
|
24661
24661
|
else if (this._ch === "]")
|
|
@@ -24979,8 +24979,8 @@ function EP() {
|
|
|
24979
24979
|
}
|
|
24980
24980
|
return p;
|
|
24981
24981
|
}, o = function(m, p) {
|
|
24982
|
-
var v = null,
|
|
24983
|
-
return p.closed ? (m === "script" ? v = "text/javascript" : m === "style" && (v = "text/css"), v = a(p) || v, v.search("text/css") > -1 ?
|
|
24982
|
+
var v = null, V = null;
|
|
24983
|
+
return p.closed ? (m === "script" ? v = "text/javascript" : m === "style" && (v = "text/css"), v = a(p) || v, v.search("text/css") > -1 ? V = "css" : v.search(/module|((text|application|dojo)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json|method|aspect))/) > -1 ? V = "javascript" : v.search(/(text|application|dojo)\/(x-)?(html)/) > -1 ? V = "html" : v.search(/test\/null/) > -1 && (V = "null"), V) : null;
|
|
24984
24984
|
};
|
|
24985
24985
|
function u(m, p) {
|
|
24986
24986
|
return p.indexOf(m) !== -1;
|
|
@@ -25015,8 +25015,8 @@ function EP() {
|
|
|
25015
25015
|
var p = this._get_frame(m);
|
|
25016
25016
|
p && (this._printer.indent_level = p.indent_level);
|
|
25017
25017
|
};
|
|
25018
|
-
function f(m, p, v,
|
|
25019
|
-
this._source_text = m || "", p = p || {}, this._js_beautify = v, this._css_beautify =
|
|
25018
|
+
function f(m, p, v, V) {
|
|
25019
|
+
this._source_text = m || "", p = p || {}, this._js_beautify = v, this._css_beautify = V, this._tag_stack = null;
|
|
25020
25020
|
var S = new n(p, "html");
|
|
25021
25021
|
this._options = S, this._is_wrap_attributes_force = this._options.wrap_attributes.substr(0, 5) === "force", this._is_wrap_attributes_force_expand_multiline = this._options.wrap_attributes === "force-expand-multiline", this._is_wrap_attributes_force_aligned = this._options.wrap_attributes === "force-aligned", this._is_wrap_attributes_aligned_multiple = this._options.wrap_attributes === "aligned-multiple", this._is_wrap_attributes_preserve = this._options.wrap_attributes.substr(0, 8) === "preserve", this._is_wrap_attributes_preserve_aligned = this._options.wrap_attributes === "preserve-aligned";
|
|
25022
25022
|
}
|
|
@@ -25027,13 +25027,13 @@ function EP() {
|
|
|
25027
25027
|
this._options.eol === "auto" && (p = `
|
|
25028
25028
|
`, m && s.test(m) && (p = m.match(s)[0])), m = m.replace(r, `
|
|
25029
25029
|
`);
|
|
25030
|
-
var v = m.match(/^[\t ]*/)[0],
|
|
25030
|
+
var v = m.match(/^[\t ]*/)[0], V = {
|
|
25031
25031
|
text: "",
|
|
25032
25032
|
type: ""
|
|
25033
25033
|
}, S = new d(this._options), $ = new l(this._options, v), P = new t(m, this._options).tokenize();
|
|
25034
25034
|
this._tag_stack = new c($);
|
|
25035
25035
|
for (var w = null, k = P.next(); k.type !== i.EOF; )
|
|
25036
|
-
k.type === i.TAG_OPEN || k.type === i.COMMENT ? (w = this._handle_tag_open($, k, S,
|
|
25036
|
+
k.type === i.TAG_OPEN || k.type === i.COMMENT ? (w = this._handle_tag_open($, k, S, V, P), S = w) : k.type === i.ATTRIBUTE || k.type === i.EQUALS || k.type === i.VALUE || k.type === i.TEXT && !S.tag_complete ? w = this._handle_inside_tag($, k, S, V) : k.type === i.TAG_CLOSE ? w = this._handle_tag_close($, k, S) : k.type === i.TEXT ? w = this._handle_text($, k, S) : k.type === i.CONTROL_FLOW_OPEN ? w = this._handle_control_flow_open($, k) : k.type === i.CONTROL_FLOW_CLOSE ? w = this._handle_control_flow_close($, k) : $.add_raw_token(k), V = w, k = P.next();
|
|
25037
25037
|
var R = $._output.get_code(p);
|
|
25038
25038
|
return R;
|
|
25039
25039
|
}, f.prototype._handle_control_flow_open = function(m, p) {
|
|
@@ -25049,30 +25049,30 @@ function EP() {
|
|
|
25049
25049
|
};
|
|
25050
25050
|
return m.deindent(), p.newlines ? m.print_preserved_newlines(p) : m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), m.print_token(p), v;
|
|
25051
25051
|
}, f.prototype._handle_tag_close = function(m, p, v) {
|
|
25052
|
-
var
|
|
25052
|
+
var V = {
|
|
25053
25053
|
text: p.text,
|
|
25054
25054
|
type: p.type
|
|
25055
25055
|
};
|
|
25056
|
-
return m.alignment_size = 0, v.tag_complete = !0, m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), v.is_unformatted ? m.add_raw_token(p) : (v.tag_start_char === "<" && (m.set_space_before_token(p.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && v.has_wrapped_attrs && m.print_newline(!1)), m.print_token(p)), v.indent_content && !(v.is_unformatted || v.is_content_unformatted) && (m.indent(), v.indent_content = !1), !v.is_inline_element && !(v.is_unformatted || v.is_content_unformatted) && m.set_wrap_point(),
|
|
25057
|
-
}, f.prototype._handle_inside_tag = function(m, p, v,
|
|
25056
|
+
return m.alignment_size = 0, v.tag_complete = !0, m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), v.is_unformatted ? m.add_raw_token(p) : (v.tag_start_char === "<" && (m.set_space_before_token(p.text[0] === "/", !0), this._is_wrap_attributes_force_expand_multiline && v.has_wrapped_attrs && m.print_newline(!1)), m.print_token(p)), v.indent_content && !(v.is_unformatted || v.is_content_unformatted) && (m.indent(), v.indent_content = !1), !v.is_inline_element && !(v.is_unformatted || v.is_content_unformatted) && m.set_wrap_point(), V;
|
|
25057
|
+
}, f.prototype._handle_inside_tag = function(m, p, v, V) {
|
|
25058
25058
|
var S = v.has_wrapped_attrs, $ = {
|
|
25059
25059
|
text: p.text,
|
|
25060
25060
|
type: p.type
|
|
25061
25061
|
};
|
|
25062
|
-
return m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), v.is_unformatted ? m.add_raw_token(p) : v.tag_start_char === "{" && p.type === i.TEXT ? m.print_preserved_newlines(p) ? (p.newlines = 0, m.add_raw_token(p)) : m.print_token(p) : (p.type === i.ATTRIBUTE ? m.set_space_before_token(!0) : (p.type === i.EQUALS || p.type === i.VALUE && p.previous.type === i.EQUALS) && m.set_space_before_token(!1), p.type === i.ATTRIBUTE && v.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (m.traverse_whitespace(p), S = S || p.newlines !== 0), this._is_wrap_attributes_force && v.attr_count >= this._options.wrap_attributes_min_attrs && (
|
|
25062
|
+
return m.set_space_before_token(p.newlines || p.whitespace_before !== "", !0), v.is_unformatted ? m.add_raw_token(p) : v.tag_start_char === "{" && p.type === i.TEXT ? m.print_preserved_newlines(p) ? (p.newlines = 0, m.add_raw_token(p)) : m.print_token(p) : (p.type === i.ATTRIBUTE ? m.set_space_before_token(!0) : (p.type === i.EQUALS || p.type === i.VALUE && p.previous.type === i.EQUALS) && m.set_space_before_token(!1), p.type === i.ATTRIBUTE && v.tag_start_char === "<" && ((this._is_wrap_attributes_preserve || this._is_wrap_attributes_preserve_aligned) && (m.traverse_whitespace(p), S = S || p.newlines !== 0), this._is_wrap_attributes_force && v.attr_count >= this._options.wrap_attributes_min_attrs && (V.type !== i.TAG_OPEN || // ie. second attribute and beyond
|
|
25063
25063
|
this._is_wrap_attributes_force_expand_multiline) && (m.print_newline(!1), S = !0)), m.print_token(p), S = S || m.previous_token_wrapped(), v.has_wrapped_attrs = S), $;
|
|
25064
25064
|
}, f.prototype._handle_text = function(m, p, v) {
|
|
25065
|
-
var
|
|
25065
|
+
var V = {
|
|
25066
25066
|
text: p.text,
|
|
25067
25067
|
type: "TK_CONTENT"
|
|
25068
25068
|
};
|
|
25069
|
-
return v.custom_beautifier_name ? this._print_custom_beatifier_text(m, p, v) : v.is_unformatted || v.is_content_unformatted ? m.add_raw_token(p) : (m.traverse_whitespace(p), m.print_token(p)),
|
|
25069
|
+
return v.custom_beautifier_name ? this._print_custom_beatifier_text(m, p, v) : v.is_unformatted || v.is_content_unformatted ? m.add_raw_token(p) : (m.traverse_whitespace(p), m.print_token(p)), V;
|
|
25070
25070
|
}, f.prototype._print_custom_beatifier_text = function(m, p, v) {
|
|
25071
|
-
var
|
|
25071
|
+
var V = this;
|
|
25072
25072
|
if (p.text !== "") {
|
|
25073
25073
|
var S = p.text, $, P = 1, w = "", k = "";
|
|
25074
25074
|
v.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? $ = this._js_beautify : v.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? $ = this._css_beautify : v.custom_beautifier_name === "html" && ($ = function(j, H) {
|
|
25075
|
-
var K = new f(j, H,
|
|
25075
|
+
var K = new f(j, H, V._js_beautify, V._css_beautify);
|
|
25076
25076
|
return K.beautify();
|
|
25077
25077
|
}), this._options.indent_scripts === "keep" ? P = 0 : this._options.indent_scripts === "separate" && (P = -m.indent_level);
|
|
25078
25078
|
var R = m.get_full_indent(P);
|
|
@@ -25105,9 +25105,9 @@ function EP() {
|
|
|
25105
25105
|
w && (S ? S = w + S + `
|
|
25106
25106
|
` + k : S = w + k), m.print_newline(!1), S && (p.text = S, p.whitespace_before = "", p.newlines = 0, m.add_raw_token(p), m.print_newline(!0));
|
|
25107
25107
|
}
|
|
25108
|
-
}, f.prototype._handle_tag_open = function(m, p, v,
|
|
25108
|
+
}, f.prototype._handle_tag_open = function(m, p, v, V, S) {
|
|
25109
25109
|
var $ = this._get_tag_open_token(p);
|
|
25110
|
-
if ((v.is_unformatted || v.is_content_unformatted) && !v.is_empty_element && p.type === i.TAG_OPEN && !$.is_start_tag ? (m.add_raw_token(p), $.start_tag_token = this._tag_stack.try_pop($.tag_name)) : (m.traverse_whitespace(p), this._set_tag_position(m, p, $, v,
|
|
25110
|
+
if ((v.is_unformatted || v.is_content_unformatted) && !v.is_empty_element && p.type === i.TAG_OPEN && !$.is_start_tag ? (m.add_raw_token(p), $.start_tag_token = this._tag_stack.try_pop($.tag_name)) : (m.traverse_whitespace(p), this._set_tag_position(m, p, $, v, V), $.is_inline_element || m.set_wrap_point(), m.print_token(p)), $.is_start_tag && this._is_wrap_attributes_force) {
|
|
25111
25111
|
var P = 0, w;
|
|
25112
25112
|
do
|
|
25113
25113
|
w = S.peek(P), w.type === i.ATTRIBUTE && ($.attr_count += 1), P += 1;
|
|
@@ -25119,8 +25119,8 @@ function EP() {
|
|
|
25119
25119
|
if (this.parent = p || null, this.text = "", this.type = "TK_TAG_OPEN", this.tag_name = "", this.is_inline_element = !1, this.is_unformatted = !1, this.is_content_unformatted = !1, this.is_empty_element = !1, this.is_start_tag = !1, this.is_end_tag = !1, this.indent_content = !1, this.multiline_content = !1, this.custom_beautifier_name = null, this.start_tag_token = null, this.attr_count = 0, this.has_wrapped_attrs = !1, this.alignment_size = 0, this.tag_complete = !1, this.tag_start_char = "", this.tag_check = "", !v)
|
|
25120
25120
|
this.tag_complete = !0;
|
|
25121
25121
|
else {
|
|
25122
|
-
var
|
|
25123
|
-
this.tag_start_char = v.text[0], this.text = v.text, this.tag_start_char === "<" ? (
|
|
25122
|
+
var V;
|
|
25123
|
+
this.tag_start_char = v.text[0], this.text = v.text, this.tag_start_char === "<" ? (V = v.text.match(/^<([^\s>]*)/), this.tag_check = V ? V[1] : "") : (V = v.text.match(/^{{~?(?:[\^]|#\*?)?([^\s}]+)/), this.tag_check = V ? V[1] : "", (v.text.startsWith("{{#>") || v.text.startsWith("{{~#>")) && this.tag_check[0] === ">" && (this.tag_check === ">" && v.next !== null ? this.tag_check = v.next.text.split(" ")[0] : this.tag_check = v.text.split(">")[1])), this.tag_check = this.tag_check.toLowerCase(), v.type === i.COMMENT && (this.tag_complete = !0), this.is_start_tag = this.tag_check.charAt(0) !== "/", this.tag_name = this.is_start_tag ? this.tag_check : this.tag_check.substr(1), this.is_end_tag = !this.is_start_tag || v.closed && v.closed.text === "/>";
|
|
25124
25124
|
var S = 2;
|
|
25125
25125
|
this.tag_start_char === "{" && this.text.length >= 3 && this.text.charAt(2) === "~" && (S = 3), this.is_end_tag = this.is_end_tag || this.tag_start_char === "{" && (!m.indent_handlebars || this.text.length < 3 || /[^#\^]/.test(this.text.charAt(S)));
|
|
25126
25126
|
}
|
|
@@ -25128,18 +25128,18 @@ function EP() {
|
|
|
25128
25128
|
f.prototype._get_tag_open_token = function(m) {
|
|
25129
25129
|
var p = new d(this._options, this._tag_stack.get_parser_token(), m);
|
|
25130
25130
|
return p.alignment_size = this._options.wrap_attributes_indent_size, p.is_end_tag = p.is_end_tag || u(p.tag_check, this._options.void_elements), p.is_empty_element = p.tag_complete || p.is_start_tag && p.is_end_tag, p.is_unformatted = !p.tag_complete && u(p.tag_check, this._options.unformatted), p.is_content_unformatted = !p.is_empty_element && u(p.tag_check, this._options.content_unformatted), p.is_inline_element = u(p.tag_name, this._options.inline) || this._options.inline_custom_elements && p.tag_name.includes("-") || p.tag_start_char === "{", p;
|
|
25131
|
-
}, f.prototype._set_tag_position = function(m, p, v,
|
|
25131
|
+
}, f.prototype._set_tag_position = function(m, p, v, V, S) {
|
|
25132
25132
|
if (v.is_empty_element || (v.is_end_tag ? v.start_tag_token = this._tag_stack.try_pop(v.tag_name) : (this._do_optional_end_element(v) && (v.is_inline_element || m.print_newline(!1)), this._tag_stack.record_tag(v), (v.tag_name === "script" || v.tag_name === "style") && !(v.is_unformatted || v.is_content_unformatted) && (v.custom_beautifier_name = o(v.tag_check, p)))), u(v.tag_check, this._options.extra_liners) && (m.print_newline(!1), m._output.just_added_blankline() || m.print_newline(!0)), v.is_empty_element) {
|
|
25133
25133
|
if (v.tag_start_char === "{" && v.tag_check === "else") {
|
|
25134
25134
|
this._tag_stack.indent_to_tag(["if", "unless", "each"]), v.indent_content = !0;
|
|
25135
25135
|
var $ = m.current_line_has_match(/{{#if/);
|
|
25136
25136
|
$ || m.print_newline(!1);
|
|
25137
25137
|
}
|
|
25138
|
-
v.tag_name === "!--" && S.type === i.TAG_CLOSE &&
|
|
25138
|
+
v.tag_name === "!--" && S.type === i.TAG_CLOSE && V.is_end_tag && v.text.indexOf(`
|
|
25139
25139
|
`) === -1 || (v.is_inline_element || v.is_unformatted || m.print_newline(!1), this._calcluate_parent_multiline(m, v));
|
|
25140
25140
|
} else if (v.is_end_tag) {
|
|
25141
25141
|
var P = !1;
|
|
25142
|
-
P = v.start_tag_token && v.start_tag_token.multiline_content, P = P || !v.is_inline_element && !(
|
|
25142
|
+
P = v.start_tag_token && v.start_tag_token.multiline_content, P = P || !v.is_inline_element && !(V.is_inline_element || V.is_unformatted) && !(S.type === i.TAG_CLOSE && v.start_tag_token === V) && S.type !== "TK_CONTENT", (v.is_content_unformatted || v.is_unformatted) && (P = !1), P && m.print_newline(!1);
|
|
25143
25143
|
} else
|
|
25144
25144
|
v.indent_content = !v.custom_beautifier_name, v.tag_start_char === "<" && (v.tag_name === "html" ? v.indent_content = this._options.indent_inner_html : v.tag_name === "head" ? v.indent_content = this._options.indent_head_inner_html : v.tag_name === "body" && (v.indent_content = this._options.indent_body_inner_html)), !(v.is_inline_element || v.is_unformatted) && (S.type !== "TK_CONTENT" || v.is_content_unformatted) && m.print_newline(!1), this._calcluate_parent_multiline(m, v);
|
|
25145
25145
|
}, f.prototype._calcluate_parent_multiline = function(m, p) {
|
|
@@ -25321,40 +25321,40 @@ const LP = { class: "code-slot" }, zP = { class: "code-slot" }, UP = { class: "e
|
|
|
25321
25321
|
ref: i,
|
|
25322
25322
|
style: Pt(g(u))
|
|
25323
25323
|
}, [
|
|
25324
|
-
|
|
25324
|
+
A("div", LP, [
|
|
25325
25325
|
In(f.$slots, "pre-code")
|
|
25326
25326
|
]),
|
|
25327
|
-
|
|
25327
|
+
A("div", {
|
|
25328
25328
|
class: "codemirror-editor",
|
|
25329
25329
|
ref_key: "codeMirrorEditorRef",
|
|
25330
25330
|
ref: r,
|
|
25331
25331
|
style: Pt(g(h))
|
|
25332
25332
|
}, null, 4),
|
|
25333
|
-
|
|
25333
|
+
A("div", zP, [
|
|
25334
25334
|
In(f.$slots, "next-code")
|
|
25335
25335
|
]),
|
|
25336
|
-
|
|
25337
|
-
|
|
25336
|
+
A("div", UP, [
|
|
25337
|
+
A("i", {
|
|
25338
25338
|
title: "全屏",
|
|
25339
25339
|
class: "iconfont icon-fullscreen",
|
|
25340
25340
|
onClick: s
|
|
25341
25341
|
}),
|
|
25342
|
-
|
|
25342
|
+
A("i", {
|
|
25343
25343
|
title: "美化",
|
|
25344
25344
|
class: "iconfont icon-magic-stick",
|
|
25345
25345
|
onClick: d[0] || (d[0] = (O) => c("beautify"))
|
|
25346
25346
|
}),
|
|
25347
|
-
|
|
25347
|
+
A("i", {
|
|
25348
25348
|
title: "全选",
|
|
25349
25349
|
class: "iconfont icon-check-square",
|
|
25350
25350
|
onClick: d[1] || (d[1] = (O) => c("checkAll"))
|
|
25351
25351
|
}),
|
|
25352
|
-
|
|
25352
|
+
A("i", {
|
|
25353
25353
|
title: "复制",
|
|
25354
25354
|
class: "iconfont icon-document-copy",
|
|
25355
25355
|
onClick: d[2] || (d[2] = (O) => c("copy"))
|
|
25356
25356
|
}),
|
|
25357
|
-
|
|
25357
|
+
A("i", {
|
|
25358
25358
|
title: "清空",
|
|
25359
25359
|
class: "iconfont icon-clear",
|
|
25360
25360
|
onClick: d[3] || (d[3] = (O) => c("clear"))
|
|
@@ -25364,11 +25364,11 @@ const LP = { class: "code-slot" }, zP = { class: "code-slot" }, UP = { class: "e
|
|
|
25364
25364
|
], 4));
|
|
25365
25365
|
}
|
|
25366
25366
|
});
|
|
25367
|
-
const WP = /* @__PURE__ */
|
|
25368
|
-
/* @__PURE__ */
|
|
25369
|
-
], -1), IP = /* @__PURE__ */
|
|
25370
|
-
/* @__PURE__ */
|
|
25371
|
-
], -1), BP = /* @__PURE__ */
|
|
25367
|
+
const WP = /* @__PURE__ */ A("div", { class: "statement-option-title" }, [
|
|
25368
|
+
/* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "报表操作")
|
|
25369
|
+
], -1), IP = /* @__PURE__ */ A("div", { class: "statement-option-title" }, [
|
|
25370
|
+
/* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "单元格")
|
|
25371
|
+
], -1), BP = /* @__PURE__ */ A("span", { style: { "font-family": "'SimSun', 'Songti SC', 'STSong', 'Noto Serif CJK SC', 'Source Han Serif SC', serif" } }, "宋体", -1), NP = /* @__PURE__ */ A("span", { style: { "font-family": "'FangSong', 'STFangsong', 'KaiTi', 'Kaiti SC', 'Noto Sans CJK SC', sans-serif" } }, "仿宋体", -1), jP = /* @__PURE__ */ A("span", { style: { "font-family": "'KaiTi', 'Kaiti SC', 'STKaiti', 'Noto Serif CJK SC', 'Source Han Serif SC', serif" } }, "楷体", -1), GP = /* @__PURE__ */ A("span", { style: { "font-family": "'SimHei', 'Microsoft YaHei', 'PingFang SC', 'STHeiti', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif" } }, "黑体", -1), FP = /* @__PURE__ */ A("span", { style: { "font-family": "'Arial', 'Helvetica', 'Microsoft YaHei', 'PingFang SC', 'Noto Sans CJK SC', sans-serif" } }, "ABC/123", -1), HP = /* @__PURE__ */ A("span", { style: { "font-family": "'Courier New', 'Consolas', 'Monaco', 'Noto Sans Mono CJK SC', 'Source Han Code SC', monospace" } }, "ABC/123", -1), KP = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-align-left" }, null, -1), JP = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-align-center" }, null, -1), ek = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-align-right" }, null, -1), tk = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-horizontal-top" }, null, -1), ik = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-horizontal-center" }, null, -1), nk = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-horizontal-bottom" }, null, -1), sk = /* @__PURE__ */ A("br", null, null, -1), rk = /* @__PURE__ */ A("br", null, null, -1), lk = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "字符串模板", -1), ak = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-text" }, null, -1), ok = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-number" }, null, -1), uk = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-currency" }, null, -1), hk = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-scientific-notation" }, null, -1), ck = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-datetime" }, null, -1), fk = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-daima" }, null, -1), dk = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "自定义渲染函数", -1), Ok = /* @__PURE__ */ A("br", null, null, -1), pk = { class: "statement-option-title" }, mk = /* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "行设置", -1), gk = { class: "statement-option-title" }, _k = /* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "激活列", -1), Qk = /* @__PURE__ */ it({
|
|
25372
25372
|
__name: "cellEditor",
|
|
25373
25373
|
setup(n) {
|
|
25374
25374
|
const e = vt(), { active: t, activeIndex: i, activeCells: s, activeTable: r, activeTableIndex: l, activeTableMergeCells: a, isOneCell: o, activeCell: u, allTextCell: h, activeCols: c, activeRows: f, isOneRow: d, activeRow: O, isOneCol: y, activeCol: m } = yt(e), p = _e(() => l.value !== null && l.value > -1);
|
|
@@ -25406,7 +25406,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25406
25406
|
});
|
|
25407
25407
|
}), M ? Di.success("表格已修复") : Di.info("表格没有错误");
|
|
25408
25408
|
}
|
|
25409
|
-
const
|
|
25409
|
+
const V = {
|
|
25410
25410
|
type: "text",
|
|
25411
25411
|
text: "",
|
|
25412
25412
|
data: "",
|
|
@@ -25567,7 +25567,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25567
25567
|
});
|
|
25568
25568
|
if (o.value = G.filter((Y) => Y && Y.col !== -1 && Y.row !== -1 && Y.rowSpan !== 0 && Y.colSpan !== 0).length === 1, o.value) {
|
|
25569
25569
|
let Y = G[0];
|
|
25570
|
-
Y.isGroup || (Y.isGroup = !1), Y.isRowColCombine || (Y.isRowColCombine = !1), u.value = Y, c.value = [Y.col], f.value = [Y.row], O.value = r.value.rowConfig[Y.row], m.value = r.value.colConfig[Y.col], d.value = !0, y.value = !0, u.value && u.value.type && (h.value = [de.TEXT, de.FIELD].includes(u.value.type)), Object.entries(
|
|
25570
|
+
Y.isGroup || (Y.isGroup = !1), Y.isRowColCombine || (Y.isRowColCombine = !1), u.value = Y, c.value = [Y.col], f.value = [Y.row], O.value = r.value.rowConfig[Y.row], m.value = r.value.colConfig[Y.col], d.value = !0, y.value = !0, u.value && u.value.type && (h.value = [de.TEXT, de.FIELD].includes(u.value.type)), Object.entries(V).forEach(([N, L]) => {
|
|
25571
25571
|
S[N] = L;
|
|
25572
25572
|
}), S.colSize = m.value.size, S.colFixed = m.value.isFixed, S.rowSize = O.value.size, S.rowFixed = O.value.isFixed, u.value && Object.entries(u.value).forEach(([N, L]) => {
|
|
25573
25573
|
N === "formatType" ? (S.formatType || (S.formatType = {}), Object.entries(L).forEach(([J, se]) => {
|
|
@@ -25585,7 +25585,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25585
25585
|
L.get(I) || L.set(I, /* @__PURE__ */ new Set()), L.get(I).add(Qe);
|
|
25586
25586
|
});
|
|
25587
25587
|
}));
|
|
25588
|
-
}), h.value && Object.entries(
|
|
25588
|
+
}), h.value && Object.entries(V).forEach(([J, se]) => {
|
|
25589
25589
|
if (["type", "data"].includes(J))
|
|
25590
25590
|
S[J] = se;
|
|
25591
25591
|
else {
|
|
@@ -25799,8 +25799,8 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25799
25799
|
}
|
|
25800
25800
|
return (M, C) => {
|
|
25801
25801
|
const G = he("el-button-group"), Y = he("el-col"), N = he("el-input-number"), L = he("el-option"), J = he("el-select"), se = he("el-tooltip");
|
|
25802
|
-
return q(), F(
|
|
25803
|
-
g(s) && g(s).length ? (q(), F(
|
|
25802
|
+
return q(), F(re, null, [
|
|
25803
|
+
g(s) && g(s).length ? (q(), F(re, { key: 0 }, [
|
|
25804
25804
|
WP,
|
|
25805
25805
|
_(G, { class: "report-button-group" }, {
|
|
25806
25806
|
default: b(() => [
|
|
@@ -25912,7 +25912,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25912
25912
|
]),
|
|
25913
25913
|
_: 1
|
|
25914
25914
|
}),
|
|
25915
|
-
g($) ? (q(), F(
|
|
25915
|
+
g($) ? (q(), F(re, { key: 0 }, [
|
|
25916
25916
|
_(Y, { span: 8 }, {
|
|
25917
25917
|
default: b(() => [
|
|
25918
25918
|
_(g(ye), { label: "字体颜色" }, {
|
|
@@ -26147,7 +26147,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26147
26147
|
]),
|
|
26148
26148
|
_: 1
|
|
26149
26149
|
}),
|
|
26150
|
-
g(o) && g(u) ? (q(), F(
|
|
26150
|
+
g(o) && g(u) ? (q(), F(re, { key: 0 }, [
|
|
26151
26151
|
Ut(_(Y, { span: 24 }, {
|
|
26152
26152
|
default: b(() => [
|
|
26153
26153
|
_(g(ye), { label: "文本" }, {
|
|
@@ -26167,7 +26167,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26167
26167
|
]),
|
|
26168
26168
|
Ut(_(Y, { span: 24 }, {
|
|
26169
26169
|
default: b(() => [
|
|
26170
|
-
S.format !== g(Xe).STRING ? (q(),
|
|
26170
|
+
S.format !== g(Xe).STRING ? (q(), le(g(ye), {
|
|
26171
26171
|
key: 0,
|
|
26172
26172
|
label: "数据字段"
|
|
26173
26173
|
}, {
|
|
@@ -26179,7 +26179,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26179
26179
|
onInput: C[19] || (C[19] = (Z) => K(Z, "cell", "data"))
|
|
26180
26180
|
}, {
|
|
26181
26181
|
default: b(() => [
|
|
26182
|
-
(q(!0), F(
|
|
26182
|
+
(q(!0), F(re, null, qe(g(Se), (Z) => (q(), le(L, {
|
|
26183
26183
|
key: Z.columnName,
|
|
26184
26184
|
label: Z.name,
|
|
26185
26185
|
value: Z.columnName
|
|
@@ -26189,7 +26189,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26189
26189
|
}, 8, ["modelValue"])
|
|
26190
26190
|
]),
|
|
26191
26191
|
_: 1
|
|
26192
|
-
})) : (q(),
|
|
26192
|
+
})) : (q(), le(g(ye), { key: 1 }, {
|
|
26193
26193
|
label: b(() => [
|
|
26194
26194
|
_(se, {
|
|
26195
26195
|
class: "box-item",
|
|
@@ -26347,7 +26347,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26347
26347
|
]),
|
|
26348
26348
|
_: 1
|
|
26349
26349
|
}, 8, ["label"]),
|
|
26350
|
-
S.type === g(de).FIELD ? (q(),
|
|
26350
|
+
S.type === g(de).FIELD ? (q(), le(g(Le), {
|
|
26351
26351
|
key: 0,
|
|
26352
26352
|
label: g(Xe).STRING,
|
|
26353
26353
|
title: "自定义格式化"
|
|
@@ -26366,7 +26366,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26366
26366
|
]),
|
|
26367
26367
|
_: 1
|
|
26368
26368
|
}),
|
|
26369
|
-
S.formatType ? (q(), F(
|
|
26369
|
+
S.formatType ? (q(), F(re, { key: 1 }, [
|
|
26370
26370
|
Ut(_(Y, { span: 12 }, {
|
|
26371
26371
|
default: b(() => [
|
|
26372
26372
|
_(g(ye), { label: "小数位数" }, {
|
|
@@ -26449,7 +26449,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26449
26449
|
}, 512), [
|
|
26450
26450
|
[Wt, S.format === "currency"]
|
|
26451
26451
|
]),
|
|
26452
|
-
S.format === g(Xe).SCIENTIFIC ? (q(), F(
|
|
26452
|
+
S.format === g(Xe).SCIENTIFIC ? (q(), F(re, { key: 0 }, [
|
|
26453
26453
|
_(Y, { span: 24 }, {
|
|
26454
26454
|
default: b(() => [
|
|
26455
26455
|
_(g(ye), { label: "指数符号" }, {
|
|
@@ -26536,7 +26536,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26536
26536
|
[Wt, S.format === g(Xe).DATETIME]
|
|
26537
26537
|
])
|
|
26538
26538
|
], 64)) : ce("", !0),
|
|
26539
|
-
g(o) && g(u) ? (q(),
|
|
26539
|
+
g(o) && g(u) ? (q(), le(Y, {
|
|
26540
26540
|
key: 2,
|
|
26541
26541
|
span: 24
|
|
26542
26542
|
}, {
|
|
@@ -26579,8 +26579,8 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26579
26579
|
})) : ce("", !0)
|
|
26580
26580
|
], 64)) : ce("", !0)
|
|
26581
26581
|
], 64)) : ce("", !0),
|
|
26582
|
-
g(f) && g(f).length > 0 && g(O) ? (q(), F(
|
|
26583
|
-
|
|
26582
|
+
g(f) && g(f).length > 0 && g(O) ? (q(), F(re, { key: 1 }, [
|
|
26583
|
+
A("div", pk, [
|
|
26584
26584
|
mk,
|
|
26585
26585
|
_(G, { size: "small" }, {
|
|
26586
26586
|
default: b(() => [
|
|
@@ -26655,7 +26655,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26655
26655
|
]),
|
|
26656
26656
|
_: 1
|
|
26657
26657
|
}),
|
|
26658
|
-
g(d) && g(O) ? (q(), F(
|
|
26658
|
+
g(d) && g(O) ? (q(), F(re, { key: 0 }, [
|
|
26659
26659
|
_(Y, { span: 24 }, {
|
|
26660
26660
|
default: b(() => [
|
|
26661
26661
|
_(g(ye), { label: "数据源" }, {
|
|
@@ -26668,7 +26668,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26668
26668
|
filterable: ""
|
|
26669
26669
|
}, {
|
|
26670
26670
|
default: b(() => [
|
|
26671
|
-
(q(!0), F(
|
|
26671
|
+
(q(!0), F(re, null, qe(g(me), (Z) => (q(), le(L, {
|
|
26672
26672
|
key: Z.key,
|
|
26673
26673
|
label: Z.name,
|
|
26674
26674
|
value: Z.key
|
|
@@ -26697,7 +26697,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26697
26697
|
]),
|
|
26698
26698
|
_: 1
|
|
26699
26699
|
}),
|
|
26700
|
-
g(O).loop ? ce("", !0) : (q(),
|
|
26700
|
+
g(O).loop ? ce("", !0) : (q(), le(Y, {
|
|
26701
26701
|
key: 0,
|
|
26702
26702
|
span: 12
|
|
26703
26703
|
}, {
|
|
@@ -26718,8 +26718,8 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26718
26718
|
}))
|
|
26719
26719
|
], 64)) : ce("", !0)
|
|
26720
26720
|
], 64)) : ce("", !0),
|
|
26721
|
-
g(c) && g(c).length > 0 ? (q(), F(
|
|
26722
|
-
|
|
26721
|
+
g(c) && g(c).length > 0 ? (q(), F(re, { key: 2 }, [
|
|
26722
|
+
A("div", gk, [
|
|
26723
26723
|
_k,
|
|
26724
26724
|
_(G, { size: "small" }, {
|
|
26725
26725
|
default: b(() => [
|
|
@@ -26793,7 +26793,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26793
26793
|
]),
|
|
26794
26794
|
_: 1
|
|
26795
26795
|
}),
|
|
26796
|
-
g(y) && g(m) ? (q(), F(
|
|
26796
|
+
g(y) && g(m) ? (q(), F(re, { key: 0 }, [
|
|
26797
26797
|
_(Y, { span: 24 }, {
|
|
26798
26798
|
default: b(() => [
|
|
26799
26799
|
_(g(ye), { label: "数据源" }, {
|
|
@@ -26805,7 +26805,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26805
26805
|
clearable: ""
|
|
26806
26806
|
}, {
|
|
26807
26807
|
default: b(() => [
|
|
26808
|
-
(q(!0), F(
|
|
26808
|
+
(q(!0), F(re, null, qe(g(me), (Z) => (q(), le(L, {
|
|
26809
26809
|
key: Z.key,
|
|
26810
26810
|
label: Z.name,
|
|
26811
26811
|
value: Z.key
|
|
@@ -26834,7 +26834,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26834
26834
|
]),
|
|
26835
26835
|
_: 1
|
|
26836
26836
|
}),
|
|
26837
|
-
g(m).loop ? ce("", !0) : (q(),
|
|
26837
|
+
g(m).loop ? ce("", !0) : (q(), le(Y, {
|
|
26838
26838
|
key: 0,
|
|
26839
26839
|
span: 12
|
|
26840
26840
|
}, {
|
|
@@ -26858,27 +26858,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26858
26858
|
], 64);
|
|
26859
26859
|
};
|
|
26860
26860
|
}
|
|
26861
|
-
}), bk = /* @__PURE__ */
|
|
26862
|
-
class: "statement-option-title",
|
|
26863
|
-
style: { top: "0" }
|
|
26864
|
-
}, [
|
|
26865
|
-
/* @__PURE__ */ V("div", { class: "statement-option-title-context" }, "宽高")
|
|
26866
|
-
], -1), yk = /* @__PURE__ */ V("div", {
|
|
26867
|
-
class: "statement-option-title",
|
|
26868
|
-
style: { top: "0" }
|
|
26869
|
-
}, [
|
|
26870
|
-
/* @__PURE__ */ V("div", { class: "statement-option-title-context" }, "序号")
|
|
26871
|
-
], -1), vk = /* @__PURE__ */ V("div", {
|
|
26872
|
-
class: "statement-option-title",
|
|
26873
|
-
style: { top: "100px" }
|
|
26874
|
-
}, [
|
|
26875
|
-
/* @__PURE__ */ V("div", { class: "statement-option-title-context" }, "主题设置")
|
|
26876
|
-
], -1), Sk = /* @__PURE__ */ V("div", {
|
|
26877
|
-
class: "statement-option-title",
|
|
26878
|
-
style: { top: "100px" }
|
|
26879
|
-
}, [
|
|
26880
|
-
/* @__PURE__ */ V("div", { class: "statement-option-title-context" }, "导出方式")
|
|
26881
|
-
], -1), xk = /* @__PURE__ */ it({
|
|
26861
|
+
}), bk = /* @__PURE__ */ it({
|
|
26882
26862
|
__name: "reportOption",
|
|
26883
26863
|
setup(n) {
|
|
26884
26864
|
const e = vt(), { active: t, detail: i } = yt(e), s = _e(() => i.value.options.length === 1);
|
|
@@ -26891,7 +26871,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26891
26871
|
}
|
|
26892
26872
|
return (l, a) => {
|
|
26893
26873
|
const o = he("el-row"), u = he("el-tab-pane"), h = he("el-switch"), c = he("el-form-item"), f = he("el-col"), d = he("el-input"), O = he("el-radio-button"), y = he("el-radio-group");
|
|
26894
|
-
return q(), F(
|
|
26874
|
+
return q(), F(re, null, [
|
|
26895
26875
|
_(u, {
|
|
26896
26876
|
label: "单元格/参数",
|
|
26897
26877
|
name: "cell"
|
|
@@ -26912,12 +26892,11 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26912
26892
|
name: "theme"
|
|
26913
26893
|
}, {
|
|
26914
26894
|
default: b(() => [
|
|
26915
|
-
g(t) && g(t).type === "report" ? (q(),
|
|
26895
|
+
g(t) && g(t).type === "report" ? (q(), le(o, {
|
|
26916
26896
|
key: 0,
|
|
26917
26897
|
gutter: 10
|
|
26918
26898
|
}, {
|
|
26919
26899
|
default: b(() => [
|
|
26920
|
-
bk,
|
|
26921
26900
|
_(f, { span: 12 }, {
|
|
26922
26901
|
default: b(() => [
|
|
26923
26902
|
_(c, { label: "宽度单位" }, {
|
|
@@ -27000,7 +26979,6 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
27000
26979
|
]),
|
|
27001
26980
|
_: 1
|
|
27002
26981
|
}),
|
|
27003
|
-
yk,
|
|
27004
26982
|
_(f, { span: 8 }, {
|
|
27005
26983
|
default: b(() => [
|
|
27006
26984
|
_(c, { label: "序号" }, {
|
|
@@ -27029,7 +27007,6 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
27029
27007
|
]),
|
|
27030
27008
|
_: 1
|
|
27031
27009
|
}),
|
|
27032
|
-
vk,
|
|
27033
27010
|
_(f, { span: 24 }, {
|
|
27034
27011
|
default: b(() => [
|
|
27035
27012
|
_(c, { label: "主题" }, {
|
|
@@ -27078,10 +27055,9 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
27078
27055
|
]),
|
|
27079
27056
|
_: 1
|
|
27080
27057
|
}),
|
|
27081
|
-
Sk,
|
|
27082
27058
|
_(f, { span: 24 }, {
|
|
27083
27059
|
default: b(() => [
|
|
27084
|
-
_(c, { label: "
|
|
27060
|
+
_(c, { label: "导出方式" }, {
|
|
27085
27061
|
default: b(() => [
|
|
27086
27062
|
_(y, {
|
|
27087
27063
|
modelValue: g(t).exportMethod,
|
|
@@ -27119,7 +27095,7 @@ const WP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
27119
27095
|
};
|
|
27120
27096
|
}
|
|
27121
27097
|
});
|
|
27122
|
-
let
|
|
27098
|
+
let yk = [
|
|
27123
27099
|
we("sourceData", {
|
|
27124
27100
|
label: "sourceData",
|
|
27125
27101
|
type: "variable",
|
|
@@ -27131,15 +27107,15 @@ let $k = [
|
|
|
27131
27107
|
detail: "接口请求."
|
|
27132
27108
|
})
|
|
27133
27109
|
];
|
|
27134
|
-
const
|
|
27110
|
+
const vk = function(n, e) {
|
|
27135
27111
|
let t = n.matchBefore(/[\w.-\[\]]+/);
|
|
27136
27112
|
if (t === null || t.from == t.to && !n.explicit)
|
|
27137
27113
|
return null;
|
|
27138
27114
|
{
|
|
27139
27115
|
let i = t.text, s = Ye(n.state).resolveInner(n.pos, -1), r = /\./.test(s.name) ? s.to : s.from;
|
|
27140
|
-
return
|
|
27116
|
+
return Sk(r, i, e);
|
|
27141
27117
|
}
|
|
27142
|
-
},
|
|
27118
|
+
}, Sk = function(n, e, t) {
|
|
27143
27119
|
let i = [];
|
|
27144
27120
|
const s = /sourceData./, r = /sourceData.\w+\[/;
|
|
27145
27121
|
if (/sourceData.\w+\[\d+\]./.test(e)) {
|
|
@@ -27186,15 +27162,15 @@ const wk = function(n, e) {
|
|
|
27186
27162
|
);
|
|
27187
27163
|
}), i = a;
|
|
27188
27164
|
} else
|
|
27189
|
-
i =
|
|
27165
|
+
i = yk.filter((a) => a.label.includes(e));
|
|
27190
27166
|
return i ? {
|
|
27191
27167
|
from: n,
|
|
27192
27168
|
options: i,
|
|
27193
27169
|
validFor: /^[\w.-\[\]]$/
|
|
27194
27170
|
} : null;
|
|
27195
|
-
},
|
|
27196
|
-
/* @__PURE__ */
|
|
27197
|
-
], -1),
|
|
27171
|
+
}, xk = /* @__PURE__ */ A("div", { class: "statement-form-sub-title" }, "固定定位", -1), $k = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "顶部距离", -1), wk = /* @__PURE__ */ A("span", { class: "tooltip-span" }, "左侧距离", -1), Pk = /* @__PURE__ */ A("div", { class: "statement-option-title" }, [
|
|
27172
|
+
/* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "数据")
|
|
27173
|
+
], -1), kk = /* @__PURE__ */ it({
|
|
27198
27174
|
__name: "chartOption",
|
|
27199
27175
|
setup(n) {
|
|
27200
27176
|
const e = vt(), { active: t, detail: i } = yt(e), s = _e(() => t.value ? Nf.includes(t.value.type) : !1);
|
|
@@ -27238,29 +27214,29 @@ const wk = function(n, e) {
|
|
|
27238
27214
|
});
|
|
27239
27215
|
function o() {
|
|
27240
27216
|
if (t.value) {
|
|
27241
|
-
let { smooth: d, symbol: O, showLabel: y, areaStyle: m, labelColor: p, labelPosition: v, radius:
|
|
27217
|
+
let { smooth: d, symbol: O, showLabel: y, areaStyle: m, labelColor: p, labelPosition: v, radius: V } = t.value;
|
|
27242
27218
|
Array.isArray(a.value.series) ? a.value.series.forEach((S) => {
|
|
27243
27219
|
var $;
|
|
27244
27220
|
S.smooth = d, S.symbol = O, S.label = {
|
|
27245
27221
|
show: y,
|
|
27246
27222
|
color: p,
|
|
27247
27223
|
position: v
|
|
27248
|
-
}, (($ = t.value) == null ? void 0 : $.type) == "pie" && (S.label.position = "outside",
|
|
27224
|
+
}, (($ = t.value) == null ? void 0 : $.type) == "pie" && (S.label.position = "outside", V ? S.radius = ["40%", "70%"] : S.radius = [0, "75%"]), S.areaStyle = m && JSON.parse(m);
|
|
27249
27225
|
}) : a.value.series instanceof Object && (a.value.series.smooth = d, a.value.series.symbol = O, a.value.series.label = {
|
|
27250
27226
|
show: y,
|
|
27251
27227
|
color: p,
|
|
27252
27228
|
position: v
|
|
27253
|
-
}, t.value.type == "pie" && (a.value.series.label.position = "outside",
|
|
27229
|
+
}, t.value.type == "pie" && (a.value.series.label.position = "outside", V ? a.value.series.radius = ["40%", "70%"] : a.value.series.radius = [0, "75%"]), a.value.series.areaStyle = m && JSON.parse(m));
|
|
27254
27230
|
}
|
|
27255
27231
|
}
|
|
27256
27232
|
let u = {};
|
|
27257
27233
|
const h = _e(() => {
|
|
27258
27234
|
var y, m;
|
|
27259
27235
|
let d = [];
|
|
27260
|
-
u = {}, t.value && (d = (m = (y = t.value.data) == null ? void 0 : y.source) == null ? void 0 : m.map(({ name: p, key: v, columns:
|
|
27236
|
+
u = {}, t.value && (d = (m = (y = t.value.data) == null ? void 0 : y.source) == null ? void 0 : m.map(({ name: p, key: v, columns: V }) => ({
|
|
27261
27237
|
label: p,
|
|
27262
27238
|
value: v,
|
|
27263
|
-
children:
|
|
27239
|
+
children: V.map(({ name: S, columnName: $ }) => ($ = $.toUpperCase(), Xt(u, `${v}.${$}`, S), {
|
|
27264
27240
|
label: S,
|
|
27265
27241
|
value: $
|
|
27266
27242
|
}))
|
|
@@ -27268,8 +27244,8 @@ const wk = function(n, e) {
|
|
|
27268
27244
|
let O = i.value.options.filter((p) => p.type === "report" && p.data.source && p.data.source.length).map(({ id: p, data: { source: v } }) => ({
|
|
27269
27245
|
label: p,
|
|
27270
27246
|
value: p,
|
|
27271
|
-
children: v.map(({ name:
|
|
27272
|
-
label:
|
|
27247
|
+
children: v.map(({ name: V, key: S, columns: $ }) => ({
|
|
27248
|
+
label: V,
|
|
27273
27249
|
value: S,
|
|
27274
27250
|
children: $.map(({ name: P, columnName: w }) => {
|
|
27275
27251
|
w = w.toUpperCase();
|
|
@@ -27300,9 +27276,9 @@ const wk = function(n, e) {
|
|
|
27300
27276
|
d && d !== "NONE" && t.value && (t.value.cutLength = t.value.cutLength || 5);
|
|
27301
27277
|
}
|
|
27302
27278
|
return (d, O) => {
|
|
27303
|
-
const y = he("el-color-picker"), m = he("el-input"), p = he("el-form-item"), v = he("el-input-number"),
|
|
27304
|
-
return q(), F(
|
|
27305
|
-
g(t) ? (q(),
|
|
27279
|
+
const y = he("el-color-picker"), m = he("el-input"), p = he("el-form-item"), v = he("el-input-number"), V = he("el-col"), S = he("el-radio-button"), $ = he("el-radio-group"), P = he("el-row"), w = he("el-switch"), k = he("el-tooltip"), R = he("el-cascader"), Q = he("el-tab-pane");
|
|
27280
|
+
return q(), F(re, null, [
|
|
27281
|
+
g(t) ? (q(), le(Q, {
|
|
27306
27282
|
key: 0,
|
|
27307
27283
|
name: "chart",
|
|
27308
27284
|
label: "属性",
|
|
@@ -27340,7 +27316,7 @@ const wk = function(n, e) {
|
|
|
27340
27316
|
default: b(() => [
|
|
27341
27317
|
_(P, { gutter: 10 }, {
|
|
27342
27318
|
default: b(() => [
|
|
27343
|
-
_(
|
|
27319
|
+
_(V, { span: 12 }, {
|
|
27344
27320
|
default: b(() => [
|
|
27345
27321
|
_(v, {
|
|
27346
27322
|
"controls-position": "right",
|
|
@@ -27351,7 +27327,7 @@ const wk = function(n, e) {
|
|
|
27351
27327
|
]),
|
|
27352
27328
|
_: 1
|
|
27353
27329
|
}),
|
|
27354
|
-
_(
|
|
27330
|
+
_(V, { span: 12 }, {
|
|
27355
27331
|
default: b(() => [
|
|
27356
27332
|
_($, {
|
|
27357
27333
|
modelValue: g(t).widthUnit,
|
|
@@ -27386,7 +27362,7 @@ const wk = function(n, e) {
|
|
|
27386
27362
|
default: b(() => [
|
|
27387
27363
|
_(P, { gutter: 10 }, {
|
|
27388
27364
|
default: b(() => [
|
|
27389
|
-
_(
|
|
27365
|
+
_(V, { span: 12 }, {
|
|
27390
27366
|
default: b(() => [
|
|
27391
27367
|
_(v, {
|
|
27392
27368
|
modelValue: g(t).height,
|
|
@@ -27397,7 +27373,7 @@ const wk = function(n, e) {
|
|
|
27397
27373
|
]),
|
|
27398
27374
|
_: 1
|
|
27399
27375
|
}),
|
|
27400
|
-
_(
|
|
27376
|
+
_(V, { span: 12 }, {
|
|
27401
27377
|
default: b(() => [
|
|
27402
27378
|
_($, {
|
|
27403
27379
|
modelValue: g(t).heightUnit,
|
|
@@ -27428,7 +27404,7 @@ const wk = function(n, e) {
|
|
|
27428
27404
|
]),
|
|
27429
27405
|
_: 1
|
|
27430
27406
|
}),
|
|
27431
|
-
g(s) ? (q(), F(
|
|
27407
|
+
g(s) ? (q(), F(re, { key: 0 }, [
|
|
27432
27408
|
_(p, { label: "X轴轴坐标名称" }, {
|
|
27433
27409
|
default: b(() => [
|
|
27434
27410
|
_(m, {
|
|
@@ -27448,7 +27424,7 @@ const wk = function(n, e) {
|
|
|
27448
27424
|
_: 1
|
|
27449
27425
|
})
|
|
27450
27426
|
], 64)) : ce("", !0),
|
|
27451
|
-
g(t).type == "line" ? (q(), F(
|
|
27427
|
+
g(t).type == "line" ? (q(), F(re, { key: 1 }, [
|
|
27452
27428
|
_(p, { label: "平滑" }, {
|
|
27453
27429
|
default: b(() => [
|
|
27454
27430
|
_(w, {
|
|
@@ -27482,7 +27458,7 @@ const wk = function(n, e) {
|
|
|
27482
27458
|
]),
|
|
27483
27459
|
_: 1
|
|
27484
27460
|
}),
|
|
27485
|
-
g(t).showLabel ? (q(),
|
|
27461
|
+
g(t).showLabel ? (q(), le(p, {
|
|
27486
27462
|
key: 2,
|
|
27487
27463
|
label: "标签颜色"
|
|
27488
27464
|
}, {
|
|
@@ -27505,12 +27481,12 @@ const wk = function(n, e) {
|
|
|
27505
27481
|
]),
|
|
27506
27482
|
_: 1
|
|
27507
27483
|
})) : ce("", !0),
|
|
27508
|
-
g(t).showLabel && !["pie", "radar"].includes(g(t).type) ? (q(),
|
|
27484
|
+
g(t).showLabel && !["pie", "radar"].includes(g(t).type) ? (q(), le(p, {
|
|
27509
27485
|
key: 3,
|
|
27510
27486
|
label: "标签位置"
|
|
27511
27487
|
}, {
|
|
27512
27488
|
default: b(() => [
|
|
27513
|
-
["line", "scatter"].includes(g(t).type) ? (q(),
|
|
27489
|
+
["line", "scatter"].includes(g(t).type) ? (q(), le($, {
|
|
27514
27490
|
key: 0,
|
|
27515
27491
|
modelValue: g(t).labelPosition,
|
|
27516
27492
|
"onUpdate:modelValue": O[14] || (O[14] = (T) => g(t).labelPosition = T),
|
|
@@ -27537,7 +27513,7 @@ const wk = function(n, e) {
|
|
|
27537
27513
|
})
|
|
27538
27514
|
]),
|
|
27539
27515
|
_: 1
|
|
27540
|
-
}, 8, ["modelValue"])) : g(t).type == "rowBar" ? (q(),
|
|
27516
|
+
}, 8, ["modelValue"])) : g(t).type == "rowBar" ? (q(), le($, {
|
|
27541
27517
|
key: 1,
|
|
27542
27518
|
modelValue: g(t).labelPosition,
|
|
27543
27519
|
"onUpdate:modelValue": O[15] || (O[15] = (T) => g(t).labelPosition = T),
|
|
@@ -27570,7 +27546,7 @@ const wk = function(n, e) {
|
|
|
27570
27546
|
})
|
|
27571
27547
|
]),
|
|
27572
27548
|
_: 1
|
|
27573
|
-
}, 8, ["modelValue"])) : g(t).type == "bar" ? (q(),
|
|
27549
|
+
}, 8, ["modelValue"])) : g(t).type == "bar" ? (q(), le($, {
|
|
27574
27550
|
key: 2,
|
|
27575
27551
|
modelValue: g(t).labelPosition,
|
|
27576
27552
|
"onUpdate:modelValue": O[16] || (O[16] = (T) => g(t).labelPosition = T),
|
|
@@ -27607,7 +27583,7 @@ const wk = function(n, e) {
|
|
|
27607
27583
|
]),
|
|
27608
27584
|
_: 1
|
|
27609
27585
|
})) : ce("", !0),
|
|
27610
|
-
["line", "radar"].includes(g(t).type) ? (q(),
|
|
27586
|
+
["line", "radar"].includes(g(t).type) ? (q(), le(p, {
|
|
27611
27587
|
key: 4,
|
|
27612
27588
|
label: "面积图"
|
|
27613
27589
|
}, {
|
|
@@ -27622,7 +27598,7 @@ const wk = function(n, e) {
|
|
|
27622
27598
|
]),
|
|
27623
27599
|
_: 1
|
|
27624
27600
|
})) : ce("", !0),
|
|
27625
|
-
g(t).type == "pie" ? (q(),
|
|
27601
|
+
g(t).type == "pie" ? (q(), le(p, {
|
|
27626
27602
|
key: 5,
|
|
27627
27603
|
label: "环形图"
|
|
27628
27604
|
}, {
|
|
@@ -27635,8 +27611,8 @@ const wk = function(n, e) {
|
|
|
27635
27611
|
]),
|
|
27636
27612
|
_: 1
|
|
27637
27613
|
})) : ce("", !0),
|
|
27638
|
-
g(t).isSuspend ? (q(), F(
|
|
27639
|
-
|
|
27614
|
+
g(t).isSuspend ? (q(), F(re, { key: 6 }, [
|
|
27615
|
+
xk,
|
|
27640
27616
|
_(p, null, {
|
|
27641
27617
|
label: b(() => [
|
|
27642
27618
|
_(k, {
|
|
@@ -27646,7 +27622,7 @@ const wk = function(n, e) {
|
|
|
27646
27622
|
placement: "top-start"
|
|
27647
27623
|
}, {
|
|
27648
27624
|
default: b(() => [
|
|
27649
|
-
|
|
27625
|
+
$k
|
|
27650
27626
|
]),
|
|
27651
27627
|
_: 1
|
|
27652
27628
|
})
|
|
@@ -27669,7 +27645,7 @@ const wk = function(n, e) {
|
|
|
27669
27645
|
placement: "top-start"
|
|
27670
27646
|
}, {
|
|
27671
27647
|
default: b(() => [
|
|
27672
|
-
|
|
27648
|
+
wk
|
|
27673
27649
|
]),
|
|
27674
27650
|
_: 1
|
|
27675
27651
|
})
|
|
@@ -27684,7 +27660,7 @@ const wk = function(n, e) {
|
|
|
27684
27660
|
_: 1
|
|
27685
27661
|
})
|
|
27686
27662
|
], 64)) : ce("", !0),
|
|
27687
|
-
|
|
27663
|
+
Pk,
|
|
27688
27664
|
_(p, { label: g(r) }, {
|
|
27689
27665
|
default: b(() => [
|
|
27690
27666
|
_(R, {
|
|
@@ -27738,7 +27714,7 @@ const wk = function(n, e) {
|
|
|
27738
27714
|
]),
|
|
27739
27715
|
_: 1
|
|
27740
27716
|
}),
|
|
27741
|
-
g(t).orderBy && g(t).orderBy != "NONE" ? (q(),
|
|
27717
|
+
g(t).orderBy && g(t).orderBy != "NONE" ? (q(), le(p, {
|
|
27742
27718
|
key: 7,
|
|
27743
27719
|
label: "数据截取数量"
|
|
27744
27720
|
}, {
|
|
@@ -27783,7 +27759,7 @@ const wk = function(n, e) {
|
|
|
27783
27759
|
modelValue: g(l),
|
|
27784
27760
|
"onUpdate:modelValue": O[26] || (O[26] = (T) => Hm(l) ? l.value = T : l = T),
|
|
27785
27761
|
autocomplete: {
|
|
27786
|
-
javascript: g(
|
|
27762
|
+
javascript: g(vk)
|
|
27787
27763
|
},
|
|
27788
27764
|
language: "javascript",
|
|
27789
27765
|
height: 600
|
|
@@ -27798,7 +27774,7 @@ const wk = function(n, e) {
|
|
|
27798
27774
|
};
|
|
27799
27775
|
}
|
|
27800
27776
|
});
|
|
27801
|
-
const
|
|
27777
|
+
const Tk = /* @__PURE__ */ it({
|
|
27802
27778
|
__name: "colorChoose",
|
|
27803
27779
|
props: {
|
|
27804
27780
|
modelValue: null
|
|
@@ -27810,9 +27786,9 @@ const Zk = /* @__PURE__ */ it({
|
|
|
27810
27786
|
};
|
|
27811
27787
|
return (s, r) => {
|
|
27812
27788
|
const l = he("el-button"), a = he("el-button-group");
|
|
27813
|
-
return q(),
|
|
27789
|
+
return q(), le(a, { class: "yh-report-color-choose" }, {
|
|
27814
27790
|
default: b(() => [
|
|
27815
|
-
(q(!0), F(
|
|
27791
|
+
(q(!0), F(re, null, qe(g(va), (o) => (q(), le(l, {
|
|
27816
27792
|
color: o,
|
|
27817
27793
|
size: "small",
|
|
27818
27794
|
plain: t.modelValue !== o,
|
|
@@ -27823,7 +27799,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
27823
27799
|
});
|
|
27824
27800
|
};
|
|
27825
27801
|
}
|
|
27826
|
-
}),
|
|
27802
|
+
}), Ck = { class: "statement-option-title" }, Xk = /* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "数据", -1), Rk = /* @__PURE__ */ it({
|
|
27827
27803
|
__name: "labelOption",
|
|
27828
27804
|
setup(n) {
|
|
27829
27805
|
const e = vt(), { active: t, detail: i } = yt(e);
|
|
@@ -27854,9 +27830,9 @@ const Zk = /* @__PURE__ */ it({
|
|
|
27854
27830
|
value: y,
|
|
27855
27831
|
children: m.map(({ name: p, columnName: v }) => {
|
|
27856
27832
|
v = v.toUpperCase();
|
|
27857
|
-
let
|
|
27858
|
-
return Xt(r, `${f}.${y}.${v}`,
|
|
27859
|
-
label:
|
|
27833
|
+
let V = p || v;
|
|
27834
|
+
return Xt(r, `${f}.${y}.${v}`, V), {
|
|
27835
|
+
label: V,
|
|
27860
27836
|
value: v
|
|
27861
27837
|
};
|
|
27862
27838
|
})
|
|
@@ -27868,8 +27844,8 @@ const Zk = /* @__PURE__ */ it({
|
|
|
27868
27844
|
o && o !== "NONE" && t.value && (t.value.cutLength = t.value.cutLength || 5);
|
|
27869
27845
|
}
|
|
27870
27846
|
return (o, u) => {
|
|
27871
|
-
const h = he("el-color-picker"), c = he("el-input"), f = he("el-form-item"), d = he("el-input-number"), O = he("el-col"), y = he("el-radio-button"), m = he("el-radio-group"), p = he("el-row"), v = he("el-cascader"),
|
|
27872
|
-
return g(t) ? (q(),
|
|
27847
|
+
const h = he("el-color-picker"), c = he("el-input"), f = he("el-form-item"), d = he("el-input-number"), O = he("el-col"), y = he("el-radio-button"), m = he("el-radio-group"), p = he("el-row"), v = he("el-cascader"), V = he("el-switch"), S = he("el-tab-pane");
|
|
27848
|
+
return g(t) ? (q(), le(S, {
|
|
27873
27849
|
key: 0,
|
|
27874
27850
|
name: "label",
|
|
27875
27851
|
label: "色块",
|
|
@@ -27986,8 +27962,8 @@ const Zk = /* @__PURE__ */ it({
|
|
|
27986
27962
|
]),
|
|
27987
27963
|
_: 1
|
|
27988
27964
|
}),
|
|
27989
|
-
|
|
27990
|
-
|
|
27965
|
+
A("div", Ck, [
|
|
27966
|
+
Xk,
|
|
27991
27967
|
_(m, {
|
|
27992
27968
|
style: { width: "auto" },
|
|
27993
27969
|
modelValue: g(s).notSingle,
|
|
@@ -28010,7 +27986,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28010
27986
|
_: 1
|
|
28011
27987
|
}, 8, ["modelValue"])
|
|
28012
27988
|
]),
|
|
28013
|
-
g(s).notSingle ? (q(), F(
|
|
27989
|
+
g(s).notSingle ? (q(), F(re, { key: 0 }, [
|
|
28014
27990
|
_(f, { label: "维度" }, {
|
|
28015
27991
|
default: b(() => [
|
|
28016
27992
|
_(v, {
|
|
@@ -28027,7 +28003,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28027
28003
|
}),
|
|
28028
28004
|
_(f, { label: "分组求和" }, {
|
|
28029
28005
|
default: b(() => [
|
|
28030
|
-
_(
|
|
28006
|
+
_(V, {
|
|
28031
28007
|
modelValue: g(s).groupBy,
|
|
28032
28008
|
"onUpdate:modelValue": u[8] || (u[8] = ($) => g(s).groupBy = $)
|
|
28033
28009
|
}, null, 8, ["modelValue"])
|
|
@@ -28066,7 +28042,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28066
28042
|
]),
|
|
28067
28043
|
_: 1
|
|
28068
28044
|
}),
|
|
28069
|
-
g(s).orderBy && g(s).orderBy != "NONE" ? (q(),
|
|
28045
|
+
g(s).orderBy && g(s).orderBy != "NONE" ? (q(), le(f, {
|
|
28070
28046
|
key: 0,
|
|
28071
28047
|
label: "数据截取"
|
|
28072
28048
|
}, {
|
|
@@ -28092,7 +28068,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28092
28068
|
]),
|
|
28093
28069
|
_: 1
|
|
28094
28070
|
})
|
|
28095
|
-
], 64)) : (q(), F(
|
|
28071
|
+
], 64)) : (q(), F(re, { key: 1 }, [
|
|
28096
28072
|
_(f, { label: "自定义维度" }, {
|
|
28097
28073
|
default: b(() => [
|
|
28098
28074
|
_(c, {
|
|
@@ -28104,7 +28080,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28104
28080
|
}),
|
|
28105
28081
|
_(f, { label: "颜色" }, {
|
|
28106
28082
|
default: b(() => [
|
|
28107
|
-
_(
|
|
28083
|
+
_(Tk, {
|
|
28108
28084
|
modelValue: g(s).singleColor,
|
|
28109
28085
|
"onUpdate:modelValue": u[13] || (u[13] = ($) => g(s).singleColor = $)
|
|
28110
28086
|
}, null, 8, ["modelValue"])
|
|
@@ -28175,7 +28151,7 @@ const Zk = /* @__PURE__ */ it({
|
|
|
28175
28151
|
};
|
|
28176
28152
|
}
|
|
28177
28153
|
});
|
|
28178
|
-
const
|
|
28154
|
+
const Zk = /* @__PURE__ */ it({
|
|
28179
28155
|
__name: "options",
|
|
28180
28156
|
setup(n) {
|
|
28181
28157
|
const e = vt(), { active: t } = yt(e), i = be("cell");
|
|
@@ -28195,7 +28171,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28195
28171
|
break;
|
|
28196
28172
|
}
|
|
28197
28173
|
}
|
|
28198
|
-
), (s, r) => (q(),
|
|
28174
|
+
), (s, r) => (q(), le(g(ig), {
|
|
28199
28175
|
"label-position": "top",
|
|
28200
28176
|
class: "statement-option"
|
|
28201
28177
|
}, {
|
|
@@ -28206,8 +28182,8 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28206
28182
|
"onUpdate:modelValue": r[0] || (r[0] = (l) => i.value = l)
|
|
28207
28183
|
}, {
|
|
28208
28184
|
default: b(() => [
|
|
28209
|
-
g(t) !== null ? (q(), F(
|
|
28210
|
-
g(t) && g(t).type === "report" ? (q(),
|
|
28185
|
+
g(t) !== null ? (q(), F(re, { key: 0 }, [
|
|
28186
|
+
g(t) && g(t).type === "report" ? (q(), le(bk, { key: 0 })) : g(t) && g(t).type === "label" ? (q(), le(Rk, { key: 1 })) : (q(), le(kk, { key: 2 }))
|
|
28211
28187
|
], 64)) : ce("", !0)
|
|
28212
28188
|
]),
|
|
28213
28189
|
_: 1
|
|
@@ -28216,58 +28192,58 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28216
28192
|
_: 1
|
|
28217
28193
|
}));
|
|
28218
28194
|
}
|
|
28219
|
-
}),
|
|
28195
|
+
}), Vk = {
|
|
28220
28196
|
class: "statement-option-title",
|
|
28221
28197
|
style: { top: "0" }
|
|
28222
|
-
},
|
|
28198
|
+
}, Ak = /* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "数据源", -1), Yk = {
|
|
28223
28199
|
key: 0,
|
|
28224
28200
|
class: "data-source-status"
|
|
28225
|
-
},
|
|
28201
|
+
}, Ek = { class: "data-source-name" }, qk = ["data-index", "data-cindex"], Mk = {
|
|
28226
28202
|
key: 0,
|
|
28227
28203
|
class: "desinger-container static-data"
|
|
28228
|
-
},
|
|
28204
|
+
}, Dk = { class: "data-source-title" }, Lk = /* @__PURE__ */ A("div", { class: "data-source-title-text" }, "数据源列表", -1), zk = /* @__PURE__ */ A("div", { class: "data-source-title-text" }, "选择数据来源", -1), Uk = {
|
|
28229
28205
|
key: 0,
|
|
28230
28206
|
class: "data-source-list"
|
|
28231
|
-
},
|
|
28207
|
+
}, Wk = {
|
|
28232
28208
|
key: 1,
|
|
28233
28209
|
class: "data-source-list"
|
|
28234
|
-
},
|
|
28235
|
-
/* @__PURE__ */
|
|
28236
|
-
/* @__PURE__ */
|
|
28237
|
-
], -1),
|
|
28238
|
-
/* @__PURE__ */
|
|
28239
|
-
/* @__PURE__ */
|
|
28240
|
-
], -1),
|
|
28241
|
-
/* @__PURE__ */
|
|
28242
|
-
/* @__PURE__ */
|
|
28243
|
-
], -1),
|
|
28244
|
-
/* @__PURE__ */
|
|
28245
|
-
/* @__PURE__ */
|
|
28246
|
-
], -1),
|
|
28247
|
-
/* @__PURE__ */
|
|
28248
|
-
/* @__PURE__ */
|
|
28249
|
-
], -1),
|
|
28250
|
-
/* @__PURE__ */
|
|
28251
|
-
/* @__PURE__ */
|
|
28252
|
-
], -1),
|
|
28253
|
-
/* @__PURE__ */
|
|
28254
|
-
/* @__PURE__ */
|
|
28255
|
-
], -1),
|
|
28256
|
-
/* @__PURE__ */
|
|
28257
|
-
/* @__PURE__ */
|
|
28258
|
-
], -1),
|
|
28259
|
-
/* @__PURE__ */
|
|
28260
|
-
/* @__PURE__ */
|
|
28261
|
-
], -1),
|
|
28262
|
-
/* @__PURE__ */
|
|
28263
|
-
/* @__PURE__ */
|
|
28264
|
-
], -1),
|
|
28265
|
-
/* @__PURE__ */
|
|
28266
|
-
/* @__PURE__ */
|
|
28267
|
-
], -1),
|
|
28210
|
+
}, Ik = ["onClick"], Bk = { class: "data-source-name" }, Nk = { class: "data-source-name-context" }, jk = { class: "data-source-columns" }, Gk = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28211
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "启用分页"),
|
|
28212
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" }, "数据分页展示")
|
|
28213
|
+
], -1), Fk = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28214
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "失焦"),
|
|
28215
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" }, "输入框失焦自动查询")
|
|
28216
|
+
], -1), Hk = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28217
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "分页数"),
|
|
28218
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" }, "每页数量")
|
|
28219
|
+
], -1), Kk = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28220
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "分页数选择"),
|
|
28221
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" }, "设置可选分页数")
|
|
28222
|
+
], -1), Jk = { class: "data-pagesizes" }, eT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28223
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "数据前置处理函数"),
|
|
28224
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28225
|
+
], -1), tT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28226
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "Tooltip处理"),
|
|
28227
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28228
|
+
], -1), iT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28229
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "X轴数据处理"),
|
|
28230
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28231
|
+
], -1), nT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28232
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "Y轴数据处理"),
|
|
28233
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28234
|
+
], -1), sT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28235
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "数据处理"),
|
|
28236
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28237
|
+
], -1), rT = /* @__PURE__ */ A("br", null, null, -1), lT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28238
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "转为对象"),
|
|
28239
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" }, "点位、对象、固定报表")
|
|
28240
|
+
], -1), aT = { class: "custom-from-item-label" }, oT = /* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "转换配置", -1), uT = { class: "custom-from-item-label-tips" }, hT = { class: "custom-from-item-label" }, cT = /* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "数据源字段管理", -1), fT = { class: "custom-from-item-label-tips" }, dT = { class: "source-columns-editor-container" }, OT = /* @__PURE__ */ A("div", { class: "custom-from-item-label" }, [
|
|
28241
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-context" }, "字段名"),
|
|
28242
|
+
/* @__PURE__ */ A("div", { class: "custom-from-item-label-tips" })
|
|
28243
|
+
], -1), pT = { class: "custom-from-item-label" }, mT = { class: "custom-from-item-label-context" }, gT = { class: "custom-from-item-label-tips" }, _T = {
|
|
28268
28244
|
key: 0,
|
|
28269
28245
|
class: "new-source-column-form"
|
|
28270
|
-
},
|
|
28246
|
+
}, QT = /* @__PURE__ */ A("h2", null, "添加数据源字段", -1), bT = /* @__PURE__ */ A("div", { class: "title-context" }, "数据源设置", -1), yT = /* @__PURE__ */ it({
|
|
28271
28247
|
__name: "dataOption",
|
|
28272
28248
|
setup(n) {
|
|
28273
28249
|
const e = vt(), t = be(!1), { active: i } = yt(e), s = _e(() => i.value ? Nf.includes(i.value.type) : !1), r = _e(() => i.value ? i.value.data.source : []), l = _e(() => {
|
|
@@ -28306,9 +28282,9 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28306
28282
|
u.value = !1;
|
|
28307
28283
|
};
|
|
28308
28284
|
async function v() {
|
|
28309
|
-
i.value && i.value.data && i.value.data.source && (d.value = i.value.data.source.map((U) => U.key), await y(),
|
|
28285
|
+
i.value && i.value.data && i.value.data.source && (d.value = i.value.data.source.map((U) => U.key), await y(), V());
|
|
28310
28286
|
}
|
|
28311
|
-
async function
|
|
28287
|
+
async function V() {
|
|
28312
28288
|
if (d.value && Array.isArray(d.value)) {
|
|
28313
28289
|
O.value = !0;
|
|
28314
28290
|
const U = d.value;
|
|
@@ -28392,9 +28368,9 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28392
28368
|
return Ti(() => {
|
|
28393
28369
|
}), (U, E) => {
|
|
28394
28370
|
const B = he("el-tag"), ie = he("el-input"), ne = he("el-checkbox"), M = he("el-checkbox-group"), C = he("el-col"), G = he("el-switch"), Y = he("el-form-item"), N = he("el-option"), L = he("el-select"), J = he("el-input-number"), se = he("el-row"), Z = he("el-form");
|
|
28395
|
-
return q(), F(
|
|
28396
|
-
|
|
28397
|
-
|
|
28371
|
+
return q(), F(re, null, [
|
|
28372
|
+
A("div", Vk, [
|
|
28373
|
+
Ak,
|
|
28398
28374
|
_(g(Te), {
|
|
28399
28375
|
onClick: o,
|
|
28400
28376
|
type: "success",
|
|
@@ -28406,8 +28382,8 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28406
28382
|
_: 1
|
|
28407
28383
|
})
|
|
28408
28384
|
]),
|
|
28409
|
-
g(i) ? (q(), F("div",
|
|
28410
|
-
g(i).data.pagination ? (q(), F(
|
|
28385
|
+
g(i) ? (q(), F("div", Yk, [
|
|
28386
|
+
g(i).data.pagination ? (q(), F(re, { key: 0 }, [
|
|
28411
28387
|
_(B, { type: "info" }, {
|
|
28412
28388
|
default: b(() => [
|
|
28413
28389
|
D("分页")
|
|
@@ -28421,63 +28397,66 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28421
28397
|
_: 1
|
|
28422
28398
|
})
|
|
28423
28399
|
], 64)) : ce("", !0),
|
|
28424
|
-
g(i).
|
|
28425
|
-
|
|
28426
|
-
|
|
28427
|
-
|
|
28428
|
-
|
|
28429
|
-
|
|
28430
|
-
|
|
28431
|
-
|
|
28432
|
-
|
|
28433
|
-
|
|
28434
|
-
|
|
28435
|
-
|
|
28436
|
-
|
|
28437
|
-
|
|
28438
|
-
|
|
28439
|
-
|
|
28440
|
-
|
|
28441
|
-
|
|
28442
|
-
|
|
28443
|
-
|
|
28444
|
-
|
|
28445
|
-
|
|
28446
|
-
|
|
28447
|
-
|
|
28448
|
-
|
|
28449
|
-
|
|
28450
|
-
|
|
28451
|
-
|
|
28452
|
-
|
|
28453
|
-
|
|
28454
|
-
|
|
28455
|
-
|
|
28456
|
-
|
|
28457
|
-
|
|
28458
|
-
|
|
28459
|
-
|
|
28460
|
-
|
|
28461
|
-
|
|
28462
|
-
|
|
28463
|
-
|
|
28464
|
-
|
|
28465
|
-
|
|
28466
|
-
|
|
28467
|
-
|
|
28468
|
-
|
|
28400
|
+
g(i).type === "report" ? (q(), F(re, { key: 1 }, [
|
|
28401
|
+
g(i).data.processData ? (q(), le(B, {
|
|
28402
|
+
key: 0,
|
|
28403
|
+
type: "info"
|
|
28404
|
+
}, {
|
|
28405
|
+
default: b(() => [
|
|
28406
|
+
D(" 报表数据处理 ")
|
|
28407
|
+
]),
|
|
28408
|
+
_: 1
|
|
28409
|
+
})) : ce("", !0)
|
|
28410
|
+
], 64)) : g(i).type === "label" ? (q(), F(re, { key: 2 }, [], 64)) : (q(), F(re, { key: 3 }, [
|
|
28411
|
+
g(i).toolTipData ? (q(), le(B, {
|
|
28412
|
+
key: 0,
|
|
28413
|
+
type: "info"
|
|
28414
|
+
}, {
|
|
28415
|
+
default: b(() => [
|
|
28416
|
+
D(" Tooltip处理 ")
|
|
28417
|
+
]),
|
|
28418
|
+
_: 1
|
|
28419
|
+
})) : ce("", !0),
|
|
28420
|
+
g(i).xAisData ? (q(), le(B, {
|
|
28421
|
+
key: 1,
|
|
28422
|
+
type: "info"
|
|
28423
|
+
}, {
|
|
28424
|
+
default: b(() => [
|
|
28425
|
+
D(" X轴数据处理 ")
|
|
28426
|
+
]),
|
|
28427
|
+
_: 1
|
|
28428
|
+
})) : ce("", !0),
|
|
28429
|
+
g(i).yAisData ? (q(), le(B, {
|
|
28430
|
+
key: 2,
|
|
28431
|
+
type: "info"
|
|
28432
|
+
}, {
|
|
28433
|
+
default: b(() => [
|
|
28434
|
+
D(" Y轴数据处理 ")
|
|
28435
|
+
]),
|
|
28436
|
+
_: 1
|
|
28437
|
+
})) : ce("", !0),
|
|
28438
|
+
g(i).seriesData ? (q(), le(B, {
|
|
28439
|
+
key: 3,
|
|
28440
|
+
type: "info"
|
|
28441
|
+
}, {
|
|
28442
|
+
default: b(() => [
|
|
28443
|
+
D(" 图表数据处理 ")
|
|
28444
|
+
]),
|
|
28445
|
+
_: 1
|
|
28446
|
+
})) : ce("", !0)
|
|
28447
|
+
], 64))
|
|
28469
28448
|
])) : ce("", !0),
|
|
28470
28449
|
_(g(ng), { class: "data-columns" }, {
|
|
28471
28450
|
default: b(() => [
|
|
28472
|
-
(q(!0), F(
|
|
28451
|
+
(q(!0), F(re, null, qe(g(r), (I, Qe) => (q(), le(g(sg), {
|
|
28473
28452
|
key: Qe,
|
|
28474
28453
|
name: I.url
|
|
28475
28454
|
}, {
|
|
28476
28455
|
title: b(() => [
|
|
28477
|
-
|
|
28478
|
-
|
|
28479
|
-
|
|
28480
|
-
I.toObject ? (q(),
|
|
28456
|
+
A("div", Ek, [
|
|
28457
|
+
A("div", null, Ue(I.name) + " (" + Ue(I.url) + ")", 1),
|
|
28458
|
+
A("div", null, [
|
|
28459
|
+
I.toObject ? (q(), le(B, {
|
|
28481
28460
|
key: 0,
|
|
28482
28461
|
type: "info"
|
|
28483
28462
|
}, {
|
|
@@ -28490,21 +28469,21 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28490
28469
|
])
|
|
28491
28470
|
]),
|
|
28492
28471
|
default: b(() => [
|
|
28493
|
-
(q(!0), F(
|
|
28472
|
+
(q(!0), F(re, null, qe(I.columns, (Ce, qt) => (q(), F("div", {
|
|
28494
28473
|
class: "data-column report-drag-source",
|
|
28495
28474
|
"data-drag": "column",
|
|
28496
28475
|
"data-index": Qe,
|
|
28497
28476
|
"data-cindex": qt,
|
|
28498
28477
|
draggable: "true"
|
|
28499
28478
|
}, [
|
|
28500
|
-
|
|
28501
|
-
Ce.name === Ce.columnName ? (q(), F(
|
|
28479
|
+
A("div", null, [
|
|
28480
|
+
Ce.name === Ce.columnName ? (q(), F(re, { key: 0 }, [
|
|
28502
28481
|
D(Ue(Ce.name), 1)
|
|
28503
|
-
], 64)) : (q(), F(
|
|
28482
|
+
], 64)) : (q(), F(re, { key: 1 }, [
|
|
28504
28483
|
D(Ue(Ce.name) + " (" + Ue(Ce.columnName) + ")", 1)
|
|
28505
28484
|
], 64))
|
|
28506
28485
|
])
|
|
28507
|
-
], 8,
|
|
28486
|
+
], 8, qk))), 256))
|
|
28508
28487
|
]),
|
|
28509
28488
|
_: 2
|
|
28510
28489
|
}, 1032, ["name"]))), 128))
|
|
@@ -28520,7 +28499,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28520
28499
|
"onUpdate:modelValue": E[16] || (E[16] = (I) => t.value = I)
|
|
28521
28500
|
}, {
|
|
28522
28501
|
header: b(() => [
|
|
28523
|
-
|
|
28502
|
+
bT,
|
|
28524
28503
|
D(" "),
|
|
28525
28504
|
_(g(Te), {
|
|
28526
28505
|
type: "warning",
|
|
@@ -28534,14 +28513,14 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28534
28513
|
})
|
|
28535
28514
|
]),
|
|
28536
28515
|
default: b(() => [
|
|
28537
|
-
g(i) ? (q(), F("div",
|
|
28516
|
+
g(i) ? (q(), F("div", Mk, [
|
|
28538
28517
|
_(se, { class: "process-data" }, {
|
|
28539
28518
|
default: b(() => [
|
|
28540
28519
|
_(C, { span: 8 }, {
|
|
28541
28520
|
default: b(() => [
|
|
28542
|
-
|
|
28543
|
-
u.value ? (q(), F(
|
|
28544
|
-
|
|
28521
|
+
A("div", Dk, [
|
|
28522
|
+
u.value ? (q(), F(re, { key: 1 }, [
|
|
28523
|
+
zk,
|
|
28545
28524
|
_(ie, {
|
|
28546
28525
|
placeholder: "键入筛选数据源",
|
|
28547
28526
|
modelValue: c.value,
|
|
@@ -28563,15 +28542,15 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28563
28542
|
plain: "",
|
|
28564
28543
|
type: "primary",
|
|
28565
28544
|
loading: O.value,
|
|
28566
|
-
onClick:
|
|
28545
|
+
onClick: V
|
|
28567
28546
|
}, {
|
|
28568
28547
|
default: b(() => [
|
|
28569
28548
|
D(" 保存 ")
|
|
28570
28549
|
]),
|
|
28571
28550
|
_: 1
|
|
28572
28551
|
}, 8, ["loading"])
|
|
28573
|
-
], 64)) : (q(), F(
|
|
28574
|
-
|
|
28552
|
+
], 64)) : (q(), F(re, { key: 0 }, [
|
|
28553
|
+
Lk,
|
|
28575
28554
|
_(g(Te), {
|
|
28576
28555
|
type: "text",
|
|
28577
28556
|
onClick: v
|
|
@@ -28592,13 +28571,13 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28592
28571
|
})
|
|
28593
28572
|
], 64))
|
|
28594
28573
|
]),
|
|
28595
|
-
u.value ? (q(), F("div",
|
|
28574
|
+
u.value ? (q(), F("div", Uk, [
|
|
28596
28575
|
_(M, {
|
|
28597
28576
|
modelValue: d.value,
|
|
28598
28577
|
"onUpdate:modelValue": E[1] || (E[1] = (I) => d.value = I)
|
|
28599
28578
|
}, {
|
|
28600
28579
|
default: b(() => [
|
|
28601
|
-
(q(!0), F(
|
|
28580
|
+
(q(!0), F(re, null, qe(g(f), (I) => (q(), le(ne, {
|
|
28602
28581
|
label: I.id
|
|
28603
28582
|
}, {
|
|
28604
28583
|
default: b(() => [
|
|
@@ -28609,16 +28588,16 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28609
28588
|
]),
|
|
28610
28589
|
_: 1
|
|
28611
28590
|
}, 8, ["modelValue"])
|
|
28612
|
-
])) : (q(), F("div",
|
|
28613
|
-
(q(!0), F(
|
|
28591
|
+
])) : (q(), F("div", Wk, [
|
|
28592
|
+
(q(!0), F(re, null, qe(g(r), (I, Qe) => {
|
|
28614
28593
|
var Ce;
|
|
28615
28594
|
return q(), F("div", {
|
|
28616
28595
|
class: Zt(["data-source-item", { active: ((Ce = $.value) == null ? void 0 : Ce.key) == I.key }]),
|
|
28617
28596
|
onClick: (qt) => P(I)
|
|
28618
28597
|
}, [
|
|
28619
|
-
|
|
28620
|
-
|
|
28621
|
-
I.toObject ? (q(),
|
|
28598
|
+
A("div", Bk, [
|
|
28599
|
+
A("div", Nk, Ue(I.name) + " (" + Ue(I.url) + ")", 1),
|
|
28600
|
+
I.toObject ? (q(), le(B, {
|
|
28622
28601
|
key: 0,
|
|
28623
28602
|
size: "small",
|
|
28624
28603
|
type: "success"
|
|
@@ -28640,19 +28619,19 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28640
28619
|
_: 2
|
|
28641
28620
|
}, 1032, ["onClick"])
|
|
28642
28621
|
]),
|
|
28643
|
-
|
|
28644
|
-
(q(!0), F(
|
|
28622
|
+
A("div", jk, [
|
|
28623
|
+
(q(!0), F(re, null, qe(I.columns, (qt) => (q(), le(B, null, {
|
|
28645
28624
|
default: b(() => [
|
|
28646
|
-
qt.name === qt.columnName ? (q(), F(
|
|
28625
|
+
qt.name === qt.columnName ? (q(), F(re, { key: 0 }, [
|
|
28647
28626
|
D(Ue(qt.name), 1)
|
|
28648
|
-
], 64)) : (q(), F(
|
|
28627
|
+
], 64)) : (q(), F(re, { key: 1 }, [
|
|
28649
28628
|
D(Ue(qt.name) + " (" + Ue(qt.columnName) + ")", 1)
|
|
28650
28629
|
], 64))
|
|
28651
28630
|
]),
|
|
28652
28631
|
_: 2
|
|
28653
28632
|
}, 1024))), 256))
|
|
28654
28633
|
])
|
|
28655
|
-
], 10,
|
|
28634
|
+
], 10, Ik);
|
|
28656
28635
|
}), 256))
|
|
28657
28636
|
]))
|
|
28658
28637
|
]),
|
|
@@ -28664,18 +28643,18 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28664
28643
|
default: b(() => [
|
|
28665
28644
|
_(se, { gutter: 10 }, {
|
|
28666
28645
|
default: b(() => [
|
|
28667
|
-
g(i).type === "report" ? (q(), F(
|
|
28646
|
+
g(i).type === "report" ? (q(), F(re, { key: 0 }, [
|
|
28668
28647
|
_(C, { span: 4 }, {
|
|
28669
28648
|
default: b(() => [
|
|
28670
28649
|
_(Y, null, {
|
|
28671
28650
|
label: b(() => [
|
|
28672
|
-
|
|
28651
|
+
Gk
|
|
28673
28652
|
]),
|
|
28674
28653
|
default: b(() => [
|
|
28675
28654
|
_(G, {
|
|
28676
28655
|
modelValue: g(i).data.pagination,
|
|
28677
28656
|
"onUpdate:modelValue": E[2] || (E[2] = (I) => g(i).data.pagination = I),
|
|
28678
|
-
disabled: g(i).data.source
|
|
28657
|
+
disabled: !g(i).data.source || g(i).data.source.length === 0
|
|
28679
28658
|
}, null, 8, ["modelValue", "disabled"])
|
|
28680
28659
|
]),
|
|
28681
28660
|
_: 1
|
|
@@ -28683,14 +28662,14 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28683
28662
|
]),
|
|
28684
28663
|
_: 1
|
|
28685
28664
|
}),
|
|
28686
|
-
g(i).data.pagination ? (q(),
|
|
28665
|
+
g(i).data.pagination ? (q(), le(C, {
|
|
28687
28666
|
key: 0,
|
|
28688
28667
|
span: 4
|
|
28689
28668
|
}, {
|
|
28690
28669
|
default: b(() => [
|
|
28691
28670
|
_(Y, null, {
|
|
28692
28671
|
label: b(() => [
|
|
28693
|
-
|
|
28672
|
+
Fk
|
|
28694
28673
|
]),
|
|
28695
28674
|
default: b(() => [
|
|
28696
28675
|
_(G, {
|
|
@@ -28703,14 +28682,14 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28703
28682
|
]),
|
|
28704
28683
|
_: 1
|
|
28705
28684
|
})) : ce("", !0),
|
|
28706
|
-
g(i).data.pagination ? (q(),
|
|
28685
|
+
g(i).data.pagination ? (q(), le(C, {
|
|
28707
28686
|
key: 1,
|
|
28708
28687
|
span: 4
|
|
28709
28688
|
}, {
|
|
28710
28689
|
default: b(() => [
|
|
28711
28690
|
_(Y, null, {
|
|
28712
28691
|
label: b(() => [
|
|
28713
|
-
|
|
28692
|
+
Hk
|
|
28714
28693
|
]),
|
|
28715
28694
|
default: b(() => [
|
|
28716
28695
|
_(L, {
|
|
@@ -28719,7 +28698,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28719
28698
|
modelModifiers: { number: !0 }
|
|
28720
28699
|
}, {
|
|
28721
28700
|
default: b(() => [
|
|
28722
|
-
(q(!0), F(
|
|
28701
|
+
(q(!0), F(re, null, qe(a.value, (I) => (q(), le(N, {
|
|
28723
28702
|
label: I,
|
|
28724
28703
|
value: I
|
|
28725
28704
|
}, null, 8, ["label", "value"]))), 256))
|
|
@@ -28732,18 +28711,18 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28732
28711
|
]),
|
|
28733
28712
|
_: 1
|
|
28734
28713
|
})) : ce("", !0),
|
|
28735
|
-
g(i).data.pagination ? (q(),
|
|
28714
|
+
g(i).data.pagination ? (q(), le(C, {
|
|
28736
28715
|
key: 2,
|
|
28737
28716
|
span: 12
|
|
28738
28717
|
}, {
|
|
28739
28718
|
default: b(() => [
|
|
28740
28719
|
_(Y, null, {
|
|
28741
28720
|
label: b(() => [
|
|
28742
|
-
|
|
28721
|
+
Kk
|
|
28743
28722
|
]),
|
|
28744
28723
|
default: b(() => [
|
|
28745
|
-
|
|
28746
|
-
(q(!0), F(
|
|
28724
|
+
A("div", Jk, [
|
|
28725
|
+
(q(!0), F(re, null, qe(a.value, (I, Qe) => (q(), le(B, {
|
|
28747
28726
|
closable: "",
|
|
28748
28727
|
key: I,
|
|
28749
28728
|
"disable-transitions": !1,
|
|
@@ -28754,7 +28733,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28754
28733
|
]),
|
|
28755
28734
|
_: 2
|
|
28756
28735
|
}, 1032, ["onClose"]))), 128)),
|
|
28757
|
-
Se.value ? (q(),
|
|
28736
|
+
Se.value ? (q(), le(ie, {
|
|
28758
28737
|
key: 0,
|
|
28759
28738
|
ref_key: "InputRef",
|
|
28760
28739
|
ref: K,
|
|
@@ -28764,7 +28743,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28764
28743
|
class: "data-pagesizes-input",
|
|
28765
28744
|
size: "small",
|
|
28766
28745
|
onKeyup: Km(ge, ["enter"])
|
|
28767
|
-
}, null, 8, ["modelValue", "onKeyup"])) : (q(),
|
|
28746
|
+
}, null, 8, ["modelValue", "onKeyup"])) : (q(), le(g(Te), {
|
|
28768
28747
|
key: 1,
|
|
28769
28748
|
size: "small",
|
|
28770
28749
|
onClick: pe
|
|
@@ -28785,7 +28764,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28785
28764
|
default: b(() => [
|
|
28786
28765
|
_(Y, null, {
|
|
28787
28766
|
label: b(() => [
|
|
28788
|
-
|
|
28767
|
+
eT
|
|
28789
28768
|
]),
|
|
28790
28769
|
default: b(() => [
|
|
28791
28770
|
_(Ei, {
|
|
@@ -28808,13 +28787,13 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28808
28787
|
_: 1
|
|
28809
28788
|
})
|
|
28810
28789
|
], 64)) : ce("", !0),
|
|
28811
|
-
["line", "rowBar", "bar", "pie", "scatter", "radar", "treemap"].includes(g(i).type) ? (q(), F(
|
|
28812
|
-
g(s) ? (q(), F(
|
|
28790
|
+
["line", "rowBar", "bar", "pie", "scatter", "radar", "treemap"].includes(g(i).type) ? (q(), F(re, { key: 1 }, [
|
|
28791
|
+
g(s) ? (q(), F(re, { key: 0 }, [
|
|
28813
28792
|
_(C, { span: 24 }, {
|
|
28814
28793
|
default: b(() => [
|
|
28815
28794
|
_(Y, null, {
|
|
28816
28795
|
label: b(() => [
|
|
28817
|
-
|
|
28796
|
+
tT
|
|
28818
28797
|
]),
|
|
28819
28798
|
default: b(() => [
|
|
28820
28799
|
_(Ei, {
|
|
@@ -28840,7 +28819,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28840
28819
|
default: b(() => [
|
|
28841
28820
|
_(Y, null, {
|
|
28842
28821
|
label: b(() => [
|
|
28843
|
-
|
|
28822
|
+
iT
|
|
28844
28823
|
]),
|
|
28845
28824
|
default: b(() => [
|
|
28846
28825
|
_(Ei, {
|
|
@@ -28866,7 +28845,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28866
28845
|
default: b(() => [
|
|
28867
28846
|
_(Y, null, {
|
|
28868
28847
|
label: b(() => [
|
|
28869
|
-
|
|
28848
|
+
nT
|
|
28870
28849
|
]),
|
|
28871
28850
|
default: b(() => [
|
|
28872
28851
|
_(Ei, {
|
|
@@ -28893,7 +28872,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28893
28872
|
default: b(() => [
|
|
28894
28873
|
_(Y, null, {
|
|
28895
28874
|
label: b(() => [
|
|
28896
|
-
|
|
28875
|
+
sT
|
|
28897
28876
|
]),
|
|
28898
28877
|
default: b(() => [
|
|
28899
28878
|
_(Ei, {
|
|
@@ -28906,7 +28885,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28906
28885
|
]),
|
|
28907
28886
|
"next-code": b(() => [
|
|
28908
28887
|
D(" return {series,option}; "),
|
|
28909
|
-
|
|
28888
|
+
rT,
|
|
28910
28889
|
D(" } ")
|
|
28911
28890
|
]),
|
|
28912
28891
|
_: 1
|
|
@@ -28918,12 +28897,12 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28918
28897
|
_: 1
|
|
28919
28898
|
})
|
|
28920
28899
|
], 64)) : ce("", !0),
|
|
28921
|
-
$.value !== null ? (q(), F(
|
|
28900
|
+
$.value !== null ? (q(), F(re, { key: 2 }, [
|
|
28922
28901
|
_(C, { span: 6 }, {
|
|
28923
28902
|
default: b(() => [
|
|
28924
28903
|
_(Y, null, {
|
|
28925
28904
|
label: b(() => [
|
|
28926
|
-
|
|
28905
|
+
lT
|
|
28927
28906
|
]),
|
|
28928
28907
|
default: b(() => [
|
|
28929
28908
|
_(G, {
|
|
@@ -28938,16 +28917,16 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28938
28917
|
]),
|
|
28939
28918
|
_: 1
|
|
28940
28919
|
}),
|
|
28941
|
-
$.value.toObject ? (q(),
|
|
28920
|
+
$.value.toObject ? (q(), le(C, {
|
|
28942
28921
|
key: 0,
|
|
28943
28922
|
span: 18
|
|
28944
28923
|
}, {
|
|
28945
28924
|
default: b(() => [
|
|
28946
28925
|
_(Y, null, {
|
|
28947
28926
|
label: b(() => [
|
|
28948
|
-
|
|
28949
|
-
|
|
28950
|
-
|
|
28927
|
+
A("div", aT, [
|
|
28928
|
+
oT,
|
|
28929
|
+
A("div", uT, [
|
|
28951
28930
|
D(" 选择转换是的字段及对字段的格式化方法 "),
|
|
28952
28931
|
_(g(Te), {
|
|
28953
28932
|
type: "success",
|
|
@@ -28963,7 +28942,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28963
28942
|
])
|
|
28964
28943
|
]),
|
|
28965
28944
|
default: b(() => [
|
|
28966
|
-
(q(!0), F(
|
|
28945
|
+
(q(!0), F(re, null, qe($.value.toObjectSetting, (I, Qe) => (q(), le(se, {
|
|
28967
28946
|
gutter: 10,
|
|
28968
28947
|
style: { "margin-bottom": "10px" }
|
|
28969
28948
|
}, {
|
|
@@ -28975,7 +28954,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
28975
28954
|
"onUpdate:modelValue": (Ce) => I.field = Ce
|
|
28976
28955
|
}, {
|
|
28977
28956
|
default: b(() => [
|
|
28978
|
-
(q(!0), F(
|
|
28957
|
+
(q(!0), F(re, null, qe(g(l), (Ce) => (q(), le(N, {
|
|
28979
28958
|
value: Ce.value,
|
|
28980
28959
|
label: Ce.name
|
|
28981
28960
|
}, null, 8, ["value", "label"]))), 256))
|
|
@@ -29010,7 +28989,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29010
28989
|
]),
|
|
29011
28990
|
_: 2
|
|
29012
28991
|
}, 1024),
|
|
29013
|
-
I.format === "text" ? (q(),
|
|
28992
|
+
I.format === "text" ? (q(), le(C, {
|
|
29014
28993
|
key: 0,
|
|
29015
28994
|
span: 11,
|
|
29016
28995
|
class: "column-Object-setting-format-type"
|
|
@@ -29031,7 +29010,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29031
29010
|
]),
|
|
29032
29011
|
_: 2
|
|
29033
29012
|
}, 1024)) : ce("", !0),
|
|
29034
|
-
I.format === "number" ? (q(),
|
|
29013
|
+
I.format === "number" ? (q(), le(C, {
|
|
29035
29014
|
key: 1,
|
|
29036
29015
|
span: 11,
|
|
29037
29016
|
class: "column-Object-setting-format-type"
|
|
@@ -29045,7 +29024,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29045
29024
|
]),
|
|
29046
29025
|
_: 2
|
|
29047
29026
|
}, 1024)) : ce("", !0),
|
|
29048
|
-
I.format === "datetime" ? (q(),
|
|
29027
|
+
I.format === "datetime" ? (q(), le(C, {
|
|
29049
29028
|
key: 2,
|
|
29050
29029
|
span: 11,
|
|
29051
29030
|
class: "column-Object-setting-format-type"
|
|
@@ -29106,10 +29085,10 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29106
29085
|
default: b(() => [
|
|
29107
29086
|
_(Y, null, {
|
|
29108
29087
|
label: b(() => [
|
|
29109
|
-
|
|
29110
|
-
|
|
29111
|
-
|
|
29112
|
-
k.value ? (q(), F(
|
|
29088
|
+
A("div", hT, [
|
|
29089
|
+
cT,
|
|
29090
|
+
A("div", fT, [
|
|
29091
|
+
k.value ? (q(), F(re, { key: 1 }, [
|
|
29113
29092
|
_(g(Te), {
|
|
29114
29093
|
type: "info",
|
|
29115
29094
|
onClick: j,
|
|
@@ -29130,7 +29109,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29130
29109
|
]),
|
|
29131
29110
|
_: 1
|
|
29132
29111
|
})
|
|
29133
|
-
], 64)) : (q(),
|
|
29112
|
+
], 64)) : (q(), le(g(Te), {
|
|
29134
29113
|
key: 0,
|
|
29135
29114
|
type: "success",
|
|
29136
29115
|
onClick: z,
|
|
@@ -29145,10 +29124,10 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29145
29124
|
])
|
|
29146
29125
|
]),
|
|
29147
29126
|
default: b(() => [
|
|
29148
|
-
|
|
29127
|
+
A("div", dT, [
|
|
29149
29128
|
_(se, { gutter: 10 }, {
|
|
29150
29129
|
default: b(() => [
|
|
29151
|
-
(q(!0), F(
|
|
29130
|
+
(q(!0), F(re, null, qe($.value.columns, (I) => (q(), le(C, { span: 12 }, {
|
|
29152
29131
|
default: b(() => [
|
|
29153
29132
|
_(se, { gutter: 10 }, {
|
|
29154
29133
|
default: b(() => [
|
|
@@ -29156,7 +29135,7 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29156
29135
|
default: b(() => [
|
|
29157
29136
|
_(Y, null, {
|
|
29158
29137
|
label: b(() => [
|
|
29159
|
-
|
|
29138
|
+
OT
|
|
29160
29139
|
]),
|
|
29161
29140
|
default: b(() => [
|
|
29162
29141
|
_(ie, {
|
|
@@ -29173,10 +29152,10 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29173
29152
|
default: b(() => [
|
|
29174
29153
|
_(Y, null, {
|
|
29175
29154
|
label: b(() => [
|
|
29176
|
-
|
|
29177
|
-
|
|
29178
|
-
|
|
29179
|
-
I.isCustom ? (q(),
|
|
29155
|
+
A("div", pT, [
|
|
29156
|
+
A("div", mT, Ue(I.isCustom ? "字段键名(自定义)" : "字段键名"), 1),
|
|
29157
|
+
A("div", gT, [
|
|
29158
|
+
I.isCustom ? (q(), le(g(Te), {
|
|
29180
29159
|
key: 0,
|
|
29181
29160
|
type: "danger",
|
|
29182
29161
|
size: "small",
|
|
@@ -29212,8 +29191,8 @@ const Ek = /* @__PURE__ */ it({
|
|
|
29212
29191
|
]),
|
|
29213
29192
|
_: 1
|
|
29214
29193
|
}),
|
|
29215
|
-
k.value ? (q(), F("div",
|
|
29216
|
-
|
|
29194
|
+
k.value ? (q(), F("div", _T, [
|
|
29195
|
+
QT,
|
|
29217
29196
|
_(Y, { label: "字段名" }, {
|
|
29218
29197
|
default: b(() => [
|
|
29219
29198
|
_(ie, {
|
|
@@ -29280,7 +29259,7 @@ const Ji = /* @__PURE__ */ it({
|
|
|
29280
29259
|
const e = n;
|
|
29281
29260
|
return (t, i) => {
|
|
29282
29261
|
const s = he("el-button"), r = he("el-tooltip");
|
|
29283
|
-
return q(),
|
|
29262
|
+
return q(), le(r, {
|
|
29284
29263
|
effect: "dark",
|
|
29285
29264
|
content: e.content,
|
|
29286
29265
|
placement: "bottom"
|
|
@@ -29301,7 +29280,7 @@ const Ji = /* @__PURE__ */ it({
|
|
|
29301
29280
|
};
|
|
29302
29281
|
}
|
|
29303
29282
|
});
|
|
29304
|
-
function
|
|
29283
|
+
function vT(n, e, t, i, s) {
|
|
29305
29284
|
let r = be(!1);
|
|
29306
29285
|
function l(u) {
|
|
29307
29286
|
let { clientX: h, clientY: c, target: f } = u, { classList: d } = f;
|
|
@@ -29326,7 +29305,7 @@ function wT(n, e, t, i, s) {
|
|
|
29326
29305
|
}
|
|
29327
29306
|
function Df(n, e = 1) {
|
|
29328
29307
|
let t = 0, i = 300, s = be(300);
|
|
29329
|
-
return
|
|
29308
|
+
return vT(
|
|
29330
29309
|
n,
|
|
29331
29310
|
"drag-tap",
|
|
29332
29311
|
(r, l, a) => {
|
|
@@ -29343,12 +29322,12 @@ function Df(n, e = 1) {
|
|
|
29343
29322
|
formWidth: s
|
|
29344
29323
|
};
|
|
29345
29324
|
}
|
|
29346
|
-
const
|
|
29347
|
-
/* @__PURE__ */
|
|
29348
|
-
], -1),
|
|
29325
|
+
const ST = { class: "statement-design-top" }, xT = { class: "statement-name" }, $T = { class: "statement-actions" }, wT = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-chexiao" }, null, -1), PT = /* @__PURE__ */ A("i", { class: "yh-report-icon report-icon-huifu" }, null, -1), kT = /* @__PURE__ */ A("i", { class: "iconfont icon-save" }, null, -1), TT = /* @__PURE__ */ A("i", { class: "iconfont icon-help-circle-filled" }, null, -1), CT = /* @__PURE__ */ A("i", { class: "iconfont icon-eye-fill" }, null, -1), XT = /* @__PURE__ */ A("i", { class: "iconfont icon-eye" }, null, -1), RT = { class: "statement-design-body" }, ZT = /* @__PURE__ */ A("div", { class: "drag-tap right" }, null, -1), VT = { class: "statement-option" }, AT = /* @__PURE__ */ A("div", { class: "statement-option-title" }, [
|
|
29326
|
+
/* @__PURE__ */ A("div", { class: "statement-option-title-context" }, "图表/报表")
|
|
29327
|
+
], -1), YT = ["onClick"], ET = { class: "statement-block-item-content" }, qT = { class: "statement-block-item-title" }, MT = { class: "statement-block-item-id" }, DT = {
|
|
29349
29328
|
key: 1,
|
|
29350
29329
|
class: "statement-content"
|
|
29351
|
-
},
|
|
29330
|
+
}, LT = /* @__PURE__ */ A("div", { class: "drag-tap left" }, null, -1), eC = /* @__PURE__ */ it({
|
|
29352
29331
|
__name: "StatementDesign",
|
|
29353
29332
|
setup(n) {
|
|
29354
29333
|
const e = vt(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: l, historyIndex: a, historyLength: o } = yt(e), { getDetail: u, saveStatement: h, prevHistory: c, nextHistory: f, activeChooseHandle: d } = e, O = be(), y = _e(() => {
|
|
@@ -29374,7 +29353,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29374
29353
|
return U;
|
|
29375
29354
|
}), p = (U, E) => {
|
|
29376
29355
|
d(U, E);
|
|
29377
|
-
}, v = be(),
|
|
29356
|
+
}, v = be(), V = be(), { formWidth: S } = Df(v), { formWidth: $ } = Df(V, -1), P = be(!1), w = Bf(), k = rg(), R = _e({
|
|
29378
29357
|
get() {
|
|
29379
29358
|
return t.value.options;
|
|
29380
29359
|
},
|
|
@@ -29535,7 +29514,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29535
29514
|
}), (U, E) => {
|
|
29536
29515
|
var ne;
|
|
29537
29516
|
const B = he("el-alert"), ie = he("el-button-group");
|
|
29538
|
-
return q(), F(
|
|
29517
|
+
return q(), F(re, null, [
|
|
29539
29518
|
_(B, {
|
|
29540
29519
|
class: Zt(["statement-alert", { show: g(j) }]),
|
|
29541
29520
|
title: g(X),
|
|
@@ -29544,35 +29523,35 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29544
29523
|
closable: !1,
|
|
29545
29524
|
effect: "dark"
|
|
29546
29525
|
}, null, 8, ["class", "title", "description"]),
|
|
29547
|
-
|
|
29526
|
+
A("section", {
|
|
29548
29527
|
class: "yh-statement-design-container",
|
|
29549
29528
|
ref_key: "designContainerRef",
|
|
29550
29529
|
ref: O
|
|
29551
29530
|
}, [
|
|
29552
|
-
|
|
29553
|
-
|
|
29554
|
-
|
|
29531
|
+
A("div", ST, [
|
|
29532
|
+
A("div", xT, Ue((ne = g(t)) == null ? void 0 : ne.name), 1),
|
|
29533
|
+
A("div", $T, [
|
|
29555
29534
|
_(ie, null, {
|
|
29556
29535
|
default: b(() => [
|
|
29557
|
-
g(i) ? (q(), F(
|
|
29558
|
-
g(i) ? (q(),
|
|
29536
|
+
g(i) ? (q(), F(re, { key: 1 }, [
|
|
29537
|
+
g(i) ? (q(), le(Ji, {
|
|
29559
29538
|
key: 0,
|
|
29560
29539
|
content: "退出预览",
|
|
29561
29540
|
onClick: E[2] || (E[2] = (M) => i.value = !1)
|
|
29562
29541
|
}, {
|
|
29563
29542
|
default: b(() => [
|
|
29564
|
-
|
|
29543
|
+
XT
|
|
29565
29544
|
]),
|
|
29566
29545
|
_: 1
|
|
29567
29546
|
})) : ce("", !0)
|
|
29568
|
-
], 64)) : (q(), F(
|
|
29547
|
+
], 64)) : (q(), F(re, { key: 0 }, [
|
|
29569
29548
|
_(Ji, {
|
|
29570
29549
|
content: "撤回(Ctrl+Z)",
|
|
29571
29550
|
disabled: g(o) <= 0 || g(a) <= 0,
|
|
29572
29551
|
onClick: g(c)
|
|
29573
29552
|
}, {
|
|
29574
29553
|
default: b(() => [
|
|
29575
|
-
|
|
29554
|
+
wT
|
|
29576
29555
|
]),
|
|
29577
29556
|
_: 1
|
|
29578
29557
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -29582,7 +29561,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29582
29561
|
onClick: g(f)
|
|
29583
29562
|
}, {
|
|
29584
29563
|
default: b(() => [
|
|
29585
|
-
|
|
29564
|
+
PT
|
|
29586
29565
|
]),
|
|
29587
29566
|
_: 1
|
|
29588
29567
|
}, 8, ["disabled", "onClick"]),
|
|
@@ -29592,7 +29571,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29592
29571
|
onClick: g(h)
|
|
29593
29572
|
}, {
|
|
29594
29573
|
default: b(() => [
|
|
29595
|
-
|
|
29574
|
+
kT
|
|
29596
29575
|
]),
|
|
29597
29576
|
_: 1
|
|
29598
29577
|
}, 8, ["onClick"]),
|
|
@@ -29601,7 +29580,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29601
29580
|
onClick: E[0] || (E[0] = (M) => P.value = !0)
|
|
29602
29581
|
}, {
|
|
29603
29582
|
default: b(() => [
|
|
29604
|
-
|
|
29583
|
+
TT
|
|
29605
29584
|
]),
|
|
29606
29585
|
_: 1
|
|
29607
29586
|
}),
|
|
@@ -29610,7 +29589,7 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29610
29589
|
onClick: E[1] || (E[1] = (M) => i.value = !0)
|
|
29611
29590
|
}, {
|
|
29612
29591
|
default: b(() => [
|
|
29613
|
-
|
|
29592
|
+
CT
|
|
29614
29593
|
]),
|
|
29615
29594
|
_: 1
|
|
29616
29595
|
})
|
|
@@ -29620,8 +29599,8 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29620
29599
|
})
|
|
29621
29600
|
])
|
|
29622
29601
|
]),
|
|
29623
|
-
|
|
29624
|
-
Ut(
|
|
29602
|
+
A("div", RT, [
|
|
29603
|
+
Ut(A("div", {
|
|
29625
29604
|
class: "statement-form left",
|
|
29626
29605
|
ref_key: "leftFormRef",
|
|
29627
29606
|
ref: v,
|
|
@@ -29629,33 +29608,33 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29629
29608
|
width: `${g(S)}px`
|
|
29630
29609
|
})
|
|
29631
29610
|
}, [
|
|
29632
|
-
|
|
29611
|
+
ZT,
|
|
29633
29612
|
_(g(If), { stretch: "" }, {
|
|
29634
29613
|
default: b(() => [
|
|
29635
29614
|
_(g(Cu), { label: "组件/数据" }, {
|
|
29636
29615
|
default: b(() => [
|
|
29637
|
-
|
|
29638
|
-
|
|
29616
|
+
A("div", VT, [
|
|
29617
|
+
AT,
|
|
29639
29618
|
_(S_, { chartReportList: g(_l) }, null, 8, ["chartReportList"]),
|
|
29640
|
-
_(
|
|
29619
|
+
_(yT)
|
|
29641
29620
|
])
|
|
29642
29621
|
]),
|
|
29643
29622
|
_: 1
|
|
29644
29623
|
}),
|
|
29645
29624
|
_(g(Cu), { label: "组件树" }, {
|
|
29646
29625
|
default: b(() => [
|
|
29647
|
-
(q(!0), F(
|
|
29626
|
+
(q(!0), F(re, null, qe(g(m), (M, C) => (q(), F("div", {
|
|
29648
29627
|
class: Zt(["statement-block-item", { active: M.isActive }]),
|
|
29649
29628
|
onClick: (G) => p(M.option, C)
|
|
29650
29629
|
}, [
|
|
29651
|
-
|
|
29630
|
+
A("div", {
|
|
29652
29631
|
class: Zt(`statement-block-item-icon iconfont ${M.icon}`)
|
|
29653
29632
|
}, null, 2),
|
|
29654
|
-
|
|
29655
|
-
|
|
29656
|
-
|
|
29633
|
+
A("div", ET, [
|
|
29634
|
+
A("div", qT, Ue(M.name), 1),
|
|
29635
|
+
A("div", MT, Ue(M.id), 1)
|
|
29657
29636
|
])
|
|
29658
|
-
], 10,
|
|
29637
|
+
], 10, YT))), 256))
|
|
29659
29638
|
]),
|
|
29660
29639
|
_: 1
|
|
29661
29640
|
})
|
|
@@ -29665,22 +29644,22 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29665
29644
|
], 4), [
|
|
29666
29645
|
[Wt, !g(i)]
|
|
29667
29646
|
]),
|
|
29668
|
-
g(i) ? ce("", !0) : (q(),
|
|
29669
|
-
g(i) ? (q(), F("div",
|
|
29647
|
+
g(i) ? ce("", !0) : (q(), le(g_, { key: 0 })),
|
|
29648
|
+
g(i) ? (q(), F("div", DT, [
|
|
29670
29649
|
_(_g, {
|
|
29671
29650
|
id: g(w).params.id
|
|
29672
29651
|
}, null, 8, ["id"])
|
|
29673
29652
|
])) : ce("", !0),
|
|
29674
|
-
Ut(
|
|
29653
|
+
Ut(A("div", {
|
|
29675
29654
|
class: "statement-form",
|
|
29676
29655
|
ref_key: "rightFormRef",
|
|
29677
|
-
ref:
|
|
29656
|
+
ref: V,
|
|
29678
29657
|
style: Pt({
|
|
29679
29658
|
width: `${g($)}px`
|
|
29680
29659
|
})
|
|
29681
29660
|
}, [
|
|
29682
|
-
|
|
29683
|
-
_(
|
|
29661
|
+
LT,
|
|
29662
|
+
_(Zk)
|
|
29684
29663
|
], 4), [
|
|
29685
29664
|
[Wt, !g(i)]
|
|
29686
29665
|
])
|
|
@@ -29695,6 +29674,6 @@ const PT = { class: "statement-design-top" }, kT = { class: "statement-name" },
|
|
|
29695
29674
|
}
|
|
29696
29675
|
});
|
|
29697
29676
|
export {
|
|
29698
|
-
|
|
29677
|
+
eC as default
|
|
29699
29678
|
};
|
|
29700
|
-
//# sourceMappingURL=StatementDesign-
|
|
29679
|
+
//# sourceMappingURL=StatementDesign-992929b6.mjs.map
|