yh-report 1.1.2 → 1.1.4
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-b29050ff.mjs → StatementDesign-c370fef7.mjs} +330 -306
- package/StatementDesign-c370fef7.mjs.map +1 -0
- package/{StatementDetail-64dae96d.mjs → StatementDetail-03ab45c4.mjs} +6 -7
- package/{StatementDetail-64dae96d.mjs.map → StatementDetail-03ab45c4.mjs.map} +1 -1
- package/index.es.js +3 -3
- package/package.json +1 -1
- package/{statement-run.vue_vue_type_style_index_0_lang-4c643204.mjs → statement-run.vue_vue_type_style_index_0_lang-5805c61b.mjs} +2236 -2218
- package/{statement-run.vue_vue_type_style_index_0_lang-4c643204.mjs.map → statement-run.vue_vue_type_style_index_0_lang-5805c61b.mjs.map} +1 -1
- package/StatementDesign-b29050ff.mjs.map +0 -1
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import { ElMessage as an, ElScrollbar as JO, ElDialog as za, ElButton as It, ElForm as ps, ElFormItem as N, ElInput as He, ElTable as ep, ElTableColumn as ln, ElSwitch as st, ElRadioGroup as ei, ElMessageBox as Ac, ElCheckbox as mi, ElRadioButton as _e, ElTabs as tp, ElTabPane as ia, ElRow as Xc, ElCol as gt, ElTooltip as Yo, ElTag as Hs, ElColorPicker as yu, ElCollapse as $v, ElCollapseItem as Vc, ElInputNumber as Ks, ElCascader as Yc } from "element-plus";
|
|
1
|
+
import gv, { ref as ce, watch as Ai, computed as Ee, defineComponent as Vt, resolveComponent as Se, openBlock as M, createBlock as ie, unref as v, withCtx as S, createVNode as _, createElementBlock as J, Fragment as me, renderList as it, createTextVNode as U, toDisplayString as Ye, nextTick as KO, normalizeStyle as vi, createElementVNode as L, normalizeClass as Ia, withModifiers as Fs, renderSlot as Vo, createCommentVNode as pe, pushScopeId as vv, popScopeId as bv, onMounted as Vs, onUnmounted as Rh, resolveDynamicComponent as yv, toRaw as _v, reactive as Sv, withKeys as Qv, onActivated as xv, onDeactivated as Pv, withDirectives as Ec, vShow as Zc, isRef as wv } from "vue";
|
|
2
|
+
import { ElMessage as an, ElScrollbar as JO, ElDialog as za, ElButton as It, ElForm as ps, ElFormItem as N, ElInput as He, ElTable as ep, ElTableColumn as ln, ElSwitch as nt, ElRadioGroup as ei, ElMessageBox as Ac, ElCheckbox as mi, ElRadioButton as _e, ElTabs as tp, ElTabPane as ia, ElRow as Xc, ElCol as dt, ElTooltip as Yo, ElTag as Hs, ElColorPicker as yu, ElCollapse as $v, ElCollapseItem as Vc, ElInputNumber as Ks, ElCascader as Yc } from "element-plus";
|
|
4
3
|
import { defineStore as kv, storeToRefs as Zt } from "pinia";
|
|
5
4
|
import { cloneDeep as cr } from "lodash-es";
|
|
6
5
|
import { useRoute as ip, onBeforeRouteLeave as Tv } from "vue-router";
|
|
7
|
-
import { g as Cv, a as np, l as Rv, b as rp, c as Ev, d as Zv, e as Av, _ as sp, f as Xv, h as Vv, i as Yv, j as Dv, s as Mv, k as Lv } from "./statement-run.vue_vue_type_style_index_0_lang-
|
|
6
|
+
import { g as Cv, a as np, l as Rv, b as rp, c as Ev, d as Zv, e as Av, _ as sp, f as Xv, h as Vv, i as Yv, j as Dv, s as Mv, k as Lv } from "./statement-run.vue_vue_type_style_index_0_lang-5805c61b.mjs";
|
|
8
7
|
import { a as Iv, s as zv, i as Uv, b as qv, e as jv } from "./util-3d1a3dd7.mjs";
|
|
9
8
|
import { useFullscreen as Nv } from "@vueuse/core";
|
|
10
9
|
import "@/libs/api.request.js";
|
|
@@ -53,23 +52,21 @@ function Wv(n) {
|
|
|
53
52
|
params: k,
|
|
54
53
|
condition: Q,
|
|
55
54
|
total: T,
|
|
56
|
-
data:
|
|
57
|
-
{
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
],
|
|
55
|
+
data: {
|
|
56
|
+
source: [{ key: g }],
|
|
57
|
+
pagination: m,
|
|
58
|
+
pageSize: O,
|
|
59
|
+
pageSizes: y,
|
|
60
|
+
processData: x,
|
|
61
|
+
staticData: $
|
|
62
|
+
},
|
|
66
63
|
custom: p,
|
|
67
64
|
theme: d,
|
|
68
65
|
textWordWrap: C,
|
|
69
66
|
tooltips: E
|
|
70
67
|
};
|
|
71
68
|
} else
|
|
72
|
-
return n.meta = n.meta.map(Dc), n;
|
|
69
|
+
return Array.isArray(n.data) && (n.data = n.data[0]), n.meta = n.meta.map(Dc), n;
|
|
73
70
|
}
|
|
74
71
|
function Gv(n) {
|
|
75
72
|
return kv("designStore-" + n, () => {
|
|
@@ -136,14 +133,14 @@ function Gv(n) {
|
|
|
136
133
|
immediate: !1
|
|
137
134
|
}
|
|
138
135
|
);
|
|
139
|
-
const d =
|
|
136
|
+
const d = Ee(() => {
|
|
140
137
|
var k;
|
|
141
138
|
e.value && ((k = e.value) != null && k.listData);
|
|
142
139
|
}), p = ce(!1);
|
|
143
140
|
function g(k) {
|
|
144
141
|
k.preventDefault(), k.stopPropagation(), p.value = !0;
|
|
145
142
|
}
|
|
146
|
-
const m = ce(!1), O = ce(), y =
|
|
143
|
+
const m = ce(!1), O = ce(), y = Ee(() => {
|
|
147
144
|
var k, x, $, Q, T;
|
|
148
145
|
return O.value ? e.value.chartConfig.filter((C) => C.id == O.value)[0] || {} : {
|
|
149
146
|
width: (k = y.value) == null ? void 0 : k.width,
|
|
@@ -219,7 +216,7 @@ const At = function() {
|
|
|
219
216
|
const Hv = /* @__PURE__ */ Vt({
|
|
220
217
|
__name: "chooseDataSource",
|
|
221
218
|
setup(n) {
|
|
222
|
-
const e = At(), { chooseDataSourceShow: t, listData: i } = Zt(e), r =
|
|
219
|
+
const e = At(), { chooseDataSourceShow: t, listData: i } = Zt(e), r = Ee(() => i.value.map((d) => d.name).join(",")), s = ce(), o = ce([]), a = ce(""), l = Ee(() => o.value.filter((d) => d.name.indexOf(a.value) > -1));
|
|
223
220
|
function u(d) {
|
|
224
221
|
i.value = d;
|
|
225
222
|
}
|
|
@@ -2578,10 +2575,10 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
2578
2575
|
if (W) {
|
|
2579
2576
|
var Ki = [De].concat(ft, Yt, Z);
|
|
2580
2577
|
Ii !== void 0 && Ki.push(Ii);
|
|
2581
|
-
var
|
|
2578
|
+
var mt = String(V.apply(void 0, Ki));
|
|
2582
2579
|
} else
|
|
2583
|
-
|
|
2584
|
-
Yt >= be && (fe += Z.slice(be, Yt) +
|
|
2580
|
+
mt = R(De, Z, Yt, ft, Ii, V);
|
|
2581
|
+
Yt >= be && (fe += Z.slice(be, Yt) + mt, be = Yt + De.length);
|
|
2585
2582
|
}
|
|
2586
2583
|
return fe + Z.slice(be);
|
|
2587
2584
|
}
|
|
@@ -3239,17 +3236,17 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3239
3236
|
a4d3: (
|
|
3240
3237
|
/***/
|
|
3241
3238
|
function(r, s, o) {
|
|
3242
|
-
var a = o("23e7"), l = o("da84"), u = o("d066"), h = o("c430"), c = o("83ab"), f = o("4930"), d = o("fdbf"), p = o("d039"), g = o("5135"), m = o("e8b5"), O = o("861d"), y = o("825a"), k = o("7b0b"), x = o("fc6a"), $ = o("c04e"), Q = o("5c6c"), T = o("7c73"), C = o("df75"), E = o("241c"), b = o("057f"), P = o("7418"), R = o("06cf"), A = o("9bf2"), V = o("d1e7"), z = o("9112"), X = o("6eeb"), Z = o("5692"), W = o("f772"), H = o("d012"), j = o("90e3"), re = o("b622"), se = o("e538"), te = o("746f"), fe = o("d44e"), be = o("69f3"), Xe = o("b727").forEach, De = W("hidden"), Yt = "Symbol", ft = "prototype", Nt = re("toPrimitive"), Ii = be.set, Ki = be.getterFor(Yt),
|
|
3239
|
+
var a = o("23e7"), l = o("da84"), u = o("d066"), h = o("c430"), c = o("83ab"), f = o("4930"), d = o("fdbf"), p = o("d039"), g = o("5135"), m = o("e8b5"), O = o("861d"), y = o("825a"), k = o("7b0b"), x = o("fc6a"), $ = o("c04e"), Q = o("5c6c"), T = o("7c73"), C = o("df75"), E = o("241c"), b = o("057f"), P = o("7418"), R = o("06cf"), A = o("9bf2"), V = o("d1e7"), z = o("9112"), X = o("6eeb"), Z = o("5692"), W = o("f772"), H = o("d012"), j = o("90e3"), re = o("b622"), se = o("e538"), te = o("746f"), fe = o("d44e"), be = o("69f3"), Xe = o("b727").forEach, De = W("hidden"), Yt = "Symbol", ft = "prototype", Nt = re("toPrimitive"), Ii = be.set, Ki = be.getterFor(Yt), mt = Object[ft], gt = l.Symbol, $n = u("JSON", "stringify"), Qi = R.f, xi = A.f, Gs = b.f, ol = V.f, di = Z("symbols"), Ji = Z("op-symbols"), qn = Z("string-to-symbol-registry"), Tr = Z("symbol-to-string-registry"), Cr = Z("wks"), Rr = l.QObject, Er = !Rr || !Rr[ft] || !Rr[ft].findChild, Zr = c && p(function() {
|
|
3243
3240
|
return T(xi({}, "a", {
|
|
3244
3241
|
get: function() {
|
|
3245
3242
|
return xi(this, "a", { value: 7 }).a;
|
|
3246
3243
|
}
|
|
3247
3244
|
})).a != 7;
|
|
3248
3245
|
}) ? function(ve, le, de) {
|
|
3249
|
-
var Te = Qi(
|
|
3250
|
-
Te && delete
|
|
3246
|
+
var Te = Qi(mt, le);
|
|
3247
|
+
Te && delete mt[le], xi(ve, le, de), Te && ve !== mt && xi(mt, le, Te);
|
|
3251
3248
|
} : xi, Ar = function(ve, le) {
|
|
3252
|
-
var de = di[ve] = T(
|
|
3249
|
+
var de = di[ve] = T(gt[ft]);
|
|
3253
3250
|
return Ii(de, {
|
|
3254
3251
|
type: Yt,
|
|
3255
3252
|
tag: ve,
|
|
@@ -3258,9 +3255,9 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3258
3255
|
}, D = d ? function(ve) {
|
|
3259
3256
|
return typeof ve == "symbol";
|
|
3260
3257
|
} : function(ve) {
|
|
3261
|
-
return Object(ve) instanceof
|
|
3258
|
+
return Object(ve) instanceof gt;
|
|
3262
3259
|
}, Y = function(le, de, Te) {
|
|
3263
|
-
le ===
|
|
3260
|
+
le === mt && Y(Ji, de, Te), y(le);
|
|
3264
3261
|
var Ce = $(de, !0);
|
|
3265
3262
|
return y(Te), g(di, Ce) ? (Te.enumerable ? (g(le, De) && le[De][Ce] && (le[De][Ce] = !1), Te = T(Te, { enumerable: Q(0, !1) })) : (g(le, De) || xi(le, De, Q(1, {})), le[De][Ce] = !0), Zr(le, Ce, Te)) : xi(le, Ce, Te);
|
|
3266
3263
|
}, I = function(le, de) {
|
|
@@ -3273,10 +3270,10 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3273
3270
|
return de === void 0 ? T(le) : I(T(le), de);
|
|
3274
3271
|
}, oe = function(le) {
|
|
3275
3272
|
var de = $(le, !0), Te = ol.call(this, de);
|
|
3276
|
-
return this ===
|
|
3273
|
+
return this === mt && g(di, de) && !g(Ji, de) ? !1 : Te || !g(this, de) || !g(di, de) || g(this, De) && this[De][de] ? Te : !0;
|
|
3277
3274
|
}, ge = function(le, de) {
|
|
3278
3275
|
var Te = x(le), Ce = $(de, !0);
|
|
3279
|
-
if (!(Te ===
|
|
3276
|
+
if (!(Te === mt && g(di, Ce) && !g(Ji, Ce))) {
|
|
3280
3277
|
var Dt = Qi(Te, Ce);
|
|
3281
3278
|
return Dt && g(di, Ce) && !(g(Te, De) && Te[De][Ce]) && (Dt.enumerable = !0), Dt;
|
|
3282
3279
|
}
|
|
@@ -3286,31 +3283,31 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3286
3283
|
!g(di, Ce) && !g(H, Ce) && Te.push(Ce);
|
|
3287
3284
|
}), Te;
|
|
3288
3285
|
}, Ve = function(le) {
|
|
3289
|
-
var de = le ===
|
|
3286
|
+
var de = le === mt, Te = Gs(de ? Ji : x(le)), Ce = [];
|
|
3290
3287
|
return Xe(Te, function(Dt) {
|
|
3291
|
-
g(di, Dt) && (!de || g(
|
|
3288
|
+
g(di, Dt) && (!de || g(mt, Dt)) && Ce.push(di[Dt]);
|
|
3292
3289
|
}), Ce;
|
|
3293
3290
|
};
|
|
3294
|
-
if (f || (
|
|
3295
|
-
if (this instanceof
|
|
3291
|
+
if (f || (gt = function() {
|
|
3292
|
+
if (this instanceof gt)
|
|
3296
3293
|
throw TypeError("Symbol is not a constructor");
|
|
3297
3294
|
var le = !arguments.length || arguments[0] === void 0 ? void 0 : String(arguments[0]), de = j(le), Te = function(Ce) {
|
|
3298
|
-
this ===
|
|
3295
|
+
this === mt && Te.call(Ji, Ce), g(this, De) && g(this[De], de) && (this[De][de] = !1), Zr(this, de, Q(1, Ce));
|
|
3299
3296
|
};
|
|
3300
|
-
return c && Er && Zr(
|
|
3301
|
-
}, X(
|
|
3297
|
+
return c && Er && Zr(mt, de, { configurable: !0, set: Te }), Ar(de, le);
|
|
3298
|
+
}, X(gt[ft], "toString", function() {
|
|
3302
3299
|
return Ki(this).tag;
|
|
3303
|
-
}), X(
|
|
3300
|
+
}), X(gt, "withoutSetter", function(ve) {
|
|
3304
3301
|
return Ar(j(ve), ve);
|
|
3305
3302
|
}), V.f = oe, A.f = Y, R.f = ge, E.f = b.f = Pe, P.f = Ve, se.f = function(ve) {
|
|
3306
3303
|
return Ar(re(ve), ve);
|
|
3307
|
-
}, c && (xi(
|
|
3304
|
+
}, c && (xi(gt[ft], "description", {
|
|
3308
3305
|
configurable: !0,
|
|
3309
3306
|
get: function() {
|
|
3310
3307
|
return Ki(this).description;
|
|
3311
3308
|
}
|
|
3312
|
-
}), h || X(
|
|
3313
|
-
Symbol:
|
|
3309
|
+
}), h || X(mt, "propertyIsEnumerable", oe, { unsafe: !0 }))), a({ global: !0, wrap: !0, forced: !f, sham: !f }, {
|
|
3310
|
+
Symbol: gt
|
|
3314
3311
|
}), Xe(C(Cr), function(ve) {
|
|
3315
3312
|
te(ve);
|
|
3316
3313
|
}), a({ target: Yt, stat: !0, forced: !f }, {
|
|
@@ -3320,7 +3317,7 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3320
3317
|
var le = String(ve);
|
|
3321
3318
|
if (g(qn, le))
|
|
3322
3319
|
return qn[le];
|
|
3323
|
-
var de =
|
|
3320
|
+
var de = gt(le);
|
|
3324
3321
|
return qn[le] = de, Tr[de] = le, de;
|
|
3325
3322
|
},
|
|
3326
3323
|
// `Symbol.keyFor` method
|
|
@@ -3364,11 +3361,11 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3364
3361
|
return P.f(k(le));
|
|
3365
3362
|
}
|
|
3366
3363
|
}), $n) {
|
|
3367
|
-
var
|
|
3368
|
-
var ve =
|
|
3364
|
+
var rt = !f || p(function() {
|
|
3365
|
+
var ve = gt();
|
|
3369
3366
|
return $n([ve]) != "[null]" || $n({ a: ve }) != "{}" || $n(Object(ve)) != "{}";
|
|
3370
3367
|
});
|
|
3371
|
-
a({ target: "JSON", stat: !0, forced:
|
|
3368
|
+
a({ target: "JSON", stat: !0, forced: rt }, {
|
|
3372
3369
|
// eslint-disable-next-line no-unused-vars
|
|
3373
3370
|
stringify: function(le, de, Te) {
|
|
3374
3371
|
for (var Ce = [le], Dt = 1, al; arguments.length > Dt; )
|
|
@@ -3381,7 +3378,7 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
3381
3378
|
}
|
|
3382
3379
|
});
|
|
3383
3380
|
}
|
|
3384
|
-
|
|
3381
|
+
gt[ft][Nt] || z(gt[ft], Nt, gt[ft].valueOf), fe(gt, Yt), H[De] = !0;
|
|
3385
3382
|
}
|
|
3386
3383
|
),
|
|
3387
3384
|
/***/
|
|
@@ -4211,8 +4208,8 @@ const Z1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
4211
4208
|
try {
|
|
4212
4209
|
for (var Pe = D[Symbol.iterator](), Ve; !(G = (Ve = Pe.next()).done) && (I.push(Ve.value), !(Y && I.length === Y)); G = !0)
|
|
4213
4210
|
;
|
|
4214
|
-
} catch (
|
|
4215
|
-
oe = !0, ge =
|
|
4211
|
+
} catch (rt) {
|
|
4212
|
+
oe = !0, ge = rt;
|
|
4216
4213
|
} finally {
|
|
4217
4214
|
try {
|
|
4218
4215
|
!G && Pe.return != null && Pe.return();
|
|
@@ -4326,9 +4323,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4326
4323
|
function De(D) {
|
|
4327
4324
|
var Y = D.$attrs, I = D.callBackBuilder, G = be(Yt(Y));
|
|
4328
4325
|
Object.entries(I).forEach(function(ge) {
|
|
4329
|
-
var Pe = y(ge, 2), Ve = Pe[0],
|
|
4326
|
+
var Pe = y(ge, 2), Ve = Pe[0], rt = Pe[1];
|
|
4330
4327
|
H[Ve].forEach(function(ve) {
|
|
4331
|
-
G["on".concat(ve)] =
|
|
4328
|
+
G["on".concat(ve)] = rt(ve);
|
|
4332
4329
|
});
|
|
4333
4330
|
});
|
|
4334
4331
|
var oe = "[data-draggable]".concat(G.draggable || "");
|
|
@@ -4365,9 +4362,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4365
4362
|
var Ki = function(Y) {
|
|
4366
4363
|
var I = Y.el;
|
|
4367
4364
|
return I;
|
|
4368
|
-
},
|
|
4365
|
+
}, mt = function(Y, I) {
|
|
4369
4366
|
return Y.__draggable_context = I;
|
|
4370
|
-
},
|
|
4367
|
+
}, gt = function(Y) {
|
|
4371
4368
|
return Y.__draggable_context;
|
|
4372
4369
|
}, $n = /* @__PURE__ */ function() {
|
|
4373
4370
|
function D(Y) {
|
|
@@ -4389,7 +4386,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4389
4386
|
value: function() {
|
|
4390
4387
|
var I = this.defaultNodes, G = this.realList;
|
|
4391
4388
|
I.forEach(function(oe, ge) {
|
|
4392
|
-
|
|
4389
|
+
mt(Ki(oe), {
|
|
4393
4390
|
element: G[ge],
|
|
4394
4391
|
index: ge
|
|
4395
4392
|
});
|
|
@@ -4398,7 +4395,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4398
4395
|
}, {
|
|
4399
4396
|
key: "getUnderlyingVm",
|
|
4400
4397
|
value: function(I) {
|
|
4401
|
-
return
|
|
4398
|
+
return gt(I);
|
|
4402
4399
|
}
|
|
4403
4400
|
}, {
|
|
4404
4401
|
key: "getVmIndexFromDomIndex",
|
|
@@ -4406,9 +4403,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4406
4403
|
var oe = this.defaultNodes, ge = oe.length, Pe = G.children, Ve = Pe.item(I);
|
|
4407
4404
|
if (Ve === null)
|
|
4408
4405
|
return ge;
|
|
4409
|
-
var
|
|
4410
|
-
if (
|
|
4411
|
-
return
|
|
4406
|
+
var rt = gt(Ve);
|
|
4407
|
+
if (rt)
|
|
4408
|
+
return rt.index;
|
|
4412
4409
|
if (ge === 0)
|
|
4413
4410
|
return 0;
|
|
4414
4411
|
var ve = Ki(oe[0]), le = Q(Pe).findIndex(function(de) {
|
|
@@ -4430,7 +4427,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4430
4427
|
function Gs(D) {
|
|
4431
4428
|
var Y = D.$slots, I = D.realList, G = D.getKey, oe = I || [], ge = ["header", "footer"].map(function(de) {
|
|
4432
4429
|
return xi(Y, de);
|
|
4433
|
-
}), Pe = y(ge, 2), Ve = Pe[0],
|
|
4430
|
+
}), Pe = y(ge, 2), Ve = Pe[0], rt = Pe[1], ve = Y.item;
|
|
4434
4431
|
if (!ve)
|
|
4435
4432
|
throw new Error("draggable element must have an item slot");
|
|
4436
4433
|
var le = oe.flatMap(function(de, Te) {
|
|
@@ -4447,7 +4444,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4447
4444
|
throw new Error("Item slot must have only one child");
|
|
4448
4445
|
return {
|
|
4449
4446
|
header: Ve,
|
|
4450
|
-
footer:
|
|
4447
|
+
footer: rt,
|
|
4451
4448
|
default: le
|
|
4452
4449
|
};
|
|
4453
4450
|
}
|
|
@@ -4546,11 +4543,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4546
4543
|
getKey: Pe
|
|
4547
4544
|
});
|
|
4548
4545
|
this.componentStructure = Ve;
|
|
4549
|
-
var
|
|
4546
|
+
var rt = Xe({
|
|
4550
4547
|
$attrs: I,
|
|
4551
4548
|
componentData: oe
|
|
4552
4549
|
});
|
|
4553
|
-
return Ve.render(Qi.h,
|
|
4550
|
+
return Ve.render(Qi.h, rt);
|
|
4554
4551
|
} catch (ve) {
|
|
4555
4552
|
return this.error = !0, Object(Qi.h)("pre", {
|
|
4556
4553
|
style: {
|
|
@@ -4570,14 +4567,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4570
4567
|
var ge = De({
|
|
4571
4568
|
$attrs: I,
|
|
4572
4569
|
callBackBuilder: {
|
|
4573
|
-
manageAndEmit: function(
|
|
4574
|
-
return Tr.call(Y,
|
|
4570
|
+
manageAndEmit: function(rt) {
|
|
4571
|
+
return Tr.call(Y, rt);
|
|
4575
4572
|
},
|
|
4576
|
-
emit: function(
|
|
4577
|
-
return Ji.bind(Y,
|
|
4573
|
+
emit: function(rt) {
|
|
4574
|
+
return Ji.bind(Y, rt);
|
|
4578
4575
|
},
|
|
4579
|
-
manage: function(
|
|
4580
|
-
return qn.call(Y,
|
|
4576
|
+
manage: function(rt) {
|
|
4577
|
+
return qn.call(Y, rt);
|
|
4581
4578
|
}
|
|
4582
4579
|
}
|
|
4583
4580
|
}), Pe = G.nodeType === 1 ? G : G.parentElement;
|
|
@@ -4726,11 +4723,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
4726
4723
|
return !0;
|
|
4727
4724
|
var ge = this.getRelatedContextFromMoveEvent(Y), Pe = this.computeFutureIndex(ge, Y), Ve = f(f({}, this.context), {}, {
|
|
4728
4725
|
futureIndex: Pe
|
|
4729
|
-
}),
|
|
4726
|
+
}), rt = f(f({}, Y), {}, {
|
|
4730
4727
|
relatedContext: ge,
|
|
4731
4728
|
draggedContext: Ve
|
|
4732
4729
|
});
|
|
4733
|
-
return G(
|
|
4730
|
+
return G(rt, I);
|
|
4734
4731
|
},
|
|
4735
4732
|
onDragEnd: function() {
|
|
4736
4733
|
Cr = null;
|
|
@@ -4843,7 +4840,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
4843
4840
|
}
|
|
4844
4841
|
},
|
|
4845
4842
|
setup(n) {
|
|
4846
|
-
const e = n, t = At(), { detail: i, selectedChartId: r, activeStatement: s, activeStatementIndex: o, selectedChart: a } = Zt(t), l =
|
|
4843
|
+
const e = n, t = At(), { detail: i, selectedChartId: r, activeStatement: s, activeStatementIndex: o, selectedChart: a } = Zt(t), l = Ee(() => e.elData.position ? {
|
|
4847
4844
|
position: e.elData.position === "fixed" ? "absolute" : e.elData.position,
|
|
4848
4845
|
left: e.elData.left + "px",
|
|
4849
4846
|
top: e.elData.top + "px",
|
|
@@ -5034,7 +5031,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5034
5031
|
Z.classList.remove("drag-over");
|
|
5035
5032
|
}), r.value = !1;
|
|
5036
5033
|
}
|
|
5037
|
-
const f =
|
|
5034
|
+
const f = Ee(() => {
|
|
5038
5035
|
const Z = {};
|
|
5039
5036
|
return t.statement.meta.forEach((W) => {
|
|
5040
5037
|
Z[W.field] = W;
|
|
@@ -5045,7 +5042,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5045
5042
|
gray: "#F0F2F4",
|
|
5046
5043
|
dark: "#133AAD",
|
|
5047
5044
|
custom: "#E0E9FD"
|
|
5048
|
-
}, p =
|
|
5045
|
+
}, p = Ee(() => {
|
|
5049
5046
|
let Z = t.statement.custom.fullContainer ? "100%" : `${t.statement.width}px`, W = `${t.statement.height}px`, H = d[t.statement.theme.themeName];
|
|
5050
5047
|
t.statement.theme.themeName === "custom" && t.statement.theme.themeColor && (H = t.statement.theme.themeColor);
|
|
5051
5048
|
const j = Uv(H);
|
|
@@ -5057,7 +5054,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5057
5054
|
"--theme-bg-font": j ? "#eee" : "#333"
|
|
5058
5055
|
};
|
|
5059
5056
|
});
|
|
5060
|
-
|
|
5057
|
+
Ee({
|
|
5061
5058
|
get() {
|
|
5062
5059
|
return t.statement.meta;
|
|
5063
5060
|
},
|
|
@@ -5065,28 +5062,28 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5065
5062
|
t.statement.meta = Z;
|
|
5066
5063
|
}
|
|
5067
5064
|
});
|
|
5068
|
-
const g =
|
|
5065
|
+
const g = Ee({
|
|
5069
5066
|
get() {
|
|
5070
5067
|
return t.statement.rows.map((Z) => f.value[Z]);
|
|
5071
5068
|
},
|
|
5072
5069
|
set(Z) {
|
|
5073
5070
|
t.statement.rows = Z.map((W) => W.field);
|
|
5074
5071
|
}
|
|
5075
|
-
}), m =
|
|
5072
|
+
}), m = Ee({
|
|
5076
5073
|
get() {
|
|
5077
5074
|
return t.statement.columns.map((Z) => f.value[Z]);
|
|
5078
5075
|
},
|
|
5079
5076
|
set(Z) {
|
|
5080
5077
|
t.statement.columns = Z.map((W) => W.field);
|
|
5081
5078
|
}
|
|
5082
|
-
}), O =
|
|
5079
|
+
}), O = Ee({
|
|
5083
5080
|
get() {
|
|
5084
5081
|
return t.statement.values.map((Z) => f.value[Z]);
|
|
5085
5082
|
},
|
|
5086
5083
|
set(Z) {
|
|
5087
5084
|
t.statement.values = Z.map((W) => W.field);
|
|
5088
5085
|
}
|
|
5089
|
-
}), y =
|
|
5086
|
+
}), y = Ee({
|
|
5090
5087
|
get() {
|
|
5091
5088
|
var Z;
|
|
5092
5089
|
return (Z = t.statement.params) == null ? void 0 : Z.map((W) => {
|
|
@@ -5102,7 +5099,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5102
5099
|
set(Z) {
|
|
5103
5100
|
return t.statement.params;
|
|
5104
5101
|
}
|
|
5105
|
-
}), k = ce(), x = At(), { activeStatementIndex: $, sourceData: Q } = Zt(x), T =
|
|
5102
|
+
}), k = ce(), x = At(), { activeStatementIndex: $, sourceData: Q } = Zt(x), T = Ee(() => t.statement ? t.statement.type === "pivotSheet" : !1);
|
|
5106
5103
|
function C() {
|
|
5107
5104
|
let Z = {
|
|
5108
5105
|
option: t.statement,
|
|
@@ -5352,7 +5349,7 @@ const qa = (n) => (vv("data-v-89e69b6c"), n = n(), bv(), n), V1 = { class: "fiel
|
|
|
5352
5349
|
}), Tb = { class: "yh-statement-table" }, Cb = { class: "add-block" }, Rb = /* @__PURE__ */ L("i", { class: "iconfont icon-plus" }, null, -1), Eb = /* @__PURE__ */ L("i", { class: "iconfont icon-plus" }, null, -1), Zb = /* @__PURE__ */ Vt({
|
|
5353
5350
|
__name: "s2-desinger",
|
|
5354
5351
|
setup(n) {
|
|
5355
|
-
const e = At(), { detail: t, selectedChartId: i, selectedChart: r, activeStatement: s, activeStatementIndex: o, activeStatementItem: a } = Zt(e), l =
|
|
5352
|
+
const e = At(), { detail: t, selectedChartId: i, selectedChart: r, activeStatement: s, activeStatementIndex: o, activeStatementItem: a } = Zt(e), l = Ee({
|
|
5356
5353
|
get() {
|
|
5357
5354
|
return t.value.statementOptions;
|
|
5358
5355
|
},
|
|
@@ -5451,7 +5448,7 @@ const Ab = { class: "yh-statement-charts" }, Xb = {
|
|
|
5451
5448
|
], 512));
|
|
5452
5449
|
}
|
|
5453
5450
|
});
|
|
5454
|
-
class
|
|
5451
|
+
class Ae {
|
|
5455
5452
|
/**
|
|
5456
5453
|
Get the line description around the given position.
|
|
5457
5454
|
*/
|
|
@@ -5583,10 +5580,10 @@ class Ze {
|
|
|
5583
5580
|
static of(e) {
|
|
5584
5581
|
if (e.length == 0)
|
|
5585
5582
|
throw new RangeError("A document must have at least one line");
|
|
5586
|
-
return e.length == 1 && !e[0] ?
|
|
5583
|
+
return e.length == 1 && !e[0] ? Ae.empty : e.length <= 32 ? new st(e) : Ti.from(st.split(e, []));
|
|
5587
5584
|
}
|
|
5588
5585
|
}
|
|
5589
|
-
class
|
|
5586
|
+
class st extends Ae {
|
|
5590
5587
|
constructor(e, t = Yb(e)) {
|
|
5591
5588
|
super(), this.text = e, this.length = t;
|
|
5592
5589
|
}
|
|
@@ -5605,24 +5602,24 @@ class rt extends Ze {
|
|
|
5605
5602
|
}
|
|
5606
5603
|
}
|
|
5607
5604
|
decompose(e, t, i, r) {
|
|
5608
|
-
let s = e <= 0 && t >= this.length ? this : new
|
|
5605
|
+
let s = e <= 0 && t >= this.length ? this : new st(Fc(this.text, e, t), Math.min(t, this.length) - Math.max(0, e));
|
|
5609
5606
|
if (r & 1) {
|
|
5610
5607
|
let o = i.pop(), a = Uo(s.text, o.text.slice(), 0, s.length);
|
|
5611
5608
|
if (a.length <= 32)
|
|
5612
|
-
i.push(new
|
|
5609
|
+
i.push(new st(a, o.length + s.length));
|
|
5613
5610
|
else {
|
|
5614
5611
|
let l = a.length >> 1;
|
|
5615
|
-
i.push(new
|
|
5612
|
+
i.push(new st(a.slice(0, l)), new st(a.slice(l)));
|
|
5616
5613
|
}
|
|
5617
5614
|
} else
|
|
5618
5615
|
i.push(s);
|
|
5619
5616
|
}
|
|
5620
5617
|
replace(e, t, i) {
|
|
5621
|
-
if (!(i instanceof
|
|
5618
|
+
if (!(i instanceof st))
|
|
5622
5619
|
return super.replace(e, t, i);
|
|
5623
5620
|
[e, t] = dr(this, e, t);
|
|
5624
5621
|
let r = Uo(this.text, Uo(i.text, Fc(this.text, 0, e)), t), s = this.length + i.length - (t - e);
|
|
5625
|
-
return r.length <= 32 ? new
|
|
5622
|
+
return r.length <= 32 ? new st(r, s) : Ti.from(st.split(r, []), s);
|
|
5626
5623
|
}
|
|
5627
5624
|
sliceString(e, t = this.length, i = `
|
|
5628
5625
|
`) {
|
|
@@ -5644,11 +5641,11 @@ class rt extends Ze {
|
|
|
5644
5641
|
static split(e, t) {
|
|
5645
5642
|
let i = [], r = -1;
|
|
5646
5643
|
for (let s of e)
|
|
5647
|
-
i.push(s), r += s.length + 1, i.length == 32 && (t.push(new
|
|
5648
|
-
return r > -1 && t.push(new
|
|
5644
|
+
i.push(s), r += s.length + 1, i.length == 32 && (t.push(new st(i, r)), i = [], r = -1);
|
|
5645
|
+
return r > -1 && t.push(new st(i, r)), t;
|
|
5649
5646
|
}
|
|
5650
5647
|
}
|
|
5651
|
-
class Ti extends
|
|
5648
|
+
class Ti extends Ae {
|
|
5652
5649
|
constructor(e, t) {
|
|
5653
5650
|
super(), this.children = e, this.length = t, this.lines = 0;
|
|
5654
5651
|
for (let i of e)
|
|
@@ -5723,7 +5720,7 @@ class Ti extends Ze {
|
|
|
5723
5720
|
let d = [];
|
|
5724
5721
|
for (let p of e)
|
|
5725
5722
|
p.flatten(d);
|
|
5726
|
-
return new
|
|
5723
|
+
return new st(d, t);
|
|
5727
5724
|
}
|
|
5728
5725
|
let r = Math.max(
|
|
5729
5726
|
32,
|
|
@@ -5736,7 +5733,7 @@ class Ti extends Ze {
|
|
|
5736
5733
|
for (let g of d.children)
|
|
5737
5734
|
c(g);
|
|
5738
5735
|
else
|
|
5739
|
-
d.lines > o && (l > o || !l) ? (f(), a.push(d)) : d instanceof
|
|
5736
|
+
d.lines > o && (l > o || !l) ? (f(), a.push(d)) : d instanceof st && l && (p = h[h.length - 1]) instanceof st && d.lines + p.lines <= 32 ? (l += d.lines, u += d.length + 1, h[h.length - 1] = new st(p.text.concat(d.text), p.length + 1 + d.length)) : (l + d.lines > r && f(), l += d.lines, u += d.length + 1, h.push(d));
|
|
5740
5737
|
}
|
|
5741
5738
|
function f() {
|
|
5742
5739
|
l != 0 && (a.push(h.length == 1 ? h[0] : Ti.from(h, u)), u = -1, l = h.length = 0);
|
|
@@ -5746,7 +5743,7 @@ class Ti extends Ze {
|
|
|
5746
5743
|
return f(), a.length == 1 ? a[0] : new Ti(a, t);
|
|
5747
5744
|
}
|
|
5748
5745
|
}
|
|
5749
|
-
|
|
5746
|
+
Ae.empty = /* @__PURE__ */ new st([""], 0);
|
|
5750
5747
|
function Yb(n) {
|
|
5751
5748
|
let e = -1;
|
|
5752
5749
|
for (let t of n)
|
|
@@ -5765,11 +5762,11 @@ function Fc(n, e, t) {
|
|
|
5765
5762
|
}
|
|
5766
5763
|
class hs {
|
|
5767
5764
|
constructor(e, t = 1) {
|
|
5768
|
-
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof
|
|
5765
|
+
this.dir = t, this.done = !1, this.lineBreak = !1, this.value = "", this.nodes = [e], this.offsets = [t > 0 ? 1 : (e instanceof st ? e.text.length : e.children.length) << 1];
|
|
5769
5766
|
}
|
|
5770
5767
|
nextInner(e, t) {
|
|
5771
5768
|
for (this.done = this.lineBreak = !1; ; ) {
|
|
5772
|
-
let i = this.nodes.length - 1, r = this.nodes[i], s = this.offsets[i], o = s >> 1, a = r instanceof
|
|
5769
|
+
let i = this.nodes.length - 1, r = this.nodes[i], s = this.offsets[i], o = s >> 1, a = r instanceof st ? r.text.length : r.children.length;
|
|
5773
5770
|
if (o == (t > 0 ? a : 0)) {
|
|
5774
5771
|
if (i == 0)
|
|
5775
5772
|
return this.done = !0, this.value = "", this;
|
|
@@ -5779,14 +5776,14 @@ class hs {
|
|
|
5779
5776
|
return this.lineBreak = !0, this.value = `
|
|
5780
5777
|
`, this;
|
|
5781
5778
|
e--;
|
|
5782
|
-
} else if (r instanceof
|
|
5779
|
+
} else if (r instanceof st) {
|
|
5783
5780
|
let l = r.text[o + (t < 0 ? -1 : 0)];
|
|
5784
5781
|
if (this.offsets[i] += t, l.length > Math.max(0, e))
|
|
5785
5782
|
return this.value = e == 0 ? l : t > 0 ? l.slice(e) : l.slice(0, l.length - e), this;
|
|
5786
5783
|
e -= l.length;
|
|
5787
5784
|
} else {
|
|
5788
5785
|
let l = r.children[o + (t < 0 ? -1 : 0)];
|
|
5789
|
-
e > l.length ? (e -= l.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(l), this.offsets.push(t > 0 ? 1 : (l instanceof
|
|
5786
|
+
e > l.length ? (e -= l.length, this.offsets[i] += t) : (t < 0 && this.offsets[i]--, this.nodes.push(l), this.offsets.push(t > 0 ? 1 : (l instanceof st ? l.text.length : l.children.length) << 1));
|
|
5790
5787
|
}
|
|
5791
5788
|
}
|
|
5792
5789
|
}
|
|
@@ -5826,7 +5823,7 @@ class yp {
|
|
|
5826
5823
|
return !1;
|
|
5827
5824
|
}
|
|
5828
5825
|
}
|
|
5829
|
-
typeof Symbol < "u" && (
|
|
5826
|
+
typeof Symbol < "u" && (Ae.prototype[Symbol.iterator] = function() {
|
|
5830
5827
|
return this.iter();
|
|
5831
5828
|
}, hs.prototype[Symbol.iterator] = bp.prototype[Symbol.iterator] = yp.prototype[Symbol.iterator] = function() {
|
|
5832
5829
|
return this;
|
|
@@ -6107,8 +6104,8 @@ class ct extends Vi {
|
|
|
6107
6104
|
t[r] = a, t[r + 1] = o;
|
|
6108
6105
|
let l = r >> 1;
|
|
6109
6106
|
for (; i.length < l; )
|
|
6110
|
-
i.push(
|
|
6111
|
-
i.push(o ? e.slice(s, s + o) :
|
|
6107
|
+
i.push(Ae.empty);
|
|
6108
|
+
i.push(o ? e.slice(s, s + o) : Ae.empty);
|
|
6112
6109
|
}
|
|
6113
6110
|
s += o;
|
|
6114
6111
|
}
|
|
@@ -6223,7 +6220,7 @@ class ct extends Vi {
|
|
|
6223
6220
|
let { from: c, to: f = c, insert: d } = h;
|
|
6224
6221
|
if (c > f || c < 0 || f > t)
|
|
6225
6222
|
throw new RangeError(`Invalid change range ${c} to ${f} (in doc of length ${t})`);
|
|
6226
|
-
let p = d ? typeof d == "string" ?
|
|
6223
|
+
let p = d ? typeof d == "string" ? Ae.of(d.split(i || wu)) : d : Ae.empty, g = p.length;
|
|
6227
6224
|
if (c == f && g == 0)
|
|
6228
6225
|
return;
|
|
6229
6226
|
c < o && l(), c > o && Pt(r, c - o, -1), Pt(r, f - c, g), hn(s, r, p), o = f;
|
|
@@ -6256,8 +6253,8 @@ class ct extends Vi {
|
|
|
6256
6253
|
t.push(s[0], 0);
|
|
6257
6254
|
else {
|
|
6258
6255
|
for (; i.length < r; )
|
|
6259
|
-
i.push(
|
|
6260
|
-
i[r] =
|
|
6256
|
+
i.push(Ae.empty);
|
|
6257
|
+
i[r] = Ae.of(s.slice(1)), t.push(s[0], i[r].length);
|
|
6261
6258
|
}
|
|
6262
6259
|
}
|
|
6263
6260
|
}
|
|
@@ -6284,7 +6281,7 @@ function hn(n, e, t) {
|
|
|
6284
6281
|
n[n.length - 1] = n[n.length - 1].append(t);
|
|
6285
6282
|
else {
|
|
6286
6283
|
for (; n.length < i; )
|
|
6287
|
-
n.push(
|
|
6284
|
+
n.push(Ae.empty);
|
|
6288
6285
|
n.push(t);
|
|
6289
6286
|
}
|
|
6290
6287
|
}
|
|
@@ -6295,7 +6292,7 @@ function $u(n, e, t) {
|
|
|
6295
6292
|
if (l < 0)
|
|
6296
6293
|
r += a, s += a;
|
|
6297
6294
|
else {
|
|
6298
|
-
let u = r, h = s, c =
|
|
6295
|
+
let u = r, h = s, c = Ae.empty;
|
|
6299
6296
|
for (; u += a, h += l, l && i && (c = c.append(i[o - 2 >> 1])), !(t || o == n.sections.length || n.sections[o + 1] < 0); )
|
|
6300
6297
|
a = n.sections[o++], l = n.sections[o++];
|
|
6301
6298
|
e(r, u, s, h, c), r = u, s = h;
|
|
@@ -6372,11 +6369,11 @@ class ms {
|
|
|
6372
6369
|
}
|
|
6373
6370
|
get text() {
|
|
6374
6371
|
let { inserted: e } = this.set, t = this.i - 2 >> 1;
|
|
6375
|
-
return t >= e.length ?
|
|
6372
|
+
return t >= e.length ? Ae.empty : e[t];
|
|
6376
6373
|
}
|
|
6377
6374
|
textBit(e) {
|
|
6378
6375
|
let { inserted: t } = this.set, i = this.i - 2 >> 1;
|
|
6379
|
-
return i >= t.length && !e ?
|
|
6376
|
+
return i >= t.length && !e ? Ae.empty : t[i].slice(this.off, e == null ? void 0 : this.off + e);
|
|
6380
6377
|
}
|
|
6381
6378
|
forward(e) {
|
|
6382
6379
|
e == this.len ? this.next() : (this.len -= e, this.off += e);
|
|
@@ -6685,7 +6682,7 @@ class qo {
|
|
|
6685
6682
|
let d, p = f.config.address[s];
|
|
6686
6683
|
if (p != null) {
|
|
6687
6684
|
let g = ua(f, p);
|
|
6688
|
-
if (this.dependencies.every((m) => m instanceof ee ? f.facet(m) === c.facet(m) : m instanceof
|
|
6685
|
+
if (this.dependencies.every((m) => m instanceof ee ? f.facet(m) === c.facet(m) : m instanceof pt ? f.field(m, !1) == c.field(m, !1) : !0) || (a ? Jc(d = i(c), g, r) : r(d = i(c), g)))
|
|
6689
6686
|
return c.values[o] = g, 0;
|
|
6690
6687
|
} else
|
|
6691
6688
|
d = i(c);
|
|
@@ -6744,7 +6741,7 @@ function Ib(n, e, t) {
|
|
|
6744
6741
|
};
|
|
6745
6742
|
}
|
|
6746
6743
|
const ef = /* @__PURE__ */ ee.define({ static: !0 });
|
|
6747
|
-
class
|
|
6744
|
+
class pt {
|
|
6748
6745
|
constructor(e, t, i, r, s) {
|
|
6749
6746
|
this.id = e, this.createF = t, this.updateF = i, this.compareF = r, this.spec = s, this.provides = void 0;
|
|
6750
6747
|
}
|
|
@@ -6752,7 +6749,7 @@ class Ot {
|
|
|
6752
6749
|
Define a state field.
|
|
6753
6750
|
*/
|
|
6754
6751
|
static define(e) {
|
|
6755
|
-
let t = new
|
|
6752
|
+
let t = new pt(Yh++, e.create, e.update, e.compare || ((i, r) => i === r), e);
|
|
6756
6753
|
return e.provide && (t.provides = e.provide(t)), t;
|
|
6757
6754
|
}
|
|
6758
6755
|
create(e) {
|
|
@@ -6868,7 +6865,7 @@ class la {
|
|
|
6868
6865
|
static resolve(e, t, i) {
|
|
6869
6866
|
let r = [], s = /* @__PURE__ */ Object.create(null), o = /* @__PURE__ */ new Map();
|
|
6870
6867
|
for (let f of zb(e, t, o))
|
|
6871
|
-
f instanceof
|
|
6868
|
+
f instanceof pt ? r.push(f) : (s[f.facet.id] || (s[f.facet.id] = [])).push(f);
|
|
6872
6869
|
let a = /* @__PURE__ */ Object.create(null), l = [], u = [];
|
|
6873
6870
|
for (let f of r)
|
|
6874
6871
|
a[f.id] = u.length << 1, u.push((d) => f.slot(d));
|
|
@@ -6915,7 +6912,7 @@ function zb(n, e, t) {
|
|
|
6915
6912
|
t.set(o.compartment, u), s(u, a);
|
|
6916
6913
|
} else if (o instanceof wp)
|
|
6917
6914
|
s(o.inner, o.prec);
|
|
6918
|
-
else if (o instanceof
|
|
6915
|
+
else if (o instanceof pt)
|
|
6919
6916
|
i[a].push(o), o.provides && s(o.provides, a);
|
|
6920
6917
|
else if (o instanceof qo)
|
|
6921
6918
|
i[a].push(o), o.facet.extensions && s(o.facet.extensions, An.default);
|
|
@@ -7326,7 +7323,7 @@ class Re {
|
|
|
7326
7323
|
[`Text`](https://codemirror.net/6/docs/ref/#state.Text) instance from the given string.
|
|
7327
7324
|
*/
|
|
7328
7325
|
toText(e) {
|
|
7329
|
-
return
|
|
7326
|
+
return Ae.of(e.split(this.facet(Re.lineSeparator) || wu));
|
|
7330
7327
|
}
|
|
7331
7328
|
/**
|
|
7332
7329
|
Return the given range of the document as a string.
|
|
@@ -7355,7 +7352,7 @@ class Re {
|
|
|
7355
7352
|
if (e)
|
|
7356
7353
|
for (let i in e) {
|
|
7357
7354
|
let r = e[i];
|
|
7358
|
-
r instanceof
|
|
7355
|
+
r instanceof pt && this.config.address[r.id] != null && (t[i] = r.spec.toJSON(this.field(e[i]), this));
|
|
7359
7356
|
}
|
|
7360
7357
|
return t;
|
|
7361
7358
|
}
|
|
@@ -7388,7 +7385,7 @@ class Re {
|
|
|
7388
7385
|
transactions.
|
|
7389
7386
|
*/
|
|
7390
7387
|
static create(e = {}) {
|
|
7391
|
-
let t = la.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof
|
|
7388
|
+
let t = la.resolve(e.extensions || [], /* @__PURE__ */ new Map()), i = e.doc instanceof Ae ? e.doc : Ae.of((e.doc || "").split(t.staticFacet(Re.lineSeparator) || wu)), r = e.selection ? e.selection instanceof q ? e.selection : q.single(e.selection.anchor, e.selection.head) : q.single(0);
|
|
7392
7389
|
return Pp(r, i.length), t.staticFacet(Ru) || (r = r.asSingle()), new Re(t, i, r, t.dynamicSlots.map(() => null), (s, o) => o.create(s), null);
|
|
7393
7390
|
}
|
|
7394
7391
|
/**
|
|
@@ -7605,7 +7602,7 @@ class Mh {
|
|
|
7605
7602
|
return { mapped: i.length ? new Mh(r, s, i, a) : null, pos: o };
|
|
7606
7603
|
}
|
|
7607
7604
|
}
|
|
7608
|
-
class
|
|
7605
|
+
class Ze {
|
|
7609
7606
|
constructor(e, t, i, r) {
|
|
7610
7607
|
this.chunkPos = e, this.chunk = t, this.nextLayer = i, this.maxPoint = r;
|
|
7611
7608
|
}
|
|
@@ -7613,7 +7610,7 @@ class Ee {
|
|
|
7613
7610
|
@internal
|
|
7614
7611
|
*/
|
|
7615
7612
|
static create(e, t, i, r) {
|
|
7616
|
-
return new
|
|
7613
|
+
return new Ze(e, t, i, r);
|
|
7617
7614
|
}
|
|
7618
7615
|
/**
|
|
7619
7616
|
@internal
|
|
@@ -7653,7 +7650,7 @@ class Ee {
|
|
|
7653
7650
|
if (t.length == 0 && !o)
|
|
7654
7651
|
return this;
|
|
7655
7652
|
if (i && (t = t.slice().sort(Xu)), this.isEmpty)
|
|
7656
|
-
return t.length ?
|
|
7653
|
+
return t.length ? Ze.of(t) : this;
|
|
7657
7654
|
let a = new Vp(this, null, -1).goto(0), l = 0, u = [], h = new gn();
|
|
7658
7655
|
for (; a.value || l < t.length; )
|
|
7659
7656
|
if (l < t.length && (a.from - t[l].from || a.startSide - t[l].value.startSide) >= 0) {
|
|
@@ -7661,7 +7658,7 @@ class Ee {
|
|
|
7661
7658
|
h.addInner(c.from, c.to, c.value) || u.push(c);
|
|
7662
7659
|
} else
|
|
7663
7660
|
a.rangeIndex == 1 && a.chunkIndex < this.chunk.length && (l == t.length || this.chunkEnd(a.chunkIndex) < t[l].from) && (!o || r > this.chunkEnd(a.chunkIndex) || s < this.chunkPos[a.chunkIndex]) && h.addChunk(this.chunkPos[a.chunkIndex], this.chunk[a.chunkIndex]) ? a.nextChunk() : ((!o || r > a.to || s < a.from || o(a.from, a.to, a.value)) && (h.addInner(a.from, a.to, a.value) || u.push(Au.create(a.from, a.to, a.value))), a.next());
|
|
7664
|
-
return h.finishInner(this.nextLayer.isEmpty && !u.length ?
|
|
7661
|
+
return h.finishInner(this.nextLayer.isEmpty && !u.length ? Ze.empty : this.nextLayer.update({ add: u, filter: o, filterFrom: r, filterTo: s }));
|
|
7665
7662
|
}
|
|
7666
7663
|
/**
|
|
7667
7664
|
Map this range set through a set of changes, return the new set.
|
|
@@ -7680,7 +7677,7 @@ class Ee {
|
|
|
7680
7677
|
}
|
|
7681
7678
|
}
|
|
7682
7679
|
let s = this.nextLayer.map(e);
|
|
7683
|
-
return t.length == 0 ? s : new
|
|
7680
|
+
return t.length == 0 ? s : new Ze(i, t, s || Ze.empty, r);
|
|
7684
7681
|
}
|
|
7685
7682
|
/**
|
|
7686
7683
|
Iterate over the ranges that touch the region `from` to `to`,
|
|
@@ -7785,15 +7782,15 @@ class Ee {
|
|
|
7785
7782
|
*/
|
|
7786
7783
|
static join(e) {
|
|
7787
7784
|
if (!e.length)
|
|
7788
|
-
return
|
|
7785
|
+
return Ze.empty;
|
|
7789
7786
|
let t = e[e.length - 1];
|
|
7790
7787
|
for (let i = e.length - 2; i >= 0; i--)
|
|
7791
|
-
for (let r = e[i]; r !=
|
|
7792
|
-
t = new
|
|
7788
|
+
for (let r = e[i]; r != Ze.empty; r = r.nextLayer)
|
|
7789
|
+
t = new Ze(r.chunkPos, r.chunk, t, Math.max(r.maxPoint, t.maxPoint));
|
|
7793
7790
|
return t;
|
|
7794
7791
|
}
|
|
7795
7792
|
}
|
|
7796
|
-
|
|
7793
|
+
Ze.empty = /* @__PURE__ */ new Ze([], [], null, -1);
|
|
7797
7794
|
function Kb(n) {
|
|
7798
7795
|
if (n.length > 1)
|
|
7799
7796
|
for (let e = n[0], t = 1; t < n.length; t++) {
|
|
@@ -7804,7 +7801,7 @@ function Kb(n) {
|
|
|
7804
7801
|
}
|
|
7805
7802
|
return n;
|
|
7806
7803
|
}
|
|
7807
|
-
|
|
7804
|
+
Ze.empty.nextLayer = Ze.empty;
|
|
7808
7805
|
class gn {
|
|
7809
7806
|
finishChunk(e) {
|
|
7810
7807
|
this.chunks.push(new Mh(this.from, this.to, this.value, this.maxPoint)), this.chunkPos.push(this.chunkStart), this.chunkStart = -1, this.setMaxPoint = Math.max(this.setMaxPoint, this.maxPoint), this.maxPoint = -1, e && (this.from = [], this.to = [], this.value = []);
|
|
@@ -7846,7 +7843,7 @@ class gn {
|
|
|
7846
7843
|
used anymore after this has been called.
|
|
7847
7844
|
*/
|
|
7848
7845
|
finish() {
|
|
7849
|
-
return this.finishInner(
|
|
7846
|
+
return this.finishInner(Ze.empty);
|
|
7850
7847
|
}
|
|
7851
7848
|
/**
|
|
7852
7849
|
@internal
|
|
@@ -7854,7 +7851,7 @@ class gn {
|
|
|
7854
7851
|
finishInner(e) {
|
|
7855
7852
|
if (this.from.length && this.finishChunk(!1), this.chunks.length == 0)
|
|
7856
7853
|
return e;
|
|
7857
|
-
let t =
|
|
7854
|
+
let t = Ze.create(this.chunkPos, this.chunks, this.nextLayer ? this.nextLayer.finishInner(e) : e, this.setMaxPoint);
|
|
7858
7855
|
return this.from = null, t;
|
|
7859
7856
|
}
|
|
7860
7857
|
}
|
|
@@ -8924,12 +8921,12 @@ class cn extends Le {
|
|
|
8924
8921
|
}
|
|
8925
8922
|
get overrideDOMText() {
|
|
8926
8923
|
if (this.length == 0)
|
|
8927
|
-
return
|
|
8924
|
+
return Ae.empty;
|
|
8928
8925
|
let e = this;
|
|
8929
8926
|
for (; e.parent; )
|
|
8930
8927
|
e = e.parent;
|
|
8931
8928
|
let { view: t } = e, i = t && t.state.doc, r = this.posAtStart;
|
|
8932
|
-
return i ? i.slice(r, r + this.length) :
|
|
8929
|
+
return i ? i.slice(r, r + this.length) : Ae.empty;
|
|
8933
8930
|
}
|
|
8934
8931
|
domAtPos(e) {
|
|
8935
8932
|
return (this.length ? e == 0 : this.side > 0) ? $t.before(this.dom) : $t.after(this.dom, e == this.length);
|
|
@@ -9000,7 +8997,7 @@ class Or extends Le {
|
|
|
9000
8997
|
return this.dom.getBoundingClientRect();
|
|
9001
8998
|
}
|
|
9002
8999
|
get overrideDOMText() {
|
|
9003
|
-
return
|
|
9000
|
+
return Ae.empty;
|
|
9004
9001
|
}
|
|
9005
9002
|
get isHidden() {
|
|
9006
9003
|
return !0;
|
|
@@ -9234,7 +9231,7 @@ class he extends Mn {
|
|
|
9234
9231
|
pass `true` for `sort` to make the library sort them for you.
|
|
9235
9232
|
*/
|
|
9236
9233
|
static set(e, t = !1) {
|
|
9237
|
-
return
|
|
9234
|
+
return Ze.of(e, t);
|
|
9238
9235
|
}
|
|
9239
9236
|
/**
|
|
9240
9237
|
@internal
|
|
@@ -9243,7 +9240,7 @@ class he extends Mn {
|
|
|
9243
9240
|
return this.widget ? this.widget.estimatedHeight > -1 : !1;
|
|
9244
9241
|
}
|
|
9245
9242
|
}
|
|
9246
|
-
he.none =
|
|
9243
|
+
he.none = Ze.empty;
|
|
9247
9244
|
class Ms extends he {
|
|
9248
9245
|
constructor(e) {
|
|
9249
9246
|
let { start: t, end: i } = Hp(e);
|
|
@@ -9437,7 +9434,7 @@ class ji extends Le {
|
|
|
9437
9434
|
(!this.dom || !this.widget.updateDOM(this.dom, e)) && (this.dom && this.prevWidget && this.prevWidget.destroy(this.dom), this.prevWidget = null, this.setDOM(this.widget.toDOM(e)), this.widget.editable || (this.dom.contentEditable = "false"));
|
|
9438
9435
|
}
|
|
9439
9436
|
get overrideDOMText() {
|
|
9440
|
-
return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) :
|
|
9437
|
+
return this.parent ? this.parent.view.state.doc.slice(this.posAtStart, this.posAtEnd) : Ae.empty;
|
|
9441
9438
|
}
|
|
9442
9439
|
domBoundsAround() {
|
|
9443
9440
|
return null;
|
|
@@ -9560,7 +9557,7 @@ class ds {
|
|
|
9560
9557
|
}
|
|
9561
9558
|
static build(e, t, i, r, s) {
|
|
9562
9559
|
let o = new ds(e, t, i, s);
|
|
9563
|
-
return o.openEnd =
|
|
9560
|
+
return o.openEnd = Ze.spans(r, t, i, o), o.openStart < 0 && (o.openStart = o.openEnd), o.finish(o.openEnd), o;
|
|
9564
9561
|
}
|
|
9565
9562
|
}
|
|
9566
9563
|
function ao(n, e) {
|
|
@@ -9971,7 +9968,7 @@ function pf(n, e) {
|
|
|
9971
9968
|
if (!t.length)
|
|
9972
9969
|
return t;
|
|
9973
9970
|
let i = t.map((s) => s instanceof Function ? s(n) : s), r = [];
|
|
9974
|
-
return
|
|
9971
|
+
return Ze.spans(i, e.from, e.to, {
|
|
9975
9972
|
point() {
|
|
9976
9973
|
},
|
|
9977
9974
|
span(s, o, a, l) {
|
|
@@ -10402,7 +10399,7 @@ class mf extends Le {
|
|
|
10402
10399
|
let a = typeof s == "function";
|
|
10403
10400
|
return a && (i = !0), a ? s(this.view) : s;
|
|
10404
10401
|
});
|
|
10405
|
-
for (r.length && (this.dynamicDecorationMap[e++] = i, t.push(
|
|
10402
|
+
for (r.length && (this.dynamicDecorationMap[e++] = i, t.push(Ze.join(r))), this.decorations = [
|
|
10406
10403
|
this.editContextFormatting,
|
|
10407
10404
|
...t,
|
|
10408
10405
|
this.computeBlockGapDeco(),
|
|
@@ -10506,7 +10503,7 @@ let $y = class {
|
|
|
10506
10503
|
};
|
|
10507
10504
|
function ky(n, e, t) {
|
|
10508
10505
|
let i = new $y();
|
|
10509
|
-
return
|
|
10506
|
+
return Ze.compare(n, e, t, i), i.changes;
|
|
10510
10507
|
}
|
|
10511
10508
|
function Ty(n, e) {
|
|
10512
10509
|
for (let t = n; t && t != e; t = t.assignedSlot || t.parentNode)
|
|
@@ -10874,7 +10871,7 @@ function ym(n, e) {
|
|
|
10874
10871
|
h && (ne.chrome && s == 13 && h.toB == h.from + 2 && e.text.slice(h.from, h.toB) == ts + ts && h.toB--, t = {
|
|
10875
10872
|
from: o + h.from,
|
|
10876
10873
|
to: o + h.toA,
|
|
10877
|
-
insert:
|
|
10874
|
+
insert: Ae.of(e.text.slice(h.from, h.toB).split(ts))
|
|
10878
10875
|
});
|
|
10879
10876
|
} else
|
|
10880
10877
|
i && (!n.hasFocus && n.state.facet(sn) || i.main.eq(r)) && (i = null);
|
|
@@ -10884,8 +10881,8 @@ function ym(n, e) {
|
|
|
10884
10881
|
from: r.from,
|
|
10885
10882
|
to: r.to,
|
|
10886
10883
|
insert: n.state.doc.slice(r.from, t.from).append(t.insert).append(n.state.doc.slice(t.to, r.to))
|
|
10887
|
-
} : (ne.mac || ne.android) && t && t.from == t.to && t.from == r.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = q.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert:
|
|
10888
|
-
` && n.lineWrapping && (i && (i = q.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert:
|
|
10884
|
+
} : (ne.mac || ne.android) && t && t.from == t.to && t.from == r.head - 1 && /^\. ?$/.test(t.insert.toString()) && n.contentDOM.getAttribute("autocorrect") == "off" ? (i && t.insert.length == 2 && (i = q.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert: Ae.of([" "]) }) : ne.chrome && t && t.from == t.to && t.from == r.head && t.insert.toString() == `
|
|
10885
|
+
` && n.lineWrapping && (i && (i = q.single(i.main.anchor - 1, i.main.head - 1)), t = { from: r.from, to: r.to, insert: Ae.of([" "]) }), t)
|
|
10889
10886
|
return Nh(n, t, i, s);
|
|
10890
10887
|
if (i && !i.main.eq(r)) {
|
|
10891
10888
|
let o = !1, a = "select";
|
|
@@ -11474,7 +11471,7 @@ function Zf() {
|
|
|
11474
11471
|
}
|
|
11475
11472
|
class u_ {
|
|
11476
11473
|
constructor(e) {
|
|
11477
|
-
this.lineWrapping = e, this.doc =
|
|
11474
|
+
this.lineWrapping = e, this.doc = Ae.empty, this.heightSamples = {}, this.lineHeight = 14, this.charWidth = 7, this.textHeight = 14, this.lineLength = 30;
|
|
11478
11475
|
}
|
|
11479
11476
|
heightForGap(e, t) {
|
|
11480
11477
|
let i = this.doc.lineAt(t).number - this.doc.lineAt(e).number + 1;
|
|
@@ -11906,12 +11903,12 @@ class Wh {
|
|
|
11906
11903
|
// to each other.
|
|
11907
11904
|
static build(e, t, i, r) {
|
|
11908
11905
|
let s = new Wh(i, e);
|
|
11909
|
-
return
|
|
11906
|
+
return Ze.spans(t, i, r, s, 0), s.finish(i);
|
|
11910
11907
|
}
|
|
11911
11908
|
}
|
|
11912
11909
|
function d_(n, e, t) {
|
|
11913
11910
|
let i = new O_();
|
|
11914
|
-
return
|
|
11911
|
+
return Ze.compare(n, e, t, i, 0), i.changes;
|
|
11915
11912
|
}
|
|
11916
11913
|
class O_ {
|
|
11917
11914
|
constructor() {
|
|
@@ -11992,7 +11989,7 @@ class Xf {
|
|
|
11992
11989
|
constructor(e) {
|
|
11993
11990
|
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 = Vf, this.scrollTarget = null, this.printing = !1, this.mustMeasureContent = !0, this.defaultTextDirection = je.LTR, this.visibleRanges = [], this.mustEnforceCursorAssoc = !1;
|
|
11994
11991
|
let t = e.facet(qh).some((i) => typeof i != "function" && i.class == "cm-lineWrapping");
|
|
11995
|
-
this.heightOracle = new u_(t), this.stateDeco = e.facet(_s).filter((i) => typeof i != "function"), this.heightMap = Et.empty().applyChanges(this.stateDeco,
|
|
11992
|
+
this.heightOracle = new u_(t), this.stateDeco = e.facet(_s).filter((i) => typeof i != "function"), this.heightMap = Et.empty().applyChanges(this.stateDeco, Ae.empty, this.heightOracle.setDoc(e.doc), [new li(0, 0, 0, e.doc.length)]);
|
|
11996
11993
|
for (let i = 0; i < 2 && (this.viewport = this.getViewport(0, null), !!this.updateForViewport()); i++)
|
|
11997
11994
|
;
|
|
11998
11995
|
this.updateViewportLines(), this.lineGaps = this.ensureLineGaps([]), this.lineGapDeco = he.set(this.lineGaps.map((i) => i.draw(this, !1))), this.computeVisibleRanges();
|
|
@@ -12057,7 +12054,7 @@ class Xf {
|
|
|
12057
12054
|
g > 0 && m > 0 ? h = Math.max(g, m) : g < 0 && m < 0 && (h = Math.min(g, m)), Zf();
|
|
12058
12055
|
for (let $ of this.viewports) {
|
|
12059
12056
|
let Q = $.from == this.viewport.from ? x : e.docView.measureVisibleLineHeights($);
|
|
12060
|
-
this.heightMap = (o ? Et.empty().applyChanges(this.stateDeco,
|
|
12057
|
+
this.heightMap = (o ? Et.empty().applyChanges(this.stateDeco, Ae.empty, this.heightOracle, [new li(0, 0, 0, e.state.doc.length)]) : this.heightMap).updateHeight(r, 0, o, new h_($.from, Q));
|
|
12061
12058
|
}
|
|
12062
12059
|
mr && (u |= 2);
|
|
12063
12060
|
}
|
|
@@ -12185,7 +12182,7 @@ class Xf {
|
|
|
12185
12182
|
let e = this.stateDeco;
|
|
12186
12183
|
this.lineGaps.length && (e = e.concat(this.lineGapDeco));
|
|
12187
12184
|
let t = [];
|
|
12188
|
-
|
|
12185
|
+
Ze.spans(e, this.viewport.from, this.viewport.to, {
|
|
12189
12186
|
span(r, s) {
|
|
12190
12187
|
t.push({ from: r, to: s });
|
|
12191
12188
|
},
|
|
@@ -12222,7 +12219,7 @@ class co {
|
|
|
12222
12219
|
}
|
|
12223
12220
|
function v_(n, e, t) {
|
|
12224
12221
|
let i = [], r = n, s = 0;
|
|
12225
|
-
return
|
|
12222
|
+
return Ze.spans(t, n, e, {
|
|
12226
12223
|
span() {
|
|
12227
12224
|
},
|
|
12228
12225
|
point(o, a) {
|
|
@@ -12426,7 +12423,7 @@ const y_ = /* @__PURE__ */ nh("." + ih, {
|
|
|
12426
12423
|
display: "none"
|
|
12427
12424
|
},
|
|
12428
12425
|
"&dark .cm-cursor": {
|
|
12429
|
-
borderLeftColor: "#
|
|
12426
|
+
borderLeftColor: "#ddd"
|
|
12430
12427
|
},
|
|
12431
12428
|
".cm-dropCursor": {
|
|
12432
12429
|
position: "absolute"
|
|
@@ -12838,7 +12835,7 @@ class x_ {
|
|
|
12838
12835
|
let { anchor: r } = e.state.selection.main, s = {
|
|
12839
12836
|
from: this.toEditorPos(i.updateRangeStart),
|
|
12840
12837
|
to: this.toEditorPos(i.updateRangeEnd),
|
|
12841
|
-
insert:
|
|
12838
|
+
insert: Ae.of(i.text.split(`
|
|
12842
12839
|
`))
|
|
12843
12840
|
};
|
|
12844
12841
|
s.from == this.from && r < this.from ? s.from = r : s.to == this.to && r > this.to && (s.to = r), !(s.from == s.to && !s.insert.length) && (this.pendingContextChange = s, e.state.readOnly || Nh(e, s, q.single(this.toEditorPos(i.selectionStart), this.toEditorPos(i.selectionEnd))), this.pendingContextChange && (this.revertPending(e.state), this.setSelection(e.state)));
|
|
@@ -14049,7 +14046,7 @@ const D_ = /* @__PURE__ */ Pn.highest(/* @__PURE__ */ K.theme(sh)), Mm = /* @__P
|
|
|
14049
14046
|
map(n, e) {
|
|
14050
14047
|
return n == null ? null : e.mapPos(n);
|
|
14051
14048
|
}
|
|
14052
|
-
}), ns = /* @__PURE__ */
|
|
14049
|
+
}), ns = /* @__PURE__ */ pt.define({
|
|
14053
14050
|
create() {
|
|
14054
14051
|
return null;
|
|
14055
14052
|
},
|
|
@@ -14827,7 +14824,7 @@ function OS(n, e, t, i, r, s) {
|
|
|
14827
14824
|
return l >= e && l <= t;
|
|
14828
14825
|
}
|
|
14829
14826
|
function pS(n, e = {}) {
|
|
14830
|
-
let t = Qe.define(), i =
|
|
14827
|
+
let t = Qe.define(), i = pt.define({
|
|
14831
14828
|
create() {
|
|
14832
14829
|
return [];
|
|
14833
14830
|
},
|
|
@@ -14996,7 +14993,7 @@ const Fo = /* @__PURE__ */ ee.define(), gS = /* @__PURE__ */ ee.define(), vS = {
|
|
|
14996
14993
|
class: "",
|
|
14997
14994
|
renderEmptyElements: !1,
|
|
14998
14995
|
elementStyle: "",
|
|
14999
|
-
markers: () =>
|
|
14996
|
+
markers: () => Ze.empty,
|
|
15000
14997
|
lineMarker: () => null,
|
|
15001
14998
|
widgetMarker: () => null,
|
|
15002
14999
|
lineMarkerChange: null,
|
|
@@ -15033,7 +15030,7 @@ const yS = /* @__PURE__ */ ut.fromClass(class {
|
|
|
15033
15030
|
syncGutters(n) {
|
|
15034
15031
|
let e = this.dom.nextSibling;
|
|
15035
15032
|
n && this.dom.remove();
|
|
15036
|
-
let t =
|
|
15033
|
+
let t = Ze.iter(this.view.state.facet(Fo), this.view.viewport.from), i = [], r = this.gutters.map((s) => new _S(s, this.view.viewport, -this.view.documentPadding.top));
|
|
15037
15034
|
for (let s of this.view.viewportLineBlocks)
|
|
15038
15035
|
if (i.length && (i = []), Array.isArray(s.type)) {
|
|
15039
15036
|
let o = !0;
|
|
@@ -15058,7 +15055,7 @@ const yS = /* @__PURE__ */ ut.fromClass(class {
|
|
|
15058
15055
|
n && this.view.scrollDOM.insertBefore(this.dom, e);
|
|
15059
15056
|
}
|
|
15060
15057
|
updateGutters(n) {
|
|
15061
|
-
let e = n.startState.facet(Os), t = n.state.facet(Os), i = n.docChanged || n.heightChanged || n.viewportChanged || !
|
|
15058
|
+
let e = n.startState.facet(Os), t = n.state.facet(Os), i = n.docChanged || n.heightChanged || n.viewportChanged || !Ze.eq(n.startState.facet(Fo), n.state.facet(Fo), n.view.viewport.from, n.view.viewport.to);
|
|
15062
15059
|
if (e == t)
|
|
15063
15060
|
for (let r of this.gutters)
|
|
15064
15061
|
r.update(n) && (i = !0);
|
|
@@ -15097,7 +15094,7 @@ function uh(n, e, t) {
|
|
|
15097
15094
|
}
|
|
15098
15095
|
class _S {
|
|
15099
15096
|
constructor(e, t, i) {
|
|
15100
|
-
this.gutter = e, this.height = i, this.i = 0, this.cursor =
|
|
15097
|
+
this.gutter = e, this.height = i, this.i = 0, this.cursor = Ze.iter(e.markers, t.from);
|
|
15101
15098
|
}
|
|
15102
15099
|
addElement(e, t, i) {
|
|
15103
15100
|
let { gutter: r } = this, s = (t.top - this.height) / e.scaleY, o = t.height / e.scaleY;
|
|
@@ -15157,7 +15154,7 @@ class Hf {
|
|
|
15157
15154
|
r != this.spacer.markers[0] && this.spacer.update(e.view, 0, 0, [r]);
|
|
15158
15155
|
}
|
|
15159
15156
|
let i = e.view.viewport;
|
|
15160
|
-
return !
|
|
15157
|
+
return !Ze.eq(this.markers, t, i.from, i.to) || (this.config.lineMarkerChange ? this.config.lineMarkerChange(e) : !1);
|
|
15161
15158
|
}
|
|
15162
15159
|
destroy() {
|
|
15163
15160
|
for (let e of this.elements)
|
|
@@ -15289,7 +15286,7 @@ const $S = /* @__PURE__ */ new class extends Gi {
|
|
|
15289
15286
|
let r = n.doc.lineAt(i.head).from;
|
|
15290
15287
|
r > t && (t = r, e.push($S.range(r)));
|
|
15291
15288
|
}
|
|
15292
|
-
return
|
|
15289
|
+
return Ze.of(e);
|
|
15293
15290
|
});
|
|
15294
15291
|
function TS() {
|
|
15295
15292
|
return kS;
|
|
@@ -17893,7 +17890,7 @@ class gr {
|
|
|
17893
17890
|
return i.work(20, t) || i.takeTree(), new gr(i);
|
|
17894
17891
|
}
|
|
17895
17892
|
}
|
|
17896
|
-
bi.state = /* @__PURE__ */
|
|
17893
|
+
bi.state = /* @__PURE__ */ pt.define({
|
|
17897
17894
|
create: gr.init,
|
|
17898
17895
|
update(n, e) {
|
|
17899
17896
|
for (let t of e.effects)
|
|
@@ -18293,7 +18290,7 @@ function og(n) {
|
|
|
18293
18290
|
e.some((i) => i.from <= t && i.to >= t) || e.push(n.lineBlockAt(t));
|
|
18294
18291
|
return e;
|
|
18295
18292
|
}
|
|
18296
|
-
const Un = /* @__PURE__ */
|
|
18293
|
+
const Un = /* @__PURE__ */ pt.define({
|
|
18297
18294
|
create() {
|
|
18298
18295
|
return he.none;
|
|
18299
18296
|
},
|
|
@@ -18481,7 +18478,7 @@ function _Q(n = {}) {
|
|
|
18481
18478
|
class: "cm-foldGutter",
|
|
18482
18479
|
markers(o) {
|
|
18483
18480
|
var a;
|
|
18484
|
-
return ((a = o.plugin(r)) === null || a === void 0 ? void 0 : a.markers) ||
|
|
18481
|
+
return ((a = o.plugin(r)) === null || a === void 0 ? void 0 : a.markers) || Ze.empty;
|
|
18485
18482
|
},
|
|
18486
18483
|
initialSpacer() {
|
|
18487
18484
|
return new Al(e, !1);
|
|
@@ -18678,7 +18675,7 @@ function TQ(n) {
|
|
|
18678
18675
|
let e = [], t = n.matched ? $Q : kQ;
|
|
18679
18676
|
return e.push(t.range(n.start.from, n.start.to)), n.end && e.push(t.range(n.end.from, n.end.to)), e;
|
|
18680
18677
|
}
|
|
18681
|
-
const CQ = /* @__PURE__ */
|
|
18678
|
+
const CQ = /* @__PURE__ */ pt.define({
|
|
18682
18679
|
create() {
|
|
18683
18680
|
return he.none;
|
|
18684
18681
|
},
|
|
@@ -18950,7 +18947,7 @@ const mh = /* @__PURE__ */ Fi.define(), jQ = /* @__PURE__ */ Fi.define(), NQ = /
|
|
|
18950
18947
|
joinToEvent: (e, t) => (i, r) => e(i, r) || t(i, r)
|
|
18951
18948
|
});
|
|
18952
18949
|
}
|
|
18953
|
-
}), bg = /* @__PURE__ */
|
|
18950
|
+
}), bg = /* @__PURE__ */ pt.define({
|
|
18954
18951
|
create() {
|
|
18955
18952
|
return Zi.empty;
|
|
18956
18953
|
},
|
|
@@ -19347,7 +19344,7 @@ const Lg = (n, e, t) => js(n, (i) => {
|
|
|
19347
19344
|
if (n.readOnly)
|
|
19348
19345
|
return !1;
|
|
19349
19346
|
let t = n.changeByRange((i) => ({
|
|
19350
|
-
changes: { from: i.from, to: i.to, insert:
|
|
19347
|
+
changes: { from: i.from, to: i.to, insert: Ae.of(["", ""]) },
|
|
19351
19348
|
range: q.cursor(i.from)
|
|
19352
19349
|
}));
|
|
19353
19350
|
return e(n.update(t, { scrollIntoView: !0, userEvent: "input" })), !0;
|
|
@@ -19445,7 +19442,7 @@ function Ng(n) {
|
|
|
19445
19442
|
l ? { from: s, to: o } = l : s > a.from && s < a.from + 100 && !/\S/.test(a.text.slice(0, s)) && (s = a.from);
|
|
19446
19443
|
let c = ["", $s(e, h)];
|
|
19447
19444
|
return l && c.push($s(e, u.lineIndent(a.from, -1))), {
|
|
19448
|
-
changes: { from: s, to: o, insert:
|
|
19445
|
+
changes: { from: s, to: o, insert: Ae.of(c) },
|
|
19449
19446
|
range: q.cursor(s + 1 + c[1].length)
|
|
19450
19447
|
};
|
|
19451
19448
|
});
|
|
@@ -19631,15 +19628,16 @@ class vr {
|
|
|
19631
19628
|
let t = Vh(e), i = this.bufferStart + this.bufferPos;
|
|
19632
19629
|
this.bufferPos += si(e);
|
|
19633
19630
|
let r = this.normalize(t);
|
|
19634
|
-
|
|
19635
|
-
let
|
|
19636
|
-
|
|
19637
|
-
if (
|
|
19638
|
-
|
|
19639
|
-
|
|
19631
|
+
if (r.length)
|
|
19632
|
+
for (let s = 0, o = i; ; s++) {
|
|
19633
|
+
let a = r.charCodeAt(s), l = this.match(a, o, this.bufferPos + this.bufferStart);
|
|
19634
|
+
if (s == r.length - 1) {
|
|
19635
|
+
if (l)
|
|
19636
|
+
return this.value = l, this;
|
|
19637
|
+
break;
|
|
19638
|
+
}
|
|
19639
|
+
o == i && s < t.length && t.charCodeAt(s) == a && o++;
|
|
19640
19640
|
}
|
|
19641
|
-
o == i && s < t.length && t.charCodeAt(s) == a && o++;
|
|
19642
|
-
}
|
|
19643
19641
|
}
|
|
19644
19642
|
}
|
|
19645
19643
|
match(e, t, i) {
|
|
@@ -19783,7 +19781,7 @@ function yh(n) {
|
|
|
19783
19781
|
}
|
|
19784
19782
|
return { dom: i };
|
|
19785
19783
|
}
|
|
19786
|
-
const Pa = /* @__PURE__ */ Qe.define(), Pd = /* @__PURE__ */
|
|
19784
|
+
const Pa = /* @__PURE__ */ Qe.define(), Pd = /* @__PURE__ */ pt.define({
|
|
19787
19785
|
create() {
|
|
19788
19786
|
return !0;
|
|
19789
19787
|
},
|
|
@@ -19974,7 +19972,11 @@ class hP extends Jg {
|
|
|
19974
19972
|
}
|
|
19975
19973
|
nextMatch(e, t, i) {
|
|
19976
19974
|
let r = Kn(this.spec, e, i, e.doc.length).nextOverlapping();
|
|
19977
|
-
|
|
19975
|
+
if (r.done) {
|
|
19976
|
+
let s = Math.min(e.doc.length, t + this.spec.unquoted.length);
|
|
19977
|
+
r = Kn(this.spec, e, 0, s).nextOverlapping();
|
|
19978
|
+
}
|
|
19979
|
+
return r.done || r.value.from == t && r.value.to == i ? null : r.value;
|
|
19978
19980
|
}
|
|
19979
19981
|
// Searching in reverse is, rather than implementing an inverted search
|
|
19980
19982
|
// cursor, done by scanning chunk after chunk forward.
|
|
@@ -19991,7 +19993,8 @@ class hP extends Jg {
|
|
|
19991
19993
|
}
|
|
19992
19994
|
}
|
|
19993
19995
|
prevMatch(e, t, i) {
|
|
19994
|
-
|
|
19996
|
+
let r = this.prevMatchInRange(e, 0, t);
|
|
19997
|
+
return r || (r = this.prevMatchInRange(e, Math.max(0, i - this.spec.unquoted.length), e.doc.length)), r && (r.from != t || r.to != i) ? r : null;
|
|
19995
19998
|
}
|
|
19996
19999
|
getReplacement(e) {
|
|
19997
20000
|
return this.spec.unquote(this.spec.replace);
|
|
@@ -20071,7 +20074,7 @@ class fP extends Jg {
|
|
|
20071
20074
|
r(s.value.from, s.value.to);
|
|
20072
20075
|
}
|
|
20073
20076
|
}
|
|
20074
|
-
const ks = /* @__PURE__ */ Qe.define(), hc = /* @__PURE__ */ Qe.define(), pn = /* @__PURE__ */
|
|
20077
|
+
const ks = /* @__PURE__ */ Qe.define(), hc = /* @__PURE__ */ Qe.define(), pn = /* @__PURE__ */ pt.define({
|
|
20075
20078
|
create(n) {
|
|
20076
20079
|
return new Ml(_h(n).create(), null);
|
|
20077
20080
|
},
|
|
@@ -20600,7 +20603,7 @@ class $P {
|
|
|
20600
20603
|
return i == null ? null : (this.matched = [0, t.length], this.score = i + (e.length == this.pattern.length ? 0 : -100), this);
|
|
20601
20604
|
}
|
|
20602
20605
|
}
|
|
20603
|
-
const
|
|
20606
|
+
const Ot = /* @__PURE__ */ ee.define({
|
|
20604
20607
|
combine(n) {
|
|
20605
20608
|
return Mi(n, {
|
|
20606
20609
|
activateOnTyping: !0,
|
|
@@ -20703,7 +20706,7 @@ class CP {
|
|
|
20703
20706
|
write: (l) => this.placeInfo(l),
|
|
20704
20707
|
key: this
|
|
20705
20708
|
}, this.space = null, this.currentClass = "";
|
|
20706
|
-
let r = e.state.field(t), { options: s, selected: o } = r.open, a = e.state.facet(
|
|
20709
|
+
let r = e.state.field(t), { options: s, selected: o } = r.open, a = e.state.facet(Ot);
|
|
20707
20710
|
this.optionContent = TP(a), this.optionClass = a.optionClass, this.tooltipClass = a.tooltipClass, this.range = Ll(s.length, o, a.maxRenderedOptions), this.dom = document.createElement("div"), this.dom.className = "cm-tooltip-autocomplete", this.updateTooltipClass(e.state), this.dom.addEventListener("mousedown", (l) => {
|
|
20708
20711
|
let { options: u } = e.state.field(t).open;
|
|
20709
20712
|
for (let h = l.target, c; h && h != this.dom; h = h.parentNode)
|
|
@@ -20713,7 +20716,7 @@ class CP {
|
|
|
20713
20716
|
}
|
|
20714
20717
|
}), this.dom.addEventListener("focusout", (l) => {
|
|
20715
20718
|
let u = e.state.field(this.stateField, !1);
|
|
20716
|
-
u && u.tooltip && e.state.facet(
|
|
20719
|
+
u && u.tooltip && e.state.facet(Ot).closeOnBlur && l.relatedTarget != e.contentDOM && e.dispatch({ effects: Ts.of(null) });
|
|
20717
20720
|
}), this.showOptions(s, r.id);
|
|
20718
20721
|
}
|
|
20719
20722
|
mount() {
|
|
@@ -20729,7 +20732,7 @@ class CP {
|
|
|
20729
20732
|
let i = e.state.field(this.stateField), r = e.startState.field(this.stateField);
|
|
20730
20733
|
if (this.updateTooltipClass(e.state), i != r) {
|
|
20731
20734
|
let { options: s, selected: o, disabled: a } = i.open;
|
|
20732
|
-
(!r.open || r.open.options != s) && (this.range = Ll(s.length, o, e.state.facet(
|
|
20735
|
+
(!r.open || r.open.options != s) && (this.range = Ll(s.length, o, e.state.facet(Ot).maxRenderedOptions), this.showOptions(s, i.id)), this.updateSel(), a != ((t = r.open) === null || t === void 0 ? void 0 : t.disabled) && this.dom.classList.toggle("cm-tooltip-autocomplete-disabled", !!a);
|
|
20733
20736
|
}
|
|
20734
20737
|
}
|
|
20735
20738
|
updateTooltipClass(e) {
|
|
@@ -20747,7 +20750,7 @@ class CP {
|
|
|
20747
20750
|
}
|
|
20748
20751
|
updateSel() {
|
|
20749
20752
|
let e = this.view.state.field(this.stateField), t = e.open;
|
|
20750
|
-
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Ll(t.options.length, t.selected, this.view.state.facet(
|
|
20753
|
+
if ((t.selected > -1 && t.selected < this.range.from || t.selected >= this.range.to) && (this.range = Ll(t.options.length, t.selected, this.view.state.facet(Ot).maxRenderedOptions), this.showOptions(t.options, e.id)), this.updateSelectedOption(t.selected)) {
|
|
20751
20754
|
this.destroyInfo();
|
|
20752
20755
|
let { completion: i } = t.options[t.selected], { info: r } = i;
|
|
20753
20756
|
if (!r)
|
|
@@ -20786,7 +20789,7 @@ class CP {
|
|
|
20786
20789
|
let o = this.dom.ownerDocument.defaultView || window;
|
|
20787
20790
|
s = { left: 0, top: 0, right: o.innerWidth, bottom: o.innerHeight };
|
|
20788
20791
|
}
|
|
20789
|
-
return r.top > Math.min(s.bottom, t.bottom) - 10 || r.bottom < Math.max(s.top, t.top) + 10 ? null : this.view.state.facet(
|
|
20792
|
+
return r.top > Math.min(s.bottom, t.bottom) - 10 || r.bottom < Math.max(s.top, t.top) + 10 ? null : this.view.state.facet(Ot).positionInfo(this.view, t, r, i, s, this.dom);
|
|
20790
20793
|
}
|
|
20791
20794
|
placeInfo(e) {
|
|
20792
20795
|
this.info && (e ? (e.style && (this.info.style.cssText = e.style), this.info.className = "cm-tooltip cm-completionInfo " + (e.class || "")) : this.info.style.cssText = "top: -1e6px");
|
|
@@ -20844,7 +20847,7 @@ function ZP(n, e) {
|
|
|
20844
20847
|
let c = typeof h == "string" ? h : h.name;
|
|
20845
20848
|
i.some((f) => f.name == c) || i.push(typeof h == "string" ? { name: c } : h);
|
|
20846
20849
|
}
|
|
20847
|
-
}, s = e.facet(
|
|
20850
|
+
}, s = e.facet(Ot);
|
|
20848
20851
|
for (let u of n)
|
|
20849
20852
|
if (u.hasResult()) {
|
|
20850
20853
|
let h = u.result.getMatch;
|
|
@@ -20898,7 +20901,7 @@ class nr {
|
|
|
20898
20901
|
(u) => u.state == 1
|
|
20899
20902
|
/* State.Pending */
|
|
20900
20903
|
) ? r.setDisabled() : null;
|
|
20901
|
-
let l = t.facet(
|
|
20904
|
+
let l = t.facet(Ot).selectOnOpen ? 0 : -1;
|
|
20902
20905
|
if (r && r.selected != l && r.selected != -1) {
|
|
20903
20906
|
let u = r.options[r.selected].completion;
|
|
20904
20907
|
for (let h = 0; h < a.length; h++)
|
|
@@ -20928,7 +20931,7 @@ class Ra {
|
|
|
20928
20931
|
return new Ra(YP, "cm-ac-" + Math.floor(Math.random() * 2e6).toString(36), null);
|
|
20929
20932
|
}
|
|
20930
20933
|
update(e) {
|
|
20931
|
-
let { state: t } = e, i = t.facet(
|
|
20934
|
+
let { state: t } = e, i = t.facet(Ot), s = (i.override || t.languageDataAt("autocomplete", mn(t)).map(PP)).map((l) => (this.active.find((h) => h.source == l) || new Jt(
|
|
20932
20935
|
l,
|
|
20933
20936
|
this.active.some(
|
|
20934
20937
|
(h) => h.state != 0
|
|
@@ -21082,7 +21085,7 @@ const pc = /* @__PURE__ */ Qe.define({
|
|
|
21082
21085
|
map(n, e) {
|
|
21083
21086
|
return n.map((t) => t.map(e));
|
|
21084
21087
|
}
|
|
21085
|
-
}), l0 = /* @__PURE__ */ Qe.define(), Ut = /* @__PURE__ */
|
|
21088
|
+
}), l0 = /* @__PURE__ */ Qe.define(), Ut = /* @__PURE__ */ pt.define({
|
|
21086
21089
|
create() {
|
|
21087
21090
|
return Ra.start();
|
|
21088
21091
|
},
|
|
@@ -21103,7 +21106,7 @@ const MP = /* @__PURE__ */ RP(Ut, mc);
|
|
|
21103
21106
|
function wo(n, e = "option") {
|
|
21104
21107
|
return (t) => {
|
|
21105
21108
|
let i = t.state.field(Ut, !1);
|
|
21106
|
-
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(
|
|
21109
|
+
if (!i || !i.open || i.open.disabled || Date.now() - i.open.timestamp < t.state.facet(Ot).interactionDelay)
|
|
21107
21110
|
return !1;
|
|
21108
21111
|
let r = 1, s;
|
|
21109
21112
|
e == "page" && (s = Im(t, i.open.tooltip)) && (r = Math.max(2, Math.floor(s.dom.offsetHeight / s.dom.querySelector("li").offsetHeight) - 1));
|
|
@@ -21113,7 +21116,7 @@ function wo(n, e = "option") {
|
|
|
21113
21116
|
}
|
|
21114
21117
|
const LP = (n) => {
|
|
21115
21118
|
let e = n.state.field(Ut, !1);
|
|
21116
|
-
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(
|
|
21119
|
+
return n.state.readOnly || !e || !e.open || e.open.selected < 0 || e.open.disabled || Date.now() - e.open.timestamp < n.state.facet(Ot).interactionDelay ? !1 : mc(n, e.open.options[e.open.selected]);
|
|
21117
21120
|
}, Ad = (n) => n.state.field(Ut, !1) ? (n.dispatch({ effects: Ca.of(!0) }), !0) : !1, IP = (n) => {
|
|
21118
21121
|
let e = n.state.field(Ut, !1);
|
|
21119
21122
|
return !e || !e.active.some(
|
|
@@ -21133,7 +21136,7 @@ const UP = 50, qP = 1e3, jP = /* @__PURE__ */ ut.fromClass(class {
|
|
|
21133
21136
|
e.state == 1 && this.startQuery(e);
|
|
21134
21137
|
}
|
|
21135
21138
|
update(n) {
|
|
21136
|
-
let e = n.state.field(Ut), t = n.state.facet(
|
|
21139
|
+
let e = n.state.field(Ut), t = n.state.facet(Ot);
|
|
21137
21140
|
if (!n.selectionSet && !n.docChanged && n.startState.field(Ut) == e)
|
|
21138
21141
|
return;
|
|
21139
21142
|
let i = n.transactions.some((s) => {
|
|
@@ -21164,7 +21167,7 @@ const UP = 50, qP = 1e3, jP = /* @__PURE__ */ ut.fromClass(class {
|
|
|
21164
21167
|
let { state: n } = this.view, e = n.field(Ut);
|
|
21165
21168
|
for (let t of e.active)
|
|
21166
21169
|
t.state == 1 && !this.running.some((i) => i.active.source == t.source) && this.startQuery(t);
|
|
21167
|
-
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
21170
|
+
this.running.length && e.open && e.open.disabled && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Ot).updateSyncTime));
|
|
21168
21171
|
}
|
|
21169
21172
|
startQuery(n) {
|
|
21170
21173
|
let { state: e } = this.view, t = mn(e), i = new r0(e, t, n.explicitPos == t, this.view), r = new zP(n, i);
|
|
@@ -21175,14 +21178,14 @@ const UP = 50, qP = 1e3, jP = /* @__PURE__ */ ut.fromClass(class {
|
|
|
21175
21178
|
});
|
|
21176
21179
|
}
|
|
21177
21180
|
scheduleAccept() {
|
|
21178
|
-
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(
|
|
21181
|
+
this.running.every((n) => n.done !== void 0) ? this.accept() : this.debounceAccept < 0 && (this.debounceAccept = setTimeout(() => this.accept(), this.view.state.facet(Ot).updateSyncTime));
|
|
21179
21182
|
}
|
|
21180
21183
|
// For each finished query in this.running, try to create a result
|
|
21181
21184
|
// or, if appropriate, restart the query.
|
|
21182
21185
|
accept() {
|
|
21183
21186
|
var n;
|
|
21184
21187
|
this.debounceAccept > -1 && clearTimeout(this.debounceAccept), this.debounceAccept = -1;
|
|
21185
|
-
let e = [], t = this.view.state.facet(
|
|
21188
|
+
let e = [], t = this.view.state.facet(Ot), i = this.view.state.field(Ut);
|
|
21186
21189
|
for (let r = 0; r < this.running.length; r++) {
|
|
21187
21190
|
let s = this.running[r];
|
|
21188
21191
|
if (s.done === void 0)
|
|
@@ -21216,7 +21219,7 @@ const UP = 50, qP = 1e3, jP = /* @__PURE__ */ ut.fromClass(class {
|
|
|
21216
21219
|
eventHandlers: {
|
|
21217
21220
|
blur(n) {
|
|
21218
21221
|
let e = this.view.state.field(Ut, !1);
|
|
21219
|
-
if (e && e.tooltip && this.view.state.facet(
|
|
21222
|
+
if (e && e.tooltip && this.view.state.facet(Ot).closeOnBlur) {
|
|
21220
21223
|
let t = e.open && Im(this.view, e.open.tooltip);
|
|
21221
21224
|
(!t || !t.dom.contains(n.relatedTarget)) && setTimeout(() => this.view.dispatch({ effects: Ts.of(null) }), 10);
|
|
21222
21225
|
}
|
|
@@ -21449,7 +21452,7 @@ const Ws = /* @__PURE__ */ Qe.define({
|
|
|
21449
21452
|
map(n, e) {
|
|
21450
21453
|
return n && n.map(e);
|
|
21451
21454
|
}
|
|
21452
|
-
}), HP = /* @__PURE__ */ Qe.define(), Cs = /* @__PURE__ */
|
|
21455
|
+
}), HP = /* @__PURE__ */ Qe.define(), Cs = /* @__PURE__ */ pt.define({
|
|
21453
21456
|
create() {
|
|
21454
21457
|
return null;
|
|
21455
21458
|
},
|
|
@@ -21471,7 +21474,7 @@ function KP(n) {
|
|
|
21471
21474
|
let e = vc.parse(n);
|
|
21472
21475
|
return (t, i, r, s) => {
|
|
21473
21476
|
let { text: o, ranges: a } = e.instantiate(t.state, r), l = {
|
|
21474
|
-
changes: { from: r, to: s, insert:
|
|
21477
|
+
changes: { from: r, to: s, insert: Ae.of(o) },
|
|
21475
21478
|
scrollIntoView: !0,
|
|
21476
21479
|
annotations: i ? [Oc.of(i), lt.userEvent.of("input.complete")] : void 0
|
|
21477
21480
|
};
|
|
@@ -21531,9 +21534,9 @@ const rw = /* @__PURE__ */ K.domEventHandlers({
|
|
|
21531
21534
|
}();
|
|
21532
21535
|
yc.startSide = 1;
|
|
21533
21536
|
yc.endSide = -1;
|
|
21534
|
-
const c0 = /* @__PURE__ */
|
|
21537
|
+
const c0 = /* @__PURE__ */ pt.define({
|
|
21535
21538
|
create() {
|
|
21536
|
-
return
|
|
21539
|
+
return Ze.empty;
|
|
21537
21540
|
},
|
|
21538
21541
|
update(n, e) {
|
|
21539
21542
|
if (n = n.map(e.changes), e.selection) {
|
|
@@ -21723,7 +21726,7 @@ function mw(n = {}) {
|
|
|
21723
21726
|
return [
|
|
21724
21727
|
WP,
|
|
21725
21728
|
Ut,
|
|
21726
|
-
|
|
21729
|
+
Ot.of(n),
|
|
21727
21730
|
jP,
|
|
21728
21731
|
gw,
|
|
21729
21732
|
u0
|
|
@@ -21738,7 +21741,7 @@ const p0 = [
|
|
|
21738
21741
|
{ key: "PageDown", run: /* @__PURE__ */ wo(!0, "page") },
|
|
21739
21742
|
{ key: "PageUp", run: /* @__PURE__ */ wo(!1, "page") },
|
|
21740
21743
|
{ key: "Enter", run: LP }
|
|
21741
|
-
], gw = /* @__PURE__ */ Pn.highest(/* @__PURE__ */ Ba.computeN([
|
|
21744
|
+
], gw = /* @__PURE__ */ Pn.highest(/* @__PURE__ */ Ba.computeN([Ot], (n) => n.facet(Ot).defaultKeymap ? [p0] : []));
|
|
21742
21745
|
class vw {
|
|
21743
21746
|
constructor(e, t, i) {
|
|
21744
21747
|
this.from = e, this.to = t, this.diagnostic = i;
|
|
@@ -21778,7 +21781,7 @@ function bw(n, e) {
|
|
|
21778
21781
|
function yw(n, e) {
|
|
21779
21782
|
return n.field(ti, !1) ? e : e.concat(Qe.appendConfig.of(Cw));
|
|
21780
21783
|
}
|
|
21781
|
-
const m0 = /* @__PURE__ */ Qe.define(), _c = /* @__PURE__ */ Qe.define(), g0 = /* @__PURE__ */ Qe.define(), ti = /* @__PURE__ */
|
|
21784
|
+
const m0 = /* @__PURE__ */ Qe.define(), _c = /* @__PURE__ */ Qe.define(), g0 = /* @__PURE__ */ Qe.define(), ti = /* @__PURE__ */ pt.define({
|
|
21782
21785
|
create() {
|
|
21783
21786
|
return new Xn(he.none, null, null);
|
|
21784
21787
|
},
|
|
@@ -28318,10 +28321,10 @@ const oT = { class: "code-slot" }, aT = { class: "code-slot" }, lT = { class: "e
|
|
|
28318
28321
|
let o = null, a = null;
|
|
28319
28322
|
const l = {
|
|
28320
28323
|
indent_size: 2
|
|
28321
|
-
}, u =
|
|
28324
|
+
}, u = Ee(() => {
|
|
28322
28325
|
let f = {};
|
|
28323
28326
|
return t.height !== void 0 && !isNaN(t.height) && (f.height = `${t.height}px`, f.display = "flex", f.flexDirection = "column"), f;
|
|
28324
|
-
}), h =
|
|
28327
|
+
}), h = Ee(() => {
|
|
28325
28328
|
let f = {};
|
|
28326
28329
|
return t.height !== void 0 && !isNaN(t.height) && (f.flex = "1", f.overflow = "auto"), f;
|
|
28327
28330
|
});
|
|
@@ -28536,7 +28539,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
28536
28539
|
], -1), pT = /* @__PURE__ */ Vt({
|
|
28537
28540
|
__name: "param-editor",
|
|
28538
28541
|
setup(n) {
|
|
28539
|
-
const e = At(), { activeStatement: t, activeStatementIndex: i, activeStatementItem: r } = Zt(e), s =
|
|
28542
|
+
const e = At(), { activeStatement: t, activeStatementIndex: i, activeStatementItem: r } = Zt(e), s = Ee({
|
|
28540
28543
|
get() {
|
|
28541
28544
|
if (r.value && t.value && t.value.params) {
|
|
28542
28545
|
let { index: o } = r.value;
|
|
@@ -28732,7 +28735,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
28732
28735
|
default: S(() => [
|
|
28733
28736
|
_(v(N), { label: "不能为空" }, {
|
|
28734
28737
|
default: S(() => [
|
|
28735
|
-
_(v(
|
|
28738
|
+
_(v(nt), {
|
|
28736
28739
|
modelValue: v(s).isNull,
|
|
28737
28740
|
"onUpdate:modelValue": a[3] || (a[3] = (c) => v(s).isNull = c)
|
|
28738
28741
|
}, null, 8, ["modelValue"])
|
|
@@ -28746,7 +28749,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
28746
28749
|
default: S(() => [
|
|
28747
28750
|
_(v(N), { label: "是否显示" }, {
|
|
28748
28751
|
default: S(() => [
|
|
28749
|
-
_(v(
|
|
28752
|
+
_(v(nt), {
|
|
28750
28753
|
modelValue: v(s).isShow,
|
|
28751
28754
|
"onUpdate:modelValue": a[4] || (a[4] = (c) => v(s).isShow = c)
|
|
28752
28755
|
}, null, 8, ["modelValue"])
|
|
@@ -28782,7 +28785,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
28782
28785
|
const e = At(), { activeStatement: t, activeStatementItem: i } = Zt(e), r = Sv({
|
|
28783
28786
|
dateTimeFormatter: "",
|
|
28784
28787
|
customCode: ""
|
|
28785
|
-
}), s =
|
|
28788
|
+
}), s = Ee(() => {
|
|
28786
28789
|
if (i.value && t.value) {
|
|
28787
28790
|
let { name: l, index: u } = i.value, h = "";
|
|
28788
28791
|
switch (l) {
|
|
@@ -28798,7 +28801,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
28798
28801
|
}
|
|
28799
28802
|
return h;
|
|
28800
28803
|
}
|
|
28801
|
-
}), o =
|
|
28804
|
+
}), o = Ee({
|
|
28802
28805
|
get() {
|
|
28803
28806
|
return t.value ? t.value.meta.find((l) => l.field === s.value) : null;
|
|
28804
28807
|
},
|
|
@@ -29102,7 +29105,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
29102
29105
|
}, yT = { class: "el-table-append-container" }, _T = /* @__PURE__ */ L("i", { class: "iconfont icon-add" }, null, -1), ST = /* @__PURE__ */ L("i", { class: "iconfont icon-info-circle" }, null, -1), QT = /* @__PURE__ */ L("i", { class: "iconfont icon-info-circle" }, null, -1), xT = /* @__PURE__ */ Vt({
|
|
29103
29106
|
__name: "meta-data-config",
|
|
29104
29107
|
setup(n) {
|
|
29105
|
-
const e = ce(!1), t = At(), { activeStatement: i } = Zt(t), r =
|
|
29108
|
+
const e = ce(!1), t = At(), { activeStatement: i } = Zt(t), r = Ee(() => {
|
|
29106
29109
|
var u;
|
|
29107
29110
|
if (i.value && i.value.meta) {
|
|
29108
29111
|
let { columns: h, rows: c, values: f } = i.value, d = ((u = i.value.params) == null ? void 0 : u.map((g) => g.columnName.toUpperCase())) || [];
|
|
@@ -29147,7 +29150,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
29147
29150
|
}
|
|
29148
29151
|
});
|
|
29149
29152
|
}
|
|
29150
|
-
const o =
|
|
29153
|
+
const o = Ee(() => i.value ? (Array.isArray(i.value.params) || (i.value.params = []), i.value.params) : []);
|
|
29151
29154
|
function a(u, h) {
|
|
29152
29155
|
i.value && i.value.meta && (i.value.meta[h].name = u);
|
|
29153
29156
|
}
|
|
@@ -29391,7 +29394,7 @@ const cT = { class: "chart-series-box" }, fT = {
|
|
|
29391
29394
|
function y() {
|
|
29392
29395
|
p.value && !s.value.includes(p.value) ? (g.value = !1, s.value.push(p.value), s.value.sort((x, $) => x - $), p.value = void 0) : an.error("请不要输入重复的数字");
|
|
29393
29396
|
}
|
|
29394
|
-
const k =
|
|
29397
|
+
const k = Ee({
|
|
29395
29398
|
get() {
|
|
29396
29399
|
if (r.value && r.value.data.staticData)
|
|
29397
29400
|
return r.value.data.staticData;
|
|
@@ -29613,13 +29616,13 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
29613
29616
|
deep: !0
|
|
29614
29617
|
}
|
|
29615
29618
|
);
|
|
29616
|
-
const r =
|
|
29619
|
+
const r = Ee(() => {
|
|
29617
29620
|
var p;
|
|
29618
29621
|
let d = {};
|
|
29619
29622
|
return (p = t.value) != null && p.meta && t.value.meta.forEach(({ field: g, name: m }) => {
|
|
29620
29623
|
g && m && (d[g] = m);
|
|
29621
29624
|
}), d;
|
|
29622
|
-
}), s =
|
|
29625
|
+
}), s = Ee(() => {
|
|
29623
29626
|
var p;
|
|
29624
29627
|
let d = [];
|
|
29625
29628
|
return (p = t.value) != null && p.meta && t.value.meta.forEach(({ field: g, name: m }) => {
|
|
@@ -29628,7 +29631,7 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
29628
29631
|
name: m
|
|
29629
29632
|
});
|
|
29630
29633
|
}), d;
|
|
29631
|
-
}), o =
|
|
29634
|
+
}), o = Ee(() => Object.entries(IT).map(([d, p]) => ({
|
|
29632
29635
|
value: d,
|
|
29633
29636
|
label: p
|
|
29634
29637
|
}))), a = ce(!1);
|
|
@@ -29833,7 +29836,7 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
29833
29836
|
}),
|
|
29834
29837
|
_(v(N), { label: "是否开启自定义脚本" }, {
|
|
29835
29838
|
default: S(() => [
|
|
29836
|
-
_(v(
|
|
29839
|
+
_(v(nt), {
|
|
29837
29840
|
style: { "margin-left": "8px" },
|
|
29838
29841
|
modelValue: u.value.isCustom,
|
|
29839
29842
|
"onUpdate:modelValue": p[3] || (p[3] = (P) => u.value.isCustom = P),
|
|
@@ -29941,7 +29944,7 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
29941
29944
|
}),
|
|
29942
29945
|
_(v(N), { label: "内容反色" }, {
|
|
29943
29946
|
default: S(() => [
|
|
29944
|
-
_(v(
|
|
29947
|
+
_(v(nt), {
|
|
29945
29948
|
modelValue: u.value.option.intelligentReverseTextColor,
|
|
29946
29949
|
"onUpdate:modelValue": p[11] || (p[11] = (P) => u.value.option.intelligentReverseTextColor = P)
|
|
29947
29950
|
}, null, 8, ["modelValue"])
|
|
@@ -30011,7 +30014,7 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30011
30014
|
], 64)) : u.value.type === "interval" ? (M(), J(me, { key: 3 }, [
|
|
30012
30015
|
_(v(N), { label: "是否双色" }, {
|
|
30013
30016
|
default: S(() => [
|
|
30014
|
-
_(v(
|
|
30017
|
+
_(v(nt), {
|
|
30015
30018
|
modelValue: u.value.option.doubleColor,
|
|
30016
30019
|
"onUpdate:modelValue": p[15] || (p[15] = (P) => u.value.option.doubleColor = P)
|
|
30017
30020
|
}, null, 8, ["modelValue"])
|
|
@@ -30063,7 +30066,7 @@ const IT = { ArrowDown: '<svg width="10px" height="10px" viewBox="0 0 10 10" ver
|
|
|
30063
30066
|
})),
|
|
30064
30067
|
_(v(N), { label: "是否自定义范围" }, {
|
|
30065
30068
|
default: S(() => [
|
|
30066
|
-
_(v(
|
|
30069
|
+
_(v(nt), {
|
|
30067
30070
|
modelValue: u.value.option.isCompare,
|
|
30068
30071
|
"onUpdate:modelValue": p[20] || (p[20] = (P) => u.value.option.isCompare = P)
|
|
30069
30072
|
}, null, 8, ["modelValue"])
|
|
@@ -30160,14 +30163,14 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30160
30163
|
{
|
|
30161
30164
|
deep: !0
|
|
30162
30165
|
}
|
|
30163
|
-
),
|
|
30166
|
+
), Ee(() => {
|
|
30164
30167
|
var h;
|
|
30165
30168
|
let u = {};
|
|
30166
30169
|
return (h = t.value) != null && h.meta && t.value.meta.forEach(({ field: c, name: f }) => {
|
|
30167
30170
|
c && f && (u[c] = f);
|
|
30168
30171
|
}), u;
|
|
30169
30172
|
});
|
|
30170
|
-
const o =
|
|
30173
|
+
const o = Ee(() => {
|
|
30171
30174
|
var h;
|
|
30172
30175
|
let u = [];
|
|
30173
30176
|
return (h = t.value) != null && h.meta && t.value.meta.forEach(({ field: c, name: f }) => {
|
|
@@ -30214,7 +30217,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30214
30217
|
default: S(() => [
|
|
30215
30218
|
_(v(N), null, {
|
|
30216
30219
|
default: S(() => [
|
|
30217
|
-
_(v(
|
|
30220
|
+
_(v(nt), {
|
|
30218
30221
|
"inactive-text": "不开启行小/总计",
|
|
30219
30222
|
"active-text": "开启行小/总计",
|
|
30220
30223
|
modelValue: i.value,
|
|
@@ -30244,7 +30247,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30244
30247
|
default: S(() => [
|
|
30245
30248
|
_(v(N), { label: "总计位置" }, {
|
|
30246
30249
|
default: S(() => [
|
|
30247
|
-
_(v(
|
|
30250
|
+
_(v(nt), {
|
|
30248
30251
|
modelValue: s.value.row.reverseGrandTotalsLayout,
|
|
30249
30252
|
"onUpdate:modelValue": h[2] || (h[2] = (O) => s.value.row.reverseGrandTotalsLayout = O),
|
|
30250
30253
|
"inactive-text": "分组下面",
|
|
@@ -30377,7 +30380,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30377
30380
|
default: S(() => [
|
|
30378
30381
|
_(v(N), { label: "小计位置" }, {
|
|
30379
30382
|
default: S(() => [
|
|
30380
|
-
_(v(
|
|
30383
|
+
_(v(nt), {
|
|
30381
30384
|
modelValue: s.value.row.reverseSubTotalsLayout,
|
|
30382
30385
|
"onUpdate:modelValue": h[8] || (h[8] = (O) => s.value.row.reverseSubTotalsLayout = O),
|
|
30383
30386
|
"inactive-text": "分组下面",
|
|
@@ -30534,7 +30537,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30534
30537
|
default: S(() => [
|
|
30535
30538
|
_(v(N), null, {
|
|
30536
30539
|
default: S(() => [
|
|
30537
|
-
_(v(
|
|
30540
|
+
_(v(nt), {
|
|
30538
30541
|
"inactive-text": "不开启列小/总计",
|
|
30539
30542
|
"active-text": "开启列小/总计",
|
|
30540
30543
|
modelValue: r.value,
|
|
@@ -30590,7 +30593,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30590
30593
|
default: S(() => [
|
|
30591
30594
|
_(v(N), { label: "总计位置" }, {
|
|
30592
30595
|
default: S(() => [
|
|
30593
|
-
_(v(
|
|
30596
|
+
_(v(nt), {
|
|
30594
30597
|
modelValue: s.value.col.reverseGrandTotalsLayout,
|
|
30595
30598
|
"onUpdate:modelValue": h[17] || (h[17] = (O) => s.value.col.reverseGrandTotalsLayout = O),
|
|
30596
30599
|
"inactive-text": "分组右边",
|
|
@@ -30697,7 +30700,7 @@ const KT = /* @__PURE__ */ L("div", { class: "s2-data-config-dialog-title" }, [
|
|
|
30697
30700
|
default: S(() => [
|
|
30698
30701
|
_(v(N), { label: "小计位置" }, {
|
|
30699
30702
|
default: S(() => [
|
|
30700
|
-
_(v(
|
|
30703
|
+
_(v(nt), {
|
|
30701
30704
|
modelValue: s.value.col.reverseSubTotalsLayout,
|
|
30702
30705
|
"onUpdate:modelValue": h[22] || (h[22] = (O) => s.value.col.reverseSubTotalsLayout = O),
|
|
30703
30706
|
"inactive-text": "分组右边",
|
|
@@ -30873,40 +30876,45 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30873
30876
|
], -1), Q5 = /* @__PURE__ */ Vt({
|
|
30874
30877
|
__name: "statementOption",
|
|
30875
30878
|
setup(n) {
|
|
30876
|
-
const e = At(), { activeStatement: t, activeStatementItem: i, metaDraging: r } = Zt(e),
|
|
30877
|
-
var
|
|
30879
|
+
const e = At(), { activeStatement: t, activeStatementItem: i, metaDraging: r, detail: s } = Zt(e), o = ce("data"), a = Ee(() => {
|
|
30880
|
+
var d;
|
|
30881
|
+
const f = s.value.chartConfig.length === 0 && s.value.statementOptions.length <= 1;
|
|
30882
|
+
return !f && ((d = t.value) != null && d.custom.fullHeight) && (t.value.custom.fullHeight = !1), f;
|
|
30883
|
+
}), l = Ee(() => t.value ? t.value.type === "pivotSheet" : !1), u = Ee(() => {
|
|
30884
|
+
var f;
|
|
30878
30885
|
if (t.value && t.value.meta) {
|
|
30879
|
-
let { rows:
|
|
30880
|
-
return t.value.meta.map((
|
|
30881
|
-
let { field:
|
|
30886
|
+
let { rows: d, columns: p, values: g } = t.value, m = ((f = t.value.params) == null ? void 0 : f.map((O) => O.columnName)) || [];
|
|
30887
|
+
return t.value.meta.map((O) => {
|
|
30888
|
+
let { field: y, name: k, width: x, dataType: $, selectorId: Q, description: T, formatterText: C, formatter: E, textAlign: b } = cr(O), P = !!(d != null && d.includes(y || "")), R = !!(p != null && p.includes(y || "")), A = !!(g != null && g.includes(y || "")), V = !!m.includes(y || "");
|
|
30882
30889
|
return {
|
|
30883
|
-
field:
|
|
30884
|
-
name:
|
|
30885
|
-
dataType:
|
|
30886
|
-
width:
|
|
30887
|
-
description:
|
|
30888
|
-
selectorId:
|
|
30889
|
-
formatterText:
|
|
30890
|
-
formatter:
|
|
30891
|
-
isParams:
|
|
30892
|
-
isRows:
|
|
30893
|
-
isColumns:
|
|
30894
|
-
isValues:
|
|
30890
|
+
field: y,
|
|
30891
|
+
name: k,
|
|
30892
|
+
dataType: $,
|
|
30893
|
+
width: x,
|
|
30894
|
+
description: T,
|
|
30895
|
+
selectorId: Q,
|
|
30896
|
+
formatterText: C,
|
|
30897
|
+
formatter: E,
|
|
30898
|
+
isParams: V,
|
|
30899
|
+
isRows: P,
|
|
30900
|
+
isColumns: R,
|
|
30901
|
+
isValues: A,
|
|
30902
|
+
textAlign: b
|
|
30895
30903
|
};
|
|
30896
30904
|
});
|
|
30897
30905
|
} else
|
|
30898
30906
|
return [];
|
|
30899
30907
|
});
|
|
30900
|
-
function
|
|
30901
|
-
|
|
30908
|
+
function h(f, d) {
|
|
30909
|
+
f.dataTransfer && (f.dataTransfer.effectAllowed = "copy", f.dataTransfer.setData("application/json", JSON.stringify(d)), r.value = !0);
|
|
30902
30910
|
}
|
|
30903
|
-
function
|
|
30904
|
-
r.value = !1, document.querySelectorAll(".yh-statement-table .drag-over").forEach((
|
|
30905
|
-
|
|
30911
|
+
function c(f) {
|
|
30912
|
+
r.value = !1, document.querySelectorAll(".yh-statement-table .drag-over").forEach((d) => {
|
|
30913
|
+
d.classList.remove("drag-over");
|
|
30906
30914
|
});
|
|
30907
30915
|
}
|
|
30908
|
-
return (
|
|
30909
|
-
const
|
|
30916
|
+
return (f, d) => {
|
|
30917
|
+
const p = Se("el-input-number");
|
|
30910
30918
|
return v(t) !== null ? (M(), ie(v(ps), {
|
|
30911
30919
|
key: 0,
|
|
30912
30920
|
"label-position": "top",
|
|
@@ -30915,8 +30923,8 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30915
30923
|
default: S(() => [
|
|
30916
30924
|
_(v(tp), {
|
|
30917
30925
|
stretch: "",
|
|
30918
|
-
modelValue:
|
|
30919
|
-
"onUpdate:modelValue":
|
|
30926
|
+
modelValue: o.value,
|
|
30927
|
+
"onUpdate:modelValue": d[18] || (d[18] = (g) => o.value = g)
|
|
30920
30928
|
}, {
|
|
30921
30929
|
default: S(() => [
|
|
30922
30930
|
_(v(ia), {
|
|
@@ -30933,7 +30941,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30933
30941
|
r5,
|
|
30934
30942
|
_(xT)
|
|
30935
30943
|
]),
|
|
30936
|
-
_(v(
|
|
30944
|
+
_(v(dt), { span: 24 }, {
|
|
30937
30945
|
default: S(() => [
|
|
30938
30946
|
_(v(N), null, {
|
|
30939
30947
|
label: S(() => [
|
|
@@ -30952,14 +30960,14 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30952
30960
|
]),
|
|
30953
30961
|
default: S(() => [
|
|
30954
30962
|
L("div", l5, [
|
|
30955
|
-
(M(!0), J(me, null, it(v(
|
|
30963
|
+
(M(!0), J(me, null, it(v(u), (g) => (M(), J("div", u5, [
|
|
30956
30964
|
L("div", {
|
|
30957
30965
|
class: "statement-config-meta-item-context",
|
|
30958
30966
|
draggable: "true",
|
|
30959
|
-
onDragstart: (
|
|
30960
|
-
onDragend:
|
|
30961
|
-
}, Ye(
|
|
30962
|
-
|
|
30967
|
+
onDragstart: (m) => h(m, g),
|
|
30968
|
+
onDragend: d[0] || (d[0] = (m) => c())
|
|
30969
|
+
}, Ye(g.name), 41, h5),
|
|
30970
|
+
g.isParams ? (M(), ie(v(Hs), {
|
|
30963
30971
|
key: 0,
|
|
30964
30972
|
type: "info"
|
|
30965
30973
|
}, {
|
|
@@ -30968,13 +30976,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30968
30976
|
]),
|
|
30969
30977
|
_: 1
|
|
30970
30978
|
})) : pe("", !0),
|
|
30971
|
-
|
|
30979
|
+
g.isRows ? (M(), ie(v(Hs), { key: 1 }, {
|
|
30972
30980
|
default: S(() => [
|
|
30973
30981
|
U("行头")
|
|
30974
30982
|
]),
|
|
30975
30983
|
_: 1
|
|
30976
30984
|
})) : pe("", !0),
|
|
30977
|
-
|
|
30985
|
+
g.isColumns ? (M(), ie(v(Hs), {
|
|
30978
30986
|
key: 2,
|
|
30979
30987
|
type: "warning"
|
|
30980
30988
|
}, {
|
|
@@ -30983,7 +30991,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
30983
30991
|
]),
|
|
30984
30992
|
_: 1
|
|
30985
30993
|
})) : pe("", !0),
|
|
30986
|
-
|
|
30994
|
+
g.isValues ? (M(), ie(v(Hs), {
|
|
30987
30995
|
key: 3,
|
|
30988
30996
|
type: "success"
|
|
30989
30997
|
}, {
|
|
@@ -31029,13 +31037,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31029
31037
|
_(v(Xc), { gutter: 10 }, {
|
|
31030
31038
|
default: S(() => [
|
|
31031
31039
|
y5,
|
|
31032
|
-
_(v(
|
|
31040
|
+
_(v(dt), { span: 12 }, {
|
|
31033
31041
|
default: S(() => [
|
|
31034
31042
|
_(v(N), { label: "占满宽度" }, {
|
|
31035
31043
|
default: S(() => [
|
|
31036
|
-
_(v(
|
|
31044
|
+
_(v(nt), {
|
|
31037
31045
|
modelValue: v(t).custom.fullContainer,
|
|
31038
|
-
"onUpdate:modelValue":
|
|
31046
|
+
"onUpdate:modelValue": d[1] || (d[1] = (g) => v(t).custom.fullContainer = g)
|
|
31039
31047
|
}, null, 8, ["modelValue"])
|
|
31040
31048
|
]),
|
|
31041
31049
|
_: 1
|
|
@@ -31043,7 +31051,22 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31043
31051
|
]),
|
|
31044
31052
|
_: 1
|
|
31045
31053
|
}),
|
|
31046
|
-
_(v(
|
|
31054
|
+
_(v(dt), { span: 12 }, {
|
|
31055
|
+
default: S(() => [
|
|
31056
|
+
_(v(N), { label: "占满高度(单报表)" }, {
|
|
31057
|
+
default: S(() => [
|
|
31058
|
+
_(v(nt), {
|
|
31059
|
+
disabled: !v(a),
|
|
31060
|
+
modelValue: v(t).custom.fullHeight,
|
|
31061
|
+
"onUpdate:modelValue": d[2] || (d[2] = (g) => v(t).custom.fullHeight = g)
|
|
31062
|
+
}, null, 8, ["disabled", "modelValue"])
|
|
31063
|
+
]),
|
|
31064
|
+
_: 1
|
|
31065
|
+
})
|
|
31066
|
+
]),
|
|
31067
|
+
_: 1
|
|
31068
|
+
}),
|
|
31069
|
+
_(v(dt), { span: 12 }, {
|
|
31047
31070
|
default: S(() => [
|
|
31048
31071
|
_(v(N), { label: "宽度" }, {
|
|
31049
31072
|
default: S(() => [
|
|
@@ -31051,7 +31074,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31051
31074
|
type: "number",
|
|
31052
31075
|
disabled: v(t).custom.fullContainer,
|
|
31053
31076
|
modelValue: v(t).width,
|
|
31054
|
-
"onUpdate:modelValue":
|
|
31077
|
+
"onUpdate:modelValue": d[3] || (d[3] = (g) => v(t).width = g),
|
|
31055
31078
|
modelModifiers: { number: !0 }
|
|
31056
31079
|
}, {
|
|
31057
31080
|
suffix: S(() => [
|
|
@@ -31065,28 +31088,29 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31065
31088
|
]),
|
|
31066
31089
|
_: 1
|
|
31067
31090
|
}),
|
|
31068
|
-
_(v(
|
|
31091
|
+
_(v(dt), { span: 12 }, {
|
|
31069
31092
|
default: S(() => [
|
|
31070
31093
|
_(v(N), { label: "高度" }, {
|
|
31071
31094
|
default: S(() => [
|
|
31072
31095
|
_(v(He), {
|
|
31073
31096
|
type: "number",
|
|
31097
|
+
disabled: v(t).custom.fullHeight,
|
|
31074
31098
|
modelValue: v(t).height,
|
|
31075
|
-
"onUpdate:modelValue":
|
|
31099
|
+
"onUpdate:modelValue": d[4] || (d[4] = (g) => v(t).height = g),
|
|
31076
31100
|
modelModifiers: { number: !0 }
|
|
31077
31101
|
}, {
|
|
31078
31102
|
suffix: S(() => [
|
|
31079
31103
|
U("px")
|
|
31080
31104
|
]),
|
|
31081
31105
|
_: 1
|
|
31082
|
-
}, 8, ["modelValue"])
|
|
31106
|
+
}, 8, ["disabled", "modelValue"])
|
|
31083
31107
|
]),
|
|
31084
31108
|
_: 1
|
|
31085
31109
|
})
|
|
31086
31110
|
]),
|
|
31087
31111
|
_: 1
|
|
31088
31112
|
}),
|
|
31089
|
-
v(
|
|
31113
|
+
v(l) ? (M(), ie(v(dt), {
|
|
31090
31114
|
key: 0,
|
|
31091
31115
|
span: 24
|
|
31092
31116
|
}, {
|
|
@@ -31095,7 +31119,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31095
31119
|
default: S(() => [
|
|
31096
31120
|
_(v(ei), {
|
|
31097
31121
|
modelValue: v(t).hierarchyType,
|
|
31098
|
-
"onUpdate:modelValue":
|
|
31122
|
+
"onUpdate:modelValue": d[5] || (d[5] = (g) => v(t).hierarchyType = g)
|
|
31099
31123
|
}, {
|
|
31100
31124
|
default: S(() => [
|
|
31101
31125
|
_(v(_e), { label: "grid" }, {
|
|
@@ -31120,13 +31144,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31120
31144
|
_: 1
|
|
31121
31145
|
})) : pe("", !0),
|
|
31122
31146
|
v(t).frozen ? (M(), J(me, { key: 1 }, [
|
|
31123
|
-
_(v(
|
|
31147
|
+
_(v(dt), { span: 12 }, {
|
|
31124
31148
|
default: S(() => [
|
|
31125
31149
|
_(v(N), { label: "顶部冻结行数" }, {
|
|
31126
31150
|
default: S(() => [
|
|
31127
31151
|
_(v(He), {
|
|
31128
31152
|
modelValue: v(t).frozen.rowCount,
|
|
31129
|
-
"onUpdate:modelValue":
|
|
31153
|
+
"onUpdate:modelValue": d[6] || (d[6] = (g) => v(t).frozen.rowCount = g)
|
|
31130
31154
|
}, null, 8, ["modelValue"])
|
|
31131
31155
|
]),
|
|
31132
31156
|
_: 1
|
|
@@ -31134,13 +31158,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31134
31158
|
]),
|
|
31135
31159
|
_: 1
|
|
31136
31160
|
}),
|
|
31137
|
-
_(v(
|
|
31161
|
+
_(v(dt), { span: 12 }, {
|
|
31138
31162
|
default: S(() => [
|
|
31139
31163
|
_(v(N), { label: "左侧冻结列数" }, {
|
|
31140
31164
|
default: S(() => [
|
|
31141
31165
|
_(v(He), {
|
|
31142
31166
|
modelValue: v(t).frozen.colCount,
|
|
31143
|
-
"onUpdate:modelValue":
|
|
31167
|
+
"onUpdate:modelValue": d[7] || (d[7] = (g) => v(t).frozen.colCount = g)
|
|
31144
31168
|
}, null, 8, ["modelValue"])
|
|
31145
31169
|
]),
|
|
31146
31170
|
_: 1
|
|
@@ -31148,13 +31172,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31148
31172
|
]),
|
|
31149
31173
|
_: 1
|
|
31150
31174
|
}),
|
|
31151
|
-
_(v(
|
|
31175
|
+
_(v(dt), { span: 12 }, {
|
|
31152
31176
|
default: S(() => [
|
|
31153
31177
|
_(v(N), { label: "底部冻结行数" }, {
|
|
31154
31178
|
default: S(() => [
|
|
31155
31179
|
_(v(He), {
|
|
31156
31180
|
modelValue: v(t).frozen.trailingRowCount,
|
|
31157
|
-
"onUpdate:modelValue":
|
|
31181
|
+
"onUpdate:modelValue": d[8] || (d[8] = (g) => v(t).frozen.trailingRowCount = g)
|
|
31158
31182
|
}, null, 8, ["modelValue"])
|
|
31159
31183
|
]),
|
|
31160
31184
|
_: 1
|
|
@@ -31162,13 +31186,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31162
31186
|
]),
|
|
31163
31187
|
_: 1
|
|
31164
31188
|
}),
|
|
31165
|
-
_(v(
|
|
31189
|
+
_(v(dt), { span: 12 }, {
|
|
31166
31190
|
default: S(() => [
|
|
31167
31191
|
_(v(N), { label: "右侧冻结列数" }, {
|
|
31168
31192
|
default: S(() => [
|
|
31169
31193
|
_(v(He), {
|
|
31170
31194
|
modelValue: v(t).frozen.trailingColCount,
|
|
31171
|
-
"onUpdate:modelValue":
|
|
31195
|
+
"onUpdate:modelValue": d[9] || (d[9] = (g) => v(t).frozen.trailingColCount = g)
|
|
31172
31196
|
}, null, 8, ["modelValue"])
|
|
31173
31197
|
]),
|
|
31174
31198
|
_: 1
|
|
@@ -31177,13 +31201,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31177
31201
|
_: 1
|
|
31178
31202
|
})
|
|
31179
31203
|
], 64)) : pe("", !0),
|
|
31180
|
-
_(v(
|
|
31204
|
+
_(v(dt), { span: 8 }, {
|
|
31181
31205
|
default: S(() => [
|
|
31182
31206
|
_(v(N), { label: "序号" }, {
|
|
31183
31207
|
default: S(() => [
|
|
31184
|
-
_(v(
|
|
31208
|
+
_(v(nt), {
|
|
31185
31209
|
modelValue: v(t).seriesNumberEnable,
|
|
31186
|
-
"onUpdate:modelValue":
|
|
31210
|
+
"onUpdate:modelValue": d[10] || (d[10] = (g) => v(t).seriesNumberEnable = g)
|
|
31187
31211
|
}, null, 8, ["modelValue"])
|
|
31188
31212
|
]),
|
|
31189
31213
|
_: 1
|
|
@@ -31191,13 +31215,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31191
31215
|
]),
|
|
31192
31216
|
_: 1
|
|
31193
31217
|
}),
|
|
31194
|
-
_(v(
|
|
31218
|
+
_(v(dt), { span: 16 }, {
|
|
31195
31219
|
default: S(() => [
|
|
31196
31220
|
_(v(N), { label: "序号列头文本" }, {
|
|
31197
31221
|
default: S(() => [
|
|
31198
31222
|
_(v(He), {
|
|
31199
31223
|
modelValue: v(t).seriesNumberText,
|
|
31200
|
-
"onUpdate:modelValue":
|
|
31224
|
+
"onUpdate:modelValue": d[11] || (d[11] = (g) => v(t).seriesNumberText = g)
|
|
31201
31225
|
}, null, 8, ["modelValue"])
|
|
31202
31226
|
]),
|
|
31203
31227
|
_: 1
|
|
@@ -31207,13 +31231,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31207
31231
|
}),
|
|
31208
31232
|
v(t).textWordWrap ? (M(), J(me, { key: 2 }, [
|
|
31209
31233
|
_5,
|
|
31210
|
-
_(v(
|
|
31234
|
+
_(v(dt), { span: 24 }, {
|
|
31211
31235
|
default: S(() => [
|
|
31212
31236
|
_(v(N), { label: "是否开启多行文本" }, {
|
|
31213
31237
|
default: S(() => [
|
|
31214
|
-
_(v(
|
|
31238
|
+
_(v(nt), {
|
|
31215
31239
|
modelValue: v(t).textWordWrap.open,
|
|
31216
|
-
"onUpdate:modelValue":
|
|
31240
|
+
"onUpdate:modelValue": d[12] || (d[12] = (g) => v(t).textWordWrap.open = g)
|
|
31217
31241
|
}, null, 8, ["modelValue"])
|
|
31218
31242
|
]),
|
|
31219
31243
|
_: 1
|
|
@@ -31221,13 +31245,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31221
31245
|
]),
|
|
31222
31246
|
_: 1
|
|
31223
31247
|
}),
|
|
31224
|
-
_(v(
|
|
31248
|
+
_(v(dt), { span: 12 }, {
|
|
31225
31249
|
default: S(() => [
|
|
31226
31250
|
_(v(N), { label: "最大行数" }, {
|
|
31227
31251
|
default: S(() => [
|
|
31228
|
-
_(
|
|
31252
|
+
_(p, {
|
|
31229
31253
|
modelValue: v(t).textWordWrap.maxLine,
|
|
31230
|
-
"onUpdate:modelValue":
|
|
31254
|
+
"onUpdate:modelValue": d[13] || (d[13] = (g) => v(t).textWordWrap.maxLine = g)
|
|
31231
31255
|
}, null, 8, ["modelValue"])
|
|
31232
31256
|
]),
|
|
31233
31257
|
_: 1
|
|
@@ -31235,13 +31259,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31235
31259
|
]),
|
|
31236
31260
|
_: 1
|
|
31237
31261
|
}),
|
|
31238
|
-
_(v(
|
|
31262
|
+
_(v(dt), { span: 12 }, {
|
|
31239
31263
|
default: S(() => [
|
|
31240
31264
|
_(v(N), { label: "高度" }, {
|
|
31241
31265
|
default: S(() => [
|
|
31242
|
-
_(
|
|
31266
|
+
_(p, {
|
|
31243
31267
|
modelValue: v(t).textWordWrap.height,
|
|
31244
|
-
"onUpdate:modelValue":
|
|
31268
|
+
"onUpdate:modelValue": d[14] || (d[14] = (g) => v(t).textWordWrap.height = g)
|
|
31245
31269
|
}, null, 8, ["modelValue"])
|
|
31246
31270
|
]),
|
|
31247
31271
|
_: 1
|
|
@@ -31250,13 +31274,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31250
31274
|
_: 1
|
|
31251
31275
|
})
|
|
31252
31276
|
], 64)) : pe("", !0),
|
|
31253
|
-
_(v(
|
|
31277
|
+
_(v(dt), { span: 24 }, {
|
|
31254
31278
|
default: S(() => [
|
|
31255
31279
|
_(v(N), { label: "是否开启悬浮框" }, {
|
|
31256
31280
|
default: S(() => [
|
|
31257
|
-
_(v(
|
|
31281
|
+
_(v(nt), {
|
|
31258
31282
|
modelValue: v(t).tooltips,
|
|
31259
|
-
"onUpdate:modelValue":
|
|
31283
|
+
"onUpdate:modelValue": d[15] || (d[15] = (g) => v(t).tooltips = g)
|
|
31260
31284
|
}, null, 8, ["modelValue"])
|
|
31261
31285
|
]),
|
|
31262
31286
|
_: 1
|
|
@@ -31265,13 +31289,13 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31265
31289
|
_: 1
|
|
31266
31290
|
}),
|
|
31267
31291
|
S5,
|
|
31268
|
-
_(v(
|
|
31292
|
+
_(v(dt), { span: 24 }, {
|
|
31269
31293
|
default: S(() => [
|
|
31270
31294
|
_(v(N), { label: "主题" }, {
|
|
31271
31295
|
default: S(() => [
|
|
31272
31296
|
_(v(ei), {
|
|
31273
31297
|
modelValue: v(t).theme.themeName,
|
|
31274
|
-
"onUpdate:modelValue":
|
|
31298
|
+
"onUpdate:modelValue": d[16] || (d[16] = (g) => v(t).theme.themeName = g)
|
|
31275
31299
|
}, {
|
|
31276
31300
|
default: S(() => [
|
|
31277
31301
|
_(v(_e), { label: "default" }, {
|
|
@@ -31313,7 +31337,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31313
31337
|
]),
|
|
31314
31338
|
_: 1
|
|
31315
31339
|
}),
|
|
31316
|
-
v(t).theme.themeName === "custom" ? (M(), ie(v(
|
|
31340
|
+
v(t).theme.themeName === "custom" ? (M(), ie(v(dt), {
|
|
31317
31341
|
key: 3,
|
|
31318
31342
|
span: 24
|
|
31319
31343
|
}, {
|
|
@@ -31322,7 +31346,7 @@ const n5 = { class: "statement-option-title" }, r5 = /* @__PURE__ */ L("div", {
|
|
|
31322
31346
|
default: S(() => [
|
|
31323
31347
|
_(v(yu), {
|
|
31324
31348
|
modelValue: v(t).theme.themeColor,
|
|
31325
|
-
"onUpdate:modelValue":
|
|
31349
|
+
"onUpdate:modelValue": d[17] || (d[17] = (g) => v(t).theme.themeColor = g),
|
|
31326
31350
|
size: "large",
|
|
31327
31351
|
"show-alpha": ""
|
|
31328
31352
|
}, null, 8, ["modelValue"])
|
|
@@ -31468,14 +31492,14 @@ const w5 = function(n, e) {
|
|
|
31468
31492
|
}, L5 = /* @__PURE__ */ L("div", { class: "drag-tap left" }, null, -1), I5 = /* @__PURE__ */ L("div", { class: "statement-form-sub-title" }, "数据", -1), z5 = /* @__PURE__ */ L("div", { class: "statement-form-sub-title" }, "固定定位", -1), U5 = /* @__PURE__ */ L("span", { class: "tooltip-span" }, "顶部距离", -1), q5 = /* @__PURE__ */ L("span", { class: "tooltip-span" }, "左侧距离", -1), rC = /* @__PURE__ */ Vt({
|
|
31469
31493
|
__name: "StatementDesign",
|
|
31470
31494
|
setup(n) {
|
|
31471
|
-
const e = At(), { detail: t, keyControl: i, listData: r, showListData: s, sourceData: o, isPreview: a, selectedChartId: l, selectedChart: u } = Zt(e), h = ce(), { isFullscreen: c, toggle: f } = Nv(h), d =
|
|
31495
|
+
const e = At(), { detail: t, keyControl: i, listData: r, showListData: s, sourceData: o, isPreview: a, selectedChartId: l, selectedChart: u } = Zt(e), h = ce(), { isFullscreen: c, toggle: f } = Nv(h), d = Ee(() => s.value.map((X) => ({
|
|
31472
31496
|
label: X.name,
|
|
31473
31497
|
value: X.id,
|
|
31474
31498
|
children: X.columns.map((Z) => ({
|
|
31475
31499
|
label: Z.name,
|
|
31476
31500
|
value: Z.columnName.toUpperCase()
|
|
31477
31501
|
}))
|
|
31478
|
-
}))), p =
|
|
31502
|
+
}))), p = Ee(() => Yv.includes(u.value.type)), g = Ee(() => {
|
|
31479
31503
|
let X = "X轴轴坐标数据";
|
|
31480
31504
|
switch (u.value.type) {
|
|
31481
31505
|
case "rowBar":
|
|
@@ -31830,7 +31854,7 @@ const w5 = function(n, e) {
|
|
|
31830
31854
|
label: "平滑"
|
|
31831
31855
|
}, {
|
|
31832
31856
|
default: S(() => [
|
|
31833
|
-
_(v(
|
|
31857
|
+
_(v(nt), {
|
|
31834
31858
|
modelValue: v(u).smooth,
|
|
31835
31859
|
"onUpdate:modelValue": Z[11] || (Z[11] = (j) => v(u).smooth = j)
|
|
31836
31860
|
}, null, 8, ["modelValue"])
|
|
@@ -31842,7 +31866,7 @@ const w5 = function(n, e) {
|
|
|
31842
31866
|
label: "显示点"
|
|
31843
31867
|
}, {
|
|
31844
31868
|
default: S(() => [
|
|
31845
|
-
_(v(
|
|
31869
|
+
_(v(nt), {
|
|
31846
31870
|
modelValue: v(u).symbol,
|
|
31847
31871
|
"onUpdate:modelValue": Z[12] || (Z[12] = (j) => v(u).symbol = j),
|
|
31848
31872
|
"active-value": "emptyCircle",
|
|
@@ -31853,7 +31877,7 @@ const w5 = function(n, e) {
|
|
|
31853
31877
|
})) : pe("", !0),
|
|
31854
31878
|
_(v(N), { label: "显示标签" }, {
|
|
31855
31879
|
default: S(() => [
|
|
31856
|
-
_(v(
|
|
31880
|
+
_(v(nt), {
|
|
31857
31881
|
modelValue: v(u).showLabel,
|
|
31858
31882
|
"onUpdate:modelValue": Z[13] || (Z[13] = (j) => v(u).showLabel = j)
|
|
31859
31883
|
}, null, 8, ["modelValue"])
|
|
@@ -31985,7 +32009,7 @@ const w5 = function(n, e) {
|
|
|
31985
32009
|
label: "面积图"
|
|
31986
32010
|
}, {
|
|
31987
32011
|
default: S(() => [
|
|
31988
|
-
_(v(
|
|
32012
|
+
_(v(nt), {
|
|
31989
32013
|
modelValue: v(u).areaStyle,
|
|
31990
32014
|
"onUpdate:modelValue": Z[19] || (Z[19] = (j) => v(u).areaStyle = j),
|
|
31991
32015
|
"active-value": "{}",
|
|
@@ -31999,7 +32023,7 @@ const w5 = function(n, e) {
|
|
|
31999
32023
|
label: "环形图"
|
|
32000
32024
|
}, {
|
|
32001
32025
|
default: S(() => [
|
|
32002
|
-
_(v(
|
|
32026
|
+
_(v(nt), {
|
|
32003
32027
|
modelValue: v(u).radius,
|
|
32004
32028
|
"onUpdate:modelValue": Z[20] || (Z[20] = (j) => v(u).radius = j)
|
|
32005
32029
|
}, null, 8, ["modelValue"])
|
|
@@ -32127,4 +32151,4 @@ const w5 = function(n, e) {
|
|
|
32127
32151
|
export {
|
|
32128
32152
|
rC as default
|
|
32129
32153
|
};
|
|
32130
|
-
//# sourceMappingURL=StatementDesign-
|
|
32154
|
+
//# sourceMappingURL=StatementDesign-c370fef7.mjs.map
|