yh-report 2.3.11 → 2.3.13
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-a5d201fe.mjs → StatementDesign-389f06b4.mjs} +624 -632
- package/{StatementDesign-a5d201fe.mjs.map → StatementDesign-389f06b4.mjs.map} +1 -1
- package/{StatementDetail-bf106b22.mjs → StatementDetail-6a22356c.mjs} +2 -2
- package/{StatementDetail-bf106b22.mjs.map → StatementDetail-6a22356c.mjs.map} +1 -1
- package/{StatementList-98edce15.mjs → StatementList-6ed86ab6.mjs} +2 -2
- package/{StatementList-98edce15.mjs.map → StatementList-6ed86ab6.mjs.map} +1 -1
- package/{index-aea95674.mjs → index-7368d34c.mjs} +1523 -1484
- package/{index-aea95674.mjs.map → index-7368d34c.mjs.map} +1 -1
- package/index.es.js +1 -1
- package/package.json +1 -1
- package/style.css +1 -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 ue, openBlock as E, createElementBlock as H, createElementVNode as V, normalizeStyle as Pt, unref as _, Fragment as oe, renderList as Le, normalizeClass as
|
|
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,
|
|
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 ue, openBlock as E, createElementBlock as H, createElementVNode as V, normalizeStyle as Pt, unref as _, Fragment as oe, renderList as Le, normalizeClass as Zt, createCommentVNode as ce, createBlock as ae, withCtx as b, createVNode as m, createTextVNode as L, 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
|
+
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 De, 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 } from "vue-router";
|
|
4
4
|
import { defineStore as rg, storeToRefs as yt } from "pinia";
|
|
5
|
-
import { C as Oe, b as lg, s as ag, F as
|
|
6
|
-
import { cloneDeep as He, set as
|
|
5
|
+
import { C as Oe, b as lg, s as ag, F as Xe, r as og, c as ug, e as va, f as hg, _ as cg, D as Sa, p as fg, h as Xu, i as Ts, j as Ru, v as dg, k as Nf, l as Og, m as pg, T as _l, n as mg, I as gg, o as _g } from "./index-7368d34c.mjs";
|
|
6
|
+
import { cloneDeep as He, set as Xt, get as Qg } from "lodash-es";
|
|
7
7
|
import "@/libs/api.request.js";
|
|
8
8
|
import "echarts";
|
|
9
9
|
function bg(n) {
|
|
@@ -87,15 +87,15 @@ function vg(n) {
|
|
|
87
87
|
function P(he) {
|
|
88
88
|
lg(he).then(({ id: F, name: I, code: q, description: j, remoteOptions: ee }) => {
|
|
89
89
|
if ($.value.id = F, $.value.name = I, $.value.code = q, $.value.description = j, $.value.options = ee, ee.length && ee.length > 0) {
|
|
90
|
-
ee.forEach((
|
|
91
|
-
|
|
90
|
+
ee.forEach((D) => {
|
|
91
|
+
D.type === "report" && !D.tableConfig && D.config && D.colConfig && D.rowConfig && (D.tableConfig = [], D.tableConfig.push({
|
|
92
92
|
// @ts-ignore
|
|
93
|
-
config: He(
|
|
93
|
+
config: He(D.config),
|
|
94
94
|
// @ts-ignore
|
|
95
|
-
rowConfig: He(
|
|
95
|
+
rowConfig: He(D.rowConfig),
|
|
96
96
|
// @ts-ignore
|
|
97
|
-
colConfig: He(
|
|
98
|
-
}), delete
|
|
97
|
+
colConfig: He(D.colConfig)
|
|
98
|
+
}), delete D.config, delete D.colConfig, delete D.rowConfig, Uf.alert("旧版本报表数据转换完成,即将保存!").then(() => {
|
|
99
99
|
w();
|
|
100
100
|
}));
|
|
101
101
|
});
|
|
@@ -331,13 +331,13 @@ const Ql = {}, vt = function() {
|
|
|
331
331
|
let j = "", ee = "", fe = Oe.TEXT;
|
|
332
332
|
if (q && q.type) {
|
|
333
333
|
fe = q.type;
|
|
334
|
-
let X = q.format && q.format !==
|
|
334
|
+
let X = q.format && q.format !== Xe.TEXT ? ` | ${q.format}` : "";
|
|
335
335
|
switch (q.type) {
|
|
336
336
|
case Oe.TEXT:
|
|
337
337
|
q.text && (j = q.text + X || "");
|
|
338
338
|
break;
|
|
339
339
|
case Oe.FIELD:
|
|
340
|
-
q.data ? j = `\${${q.data}}${X}` : q.format ===
|
|
340
|
+
q.data ? j = `\${${q.data}}${X}` : q.format === Xe.STRING && q.fun && (j = q.fun);
|
|
341
341
|
break;
|
|
342
342
|
case Oe.FUN:
|
|
343
343
|
q.fun && (j = `=${q.fun}${X}`);
|
|
@@ -352,7 +352,7 @@ const Ql = {}, vt = function() {
|
|
|
352
352
|
q.style && (ee = og(q.style));
|
|
353
353
|
}
|
|
354
354
|
q.isRowColCombine;
|
|
355
|
-
let
|
|
355
|
+
let D = {
|
|
356
356
|
text: `${j}`,
|
|
357
357
|
class: `mouse-down-target ${fe} report-drop-target`,
|
|
358
358
|
styleAttr: ee,
|
|
@@ -367,7 +367,7 @@ const Ql = {}, vt = function() {
|
|
|
367
367
|
colSpan: q.colSpan !== void 0 && !isNaN(q.colSpan) ? q.colSpan : 1,
|
|
368
368
|
rowSpan: q.rowSpan !== void 0 && !isNaN(q.rowSpan) ? q.rowSpan : 1
|
|
369
369
|
};
|
|
370
|
-
he && (
|
|
370
|
+
he && (D.class += " active"), N.push(D);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
const { bindData: J, bindDataLoop: ge } = d(C), Se = a.value.rowConfig[C].size;
|
|
@@ -441,13 +441,13 @@ const Ql = {}, vt = function() {
|
|
|
441
441
|
}, null, 8, $g))), 256))
|
|
442
442
|
]),
|
|
443
443
|
(E(!0), H(oe, null, Le(_(g), ({ size: R, cols: Q, bind: T, loop: C, hidden: U }, N) => (E(), H("tr", {
|
|
444
|
-
class:
|
|
444
|
+
class: Zt({
|
|
445
445
|
hidden: U
|
|
446
446
|
}),
|
|
447
447
|
style: Pt(`height: ${R}px;`)
|
|
448
448
|
}, [
|
|
449
449
|
(E(!0), H(oe, null, Le(Q, (K, J) => (E(), H("td", {
|
|
450
|
-
class:
|
|
450
|
+
class: Zt(K.class),
|
|
451
451
|
style: Pt(K.styleAttr),
|
|
452
452
|
title: `${(T || K.bind) && K.type === "head" ? "随数据循环" : K.text}`,
|
|
453
453
|
"data-source": "column",
|
|
@@ -493,7 +493,7 @@ const Ql = {}, vt = function() {
|
|
|
493
493
|
onClick: P[0] || (P[0] = (me) => O(e.tableIndex))
|
|
494
494
|
}, {
|
|
495
495
|
default: b(() => [
|
|
496
|
-
|
|
496
|
+
L(" 主 ")
|
|
497
497
|
]),
|
|
498
498
|
_: 1
|
|
499
499
|
}, 8, ["type"]),
|
|
@@ -504,7 +504,7 @@ const Ql = {}, vt = function() {
|
|
|
504
504
|
onClick: P[1] || (P[1] = (me) => v(e.tableIndex))
|
|
505
505
|
}, {
|
|
506
506
|
default: b(() => [
|
|
507
|
-
|
|
507
|
+
L(" 删 ")
|
|
508
508
|
]),
|
|
509
509
|
_: 1
|
|
510
510
|
}),
|
|
@@ -516,7 +516,7 @@ const Ql = {}, vt = function() {
|
|
|
516
516
|
onClick: P[2] || (P[2] = (me) => Z(e.tableIndex))
|
|
517
517
|
}, {
|
|
518
518
|
default: b(() => [
|
|
519
|
-
|
|
519
|
+
L(" ↑ ")
|
|
520
520
|
]),
|
|
521
521
|
_: 1
|
|
522
522
|
}, 8, ["disabled"]),
|
|
@@ -528,7 +528,7 @@ const Ql = {}, vt = function() {
|
|
|
528
528
|
onClick: P[3] || (P[3] = (me) => S(e.tableIndex))
|
|
529
529
|
}, {
|
|
530
530
|
default: b(() => [
|
|
531
|
-
|
|
531
|
+
L(" ↓ ")
|
|
532
532
|
]),
|
|
533
533
|
_: 1
|
|
534
534
|
}, 8, ["disabled"])
|
|
@@ -537,7 +537,7 @@ const Ql = {}, vt = function() {
|
|
|
537
537
|
_: 1
|
|
538
538
|
})) : ce("", !0)
|
|
539
539
|
], 64)) : ce("", !0),
|
|
540
|
-
|
|
540
|
+
L(" " + Ue(K.text), 1)
|
|
541
541
|
], 14, wg))), 256))
|
|
542
542
|
], 6))), 256))
|
|
543
543
|
], 4)
|
|
@@ -639,7 +639,7 @@ const Ql = {}, vt = function() {
|
|
|
639
639
|
}), (w, k) => {
|
|
640
640
|
const R = ue("el-form-item"), Q = ue("el-form"), T = ue("el-button");
|
|
641
641
|
return E(), H("div", {
|
|
642
|
-
class:
|
|
642
|
+
class: Zt(["yh-statement-table report-drop-target", { active: t.index === _(s) }]),
|
|
643
643
|
style: Pt(_(c)),
|
|
644
644
|
"data-source": "canvas",
|
|
645
645
|
"data-target": "canvas",
|
|
@@ -651,7 +651,7 @@ const Ql = {}, vt = function() {
|
|
|
651
651
|
m(Q, { inline: "" }, {
|
|
652
652
|
default: b(() => [
|
|
653
653
|
(E(!0), H(oe, null, Le(_(f), (C, U) => (E(), ae(R, {
|
|
654
|
-
class:
|
|
654
|
+
class: Zt(["params-desinger-item report-drag-source report-drop-target", { active: U === _(r) }]),
|
|
655
655
|
draggable: "true",
|
|
656
656
|
"data-drag": "params",
|
|
657
657
|
"data-source": "column",
|
|
@@ -791,7 +791,7 @@ const Ql = {}, vt = function() {
|
|
|
791
791
|
return (p, y) => {
|
|
792
792
|
const g = ue("el-button");
|
|
793
793
|
return E(), H("div", {
|
|
794
|
-
class:
|
|
794
|
+
class: Zt(["yh-statement-table report-drop-target", { active: t.index === _(s), suspend: _(o).isSuspend }]),
|
|
795
795
|
"data-source": "canvas",
|
|
796
796
|
"data-target": "canvas",
|
|
797
797
|
"data-index": t.index,
|
|
@@ -943,7 +943,7 @@ const Ql = {}, vt = function() {
|
|
|
943
943
|
return (O, v) => {
|
|
944
944
|
const Z = ue("el-button");
|
|
945
945
|
return E(), H("div", {
|
|
946
|
-
class:
|
|
946
|
+
class: Zt(["yh-statement-table report-drop-target", { active: t.index === _(s) }]),
|
|
947
947
|
"data-source": "canvas",
|
|
948
948
|
"data-target": "canvas",
|
|
949
949
|
"data-index": t.index,
|
|
@@ -1083,9 +1083,9 @@ const d_ = /* @__PURE__ */ it({
|
|
|
1083
1083
|
l.value = C, o.value = null;
|
|
1084
1084
|
let { droparea: K, index: J, table: ge, rindex: Se, cindex: me } = p;
|
|
1085
1085
|
if (K === P && J === T && ge === C && me !== void 0 && me > -1 && Se !== void 0 && Se > -1 && C !== void 0) {
|
|
1086
|
-
let [he, F] = [me, U].sort((fe,
|
|
1086
|
+
let [he, F] = [me, U].sort((fe, D) => fe - D), [I, q] = [Se, N].sort((fe, D) => fe - D), j = r.value.config[q][F];
|
|
1087
1087
|
if (j.rowSpan !== void 0 && j.rowSpan > 1 && (q = q + j.rowSpan - 1), j.colSpan !== void 0 && j.colSpan > 1 && (F = F + j.colSpan - 1), j.colSpan === 0 || j.rowSpan === 0 || j.mergeTarget !== void 0) {
|
|
1088
|
-
let [fe,
|
|
1088
|
+
let [fe, D] = j.mergeTarget, X = r.value.config[fe][D];
|
|
1089
1089
|
if (X) {
|
|
1090
1090
|
const G = X.row + X.rowSpan - 1, Y = X.col + X.colSpan - 1;
|
|
1091
1091
|
q = Math.max(q, G), F = Math.max(F, Y);
|
|
@@ -1093,12 +1093,12 @@ const d_ = /* @__PURE__ */ it({
|
|
|
1093
1093
|
}
|
|
1094
1094
|
let ee = [];
|
|
1095
1095
|
for (let fe = I; fe <= q; fe++)
|
|
1096
|
-
for (let
|
|
1096
|
+
for (let D = he; D <= F; D++)
|
|
1097
1097
|
ee.push({
|
|
1098
1098
|
type: Oe.CELL,
|
|
1099
1099
|
index: T,
|
|
1100
1100
|
table: C,
|
|
1101
|
-
col:
|
|
1101
|
+
col: D,
|
|
1102
1102
|
row: fe
|
|
1103
1103
|
});
|
|
1104
1104
|
l.value = C, a.value = ee;
|
|
@@ -1107,12 +1107,12 @@ const d_ = /* @__PURE__ */ it({
|
|
|
1107
1107
|
switch (K) {
|
|
1108
1108
|
case Oe.COL:
|
|
1109
1109
|
F !== void 0 && I !== void 0 && I > -1 && r.value && r.value.config.forEach((ee, fe) => {
|
|
1110
|
-
for (let
|
|
1110
|
+
for (let D = F; D <= I; D++)
|
|
1111
1111
|
he.push({
|
|
1112
1112
|
type: Oe.CELL,
|
|
1113
1113
|
index: T,
|
|
1114
1114
|
table: C,
|
|
1115
|
-
col:
|
|
1115
|
+
col: D,
|
|
1116
1116
|
row: fe
|
|
1117
1117
|
});
|
|
1118
1118
|
});
|
|
@@ -1231,7 +1231,7 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1231
1231
|
"data-index": s
|
|
1232
1232
|
}, [
|
|
1233
1233
|
V("i", {
|
|
1234
|
-
class:
|
|
1234
|
+
class: Zt(["iconfont", i.icon])
|
|
1235
1235
|
}, null, 2),
|
|
1236
1236
|
V("span", null, Ue(i.name), 1)
|
|
1237
1237
|
], 8, g_))), 256))
|
|
@@ -1419,7 +1419,7 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1419
1419
|
default: b(() => [
|
|
1420
1420
|
m(_(ye), { label: "参数名" }, {
|
|
1421
1421
|
default: b(() => [
|
|
1422
|
-
|
|
1422
|
+
L(Ue(_(t).columnName), 1)
|
|
1423
1423
|
]),
|
|
1424
1424
|
_: 1
|
|
1425
1425
|
})
|
|
@@ -1641,19 +1641,19 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1641
1641
|
placement: "top-start"
|
|
1642
1642
|
}, {
|
|
1643
1643
|
content: b(() => [
|
|
1644
|
-
|
|
1644
|
+
L(" 日期或日期范围开始时间,默认 当前时间 - 时间段,以下假设当前时间为 2025-07-01 12:00:00 "),
|
|
1645
1645
|
y_,
|
|
1646
|
-
|
|
1646
|
+
L(" y/年;Q/季度;M/月;w/周;d/日;h/时;m/分;s/秒;ms/毫秒 "),
|
|
1647
1647
|
v_,
|
|
1648
|
-
|
|
1648
|
+
L(" 传入 h,m,s 就相当于 基于当前时间 - 1小时 2025-07-01 11:00:00 可以调换顺序,可以省略其中的一个部分 "),
|
|
1649
1649
|
S_,
|
|
1650
|
-
|
|
1650
|
+
L(" 传入 h-1 就相当于 前一天的 2025-07-01 10:00:00 "),
|
|
1651
1651
|
x_,
|
|
1652
|
-
|
|
1652
|
+
L(" 传入 h+1 就相当于 前一天的 2025-07-01 12:00:00 "),
|
|
1653
1653
|
$_,
|
|
1654
|
-
|
|
1654
|
+
L(" 传入 h+1,m+30 就相当于 2025-07-01 12:30:00 "),
|
|
1655
1655
|
w_,
|
|
1656
|
-
|
|
1656
|
+
L(" 传入 1,30,0 就相当于 2025-07-01 01:30:00 ")
|
|
1657
1657
|
]),
|
|
1658
1658
|
default: b(() => [
|
|
1659
1659
|
P_
|
|
@@ -1682,9 +1682,9 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1682
1682
|
placement: "top-start"
|
|
1683
1683
|
}, {
|
|
1684
1684
|
content: b(() => [
|
|
1685
|
-
|
|
1685
|
+
L(" 日期或日期范围结束时间,默认 基于当前时间 "),
|
|
1686
1686
|
k_,
|
|
1687
|
-
|
|
1687
|
+
L(" 规则同上 ")
|
|
1688
1688
|
]),
|
|
1689
1689
|
default: b(() => [
|
|
1690
1690
|
T_
|
|
@@ -1714,19 +1714,19 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1714
1714
|
placement: "top-start"
|
|
1715
1715
|
}, {
|
|
1716
1716
|
content: b(() => [
|
|
1717
|
-
|
|
1717
|
+
L(" 日期或日期范围开始时间,默认 00:00:00 "),
|
|
1718
1718
|
C_,
|
|
1719
|
-
|
|
1719
|
+
L(" y/年;Q/季度;M/月;w/周;d/日;h/时;m/分;s/秒;ms/毫秒 "),
|
|
1720
1720
|
X_,
|
|
1721
|
-
|
|
1721
|
+
L(" 传入 h,m,s 就相当于 00:00:00 可以调换顺序,可以省略其中的一个部分 "),
|
|
1722
1722
|
R_,
|
|
1723
|
-
|
|
1723
|
+
L(" 传入 h-1 就相当于 前一天的 23:00:00 "),
|
|
1724
1724
|
Z_,
|
|
1725
|
-
|
|
1725
|
+
L(" 传入 h+1 就相当于 前一天的 01:00:00 "),
|
|
1726
1726
|
V_,
|
|
1727
|
-
|
|
1727
|
+
L(" 传入 h+1,m+30 就相当于 01:30:00 "),
|
|
1728
1728
|
A_,
|
|
1729
|
-
|
|
1729
|
+
L(" 传入 1,30,0 就相当于 01:30:00 ")
|
|
1730
1730
|
]),
|
|
1731
1731
|
default: b(() => [
|
|
1732
1732
|
Y_
|
|
@@ -1755,9 +1755,9 @@ const m_ = { class: "chart-series-wrapper" }, g_ = ["data-drag", "data-index"],
|
|
|
1755
1755
|
placement: "top-start"
|
|
1756
1756
|
}, {
|
|
1757
1757
|
content: b(() => [
|
|
1758
|
-
|
|
1758
|
+
L(" 日期或日期范围结束时间,默认 23:59:59 "),
|
|
1759
1759
|
E_,
|
|
1760
|
-
|
|
1760
|
+
L(" 规则同上 ")
|
|
1761
1761
|
]),
|
|
1762
1762
|
default: b(() => [
|
|
1763
1763
|
q_
|
|
@@ -3585,9 +3585,9 @@ const e0 = [];
|
|
|
3585
3585
|
function an(n) {
|
|
3586
3586
|
return n == null ? e0 : Array.isArray(n) ? n : [n];
|
|
3587
3587
|
}
|
|
3588
|
-
var
|
|
3588
|
+
var Me = /* @__PURE__ */ function(n) {
|
|
3589
3589
|
return n[n.Word = 0] = "Word", n[n.Space = 1] = "Space", n[n.Other = 2] = "Other", n;
|
|
3590
|
-
}(
|
|
3590
|
+
}(Me || (Me = {}));
|
|
3591
3591
|
const t0 = /[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;
|
|
3592
3592
|
let Ra;
|
|
3593
3593
|
try {
|
|
@@ -3607,13 +3607,13 @@ function i0(n) {
|
|
|
3607
3607
|
function n0(n) {
|
|
3608
3608
|
return (e) => {
|
|
3609
3609
|
if (!/\S/.test(e))
|
|
3610
|
-
return
|
|
3610
|
+
return Me.Space;
|
|
3611
3611
|
if (i0(e))
|
|
3612
|
-
return
|
|
3612
|
+
return Me.Word;
|
|
3613
3613
|
for (let t = 0; t < n.length; t++)
|
|
3614
3614
|
if (e.indexOf(n[t]) > -1)
|
|
3615
|
-
return
|
|
3616
|
-
return
|
|
3615
|
+
return Me.Word;
|
|
3616
|
+
return Me.Other;
|
|
3617
3617
|
};
|
|
3618
3618
|
}
|
|
3619
3619
|
class Pe {
|
|
@@ -3869,13 +3869,13 @@ class Pe {
|
|
|
3869
3869
|
let { text: t, from: i, length: s } = this.doc.lineAt(e), r = this.charCategorizer(e), l = e - i, a = e - i;
|
|
3870
3870
|
for (; l > 0; ) {
|
|
3871
3871
|
let o = tt(t, l, !1);
|
|
3872
|
-
if (r(t.slice(o, l)) !=
|
|
3872
|
+
if (r(t.slice(o, l)) != Me.Word)
|
|
3873
3873
|
break;
|
|
3874
3874
|
l = o;
|
|
3875
3875
|
}
|
|
3876
3876
|
for (; a < s; ) {
|
|
3877
3877
|
let o = tt(t, a);
|
|
3878
|
-
if (r(t.slice(a, o)) !=
|
|
3878
|
+
if (r(t.slice(a, o)) != Me.Word)
|
|
3879
3879
|
break;
|
|
3880
3880
|
a = o;
|
|
3881
3881
|
}
|
|
@@ -4691,7 +4691,7 @@ function o0(n) {
|
|
|
4691
4691
|
var e = l0 && n.metaKey && n.shiftKey && !n.ctrlKey && !n.altKey || a0 && n.shiftKey && n.key && n.key.length == 1 || n.key == "Unidentified", t = !e && n.key || (n.shiftKey ? es : xi)[n.keyCode] || n.key || "Unidentified";
|
|
4692
4692
|
return t == "Esc" && (t = "Escape"), t == "Del" && (t = "Delete"), t == "Left" && (t = "ArrowLeft"), t == "Up" && (t = "ArrowUp"), t == "Right" && (t = "ArrowRight"), t == "Down" && (t = "ArrowDown"), t;
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function Re() {
|
|
4695
4695
|
var n = arguments[0];
|
|
4696
4696
|
typeof n == "string" && (n = document.createElement(n));
|
|
4697
4697
|
var e = 1, t = arguments[1];
|
|
@@ -4984,7 +4984,7 @@ class st {
|
|
|
4984
4984
|
}
|
|
4985
4985
|
}
|
|
4986
4986
|
const Zo = [];
|
|
4987
|
-
class
|
|
4987
|
+
class Ae {
|
|
4988
4988
|
constructor() {
|
|
4989
4989
|
this.parent = null, this.dom = null, this.flags = 2;
|
|
4990
4990
|
}
|
|
@@ -5015,7 +5015,7 @@ class Ve {
|
|
|
5015
5015
|
for (let l of this.children) {
|
|
5016
5016
|
if (l.flags & 7) {
|
|
5017
5017
|
if (!l.dom && (r = s ? s.nextSibling : i.firstChild)) {
|
|
5018
|
-
let a =
|
|
5018
|
+
let a = Ae.get(r);
|
|
5019
5019
|
(!a || !a.parent && a.canReuseDOM(l)) && l.reuseDOM(r);
|
|
5020
5020
|
}
|
|
5021
5021
|
l.sync(e, t), l.flags &= -8;
|
|
@@ -5051,7 +5051,7 @@ class Ve {
|
|
|
5051
5051
|
}
|
|
5052
5052
|
if (i == this.dom.firstChild)
|
|
5053
5053
|
return 0;
|
|
5054
|
-
for (; i && !
|
|
5054
|
+
for (; i && !Ae.get(i); )
|
|
5055
5055
|
i = i.nextSibling;
|
|
5056
5056
|
if (!i)
|
|
5057
5057
|
return this.length;
|
|
@@ -5164,7 +5164,7 @@ class Ve {
|
|
|
5164
5164
|
this.parent = null;
|
|
5165
5165
|
}
|
|
5166
5166
|
}
|
|
5167
|
-
|
|
5167
|
+
Ae.prototype.breakAfter = 0;
|
|
5168
5168
|
function Bu(n) {
|
|
5169
5169
|
let e = n.nextSibling;
|
|
5170
5170
|
return n.parentNode.removeChild(n), e;
|
|
@@ -5225,7 +5225,7 @@ var re = {
|
|
|
5225
5225
|
tabSize: Da.documentElement.style.tabSize != null ? "tab-size" : "-moz-tab-size"
|
|
5226
5226
|
};
|
|
5227
5227
|
const p0 = 256;
|
|
5228
|
-
class
|
|
5228
|
+
class At extends Ae {
|
|
5229
5229
|
constructor(e) {
|
|
5230
5230
|
super(), this.text = e;
|
|
5231
5231
|
}
|
|
@@ -5242,10 +5242,10 @@ class Vt extends Ve {
|
|
|
5242
5242
|
e.nodeType == 3 && this.createDOM(e);
|
|
5243
5243
|
}
|
|
5244
5244
|
merge(e, t, i) {
|
|
5245
|
-
return this.flags & 8 || i && (!(i instanceof
|
|
5245
|
+
return this.flags & 8 || i && (!(i instanceof At) || this.length - (t - e) + i.length > p0 || i.flags & 8) ? !1 : (this.text = this.text.slice(0, e) + (i ? i.text : "") + this.text.slice(t), this.markDirty(), !0);
|
|
5246
5246
|
}
|
|
5247
5247
|
split(e) {
|
|
5248
|
-
let t = new
|
|
5248
|
+
let t = new At(this.text.slice(e));
|
|
5249
5249
|
return this.text = this.text.slice(0, e), this.markDirty(), t.flags |= this.flags & 8, t;
|
|
5250
5250
|
}
|
|
5251
5251
|
localPosFromDOM(e, t) {
|
|
@@ -5261,7 +5261,7 @@ class Vt extends Ve {
|
|
|
5261
5261
|
return m0(this.dom, e, t);
|
|
5262
5262
|
}
|
|
5263
5263
|
}
|
|
5264
|
-
class hi extends
|
|
5264
|
+
class hi extends Ae {
|
|
5265
5265
|
constructor(e, t = [], i = 0) {
|
|
5266
5266
|
super(), this.mark = e, this.children = t, this.length = i;
|
|
5267
5267
|
for (let s of t)
|
|
@@ -5312,7 +5312,7 @@ function m0(n, e, t) {
|
|
|
5312
5312
|
let o = a[(l ? l < 0 : t >= 0) ? 0 : a.length - 1];
|
|
5313
5313
|
return re.safari && !l && o.width == 0 && (o = Array.prototype.find.call(a, (u) => u.width) || o), l ? il(o, l < 0) : o || null;
|
|
5314
5314
|
}
|
|
5315
|
-
class bi extends
|
|
5315
|
+
class bi extends Ae {
|
|
5316
5316
|
static create(e, t, i) {
|
|
5317
5317
|
return new bi(e, t, i);
|
|
5318
5318
|
}
|
|
@@ -5381,7 +5381,7 @@ class bi extends Ve {
|
|
|
5381
5381
|
super.destroy(), this.dom && this.widget.destroy(this.dom);
|
|
5382
5382
|
}
|
|
5383
5383
|
}
|
|
5384
|
-
class On extends
|
|
5384
|
+
class On extends Ae {
|
|
5385
5385
|
constructor(e) {
|
|
5386
5386
|
super(), this.side = e;
|
|
5387
5387
|
}
|
|
@@ -5425,7 +5425,7 @@ class On extends Ve {
|
|
|
5425
5425
|
return !0;
|
|
5426
5426
|
}
|
|
5427
5427
|
}
|
|
5428
|
-
|
|
5428
|
+
At.prototype.children = bi.prototype.children = On.prototype.children = Zo;
|
|
5429
5429
|
function $d(n, e) {
|
|
5430
5430
|
let t = n.dom, { children: i } = n, s = 0;
|
|
5431
5431
|
for (let r = 0; s < i.length; s++) {
|
|
@@ -5732,7 +5732,7 @@ function hr(n, e, t, i = 0) {
|
|
|
5732
5732
|
let s = t.length - 1;
|
|
5733
5733
|
s >= 0 && t[s] + i >= n ? t[s] = Math.max(t[s], e) : t.push(n, e);
|
|
5734
5734
|
}
|
|
5735
|
-
class Ie extends
|
|
5735
|
+
class Ie extends Ae {
|
|
5736
5736
|
constructor() {
|
|
5737
5737
|
super(...arguments), this.children = [], this.length = 0, this.prevAttrs = void 0, this.attrs = null, this.breakAfter = 0;
|
|
5738
5738
|
}
|
|
@@ -5781,9 +5781,9 @@ class Ie extends Ve {
|
|
|
5781
5781
|
var i;
|
|
5782
5782
|
this.dom ? this.flags & 4 && (md(this.dom), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0) : (this.setDOM(document.createElement("div")), this.dom.className = "cm-line", this.prevAttrs = this.attrs ? null : void 0), this.prevAttrs !== void 0 && (Wa(this.dom, this.prevAttrs, this.attrs), this.dom.classList.add("cm-line"), this.prevAttrs = void 0), super.sync(e, t);
|
|
5783
5783
|
let s = this.dom.lastChild;
|
|
5784
|
-
for (; s &&
|
|
5784
|
+
for (; s && Ae.get(s) instanceof hi; )
|
|
5785
5785
|
s = s.lastChild;
|
|
5786
|
-
if (!s || !this.length || s.nodeName != "BR" && ((i =
|
|
5786
|
+
if (!s || !this.length || s.nodeName != "BR" && ((i = Ae.get(s)) === null || i === void 0 ? void 0 : i.isEditable) == !1 && (!re.ios || !this.children.some((r) => r instanceof At))) {
|
|
5787
5787
|
let r = document.createElement("BR");
|
|
5788
5788
|
r.cmIgnore = !0, this.dom.appendChild(r);
|
|
5789
5789
|
}
|
|
@@ -5793,7 +5793,7 @@ class Ie extends Ve {
|
|
|
5793
5793
|
return null;
|
|
5794
5794
|
let e = 0, t;
|
|
5795
5795
|
for (let i of this.children) {
|
|
5796
|
-
if (!(i instanceof
|
|
5796
|
+
if (!(i instanceof At) || /[^ -~]/.test(i.text))
|
|
5797
5797
|
return null;
|
|
5798
5798
|
let s = is(i.dom);
|
|
5799
5799
|
if (s.length != 1)
|
|
@@ -5837,7 +5837,7 @@ class Ie extends Ve {
|
|
|
5837
5837
|
return null;
|
|
5838
5838
|
}
|
|
5839
5839
|
}
|
|
5840
|
-
class li extends
|
|
5840
|
+
class li extends Ae {
|
|
5841
5841
|
constructor(e, t, i) {
|
|
5842
5842
|
super(), this.widget = e, this.length = t, this.deco = i, this.breakAfter = 0, this.prevWidget = null;
|
|
5843
5843
|
}
|
|
@@ -5956,7 +5956,7 @@ class Gn {
|
|
|
5956
5956
|
512
|
|
5957
5957
|
/* T.Chunk */
|
|
5958
5958
|
);
|
|
5959
|
-
this.flushBuffer(t.slice(t.length - i)), this.getLine().append(Zs(new
|
|
5959
|
+
this.flushBuffer(t.slice(t.length - i)), this.getLine().append(Zs(new At(this.text.slice(this.textOff, this.textOff + s)), t), i), this.atCursorPos = !0, this.textOff += s, e -= s, i = 0;
|
|
5960
5960
|
}
|
|
5961
5961
|
}
|
|
5962
5962
|
span(e, t, i, s) {
|
|
@@ -6010,17 +6010,17 @@ class pn extends Oi {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
pn.inline = /* @__PURE__ */ new pn("span");
|
|
6012
6012
|
pn.block = /* @__PURE__ */ new pn("div");
|
|
6013
|
-
var
|
|
6013
|
+
var qe = /* @__PURE__ */ function(n) {
|
|
6014
6014
|
return n[n.LTR = 0] = "LTR", n[n.RTL = 1] = "RTL", n;
|
|
6015
|
-
}(
|
|
6016
|
-
const Ii =
|
|
6015
|
+
}(qe || (qe = {}));
|
|
6016
|
+
const Ii = qe.LTR, Vo = qe.RTL;
|
|
6017
6017
|
function Td(n) {
|
|
6018
6018
|
let e = [];
|
|
6019
6019
|
for (let t = 0; t < n.length; t++)
|
|
6020
6020
|
e.push(1 << +n[t]);
|
|
6021
6021
|
return e;
|
|
6022
6022
|
}
|
|
6023
|
-
const y0 = /* @__PURE__ */ Td("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), v0 = /* @__PURE__ */ Td("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Ba = /* @__PURE__ */ Object.create(null),
|
|
6023
|
+
const y0 = /* @__PURE__ */ Td("88888888888888888888888888888888888666888888787833333333337888888000000000000000000000000008888880000000000000000000000000088888888888888888888888888888888888887866668888088888663380888308888800000000000000000000000800000000000000000000000000000008"), v0 = /* @__PURE__ */ Td("4444448826627288999999999992222222222222222222222222222222222222222222222229999999999999999999994444444444644222822222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222999999949999999229989999223333333333"), Ba = /* @__PURE__ */ Object.create(null), Mt = [];
|
|
6024
6024
|
for (let n of ["()", "[]", "{}"]) {
|
|
6025
6025
|
let e = /* @__PURE__ */ n.charCodeAt(0), t = /* @__PURE__ */ n.charCodeAt(1);
|
|
6026
6026
|
Ba[e] = t, Ba[t] = -e;
|
|
@@ -6082,28 +6082,28 @@ function Xd(n, e) {
|
|
|
6082
6082
|
}
|
|
6083
6083
|
return !0;
|
|
6084
6084
|
}
|
|
6085
|
-
const
|
|
6085
|
+
const Ze = [];
|
|
6086
6086
|
function x0(n, e, t, i, s) {
|
|
6087
6087
|
for (let r = 0; r <= i.length; r++) {
|
|
6088
6088
|
let l = r ? i[r - 1].to : e, a = r < i.length ? i[r].from : t, o = r ? 256 : s;
|
|
6089
6089
|
for (let u = l, h = o, c = o; u < a; u++) {
|
|
6090
6090
|
let f = Cd(n.charCodeAt(u));
|
|
6091
|
-
f == 512 ? f = h : f == 8 && c == 4 && (f = 16),
|
|
6091
|
+
f == 512 ? f = h : f == 8 && c == 4 && (f = 16), Ze[u] = f == 4 ? 2 : f, f & 7 && (c = f), h = f;
|
|
6092
6092
|
}
|
|
6093
6093
|
for (let u = l, h = o, c = o; u < a; u++) {
|
|
6094
|
-
let f =
|
|
6094
|
+
let f = Ze[u];
|
|
6095
6095
|
if (f == 128)
|
|
6096
|
-
u < a - 1 && h ==
|
|
6096
|
+
u < a - 1 && h == Ze[u + 1] && h & 24 ? f = Ze[u] = h : Ze[u] = 256;
|
|
6097
6097
|
else if (f == 64) {
|
|
6098
6098
|
let d = u + 1;
|
|
6099
|
-
for (; d < a &&
|
|
6099
|
+
for (; d < a && Ze[d] == 64; )
|
|
6100
6100
|
d++;
|
|
6101
|
-
let p = u && h == 8 || d < t &&
|
|
6101
|
+
let p = u && h == 8 || d < t && Ze[d] == 8 ? c == 1 ? 1 : 8 : 256;
|
|
6102
6102
|
for (let y = u; y < d; y++)
|
|
6103
|
-
|
|
6103
|
+
Ze[y] = p;
|
|
6104
6104
|
u = d - 1;
|
|
6105
6105
|
} else
|
|
6106
|
-
f == 8 && c == 1 && (
|
|
6106
|
+
f == 8 && c == 1 && (Ze[u] = 1);
|
|
6107
6107
|
h = f, f & 7 && (c = f);
|
|
6108
6108
|
}
|
|
6109
6109
|
}
|
|
@@ -6116,29 +6116,29 @@ function $0(n, e, t, i, s) {
|
|
|
6116
6116
|
if (d = Ba[f = n.charCodeAt(c)])
|
|
6117
6117
|
if (d < 0) {
|
|
6118
6118
|
for (let y = a - 3; y >= 0; y -= 3)
|
|
6119
|
-
if (
|
|
6120
|
-
let g =
|
|
6121
|
-
O && (
|
|
6119
|
+
if (Mt[y + 1] == -d) {
|
|
6120
|
+
let g = Mt[y + 2], O = g & 2 ? s : g & 4 ? g & 1 ? r : s : 0;
|
|
6121
|
+
O && (Ze[c] = Ze[Mt[y]] = O), a = y;
|
|
6122
6122
|
break;
|
|
6123
6123
|
}
|
|
6124
6124
|
} else {
|
|
6125
|
-
if (
|
|
6125
|
+
if (Mt.length == 189)
|
|
6126
6126
|
break;
|
|
6127
|
-
|
|
6127
|
+
Mt[a++] = c, Mt[a++] = f, Mt[a++] = o;
|
|
6128
6128
|
}
|
|
6129
|
-
else if ((p =
|
|
6129
|
+
else if ((p = Ze[c]) == 2 || p == 1) {
|
|
6130
6130
|
let y = p == s;
|
|
6131
6131
|
o = y ? 0 : 1;
|
|
6132
6132
|
for (let g = a - 3; g >= 0; g -= 3) {
|
|
6133
|
-
let O =
|
|
6133
|
+
let O = Mt[g + 2];
|
|
6134
6134
|
if (O & 2)
|
|
6135
6135
|
break;
|
|
6136
6136
|
if (y)
|
|
6137
|
-
|
|
6137
|
+
Mt[g + 2] |= 2;
|
|
6138
6138
|
else {
|
|
6139
6139
|
if (O & 4)
|
|
6140
6140
|
break;
|
|
6141
|
-
|
|
6141
|
+
Mt[g + 2] |= 4;
|
|
6142
6142
|
}
|
|
6143
6143
|
}
|
|
6144
6144
|
}
|
|
@@ -6148,7 +6148,7 @@ function w0(n, e, t, i) {
|
|
|
6148
6148
|
for (let s = 0, r = i; s <= t.length; s++) {
|
|
6149
6149
|
let l = s ? t[s - 1].to : n, a = s < t.length ? t[s].from : e;
|
|
6150
6150
|
for (let o = l; o < a; ) {
|
|
6151
|
-
let u =
|
|
6151
|
+
let u = Ze[o];
|
|
6152
6152
|
if (u == 256) {
|
|
6153
6153
|
let h = o + 1;
|
|
6154
6154
|
for (; ; )
|
|
@@ -6156,13 +6156,13 @@ function w0(n, e, t, i) {
|
|
|
6156
6156
|
if (s == t.length)
|
|
6157
6157
|
break;
|
|
6158
6158
|
h = t[s++].to, a = s < t.length ? t[s].from : e;
|
|
6159
|
-
} else if (
|
|
6159
|
+
} else if (Ze[h] == 256)
|
|
6160
6160
|
h++;
|
|
6161
6161
|
else
|
|
6162
6162
|
break;
|
|
6163
|
-
let c = r == 1, f = (h < e ?
|
|
6163
|
+
let c = r == 1, f = (h < e ? Ze[h] : i) == 1, d = c == f ? c ? 1 : 2 : i;
|
|
6164
6164
|
for (let p = h, y = s, g = y ? t[y - 1].to : n; p > o; )
|
|
6165
|
-
p == g && (p = t[--y].from, g = y ? t[y - 1].to : n),
|
|
6165
|
+
p == g && (p = t[--y].from, g = y ? t[y - 1].to : n), Ze[--p] = d;
|
|
6166
6166
|
o = h;
|
|
6167
6167
|
} else
|
|
6168
6168
|
r = u, o++;
|
|
@@ -6175,7 +6175,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6175
6175
|
for (let o = e, u = 0; o < t; ) {
|
|
6176
6176
|
let h = !0, c = !1;
|
|
6177
6177
|
if (u == r.length || o < r[u].from) {
|
|
6178
|
-
let y =
|
|
6178
|
+
let y = Ze[o];
|
|
6179
6179
|
y != a && (h = !1, c = y == 16);
|
|
6180
6180
|
}
|
|
6181
6181
|
let f = !h && a == 1 ? [] : null, d = h ? i : i + 1, p = o;
|
|
@@ -6192,7 +6192,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6192
6192
|
if (O < r.length && r[O].from == g)
|
|
6193
6193
|
g = r[O++].to;
|
|
6194
6194
|
else {
|
|
6195
|
-
if (
|
|
6195
|
+
if (Ze[g] == a)
|
|
6196
6196
|
break e;
|
|
6197
6197
|
break;
|
|
6198
6198
|
}
|
|
@@ -6206,7 +6206,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
p = y.to;
|
|
6208
6208
|
} else {
|
|
6209
|
-
if (p == t || (h ?
|
|
6209
|
+
if (p == t || (h ? Ze[p] != a : Ze[p] == a))
|
|
6210
6210
|
break;
|
|
6211
6211
|
p++;
|
|
6212
6212
|
}
|
|
@@ -6216,7 +6216,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6216
6216
|
for (let o = t, u = r.length; o > e; ) {
|
|
6217
6217
|
let h = !0, c = !1;
|
|
6218
6218
|
if (!u || o > r[u - 1].to) {
|
|
6219
|
-
let y =
|
|
6219
|
+
let y = Ze[o - 1];
|
|
6220
6220
|
y != a && (h = !1, c = y == 16);
|
|
6221
6221
|
}
|
|
6222
6222
|
let f = !h && a == 1 ? [] : null, d = h ? i : i + 1, p = o;
|
|
@@ -6233,7 +6233,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6233
6233
|
if (O && r[O - 1].to == g)
|
|
6234
6234
|
g = r[--O].from;
|
|
6235
6235
|
else {
|
|
6236
|
-
if (
|
|
6236
|
+
if (Ze[g - 1] == a)
|
|
6237
6237
|
break e;
|
|
6238
6238
|
break;
|
|
6239
6239
|
}
|
|
@@ -6247,7 +6247,7 @@ function Na(n, e, t, i, s, r, l) {
|
|
|
6247
6247
|
}
|
|
6248
6248
|
p = y.from;
|
|
6249
6249
|
} else {
|
|
6250
|
-
if (p == e || (h ?
|
|
6250
|
+
if (p == e || (h ? Ze[p - 1] != a : Ze[p - 1] == a))
|
|
6251
6251
|
break;
|
|
6252
6252
|
p--;
|
|
6253
6253
|
}
|
|
@@ -6264,8 +6264,8 @@ function P0(n, e, t) {
|
|
|
6264
6264
|
if (e == Ii && !t.length && !S0.test(n))
|
|
6265
6265
|
return Rd(n.length);
|
|
6266
6266
|
if (t.length)
|
|
6267
|
-
for (; n.length >
|
|
6268
|
-
|
|
6267
|
+
for (; n.length > Ze.length; )
|
|
6268
|
+
Ze[Ze.length] = 256;
|
|
6269
6269
|
let i = [], s = e == Ii ? 0 : 1;
|
|
6270
6270
|
return ja(n, s, s, t, 0, n.length, i), i;
|
|
6271
6271
|
}
|
|
@@ -6546,7 +6546,7 @@ class wr {
|
|
|
6546
6546
|
return this.flags == 0 && this.transactions.length == 0;
|
|
6547
6547
|
}
|
|
6548
6548
|
}
|
|
6549
|
-
class Ku extends
|
|
6549
|
+
class Ku extends Ae {
|
|
6550
6550
|
get length() {
|
|
6551
6551
|
return this.view.state.doc.length;
|
|
6552
6552
|
}
|
|
@@ -6615,7 +6615,7 @@ class Ku extends Ve {
|
|
|
6615
6615
|
i.is(Ud) && (this.editContextFormatting = i.value);
|
|
6616
6616
|
}
|
|
6617
6617
|
compositionView(e) {
|
|
6618
|
-
let t = new
|
|
6618
|
+
let t = new At(e.text.nodeValue);
|
|
6619
6619
|
t.flags |= 8;
|
|
6620
6620
|
for (let { deco: s } of e.marks)
|
|
6621
6621
|
t = new hi(s, [t], t.length);
|
|
@@ -6628,7 +6628,7 @@ class Ku extends Ve {
|
|
|
6628
6628
|
(o) => o.flags & 7
|
|
6629
6629
|
/* ViewFlag.Dirty */
|
|
6630
6630
|
) ? 1 : 0), this.markedForComposition.add(l);
|
|
6631
|
-
let a =
|
|
6631
|
+
let a = Ae.get(r);
|
|
6632
6632
|
a && a != l && (a.dom = null), l.setDOM(r);
|
|
6633
6633
|
}, i = this.childPos(e.range.fromB, 1), s = this.children[i.i];
|
|
6634
6634
|
t(e.line, s);
|
|
@@ -6708,18 +6708,18 @@ class Ku extends Ve {
|
|
|
6708
6708
|
if (e.node != t)
|
|
6709
6709
|
return e;
|
|
6710
6710
|
for (let s = e.offset; !i && s < t.childNodes.length; s++) {
|
|
6711
|
-
let r =
|
|
6711
|
+
let r = Ae.get(t.childNodes[s]);
|
|
6712
6712
|
r instanceof Ie && (i = r.domAtPos(0));
|
|
6713
6713
|
}
|
|
6714
6714
|
for (let s = e.offset - 1; !i && s >= 0; s--) {
|
|
6715
|
-
let r =
|
|
6715
|
+
let r = Ae.get(t.childNodes[s]);
|
|
6716
6716
|
r instanceof Ie && (i = r.domAtPos(r.length));
|
|
6717
6717
|
}
|
|
6718
6718
|
return i ? new st(i.node, i.offset, !0) : e;
|
|
6719
6719
|
}
|
|
6720
6720
|
nearest(e) {
|
|
6721
6721
|
for (let t = e; t; ) {
|
|
6722
|
-
let i =
|
|
6722
|
+
let i = Ae.get(t);
|
|
6723
6723
|
if (i && i.rootView == this)
|
|
6724
6724
|
return i;
|
|
6725
6725
|
t = t.parentNode;
|
|
@@ -6773,7 +6773,7 @@ class Ku extends Ve {
|
|
|
6773
6773
|
}
|
|
6774
6774
|
i = o;
|
|
6775
6775
|
}
|
|
6776
|
-
if (!(s instanceof
|
|
6776
|
+
if (!(s instanceof At))
|
|
6777
6777
|
return null;
|
|
6778
6778
|
let r = tt(s.text, i);
|
|
6779
6779
|
if (r == i)
|
|
@@ -6787,7 +6787,7 @@ class Ku extends Ve {
|
|
|
6787
6787
|
return null;
|
|
6788
6788
|
}
|
|
6789
6789
|
measureVisibleLineHeights(e) {
|
|
6790
|
-
let t = [], { from: i, to: s } = e, r = this.view.contentDOM.clientWidth, l = r > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, a = -1, o = this.view.textDirection ==
|
|
6790
|
+
let t = [], { from: i, to: s } = e, r = this.view.contentDOM.clientWidth, l = r > Math.max(this.view.scrollDOM.clientWidth, this.minWidth) + 1, a = -1, o = this.view.textDirection == qe.LTR;
|
|
6791
6791
|
for (let u = 0, h = 0; h < this.children.length; h++) {
|
|
6792
6792
|
let c = this.children[h], f = u + c.length;
|
|
6793
6793
|
if (f > s)
|
|
@@ -6808,7 +6808,7 @@ class Ku extends Ve {
|
|
|
6808
6808
|
}
|
|
6809
6809
|
textDirectionAt(e) {
|
|
6810
6810
|
let { i: t } = this.childPos(e, 1);
|
|
6811
|
-
return getComputedStyle(this.children[t].dom).direction == "rtl" ?
|
|
6811
|
+
return getComputedStyle(this.children[t].dom).direction == "rtl" ? qe.RTL : qe.LTR;
|
|
6812
6812
|
}
|
|
6813
6813
|
measureTextSize() {
|
|
6814
6814
|
for (let r of this.children)
|
|
@@ -6889,7 +6889,7 @@ class Ku extends Ve {
|
|
|
6889
6889
|
right: i.right + r.right,
|
|
6890
6890
|
bottom: i.bottom + r.bottom
|
|
6891
6891
|
}, { offsetWidth: a, offsetHeight: o } = this.view.scrollDOM;
|
|
6892
|
-
h0(this.view.scrollDOM, l, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, a), -a), Math.max(Math.min(e.yMargin, o), -o), this.view.textDirection ==
|
|
6892
|
+
h0(this.view.scrollDOM, l, t.head < t.anchor ? -1 : 1, e.x, e.y, Math.max(Math.min(e.xMargin, a), -a), Math.max(Math.min(e.yMargin, o), -o), this.view.textDirection == qe.LTR);
|
|
6893
6893
|
}
|
|
6894
6894
|
}
|
|
6895
6895
|
function X0(n) {
|
|
@@ -6901,12 +6901,12 @@ function jd(n, e) {
|
|
|
6901
6901
|
return null;
|
|
6902
6902
|
let i = _d(t.focusNode, t.focusOffset), s = Qd(t.focusNode, t.focusOffset), r = i || s;
|
|
6903
6903
|
if (s && i && s.node != i.node) {
|
|
6904
|
-
let a =
|
|
6905
|
-
if (!a || a instanceof
|
|
6904
|
+
let a = Ae.get(s.node);
|
|
6905
|
+
if (!a || a instanceof At && a.text != s.node.nodeValue)
|
|
6906
6906
|
r = s;
|
|
6907
6907
|
else if (n.docView.lastCompositionAfterCursor) {
|
|
6908
|
-
let o =
|
|
6909
|
-
!o || o instanceof
|
|
6908
|
+
let o = Ae.get(i.node);
|
|
6909
|
+
!o || o instanceof At && o.text != i.node.nodeValue || (r = s);
|
|
6910
6910
|
}
|
|
6911
6911
|
}
|
|
6912
6912
|
if (n.docView.lastCompositionAfterCursor = r != i, !r)
|
|
@@ -6923,7 +6923,7 @@ function R0(n, e, t) {
|
|
|
6923
6923
|
return null;
|
|
6924
6924
|
let o = e.invertedDesc, u = new kt(o.mapPos(r), o.mapPos(l), r, l), h = [];
|
|
6925
6925
|
for (let c = s.parentNode; ; c = c.parentNode) {
|
|
6926
|
-
let f =
|
|
6926
|
+
let f = Ae.get(c);
|
|
6927
6927
|
if (f instanceof hi)
|
|
6928
6928
|
h.push({ node: c, deco: f.mark });
|
|
6929
6929
|
else {
|
|
@@ -7163,7 +7163,7 @@ function U0(n, e, t, i) {
|
|
|
7163
7163
|
let s = Ha(n, e.head, e.assoc || -1), r = !i || s.type != at.Text || !(n.lineWrapping || s.widgetLineBreaks) ? null : n.coordsAtPos(e.assoc < 0 && e.head > s.from ? e.head - 1 : e.head);
|
|
7164
7164
|
if (r) {
|
|
7165
7165
|
let l = n.dom.getBoundingClientRect(), a = n.textDirectionAt(s.from), o = n.posAtCoords({
|
|
7166
|
-
x: t == (a ==
|
|
7166
|
+
x: t == (a == qe.LTR) ? l.right - 1 : l.left + 1,
|
|
7167
7167
|
y: (r.top + r.bottom) / 2
|
|
7168
7168
|
});
|
|
7169
7169
|
if (o != null)
|
|
@@ -7196,7 +7196,7 @@ function W0(n, e, t) {
|
|
|
7196
7196
|
let i = n.state.charCategorizer(e), s = i(t);
|
|
7197
7197
|
return (r) => {
|
|
7198
7198
|
let l = i(r);
|
|
7199
|
-
return s ==
|
|
7199
|
+
return s == Me.Space && (s = l), s == l;
|
|
7200
7200
|
};
|
|
7201
7201
|
}
|
|
7202
7202
|
function I0(n, e, t, i) {
|
|
@@ -7259,7 +7259,7 @@ class B0 {
|
|
|
7259
7259
|
let l = s.nextSibling;
|
|
7260
7260
|
if (l == t)
|
|
7261
7261
|
break;
|
|
7262
|
-
let a =
|
|
7262
|
+
let a = Ae.get(s), o = Ae.get(l);
|
|
7263
7263
|
(a && o ? a.breakAfter : (a ? a.breakAfter : xr(s)) || xr(l) && (s.nodeName != "BR" || s.cmIgnore) && this.text.length > r) && this.lineBreak(), s = l;
|
|
7264
7264
|
}
|
|
7265
7265
|
return this.findPointBefore(i, t), this;
|
|
@@ -7281,7 +7281,7 @@ class B0 {
|
|
|
7281
7281
|
readNode(e) {
|
|
7282
7282
|
if (e.cmIgnore)
|
|
7283
7283
|
return;
|
|
7284
|
-
let t =
|
|
7284
|
+
let t = Ae.get(e), i = t && t.overrideDOMText;
|
|
7285
7285
|
if (i != null) {
|
|
7286
7286
|
this.findPointInside(e, i.length);
|
|
7287
7287
|
for (let s = i.iter(); !s.next().done; )
|
|
@@ -7535,8 +7535,8 @@ function eQ(n) {
|
|
|
7535
7535
|
o && t(a).observers.push(rh(i.value, o));
|
|
7536
7536
|
}
|
|
7537
7537
|
}
|
|
7538
|
-
for (let i in
|
|
7539
|
-
t(i).handlers.push(
|
|
7538
|
+
for (let i in Yt)
|
|
7539
|
+
t(i).handlers.push(Yt[i]);
|
|
7540
7540
|
for (let i in Tt)
|
|
7541
7541
|
t(i).observers.push(Tt[i]);
|
|
7542
7542
|
return e;
|
|
@@ -7643,11 +7643,11 @@ function aQ(n, e) {
|
|
|
7643
7643
|
if (e.defaultPrevented)
|
|
7644
7644
|
return !1;
|
|
7645
7645
|
for (let t = e.target, i; t != n.contentDOM; t = t.parentNode)
|
|
7646
|
-
if (!t || t.nodeType == 11 || (i =
|
|
7646
|
+
if (!t || t.nodeType == 11 || (i = Ae.get(t)) && i.ignoreEvent(e))
|
|
7647
7647
|
return !1;
|
|
7648
7648
|
return !0;
|
|
7649
7649
|
}
|
|
7650
|
-
const
|
|
7650
|
+
const Yt = /* @__PURE__ */ Object.create(null), Tt = /* @__PURE__ */ Object.create(null), Jd = re.ie && re.ie_version < 15 || re.ios && re.webkit_version < 604;
|
|
7651
7651
|
function oQ(n) {
|
|
7652
7652
|
let e = n.dom.parentNode;
|
|
7653
7653
|
if (!e)
|
|
@@ -7694,14 +7694,14 @@ function eO(n, e) {
|
|
|
7694
7694
|
Tt.scroll = (n) => {
|
|
7695
7695
|
n.inputState.lastScrollTop = n.scrollDOM.scrollTop, n.inputState.lastScrollLeft = n.scrollDOM.scrollLeft;
|
|
7696
7696
|
};
|
|
7697
|
-
|
|
7697
|
+
Yt.keydown = (n, e) => (n.inputState.setSelectionOrigin("select"), e.keyCode == 27 && n.inputState.tabFocusMode != 0 && (n.inputState.tabFocusMode = Date.now() + 2e3), !1);
|
|
7698
7698
|
Tt.touchstart = (n, e) => {
|
|
7699
7699
|
n.inputState.lastTouchTime = Date.now(), n.inputState.setSelectionOrigin("select.pointer");
|
|
7700
7700
|
};
|
|
7701
7701
|
Tt.touchmove = (n) => {
|
|
7702
7702
|
n.inputState.setSelectionOrigin("select.pointer");
|
|
7703
7703
|
};
|
|
7704
|
-
|
|
7704
|
+
Yt.mousedown = (n, e) => {
|
|
7705
7705
|
if (n.observer.flush(), n.inputState.lastTouchTime > Date.now() - 2e3)
|
|
7706
7706
|
return !1;
|
|
7707
7707
|
let t = null;
|
|
@@ -7783,7 +7783,7 @@ function fQ(n, e) {
|
|
|
7783
7783
|
}
|
|
7784
7784
|
return null;
|
|
7785
7785
|
}
|
|
7786
|
-
|
|
7786
|
+
Yt.dragstart = (n, e) => {
|
|
7787
7787
|
let { selection: { main: t } } = n.state;
|
|
7788
7788
|
if (e.target.draggable) {
|
|
7789
7789
|
let s = n.docView.nearest(e.target);
|
|
@@ -7795,7 +7795,7 @@ At.dragstart = (n, e) => {
|
|
|
7795
7795
|
let { inputState: i } = n;
|
|
7796
7796
|
return i.mouseSelection && (i.mouseSelection.dragging = !0), i.draggedContent = t, e.dataTransfer && (e.dataTransfer.setData("Text", sl(n.state, Yo, n.state.sliceDoc(t.from, t.to))), e.dataTransfer.effectAllowed = "copyMove"), !1;
|
|
7797
7797
|
};
|
|
7798
|
-
|
|
7798
|
+
Yt.dragend = (n) => (n.inputState.draggedContent = null, !1);
|
|
7799
7799
|
function fh(n, e, t, i) {
|
|
7800
7800
|
if (t = sl(n.state, Ao, t), !t)
|
|
7801
7801
|
return;
|
|
@@ -7806,7 +7806,7 @@ function fh(n, e, t, i) {
|
|
|
7806
7806
|
userEvent: l ? "move.drop" : "input.drop"
|
|
7807
7807
|
}), n.inputState.draggedContent = null;
|
|
7808
7808
|
}
|
|
7809
|
-
|
|
7809
|
+
Yt.drop = (n, e) => {
|
|
7810
7810
|
if (!e.dataTransfer)
|
|
7811
7811
|
return !1;
|
|
7812
7812
|
if (n.state.readOnly)
|
|
@@ -7830,7 +7830,7 @@ At.drop = (n, e) => {
|
|
|
7830
7830
|
}
|
|
7831
7831
|
return !1;
|
|
7832
7832
|
};
|
|
7833
|
-
|
|
7833
|
+
Yt.paste = (n, e) => {
|
|
7834
7834
|
if (n.state.readOnly)
|
|
7835
7835
|
return !0;
|
|
7836
7836
|
n.observer.flush();
|
|
@@ -7861,7 +7861,7 @@ function OQ(n) {
|
|
|
7861
7861
|
return { text: sl(n, Yo, e.join(n.lineBreak)), ranges: t, linewise: i };
|
|
7862
7862
|
}
|
|
7863
7863
|
let Ka = null;
|
|
7864
|
-
|
|
7864
|
+
Yt.copy = Yt.cut = (n, e) => {
|
|
7865
7865
|
let { text: t, ranges: i, linewise: s } = OQ(n.state);
|
|
7866
7866
|
if (!t && !s)
|
|
7867
7867
|
return !1;
|
|
@@ -7908,7 +7908,7 @@ Tt.compositionend = (n) => {
|
|
|
7908
7908
|
Tt.contextmenu = (n) => {
|
|
7909
7909
|
n.inputState.lastContextMenu = Date.now();
|
|
7910
7910
|
};
|
|
7911
|
-
|
|
7911
|
+
Yt.beforeinput = (n, e) => {
|
|
7912
7912
|
var t, i;
|
|
7913
7913
|
if (e.inputType == "insertReplacementText" && n.observer.editContext) {
|
|
7914
7914
|
let r = (t = e.dataTransfer) === null || t === void 0 ? void 0 : t.getData("text/plain"), l = e.getTargetRanges();
|
|
@@ -8031,9 +8031,9 @@ class Nt {
|
|
|
8031
8031
|
return new Nt(this.from, this.length + e.length, this.top, this.height + e.height, t);
|
|
8032
8032
|
}
|
|
8033
8033
|
}
|
|
8034
|
-
var
|
|
8034
|
+
var Ee = /* @__PURE__ */ function(n) {
|
|
8035
8035
|
return n[n.ByPos = 0] = "ByPos", n[n.ByHeight = 1] = "ByHeight", n[n.ByPosNoHeight = 2] = "ByPosNoHeight", n;
|
|
8036
|
-
}(
|
|
8036
|
+
}(Ee || (Ee = {}));
|
|
8037
8037
|
const fr = 1e-3;
|
|
8038
8038
|
class ot {
|
|
8039
8039
|
constructor(e, t, i = 2) {
|
|
@@ -8064,9 +8064,9 @@ class ot {
|
|
|
8064
8064
|
applyChanges(e, t, i, s) {
|
|
8065
8065
|
let r = this, l = i.doc;
|
|
8066
8066
|
for (let a = s.length - 1; a >= 0; a--) {
|
|
8067
|
-
let { fromA: o, toA: u, fromB: h, toB: c } = s[a], f = r.lineAt(o,
|
|
8067
|
+
let { fromA: o, toA: u, fromB: h, toB: c } = s[a], f = r.lineAt(o, Ee.ByPosNoHeight, i.setDoc(t), 0, 0), d = f.to >= u ? f : r.lineAt(u, Ee.ByPosNoHeight, i, 0, 0);
|
|
8068
8068
|
for (c += d.to - u, u = d.to; a > 0 && f.from <= s[a - 1].toA; )
|
|
8069
|
-
o = s[a - 1].fromA, h = s[a - 1].fromB, a--, o < f.from && (f = r.lineAt(o,
|
|
8069
|
+
o = s[a - 1].fromA, h = s[a - 1].fromB, a--, o < f.from && (f = r.lineAt(o, Ee.ByPosNoHeight, i, 0, 0));
|
|
8070
8070
|
h += f.from - o, o = f.from;
|
|
8071
8071
|
let p = Lo.build(i.setDoc(l), e, h, c);
|
|
8072
8072
|
r = Pr(r, r.replace(o, u, p));
|
|
@@ -8171,9 +8171,9 @@ class Ke extends ot {
|
|
|
8171
8171
|
}
|
|
8172
8172
|
}
|
|
8173
8173
|
lineAt(e, t, i, s, r) {
|
|
8174
|
-
if (t ==
|
|
8174
|
+
if (t == Ee.ByHeight)
|
|
8175
8175
|
return this.blockAt(e, i, s, r);
|
|
8176
|
-
if (t ==
|
|
8176
|
+
if (t == Ee.ByPosNoHeight) {
|
|
8177
8177
|
let { from: d, to: p } = i.doc.lineAt(e);
|
|
8178
8178
|
return new Nt(d, p - d, 0, 0, 0);
|
|
8179
8179
|
}
|
|
@@ -8246,10 +8246,10 @@ class _Q extends ot {
|
|
|
8246
8246
|
return e < r ? this.left.blockAt(e, t, i, s) : this.right.blockAt(e, t, r, s + this.left.length + this.break);
|
|
8247
8247
|
}
|
|
8248
8248
|
lineAt(e, t, i, s, r) {
|
|
8249
|
-
let l = s + this.left.height, a = r + this.left.length + this.break, o = t ==
|
|
8249
|
+
let l = s + this.left.height, a = r + this.left.length + this.break, o = t == Ee.ByHeight ? e < l : e < a, u = o ? this.left.lineAt(e, t, i, s, r) : this.right.lineAt(e, t, i, l, a);
|
|
8250
8250
|
if (this.break || (o ? u.to < a : u.from > a))
|
|
8251
8251
|
return u;
|
|
8252
|
-
let h = t ==
|
|
8252
|
+
let h = t == Ee.ByPosNoHeight ? Ee.ByPosNoHeight : Ee.ByPos;
|
|
8253
8253
|
return o ? u.join(this.right.lineAt(a, h, i, l, a)) : this.left.lineAt(a, h, i, s, r).join(u);
|
|
8254
8254
|
}
|
|
8255
8255
|
forEachLine(e, t, i, s, r, l) {
|
|
@@ -8257,7 +8257,7 @@ class _Q extends ot {
|
|
|
8257
8257
|
if (this.break)
|
|
8258
8258
|
e < o && this.left.forEachLine(e, t, i, s, r, l), t >= o && this.right.forEachLine(e, t, i, a, o, l);
|
|
8259
8259
|
else {
|
|
8260
|
-
let u = this.lineAt(o,
|
|
8260
|
+
let u = this.lineAt(o, Ee.ByPos, i, s, r);
|
|
8261
8261
|
e < u.from && this.left.forEachLine(e, u.from - 1, i, s, r, l), u.to >= e && u.from <= t && l(u), t > u.to && this.right.forEachLine(u.to + 1, t, i, a, o, l);
|
|
8262
8262
|
}
|
|
8263
8263
|
}
|
|
@@ -8460,7 +8460,7 @@ class $Q extends Oi {
|
|
|
8460
8460
|
}
|
|
8461
8461
|
class gh {
|
|
8462
8462
|
constructor(e) {
|
|
8463
|
-
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = _h, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection =
|
|
8463
|
+
this.state = e, this.pixelViewport = { left: 0, right: window.innerWidth, top: 0, bottom: 0 }, this.inView = !0, this.paddingTop = 0, this.paddingBottom = 0, this.contentDOMWidth = 0, this.contentDOMHeight = 0, this.editorHeight = 0, this.editorWidth = 0, this.scrollTop = 0, this.scrolledToBottom = !1, this.scaleX = 1, this.scaleY = 1, this.scrollAnchorPos = 0, this.scrollAnchorHeight = -1, this.scaler = _h, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = qe.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
8464
8464
|
let t = e.facet(Eo).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
|
|
8465
8465
|
this.heightOracle = new mQ(t), this.stateDeco = e.facet(ns).filter((i) => typeof i != "function"), this.heightMap = ot.empty().applyChanges(this.stateDeco, $e.empty, this.heightOracle.setDoc(e.doc), [new kt(0, 0, 0, e.doc.length)]);
|
|
8466
8466
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
@@ -8500,7 +8500,7 @@ class gh {
|
|
|
8500
8500
|
}
|
|
8501
8501
|
measure(e) {
|
|
8502
8502
|
let t = e.contentDOM, i = window.getComputedStyle(t), s = this.heightOracle, r = i.whiteSpace;
|
|
8503
|
-
this.defaultTextDirection = i.direction == "rtl" ?
|
|
8503
|
+
this.defaultTextDirection = i.direction == "rtl" ? qe.RTL : qe.LTR;
|
|
8504
8504
|
let l = this.heightOracle.mustRefreshForWrapping(r), a = t.getBoundingClientRect(), o = l || this.mustMeasureContent || this.contentDOMHeight != a.height;
|
|
8505
8505
|
this.contentDOMHeight = a.height, this.mustMeasureContent = !1;
|
|
8506
8506
|
let u = 0, h = 0;
|
|
@@ -8541,26 +8541,26 @@ class gh {
|
|
|
8541
8541
|
return this.scaler.fromDOM(this.pixelViewport.bottom);
|
|
8542
8542
|
}
|
|
8543
8543
|
getViewport(e, t) {
|
|
8544
|
-
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, r = this.heightOracle, { visibleTop: l, visibleBottom: a } = this, o = new Es(s.lineAt(l - i * 1e3,
|
|
8544
|
+
let i = 0.5 - Math.max(-0.5, Math.min(0.5, e / 1e3 / 2)), s = this.heightMap, r = this.heightOracle, { visibleTop: l, visibleBottom: a } = this, o = new Es(s.lineAt(l - i * 1e3, Ee.ByHeight, r, 0, 0).from, s.lineAt(a + (1 - i) * 1e3, Ee.ByHeight, r, 0, 0).to);
|
|
8545
8545
|
if (t) {
|
|
8546
8546
|
let { head: u } = t.range;
|
|
8547
8547
|
if (u < o.from || u > o.to) {
|
|
8548
|
-
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), c = s.lineAt(u,
|
|
8549
|
-
t.y == "center" ? f = (c.top + c.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && u < o.from ? f = c.top : f = c.bottom - h, o = new Es(s.lineAt(f - 1e3 / 2,
|
|
8548
|
+
let h = Math.min(this.editorHeight, this.pixelViewport.bottom - this.pixelViewport.top), c = s.lineAt(u, Ee.ByPos, r, 0, 0), f;
|
|
8549
|
+
t.y == "center" ? f = (c.top + c.bottom) / 2 - h / 2 : t.y == "start" || t.y == "nearest" && u < o.from ? f = c.top : f = c.bottom - h, o = new Es(s.lineAt(f - 1e3 / 2, Ee.ByHeight, r, 0, 0).from, s.lineAt(f + h + 1e3 / 2, Ee.ByHeight, r, 0, 0).to);
|
|
8550
8550
|
}
|
|
8551
8551
|
}
|
|
8552
8552
|
return o;
|
|
8553
8553
|
}
|
|
8554
8554
|
mapViewport(e, t) {
|
|
8555
8555
|
let i = t.mapPos(e.from, -1), s = t.mapPos(e.to, 1);
|
|
8556
|
-
return new Es(this.heightMap.lineAt(i,
|
|
8556
|
+
return new Es(this.heightMap.lineAt(i, Ee.ByPos, this.heightOracle, 0, 0).from, this.heightMap.lineAt(s, Ee.ByPos, this.heightOracle, 0, 0).to);
|
|
8557
8557
|
}
|
|
8558
8558
|
// Checks if a given viewport covers the visible part of the
|
|
8559
8559
|
// document and not too much beyond that.
|
|
8560
8560
|
viewportIsAppropriate({ from: e, to: t }, i = 0) {
|
|
8561
8561
|
if (!this.inView)
|
|
8562
8562
|
return !0;
|
|
8563
|
-
let { top: s } = this.heightMap.lineAt(e,
|
|
8563
|
+
let { top: s } = this.heightMap.lineAt(e, Ee.ByPos, this.heightOracle, 0, 0), { bottom: r } = this.heightMap.lineAt(t, Ee.ByPos, this.heightOracle, 0, 0), { visibleTop: l, visibleBottom: a } = this;
|
|
8564
8564
|
return (e == 0 || s <= l - Math.max(10, Math.min(
|
|
8565
8565
|
-i,
|
|
8566
8566
|
250
|
|
@@ -8588,7 +8588,7 @@ class gh {
|
|
|
8588
8588
|
// the artifacts this might produce from the user.
|
|
8589
8589
|
ensureLineGaps(e, t) {
|
|
8590
8590
|
let i = this.heightOracle.lineWrapping, s = i ? 1e4 : 2e3, r = s >> 1, l = s << 1;
|
|
8591
|
-
if (this.defaultTextDirection !=
|
|
8591
|
+
if (this.defaultTextDirection != qe.LTR && !i)
|
|
8592
8592
|
return [];
|
|
8593
8593
|
let a = [], o = (h, c, f, d) => {
|
|
8594
8594
|
if (c - h < r)
|
|
@@ -8673,10 +8673,10 @@ class gh {
|
|
|
8673
8673
|
return this.visibleRanges = i, s;
|
|
8674
8674
|
}
|
|
8675
8675
|
lineBlockAt(e) {
|
|
8676
|
-
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || zn(this.heightMap.lineAt(e,
|
|
8676
|
+
return e >= this.viewport.from && e <= this.viewport.to && this.viewportLines.find((t) => t.from <= e && t.to >= e) || zn(this.heightMap.lineAt(e, Ee.ByPos, this.heightOracle, 0, 0), this.scaler);
|
|
8677
8677
|
}
|
|
8678
8678
|
lineBlockAtHeight(e) {
|
|
8679
|
-
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || zn(this.heightMap.lineAt(this.scaler.fromDOM(e),
|
|
8679
|
+
return e >= this.viewportLines[0].top && e <= this.viewportLines[this.viewportLines.length - 1].bottom && this.viewportLines.find((t) => t.top <= e && t.bottom >= e) || zn(this.heightMap.lineAt(this.scaler.fromDOM(e), Ee.ByHeight, this.heightOracle, 0, 0), this.scaler);
|
|
8680
8680
|
}
|
|
8681
8681
|
scrollAnchorAt(e) {
|
|
8682
8682
|
let t = this.lineBlockAtHeight(e + 8);
|
|
@@ -8752,7 +8752,7 @@ class zo {
|
|
|
8752
8752
|
constructor(e, t, i) {
|
|
8753
8753
|
let s = 0, r = 0, l = 0;
|
|
8754
8754
|
this.viewports = i.map(({ from: a, to: o }) => {
|
|
8755
|
-
let u = t.lineAt(a,
|
|
8755
|
+
let u = t.lineAt(a, Ee.ByPos, e, 0, 0).top, h = t.lineAt(o, Ee.ByPos, e, 0, 0).bottom;
|
|
8756
8756
|
return s += h - u, { from: a, to: o, top: u, bottom: h, domTop: 0, domBottom: 0 };
|
|
8757
8757
|
}), this.scale = (7e6 - s) / (t.height - s);
|
|
8758
8758
|
for (let a of this.viewports)
|
|
@@ -9298,7 +9298,7 @@ class CQ {
|
|
|
9298
9298
|
}
|
|
9299
9299
|
function Qh(n, e, t) {
|
|
9300
9300
|
for (; e; ) {
|
|
9301
|
-
let i =
|
|
9301
|
+
let i = Ae.get(e);
|
|
9302
9302
|
if (i && i.parent == n)
|
|
9303
9303
|
return i;
|
|
9304
9304
|
let s = e.parentNode;
|
|
@@ -9968,7 +9968,7 @@ class se {
|
|
|
9968
9968
|
if (!i || i.left == i.right)
|
|
9969
9969
|
return i;
|
|
9970
9970
|
let s = this.state.doc.lineAt(e), r = this.bidiSpans(s), l = r[yi.find(r, e - s.from, -1, t)];
|
|
9971
|
-
return il(i, l.dir ==
|
|
9971
|
+
return il(i, l.dir == qe.LTR == t > 0);
|
|
9972
9972
|
}
|
|
9973
9973
|
/**
|
|
9974
9974
|
Return the rectangle around a given character. If `pos` does not
|
|
@@ -10179,7 +10179,7 @@ class se {
|
|
|
10179
10179
|
*/
|
|
10180
10180
|
static findFromDOM(e) {
|
|
10181
10181
|
var t;
|
|
10182
|
-
let i = e.querySelector(".cm-content"), s = i &&
|
|
10182
|
+
let i = e.querySelector(".cm-content"), s = i && Ae.get(i) || Ae.get(e);
|
|
10183
10183
|
return ((t = s == null ? void 0 : s.rootView) === null || t === void 0 ? void 0 : t.view) || null;
|
|
10184
10184
|
}
|
|
10185
10185
|
}
|
|
@@ -10215,7 +10215,7 @@ class kr {
|
|
|
10215
10215
|
static update(e, t) {
|
|
10216
10216
|
if (t.empty && !e.some((r) => r.fresh))
|
|
10217
10217
|
return e;
|
|
10218
|
-
let i = [], s = e.length ? e[e.length - 1].dir :
|
|
10218
|
+
let i = [], s = e.length ? e[e.length - 1].dir : qe.LTR;
|
|
10219
10219
|
for (let r = Math.max(0, e.length - 10); r < e.length; r++) {
|
|
10220
10220
|
let l = e[r];
|
|
10221
10221
|
l.dir == s && !t.touchesRange(l.from, l.to) && i.push(new kr(t.mapPos(l.from, 1), t.mapPos(l.to, -1), l.dir, l.isolates, !1, l.order));
|
|
@@ -10378,7 +10378,7 @@ class vs {
|
|
|
10378
10378
|
}
|
|
10379
10379
|
function cO(n) {
|
|
10380
10380
|
let e = n.scrollDOM.getBoundingClientRect();
|
|
10381
|
-
return { left: (n.textDirection ==
|
|
10381
|
+
return { left: (n.textDirection == qe.LTR ? e.left : e.right - n.scrollDOM.clientWidth * n.scaleX) - n.scrollDOM.scrollLeft * n.scaleX, top: e.top - n.scrollDOM.scrollTop * n.scaleY };
|
|
10382
10382
|
}
|
|
10383
10383
|
function xh(n, e, t, i) {
|
|
10384
10384
|
let s = n.coordsAtPos(e, t * 2);
|
|
@@ -10390,7 +10390,7 @@ function xh(n, e, t, i) {
|
|
|
10390
10390
|
function DQ(n, e, t) {
|
|
10391
10391
|
if (t.to <= n.viewport.from || t.from >= n.viewport.to)
|
|
10392
10392
|
return [];
|
|
10393
|
-
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), r = n.textDirection ==
|
|
10393
|
+
let i = Math.max(t.from, n.viewport.from), s = Math.min(t.to, n.viewport.to), r = n.textDirection == qe.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), p = Ha(n, s, -1), y = d.type == at.Text ? d : null, g = p.type == at.Text ? p : null;
|
|
10394
10394
|
if (y && (n.lineWrapping || d.widgetLineBreaks) && (y = xh(n, i, 1, y)), g && (n.lineWrapping || p.widgetLineBreaks) && (g = xh(n, s, -1, g)), y && g && y.from == g.from && y.to == g.to)
|
|
10395
10395
|
return v(Z(t.from, t.to, y));
|
|
10396
10396
|
{
|
|
@@ -10410,7 +10410,7 @@ function DQ(n, e, t) {
|
|
|
10410
10410
|
let k = 1e9, R = -1e9, Q = [];
|
|
10411
10411
|
function T(N, K, J, ge, Se) {
|
|
10412
10412
|
let me = n.coordsAtPos(N, N == w.to ? -2 : 2), he = n.coordsAtPos(J, J == w.from ? 2 : -2);
|
|
10413
|
-
!me || !he || (k = Math.min(me.top, he.top, k), R = Math.max(me.bottom, he.bottom, R), Se ==
|
|
10413
|
+
!me || !he || (k = Math.min(me.top, he.top, k), R = Math.max(me.bottom, he.bottom, R), Se == qe.LTR ? Q.push(r && K ? c : me.left, r && ge ? f : he.right) : Q.push(!r && ge ? c : he.left, !r && K ? f : me.right));
|
|
10414
10414
|
}
|
|
10415
10415
|
let C = $ ?? w.from, U = P ?? w.to;
|
|
10416
10416
|
for (let N of n.visibleRanges)
|
|
@@ -11086,7 +11086,7 @@ const Cl = /* @__PURE__ */ le.define({
|
|
|
11086
11086
|
h.style.top = Cn;
|
|
11087
11087
|
continue;
|
|
11088
11088
|
}
|
|
11089
|
-
let d = o.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, y = f.right - f.left, g = (e = Th.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, O = u.offset || _1, v = this.view.textDirection ==
|
|
11089
|
+
let d = o.arrow ? u.dom.querySelector(".cm-tooltip-arrow") : null, p = d ? 7 : 0, y = f.right - f.left, g = (e = Th.get(u)) !== null && e !== void 0 ? e : f.bottom - f.top, O = u.offset || _1, v = this.view.textDirection == qe.LTR, Z = 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) + O.x, i.right - y)) : Math.min(Math.max(i.left, c.left - y + (d ? 14 : 0) - O.x), i.right - y), S = this.above[a];
|
|
11090
11090
|
!o.strictSide && (S ? c.top - g - p - O.y < i.top : c.bottom + g + p + O.y > i.bottom) && S == i.bottom - c.bottom > c.top - i.top && (S = this.above[a] = !S);
|
|
11091
11091
|
let $ = (S ? c.top - i.top : i.bottom - c.bottom) - p;
|
|
11092
11092
|
if ($ < g && u.resize !== !1) {
|
|
@@ -11288,7 +11288,7 @@ class b1 {
|
|
|
11288
11288
|
let a = e.coordsAtPos(s);
|
|
11289
11289
|
if (!a || t.y < a.top || t.y > a.bottom || t.x < a.left - e.defaultCharacterWidth || t.x > a.right + e.defaultCharacterWidth)
|
|
11290
11290
|
return;
|
|
11291
|
-
let o = e.bidiSpans(e.state.doc.lineAt(s)).find((h) => h.from <= s && h.to >= s), u = o && o.dir ==
|
|
11291
|
+
let o = e.bidiSpans(e.state.doc.lineAt(s)).find((h) => h.from <= s && h.to >= s), u = o && o.dir == qe.RTL ? -1 : 1;
|
|
11292
11292
|
r = t.x < a.left ? -u : u;
|
|
11293
11293
|
}
|
|
11294
11294
|
let l = this.source(e, s, r);
|
|
@@ -11617,7 +11617,7 @@ const k1 = /* @__PURE__ */ Ne.fromClass(class {
|
|
|
11617
11617
|
if (!t || t.gutters.length == 0 || !t.fixed)
|
|
11618
11618
|
return null;
|
|
11619
11619
|
let i = t.dom.offsetWidth * e.scaleX, s = t.domAfter ? t.domAfter.offsetWidth * e.scaleX : 0;
|
|
11620
|
-
return e.textDirection ==
|
|
11620
|
+
return e.textDirection == qe.LTR ? { left: i, right: s } : { right: i, left: s };
|
|
11621
11621
|
})
|
|
11622
11622
|
});
|
|
11623
11623
|
function Zh(n) {
|
|
@@ -12010,10 +12010,10 @@ class Io {
|
|
|
12010
12010
|
}
|
|
12011
12011
|
}
|
|
12012
12012
|
const Ws = /* @__PURE__ */ new WeakMap(), Yh = /* @__PURE__ */ new WeakMap();
|
|
12013
|
-
var
|
|
12013
|
+
var Ve;
|
|
12014
12014
|
(function(n) {
|
|
12015
12015
|
n[n.ExcludeBuffers = 1] = "ExcludeBuffers", n[n.IncludeAnonymous = 2] = "IncludeAnonymous", n[n.IgnoreMounts = 4] = "IgnoreMounts", n[n.IgnoreOverlays = 8] = "IgnoreOverlays";
|
|
12016
|
-
})(
|
|
12016
|
+
})(Ve || (Ve = {}));
|
|
12017
12017
|
class ze {
|
|
12018
12018
|
/**
|
|
12019
12019
|
Construct a new tree. See also [`Tree.build`](#common.Tree^build).
|
|
@@ -12107,8 +12107,8 @@ class ze {
|
|
|
12107
12107
|
not have its children iterated over (or `leave` called).
|
|
12108
12108
|
*/
|
|
12109
12109
|
iterate(e) {
|
|
12110
|
-
let { enter: t, leave: i, from: s = 0, to: r = this.length } = e, l = e.mode || 0, a = (l &
|
|
12111
|
-
for (let o = this.cursor(l |
|
|
12110
|
+
let { enter: t, leave: i, from: s = 0, to: r = this.length } = e, l = e.mode || 0, a = (l & Ve.IncludeAnonymous) > 0;
|
|
12111
|
+
for (let o = this.cursor(l | Ve.IncludeAnonymous); ; ) {
|
|
12112
12112
|
let u = !1;
|
|
12113
12113
|
if (o.from <= r && o.to >= s && (!a && o.type.isAnonymous || t(o) !== !1)) {
|
|
12114
12114
|
if (o.firstChild())
|
|
@@ -12263,7 +12263,7 @@ function os(n, e, t, i) {
|
|
|
12263
12263
|
return n;
|
|
12264
12264
|
n = l;
|
|
12265
12265
|
}
|
|
12266
|
-
let r = i ? 0 :
|
|
12266
|
+
let r = i ? 0 : Ve.IgnoreOverlays;
|
|
12267
12267
|
if (i)
|
|
12268
12268
|
for (let l = n, a = l.parent; a; l = a, a = l.parent)
|
|
12269
12269
|
l instanceof rt && l.index < 0 && ((s = a.enter(e, t, r)) === null || s === void 0 ? void 0 : s.from) != l.from && (n = a);
|
|
@@ -12330,21 +12330,21 @@ class rt extends vO {
|
|
|
12330
12330
|
let h = a[e], c = o[e] + l.from;
|
|
12331
12331
|
if (yO(s, i, c, c + h.length)) {
|
|
12332
12332
|
if (h instanceof wi) {
|
|
12333
|
-
if (r &
|
|
12333
|
+
if (r & Ve.ExcludeBuffers)
|
|
12334
12334
|
continue;
|
|
12335
12335
|
let f = h.findChild(0, h.buffer.length, t, i - c, s);
|
|
12336
12336
|
if (f > -1)
|
|
12337
12337
|
return new jt(new D1(l, h, e, c), null, f);
|
|
12338
|
-
} else if (r &
|
|
12338
|
+
} else if (r & Ve.IncludeAnonymous || !h.type.isAnonymous || No(h)) {
|
|
12339
12339
|
let f;
|
|
12340
|
-
if (!(r &
|
|
12340
|
+
if (!(r & Ve.IgnoreMounts) && (f = as.get(h)) && !f.overlay)
|
|
12341
12341
|
return new rt(f.tree, c, e, l);
|
|
12342
12342
|
let d = new rt(h, c, e, l);
|
|
12343
|
-
return r &
|
|
12343
|
+
return r & Ve.IncludeAnonymous || !d.type.isAnonymous ? d : d.nextChild(t < 0 ? h.children.length - 1 : 0, t, i, s);
|
|
12344
12344
|
}
|
|
12345
12345
|
}
|
|
12346
12346
|
}
|
|
12347
|
-
if (r &
|
|
12347
|
+
if (r & Ve.IncludeAnonymous || !l.type.isAnonymous || (l.index >= 0 ? e = l.index + t : e = t < 0 ? -1 : l._parent._tree.children.length, l = l._parent, !l))
|
|
12348
12348
|
return null;
|
|
12349
12349
|
}
|
|
12350
12350
|
}
|
|
@@ -12386,7 +12386,7 @@ class rt extends vO {
|
|
|
12386
12386
|
}
|
|
12387
12387
|
enter(e, t, i = 0) {
|
|
12388
12388
|
let s;
|
|
12389
|
-
if (!(i &
|
|
12389
|
+
if (!(i & Ve.IgnoreOverlays) && (s = as.get(this._tree)) && s.overlay) {
|
|
12390
12390
|
let r = e - this.from;
|
|
12391
12391
|
for (let { from: l, to: a } of s.overlay)
|
|
12392
12392
|
if ((t > 0 ? l <= r : l < r) && (t < 0 ? a >= r : a > r))
|
|
@@ -12517,7 +12517,7 @@ class jt extends vO {
|
|
|
12517
12517
|
);
|
|
12518
12518
|
}
|
|
12519
12519
|
enter(e, t, i = 0) {
|
|
12520
|
-
if (i &
|
|
12520
|
+
if (i & Ve.ExcludeBuffers)
|
|
12521
12521
|
return null;
|
|
12522
12522
|
let { buffer: s } = this.context, r = s.findChild(this.index + 4, s.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
|
|
12523
12523
|
return r < 0 ? null : new jt(this.context, this, r);
|
|
@@ -12703,17 +12703,17 @@ class Cr {
|
|
|
12703
12703
|
set to false.
|
|
12704
12704
|
*/
|
|
12705
12705
|
enter(e, t, i = this.mode) {
|
|
12706
|
-
return this.buffer ? i &
|
|
12706
|
+
return this.buffer ? i & Ve.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, i));
|
|
12707
12707
|
}
|
|
12708
12708
|
/**
|
|
12709
12709
|
Move to the node's parent node, if this isn't the top node.
|
|
12710
12710
|
*/
|
|
12711
12711
|
parent() {
|
|
12712
12712
|
if (!this.buffer)
|
|
12713
|
-
return this.yieldNode(this.mode &
|
|
12713
|
+
return this.yieldNode(this.mode & Ve.IncludeAnonymous ? this._tree._parent : this._tree.parent);
|
|
12714
12714
|
if (this.stack.length)
|
|
12715
12715
|
return this.yieldBuf(this.stack.pop());
|
|
12716
|
-
let e = this.mode &
|
|
12716
|
+
let e = this.mode & Ve.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
|
|
12717
12717
|
return this.buffer = null, this.yieldNode(e);
|
|
12718
12718
|
}
|
|
12719
12719
|
/**
|
|
@@ -12770,7 +12770,7 @@ class Cr {
|
|
|
12770
12770
|
if (t > -1)
|
|
12771
12771
|
for (let r = t + e, l = e < 0 ? -1 : i._tree.children.length; r != l; r += e) {
|
|
12772
12772
|
let a = i._tree.children[r];
|
|
12773
|
-
if (this.mode &
|
|
12773
|
+
if (this.mode & Ve.IncludeAnonymous || a instanceof wi || !a.type.isAnonymous || No(a))
|
|
12774
12774
|
return !1;
|
|
12775
12775
|
}
|
|
12776
12776
|
return !0;
|
|
@@ -12934,8 +12934,8 @@ function U1(n) {
|
|
|
12934
12934
|
for (; a.pos > F; )
|
|
12935
12935
|
j >= 0 && a.id == j && a.size >= 0 ? (a.end <= fe - s && (p(I, q, C, ee, a.end, fe, j, K, J), ee = I.length, fe = a.end), a.next()) : Q > 2500 ? f(C, F, I, q) : c(C, F, I, q, j, Q + 1);
|
|
12936
12936
|
if (j >= 0 && ee > 0 && ee < I.length && p(I, q, C, ee, C, fe, j, K, J), I.reverse(), q.reverse(), j > -1 && ee > 0) {
|
|
12937
|
-
let
|
|
12938
|
-
Se = jo(ge, I, q, 0, I.length, 0, U - C,
|
|
12937
|
+
let D = d(ge, J);
|
|
12938
|
+
Se = jo(ge, I, q, 0, I.length, 0, U - C, D, D);
|
|
12939
12939
|
} else
|
|
12940
12940
|
Se = y(ge, I, q, U - C, K - U, J);
|
|
12941
12941
|
}
|
|
@@ -13295,7 +13295,7 @@ class N1 {
|
|
|
13295
13295
|
this.inner[t].parse.stopAt(e);
|
|
13296
13296
|
}
|
|
13297
13297
|
startInner() {
|
|
13298
|
-
let e = new F1(this.fragments), t = null, i = null, s = new Cr(new rt(this.baseTree, this.ranges[0].from, 0, null),
|
|
13298
|
+
let e = new F1(this.fragments), t = null, i = null, s = new Cr(new rt(this.baseTree, this.ranges[0].from, 0, null), Ve.IncludeAnonymous | Ve.IgnoreMounts);
|
|
13299
13299
|
e:
|
|
13300
13300
|
for (let r, l; ; ) {
|
|
13301
13301
|
let a = !0, o;
|
|
@@ -13378,13 +13378,13 @@ function G1(n) {
|
|
|
13378
13378
|
}
|
|
13379
13379
|
class zh {
|
|
13380
13380
|
constructor(e, t) {
|
|
13381
|
-
this.offset = t, this.done = !1, this.cursor = e.cursor(
|
|
13381
|
+
this.offset = t, this.done = !1, this.cursor = e.cursor(Ve.IncludeAnonymous | Ve.IgnoreMounts);
|
|
13382
13382
|
}
|
|
13383
13383
|
// Move to the first node (in pre-order) that starts at or after `pos`.
|
|
13384
13384
|
moveTo(e) {
|
|
13385
13385
|
let { cursor: t } = this, i = e - this.offset;
|
|
13386
13386
|
for (; !this.done && t.from < i; )
|
|
13387
|
-
t.to >= e && t.enter(i, 1,
|
|
13387
|
+
t.to >= e && t.enter(i, 1, Ve.IgnoreOverlays | Ve.ExcludeBuffers) || t.next(!1) || (this.done = !0);
|
|
13388
13388
|
}
|
|
13389
13389
|
hasNode(e) {
|
|
13390
13390
|
if (this.moveTo(e.from), !this.done && this.cursor.from + this.offset == e.from && this.cursor.tree)
|
|
@@ -13704,7 +13704,7 @@ function rb(n) {
|
|
|
13704
13704
|
e = e.next;
|
|
13705
13705
|
return e || null;
|
|
13706
13706
|
}
|
|
13707
|
-
const ie = St.define, Is = ie(), mi = ie(), Ih = ie(mi), Bh = ie(mi), gi = ie(), Bs = ie(gi), Zl = ie(gi),
|
|
13707
|
+
const ie = St.define, Is = ie(), mi = ie(), Ih = ie(mi), Bh = ie(mi), gi = ie(), Bs = ie(gi), Zl = ie(gi), zt = ie(), Ri = ie(zt), Dt = ie(), Lt = ie(), uo = ie(), Xn = ie(uo), Ns = ie(), x = {
|
|
13708
13708
|
/**
|
|
13709
13709
|
A comment.
|
|
13710
13710
|
*/
|
|
@@ -13817,85 +13817,85 @@ const ie = St.define, Is = ie(), mi = ie(), Ih = ie(mi), Bh = ie(mi), gi = ie(),
|
|
|
13817
13817
|
/**
|
|
13818
13818
|
A language keyword.
|
|
13819
13819
|
*/
|
|
13820
|
-
keyword:
|
|
13820
|
+
keyword: Dt,
|
|
13821
13821
|
/**
|
|
13822
13822
|
The [keyword](#highlight.tags.keyword) for the self or this
|
|
13823
13823
|
object.
|
|
13824
13824
|
*/
|
|
13825
|
-
self: ie(
|
|
13825
|
+
self: ie(Dt),
|
|
13826
13826
|
/**
|
|
13827
13827
|
The [keyword](#highlight.tags.keyword) for null.
|
|
13828
13828
|
*/
|
|
13829
|
-
null: ie(
|
|
13829
|
+
null: ie(Dt),
|
|
13830
13830
|
/**
|
|
13831
13831
|
A [keyword](#highlight.tags.keyword) denoting some atomic value.
|
|
13832
13832
|
*/
|
|
13833
|
-
atom: ie(
|
|
13833
|
+
atom: ie(Dt),
|
|
13834
13834
|
/**
|
|
13835
13835
|
A [keyword](#highlight.tags.keyword) that represents a unit.
|
|
13836
13836
|
*/
|
|
13837
|
-
unit: ie(
|
|
13837
|
+
unit: ie(Dt),
|
|
13838
13838
|
/**
|
|
13839
13839
|
A modifier [keyword](#highlight.tags.keyword).
|
|
13840
13840
|
*/
|
|
13841
|
-
modifier: ie(
|
|
13841
|
+
modifier: ie(Dt),
|
|
13842
13842
|
/**
|
|
13843
13843
|
A [keyword](#highlight.tags.keyword) that acts as an operator.
|
|
13844
13844
|
*/
|
|
13845
|
-
operatorKeyword: ie(
|
|
13845
|
+
operatorKeyword: ie(Dt),
|
|
13846
13846
|
/**
|
|
13847
13847
|
A control-flow related [keyword](#highlight.tags.keyword).
|
|
13848
13848
|
*/
|
|
13849
|
-
controlKeyword: ie(
|
|
13849
|
+
controlKeyword: ie(Dt),
|
|
13850
13850
|
/**
|
|
13851
13851
|
A [keyword](#highlight.tags.keyword) that defines something.
|
|
13852
13852
|
*/
|
|
13853
|
-
definitionKeyword: ie(
|
|
13853
|
+
definitionKeyword: ie(Dt),
|
|
13854
13854
|
/**
|
|
13855
13855
|
A [keyword](#highlight.tags.keyword) related to defining or
|
|
13856
13856
|
interfacing with modules.
|
|
13857
13857
|
*/
|
|
13858
|
-
moduleKeyword: ie(
|
|
13858
|
+
moduleKeyword: ie(Dt),
|
|
13859
13859
|
/**
|
|
13860
13860
|
An operator.
|
|
13861
13861
|
*/
|
|
13862
|
-
operator:
|
|
13862
|
+
operator: Lt,
|
|
13863
13863
|
/**
|
|
13864
13864
|
An [operator](#highlight.tags.operator) that dereferences something.
|
|
13865
13865
|
*/
|
|
13866
|
-
derefOperator: ie(
|
|
13866
|
+
derefOperator: ie(Lt),
|
|
13867
13867
|
/**
|
|
13868
13868
|
Arithmetic-related [operator](#highlight.tags.operator).
|
|
13869
13869
|
*/
|
|
13870
|
-
arithmeticOperator: ie(
|
|
13870
|
+
arithmeticOperator: ie(Lt),
|
|
13871
13871
|
/**
|
|
13872
13872
|
Logical [operator](#highlight.tags.operator).
|
|
13873
13873
|
*/
|
|
13874
|
-
logicOperator: ie(
|
|
13874
|
+
logicOperator: ie(Lt),
|
|
13875
13875
|
/**
|
|
13876
13876
|
Bit [operator](#highlight.tags.operator).
|
|
13877
13877
|
*/
|
|
13878
|
-
bitwiseOperator: ie(
|
|
13878
|
+
bitwiseOperator: ie(Lt),
|
|
13879
13879
|
/**
|
|
13880
13880
|
Comparison [operator](#highlight.tags.operator).
|
|
13881
13881
|
*/
|
|
13882
|
-
compareOperator: ie(
|
|
13882
|
+
compareOperator: ie(Lt),
|
|
13883
13883
|
/**
|
|
13884
13884
|
[Operator](#highlight.tags.operator) that updates its operand.
|
|
13885
13885
|
*/
|
|
13886
|
-
updateOperator: ie(
|
|
13886
|
+
updateOperator: ie(Lt),
|
|
13887
13887
|
/**
|
|
13888
13888
|
[Operator](#highlight.tags.operator) that defines something.
|
|
13889
13889
|
*/
|
|
13890
|
-
definitionOperator: ie(
|
|
13890
|
+
definitionOperator: ie(Lt),
|
|
13891
13891
|
/**
|
|
13892
13892
|
Type-related [operator](#highlight.tags.operator).
|
|
13893
13893
|
*/
|
|
13894
|
-
typeOperator: ie(
|
|
13894
|
+
typeOperator: ie(Lt),
|
|
13895
13895
|
/**
|
|
13896
13896
|
Control-flow [operator](#highlight.tags.operator).
|
|
13897
13897
|
*/
|
|
13898
|
-
controlOperator: ie(
|
|
13898
|
+
controlOperator: ie(Lt),
|
|
13899
13899
|
/**
|
|
13900
13900
|
Program or markup punctuation.
|
|
13901
13901
|
*/
|
|
@@ -13932,7 +13932,7 @@ const ie = St.define, Is = ie(), mi = ie(), Ih = ie(mi), Bh = ie(mi), gi = ie(),
|
|
|
13932
13932
|
/**
|
|
13933
13933
|
Content, for example plain text in XML or markup documents.
|
|
13934
13934
|
*/
|
|
13935
|
-
content:
|
|
13935
|
+
content: zt,
|
|
13936
13936
|
/**
|
|
13937
13937
|
[Content](#highlight.tags.content) that represents a heading.
|
|
13938
13938
|
*/
|
|
@@ -13964,37 +13964,37 @@ const ie = St.define, Is = ie(), mi = ie(), Ih = ie(mi), Bh = ie(mi), gi = ie(),
|
|
|
13964
13964
|
/**
|
|
13965
13965
|
A prose [content](#highlight.tags.content) separator (such as a horizontal rule).
|
|
13966
13966
|
*/
|
|
13967
|
-
contentSeparator: ie(
|
|
13967
|
+
contentSeparator: ie(zt),
|
|
13968
13968
|
/**
|
|
13969
13969
|
[Content](#highlight.tags.content) that represents a list.
|
|
13970
13970
|
*/
|
|
13971
|
-
list: ie(
|
|
13971
|
+
list: ie(zt),
|
|
13972
13972
|
/**
|
|
13973
13973
|
[Content](#highlight.tags.content) that represents a quote.
|
|
13974
13974
|
*/
|
|
13975
|
-
quote: ie(
|
|
13975
|
+
quote: ie(zt),
|
|
13976
13976
|
/**
|
|
13977
13977
|
[Content](#highlight.tags.content) that is emphasized.
|
|
13978
13978
|
*/
|
|
13979
|
-
emphasis: ie(
|
|
13979
|
+
emphasis: ie(zt),
|
|
13980
13980
|
/**
|
|
13981
13981
|
[Content](#highlight.tags.content) that is styled strong.
|
|
13982
13982
|
*/
|
|
13983
|
-
strong: ie(
|
|
13983
|
+
strong: ie(zt),
|
|
13984
13984
|
/**
|
|
13985
13985
|
[Content](#highlight.tags.content) that is part of a link.
|
|
13986
13986
|
*/
|
|
13987
|
-
link: ie(
|
|
13987
|
+
link: ie(zt),
|
|
13988
13988
|
/**
|
|
13989
13989
|
[Content](#highlight.tags.content) that is styled as code or
|
|
13990
13990
|
monospace.
|
|
13991
13991
|
*/
|
|
13992
|
-
monospace: ie(
|
|
13992
|
+
monospace: ie(zt),
|
|
13993
13993
|
/**
|
|
13994
13994
|
[Content](#highlight.tags.content) that has a strike-through
|
|
13995
13995
|
style.
|
|
13996
13996
|
*/
|
|
13997
|
-
strikethrough: ie(
|
|
13997
|
+
strikethrough: ie(zt),
|
|
13998
13998
|
/**
|
|
13999
13999
|
Inserted text in a change-tracking format.
|
|
14000
14000
|
*/
|
|
@@ -14114,7 +14114,7 @@ function Fo(n) {
|
|
|
14114
14114
|
});
|
|
14115
14115
|
}
|
|
14116
14116
|
const Ss = /* @__PURE__ */ new xe();
|
|
14117
|
-
class
|
|
14117
|
+
class Rt {
|
|
14118
14118
|
/**
|
|
14119
14119
|
Construct a language object. If you need to invoke this
|
|
14120
14120
|
directly, first define a data facet with
|
|
@@ -14196,15 +14196,15 @@ class Xt {
|
|
|
14196
14196
|
return !0;
|
|
14197
14197
|
}
|
|
14198
14198
|
}
|
|
14199
|
-
|
|
14199
|
+
Rt.setState = /* @__PURE__ */ ve.define();
|
|
14200
14200
|
function Nh(n, e, t) {
|
|
14201
14201
|
let i = n.facet(Pi), s = Ye(n).topNode;
|
|
14202
14202
|
if (!i || i.allowsNesting)
|
|
14203
|
-
for (let r = s; r; r = r.enter(e, t,
|
|
14203
|
+
for (let r = s; r; r = r.enter(e, t, Ve.ExcludeBuffers))
|
|
14204
14204
|
r.type.isTop && (s = r);
|
|
14205
14205
|
return s;
|
|
14206
14206
|
}
|
|
14207
|
-
class fi extends
|
|
14207
|
+
class fi extends Rt {
|
|
14208
14208
|
constructor(e, t, i) {
|
|
14209
14209
|
super(e, t, [], i), this.parser = t;
|
|
14210
14210
|
}
|
|
@@ -14229,7 +14229,7 @@ class fi extends Xt {
|
|
|
14229
14229
|
}
|
|
14230
14230
|
}
|
|
14231
14231
|
function Ye(n) {
|
|
14232
|
-
let e = n.field(
|
|
14232
|
+
let e = n.field(Rt.state, !1);
|
|
14233
14233
|
return e ? e.tree : ze.empty;
|
|
14234
14234
|
}
|
|
14235
14235
|
class lb {
|
|
@@ -14426,11 +14426,11 @@ class gn {
|
|
|
14426
14426
|
return i.work(20, t) || i.takeTree(), new gn(i);
|
|
14427
14427
|
}
|
|
14428
14428
|
}
|
|
14429
|
-
|
|
14429
|
+
Rt.state = /* @__PURE__ */ Fe.define({
|
|
14430
14430
|
create: gn.init,
|
|
14431
14431
|
update(n, e) {
|
|
14432
14432
|
for (let t of e.effects)
|
|
14433
|
-
if (t.is(
|
|
14433
|
+
if (t.is(Rt.setState))
|
|
14434
14434
|
return t.value;
|
|
14435
14435
|
return e.startState.facet(Pi) != e.state.facet(Pi) ? gn.init(e.state) : n.apply(e);
|
|
14436
14436
|
}
|
|
@@ -14461,13 +14461,13 @@ const Al = typeof navigator < "u" && (!((Vl = navigator.scheduling) === null ||
|
|
|
14461
14461
|
this.view = e, this.working = null, this.workScheduled = 0, this.chunkEnd = -1, this.chunkBudget = -1, this.work = this.work.bind(this), this.scheduleWork();
|
|
14462
14462
|
}
|
|
14463
14463
|
update(e) {
|
|
14464
|
-
let t = this.view.state.field(
|
|
14464
|
+
let t = this.view.state.field(Rt.state).context;
|
|
14465
14465
|
(t.updateViewport(e.view.viewport) || this.view.viewport.to > t.treeLen) && this.scheduleWork(), (e.docChanged || e.selectionSet) && (this.view.hasFocus && (this.chunkBudget += 50), this.scheduleWork()), this.checkAsyncSchedule(t);
|
|
14466
14466
|
}
|
|
14467
14467
|
scheduleWork() {
|
|
14468
14468
|
if (this.working)
|
|
14469
14469
|
return;
|
|
14470
|
-
let { state: e } = this.view, t = e.field(
|
|
14470
|
+
let { state: e } = this.view, t = e.field(Rt.state);
|
|
14471
14471
|
(t.tree != t.context.tree || !t.context.isDone(e.doc.length)) && (this.working = PO(this.work));
|
|
14472
14472
|
}
|
|
14473
14473
|
work(e) {
|
|
@@ -14475,14 +14475,14 @@ const Al = typeof navigator < "u" && (!((Vl = navigator.scheduling) === null ||
|
|
|
14475
14475
|
let t = Date.now();
|
|
14476
14476
|
if (this.chunkEnd < t && (this.chunkEnd < 0 || this.view.hasFocus) && (this.chunkEnd = t + 3e4, this.chunkBudget = 3e3), this.chunkBudget <= 0)
|
|
14477
14477
|
return;
|
|
14478
|
-
let { state: i, viewport: { to: s } } = this.view, r = i.field(
|
|
14478
|
+
let { state: i, viewport: { to: s } } = this.view, r = i.field(Rt.state);
|
|
14479
14479
|
if (r.tree == r.context.tree && r.context.isDone(
|
|
14480
14480
|
s + 1e5
|
|
14481
14481
|
/* Work.MaxParseAhead */
|
|
14482
14482
|
))
|
|
14483
14483
|
return;
|
|
14484
14484
|
let l = Date.now() + Math.min(this.chunkBudget, 100, e && !Al ? Math.max(25, e.timeRemaining() - 5) : 1e9), a = r.context.treeLen < s && i.doc.length > s + 1e3, o = r.context.work(() => Al && Al() || Date.now() > l, s + (a ? 0 : 1e5));
|
|
14485
|
-
this.chunkBudget -= Date.now() - t, (o || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects:
|
|
14485
|
+
this.chunkBudget -= Date.now() - t, (o || this.chunkBudget <= 0) && (r.context.takeTree(), this.view.dispatch({ effects: Rt.setState.of(new gn(r.context)) })), this.chunkBudget > 0 && !(o && !a) && this.scheduleWork(), this.checkAsyncSchedule(r.context);
|
|
14486
14486
|
}
|
|
14487
14487
|
checkAsyncSchedule(e) {
|
|
14488
14488
|
e.scheduleOn && (this.workScheduled++, e.scheduleOn.then(() => this.scheduleWork()).catch((t) => dt(this.view.state, t)).then(() => this.workScheduled--), e.scheduleOn = null);
|
|
@@ -14502,7 +14502,7 @@ const Al = typeof navigator < "u" && (!((Vl = navigator.scheduling) === null ||
|
|
|
14502
14502
|
return n.length ? n[0] : null;
|
|
14503
14503
|
},
|
|
14504
14504
|
enables: (n) => [
|
|
14505
|
-
|
|
14505
|
+
Rt.state,
|
|
14506
14506
|
ab,
|
|
14507
14507
|
se.contentAttributes.compute([n], (e) => {
|
|
14508
14508
|
let t = e.facet(n);
|
|
@@ -14744,7 +14744,7 @@ function TO(n, e, t, i, s) {
|
|
|
14744
14744
|
return o ? a ? n.column(o.from) : n.column(o.to) : n.baseIndent + (a ? 0 : n.unit * t);
|
|
14745
14745
|
}
|
|
14746
14746
|
const eu = (n) => n.baseIndent;
|
|
14747
|
-
function
|
|
14747
|
+
function Vt({ except: n, units: e = 1 } = {}) {
|
|
14748
14748
|
return (t) => {
|
|
14749
14749
|
let i = n && n.test(t.textAfter);
|
|
14750
14750
|
return t.baseIndent + (i ? 0 : e * t.unit);
|
|
@@ -15059,7 +15059,7 @@ class $s {
|
|
|
15059
15059
|
return (i || (i = /* @__PURE__ */ Object.create(null)))["." + o] = a, o;
|
|
15060
15060
|
}
|
|
15061
15061
|
const r = typeof t.all == "string" ? t.all : t.all ? s(t.all) : void 0, l = t.scope;
|
|
15062
|
-
this.scope = l instanceof
|
|
15062
|
+
this.scope = l instanceof Rt ? (a) => a.prop(rn) == l.data : l ? (a) => a == l : void 0, this.style = wO(e.map((a) => ({
|
|
15063
15063
|
tag: a.tag,
|
|
15064
15064
|
class: a.class || s(Object.assign({}, a, { tag: null }))
|
|
15065
15065
|
})), {
|
|
@@ -15357,7 +15357,7 @@ function Ib(n, e) {
|
|
|
15357
15357
|
});
|
|
15358
15358
|
return Hh.push(l), l.id;
|
|
15359
15359
|
}
|
|
15360
|
-
|
|
15360
|
+
qe.RTL, qe.LTR;
|
|
15361
15361
|
const Bb = (n) => {
|
|
15362
15362
|
let { state: e } = n, t = e.doc.lineAt(e.selection.main.from), i = nu(n.state, t.from);
|
|
15363
15363
|
return i.line ? Nb(n) : i.block ? Gb(n) : !1;
|
|
@@ -15680,7 +15680,7 @@ function $n(n, e) {
|
|
|
15680
15680
|
function ti(n, e) {
|
|
15681
15681
|
return n.update({ selection: e, scrollIntoView: !0, userEvent: "select" });
|
|
15682
15682
|
}
|
|
15683
|
-
function
|
|
15683
|
+
function Et({ state: n, dispatch: e }, t) {
|
|
15684
15684
|
let i = $n(n.selection, t);
|
|
15685
15685
|
return i.eq(n.selection, !0) ? !1 : (e(ti(n, i)), !0);
|
|
15686
15686
|
}
|
|
@@ -15688,14 +15688,14 @@ function fl(n, e) {
|
|
|
15688
15688
|
return z.cursor(e ? n.to : n.from);
|
|
15689
15689
|
}
|
|
15690
15690
|
function jO(n, e) {
|
|
15691
|
-
return
|
|
15691
|
+
return Et(n, (t) => t.empty ? n.moveByChar(t, e) : fl(t, e));
|
|
15692
15692
|
}
|
|
15693
15693
|
function lt(n) {
|
|
15694
|
-
return n.textDirectionAt(n.state.selection.main.head) ==
|
|
15694
|
+
return n.textDirectionAt(n.state.selection.main.head) == qe.LTR;
|
|
15695
15695
|
}
|
|
15696
15696
|
const GO = (n) => jO(n, !lt(n)), FO = (n) => jO(n, lt(n));
|
|
15697
15697
|
function HO(n, e) {
|
|
15698
|
-
return
|
|
15698
|
+
return Et(n, (t) => t.empty ? n.moveByGroup(t, e) : fl(t, e));
|
|
15699
15699
|
}
|
|
15700
15700
|
const cy = (n) => HO(n, !lt(n)), fy = (n) => HO(n, lt(n));
|
|
15701
15701
|
function dy(n, e, t) {
|
|
@@ -15715,9 +15715,9 @@ function dl(n, e, t) {
|
|
|
15715
15715
|
let r = i.type.prop(s), l, a;
|
|
15716
15716
|
return r && (l = t ? Gt(n, i.from, 1) : Gt(n, i.to, -1)) && l.matched ? a = t ? l.end.to : l.end.from : a = t ? i.to : i.from, z.cursor(a, t ? -1 : 1);
|
|
15717
15717
|
}
|
|
15718
|
-
const Oy = (n) =>
|
|
15718
|
+
const Oy = (n) => Et(n, (e) => dl(n.state, e, !lt(n))), py = (n) => Et(n, (e) => dl(n.state, e, lt(n)));
|
|
15719
15719
|
function KO(n, e) {
|
|
15720
|
-
return
|
|
15720
|
+
return Et(n, (t) => {
|
|
15721
15721
|
if (!t.empty)
|
|
15722
15722
|
return fl(t, e);
|
|
15723
15723
|
let i = n.moveVertically(t, e);
|
|
@@ -15762,7 +15762,7 @@ function Xi(n, e, t) {
|
|
|
15762
15762
|
}
|
|
15763
15763
|
return s;
|
|
15764
15764
|
}
|
|
15765
|
-
const my = (n) =>
|
|
15765
|
+
const my = (n) => Et(n, (e) => Xi(n, e, !0)), gy = (n) => Et(n, (e) => Xi(n, e, !1)), _y = (n) => Et(n, (e) => Xi(n, e, !lt(n))), Qy = (n) => Et(n, (e) => Xi(n, e, lt(n))), by = (n) => Et(n, (e) => z.cursor(n.lineBlockAt(e.head).from, 1)), yy = (n) => Et(n, (e) => z.cursor(n.lineBlockAt(e.head).to, -1));
|
|
15766
15766
|
function vy(n, e, t) {
|
|
15767
15767
|
let i = !1, s = $n(n.selection, (r) => {
|
|
15768
15768
|
let l = Gt(n, r.head, -1) || Gt(n, r.head, 1) || r.head > 0 && Gt(n, r.head - 1, 1) || r.head < n.doc.length && Gt(n, r.head + 1, -1);
|
|
@@ -16264,7 +16264,7 @@ function qr(n, e) {
|
|
|
16264
16264
|
return e;
|
|
16265
16265
|
}
|
|
16266
16266
|
function _o(n) {
|
|
16267
|
-
let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t =
|
|
16267
|
+
let e = String(n.state.doc.lineAt(n.state.selection.main.head).number), t = Re("input", { class: "cm-textfield", name: "line", value: e }), i = Re("form", {
|
|
16268
16268
|
class: "cm-gotoLine",
|
|
16269
16269
|
onkeydown: (r) => {
|
|
16270
16270
|
r.keyCode == 27 ? (r.preventDefault(), n.dispatch({ effects: Hn.of(!1) }), n.focus()) : r.keyCode == 13 && (r.preventDefault(), s());
|
|
@@ -16272,7 +16272,7 @@ function _o(n) {
|
|
|
16272
16272
|
onsubmit: (r) => {
|
|
16273
16273
|
r.preventDefault(), s();
|
|
16274
16274
|
}
|
|
16275
|
-
},
|
|
16275
|
+
}, Re("label", n.state.phrase("Go to line"), ": ", t), " ", Re("button", { class: "cm-button", type: "submit" }, n.state.phrase("go")), Re("button", {
|
|
16276
16276
|
name: "close",
|
|
16277
16277
|
onclick: () => {
|
|
16278
16278
|
n.dispatch({ effects: Hn.of(!1) }), n.focus();
|
|
@@ -16351,10 +16351,10 @@ function ov(n) {
|
|
|
16351
16351
|
}
|
|
16352
16352
|
const uv = /* @__PURE__ */ pe.mark({ class: "cm-selectionMatch" }), hv = /* @__PURE__ */ pe.mark({ class: "cm-selectionMatch cm-selectionMatch-main" });
|
|
16353
16353
|
function hc(n, e, t, i) {
|
|
16354
|
-
return (t == 0 || n(e.sliceDoc(t - 1, t)) !=
|
|
16354
|
+
return (t == 0 || n(e.sliceDoc(t - 1, t)) != Me.Word) && (i == e.doc.length || n(e.sliceDoc(i, i + 1)) != Me.Word);
|
|
16355
16355
|
}
|
|
16356
16356
|
function cv(n, e, t, i) {
|
|
16357
|
-
return n(e.sliceDoc(t, t + 1)) ==
|
|
16357
|
+
return n(e.sliceDoc(t, t + 1)) == Me.Word && n(e.sliceDoc(i - 1, i)) == Me.Word;
|
|
16358
16358
|
}
|
|
16359
16359
|
const fv = /* @__PURE__ */ Ne.fromClass(class {
|
|
16360
16360
|
constructor(n) {
|
|
@@ -16492,7 +16492,7 @@ function en(n, e, t, i) {
|
|
|
16492
16492
|
return new _n(e.doc, n.unquoted, t, i, n.caseSensitive ? void 0 : (s) => s.toLowerCase(), n.wholeWord ? gv(e.doc, e.charCategorizer(e.selection.main.head)) : void 0);
|
|
16493
16493
|
}
|
|
16494
16494
|
function gv(n, e) {
|
|
16495
|
-
return (t, i, s, r) => ((r > t || r + s.length < i) && (r = Math.max(0, t - 2), s = n.sliceString(r, Math.min(n.length, i + 2))), (e(Mr(s, t - r)) !=
|
|
16495
|
+
return (t, i, s, r) => ((r > t || r + s.length < i) && (r = Math.max(0, t - 2), s = n.sliceString(r, Math.min(n.length, i + 2))), (e(Mr(s, t - r)) != Me.Word || e(Dr(s, t - r)) != Me.Word) && (e(Dr(s, i - r)) != Me.Word || e(Mr(s, i - r)) != Me.Word));
|
|
16496
16496
|
}
|
|
16497
16497
|
class _v extends Sp {
|
|
16498
16498
|
constructor(e) {
|
|
@@ -16555,7 +16555,7 @@ function Dr(n, e) {
|
|
|
16555
16555
|
return n.slice(e, tt(n, e));
|
|
16556
16556
|
}
|
|
16557
16557
|
function Qv(n) {
|
|
16558
|
-
return (e, t, i) => !i[0].length || (n(Mr(i.input, i.index)) !=
|
|
16558
|
+
return (e, t, i) => !i[0].length || (n(Mr(i.input, i.index)) != Me.Word || n(Dr(i.input, i.index)) != Me.Word) && (n(Dr(i.input, i.index + i[0].length)) != Me.Word || n(Mr(i.input, i.index + i[0].length)) != Me.Word);
|
|
16559
16559
|
}
|
|
16560
16560
|
class bv extends Sp {
|
|
16561
16561
|
nextMatch(e, t, i) {
|
|
@@ -16791,7 +16791,7 @@ class kv {
|
|
|
16791
16791
|
constructor(e) {
|
|
16792
16792
|
this.view = e;
|
|
16793
16793
|
let t = this.query = e.state.field(vi).query.spec;
|
|
16794
|
-
this.commit = this.commit.bind(this), this.searchField =
|
|
16794
|
+
this.commit = this.commit.bind(this), this.searchField = Re("input", {
|
|
16795
16795
|
value: t.search,
|
|
16796
16796
|
placeholder: mt(e, "Find"),
|
|
16797
16797
|
"aria-label": mt(e, "Find"),
|
|
@@ -16801,7 +16801,7 @@ class kv {
|
|
|
16801
16801
|
"main-field": "true",
|
|
16802
16802
|
onchange: this.commit,
|
|
16803
16803
|
onkeyup: this.commit
|
|
16804
|
-
}), this.replaceField =
|
|
16804
|
+
}), this.replaceField = Re("input", {
|
|
16805
16805
|
value: t.replace,
|
|
16806
16806
|
placeholder: mt(e, "Replace"),
|
|
16807
16807
|
"aria-label": mt(e, "Replace"),
|
|
@@ -16810,19 +16810,19 @@ class kv {
|
|
|
16810
16810
|
form: "",
|
|
16811
16811
|
onchange: this.commit,
|
|
16812
16812
|
onkeyup: this.commit
|
|
16813
|
-
}), this.caseField =
|
|
16813
|
+
}), this.caseField = Re("input", {
|
|
16814
16814
|
type: "checkbox",
|
|
16815
16815
|
name: "case",
|
|
16816
16816
|
form: "",
|
|
16817
16817
|
checked: t.caseSensitive,
|
|
16818
16818
|
onchange: this.commit
|
|
16819
|
-
}), this.reField =
|
|
16819
|
+
}), this.reField = Re("input", {
|
|
16820
16820
|
type: "checkbox",
|
|
16821
16821
|
name: "re",
|
|
16822
16822
|
form: "",
|
|
16823
16823
|
checked: t.regexp,
|
|
16824
16824
|
onchange: this.commit
|
|
16825
|
-
}), this.wordField =
|
|
16825
|
+
}), this.wordField = Re("input", {
|
|
16826
16826
|
type: "checkbox",
|
|
16827
16827
|
name: "word",
|
|
16828
16828
|
form: "",
|
|
@@ -16830,23 +16830,23 @@ class kv {
|
|
|
16830
16830
|
onchange: this.commit
|
|
16831
16831
|
});
|
|
16832
16832
|
function i(s, r, l) {
|
|
16833
|
-
return
|
|
16833
|
+
return Re("button", { class: "cm-button", name: s, onclick: r, type: "button" }, l);
|
|
16834
16834
|
}
|
|
16835
|
-
this.dom =
|
|
16835
|
+
this.dom = Re("div", { onkeydown: (s) => this.keydown(s), class: "cm-search" }, [
|
|
16836
16836
|
this.searchField,
|
|
16837
16837
|
i("next", () => Lr(e), [mt(e, "next")]),
|
|
16838
16838
|
i("prev", () => zr(e), [mt(e, "previous")]),
|
|
16839
16839
|
i("select", () => xv(e), [mt(e, "all")]),
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16840
|
+
Re("label", null, [this.caseField, mt(e, "match case")]),
|
|
16841
|
+
Re("label", null, [this.reField, mt(e, "regexp")]),
|
|
16842
|
+
Re("label", null, [this.wordField, mt(e, "by word")]),
|
|
16843
16843
|
...e.state.readOnly ? [] : [
|
|
16844
|
-
|
|
16844
|
+
Re("br"),
|
|
16845
16845
|
this.replaceField,
|
|
16846
16846
|
i("replace", () => cc(e), [mt(e, "replace")]),
|
|
16847
16847
|
i("replaceAll", () => wv(e), [mt(e, "replace all")])
|
|
16848
16848
|
],
|
|
16849
|
-
|
|
16849
|
+
Re("button", {
|
|
16850
16850
|
name: "close",
|
|
16851
16851
|
onclick: () => Pp(e),
|
|
16852
16852
|
"aria-label": mt(e, "close"),
|
|
@@ -17176,7 +17176,7 @@ function pc(n, e) {
|
|
|
17176
17176
|
return n ? e ? n + " " + e : n : e;
|
|
17177
17177
|
}
|
|
17178
17178
|
function Yv(n, e, t, i, s, r) {
|
|
17179
|
-
let l = n.textDirection ==
|
|
17179
|
+
let l = n.textDirection == qe.RTL, a = l, o = !1, u = "top", h, c, f = e.left - s.left, d = s.right - e.right, p = i.right - i.left, y = i.bottom - i.top;
|
|
17180
17180
|
if (a && f < Math.min(p, d) ? a = !1 : !a && d < Math.min(p, f) && (a = !0), p <= (a ? f : d))
|
|
17181
17181
|
h = Math.max(s.top, Math.min(t.top, s.bottom - y)) - e.top, c = Math.min(400, a ? f : d);
|
|
17182
17182
|
else {
|
|
@@ -18203,7 +18203,7 @@ function vS(n, e, t, i) {
|
|
|
18203
18203
|
effects: Mi.of(o + e.length),
|
|
18204
18204
|
range: z.cursor(o + e.length)
|
|
18205
18205
|
};
|
|
18206
|
-
if (n.charCategorizer(o)(u) !=
|
|
18206
|
+
if (n.charCategorizer(o)(u) != Me.Word && yc(n, o, s) > -1 && !SS(n, o, e, s))
|
|
18207
18207
|
return {
|
|
18208
18208
|
changes: { insert: e + e, from: o },
|
|
18209
18209
|
effects: Mi.of(o + e.length),
|
|
@@ -18243,11 +18243,11 @@ function SS(n, e, t, i) {
|
|
|
18243
18243
|
}
|
|
18244
18244
|
function yc(n, e, t) {
|
|
18245
18245
|
let i = n.charCategorizer(e);
|
|
18246
|
-
if (i(n.sliceDoc(e - 1, e)) !=
|
|
18246
|
+
if (i(n.sliceDoc(e - 1, e)) != Me.Word)
|
|
18247
18247
|
return e;
|
|
18248
18248
|
for (let s of t) {
|
|
18249
18249
|
let r = e - s.length;
|
|
18250
|
-
if (n.sliceDoc(r, e) == s && i(n.sliceDoc(r - 1, r)) !=
|
|
18250
|
+
if (n.sliceDoc(r, e) == s && i(n.sliceDoc(r - 1, r)) != Me.Word)
|
|
18251
18251
|
return r;
|
|
18252
18252
|
}
|
|
18253
18253
|
return -1;
|
|
@@ -18387,7 +18387,7 @@ function TS(n, e, t) {
|
|
|
18387
18387
|
} : null;
|
|
18388
18388
|
}
|
|
18389
18389
|
function CS(n, e) {
|
|
18390
|
-
return
|
|
18390
|
+
return Re("ul", { class: "cm-tooltip-lint" }, e.map((t) => zp(n, t, !1)));
|
|
18391
18391
|
}
|
|
18392
18392
|
const XS = (n) => {
|
|
18393
18393
|
let e = n.state.field(bt, !1);
|
|
@@ -18438,7 +18438,7 @@ function Lp(n) {
|
|
|
18438
18438
|
function zp(n, e, t) {
|
|
18439
18439
|
var i;
|
|
18440
18440
|
let s = t ? Lp(e.actions) : [];
|
|
18441
|
-
return
|
|
18441
|
+
return Re("li", { class: "cm-diagnostic cm-diagnostic-" + e.severity }, Re("span", { class: "cm-diagnosticText" }, e.renderMessage ? e.renderMessage(n) : e.message), (i = e.actions) === null || i === void 0 ? void 0 : i.map((r, l) => {
|
|
18442
18442
|
let a = !1, o = (f) => {
|
|
18443
18443
|
if (f.preventDefault(), a)
|
|
18444
18444
|
return;
|
|
@@ -18447,17 +18447,17 @@ function zp(n, e, t) {
|
|
|
18447
18447
|
d && r.apply(n, d.from, d.to);
|
|
18448
18448
|
}, { name: u } = r, h = s[l] ? u.indexOf(s[l]) : -1, c = h < 0 ? u : [
|
|
18449
18449
|
u.slice(0, h),
|
|
18450
|
-
|
|
18450
|
+
Re("u", u.slice(h, h + 1)),
|
|
18451
18451
|
u.slice(h + 1)
|
|
18452
18452
|
];
|
|
18453
|
-
return
|
|
18453
|
+
return Re("button", {
|
|
18454
18454
|
type: "button",
|
|
18455
18455
|
class: "cm-diagnosticAction",
|
|
18456
18456
|
onclick: o,
|
|
18457
18457
|
onmousedown: o,
|
|
18458
18458
|
"aria-label": ` Action: ${u}${h < 0 ? "" : ` (access key "${s[l]})"`}.`
|
|
18459
18459
|
}, c);
|
|
18460
|
-
}), e.source &&
|
|
18460
|
+
}), e.source && Re("div", { class: "cm-diagnosticSource" }, e.source));
|
|
18461
18461
|
}
|
|
18462
18462
|
class VS extends Oi {
|
|
18463
18463
|
constructor(e) {
|
|
@@ -18467,7 +18467,7 @@ class VS extends Oi {
|
|
|
18467
18467
|
return e.sev == this.sev;
|
|
18468
18468
|
}
|
|
18469
18469
|
toDOM() {
|
|
18470
|
-
return
|
|
18470
|
+
return Re("span", { class: "cm-lintPoint cm-lintPoint-" + this.sev });
|
|
18471
18471
|
}
|
|
18472
18472
|
}
|
|
18473
18473
|
class xc {
|
|
@@ -18505,13 +18505,13 @@ class ps {
|
|
|
18505
18505
|
for (let r = 0; r < this.items.length; r++)
|
|
18506
18506
|
this.items[r].dom.contains(s.target) && this.moveSelection(r);
|
|
18507
18507
|
};
|
|
18508
|
-
this.list =
|
|
18508
|
+
this.list = Re("ul", {
|
|
18509
18509
|
tabIndex: 0,
|
|
18510
18510
|
role: "listbox",
|
|
18511
18511
|
"aria-label": this.view.state.phrase("Diagnostics"),
|
|
18512
18512
|
onkeydown: t,
|
|
18513
18513
|
onclick: i
|
|
18514
|
-
}), this.dom =
|
|
18514
|
+
}), this.dom = Re("div", { class: "cm-panel-lint" }, this.list, Re("button", {
|
|
18515
18515
|
type: "button",
|
|
18516
18516
|
name: "close",
|
|
18517
18517
|
"aria-label": this.view.state.phrase("close"),
|
|
@@ -19417,7 +19417,7 @@ function US(n, e, t, i) {
|
|
|
19417
19417
|
const gt = typeof process < "u" && process.env && /\bparse\b/.test(process.env.LOG);
|
|
19418
19418
|
let Wl = null;
|
|
19419
19419
|
function kc(n, e, t) {
|
|
19420
|
-
let i = n.cursor(
|
|
19420
|
+
let i = n.cursor(Ve.IncludeAnonymous);
|
|
19421
19421
|
for (i.moveTo(e); ; )
|
|
19422
19422
|
if (!(t < 0 ? i.childBefore(e) : i.childAfter(e)))
|
|
19423
19423
|
for (; ; ) {
|
|
@@ -20321,7 +20321,7 @@ function Gp(n, e) {
|
|
|
20321
20321
|
let o = n.sliceString(l.from, l.to);
|
|
20322
20322
|
i.push({ label: o, type: a });
|
|
20323
20323
|
}
|
|
20324
|
-
return e.cursor(
|
|
20324
|
+
return e.cursor(Ve.IncludeAnonymous).iterate((l) => {
|
|
20325
20325
|
if (s)
|
|
20326
20326
|
s = !1;
|
|
20327
20327
|
else if (l.name) {
|
|
@@ -20377,8 +20377,8 @@ const oi = /* @__PURE__ */ fi.define({
|
|
|
20377
20377
|
parser: /* @__PURE__ */ Bp.configure({
|
|
20378
20378
|
props: [
|
|
20379
20379
|
/* @__PURE__ */ Ni.add({
|
|
20380
|
-
IfStatement: /* @__PURE__ */
|
|
20381
|
-
TryStatement: /* @__PURE__ */
|
|
20380
|
+
IfStatement: /* @__PURE__ */ Vt({ except: /^\s*({|else\b)/ }),
|
|
20381
|
+
TryStatement: /* @__PURE__ */ Vt({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
20382
20382
|
LabeledStatement: eu,
|
|
20383
20383
|
SwitchBody: (n) => {
|
|
20384
20384
|
let e = n.textAfter, t = /^\s*\}/.test(e), i = /^\s*(case|default)\b/.test(e);
|
|
@@ -20387,7 +20387,7 @@ const oi = /* @__PURE__ */ fi.define({
|
|
|
20387
20387
|
Block: /* @__PURE__ */ Jo({ closing: "}" }),
|
|
20388
20388
|
ArrowFunction: (n) => n.baseIndent + n.unit,
|
|
20389
20389
|
"TemplateString BlockComment": () => null,
|
|
20390
|
-
"Statement Property": /* @__PURE__ */
|
|
20390
|
+
"Statement Property": /* @__PURE__ */ Vt({ except: /^\s*{/ }),
|
|
20391
20391
|
JSXElement(n) {
|
|
20392
20392
|
let e = /^\s*<\//.test(n.textAfter);
|
|
20393
20393
|
return n.lineIndent(n.node.from) + (e ? 0 : n.unit);
|
|
@@ -20692,8 +20692,8 @@ const Ax = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
20692
20692
|
parser: /* @__PURE__ */ Fx.configure({
|
|
20693
20693
|
props: [
|
|
20694
20694
|
/* @__PURE__ */ Ni.add({
|
|
20695
|
-
IfStatement: /* @__PURE__ */
|
|
20696
|
-
TryStatement: /* @__PURE__ */
|
|
20695
|
+
IfStatement: /* @__PURE__ */ Vt({ except: /^\s*({|else\b)/ }),
|
|
20696
|
+
TryStatement: /* @__PURE__ */ Vt({ except: /^\s*({|catch|finally)\b/ }),
|
|
20697
20697
|
LabeledStatement: eu,
|
|
20698
20698
|
SwitchBlock: (n) => {
|
|
20699
20699
|
let e = n.textAfter, t = /^\s*\}/.test(e), i = /^\s*(case|default)\b/.test(e);
|
|
@@ -20701,7 +20701,7 @@ const Ax = typeof navigator == "object" && /* @__PURE__ */ /Android\b/.test(navi
|
|
|
20701
20701
|
},
|
|
20702
20702
|
Block: /* @__PURE__ */ Jo({ closing: "}" }),
|
|
20703
20703
|
BlockComment: () => null,
|
|
20704
|
-
Statement: /* @__PURE__ */
|
|
20704
|
+
Statement: /* @__PURE__ */ Vt({ except: /^{/ })
|
|
20705
20705
|
}),
|
|
20706
20706
|
/* @__PURE__ */ ji.add({
|
|
20707
20707
|
"Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody ConstructorBody InterfaceBody ArrayInitializer": ul,
|
|
@@ -21607,7 +21607,7 @@ function rm(n, e, t) {
|
|
|
21607
21607
|
let i = Wc.get(e);
|
|
21608
21608
|
if (i)
|
|
21609
21609
|
return i;
|
|
21610
|
-
let s = [], r = /* @__PURE__ */ new Set(), l = e.cursor(
|
|
21610
|
+
let s = [], r = /* @__PURE__ */ new Set(), l = e.cursor(Ve.IncludeAnonymous);
|
|
21611
21611
|
if (l.firstChild())
|
|
21612
21612
|
do
|
|
21613
21613
|
for (let a of rm(n, l.node, t))
|
|
@@ -21656,7 +21656,7 @@ const R$ = (n) => (e) => {
|
|
|
21656
21656
|
parser: /* @__PURE__ */ $$.configure({
|
|
21657
21657
|
props: [
|
|
21658
21658
|
/* @__PURE__ */ Ni.add({
|
|
21659
|
-
Declaration: /* @__PURE__ */
|
|
21659
|
+
Declaration: /* @__PURE__ */ Vt()
|
|
21660
21660
|
}),
|
|
21661
21661
|
/* @__PURE__ */ ji.add({
|
|
21662
21662
|
"Block KeyframeList": ul
|
|
@@ -22057,7 +22057,7 @@ function pw(n, e, t) {
|
|
|
22057
22057
|
let mw = /* @__PURE__ */ rw.configure({
|
|
22058
22058
|
props: [
|
|
22059
22059
|
/* @__PURE__ */ Ni.add({
|
|
22060
|
-
Statement: /* @__PURE__ */
|
|
22060
|
+
Statement: /* @__PURE__ */ Vt()
|
|
22061
22061
|
}),
|
|
22062
22062
|
/* @__PURE__ */ ji.add({
|
|
22063
22063
|
Statement(n, e) {
|
|
@@ -22572,7 +22572,7 @@ function $m(n, e) {
|
|
|
22572
22572
|
let o = n.sliceString(l.from, l.to);
|
|
22573
22573
|
i.push({ label: o, type: a });
|
|
22574
22574
|
}
|
|
22575
|
-
return e.cursor(
|
|
22575
|
+
return e.cursor(Ve.IncludeAnonymous).iterate((l) => {
|
|
22576
22576
|
if (s)
|
|
22577
22577
|
s = !1;
|
|
22578
22578
|
else if (l.name) {
|
|
@@ -22623,8 +22623,8 @@ const Kt = /* @__PURE__ */ fi.define({
|
|
|
22623
22623
|
parser: /* @__PURE__ */ Bp.configure({
|
|
22624
22624
|
props: [
|
|
22625
22625
|
/* @__PURE__ */ Ni.add({
|
|
22626
|
-
IfStatement: /* @__PURE__ */
|
|
22627
|
-
TryStatement: /* @__PURE__ */
|
|
22626
|
+
IfStatement: /* @__PURE__ */ Vt({ except: /^\s*({|else\b)/ }),
|
|
22627
|
+
TryStatement: /* @__PURE__ */ Vt({ except: /^\s*({|catch\b|finally\b)/ }),
|
|
22628
22628
|
LabeledStatement: eu,
|
|
22629
22629
|
SwitchBody: (n) => {
|
|
22630
22630
|
let e = n.textAfter, t = /^\s*\}/.test(e), i = /^\s*(case|default)\b/.test(e);
|
|
@@ -22633,7 +22633,7 @@ const Kt = /* @__PURE__ */ fi.define({
|
|
|
22633
22633
|
Block: /* @__PURE__ */ Jo({ closing: "}" }),
|
|
22634
22634
|
ArrowFunction: (n) => n.baseIndent + n.unit,
|
|
22635
22635
|
"TemplateString BlockComment": () => null,
|
|
22636
|
-
"Statement Property": /* @__PURE__ */
|
|
22636
|
+
"Statement Property": /* @__PURE__ */ Vt({ except: /^{/ }),
|
|
22637
22637
|
JSXElement(n) {
|
|
22638
22638
|
let e = /^\s*<\//.test(n.textAfter);
|
|
22639
22639
|
return n.lineIndent(n.node.from) + (e ? 0 : n.unit);
|
|
@@ -25371,22 +25371,22 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25371
25371
|
Di.error("没有活动的表格");
|
|
25372
25372
|
return;
|
|
25373
25373
|
}
|
|
25374
|
-
let
|
|
25374
|
+
let D = !1, X = {}, G = {};
|
|
25375
25375
|
r.value.config.forEach((Y, B) => {
|
|
25376
25376
|
Y.forEach((M, te) => {
|
|
25377
|
-
if ((M.row !== B || M.col !== te) && (M.row = B, M.col = te,
|
|
25377
|
+
if ((M.row !== B || M.col !== te) && (M.row = B, M.col = te, D = !0), M.rowSpan > 1 || M.colSpan > 1) {
|
|
25378
25378
|
let ne = `${M.row}-${M.col}`, A = [M.row, M.col];
|
|
25379
25379
|
for (let W = M.row; W < M.row + M.rowSpan; W++)
|
|
25380
25380
|
for (let Qe = M.col; Qe < M.col + M.colSpan; Qe++) {
|
|
25381
25381
|
let Ce = `${W}-${Qe}`;
|
|
25382
|
-
X[Ce] = A, G[ne] || (G[ne] = []), G[ne].push(Ce), r.value && (W > M.row || Qe > M.col) && (
|
|
25382
|
+
X[Ce] = A, G[ne] || (G[ne] = []), G[ne].push(Ce), r.value && (W > M.row || Qe > M.col) && (D = !0, r.value.config[W][Qe].colSpan = 0, r.value.config[W][Qe].rowSpan = 0);
|
|
25383
25383
|
}
|
|
25384
25384
|
}
|
|
25385
25385
|
});
|
|
25386
25386
|
}), r.value.rowConfig.forEach((Y, B) => {
|
|
25387
|
-
Y.index !== B && (Y.index = B,
|
|
25387
|
+
Y.index !== B && (Y.index = B, D = !0);
|
|
25388
25388
|
}), r.value.colConfig.forEach((Y, B) => {
|
|
25389
|
-
Y.index !== B && (Y.index = B,
|
|
25389
|
+
Y.index !== B && (Y.index = B, D = !0);
|
|
25390
25390
|
}), r.value.config.forEach((Y, B) => {
|
|
25391
25391
|
Y.forEach((M, te) => {
|
|
25392
25392
|
const ne = `${M.row}-${M.col}`;
|
|
@@ -25394,11 +25394,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25394
25394
|
if (M.mergeTarget.length !== 2)
|
|
25395
25395
|
return delete M.mergeTarget, !1;
|
|
25396
25396
|
const A = `${M.mergeTarget[0]}-${M.mergeTarget[1]}`;
|
|
25397
|
-
(!G[A] || !G[A].includes(ne)) && (delete M.mergeTarget, M.colSpan = 1, M.rowSpan = 1,
|
|
25397
|
+
(!G[A] || !G[A].includes(ne)) && (delete M.mergeTarget, M.colSpan = 1, M.rowSpan = 1, D = !0);
|
|
25398
25398
|
} else
|
|
25399
25399
|
(M.rowSpan === 0 || M.colSpan === 0) && (X[ne] ? M.mergeTarget = X[ne] : (M.rowSpan = 1, M.colSpan = 1));
|
|
25400
25400
|
});
|
|
25401
|
-
}),
|
|
25401
|
+
}), D ? Di.success("表格已修复") : Di.info("表格没有错误");
|
|
25402
25402
|
}
|
|
25403
25403
|
const Z = {
|
|
25404
25404
|
type: "text",
|
|
@@ -25411,7 +25411,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25411
25411
|
fontFamily: "",
|
|
25412
25412
|
textAlign: "center",
|
|
25413
25413
|
verticalAlign: "middle",
|
|
25414
|
-
format:
|
|
25414
|
+
format: Xe.TEXT,
|
|
25415
25415
|
formatType: {
|
|
25416
25416
|
numberDecimal: 0,
|
|
25417
25417
|
numberUseGrouping: !1,
|
|
@@ -25435,7 +25435,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25435
25435
|
fontFamily: "",
|
|
25436
25436
|
textAlign: "center",
|
|
25437
25437
|
verticalAlign: "middle",
|
|
25438
|
-
format:
|
|
25438
|
+
format: Xe.TEXT,
|
|
25439
25439
|
formatType: {
|
|
25440
25440
|
numberDecimal: 0,
|
|
25441
25441
|
numberUseGrouping: !1,
|
|
@@ -25451,24 +25451,24 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25451
25451
|
}), $ = _e(() => o.value && u.value && u.value.type ? [Oe.TEXT, Oe.FIELD, Oe.FUN].includes(u.value.type) : [Oe.TEXT, Oe.FIELD, Oe.FUN].includes(S.type));
|
|
25452
25452
|
let P = be(null), w = _e(() => {
|
|
25453
25453
|
if (r.value !== void 0 && r.value !== null && s.value !== null) {
|
|
25454
|
-
let
|
|
25455
|
-
return s.value.map((G) =>
|
|
25454
|
+
let D = r.value.config;
|
|
25455
|
+
return s.value.map((G) => D[G.row][G.col]).filter((G) => (G.rowSpan === 1 && G.colSpan, G.rowSpan !== 0 && G.colSpan !== 0)).length <= 1;
|
|
25456
25456
|
} else
|
|
25457
25457
|
return !0;
|
|
25458
25458
|
});
|
|
25459
25459
|
const k = _e(() => {
|
|
25460
25460
|
if (r.value !== null && s.value !== null) {
|
|
25461
|
-
let
|
|
25462
|
-
return s.value.map((G) =>
|
|
25461
|
+
let D = r.value.config;
|
|
25462
|
+
return s.value.map((G) => D[G.row][G.col]).filter((G) => G.rowSpan > 1 || G.colSpan > 1).length !== 1;
|
|
25463
25463
|
} else
|
|
25464
25464
|
return !1;
|
|
25465
25465
|
});
|
|
25466
25466
|
function R() {
|
|
25467
25467
|
if (s.value && t.value && r.value && l.value !== null && l.value > -1 && s.value.length) {
|
|
25468
|
-
let
|
|
25468
|
+
let D = /* @__PURE__ */ new Set(), X = /* @__PURE__ */ new Set();
|
|
25469
25469
|
s.value.forEach((A) => {
|
|
25470
|
-
|
|
25471
|
-
}), Array.from(
|
|
25470
|
+
D.add(A.col), X.add(A.row);
|
|
25471
|
+
}), Array.from(D).forEach((A) => {
|
|
25472
25472
|
var Qe;
|
|
25473
25473
|
let W = (Qe = r.value) == null ? void 0 : Qe.colConfig[A];
|
|
25474
25474
|
W && W.isFixed;
|
|
@@ -25477,7 +25477,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25477
25477
|
let W = (Qe = r.value) == null ? void 0 : Qe.colConfig[A];
|
|
25478
25478
|
W && W.isFixed;
|
|
25479
25479
|
});
|
|
25480
|
-
const G = Math.min(...
|
|
25480
|
+
const G = Math.min(...D), Y = Math.min(...X), B = Math.max(...D), M = Math.max(...X), te = B - G + 1, ne = M - Y + 1;
|
|
25481
25481
|
for (let A = Y; A <= M; A++)
|
|
25482
25482
|
for (let W = G; W <= B; W++) {
|
|
25483
25483
|
const Qe = r.value.config[A][W];
|
|
@@ -25496,17 +25496,17 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25496
25496
|
}
|
|
25497
25497
|
function Q() {
|
|
25498
25498
|
if (s.value && t.value && r.value && s.value.length) {
|
|
25499
|
-
const
|
|
25499
|
+
const D = [];
|
|
25500
25500
|
s.value.forEach((X) => {
|
|
25501
25501
|
const G = r.value.config[X.row][X.col];
|
|
25502
|
-
(G.colSpan > 1 || G.rowSpan > 1) &&
|
|
25502
|
+
(G.colSpan > 1 || G.rowSpan > 1) && D.push({
|
|
25503
25503
|
row: X.row,
|
|
25504
25504
|
col: X.col,
|
|
25505
25505
|
type: G.type,
|
|
25506
25506
|
rowSpan: G.rowSpan,
|
|
25507
25507
|
colSpan: G.colSpan
|
|
25508
25508
|
});
|
|
25509
|
-
}),
|
|
25509
|
+
}), D.forEach((X) => {
|
|
25510
25510
|
const { row: G, col: Y, rowSpan: B, colSpan: M } = X, te = G + B - 1, ne = Y + M - 1;
|
|
25511
25511
|
for (let A = G; A <= te; A++)
|
|
25512
25512
|
for (let W = Y; W <= ne; W++) {
|
|
@@ -25531,16 +25531,16 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25531
25531
|
};
|
|
25532
25532
|
}
|
|
25533
25533
|
function U() {
|
|
25534
|
-
s.value && r.value && s.value.length && (s.value.forEach((
|
|
25535
|
-
let X = r.value.config[
|
|
25534
|
+
s.value && r.value && s.value.length && (s.value.forEach((D) => {
|
|
25535
|
+
let X = r.value.config[D.row][D.col];
|
|
25536
25536
|
X.format = P.value.format, X.formatType = { ...P.value.formatType }, X.style = { ...P.value.style };
|
|
25537
25537
|
}), P.value = null);
|
|
25538
25538
|
}
|
|
25539
25539
|
function N() {
|
|
25540
|
-
s.value && t.value && s.value.length && s.value.forEach((
|
|
25540
|
+
s.value && t.value && s.value.length && s.value.forEach((D) => {
|
|
25541
25541
|
var G;
|
|
25542
|
-
let X = (G = t.value) == null ? void 0 : G.tableConfig[l.value].config[
|
|
25543
|
-
X.type = Oe.TEXT, X.format =
|
|
25542
|
+
let X = (G = t.value) == null ? void 0 : G.tableConfig[l.value].config[D.row][D.col];
|
|
25543
|
+
X.type = Oe.TEXT, X.format = Xe.TEXT, X.text = "", X.formatType = { numberDecimal: 0, numberUseGrouping: !1, currencySymbol: "¥", scientificNotation: "e", digits: 0, date: "YYYY-MM-DD HH:mm:ss" }, X.data = "", X.style = {
|
|
25544
25544
|
backgroundColor: "",
|
|
25545
25545
|
color: "",
|
|
25546
25546
|
textAlign: "center",
|
|
@@ -25553,9 +25553,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25553
25553
|
}
|
|
25554
25554
|
Qs(
|
|
25555
25555
|
() => s.value,
|
|
25556
|
-
(
|
|
25557
|
-
if (
|
|
25558
|
-
const G =
|
|
25556
|
+
(D, X) => {
|
|
25557
|
+
if (D && D.length && t.value && r.value) {
|
|
25558
|
+
const G = D.map(({ row: Y, col: B }) => {
|
|
25559
25559
|
var M;
|
|
25560
25560
|
return (M = r.value) == null ? void 0 : M.config[Y][B];
|
|
25561
25561
|
});
|
|
@@ -25589,7 +25589,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25589
25589
|
}), c.value = [...Y], f.value = [...B], y.value = Y.size === 1, d.value = B.size === 1, y ? (g.value = r.value.colConfig[c.value[0]], S.colSize = g.value.size, S.colFixed = g.value.isFixed) : g.value = null, d ? (p.value = r.value.rowConfig[f.value[0]], S.rowSize = p.value.size, S.rowFixed = p.value.isFixed) : p.value = null;
|
|
25590
25590
|
}
|
|
25591
25591
|
}
|
|
25592
|
-
(!
|
|
25592
|
+
(!D || D && D.length === 0) && (o.value = !1, u.value = null, h.value = !1, c.value = [], f.value = [], d.value = !1, p.value = null, y.value = !1, g.value = null);
|
|
25593
25593
|
},
|
|
25594
25594
|
{
|
|
25595
25595
|
immediate: !0,
|
|
@@ -25597,25 +25597,29 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25597
25597
|
}
|
|
25598
25598
|
);
|
|
25599
25599
|
const K = be("");
|
|
25600
|
-
function J(
|
|
25600
|
+
function J(D, X, G) {
|
|
25601
25601
|
X === "cell" && s.value.forEach((Y) => {
|
|
25602
|
-
if (
|
|
25603
|
-
const { isError: B, result: M } = fg(
|
|
25602
|
+
if (Xt(r.value.config[Y.row][Y.col], G, D), G === "data" && !D && u.value && (u.value.isGroup = !1, u.value.isRowColCombine = !1), G === "fun") {
|
|
25603
|
+
const { isError: B, result: M } = fg(D, !1);
|
|
25604
25604
|
B ? K.value = M : K.value = "";
|
|
25605
25605
|
}
|
|
25606
25606
|
if (G === "type" && t.value && r.value)
|
|
25607
|
-
switch (
|
|
25607
|
+
switch (D) {
|
|
25608
25608
|
case Oe.TEXT:
|
|
25609
|
-
|
|
25609
|
+
Xt(r.value.config[Y.row][Y.col], "data", ""), Xt(r.value.config[Y.row][Y.col], "fun", ""), Xt(r.value.config[Y.row][Y.col], "format", Xe.TEXT), S.format = Xe.TEXT;
|
|
25610
|
+
break;
|
|
25611
|
+
default:
|
|
25612
|
+
Xt(r.value.config[Y.row][Y.col], "text", ""), S.format = Xe.TEXT;
|
|
25613
|
+
break;
|
|
25610
25614
|
}
|
|
25611
25615
|
}), X === "row" && f.value.forEach((Y) => {
|
|
25612
|
-
|
|
25616
|
+
Xt(r.value.rowConfig[Y], G, D), G === "data" && p.value && !D && (p.value.loop = !1, p.value.dataIndex = 0);
|
|
25613
25617
|
}), X === "col" && c.value.forEach((Y) => {
|
|
25614
|
-
|
|
25618
|
+
Xt(r.value.colConfig[Y], G, D);
|
|
25615
25619
|
});
|
|
25616
25620
|
}
|
|
25617
25621
|
const ge = _e(() => t.value ? t.value.data.source : []), Se = _e(() => {
|
|
25618
|
-
let
|
|
25622
|
+
let D = [];
|
|
25619
25623
|
if (o.value) {
|
|
25620
25624
|
if (d.value) {
|
|
25621
25625
|
let X = ge.value.find((G) => {
|
|
@@ -25624,7 +25628,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25624
25628
|
});
|
|
25625
25629
|
if (X = He(X), X && X.columns) {
|
|
25626
25630
|
const G = X.columns.map((Y) => (Y.name = `行:${X.name}/${Y.name}`, Y.columnName = `row:${Y.columnName}`, Y));
|
|
25627
|
-
|
|
25631
|
+
D = D.concat(G);
|
|
25628
25632
|
}
|
|
25629
25633
|
}
|
|
25630
25634
|
if (y.value) {
|
|
@@ -25634,11 +25638,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25634
25638
|
});
|
|
25635
25639
|
if (X = He(X), X && X.columns) {
|
|
25636
25640
|
const G = X.columns.map((Y) => (Y.name = `列:${X.name}/${Y.name}`, Y.columnName = `col:${Y.columnName}`, Y));
|
|
25637
|
-
|
|
25641
|
+
D = D.concat(G);
|
|
25638
25642
|
}
|
|
25639
25643
|
}
|
|
25640
25644
|
}
|
|
25641
|
-
return
|
|
25645
|
+
return D;
|
|
25642
25646
|
});
|
|
25643
25647
|
function me() {
|
|
25644
25648
|
if (r.value) {
|
|
@@ -25647,13 +25651,13 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25647
25651
|
}), r.value.rowConfig.forEach((Y, B) => {
|
|
25648
25652
|
Y.index = B;
|
|
25649
25653
|
});
|
|
25650
|
-
const
|
|
25654
|
+
const D = {};
|
|
25651
25655
|
let X = !1, G = [];
|
|
25652
25656
|
r.value.config.forEach((Y, B) => {
|
|
25653
25657
|
Y.forEach((M, te) => {
|
|
25654
|
-
if (M.row = B, M.col = te, (M.rowSpan > 1 || M.colSpan > 1) && (
|
|
25658
|
+
if (M.row = B, M.col = te, (M.rowSpan > 1 || M.colSpan > 1) && (D[`${M.row}-${M.col}`] = [B, te]), (M.rowSpan == 0 || M.colSpan == 0) && M.mergeTarget && M.mergeTarget.length === 2) {
|
|
25655
25659
|
let [ne, A] = M.mergeTarget, W = `${ne}-${A}`;
|
|
25656
|
-
M.mergeTarget =
|
|
25660
|
+
M.mergeTarget = D[W];
|
|
25657
25661
|
} else
|
|
25658
25662
|
(M.rowSpan == 0 || M.colSpan == 0) && (!M.mergeTarget || M.mergeTarget.length !== 2) && (X = !0, G.push(M));
|
|
25659
25663
|
});
|
|
@@ -25667,68 +25671,68 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25667
25671
|
}
|
|
25668
25672
|
function he() {
|
|
25669
25673
|
if (r.value && c.value.length > 0) {
|
|
25670
|
-
let
|
|
25671
|
-
if (
|
|
25672
|
-
let X = a.value.filter((Y) =>
|
|
25674
|
+
let D = Math.min(...c.value);
|
|
25675
|
+
if (D >= 0) {
|
|
25676
|
+
let X = a.value.filter((Y) => D > Y.sc && D <= Y.ec), G = {};
|
|
25673
25677
|
X.forEach(({ sr: Y, sc: B, er: M }) => {
|
|
25674
25678
|
let te = r.value.config[Y][B];
|
|
25675
25679
|
te.colSpan += 1;
|
|
25676
25680
|
for (let ne = Y; ne <= M; ne++)
|
|
25677
25681
|
G[ne] = [Y, B];
|
|
25678
|
-
}), r.value.colConfig.splice(
|
|
25682
|
+
}), r.value.colConfig.splice(D, 0, He(Xu)), r.value.config.forEach((Y, B) => {
|
|
25679
25683
|
let M = He(Ts), te = G[B];
|
|
25680
|
-
te && (M.colSpan = 0, M.rowSpan = 0, M.mergeTarget = te), Y.splice(
|
|
25684
|
+
te && (M.colSpan = 0, M.rowSpan = 0, M.mergeTarget = te), Y.splice(D, 0, M);
|
|
25681
25685
|
}), me(), s.value = s.value.map((Y) => (Y.col += 1, Y));
|
|
25682
25686
|
}
|
|
25683
25687
|
}
|
|
25684
25688
|
}
|
|
25685
25689
|
function F() {
|
|
25686
25690
|
if (r.value && c.value.length > 0) {
|
|
25687
|
-
let
|
|
25688
|
-
a.value.filter((B) =>
|
|
25689
|
-
if (
|
|
25691
|
+
let D = Math.min(...c.value), X = Math.max(...c.value), G = c.value.length;
|
|
25692
|
+
a.value.filter((B) => D <= B.ec && X >= B.sc).forEach(({ sr: B, sc: M, er: te, ec: ne }) => {
|
|
25693
|
+
if (D > M && D <= ne) {
|
|
25690
25694
|
const A = r.value.config[B][M];
|
|
25691
|
-
X <= ne ? A.colSpan -= G : A.colSpan -= ne -
|
|
25692
|
-
} else if (
|
|
25695
|
+
X <= ne ? A.colSpan -= G : A.colSpan -= ne - D + 1;
|
|
25696
|
+
} else if (D <= M && X >= M)
|
|
25693
25697
|
for (let A = B; A <= te; A++)
|
|
25694
25698
|
for (let W = M; W <= ne; W++) {
|
|
25695
25699
|
const Qe = r.value.config[A][W];
|
|
25696
25700
|
Qe.rowSpan = 1, Qe.colSpan = 1, Qe.mergeTarget = void 0;
|
|
25697
25701
|
}
|
|
25698
|
-
}), r.value.colConfig.splice(
|
|
25699
|
-
B.splice(
|
|
25702
|
+
}), r.value.colConfig.splice(D, G), r.value.config.forEach((B) => {
|
|
25703
|
+
B.splice(D, G);
|
|
25700
25704
|
}), me(), s.value = null;
|
|
25701
25705
|
}
|
|
25702
25706
|
}
|
|
25703
25707
|
function I() {
|
|
25704
25708
|
if (r.value && c.value.length > 0) {
|
|
25705
|
-
let
|
|
25706
|
-
if (
|
|
25707
|
-
let X = a.value.filter((Y) =>
|
|
25709
|
+
let D = Math.max(...c.value);
|
|
25710
|
+
if (D > 0) {
|
|
25711
|
+
let X = a.value.filter((Y) => D >= Y.sc && D < Y.ec), G = {};
|
|
25708
25712
|
X.forEach(({ sr: Y, sc: B, er: M }) => {
|
|
25709
25713
|
let te = r.value.config[Y][B];
|
|
25710
25714
|
te.colSpan += 1;
|
|
25711
25715
|
for (let ne = Y; ne <= M; ne++)
|
|
25712
25716
|
G[ne] = [Y, B];
|
|
25713
|
-
}), r.value.colConfig.splice(
|
|
25717
|
+
}), r.value.colConfig.splice(D + 1, 0, He(Xu)), r.value.config.forEach((Y, B) => {
|
|
25714
25718
|
let M = He(Ts), te = G[B];
|
|
25715
|
-
te && (M.colSpan = 0, M.rowSpan = 0, M.mergeTarget = te), Y.splice(
|
|
25719
|
+
te && (M.colSpan = 0, M.rowSpan = 0, M.mergeTarget = te), Y.splice(D + 1, 0, M);
|
|
25716
25720
|
}), me();
|
|
25717
25721
|
}
|
|
25718
25722
|
}
|
|
25719
25723
|
}
|
|
25720
25724
|
function q() {
|
|
25721
25725
|
if (r.value && f.value.length > 0) {
|
|
25722
|
-
let
|
|
25723
|
-
if (
|
|
25724
|
-
let X = a.value.filter((Y) =>
|
|
25726
|
+
let D = Math.min(...f.value);
|
|
25727
|
+
if (D >= 0) {
|
|
25728
|
+
let X = a.value.filter((Y) => D > Y.sr && D <= Y.er), G = {};
|
|
25725
25729
|
X.forEach(({ sr: Y, sc: B, er: M, ec: te }) => {
|
|
25726
25730
|
let ne = r.value.config[Y][B];
|
|
25727
25731
|
ne.rowSpan += 1;
|
|
25728
25732
|
for (let A = B; A <= te; A++)
|
|
25729
25733
|
G[A] = [Y, B];
|
|
25730
|
-
}), r.value.rowConfig.splice(
|
|
25731
|
-
|
|
25734
|
+
}), r.value.rowConfig.splice(D, 0, He(Ru)), r.value.config.splice(
|
|
25735
|
+
D,
|
|
25732
25736
|
0,
|
|
25733
25737
|
r.value.colConfig.map((Y, B) => {
|
|
25734
25738
|
let M = He(Ts), te = G[B];
|
|
@@ -25746,32 +25750,32 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25746
25750
|
}
|
|
25747
25751
|
function j() {
|
|
25748
25752
|
if (r.value && f.value.length > 0) {
|
|
25749
|
-
let
|
|
25750
|
-
a.value.filter((B) =>
|
|
25751
|
-
if (
|
|
25753
|
+
let D = Math.min(...f.value), X = Math.max(...f.value), G = f.value.length;
|
|
25754
|
+
a.value.filter((B) => D <= B.er && X >= B.sr).forEach(({ sr: B, sc: M, er: te, ec: ne }) => {
|
|
25755
|
+
if (D > B && D <= te) {
|
|
25752
25756
|
const A = r.value.config[B][M];
|
|
25753
|
-
X <= te ? A.rowSpan -= G : A.rowSpan -= te -
|
|
25754
|
-
} else if (
|
|
25757
|
+
X <= te ? A.rowSpan -= G : A.rowSpan -= te - D + 1;
|
|
25758
|
+
} else if (D <= B && X >= B)
|
|
25755
25759
|
for (let A = B; A <= te; A++)
|
|
25756
25760
|
for (let W = M; W <= ne; W++) {
|
|
25757
25761
|
const Qe = r.value.config[A][W];
|
|
25758
25762
|
Qe.rowSpan = 1, Qe.colSpan = 1, Qe.mergeTarget = void 0;
|
|
25759
25763
|
}
|
|
25760
|
-
}), r.value.rowConfig.splice(
|
|
25764
|
+
}), r.value.rowConfig.splice(D, G), r.value.config.splice(D, G), s.value = [], me();
|
|
25761
25765
|
}
|
|
25762
25766
|
}
|
|
25763
25767
|
function ee() {
|
|
25764
25768
|
if (r.value && f.value.length > 0) {
|
|
25765
|
-
let
|
|
25766
|
-
if (
|
|
25767
|
-
let X = a.value.filter((Y) =>
|
|
25769
|
+
let D = Math.max(...f.value);
|
|
25770
|
+
if (D >= 0) {
|
|
25771
|
+
let X = a.value.filter((Y) => D >= Y.sr && D < Y.er), G = {};
|
|
25768
25772
|
X.forEach(({ sr: Y, sc: B, er: M, ec: te }) => {
|
|
25769
25773
|
let ne = r.value.config[Y][B];
|
|
25770
25774
|
ne.rowSpan += 1;
|
|
25771
25775
|
for (let A = B; A <= te; A++)
|
|
25772
25776
|
G[A] = [Y, B];
|
|
25773
|
-
}), r.value.rowConfig.splice(
|
|
25774
|
-
|
|
25777
|
+
}), r.value.rowConfig.splice(D + 1, 0, He(Ru)), r.value.config.splice(
|
|
25778
|
+
D + 1,
|
|
25775
25779
|
0,
|
|
25776
25780
|
r.value.colConfig.map((Y, B) => {
|
|
25777
25781
|
let M = He(Ts), te = G[B];
|
|
@@ -25783,11 +25787,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25783
25787
|
}
|
|
25784
25788
|
function fe() {
|
|
25785
25789
|
if (t.value && t.value.tableConfig) {
|
|
25786
|
-
let
|
|
25787
|
-
dg(
|
|
25790
|
+
let D = { config: [], colConfig: [], rowConfig: [] };
|
|
25791
|
+
dg(D), t.value.tableConfig.push(D);
|
|
25788
25792
|
}
|
|
25789
25793
|
}
|
|
25790
|
-
return (
|
|
25794
|
+
return (D, X) => {
|
|
25791
25795
|
const G = ue("el-button-group"), Y = ue("el-col"), B = ue("el-input-number"), M = ue("el-option"), te = ue("el-select"), ne = ue("el-tooltip");
|
|
25792
25796
|
return E(), H(oe, null, [
|
|
25793
25797
|
_(s) && _(s).length ? (E(), H(oe, { key: 0 }, [
|
|
@@ -25799,13 +25803,13 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25799
25803
|
onClick: v
|
|
25800
25804
|
}, {
|
|
25801
25805
|
default: b(() => [
|
|
25802
|
-
|
|
25806
|
+
L(" 修复表格 ")
|
|
25803
25807
|
]),
|
|
25804
25808
|
_: 1
|
|
25805
25809
|
}, 8, ["disabled"]),
|
|
25806
25810
|
m(_(Te), { onClick: fe }, {
|
|
25807
25811
|
default: b(() => [
|
|
25808
|
-
|
|
25812
|
+
L("增加子表")
|
|
25809
25813
|
]),
|
|
25810
25814
|
_: 1
|
|
25811
25815
|
}),
|
|
@@ -25814,7 +25818,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25814
25818
|
onClick: R
|
|
25815
25819
|
}, {
|
|
25816
25820
|
default: b(() => [
|
|
25817
|
-
|
|
25821
|
+
L(" 合并表格 ")
|
|
25818
25822
|
]),
|
|
25819
25823
|
_: 1
|
|
25820
25824
|
}, 8, ["disabled"]),
|
|
@@ -25823,7 +25827,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25823
25827
|
onClick: Q
|
|
25824
25828
|
}, {
|
|
25825
25829
|
default: b(() => [
|
|
25826
|
-
|
|
25830
|
+
L(" 拆分表格 ")
|
|
25827
25831
|
]),
|
|
25828
25832
|
_: 1
|
|
25829
25833
|
}, 8, ["disabled"]),
|
|
@@ -25832,7 +25836,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25832
25836
|
disabled: _(s).length === 0
|
|
25833
25837
|
}, {
|
|
25834
25838
|
default: b(() => [
|
|
25835
|
-
|
|
25839
|
+
L(" 取消选择 ")
|
|
25836
25840
|
]),
|
|
25837
25841
|
_: 1
|
|
25838
25842
|
}, 8, ["disabled"]),
|
|
@@ -25841,7 +25845,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25841
25845
|
disabled: _(s).length === 0
|
|
25842
25846
|
}, {
|
|
25843
25847
|
default: b(() => [
|
|
25844
|
-
|
|
25848
|
+
L(" 复制样式 ")
|
|
25845
25849
|
]),
|
|
25846
25850
|
_: 1
|
|
25847
25851
|
}, 8, ["disabled"]),
|
|
@@ -25850,13 +25854,13 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25850
25854
|
disabled: _(P) === null
|
|
25851
25855
|
}, {
|
|
25852
25856
|
default: b(() => [
|
|
25853
|
-
|
|
25857
|
+
L(" 粘贴样式 ")
|
|
25854
25858
|
]),
|
|
25855
25859
|
_: 1
|
|
25856
25860
|
}, 8, ["disabled"]),
|
|
25857
25861
|
m(_(Te), { onClick: N }, {
|
|
25858
25862
|
default: b(() => [
|
|
25859
|
-
|
|
25863
|
+
L("清除选中")
|
|
25860
25864
|
]),
|
|
25861
25865
|
_: 1
|
|
25862
25866
|
})
|
|
@@ -25864,6 +25868,44 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25864
25868
|
_: 1
|
|
25865
25869
|
}),
|
|
25866
25870
|
qP,
|
|
25871
|
+
m(Y, { span: 24 }, {
|
|
25872
|
+
default: b(() => [
|
|
25873
|
+
m(_(ye), { label: "单元格类型" }, {
|
|
25874
|
+
default: b(() => [
|
|
25875
|
+
m(_(Gi), {
|
|
25876
|
+
modelValue: S.type,
|
|
25877
|
+
"onUpdate:modelValue": X[0] || (X[0] = (A) => S.type = A),
|
|
25878
|
+
class: "report-button-group",
|
|
25879
|
+
onChange: X[1] || (X[1] = (A) => J(A, "cell", "type"))
|
|
25880
|
+
}, {
|
|
25881
|
+
default: b(() => [
|
|
25882
|
+
m(_(De), { label: "text" }, {
|
|
25883
|
+
default: b(() => [
|
|
25884
|
+
L("文本")
|
|
25885
|
+
]),
|
|
25886
|
+
_: 1
|
|
25887
|
+
}),
|
|
25888
|
+
m(_(De), { label: "field" }, {
|
|
25889
|
+
default: b(() => [
|
|
25890
|
+
L("数据")
|
|
25891
|
+
]),
|
|
25892
|
+
_: 1
|
|
25893
|
+
}),
|
|
25894
|
+
m(_(De), { label: "fun" }, {
|
|
25895
|
+
default: b(() => [
|
|
25896
|
+
L("函数")
|
|
25897
|
+
]),
|
|
25898
|
+
_: 1
|
|
25899
|
+
})
|
|
25900
|
+
]),
|
|
25901
|
+
_: 1
|
|
25902
|
+
}, 8, ["modelValue"])
|
|
25903
|
+
]),
|
|
25904
|
+
_: 1
|
|
25905
|
+
})
|
|
25906
|
+
]),
|
|
25907
|
+
_: 1
|
|
25908
|
+
}),
|
|
25867
25909
|
_($) ? (E(), H(oe, { key: 0 }, [
|
|
25868
25910
|
m(Y, { span: 8 }, {
|
|
25869
25911
|
default: b(() => [
|
|
@@ -25871,8 +25913,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25871
25913
|
default: b(() => [
|
|
25872
25914
|
m(_(ku), {
|
|
25873
25915
|
modelValue: S.color,
|
|
25874
|
-
"onUpdate:modelValue": X[
|
|
25875
|
-
onChange: X[
|
|
25916
|
+
"onUpdate:modelValue": X[2] || (X[2] = (A) => S.color = A),
|
|
25917
|
+
onChange: X[3] || (X[3] = (A) => J(A, "cell", "style.color"))
|
|
25876
25918
|
}, null, 8, ["modelValue"])
|
|
25877
25919
|
]),
|
|
25878
25920
|
_: 1
|
|
@@ -25886,8 +25928,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25886
25928
|
default: b(() => [
|
|
25887
25929
|
m(_(ku), {
|
|
25888
25930
|
modelValue: S.backgroundColor,
|
|
25889
|
-
"onUpdate:modelValue": X[
|
|
25890
|
-
onChange: X[
|
|
25931
|
+
"onUpdate:modelValue": X[4] || (X[4] = (A) => S.backgroundColor = A),
|
|
25932
|
+
onChange: X[5] || (X[5] = (A) => J(A, "cell", "style.backgroundColor"))
|
|
25891
25933
|
}, null, 8, ["modelValue"])
|
|
25892
25934
|
]),
|
|
25893
25935
|
_: 1
|
|
@@ -25906,8 +25948,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25906
25948
|
"active-value": "bold",
|
|
25907
25949
|
"inactive-value": "normal",
|
|
25908
25950
|
modelValue: S.fontWeight,
|
|
25909
|
-
"onUpdate:modelValue": X[
|
|
25910
|
-
onChange: X[
|
|
25951
|
+
"onUpdate:modelValue": X[6] || (X[6] = (A) => S.fontWeight = A),
|
|
25952
|
+
onChange: X[7] || (X[7] = (A) => J(A, "cell", "style.fontWeight"))
|
|
25911
25953
|
}, null, 8, ["modelValue"])
|
|
25912
25954
|
]),
|
|
25913
25955
|
_: 1
|
|
@@ -25921,11 +25963,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25921
25963
|
default: b(() => [
|
|
25922
25964
|
m(B, {
|
|
25923
25965
|
modelValue: S.fontSize,
|
|
25924
|
-
"onUpdate:modelValue": X[
|
|
25966
|
+
"onUpdate:modelValue": X[8] || (X[8] = (A) => S.fontSize = A),
|
|
25925
25967
|
"controls-position": "right",
|
|
25926
25968
|
min: 12,
|
|
25927
25969
|
step: 2,
|
|
25928
|
-
onChange: X[
|
|
25970
|
+
onChange: X[9] || (X[9] = (A) => J(A, "cell", "style.fontSize"))
|
|
25929
25971
|
}, null, 8, ["modelValue"])
|
|
25930
25972
|
]),
|
|
25931
25973
|
_: 1
|
|
@@ -25939,8 +25981,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
25939
25981
|
default: b(() => [
|
|
25940
25982
|
m(te, {
|
|
25941
25983
|
modelValue: S.fontFamily,
|
|
25942
|
-
"onUpdate:modelValue": X[
|
|
25943
|
-
onChange: X[
|
|
25984
|
+
"onUpdate:modelValue": X[10] || (X[10] = (A) => S.fontFamily = A),
|
|
25985
|
+
onChange: X[11] || (X[11] = (A) => J(A, "cell", "style.fontFamily")),
|
|
25944
25986
|
clearable: ""
|
|
25945
25987
|
}, {
|
|
25946
25988
|
default: b(() => [
|
|
@@ -26013,11 +26055,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26013
26055
|
default: b(() => [
|
|
26014
26056
|
m(_(Gi), {
|
|
26015
26057
|
modelValue: S.textAlign,
|
|
26016
|
-
"onUpdate:modelValue": X[
|
|
26017
|
-
onChange: X[
|
|
26058
|
+
"onUpdate:modelValue": X[12] || (X[12] = (A) => S.textAlign = A),
|
|
26059
|
+
onChange: X[13] || (X[13] = (A) => J(A, "cell", "style.textAlign"))
|
|
26018
26060
|
}, {
|
|
26019
26061
|
default: b(() => [
|
|
26020
|
-
m(_(
|
|
26062
|
+
m(_(De), {
|
|
26021
26063
|
label: "left",
|
|
26022
26064
|
title: "左对齐"
|
|
26023
26065
|
}, {
|
|
@@ -26026,7 +26068,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26026
26068
|
]),
|
|
26027
26069
|
_: 1
|
|
26028
26070
|
}),
|
|
26029
|
-
m(_(
|
|
26071
|
+
m(_(De), {
|
|
26030
26072
|
label: "center",
|
|
26031
26073
|
title: "居中对齐"
|
|
26032
26074
|
}, {
|
|
@@ -26035,7 +26077,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26035
26077
|
]),
|
|
26036
26078
|
_: 1
|
|
26037
26079
|
}),
|
|
26038
|
-
m(_(
|
|
26080
|
+
m(_(De), {
|
|
26039
26081
|
label: "right",
|
|
26040
26082
|
title: "右对齐"
|
|
26041
26083
|
}, {
|
|
@@ -26059,11 +26101,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26059
26101
|
default: b(() => [
|
|
26060
26102
|
m(_(Gi), {
|
|
26061
26103
|
modelValue: S.verticalAlign,
|
|
26062
|
-
"onUpdate:modelValue": X[
|
|
26063
|
-
onChange: X[
|
|
26104
|
+
"onUpdate:modelValue": X[14] || (X[14] = (A) => S.verticalAlign = A),
|
|
26105
|
+
onChange: X[15] || (X[15] = (A) => J(A, "cell", "style.verticalAlign"))
|
|
26064
26106
|
}, {
|
|
26065
26107
|
default: b(() => [
|
|
26066
|
-
m(_(
|
|
26108
|
+
m(_(De), {
|
|
26067
26109
|
label: "top",
|
|
26068
26110
|
title: "顶部对齐"
|
|
26069
26111
|
}, {
|
|
@@ -26072,7 +26114,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26072
26114
|
]),
|
|
26073
26115
|
_: 1
|
|
26074
26116
|
}),
|
|
26075
|
-
m(_(
|
|
26117
|
+
m(_(De), {
|
|
26076
26118
|
label: "middle",
|
|
26077
26119
|
title: "垂直居中"
|
|
26078
26120
|
}, {
|
|
@@ -26081,7 +26123,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26081
26123
|
]),
|
|
26082
26124
|
_: 1
|
|
26083
26125
|
}),
|
|
26084
|
-
m(_(
|
|
26126
|
+
m(_(De), {
|
|
26085
26127
|
label: "bottom",
|
|
26086
26128
|
title: "底部对齐"
|
|
26087
26129
|
}, {
|
|
@@ -26099,58 +26141,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26099
26141
|
]),
|
|
26100
26142
|
_: 1
|
|
26101
26143
|
}),
|
|
26102
|
-
m(Y, { span: 24 }, {
|
|
26103
|
-
default: b(() => [
|
|
26104
|
-
m(_(ye), { label: "单元格类型" }, {
|
|
26105
|
-
default: b(() => [
|
|
26106
|
-
m(_(Gi), {
|
|
26107
|
-
modelValue: S.type,
|
|
26108
|
-
"onUpdate:modelValue": X[14] || (X[14] = (A) => S.type = A),
|
|
26109
|
-
class: "report-button-group",
|
|
26110
|
-
onChange: X[15] || (X[15] = (A) => J(A, "cell", "type"))
|
|
26111
|
-
}, {
|
|
26112
|
-
default: b(() => [
|
|
26113
|
-
m(_(Ee), { label: "text" }, {
|
|
26114
|
-
default: b(() => [
|
|
26115
|
-
D("文本")
|
|
26116
|
-
]),
|
|
26117
|
-
_: 1
|
|
26118
|
-
}),
|
|
26119
|
-
m(_(Ee), { label: "icon" }, {
|
|
26120
|
-
default: b(() => [
|
|
26121
|
-
D("图标")
|
|
26122
|
-
]),
|
|
26123
|
-
_: 1
|
|
26124
|
-
}),
|
|
26125
|
-
m(_(Ee), { label: "image" }, {
|
|
26126
|
-
default: b(() => [
|
|
26127
|
-
D("图片")
|
|
26128
|
-
]),
|
|
26129
|
-
_: 1
|
|
26130
|
-
}),
|
|
26131
|
-
m(_(Ee), { label: "field" }, {
|
|
26132
|
-
default: b(() => [
|
|
26133
|
-
D("数据")
|
|
26134
|
-
]),
|
|
26135
|
-
_: 1
|
|
26136
|
-
}),
|
|
26137
|
-
m(_(Ee), { label: "fun" }, {
|
|
26138
|
-
default: b(() => [
|
|
26139
|
-
D("函数")
|
|
26140
|
-
]),
|
|
26141
|
-
_: 1
|
|
26142
|
-
})
|
|
26143
|
-
]),
|
|
26144
|
-
_: 1
|
|
26145
|
-
}, 8, ["modelValue"])
|
|
26146
|
-
]),
|
|
26147
|
-
_: 1
|
|
26148
|
-
})
|
|
26149
|
-
]),
|
|
26150
|
-
_: 1
|
|
26151
|
-
}),
|
|
26152
26144
|
_(o) && _(u) ? (E(), H(oe, { key: 0 }, [
|
|
26153
|
-
|
|
26145
|
+
Ut(m(Y, { span: 24 }, {
|
|
26154
26146
|
default: b(() => [
|
|
26155
26147
|
m(_(ye), { label: "文本" }, {
|
|
26156
26148
|
default: b(() => [
|
|
@@ -26165,11 +26157,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26165
26157
|
]),
|
|
26166
26158
|
_: 1
|
|
26167
26159
|
}, 512), [
|
|
26168
|
-
[
|
|
26160
|
+
[Wt, _(u).type === _(Oe).TEXT]
|
|
26169
26161
|
]),
|
|
26170
|
-
|
|
26162
|
+
Ut(m(Y, { span: 24 }, {
|
|
26171
26163
|
default: b(() => [
|
|
26172
|
-
S.format !== _(
|
|
26164
|
+
S.format !== _(Xe).STRING ? (E(), ae(_(ye), {
|
|
26173
26165
|
key: 0,
|
|
26174
26166
|
label: "数据字段"
|
|
26175
26167
|
}, {
|
|
@@ -26199,11 +26191,11 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26199
26191
|
placement: "top-start"
|
|
26200
26192
|
}, {
|
|
26201
26193
|
content: b(() => [
|
|
26202
|
-
|
|
26194
|
+
L(" 数据对象化在数据源中设置 "),
|
|
26203
26195
|
HP,
|
|
26204
|
-
|
|
26196
|
+
L(" 从对象化后的数据中获取数据 "),
|
|
26205
26197
|
KP,
|
|
26206
|
-
|
|
26198
|
+
L(" ${data.a.b.c} ")
|
|
26207
26199
|
]),
|
|
26208
26200
|
default: b(() => [
|
|
26209
26201
|
JP
|
|
@@ -26223,9 +26215,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26223
26215
|
]),
|
|
26224
26216
|
_: 1
|
|
26225
26217
|
}, 512), [
|
|
26226
|
-
[
|
|
26218
|
+
[Wt, _(u).type === _(Oe).FIELD]
|
|
26227
26219
|
]),
|
|
26228
|
-
|
|
26220
|
+
Ut(m(Y, { span: 24 }, {
|
|
26229
26221
|
default: b(() => [
|
|
26230
26222
|
m(_(ye), {
|
|
26231
26223
|
label: "函数",
|
|
@@ -26243,9 +26235,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26243
26235
|
]),
|
|
26244
26236
|
_: 1
|
|
26245
26237
|
}, 512), [
|
|
26246
|
-
[
|
|
26238
|
+
[Wt, _(u).type === _(Oe).FUN]
|
|
26247
26239
|
]),
|
|
26248
|
-
|
|
26240
|
+
Ut(m(Y, { span: 24 }, {
|
|
26249
26241
|
default: b(() => [
|
|
26250
26242
|
m(_(ye), { label: "数据操作" }, {
|
|
26251
26243
|
default: b(() => [
|
|
@@ -26254,7 +26246,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26254
26246
|
"onUpdate:modelValue": X[23] || (X[23] = (A) => _(u).isGroup = A)
|
|
26255
26247
|
}, {
|
|
26256
26248
|
default: b(() => [
|
|
26257
|
-
|
|
26249
|
+
L("分组")
|
|
26258
26250
|
]),
|
|
26259
26251
|
_: 1
|
|
26260
26252
|
}, 8, ["modelValue"]),
|
|
@@ -26263,7 +26255,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26263
26255
|
"onUpdate:modelValue": X[24] || (X[24] = (A) => _(u).isRowColCombine = A)
|
|
26264
26256
|
}, {
|
|
26265
26257
|
default: b(() => [
|
|
26266
|
-
|
|
26258
|
+
L("行列组合")
|
|
26267
26259
|
]),
|
|
26268
26260
|
_: 1
|
|
26269
26261
|
}, 8, ["modelValue"])
|
|
@@ -26273,7 +26265,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26273
26265
|
]),
|
|
26274
26266
|
_: 1
|
|
26275
26267
|
}, 512), [
|
|
26276
|
-
[
|
|
26268
|
+
[Wt, _(u).type === _(Oe).FIELD && S.format !== _(Xe).STRING]
|
|
26277
26269
|
])
|
|
26278
26270
|
], 64)) : ce("", !0),
|
|
26279
26271
|
m(Y, { span: 24 }, {
|
|
@@ -26286,8 +26278,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26286
26278
|
onChange: X[26] || (X[26] = (A) => J(A, "cell", "format"))
|
|
26287
26279
|
}, {
|
|
26288
26280
|
default: b(() => [
|
|
26289
|
-
m(_(
|
|
26290
|
-
label: _(
|
|
26281
|
+
m(_(De), {
|
|
26282
|
+
label: _(Xe).TEXT,
|
|
26291
26283
|
title: "文本"
|
|
26292
26284
|
}, {
|
|
26293
26285
|
default: b(() => [
|
|
@@ -26295,8 +26287,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26295
26287
|
]),
|
|
26296
26288
|
_: 1
|
|
26297
26289
|
}, 8, ["label"]),
|
|
26298
|
-
m(_(
|
|
26299
|
-
label: _(
|
|
26290
|
+
m(_(De), {
|
|
26291
|
+
label: _(Xe).NUMBER,
|
|
26300
26292
|
title: "数字"
|
|
26301
26293
|
}, {
|
|
26302
26294
|
default: b(() => [
|
|
@@ -26304,8 +26296,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26304
26296
|
]),
|
|
26305
26297
|
_: 1
|
|
26306
26298
|
}, 8, ["label"]),
|
|
26307
|
-
m(_(
|
|
26308
|
-
label: _(
|
|
26299
|
+
m(_(De), {
|
|
26300
|
+
label: _(Xe).CURRENCY,
|
|
26309
26301
|
title: "货币"
|
|
26310
26302
|
}, {
|
|
26311
26303
|
default: b(() => [
|
|
@@ -26313,26 +26305,26 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26313
26305
|
]),
|
|
26314
26306
|
_: 1
|
|
26315
26307
|
}, 8, ["label"]),
|
|
26316
|
-
m(_(
|
|
26317
|
-
label: _(
|
|
26308
|
+
m(_(De), {
|
|
26309
|
+
label: _(Xe).PERCENT,
|
|
26318
26310
|
title: "百分比"
|
|
26319
26311
|
}, {
|
|
26320
26312
|
default: b(() => [
|
|
26321
|
-
|
|
26313
|
+
L(" % ")
|
|
26322
26314
|
]),
|
|
26323
26315
|
_: 1
|
|
26324
26316
|
}, 8, ["label"]),
|
|
26325
|
-
m(_(
|
|
26326
|
-
label: _(
|
|
26317
|
+
m(_(De), {
|
|
26318
|
+
label: _(Xe).PROMILLE,
|
|
26327
26319
|
title: "千分比"
|
|
26328
26320
|
}, {
|
|
26329
26321
|
default: b(() => [
|
|
26330
|
-
|
|
26322
|
+
L(" ‰ ")
|
|
26331
26323
|
]),
|
|
26332
26324
|
_: 1
|
|
26333
26325
|
}, 8, ["label"]),
|
|
26334
|
-
m(_(
|
|
26335
|
-
label: _(
|
|
26326
|
+
m(_(De), {
|
|
26327
|
+
label: _(Xe).SCIENTIFIC,
|
|
26336
26328
|
title: "科学计数法"
|
|
26337
26329
|
}, {
|
|
26338
26330
|
default: b(() => [
|
|
@@ -26340,8 +26332,8 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26340
26332
|
]),
|
|
26341
26333
|
_: 1
|
|
26342
26334
|
}, 8, ["label"]),
|
|
26343
|
-
m(_(
|
|
26344
|
-
label: _(
|
|
26335
|
+
m(_(De), {
|
|
26336
|
+
label: _(Xe).DATETIME,
|
|
26345
26337
|
title: "日期时间"
|
|
26346
26338
|
}, {
|
|
26347
26339
|
default: b(() => [
|
|
@@ -26349,9 +26341,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26349
26341
|
]),
|
|
26350
26342
|
_: 1
|
|
26351
26343
|
}, 8, ["label"]),
|
|
26352
|
-
S.type === _(Oe).FIELD ? (E(), ae(_(
|
|
26344
|
+
S.type === _(Oe).FIELD ? (E(), ae(_(De), {
|
|
26353
26345
|
key: 0,
|
|
26354
|
-
label: _(
|
|
26346
|
+
label: _(Xe).STRING,
|
|
26355
26347
|
title: "自定义格式化"
|
|
26356
26348
|
}, {
|
|
26357
26349
|
default: b(() => [
|
|
@@ -26369,7 +26361,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26369
26361
|
_: 1
|
|
26370
26362
|
}),
|
|
26371
26363
|
S.formatType ? (E(), H(oe, { key: 1 }, [
|
|
26372
|
-
|
|
26364
|
+
Ut(m(Y, { span: 12 }, {
|
|
26373
26365
|
default: b(() => [
|
|
26374
26366
|
m(_(ye), { label: "小数位数" }, {
|
|
26375
26367
|
default: b(() => [
|
|
@@ -26387,9 +26379,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26387
26379
|
]),
|
|
26388
26380
|
_: 1
|
|
26389
26381
|
}, 512), [
|
|
26390
|
-
[
|
|
26382
|
+
[Wt, S.format && [_(Xe).NUMBER, _(Xe).CURRENCY, _(Xe).PERCENT, _(Xe).PROMILLE].includes(S.format)]
|
|
26391
26383
|
]),
|
|
26392
|
-
|
|
26384
|
+
Ut(m(Y, { span: 12 }, {
|
|
26393
26385
|
default: b(() => [
|
|
26394
26386
|
m(_(ye), { label: "千分位分隔" }, {
|
|
26395
26387
|
default: b(() => [
|
|
@@ -26404,9 +26396,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26404
26396
|
]),
|
|
26405
26397
|
_: 1
|
|
26406
26398
|
}, 512), [
|
|
26407
|
-
[
|
|
26399
|
+
[Wt, S.format && [_(Xe).NUMBER, _(Xe).CURRENCY].includes(S.format)]
|
|
26408
26400
|
]),
|
|
26409
|
-
|
|
26401
|
+
Ut(m(Y, { span: 24 }, {
|
|
26410
26402
|
default: b(() => [
|
|
26411
26403
|
m(_(ye), { label: "货币符号" }, {
|
|
26412
26404
|
default: b(() => [
|
|
@@ -26416,27 +26408,27 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26416
26408
|
onChange: X[32] || (X[32] = (A) => J(A, "cell", "formatType.currencySymbol"))
|
|
26417
26409
|
}, {
|
|
26418
26410
|
default: b(() => [
|
|
26419
|
-
m(_(
|
|
26411
|
+
m(_(De), { value: "¥" }, {
|
|
26420
26412
|
default: b(() => [
|
|
26421
|
-
|
|
26413
|
+
L("人民币 ¥")
|
|
26422
26414
|
]),
|
|
26423
26415
|
_: 1
|
|
26424
26416
|
}),
|
|
26425
|
-
m(_(
|
|
26417
|
+
m(_(De), { value: "$" }, {
|
|
26426
26418
|
default: b(() => [
|
|
26427
|
-
|
|
26419
|
+
L("美元 $")
|
|
26428
26420
|
]),
|
|
26429
26421
|
_: 1
|
|
26430
26422
|
}),
|
|
26431
|
-
m(_(
|
|
26423
|
+
m(_(De), { value: "€" }, {
|
|
26432
26424
|
default: b(() => [
|
|
26433
|
-
|
|
26425
|
+
L("欧元 €")
|
|
26434
26426
|
]),
|
|
26435
26427
|
_: 1
|
|
26436
26428
|
}),
|
|
26437
|
-
m(_(
|
|
26429
|
+
m(_(De), { value: "£" }, {
|
|
26438
26430
|
default: b(() => [
|
|
26439
|
-
|
|
26431
|
+
L("英镑 £")
|
|
26440
26432
|
]),
|
|
26441
26433
|
_: 1
|
|
26442
26434
|
})
|
|
@@ -26449,9 +26441,9 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26449
26441
|
]),
|
|
26450
26442
|
_: 1
|
|
26451
26443
|
}, 512), [
|
|
26452
|
-
[
|
|
26444
|
+
[Wt, S.format === "currency"]
|
|
26453
26445
|
]),
|
|
26454
|
-
S.format === _(
|
|
26446
|
+
S.format === _(Xe).SCIENTIFIC ? (E(), H(oe, { key: 0 }, [
|
|
26455
26447
|
m(Y, { span: 24 }, {
|
|
26456
26448
|
default: b(() => [
|
|
26457
26449
|
m(_(ye), { label: "指数符号" }, {
|
|
@@ -26462,15 +26454,15 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26462
26454
|
onChange: X[34] || (X[34] = (A) => J(A, "cell", "formatType.scientificNotation"))
|
|
26463
26455
|
}, {
|
|
26464
26456
|
default: b(() => [
|
|
26465
|
-
m(_(
|
|
26457
|
+
m(_(De), { label: "E" }, {
|
|
26466
26458
|
default: b(() => [
|
|
26467
|
-
|
|
26459
|
+
L("E (1.23E+6)")
|
|
26468
26460
|
]),
|
|
26469
26461
|
_: 1
|
|
26470
26462
|
}),
|
|
26471
|
-
m(_(
|
|
26463
|
+
m(_(De), { label: "e" }, {
|
|
26472
26464
|
default: b(() => [
|
|
26473
|
-
|
|
26465
|
+
L("e (1.23e+6)")
|
|
26474
26466
|
]),
|
|
26475
26467
|
_: 1
|
|
26476
26468
|
})
|
|
@@ -26502,7 +26494,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26502
26494
|
_: 1
|
|
26503
26495
|
})
|
|
26504
26496
|
], 64)) : ce("", !0),
|
|
26505
|
-
|
|
26497
|
+
Ut(m(Y, { span: 24 }, {
|
|
26506
26498
|
default: b(() => [
|
|
26507
26499
|
m(_(ye), { label: "日期格式" }, {
|
|
26508
26500
|
default: b(() => [
|
|
@@ -26535,7 +26527,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26535
26527
|
]),
|
|
26536
26528
|
_: 1
|
|
26537
26529
|
}, 512), [
|
|
26538
|
-
[
|
|
26530
|
+
[Wt, S.format === _(Xe).DATETIME]
|
|
26539
26531
|
])
|
|
26540
26532
|
], 64)) : ce("", !0),
|
|
26541
26533
|
_(o) && _(u) ? (E(), ae(Y, {
|
|
@@ -26564,12 +26556,12 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26564
26556
|
"onUpdate:modelValue": X[39] || (X[39] = (A) => _(u).customRender = A)
|
|
26565
26557
|
}, {
|
|
26566
26558
|
"pre-code": b(() => [
|
|
26567
|
-
|
|
26559
|
+
L("function (cell,style,data){")
|
|
26568
26560
|
]),
|
|
26569
26561
|
"next-code": b(() => [
|
|
26570
|
-
|
|
26562
|
+
L(" return cell "),
|
|
26571
26563
|
ak,
|
|
26572
|
-
|
|
26564
|
+
L(" } ")
|
|
26573
26565
|
]),
|
|
26574
26566
|
_: 1
|
|
26575
26567
|
}, 8, ["modelValue"])
|
|
@@ -26591,7 +26583,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26591
26583
|
plain: ""
|
|
26592
26584
|
}, {
|
|
26593
26585
|
default: b(() => [
|
|
26594
|
-
|
|
26586
|
+
L(" + 上 ")
|
|
26595
26587
|
]),
|
|
26596
26588
|
_: 1
|
|
26597
26589
|
}),
|
|
@@ -26601,7 +26593,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26601
26593
|
plain: ""
|
|
26602
26594
|
}, {
|
|
26603
26595
|
default: b(() => [
|
|
26604
|
-
|
|
26596
|
+
L(" 删 ")
|
|
26605
26597
|
]),
|
|
26606
26598
|
_: 1
|
|
26607
26599
|
}),
|
|
@@ -26610,7 +26602,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26610
26602
|
plain: ""
|
|
26611
26603
|
}, {
|
|
26612
26604
|
default: b(() => [
|
|
26613
|
-
|
|
26605
|
+
L(" 下 + ")
|
|
26614
26606
|
]),
|
|
26615
26607
|
_: 1
|
|
26616
26608
|
})
|
|
@@ -26632,7 +26624,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26632
26624
|
onClick: X[42] || (X[42] = (A) => J(25, "row", "size"))
|
|
26633
26625
|
}, {
|
|
26634
26626
|
default: b(() => [
|
|
26635
|
-
|
|
26627
|
+
L("重置")
|
|
26636
26628
|
]),
|
|
26637
26629
|
_: 1
|
|
26638
26630
|
})
|
|
@@ -26730,7 +26722,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26730
26722
|
plain: ""
|
|
26731
26723
|
}, {
|
|
26732
26724
|
default: b(() => [
|
|
26733
|
-
|
|
26725
|
+
L(" + 左 ")
|
|
26734
26726
|
]),
|
|
26735
26727
|
_: 1
|
|
26736
26728
|
}),
|
|
@@ -26740,7 +26732,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26740
26732
|
plain: ""
|
|
26741
26733
|
}, {
|
|
26742
26734
|
default: b(() => [
|
|
26743
|
-
|
|
26735
|
+
L(" 删 ")
|
|
26744
26736
|
]),
|
|
26745
26737
|
_: 1
|
|
26746
26738
|
}),
|
|
@@ -26749,7 +26741,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26749
26741
|
plain: ""
|
|
26750
26742
|
}, {
|
|
26751
26743
|
default: b(() => [
|
|
26752
|
-
|
|
26744
|
+
L(" 右 + ")
|
|
26753
26745
|
]),
|
|
26754
26746
|
_: 1
|
|
26755
26747
|
})
|
|
@@ -26770,7 +26762,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26770
26762
|
onClick: X[52] || (X[52] = (A) => S.colSize = 80)
|
|
26771
26763
|
}, {
|
|
26772
26764
|
default: b(() => [
|
|
26773
|
-
|
|
26765
|
+
L("重置")
|
|
26774
26766
|
]),
|
|
26775
26767
|
_: 1
|
|
26776
26768
|
})
|
|
@@ -26965,7 +26957,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26965
26957
|
"onUpdate:modelValue": a[3] || (a[3] = (g) => _(t).width = g)
|
|
26966
26958
|
}, {
|
|
26967
26959
|
suffix: b(() => [
|
|
26968
|
-
|
|
26960
|
+
L(Ue(_(t).widthType), 1)
|
|
26969
26961
|
]),
|
|
26970
26962
|
_: 1
|
|
26971
26963
|
}, 8, ["modelValue"])
|
|
@@ -26987,7 +26979,7 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
26987
26979
|
onChange: a[5] || (a[5] = (g) => r(g, "width", "number"))
|
|
26988
26980
|
}, {
|
|
26989
26981
|
suffix: b(() => [
|
|
26990
|
-
|
|
26982
|
+
L("px")
|
|
26991
26983
|
]),
|
|
26992
26984
|
_: 1
|
|
26993
26985
|
}, 8, ["disabled", "modelValue"])
|
|
@@ -27038,31 +27030,31 @@ const EP = /* @__PURE__ */ V("div", { class: "statement-option-title" }, [
|
|
|
27038
27030
|
default: b(() => [
|
|
27039
27031
|
m(p, { label: "blue" }, {
|
|
27040
27032
|
default: b(() => [
|
|
27041
|
-
|
|
27033
|
+
L("蓝色")
|
|
27042
27034
|
]),
|
|
27043
27035
|
_: 1
|
|
27044
27036
|
}),
|
|
27045
27037
|
m(p, { label: "green" }, {
|
|
27046
27038
|
default: b(() => [
|
|
27047
|
-
|
|
27039
|
+
L("绿色")
|
|
27048
27040
|
]),
|
|
27049
27041
|
_: 1
|
|
27050
27042
|
}),
|
|
27051
27043
|
m(p, { label: "gray" }, {
|
|
27052
27044
|
default: b(() => [
|
|
27053
|
-
|
|
27045
|
+
L("灰色")
|
|
27054
27046
|
]),
|
|
27055
27047
|
_: 1
|
|
27056
27048
|
}),
|
|
27057
27049
|
m(p, { label: "dark" }, {
|
|
27058
27050
|
default: b(() => [
|
|
27059
|
-
|
|
27051
|
+
L("暗黑")
|
|
27060
27052
|
]),
|
|
27061
27053
|
_: 1
|
|
27062
27054
|
}),
|
|
27063
27055
|
m(p, { label: "red" }, {
|
|
27064
27056
|
default: b(() => [
|
|
27065
|
-
|
|
27057
|
+
L("红色")
|
|
27066
27058
|
]),
|
|
27067
27059
|
_: 1
|
|
27068
27060
|
})
|
|
@@ -27226,7 +27218,7 @@ const _k = function(n, e) {
|
|
|
27226
27218
|
u = {}, t.value && (d = (g = (y = t.value.data) == null ? void 0 : y.source) == null ? void 0 : g.map(({ name: O, key: v, columns: Z }) => ({
|
|
27227
27219
|
label: O,
|
|
27228
27220
|
value: v,
|
|
27229
|
-
children: Z.map(({ name: S, columnName: $ }) => ($ = $.toUpperCase(),
|
|
27221
|
+
children: Z.map(({ name: S, columnName: $ }) => ($ = $.toUpperCase(), Xt(u, `${v}.${$}`, S), {
|
|
27230
27222
|
label: S,
|
|
27231
27223
|
value: $
|
|
27232
27224
|
}))
|
|
@@ -27240,7 +27232,7 @@ const _k = function(n, e) {
|
|
|
27240
27232
|
children: $.map(({ name: P, columnName: w }) => {
|
|
27241
27233
|
w = w.toUpperCase();
|
|
27242
27234
|
let k = P || w;
|
|
27243
|
-
return
|
|
27235
|
+
return Xt(u, `${O}.${S}.${w}`, k), {
|
|
27244
27236
|
label: k,
|
|
27245
27237
|
value: w
|
|
27246
27238
|
};
|
|
@@ -27326,13 +27318,13 @@ const _k = function(n, e) {
|
|
|
27326
27318
|
default: b(() => [
|
|
27327
27319
|
m(S, { label: "px" }, {
|
|
27328
27320
|
default: b(() => [
|
|
27329
|
-
|
|
27321
|
+
L("像素")
|
|
27330
27322
|
]),
|
|
27331
27323
|
_: 1
|
|
27332
27324
|
}),
|
|
27333
27325
|
m(S, { label: "%" }, {
|
|
27334
27326
|
default: b(() => [
|
|
27335
|
-
|
|
27327
|
+
L("百分比")
|
|
27336
27328
|
]),
|
|
27337
27329
|
_: 1
|
|
27338
27330
|
})
|
|
@@ -27372,13 +27364,13 @@ const _k = function(n, e) {
|
|
|
27372
27364
|
default: b(() => [
|
|
27373
27365
|
m(S, { label: "px" }, {
|
|
27374
27366
|
default: b(() => [
|
|
27375
|
-
|
|
27367
|
+
L("像素")
|
|
27376
27368
|
]),
|
|
27377
27369
|
_: 1
|
|
27378
27370
|
}),
|
|
27379
27371
|
m(S, { label: "%" }, {
|
|
27380
27372
|
default: b(() => [
|
|
27381
|
-
|
|
27373
|
+
L("百分比")
|
|
27382
27374
|
]),
|
|
27383
27375
|
_: 1
|
|
27384
27376
|
})
|
|
@@ -27485,19 +27477,19 @@ const _k = function(n, e) {
|
|
|
27485
27477
|
default: b(() => [
|
|
27486
27478
|
m(S, { label: "top" }, {
|
|
27487
27479
|
default: b(() => [
|
|
27488
|
-
|
|
27480
|
+
L("上")
|
|
27489
27481
|
]),
|
|
27490
27482
|
_: 1
|
|
27491
27483
|
}),
|
|
27492
27484
|
m(S, { label: "inside" }, {
|
|
27493
27485
|
default: b(() => [
|
|
27494
|
-
|
|
27486
|
+
L("中")
|
|
27495
27487
|
]),
|
|
27496
27488
|
_: 1
|
|
27497
27489
|
}),
|
|
27498
27490
|
m(S, { label: "bottom" }, {
|
|
27499
27491
|
default: b(() => [
|
|
27500
|
-
|
|
27492
|
+
L("下")
|
|
27501
27493
|
]),
|
|
27502
27494
|
_: 1
|
|
27503
27495
|
})
|
|
@@ -27512,25 +27504,25 @@ const _k = function(n, e) {
|
|
|
27512
27504
|
default: b(() => [
|
|
27513
27505
|
m(S, { label: "insideLeft" }, {
|
|
27514
27506
|
default: b(() => [
|
|
27515
|
-
|
|
27507
|
+
L("左")
|
|
27516
27508
|
]),
|
|
27517
27509
|
_: 1
|
|
27518
27510
|
}),
|
|
27519
27511
|
m(S, { label: "inside" }, {
|
|
27520
27512
|
default: b(() => [
|
|
27521
|
-
|
|
27513
|
+
L("中")
|
|
27522
27514
|
]),
|
|
27523
27515
|
_: 1
|
|
27524
27516
|
}),
|
|
27525
27517
|
m(S, { label: "insideRight" }, {
|
|
27526
27518
|
default: b(() => [
|
|
27527
|
-
|
|
27519
|
+
L("右")
|
|
27528
27520
|
]),
|
|
27529
27521
|
_: 1
|
|
27530
27522
|
}),
|
|
27531
27523
|
m(S, { label: "right" }, {
|
|
27532
27524
|
default: b(() => [
|
|
27533
|
-
|
|
27525
|
+
L("外")
|
|
27534
27526
|
]),
|
|
27535
27527
|
_: 1
|
|
27536
27528
|
})
|
|
@@ -27545,25 +27537,25 @@ const _k = function(n, e) {
|
|
|
27545
27537
|
default: b(() => [
|
|
27546
27538
|
m(S, { label: "insideTop" }, {
|
|
27547
27539
|
default: b(() => [
|
|
27548
|
-
|
|
27540
|
+
L("上")
|
|
27549
27541
|
]),
|
|
27550
27542
|
_: 1
|
|
27551
27543
|
}),
|
|
27552
27544
|
m(S, { label: "inside" }, {
|
|
27553
27545
|
default: b(() => [
|
|
27554
|
-
|
|
27546
|
+
L("中")
|
|
27555
27547
|
]),
|
|
27556
27548
|
_: 1
|
|
27557
27549
|
}),
|
|
27558
27550
|
m(S, { label: "insideBottom" }, {
|
|
27559
27551
|
default: b(() => [
|
|
27560
|
-
|
|
27552
|
+
L("下")
|
|
27561
27553
|
]),
|
|
27562
27554
|
_: 1
|
|
27563
27555
|
}),
|
|
27564
27556
|
m(S, { label: "top" }, {
|
|
27565
27557
|
default: b(() => [
|
|
27566
|
-
|
|
27558
|
+
L("外")
|
|
27567
27559
|
]),
|
|
27568
27560
|
_: 1
|
|
27569
27561
|
})
|
|
@@ -27682,19 +27674,19 @@ const _k = function(n, e) {
|
|
|
27682
27674
|
default: b(() => [
|
|
27683
27675
|
m(S, { label: "ASC" }, {
|
|
27684
27676
|
default: b(() => [
|
|
27685
|
-
|
|
27677
|
+
L("正序")
|
|
27686
27678
|
]),
|
|
27687
27679
|
_: 1
|
|
27688
27680
|
}),
|
|
27689
27681
|
m(S, { label: "NONE" }, {
|
|
27690
27682
|
default: b(() => [
|
|
27691
|
-
|
|
27683
|
+
L("不排序")
|
|
27692
27684
|
]),
|
|
27693
27685
|
_: 1
|
|
27694
27686
|
}),
|
|
27695
27687
|
m(S, { label: "DESC" }, {
|
|
27696
27688
|
default: b(() => [
|
|
27697
|
-
|
|
27689
|
+
L("倒序")
|
|
27698
27690
|
]),
|
|
27699
27691
|
_: 1
|
|
27700
27692
|
})
|
|
@@ -27807,7 +27799,7 @@ const $k = /* @__PURE__ */ it({
|
|
|
27807
27799
|
r = {}, t.value && (o = (c = (h = t.value.data) == null ? void 0 : h.source) == null ? void 0 : c.map(({ name: f, key: d, columns: p }) => ({
|
|
27808
27800
|
label: f,
|
|
27809
27801
|
value: d,
|
|
27810
|
-
children: p.map(({ name: y, columnName: g }) => (g = g.toUpperCase(),
|
|
27802
|
+
children: p.map(({ name: y, columnName: g }) => (g = g.toUpperCase(), Xt(r, `${d}.${g}`, y), {
|
|
27811
27803
|
label: y,
|
|
27812
27804
|
value: g
|
|
27813
27805
|
}))
|
|
@@ -27821,7 +27813,7 @@ const $k = /* @__PURE__ */ it({
|
|
|
27821
27813
|
children: g.map(({ name: O, columnName: v }) => {
|
|
27822
27814
|
v = v.toUpperCase();
|
|
27823
27815
|
let Z = O || v;
|
|
27824
|
-
return
|
|
27816
|
+
return Xt(r, `${f}.${y}.${v}`, Z), {
|
|
27825
27817
|
label: Z,
|
|
27826
27818
|
value: v
|
|
27827
27819
|
};
|
|
@@ -27884,13 +27876,13 @@ const $k = /* @__PURE__ */ it({
|
|
|
27884
27876
|
default: b(() => [
|
|
27885
27877
|
m(y, { label: "px" }, {
|
|
27886
27878
|
default: b(() => [
|
|
27887
|
-
|
|
27879
|
+
L("像素")
|
|
27888
27880
|
]),
|
|
27889
27881
|
_: 1
|
|
27890
27882
|
}),
|
|
27891
27883
|
m(y, { label: "%" }, {
|
|
27892
27884
|
default: b(() => [
|
|
27893
|
-
|
|
27885
|
+
L("百分比")
|
|
27894
27886
|
]),
|
|
27895
27887
|
_: 1
|
|
27896
27888
|
})
|
|
@@ -27930,13 +27922,13 @@ const $k = /* @__PURE__ */ it({
|
|
|
27930
27922
|
default: b(() => [
|
|
27931
27923
|
m(y, { label: "px" }, {
|
|
27932
27924
|
default: b(() => [
|
|
27933
|
-
|
|
27925
|
+
L("像素")
|
|
27934
27926
|
]),
|
|
27935
27927
|
_: 1
|
|
27936
27928
|
}),
|
|
27937
27929
|
m(y, { label: "%" }, {
|
|
27938
27930
|
default: b(() => [
|
|
27939
|
-
|
|
27931
|
+
L("百分比")
|
|
27940
27932
|
]),
|
|
27941
27933
|
_: 1
|
|
27942
27934
|
})
|
|
@@ -27962,13 +27954,13 @@ const $k = /* @__PURE__ */ it({
|
|
|
27962
27954
|
default: b(() => [
|
|
27963
27955
|
m(y, { label: !0 }, {
|
|
27964
27956
|
default: b(() => [
|
|
27965
|
-
|
|
27957
|
+
L("多维度/指标")
|
|
27966
27958
|
]),
|
|
27967
27959
|
_: 1
|
|
27968
27960
|
}),
|
|
27969
27961
|
m(y, { label: !1 }, {
|
|
27970
27962
|
default: b(() => [
|
|
27971
|
-
|
|
27963
|
+
L("单指标")
|
|
27972
27964
|
]),
|
|
27973
27965
|
_: 1
|
|
27974
27966
|
})
|
|
@@ -28010,19 +28002,19 @@ const $k = /* @__PURE__ */ it({
|
|
|
28010
28002
|
default: b(() => [
|
|
28011
28003
|
m(y, { label: "ASC" }, {
|
|
28012
28004
|
default: b(() => [
|
|
28013
|
-
|
|
28005
|
+
L("正序")
|
|
28014
28006
|
]),
|
|
28015
28007
|
_: 1
|
|
28016
28008
|
}),
|
|
28017
28009
|
m(y, { label: "NONE" }, {
|
|
28018
28010
|
default: b(() => [
|
|
28019
|
-
|
|
28011
|
+
L("不排序")
|
|
28020
28012
|
]),
|
|
28021
28013
|
_: 1
|
|
28022
28014
|
}),
|
|
28023
28015
|
m(y, { label: "DESC" }, {
|
|
28024
28016
|
default: b(() => [
|
|
28025
|
-
|
|
28017
|
+
L("倒序")
|
|
28026
28018
|
]),
|
|
28027
28019
|
_: 1
|
|
28028
28020
|
})
|
|
@@ -28086,31 +28078,31 @@ const $k = /* @__PURE__ */ it({
|
|
|
28086
28078
|
default: b(() => [
|
|
28087
28079
|
m(y, { label: "SUM" }, {
|
|
28088
28080
|
default: b(() => [
|
|
28089
|
-
|
|
28081
|
+
L("求和")
|
|
28090
28082
|
]),
|
|
28091
28083
|
_: 1
|
|
28092
28084
|
}),
|
|
28093
28085
|
m(y, { label: "AVG" }, {
|
|
28094
28086
|
default: b(() => [
|
|
28095
|
-
|
|
28087
|
+
L("均值")
|
|
28096
28088
|
]),
|
|
28097
28089
|
_: 1
|
|
28098
28090
|
}),
|
|
28099
28091
|
m(y, { label: "MAX" }, {
|
|
28100
28092
|
default: b(() => [
|
|
28101
|
-
|
|
28093
|
+
L("最大值")
|
|
28102
28094
|
]),
|
|
28103
28095
|
_: 1
|
|
28104
28096
|
}),
|
|
28105
28097
|
m(y, { label: "MIN" }, {
|
|
28106
28098
|
default: b(() => [
|
|
28107
|
-
|
|
28099
|
+
L("最小值")
|
|
28108
28100
|
]),
|
|
28109
28101
|
_: 1
|
|
28110
28102
|
}),
|
|
28111
28103
|
m(y, { label: "COUNT" }, {
|
|
28112
28104
|
default: b(() => [
|
|
28113
|
-
|
|
28105
|
+
L("计数")
|
|
28114
28106
|
]),
|
|
28115
28107
|
_: 1
|
|
28116
28108
|
})
|
|
@@ -28282,10 +28274,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28282
28274
|
if (q && q.length && i.value) {
|
|
28283
28275
|
let j = [];
|
|
28284
28276
|
for (let ee = 0; ee < q.length; ee++) {
|
|
28285
|
-
const { id: fe, url:
|
|
28277
|
+
const { id: fe, url: D, name: X } = q[ee], G = await Og(fe);
|
|
28286
28278
|
j.push({
|
|
28287
28279
|
key: fe,
|
|
28288
|
-
url:
|
|
28280
|
+
url: D,
|
|
28289
28281
|
name: X,
|
|
28290
28282
|
columns: G
|
|
28291
28283
|
});
|
|
@@ -28306,10 +28298,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28306
28298
|
}, $ = be(null), P = (I) => {
|
|
28307
28299
|
$.value === I ? $.value = null : $.value = I;
|
|
28308
28300
|
}, w = (I, q) => {
|
|
28309
|
-
var ee, fe,
|
|
28301
|
+
var ee, fe, D, X;
|
|
28310
28302
|
I.stopPropagation(), I.preventDefault();
|
|
28311
28303
|
let j = (fe = (ee = i.value) == null ? void 0 : ee.data) == null ? void 0 : fe.source[q];
|
|
28312
|
-
j && (j === $.value && ($.value = null), (X = (
|
|
28304
|
+
j && (j === $.value && ($.value = null), (X = (D = i.value) == null ? void 0 : D.data) == null || X.source.splice(q, 1));
|
|
28313
28305
|
}, k = be(!1), R = yr({
|
|
28314
28306
|
name: "",
|
|
28315
28307
|
columnName: "",
|
|
@@ -28327,7 +28319,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28327
28319
|
var I, q;
|
|
28328
28320
|
(q = (I = $.value) == null ? void 0 : I.toObjectSetting) == null || q.push({
|
|
28329
28321
|
field: "",
|
|
28330
|
-
format:
|
|
28322
|
+
format: Xe.TEXT,
|
|
28331
28323
|
formatType: {
|
|
28332
28324
|
start: -1,
|
|
28333
28325
|
end: -1,
|
|
@@ -28357,7 +28349,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28357
28349
|
}
|
|
28358
28350
|
return Ti(() => {
|
|
28359
28351
|
}), (I, q) => {
|
|
28360
|
-
const j = ue("el-tag"), ee = ue("el-input"), fe = ue("el-checkbox"),
|
|
28352
|
+
const j = ue("el-tag"), ee = ue("el-input"), fe = ue("el-checkbox"), D = ue("el-checkbox-group"), X = ue("el-col"), G = ue("el-switch"), Y = ue("el-form-item"), B = ue("el-option"), M = ue("el-select"), te = ue("el-input-number"), ne = ue("el-row"), A = ue("el-form");
|
|
28361
28353
|
return E(), H(oe, null, [
|
|
28362
28354
|
V("div", Ck, [
|
|
28363
28355
|
Xk,
|
|
@@ -28367,7 +28359,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28367
28359
|
text: ""
|
|
28368
28360
|
}, {
|
|
28369
28361
|
default: b(() => [
|
|
28370
|
-
|
|
28362
|
+
L(" 编辑 ")
|
|
28371
28363
|
]),
|
|
28372
28364
|
_: 1
|
|
28373
28365
|
})
|
|
@@ -28376,13 +28368,13 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28376
28368
|
_(i).data.pagination ? (E(), H(oe, { key: 0 }, [
|
|
28377
28369
|
m(j, { type: "info" }, {
|
|
28378
28370
|
default: b(() => [
|
|
28379
|
-
|
|
28371
|
+
L("分页")
|
|
28380
28372
|
]),
|
|
28381
28373
|
_: 1
|
|
28382
28374
|
}),
|
|
28383
28375
|
m(j, { type: "info" }, {
|
|
28384
28376
|
default: b(() => [
|
|
28385
|
-
|
|
28377
|
+
L(Ue(_(i).data.pageSize), 1)
|
|
28386
28378
|
]),
|
|
28387
28379
|
_: 1
|
|
28388
28380
|
})
|
|
@@ -28392,7 +28384,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28392
28384
|
type: "info"
|
|
28393
28385
|
}, {
|
|
28394
28386
|
default: b(() => [
|
|
28395
|
-
|
|
28387
|
+
L(" 报表数据处理 ")
|
|
28396
28388
|
]),
|
|
28397
28389
|
_: 1
|
|
28398
28390
|
})) : ce("", !0),
|
|
@@ -28401,7 +28393,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28401
28393
|
type: "info"
|
|
28402
28394
|
}, {
|
|
28403
28395
|
default: b(() => [
|
|
28404
|
-
|
|
28396
|
+
L(" Tooltip处理 ")
|
|
28405
28397
|
]),
|
|
28406
28398
|
_: 1
|
|
28407
28399
|
})) : ce("", !0),
|
|
@@ -28410,7 +28402,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28410
28402
|
type: "info"
|
|
28411
28403
|
}, {
|
|
28412
28404
|
default: b(() => [
|
|
28413
|
-
|
|
28405
|
+
L(" X轴数据处理 ")
|
|
28414
28406
|
]),
|
|
28415
28407
|
_: 1
|
|
28416
28408
|
})) : ce("", !0),
|
|
@@ -28419,7 +28411,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28419
28411
|
type: "info"
|
|
28420
28412
|
}, {
|
|
28421
28413
|
default: b(() => [
|
|
28422
|
-
|
|
28414
|
+
L(" Y轴数据处理 ")
|
|
28423
28415
|
]),
|
|
28424
28416
|
_: 1
|
|
28425
28417
|
})) : ce("", !0),
|
|
@@ -28428,7 +28420,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28428
28420
|
type: "info"
|
|
28429
28421
|
}, {
|
|
28430
28422
|
default: b(() => [
|
|
28431
|
-
|
|
28423
|
+
L(" 图表数据处理 ")
|
|
28432
28424
|
]),
|
|
28433
28425
|
_: 1
|
|
28434
28426
|
})) : ce("", !0)
|
|
@@ -28448,7 +28440,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28448
28440
|
type: "info"
|
|
28449
28441
|
}, {
|
|
28450
28442
|
default: b(() => [
|
|
28451
|
-
|
|
28443
|
+
L(" 已转对象 ")
|
|
28452
28444
|
]),
|
|
28453
28445
|
_: 1
|
|
28454
28446
|
})) : ce("", !0)
|
|
@@ -28456,18 +28448,18 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28456
28448
|
])
|
|
28457
28449
|
]),
|
|
28458
28450
|
default: b(() => [
|
|
28459
|
-
(E(!0), H(oe, null, Le(W.columns, (Ce,
|
|
28451
|
+
(E(!0), H(oe, null, Le(W.columns, (Ce, qt) => (E(), H("div", {
|
|
28460
28452
|
class: "data-column report-drag-source",
|
|
28461
28453
|
"data-drag": "column",
|
|
28462
28454
|
"data-index": Qe,
|
|
28463
|
-
"data-cindex":
|
|
28455
|
+
"data-cindex": qt,
|
|
28464
28456
|
draggable: "true"
|
|
28465
28457
|
}, [
|
|
28466
28458
|
V("div", null, [
|
|
28467
28459
|
Ce.name === Ce.columnName ? (E(), H(oe, { key: 0 }, [
|
|
28468
|
-
|
|
28460
|
+
L(Ue(Ce.name), 1)
|
|
28469
28461
|
], 64)) : (E(), H(oe, { key: 1 }, [
|
|
28470
|
-
|
|
28462
|
+
L(Ue(Ce.name) + " (" + Ue(Ce.columnName) + ")", 1)
|
|
28471
28463
|
], 64))
|
|
28472
28464
|
])
|
|
28473
28465
|
], 8, Vk))), 256))
|
|
@@ -28487,14 +28479,14 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28487
28479
|
}, {
|
|
28488
28480
|
header: b(() => [
|
|
28489
28481
|
mT,
|
|
28490
|
-
|
|
28482
|
+
L(" "),
|
|
28491
28483
|
m(_(Te), {
|
|
28492
28484
|
type: "warning",
|
|
28493
28485
|
plain: "",
|
|
28494
28486
|
onClick: q[15] || (q[15] = (W) => t.value = !1)
|
|
28495
28487
|
}, {
|
|
28496
28488
|
default: b(() => [
|
|
28497
|
-
|
|
28489
|
+
L(" 关闭 ")
|
|
28498
28490
|
]),
|
|
28499
28491
|
_: 1
|
|
28500
28492
|
})
|
|
@@ -28521,7 +28513,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28521
28513
|
onClick: O
|
|
28522
28514
|
}, {
|
|
28523
28515
|
default: b(() => [
|
|
28524
|
-
|
|
28516
|
+
L(" 取消 ")
|
|
28525
28517
|
]),
|
|
28526
28518
|
_: 1
|
|
28527
28519
|
}, 8, ["loading"]),
|
|
@@ -28532,7 +28524,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28532
28524
|
onClick: Z
|
|
28533
28525
|
}, {
|
|
28534
28526
|
default: b(() => [
|
|
28535
|
-
|
|
28527
|
+
L(" 保存 ")
|
|
28536
28528
|
]),
|
|
28537
28529
|
_: 1
|
|
28538
28530
|
}, 8, ["loading"])
|
|
@@ -28543,7 +28535,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28543
28535
|
onClick: v
|
|
28544
28536
|
}, {
|
|
28545
28537
|
default: b(() => [
|
|
28546
|
-
|
|
28538
|
+
L(" 同步 ")
|
|
28547
28539
|
]),
|
|
28548
28540
|
_: 1
|
|
28549
28541
|
}),
|
|
@@ -28552,14 +28544,14 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28552
28544
|
onClick: g
|
|
28553
28545
|
}, {
|
|
28554
28546
|
default: b(() => [
|
|
28555
|
-
|
|
28547
|
+
L(" 选择 ")
|
|
28556
28548
|
]),
|
|
28557
28549
|
_: 1
|
|
28558
28550
|
})
|
|
28559
28551
|
], 64))
|
|
28560
28552
|
]),
|
|
28561
28553
|
u.value ? (E(), H("div", Mk, [
|
|
28562
|
-
m(
|
|
28554
|
+
m(D, {
|
|
28563
28555
|
modelValue: d.value,
|
|
28564
28556
|
"onUpdate:modelValue": q[1] || (q[1] = (W) => d.value = W)
|
|
28565
28557
|
}, {
|
|
@@ -28568,7 +28560,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28568
28560
|
label: W.id
|
|
28569
28561
|
}, {
|
|
28570
28562
|
default: b(() => [
|
|
28571
|
-
|
|
28563
|
+
L(Ue(W.name), 1)
|
|
28572
28564
|
]),
|
|
28573
28565
|
_: 2
|
|
28574
28566
|
}, 1032, ["label"]))), 256))
|
|
@@ -28579,8 +28571,8 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28579
28571
|
(E(!0), H(oe, null, Le(_(r), (W, Qe) => {
|
|
28580
28572
|
var Ce;
|
|
28581
28573
|
return E(), H("div", {
|
|
28582
|
-
class:
|
|
28583
|
-
onClick: (
|
|
28574
|
+
class: Zt(["data-source-item", { active: ((Ce = $.value) == null ? void 0 : Ce.key) == W.key }]),
|
|
28575
|
+
onClick: (qt) => P(W)
|
|
28584
28576
|
}, [
|
|
28585
28577
|
V("div", zk, [
|
|
28586
28578
|
V("div", Uk, Ue(W.name) + " (" + Ue(W.url) + ")", 1),
|
|
@@ -28590,29 +28582,29 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28590
28582
|
type: "success"
|
|
28591
28583
|
}, {
|
|
28592
28584
|
default: b(() => [
|
|
28593
|
-
|
|
28585
|
+
L(" 已转对象 ")
|
|
28594
28586
|
]),
|
|
28595
28587
|
_: 1
|
|
28596
28588
|
})) : ce("", !0),
|
|
28597
28589
|
m(_(Te), {
|
|
28598
28590
|
size: "small",
|
|
28599
28591
|
type: "danger",
|
|
28600
|
-
onClick: (
|
|
28592
|
+
onClick: (qt) => w(qt, Qe),
|
|
28601
28593
|
text: ""
|
|
28602
28594
|
}, {
|
|
28603
28595
|
default: b(() => [
|
|
28604
|
-
|
|
28596
|
+
L(" 删除 ")
|
|
28605
28597
|
]),
|
|
28606
28598
|
_: 2
|
|
28607
28599
|
}, 1032, ["onClick"])
|
|
28608
28600
|
]),
|
|
28609
28601
|
V("div", Wk, [
|
|
28610
|
-
(E(!0), H(oe, null, Le(W.columns, (
|
|
28602
|
+
(E(!0), H(oe, null, Le(W.columns, (qt) => (E(), ae(j, null, {
|
|
28611
28603
|
default: b(() => [
|
|
28612
|
-
|
|
28613
|
-
|
|
28604
|
+
qt.name === qt.columnName ? (E(), H(oe, { key: 0 }, [
|
|
28605
|
+
L(Ue(qt.name), 1)
|
|
28614
28606
|
], 64)) : (E(), H(oe, { key: 1 }, [
|
|
28615
|
-
|
|
28607
|
+
L(Ue(qt.name) + " (" + Ue(qt.columnName) + ")", 1)
|
|
28616
28608
|
], 64))
|
|
28617
28609
|
]),
|
|
28618
28610
|
_: 2
|
|
@@ -28716,7 +28708,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28716
28708
|
onClose: (Ce) => he(Qe)
|
|
28717
28709
|
}, {
|
|
28718
28710
|
default: b(() => [
|
|
28719
|
-
|
|
28711
|
+
L(Ue(W), 1)
|
|
28720
28712
|
]),
|
|
28721
28713
|
_: 2
|
|
28722
28714
|
}, 1032, ["onClose"]))), 128)),
|
|
@@ -28736,7 +28728,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28736
28728
|
onClick: me
|
|
28737
28729
|
}, {
|
|
28738
28730
|
default: b(() => [
|
|
28739
|
-
|
|
28731
|
+
L(" 添加分页数 ")
|
|
28740
28732
|
]),
|
|
28741
28733
|
_: 1
|
|
28742
28734
|
}))
|
|
@@ -28760,10 +28752,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28760
28752
|
"onUpdate:modelValue": q[6] || (q[6] = (W) => _(i).data.processData = W)
|
|
28761
28753
|
}, {
|
|
28762
28754
|
"pre-code": b(() => [
|
|
28763
|
-
|
|
28755
|
+
L("function (allData,params,pagination){")
|
|
28764
28756
|
]),
|
|
28765
28757
|
"next-code": b(() => [
|
|
28766
|
-
|
|
28758
|
+
L("}")
|
|
28767
28759
|
]),
|
|
28768
28760
|
_: 1
|
|
28769
28761
|
}, 8, ["modelValue"])
|
|
@@ -28789,10 +28781,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28789
28781
|
"onUpdate:modelValue": q[7] || (q[7] = (W) => _(i).toolTipData = W)
|
|
28790
28782
|
}, {
|
|
28791
28783
|
"pre-code": b(() => [
|
|
28792
|
-
|
|
28784
|
+
L("function (params){")
|
|
28793
28785
|
]),
|
|
28794
28786
|
"next-code": b(() => [
|
|
28795
|
-
|
|
28787
|
+
L("}")
|
|
28796
28788
|
]),
|
|
28797
28789
|
_: 1
|
|
28798
28790
|
}, 8, ["modelValue"])
|
|
@@ -28815,10 +28807,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28815
28807
|
"onUpdate:modelValue": q[8] || (q[8] = (W) => _(i).xAisData = W)
|
|
28816
28808
|
}, {
|
|
28817
28809
|
"pre-code": b(() => [
|
|
28818
|
-
|
|
28810
|
+
L("function (allData){")
|
|
28819
28811
|
]),
|
|
28820
28812
|
"next-code": b(() => [
|
|
28821
|
-
|
|
28813
|
+
L("}")
|
|
28822
28814
|
]),
|
|
28823
28815
|
_: 1
|
|
28824
28816
|
}, 8, ["modelValue"])
|
|
@@ -28841,10 +28833,10 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28841
28833
|
"onUpdate:modelValue": q[9] || (q[9] = (W) => _(i).yAisData = W)
|
|
28842
28834
|
}, {
|
|
28843
28835
|
"pre-code": b(() => [
|
|
28844
|
-
|
|
28836
|
+
L("function (allData){")
|
|
28845
28837
|
]),
|
|
28846
28838
|
"next-code": b(() => [
|
|
28847
|
-
|
|
28839
|
+
L("}")
|
|
28848
28840
|
]),
|
|
28849
28841
|
_: 1
|
|
28850
28842
|
}, 8, ["modelValue"])
|
|
@@ -28868,12 +28860,12 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28868
28860
|
"onUpdate:modelValue": q[10] || (q[10] = (W) => _(i).seriesData = W)
|
|
28869
28861
|
}, {
|
|
28870
28862
|
"pre-code": b(() => [
|
|
28871
|
-
|
|
28863
|
+
L("function (allData,series,yDataId,option){")
|
|
28872
28864
|
]),
|
|
28873
28865
|
"next-code": b(() => [
|
|
28874
|
-
|
|
28866
|
+
L(" return {series,option}; "),
|
|
28875
28867
|
tT,
|
|
28876
|
-
|
|
28868
|
+
L(" } ")
|
|
28877
28869
|
]),
|
|
28878
28870
|
_: 1
|
|
28879
28871
|
}, 8, ["modelValue"])
|
|
@@ -28914,14 +28906,14 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28914
28906
|
V("div", nT, [
|
|
28915
28907
|
sT,
|
|
28916
28908
|
V("div", rT, [
|
|
28917
|
-
|
|
28909
|
+
L(" 选择转换是的字段及对字段的格式化方法 "),
|
|
28918
28910
|
m(_(Te), {
|
|
28919
28911
|
type: "success",
|
|
28920
28912
|
plain: "",
|
|
28921
28913
|
onClick: C
|
|
28922
28914
|
}, {
|
|
28923
28915
|
default: b(() => [
|
|
28924
|
-
|
|
28916
|
+
L(" 新增 ")
|
|
28925
28917
|
]),
|
|
28926
28918
|
_: 1
|
|
28927
28919
|
})
|
|
@@ -28982,13 +28974,13 @@ const Tk = /* @__PURE__ */ it({
|
|
|
28982
28974
|
class: "column-Object-setting-format-type"
|
|
28983
28975
|
}, {
|
|
28984
28976
|
default: b(() => [
|
|
28985
|
-
|
|
28977
|
+
L(" 字符截取(可为空)开始: "),
|
|
28986
28978
|
m(te, {
|
|
28987
28979
|
"controls-position": "right",
|
|
28988
28980
|
modelValue: W.formatType.start,
|
|
28989
28981
|
"onUpdate:modelValue": (Ce) => W.formatType.start = Ce
|
|
28990
28982
|
}, null, 8, ["modelValue", "onUpdate:modelValue"]),
|
|
28991
|
-
|
|
28983
|
+
L(" 结束: "),
|
|
28992
28984
|
m(te, {
|
|
28993
28985
|
"controls-position": "right",
|
|
28994
28986
|
modelValue: W.formatType.end,
|
|
@@ -29003,7 +28995,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29003
28995
|
class: "column-Object-setting-format-type"
|
|
29004
28996
|
}, {
|
|
29005
28997
|
default: b(() => [
|
|
29006
|
-
|
|
28998
|
+
L(" 小数位数: "),
|
|
29007
28999
|
m(te, {
|
|
29008
29000
|
modelValue: W.formatType.decimal,
|
|
29009
29001
|
"onUpdate:modelValue": (Ce) => W.formatType.decimal = Ce
|
|
@@ -29017,7 +29009,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29017
29009
|
class: "column-Object-setting-format-type"
|
|
29018
29010
|
}, {
|
|
29019
29011
|
default: b(() => [
|
|
29020
|
-
|
|
29012
|
+
L(" 格式: "),
|
|
29021
29013
|
m(M, {
|
|
29022
29014
|
modelValue: W.formatType.dateTimeFormat,
|
|
29023
29015
|
"onUpdate:modelValue": (Ce) => W.formatType.dateTimeFormat = Ce
|
|
@@ -29052,7 +29044,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29052
29044
|
plain: ""
|
|
29053
29045
|
}, {
|
|
29054
29046
|
default: b(() => [
|
|
29055
|
-
|
|
29047
|
+
L(" 删除 ")
|
|
29056
29048
|
]),
|
|
29057
29049
|
_: 2
|
|
29058
29050
|
}, 1032, ["onClick"])
|
|
@@ -29082,7 +29074,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29082
29074
|
plain: ""
|
|
29083
29075
|
}, {
|
|
29084
29076
|
default: b(() => [
|
|
29085
|
-
|
|
29077
|
+
L(" 取消 ")
|
|
29086
29078
|
]),
|
|
29087
29079
|
_: 1
|
|
29088
29080
|
}),
|
|
@@ -29092,7 +29084,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29092
29084
|
plain: ""
|
|
29093
29085
|
}, {
|
|
29094
29086
|
default: b(() => [
|
|
29095
|
-
|
|
29087
|
+
L(" 保存字段 ")
|
|
29096
29088
|
]),
|
|
29097
29089
|
_: 1
|
|
29098
29090
|
})
|
|
@@ -29103,7 +29095,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29103
29095
|
plain: ""
|
|
29104
29096
|
}, {
|
|
29105
29097
|
default: b(() => [
|
|
29106
|
-
|
|
29098
|
+
L(" 新增字段 ")
|
|
29107
29099
|
]),
|
|
29108
29100
|
_: 1
|
|
29109
29101
|
}))
|
|
@@ -29150,7 +29142,7 @@ const Tk = /* @__PURE__ */ it({
|
|
|
29150
29142
|
plain: ""
|
|
29151
29143
|
}, {
|
|
29152
29144
|
default: b(() => [
|
|
29153
|
-
|
|
29145
|
+
L(" 删除 ")
|
|
29154
29146
|
]),
|
|
29155
29147
|
_: 1
|
|
29156
29148
|
})) : ce("", !0)
|
|
@@ -29392,9 +29384,9 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29392
29384
|
case "params":
|
|
29393
29385
|
if (s.value && (q === R && fe || j === R)) {
|
|
29394
29386
|
if (q === "column" && fe) {
|
|
29395
|
-
const { dataSource:
|
|
29396
|
-
let G =
|
|
29397
|
-
key:
|
|
29387
|
+
const { dataSource: D, columnIndex: X } = JSON.parse(fe);
|
|
29388
|
+
let G = D.columns[X], Y = s.value.params.findIndex((M) => M.columnName === G.columnName), B = {
|
|
29389
|
+
key: D.key,
|
|
29398
29390
|
columnName: G.columnName,
|
|
29399
29391
|
name: G.name,
|
|
29400
29392
|
defaultValue: "",
|
|
@@ -29414,9 +29406,9 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29414
29406
|
s.value.params.splice(ee, 0, B);
|
|
29415
29407
|
}
|
|
29416
29408
|
} else if (!isNaN(ee) && Q) {
|
|
29417
|
-
let
|
|
29418
|
-
if (ee !== -1 && !isNaN(
|
|
29419
|
-
let [X] = s.value.params.splice(
|
|
29409
|
+
let D = parseInt(Q);
|
|
29410
|
+
if (ee !== -1 && !isNaN(D) && D > -1) {
|
|
29411
|
+
let [X] = s.value.params.splice(D, 1);
|
|
29420
29412
|
X && s.value.params.splice(ee, 0, X);
|
|
29421
29413
|
}
|
|
29422
29414
|
}
|
|
@@ -29424,9 +29416,9 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29424
29416
|
break;
|
|
29425
29417
|
case "column":
|
|
29426
29418
|
if (fe) {
|
|
29427
|
-
let { columnIndex:
|
|
29428
|
-
if (
|
|
29429
|
-
let { key: G } = X, { columnName: Y, name: B } = X.columns[
|
|
29419
|
+
let { columnIndex: D, dataSource: X } = JSON.parse(fe);
|
|
29420
|
+
if (D && X && s.value) {
|
|
29421
|
+
let { key: G } = X, { columnName: Y, name: B } = X.columns[D], { col: M, row: te, table: ne } = I.dataset;
|
|
29430
29422
|
F.ctrlKey ? (s.value.tableConfig[ne].config[te][M].type = Oe.TEXT, s.value.tableConfig[ne].config[te][M].data = void 0, s.value.tableConfig[ne].config[te][M].text = B, s.value.tableConfig[ne].rowConfig[te].data = void 0, s.value.tableConfig[ne].rowConfig[te].dataIndex = 0, s.value.tableConfig[ne].rowConfig[te].loop = !1) : (s.value.tableConfig[ne].config[te][M].type = Oe.FIELD, F.altKey ? (s.value.tableConfig[ne].rowConfig[te].data = G, s.value.tableConfig[ne].rowConfig[te].loop = !1, s.value.tableConfig[ne].rowConfig[te].dataIndex = 0, s.value.tableConfig[ne].colConfig[M].data = void 0, s.value.tableConfig[ne].colConfig[M].loop = !1, s.value.tableConfig[ne].colConfig[M].dataIndex = void 0, s.value.tableConfig[ne].config[te][M].data = `row:${Y}`) : F.shiftKey ? (s.value.tableConfig[ne].colConfig[M].data = G, s.value.tableConfig[ne].colConfig[M].loop = !0, s.value.tableConfig[ne].config[te][M].data = `col:${Y}`) : (s.value.tableConfig[ne].rowConfig[te].data = G, s.value.tableConfig[ne].rowConfig[te].loop = !0, s.value.tableConfig[ne].config[te][M].data = `row:${Y}`)), r.value = [
|
|
29431
29423
|
{
|
|
29432
29424
|
type: Oe.CELL,
|
|
@@ -29503,7 +29495,7 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29503
29495
|
const q = ue("el-alert"), j = ue("el-button-group");
|
|
29504
29496
|
return E(), H(oe, null, [
|
|
29505
29497
|
m(q, {
|
|
29506
|
-
class:
|
|
29498
|
+
class: Zt(["statement-alert", { show: _(U) }]),
|
|
29507
29499
|
title: _(T),
|
|
29508
29500
|
description: _(C),
|
|
29509
29501
|
type: "warning",
|
|
@@ -29587,7 +29579,7 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29587
29579
|
])
|
|
29588
29580
|
]),
|
|
29589
29581
|
V("div", kT, [
|
|
29590
|
-
|
|
29582
|
+
Ut(V("div", {
|
|
29591
29583
|
class: "statement-form left",
|
|
29592
29584
|
ref_key: "leftFormRef",
|
|
29593
29585
|
ref: v,
|
|
@@ -29610,12 +29602,12 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29610
29602
|
}),
|
|
29611
29603
|
m(_(Cu), { label: "组件树" }, {
|
|
29612
29604
|
default: b(() => [
|
|
29613
|
-
(E(!0), H(oe, null, Le(_(g), (fe,
|
|
29614
|
-
class:
|
|
29615
|
-
onClick: (X) => O(fe.option,
|
|
29605
|
+
(E(!0), H(oe, null, Le(_(g), (fe, D) => (E(), H("div", {
|
|
29606
|
+
class: Zt(["statement-block-item", { active: fe.isActive }]),
|
|
29607
|
+
onClick: (X) => O(fe.option, D)
|
|
29616
29608
|
}, [
|
|
29617
29609
|
V("div", {
|
|
29618
|
-
class:
|
|
29610
|
+
class: Zt(`statement-block-item-icon iconfont ${fe.icon}`)
|
|
29619
29611
|
}, null, 2),
|
|
29620
29612
|
V("div", ZT, [
|
|
29621
29613
|
V("div", VT, Ue(fe.name), 1),
|
|
@@ -29629,7 +29621,7 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29629
29621
|
_: 1
|
|
29630
29622
|
})
|
|
29631
29623
|
], 4), [
|
|
29632
|
-
[
|
|
29624
|
+
[Wt, !_(i)]
|
|
29633
29625
|
]),
|
|
29634
29626
|
_(i) ? ce("", !0) : (E(), ae(d_, { key: 0 })),
|
|
29635
29627
|
_(i) ? (E(), H("div", YT, [
|
|
@@ -29637,7 +29629,7 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29637
29629
|
id: _(w).params.id
|
|
29638
29630
|
}, null, 8, ["id"])
|
|
29639
29631
|
])) : ce("", !0),
|
|
29640
|
-
|
|
29632
|
+
Ut(V("div", {
|
|
29641
29633
|
class: "statement-form",
|
|
29642
29634
|
ref_key: "rightFormRef",
|
|
29643
29635
|
ref: Z,
|
|
@@ -29648,7 +29640,7 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29648
29640
|
ET,
|
|
29649
29641
|
m(Tk)
|
|
29650
29642
|
], 4), [
|
|
29651
|
-
[
|
|
29643
|
+
[Wt, !_(i)]
|
|
29652
29644
|
])
|
|
29653
29645
|
]),
|
|
29654
29646
|
m(p_, {
|
|
@@ -29663,4 +29655,4 @@ const QT = { class: "statement-design-top" }, bT = { class: "statement-name" },
|
|
|
29663
29655
|
export {
|
|
29664
29656
|
GT as default
|
|
29665
29657
|
};
|
|
29666
|
-
//# sourceMappingURL=StatementDesign-
|
|
29658
|
+
//# sourceMappingURL=StatementDesign-389f06b4.mjs.map
|