yh-report 2.0.16 → 2.0.18

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.
@@ -1,9 +1,9 @@
1
- import { ref as he, computed as be, defineComponent as gt, watch as hs, reactive as Rf, onMounted as cn, onUnmounted as Br, resolveComponent as ce, openBlock as U, createElementBlock as K, normalizeClass as Yn, unref as b, normalizeStyle as Ct, createElementVNode as D, createVNode as Q, withCtx as x, Fragment as se, renderList as Fe, createBlock as oe, resolveDynamicComponent as Ym, toDisplayString as Me, createTextVNode as B, createCommentVNode as ae, renderSlot as Hs, onActivated as Xf, onDeactivated as Zf, toRaw as Em, withDirectives as Qt, vShow as bt, isRef as qm, withKeys as Mm, nextTick as Dm } from "vue";
1
+ import { ref as he, computed as be, defineComponent as gt, watch as hs, reactive as Rf, onMounted as cn, onUnmounted as Br, resolveComponent as ce, openBlock as U, createElementBlock as K, normalizeClass as Yn, unref as b, normalizeStyle as Ct, createElementVNode as D, createVNode as Q, withCtx as x, Fragment as re, renderList as Fe, createBlock as oe, resolveDynamicComponent as Ym, toDisplayString as Me, createTextVNode as B, createCommentVNode as ae, renderSlot as Hs, onActivated as Xf, onDeactivated as Zf, toRaw as Em, withDirectives as Qt, vShow as bt, isRef as qm, withKeys as Mm, nextTick as Dm } from "vue";
2
2
  import { ElMessage as fr, ElEmpty as Lm, ElDialog as Af, ElFormItem as ue, ElInput as Gi, ElSwitch as ni, ElButton as we, ElRadioGroup as Ei, ElRadioButton as Pe, ElCheckbox as Sh, ElColorPicker as vh, ElForm as Um, ElTabs as zm, ElCollapse as Wm, ElCollapseItem as Bm, ElTooltip as Nm } from "element-plus";
3
3
  import { useRoute as Vf, onBeforeRouteLeave as Im } from "vue-router";
4
4
  import { useFullscreen as Gm } from "@vueuse/core";
5
5
  import { defineStore as jm, storeToRefs as Dt } from "pinia";
6
- import { b as Fm, s as Hm, C as ie, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as qi, p as ig, h as Yf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag } from "./index-b2fa77bb.mjs";
6
+ import { b as Fm, s as Hm, C as ie, F as Re, r as Km, e as Jm, f as eg, _ as tg, D as qi, p as ig, h as Yf, i as ng, j as sg, T as rg, k as og, I as lg, l as ag } from "./index-bd85b7d3.mjs";
7
7
  import { cloneDeep as pl, set as si, get as hg } from "lodash-es";
8
8
  import "@/libs/api.request.js";
9
9
  import "echarts";
@@ -219,7 +219,7 @@ const Lt = function() {
219
219
  _e && (de.class += " active"), Ce.push(de);
220
220
  for (let Yi = 0; Yi < v; Yi++) {
221
221
  const Qh = O(E, ie.CELL, Yi, V);
222
- let { bindData: Vm, bindDataLoop: hk } = C(Yi), Qe = f.value.config && f.value.config[V] ? f.value.config[V][Yi] : null;
222
+ let { bindData: Vm, bindDataLoop: uk } = C(Yi), Qe = f.value.config && f.value.config[V] ? f.value.config[V][Yi] : null;
223
223
  if (Qe) {
224
224
  let bi = "", bh = "", ho = ie.TEXT;
225
225
  if (Qe && Qe.type) {
@@ -317,10 +317,10 @@ const Lt = function() {
317
317
  };
318
318
  e("choose", A);
319
319
  }
320
- function q() {
320
+ function M() {
321
321
  e("del", t.index);
322
322
  }
323
- const M = Rf({
323
+ const q = Rf({
324
324
  width: "0px",
325
325
  height: "0px",
326
326
  left: "0px",
@@ -331,17 +331,17 @@ const Lt = function() {
331
331
  var v, E;
332
332
  if ((v = A.target) != null && v.closest(".report-desinger-table-content")) {
333
333
  let { pageX: Y, pageY: W } = A, { x: I = 0, y: ee = 0 } = ((E = Z.value) == null ? void 0 : E.getBoundingClientRect()) || {};
334
- z = {}, z.x = Y, z.y = W, z.tableX = I, z.tableY = ee, M.left = Y - I + "px", M.top = W - ee + "px";
334
+ z = {}, z.x = Y, z.y = W, z.tableX = I, z.tableY = ee, q.left = Y - I + "px", q.top = W - ee + "px";
335
335
  }
336
336
  }
337
337
  function J(A) {
338
338
  if (z !== null) {
339
339
  let { pageX: v, pageY: E } = A, { tableX: Y, tableY: W, x: I, y: ee } = z;
340
- v > I ? M.width = v - I - 1 + "px" : (M.left = v - Y + "px", M.width = I - v + "px"), E > ee ? M.height = E - ee - 1 + "px" : (M.top = E - W + "px", M.height = ee - E + "px");
340
+ v > I ? q.width = v - I - 1 + "px" : (q.left = v - Y + "px", q.width = I - v + "px"), E > ee ? q.height = E - ee - 1 + "px" : (q.top = E - W + "px", q.height = ee - E + "px");
341
341
  }
342
342
  }
343
- function re(A) {
344
- z = null, M.width = "0px", M.height = "0px", M.left = "0px", M.top = "0px";
343
+ function se(A) {
344
+ z = null, q.width = "0px", q.height = "0px", q.left = "0px", q.top = "0px";
345
345
  }
346
346
  return cn(async () => {
347
347
  var A, v;
@@ -365,10 +365,10 @@ const Lt = function() {
365
365
  });
366
366
  f.value.rowConfig = E;
367
367
  }
368
- Z.value && (Z.value.addEventListener("mousedown", G), document.addEventListener("mousemove", J), document.addEventListener("mouseup", re));
368
+ Z.value && (Z.value.addEventListener("mousedown", G), document.addEventListener("mousemove", J), document.addEventListener("mouseup", se));
369
369
  }), Br(() => {
370
370
  var A;
371
- (A = Z.value) == null || A.removeEventListener("mousedown", G), document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", re);
371
+ (A = Z.value) == null || A.removeEventListener("mousedown", G), document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", se);
372
372
  }), (A, v) => {
373
373
  const E = ce("el-form-item"), Y = ce("el-form"), W = ce("el-button");
374
374
  return U(), K("div", {
@@ -383,7 +383,7 @@ const Lt = function() {
383
383
  D("div", fg, [
384
384
  Q(Y, { inline: "" }, {
385
385
  default: x(() => [
386
- (U(!0), K(se, null, Fe(b(w), (I, ee) => (U(), oe(E, {
386
+ (U(!0), K(re, null, Fe(b(w), (I, ee) => (U(), oe(E, {
387
387
  class: Yn(["params-desinger-item report-drag-source report-drop-target", { active: ee === b(o) }]),
388
388
  draggable: "true",
389
389
  "data-drag": "params",
@@ -420,14 +420,14 @@ const Lt = function() {
420
420
  }, [
421
421
  D("colgroup", null, [
422
422
  Qg,
423
- (U(!0), K(se, null, Fe(b(d), (I) => (U(), K("col", {
423
+ (U(!0), K(re, null, Fe(b(d), (I) => (U(), K("col", {
424
424
  width: I == null ? void 0 : I.size
425
425
  }, null, 8, bg))), 256))
426
426
  ]),
427
- (U(!0), K(se, null, Fe(b(R), ({ size: I, cols: ee, bind: V, loop: _e }, Ce) => (U(), K("tr", {
427
+ (U(!0), K(re, null, Fe(b(R), ({ size: I, cols: ee, bind: V, loop: _e }, Ce) => (U(), K("tr", {
428
428
  style: Ct(`height: ${I}px;`)
429
429
  }, [
430
- (U(!0), K(se, null, Fe(ee, (de, ii) => (U(), K("td", {
430
+ (U(!0), K(re, null, Fe(ee, (de, ii) => (U(), K("td", {
431
431
  class: Yn(de.class),
432
432
  style: Ct(de.styleAttr),
433
433
  title: `${(V || de.bind) && de.type === "head" ? "随数据循环" : de.text}`,
@@ -441,8 +441,8 @@ const Lt = function() {
441
441
  colspan: de.colSpan
442
442
  }, [
443
443
  B(Me(de.text) + " ", 1),
444
- de.type === "head" ? (U(), K(se, { key: 0 }, [
445
- Ce === 0 ? (U(), K(se, { key: 0 }, [
444
+ de.type === "head" ? (U(), K(re, { key: 0 }, [
445
+ Ce === 0 ? (U(), K(re, { key: 0 }, [
446
446
  ii !== 0 ? (U(), K("div", {
447
447
  key: 0,
448
448
  class: "drag-bar mouse-move-target",
@@ -487,7 +487,7 @@ const Lt = function() {
487
487
  }, 8, ["disabled"]),
488
488
  Q(W, {
489
489
  type: "primary",
490
- onClick: q
490
+ onClick: M
491
491
  }, {
492
492
  default: x(() => [
493
493
  kg
@@ -497,7 +497,7 @@ const Lt = function() {
497
497
  ]),
498
498
  D("div", {
499
499
  class: "yh-statement-table-choose-area",
500
- style: Ct(M)
500
+ style: Ct(q)
501
501
  }, null, 4),
502
502
  t.option.widthType === "px" ? (U(), K("div", {
503
503
  key: 0,
@@ -576,7 +576,7 @@ const Lt = function() {
576
576
  }, [
577
577
  Hs(p.$slots, "default"),
578
578
  D("div", Zg, [
579
- b(a).isSuspend ? (U(), K(se, { key: 0 }, [
579
+ b(a).isSuspend ? (U(), K(re, { key: 0 }, [
580
580
  Q(m, {
581
581
  type: "primary",
582
582
  title: "移动",
@@ -736,25 +736,25 @@ const Lt = function() {
736
736
  if (y && c) {
737
737
  let { area: C, index: k, col: R, row: $ } = y.dataset;
738
738
  const T = k ? parseInt(k) : -1;
739
- let w = R ? parseInt(R) : -1, P = $ ? parseInt($) : -1, { droparea: g, index: Z, rindex: X, cindex: q } = c;
740
- if (g === C && Z === T && q !== void 0 && q > -1 && X !== void 0 && X > -1) {
741
- let [M, z] = [q, w].sort((A, v) => A - v), [G, J] = [X, P].sort((A, v) => A - v), re = [];
739
+ let w = R ? parseInt(R) : -1, P = $ ? parseInt($) : -1, { droparea: g, index: Z, rindex: X, cindex: M } = c;
740
+ if (g === C && Z === T && M !== void 0 && M > -1 && X !== void 0 && X > -1) {
741
+ let [q, z] = [M, w].sort((A, v) => A - v), [G, J] = [X, P].sort((A, v) => A - v), se = [];
742
742
  for (let A = G; A <= J; A++)
743
- for (let v = M; v <= z; v++)
744
- re.push({
743
+ for (let v = q; v <= z; v++)
744
+ se.push({
745
745
  type: ie.CELL,
746
746
  index: T,
747
747
  col: v,
748
748
  row: A
749
749
  });
750
- r.value = re;
751
- } else if ([ie.COL, ie.ROW].includes(g) && (q !== void 0 && q > -1 || X !== void 0 && X > -1)) {
752
- let M = [], [z, G] = [q, w].sort(), [J, re] = [X, P].sort();
750
+ r.value = se;
751
+ } else if ([ie.COL, ie.ROW].includes(g) && (M !== void 0 && M > -1 || X !== void 0 && X > -1)) {
752
+ let q = [], [z, G] = [M, w].sort(), [J, se] = [X, P].sort();
753
753
  switch (g) {
754
754
  case ie.COL:
755
755
  if (z !== void 0 && G !== void 0 && G > -1)
756
756
  for (let A = z; A <= G; A++)
757
- M.push({
757
+ q.push({
758
758
  type: ie.COL,
759
759
  index: T,
760
760
  col: A,
@@ -762,9 +762,9 @@ const Lt = function() {
762
762
  });
763
763
  break;
764
764
  case ie.ROW:
765
- if (J !== void 0 && re !== void 0 && re > -1)
766
- for (let A = J; A <= re; A++)
767
- M.push({
765
+ if (J !== void 0 && se !== void 0 && se > -1)
766
+ for (let A = J; A <= se; A++)
767
+ q.push({
768
768
  type: ie.ROW,
769
769
  index: T,
770
770
  col: -1,
@@ -772,7 +772,7 @@ const Lt = function() {
772
772
  });
773
773
  break;
774
774
  }
775
- r.value = M;
775
+ r.value = q;
776
776
  }
777
777
  }
778
778
  c = null;
@@ -800,7 +800,7 @@ const Lt = function() {
800
800
  "data-source": "canvas",
801
801
  "data-target": "canvas"
802
802
  }, [
803
- (U(!0), K(se, null, Fe(b(a), (C, k) => (U(), K(se, null, [
803
+ (U(!0), K(re, null, Fe(b(a), (C, k) => (U(), K(re, null, [
804
804
  C.type === "report" ? (U(), oe(Rg, {
805
805
  key: 0,
806
806
  option: C,
@@ -859,7 +859,7 @@ const Ng = { class: "chart-series-wrapper" }, Ig = ["data-drag", "data-index"],
859
859
  },
860
860
  setup(n) {
861
861
  return (e, t) => (U(), K("ul", Ng, [
862
- (U(!0), K(se, null, Fe(n.chartReportList, (i, s) => (U(), K("li", {
862
+ (U(!0), K(re, null, Fe(n.chartReportList, (i, s) => (U(), K("li", {
863
863
  class: "chart-series-box report-drag-source",
864
864
  draggable: "true",
865
865
  "data-drag": i.type,
@@ -880,7 +880,7 @@ const Ng = { class: "chart-series-wrapper" }, Ig = ["data-drag", "data-index"],
880
880
  const e = Lt(), { activeParam: t } = Dt(e);
881
881
  return (i, s) => {
882
882
  const r = ce("el-col"), o = ce("el-option"), l = ce("el-select");
883
- return b(t) ? (U(), K(se, { key: 0 }, [
883
+ return b(t) ? (U(), K(re, { key: 0 }, [
884
884
  Fg,
885
885
  Q(r, { span: 12 }, {
886
886
  default: x(() => [
@@ -9734,25 +9734,25 @@ function K0(n, e, t) {
9734
9734
  }
9735
9735
  function C(R, $, T) {
9736
9736
  let w = 1e9, P = -1e9, g = [];
9737
- function Z(M, z, G, J, re) {
9738
- let A = n.coordsAtPos(M, M == T.to ? -2 : 2), v = n.coordsAtPos(G, G == T.from ? 2 : -2);
9739
- !A || !v || (w = Math.min(A.top, v.top, w), P = Math.max(A.bottom, v.bottom, P), re == Te.LTR ? g.push(r && z ? c : A.left, r && J ? f : v.right) : g.push(!r && J ? c : v.left, !r && z ? f : A.right));
9740
- }
9741
- let X = R ?? T.from, q = $ ?? T.to;
9742
- for (let M of n.visibleRanges)
9743
- if (M.to > X && M.from < q)
9744
- for (let z = Math.max(M.from, X), G = Math.min(M.to, q); ; ) {
9737
+ function Z(q, z, G, J, se) {
9738
+ let A = n.coordsAtPos(q, q == T.to ? -2 : 2), v = n.coordsAtPos(G, G == T.from ? 2 : -2);
9739
+ !A || !v || (w = Math.min(A.top, v.top, w), P = Math.max(A.bottom, v.bottom, P), se == Te.LTR ? g.push(r && z ? c : A.left, r && J ? f : v.right) : g.push(!r && J ? c : v.left, !r && z ? f : A.right));
9740
+ }
9741
+ let X = R ?? T.from, M = $ ?? T.to;
9742
+ for (let q of n.visibleRanges)
9743
+ if (q.to > X && q.from < M)
9744
+ for (let z = Math.max(q.from, X), G = Math.min(q.to, M); ; ) {
9745
9745
  let J = n.state.doc.lineAt(z);
9746
- for (let re of n.bidiSpans(J)) {
9747
- let A = re.from + J.from, v = re.to + J.from;
9746
+ for (let se of n.bidiSpans(J)) {
9747
+ let A = se.from + J.from, v = se.to + J.from;
9748
9748
  if (A >= G)
9749
9749
  break;
9750
- v > z && Z(Math.max(A, z), R == null && A <= X, Math.min(v, G), $ == null && v >= q, re.dir);
9750
+ v > z && Z(Math.max(A, z), R == null && A <= X, Math.min(v, G), $ == null && v >= M, se.dir);
9751
9751
  }
9752
9752
  if (z = J.to + 1, z >= G)
9753
9753
  break;
9754
9754
  }
9755
- return g.length == 0 && Z(X, R == null, q, $ == null, n.textDirection), { top: w, bottom: P, horizontal: g };
9755
+ return g.length == 0 && Z(X, R == null, M, $ == null, n.textDirection), { top: w, bottom: P, horizontal: g };
9756
9756
  }
9757
9757
  function k(R, $) {
9758
9758
  let T = l.top + ($ ? R.top : R.bottom);
@@ -12221,75 +12221,75 @@ function t1(n) {
12221
12221
  var e;
12222
12222
  let { buffer: t, nodeSet: i, maxBufferLength: s = aO, reused: r = [], minRepeatType: o = i.types.length } = n, l = Array.isArray(t) ? new Ea(t, t.length) : t, a = i.types, u = 0, h = 0;
12223
12223
  function c(R, $, T, w, P, g) {
12224
- let { id: Z, start: X, end: q, size: M } = l, z = h, G = u;
12225
- for (; M < 0; )
12226
- if (l.next(), M == -1) {
12224
+ let { id: Z, start: X, end: M, size: q } = l, z = h, G = u;
12225
+ for (; q < 0; )
12226
+ if (l.next(), q == -1) {
12227
12227
  let E = r[Z];
12228
12228
  T.push(E), w.push(X - R);
12229
12229
  return;
12230
- } else if (M == -3) {
12230
+ } else if (q == -3) {
12231
12231
  u = Z;
12232
12232
  return;
12233
- } else if (M == -4) {
12233
+ } else if (q == -4) {
12234
12234
  h = Z;
12235
12235
  return;
12236
12236
  } else
12237
- throw new RangeError(`Unrecognized record size: ${M}`);
12238
- let J = a[Z], re, A, v = X - R;
12239
- if (q - X <= s && (A = m(l.pos - $, P))) {
12237
+ throw new RangeError(`Unrecognized record size: ${q}`);
12238
+ let J = a[Z], se, A, v = X - R;
12239
+ if (M - X <= s && (A = m(l.pos - $, P))) {
12240
12240
  let E = new Uint16Array(A.size - A.skip), Y = l.pos - A.size, W = E.length;
12241
12241
  for (; l.pos > Y; )
12242
12242
  W = O(A.start, E, W);
12243
- re = new pi(E, q - A.start, i), v = A.start - R;
12243
+ se = new pi(E, M - A.start, i), v = A.start - R;
12244
12244
  } else {
12245
- let E = l.pos - M;
12245
+ let E = l.pos - q;
12246
12246
  l.next();
12247
- let Y = [], W = [], I = Z >= o ? Z : -1, ee = 0, V = q;
12247
+ let Y = [], W = [], I = Z >= o ? Z : -1, ee = 0, V = M;
12248
12248
  for (; l.pos > E; )
12249
12249
  I >= 0 && l.id == I && l.size >= 0 ? (l.end <= V - s && (p(Y, W, X, ee, l.end, V, I, z, G), ee = Y.length, V = l.end), l.next()) : g > 2500 ? f(X, E, Y, W) : c(X, E, Y, W, I, g + 1);
12250
12250
  if (I >= 0 && ee > 0 && ee < Y.length && p(Y, W, X, ee, X, V, I, z, G), Y.reverse(), W.reverse(), I > -1 && ee > 0) {
12251
12251
  let _e = d(J, G);
12252
- re = Ma(J, Y, W, 0, Y.length, 0, q - X, _e, _e);
12252
+ se = Ma(J, Y, W, 0, Y.length, 0, M - X, _e, _e);
12253
12253
  } else
12254
- re = _(J, Y, W, q - X, z - q, G);
12254
+ se = _(J, Y, W, M - X, z - M, G);
12255
12255
  }
12256
- T.push(re), w.push(v);
12256
+ T.push(se), w.push(v);
12257
12257
  }
12258
12258
  function f(R, $, T, w) {
12259
12259
  let P = [], g = 0, Z = -1;
12260
12260
  for (; l.pos > $; ) {
12261
- let { id: X, start: q, end: M, size: z } = l;
12261
+ let { id: X, start: M, end: q, size: z } = l;
12262
12262
  if (z > 4)
12263
12263
  l.next();
12264
12264
  else {
12265
- if (Z > -1 && q < Z)
12265
+ if (Z > -1 && M < Z)
12266
12266
  break;
12267
- Z < 0 && (Z = M - s), P.push(X, q, M), g++, l.next();
12267
+ Z < 0 && (Z = q - s), P.push(X, M, q), g++, l.next();
12268
12268
  }
12269
12269
  }
12270
12270
  if (g) {
12271
- let X = new Uint16Array(g * 4), q = P[P.length - 2];
12272
- for (let M = P.length - 3, z = 0; M >= 0; M -= 3)
12273
- X[z++] = P[M], X[z++] = P[M + 1] - q, X[z++] = P[M + 2] - q, X[z++] = z;
12274
- T.push(new pi(X, P[2] - q, i)), w.push(q - R);
12271
+ let X = new Uint16Array(g * 4), M = P[P.length - 2];
12272
+ for (let q = P.length - 3, z = 0; q >= 0; q -= 3)
12273
+ X[z++] = P[q], X[z++] = P[q + 1] - M, X[z++] = P[q + 2] - M, X[z++] = z;
12274
+ T.push(new pi(X, P[2] - M, i)), w.push(M - R);
12275
12275
  }
12276
12276
  }
12277
12277
  function d(R, $) {
12278
12278
  return (T, w, P) => {
12279
- let g = 0, Z = T.length - 1, X, q;
12279
+ let g = 0, Z = T.length - 1, X, M;
12280
12280
  if (Z >= 0 && (X = T[Z]) instanceof Ze) {
12281
12281
  if (!Z && X.type == R && X.length == P)
12282
12282
  return X;
12283
- (q = X.prop(fe.lookAhead)) && (g = w[Z] + X.length + q);
12283
+ (M = X.prop(fe.lookAhead)) && (g = w[Z] + X.length + M);
12284
12284
  }
12285
12285
  return _(R, T, w, P, g, $);
12286
12286
  };
12287
12287
  }
12288
- function p(R, $, T, w, P, g, Z, X, q) {
12289
- let M = [], z = [];
12288
+ function p(R, $, T, w, P, g, Z, X, M) {
12289
+ let q = [], z = [];
12290
12290
  for (; R.length > w; )
12291
- M.push(R.pop()), z.push($.pop() + T - P);
12292
- R.push(_(i.types[Z], M, z, g - P, X - g, q)), $.push(P - T);
12291
+ q.push(R.pop()), z.push($.pop() + T - P);
12292
+ R.push(_(i.types[Z], q, z, g - P, X - g, M)), $.push(P - T);
12293
12293
  }
12294
12294
  function _(R, $, T, w, P, g, Z) {
12295
12295
  if (g) {
@@ -12305,14 +12305,14 @@ function t1(n) {
12305
12305
  function m(R, $) {
12306
12306
  let T = l.fork(), w = 0, P = 0, g = 0, Z = T.end - s, X = { size: 0, start: 0, skip: 0 };
12307
12307
  e:
12308
- for (let q = T.pos - R; T.pos > q; ) {
12309
- let M = T.size;
12310
- if (T.id == $ && M >= 0) {
12308
+ for (let M = T.pos - R; T.pos > M; ) {
12309
+ let q = T.size;
12310
+ if (T.id == $ && q >= 0) {
12311
12311
  X.size = w, X.start = P, X.skip = g, g += 4, w += 4, T.next();
12312
12312
  continue;
12313
12313
  }
12314
- let z = T.pos - M;
12315
- if (M < 0 || z < q || T.start < Z)
12314
+ let z = T.pos - q;
12315
+ if (q < 0 || z < M || T.start < Z)
12316
12316
  break;
12317
12317
  let G = T.id >= o ? 4 : 0, J = T.start;
12318
12318
  for (T.next(); T.pos > z; ) {
@@ -12325,7 +12325,7 @@ function t1(n) {
12325
12325
  T.id >= o && (G += 4);
12326
12326
  T.next();
12327
12327
  }
12328
- P = J, w += M, g += G;
12328
+ P = J, w += q, g += G;
12329
12329
  }
12330
12330
  return ($ < 0 || w == R) && (X.size = w, X.start = P, X.skip = g), X.size > 4 ? X : void 0;
12331
12331
  }
@@ -12334,8 +12334,8 @@ function t1(n) {
12334
12334
  if (l.next(), Z >= 0 && w < o) {
12335
12335
  let X = T;
12336
12336
  if (Z > 4) {
12337
- let q = l.pos - (Z - 4);
12338
- for (; l.pos > q; )
12337
+ let M = l.pos - (Z - 4);
12338
+ for (; l.pos > M; )
12339
12339
  T = O(R, $, T);
12340
12340
  }
12341
12341
  $[--T] = X, $[--T] = g - R, $[--T] = P - R, $[--T] = w;
@@ -23385,8 +23385,8 @@ function Is() {
23385
23385
  var w = "", P = this.__patterns.xml.read_match();
23386
23386
  if (P) {
23387
23387
  for (var g = P[2].replace(/^{\s+/, "{").replace(/\s+}$/, "}"), Z = g.indexOf("{") === 0, X = 0; P; ) {
23388
- var q = !!P[1], M = P[2], z = !!P[P.length - 1] || M.slice(0, 8) === "![CDATA[";
23389
- if (!z && (M === g || Z && M.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (q ? --X : ++X), w += P[0], X <= 0)
23388
+ var M = !!P[1], q = P[2], z = !!P[P.length - 1] || q.slice(0, 8) === "![CDATA[";
23389
+ if (!z && (q === g || Z && q.replace(/^{\s+/, "{").replace(/\s+}$/, "}")) && (M ? --X : ++X), w += P[0], X <= 0)
23390
23390
  break;
23391
23391
  P = this.__patterns.xml.read_match();
23392
23392
  }
@@ -23487,15 +23487,15 @@ function RP() {
23487
23487
  }
23488
23488
  function $(g, Z) {
23489
23489
  for (var X = 0; X < g.length; X++) {
23490
- var q = g[X].trim();
23491
- if (q.charAt(0) !== Z)
23490
+ var M = g[X].trim();
23491
+ if (M.charAt(0) !== Z)
23492
23492
  return !1;
23493
23493
  }
23494
23494
  return !0;
23495
23495
  }
23496
23496
  function T(g, Z) {
23497
- for (var X = 0, q = g.length, M; X < q; X++)
23498
- if (M = g[X], M && M.indexOf(Z) !== 0)
23497
+ for (var X = 0, M = g.length, q; X < M; X++)
23498
+ if (q = g[X], q && q.indexOf(Z) !== 0)
23499
23499
  return !1;
23500
23500
  return !0;
23501
23501
  }
@@ -23505,7 +23505,7 @@ function RP() {
23505
23505
  w.prototype.create_flags = function(g, Z) {
23506
23506
  var X = 0;
23507
23507
  g && (X = g.indentation_level, !this._output.just_added_newline() && g.line_indent_level > X && (X = g.line_indent_level));
23508
- var q = {
23508
+ var M = {
23509
23509
  mode: Z,
23510
23510
  parent: g,
23511
23511
  last_token: g ? g.last_token : new e(l.START_BLOCK, ""),
@@ -23537,7 +23537,7 @@ function RP() {
23537
23537
  start_line_index: this._output.get_line_number(),
23538
23538
  ternary_depth: 0
23539
23539
  };
23540
- return q;
23540
+ return M;
23541
23541
  }, w.prototype._reset = function(g) {
23542
23542
  var Z = g.match(/^[\t ]*/)[0];
23543
23543
  this._last_last_text = "", this._output = new n(this._options, Z), this._output.raw = this._options.test_output_raw, this._flag_store = [], this.set_mode(O.BlockStatement);
@@ -23549,17 +23549,17 @@ function RP() {
23549
23549
  var g, Z = this._reset(this._source_text), X = this._options.eol;
23550
23550
  this._options.eol === "auto" && (X = `
23551
23551
  `, Z && t.lineBreak.test(Z || "") && (X = Z.match(t.lineBreak)[0]));
23552
- for (var q = this._tokens.next(); q; )
23553
- this.handle_token(q), this._last_last_text = this._flags.last_token.text, this._flags.last_token = q, q = this._tokens.next();
23552
+ for (var M = this._tokens.next(); M; )
23553
+ this.handle_token(M), this._last_last_text = this._flags.last_token.text, this._flags.last_token = M, M = this._tokens.next();
23554
23554
  return g = this._output.get_code(X), g;
23555
23555
  }, w.prototype.handle_token = function(g, Z) {
23556
23556
  g.type === l.START_EXPR ? this.handle_start_expr(g) : g.type === l.END_EXPR ? this.handle_end_expr(g) : g.type === l.START_BLOCK ? this.handle_start_block(g) : g.type === l.END_BLOCK ? this.handle_end_block(g) : g.type === l.WORD ? this.handle_word(g) : g.type === l.RESERVED ? this.handle_word(g) : g.type === l.SEMICOLON ? this.handle_semicolon(g) : g.type === l.STRING ? this.handle_string(g) : g.type === l.EQUALS ? this.handle_equals(g) : g.type === l.OPERATOR ? this.handle_operator(g) : g.type === l.COMMA ? this.handle_comma(g) : g.type === l.BLOCK_COMMENT ? this.handle_block_comment(g, Z) : g.type === l.COMMENT ? this.handle_comment(g, Z) : g.type === l.DOT ? this.handle_dot(g) : g.type === l.EOF ? this.handle_eof(g) : g.type === l.UNKNOWN ? this.handle_unknown(g, Z) : this.handle_unknown(g, Z);
23557
23557
  }, w.prototype.handle_whitespace_and_comments = function(g, Z) {
23558
- var X = g.newlines, q = this._options.keep_array_indentation && k(this._flags.mode);
23558
+ var X = g.newlines, M = this._options.keep_array_indentation && k(this._flags.mode);
23559
23559
  if (g.comments_before)
23560
- for (var M = g.comments_before.next(); M; )
23561
- this.handle_whitespace_and_comments(M, Z), this.handle_token(M, Z), M = g.comments_before.next();
23562
- if (q)
23560
+ for (var q = g.comments_before.next(); q; )
23561
+ this.handle_whitespace_and_comments(q, Z), this.handle_token(q, Z), q = g.comments_before.next();
23562
+ if (M)
23563
23563
  for (var z = 0; z < X; z += 1)
23564
23564
  this.print_newline(z > 0, Z);
23565
23565
  else if (this._options.max_preserve_newlines && X > this._options.max_preserve_newlines && (X = this._options.max_preserve_newlines), this._options.preserve_newlines && X > 1) {
@@ -23571,10 +23571,10 @@ function RP() {
23571
23571
  var P = ["async", "break", "continue", "return", "throw", "yield"];
23572
23572
  return w.prototype.allow_wrap_or_preserved_newline = function(g, Z) {
23573
23573
  if (Z = Z === void 0 ? !1 : Z, !this._output.just_added_newline()) {
23574
- var X = this._options.preserve_newlines && g.newlines || Z, q = a(this._flags.last_token.text, o) || a(g.text, o);
23575
- if (q) {
23576
- var M = a(this._flags.last_token.text, o) && a(this._options.operator_position, m) || a(g.text, o);
23577
- X = X && M;
23574
+ var X = this._options.preserve_newlines && g.newlines || Z, M = a(this._flags.last_token.text, o) || a(g.text, o);
23575
+ if (M) {
23576
+ var q = a(this._flags.last_token.text, o) && a(this._options.operator_position, m) || a(g.text, o);
23577
+ X = X && q;
23578
23578
  }
23579
23579
  if (X)
23580
23580
  this.print_newline(!1, !0);
@@ -23635,8 +23635,8 @@ function RP() {
23635
23635
  this._output.space_before_token = !1;
23636
23636
  var X = this._tokens.peek(-3);
23637
23637
  if (this._options.space_after_named_function && X) {
23638
- var q = this._tokens.peek(-4);
23639
- f(X, ["async", "function"]) || X.text === "*" && f(q, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === O.ObjectLiteral ? (X.text === "{" || X.text === "," || X.text === "*" && (q.text === "{" || q.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
23638
+ var M = this._tokens.peek(-4);
23639
+ f(X, ["async", "function"]) || X.text === "*" && f(M, ["async", "function"]) ? this._output.space_before_token = !0 : this._flags.mode === O.ObjectLiteral ? (X.text === "{" || X.text === "," || X.text === "*" && (M.text === "{" || M.text === ",")) && (this._output.space_before_token = !0) : this._flags.parent && this._flags.parent.class_start_block && (this._output.space_before_token = !0);
23640
23640
  }
23641
23641
  } else
23642
23642
  this.allow_wrap_or_preserved_newline(g);
@@ -23654,7 +23654,7 @@ function RP() {
23654
23654
  this.handle_whitespace_and_comments(g);
23655
23655
  var Z = this._tokens.peek(), X = this._tokens.peek(1);
23656
23656
  this._flags.last_word === "switch" && this._flags.last_token.type === l.END_EXPR ? (this.set_mode(O.BlockStatement), this._flags.in_case_statement = !0) : this._flags.case_body ? this.set_mode(O.BlockStatement) : X && (a(X.text, [":", ","]) && a(Z.type, [l.STRING, l.WORD, l.RESERVED]) || a(Z.text, ["get", "set", "..."]) && a(X.type, [l.WORD, l.RESERVED])) ? a(this._last_last_text, ["class", "interface"]) && !a(X.text, [":", ","]) ? this.set_mode(O.BlockStatement) : this.set_mode(O.ObjectLiteral) : this._flags.last_token.type === l.OPERATOR && this._flags.last_token.text === "=>" ? this.set_mode(O.BlockStatement) : a(this._flags.last_token.type, [l.EQUALS, l.START_EXPR, l.COMMA, l.OPERATOR]) || f(this._flags.last_token, ["return", "throw", "import", "default"]) ? this.set_mode(O.ObjectLiteral) : this.set_mode(O.BlockStatement), this._flags.last_token && f(this._flags.last_token.previous, ["class", "extends"]) && (this._flags.class_start_block = !0);
23657
- var q = !Z.comments_before && Z.text === "}", M = q && this._flags.last_word === "function" && this._flags.last_token.type === l.END_EXPR;
23657
+ var M = !Z.comments_before && Z.text === "}", q = M && this._flags.last_word === "function" && this._flags.last_token.type === l.END_EXPR;
23658
23658
  if (this._options.brace_preserve_inline) {
23659
23659
  var z = 0, G = null;
23660
23660
  this._flags.inline_frame = !0;
@@ -23665,7 +23665,7 @@ function RP() {
23665
23665
  }
23666
23666
  while (G.type !== l.EOF && !(G.type === l.END_BLOCK && G.opened === g));
23667
23667
  }
23668
- (this._options.brace_style === "expand" || this._options.brace_style === "none" && g.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== l.OPERATOR && (M || this._flags.last_token.type === l.EQUALS || f(this._flags.last_token, d) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (k(this._previous_flags.mode) && (this._flags.last_token.type === l.START_EXPR || this._flags.last_token.type === l.COMMA) && ((this._flags.last_token.type === l.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === l.COMMA || this._flags.last_token.type === l.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(g), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== l.OPERATOR && this._flags.last_token.type !== l.START_EXPR && (a(this._flags.last_token.type, [l.START_BLOCK, l.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(g), this.indent(), !q && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
23668
+ (this._options.brace_style === "expand" || this._options.brace_style === "none" && g.newlines) && !this._flags.inline_frame ? this._flags.last_token.type !== l.OPERATOR && (q || this._flags.last_token.type === l.EQUALS || f(this._flags.last_token, d) && this._flags.last_token.text !== "else") ? this._output.space_before_token = !0 : this.print_newline(!1, !0) : (k(this._previous_flags.mode) && (this._flags.last_token.type === l.START_EXPR || this._flags.last_token.type === l.COMMA) && ((this._flags.last_token.type === l.COMMA || this._options.space_in_paren) && (this._output.space_before_token = !0), (this._flags.last_token.type === l.COMMA || this._flags.last_token.type === l.START_EXPR && this._flags.inline_frame) && (this.allow_wrap_or_preserved_newline(g), this._previous_flags.multiline_frame = this._previous_flags.multiline_frame || this._flags.multiline_frame, this._flags.multiline_frame = !1)), this._flags.last_token.type !== l.OPERATOR && this._flags.last_token.type !== l.START_EXPR && (a(this._flags.last_token.type, [l.START_BLOCK, l.SEMICOLON]) && !this._flags.inline_frame ? this.print_newline() : this._output.space_before_token = !0)), this.print_token(g), this.indent(), !M && !(this._options.brace_preserve_inline && this._flags.inline_frame) && this.print_newline();
23669
23669
  }, w.prototype.handle_end_block = function(g) {
23670
23670
  for (this.handle_whitespace_and_comments(g); this._flags.mode === O.Statement; )
23671
23671
  this.restore_mode();
@@ -23713,8 +23713,8 @@ function RP() {
23713
23713
  this.print_newline();
23714
23714
  else {
23715
23715
  this._output.trim(!0);
23716
- var q = this._output.current_line;
23717
- q.last() !== "}" && this.print_newline(), this._output.space_before_token = !0;
23716
+ var M = this._output.current_line;
23717
+ M.last() !== "}" && this.print_newline(), this._output.space_before_token = !0;
23718
23718
  }
23719
23719
  else
23720
23720
  X === "NEWLINE" ? f(this._flags.last_token, d) ? this._output.space_before_token = !0 : this._flags.last_token.text === "declare" && f(g, ["var", "let", "const"]) ? this._output.space_before_token = !0 : this._flags.last_token.type !== l.END_EXPR ? (this._flags.last_token.type !== l.START_EXPR || !f(g, ["var", "let", "const"])) && this._flags.last_token.text !== ":" && (c(g, "if") && c(g.previous, "else") ? this._output.space_before_token = !0 : this.print_newline()) : f(g, r) && this._flags.last_token.text !== ")" && this.print_newline() : this._flags.multiline_frame && k(this._flags.mode) && this._flags.last_token.text === "," && this._last_last_text === "}" ? this.print_newline() : X === "SPACE" && (this._output.space_before_token = !0);
@@ -23733,8 +23733,8 @@ function RP() {
23733
23733
  }, w.prototype.handle_operator = function(g) {
23734
23734
  var Z = g.text === "*" && (f(this._flags.last_token, ["function", "yield"]) || a(this._flags.last_token.type, [l.START_BLOCK, l.COMMA, l.END_BLOCK, l.SEMICOLON])), X = a(g.text, ["-", "+"]) && (a(this._flags.last_token.type, [l.START_BLOCK, l.START_EXPR, l.EQUALS, l.OPERATOR]) || a(this._flags.last_token.text, r) || this._flags.last_token.text === ",");
23735
23735
  if (!this.start_of_statement(g)) {
23736
- var q = !Z;
23737
- this.handle_whitespace_and_comments(g, q);
23736
+ var M = !Z;
23737
+ this.handle_whitespace_and_comments(g, M);
23738
23738
  }
23739
23739
  if (g.text === "*" && this._flags.last_token.type === l.DOT) {
23740
23740
  this.print_token(g);
@@ -23752,35 +23752,35 @@ function RP() {
23752
23752
  this.print_token(g), this._flags.in_case = !1, this._flags.case_body = !0, this._tokens.peek().type !== l.START_BLOCK ? (this.indent(), this.print_newline(), this._flags.case_block = !1) : (this._flags.case_block = !0, this._output.space_before_token = !0);
23753
23753
  return;
23754
23754
  }
23755
- var M = !0, z = !0, G = !1;
23756
- if (g.text === ":" ? this._flags.ternary_depth === 0 ? M = !1 : (this._flags.ternary_depth -= 1, G = !0) : g.text === "?" && (this._flags.ternary_depth += 1), !X && !Z && this._options.preserve_newlines && a(g.text, o)) {
23757
- var J = g.text === ":", re = J && G, A = J && !G;
23755
+ var q = !0, z = !0, G = !1;
23756
+ if (g.text === ":" ? this._flags.ternary_depth === 0 ? q = !1 : (this._flags.ternary_depth -= 1, G = !0) : g.text === "?" && (this._flags.ternary_depth += 1), !X && !Z && this._options.preserve_newlines && a(g.text, o)) {
23757
+ var J = g.text === ":", se = J && G, A = J && !G;
23758
23758
  switch (this._options.operator_position) {
23759
23759
  case _.before_newline:
23760
- this._output.space_before_token = !A, this.print_token(g), (!J || re) && this.allow_wrap_or_preserved_newline(g), this._output.space_before_token = !0;
23760
+ this._output.space_before_token = !A, this.print_token(g), (!J || se) && this.allow_wrap_or_preserved_newline(g), this._output.space_before_token = !0;
23761
23761
  return;
23762
23762
  case _.after_newline:
23763
- this._output.space_before_token = !0, !J || re ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(g) : this._output.space_before_token = !1, this.print_token(g), this._output.space_before_token = !0;
23763
+ this._output.space_before_token = !0, !J || se ? this._tokens.peek().newlines ? this.print_newline(!1, !0) : this.allow_wrap_or_preserved_newline(g) : this._output.space_before_token = !1, this.print_token(g), this._output.space_before_token = !0;
23764
23764
  return;
23765
23765
  case _.preserve_newline:
23766
- A || this.allow_wrap_or_preserved_newline(g), M = !(this._output.just_added_newline() || A), this._output.space_before_token = M, this.print_token(g), this._output.space_before_token = !0;
23766
+ A || this.allow_wrap_or_preserved_newline(g), q = !(this._output.just_added_newline() || A), this._output.space_before_token = q, this.print_token(g), this._output.space_before_token = !0;
23767
23767
  return;
23768
23768
  }
23769
23769
  }
23770
23770
  if (Z) {
23771
- this.allow_wrap_or_preserved_newline(g), M = !1;
23771
+ this.allow_wrap_or_preserved_newline(g), q = !1;
23772
23772
  var v = this._tokens.peek();
23773
23773
  z = v && a(v.type, [l.WORD, l.RESERVED]);
23774
23774
  } else if (g.text === "...")
23775
- this.allow_wrap_or_preserved_newline(g), M = this._flags.last_token.type === l.START_BLOCK, z = !1;
23775
+ this.allow_wrap_or_preserved_newline(g), q = this._flags.last_token.type === l.START_BLOCK, z = !1;
23776
23776
  else if (a(g.text, ["--", "++", "!", "~"]) || X) {
23777
- if ((this._flags.last_token.type === l.COMMA || this._flags.last_token.type === l.START_EXPR) && this.allow_wrap_or_preserved_newline(g), M = !1, z = !1, g.newlines && (g.text === "--" || g.text === "++" || g.text === "~")) {
23777
+ if ((this._flags.last_token.type === l.COMMA || this._flags.last_token.type === l.START_EXPR) && this.allow_wrap_or_preserved_newline(g), q = !1, z = !1, g.newlines && (g.text === "--" || g.text === "++" || g.text === "~")) {
23778
23778
  var E = f(this._flags.last_token, d) && g.newlines;
23779
23779
  E && (this._previous_flags.if_block || this._previous_flags.else_block) && this.restore_mode(), this.print_newline(E, !0);
23780
23780
  }
23781
- this._flags.last_token.text === ";" && R(this._flags.mode) && (M = !0), this._flags.last_token.type === l.RESERVED ? M = !0 : this._flags.last_token.type === l.END_EXPR ? M = !(this._flags.last_token.text === "]" && (g.text === "--" || g.text === "++")) : this._flags.last_token.type === l.OPERATOR && (M = a(g.text, ["--", "-", "++", "+"]) && a(this._flags.last_token.text, ["--", "-", "++", "+"]), a(g.text, ["+", "-"]) && a(this._flags.last_token.text, ["--", "++"]) && (z = !0)), (this._flags.mode === O.BlockStatement && !this._flags.inline_frame || this._flags.mode === O.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23781
+ this._flags.last_token.text === ";" && R(this._flags.mode) && (q = !0), this._flags.last_token.type === l.RESERVED ? q = !0 : this._flags.last_token.type === l.END_EXPR ? q = !(this._flags.last_token.text === "]" && (g.text === "--" || g.text === "++")) : this._flags.last_token.type === l.OPERATOR && (q = a(g.text, ["--", "-", "++", "+"]) && a(this._flags.last_token.text, ["--", "-", "++", "+"]), a(g.text, ["+", "-"]) && a(this._flags.last_token.text, ["--", "++"]) && (z = !0)), (this._flags.mode === O.BlockStatement && !this._flags.inline_frame || this._flags.mode === O.Statement) && (this._flags.last_token.text === "{" || this._flags.last_token.text === ";") && this.print_newline();
23782
23782
  }
23783
- this._output.space_before_token = this._output.space_before_token || M, this.print_token(g), this._output.space_before_token = z;
23783
+ this._output.space_before_token = this._output.space_before_token || q, this.print_token(g), this._output.space_before_token = z;
23784
23784
  }, w.prototype.handle_block_comment = function(g, Z) {
23785
23785
  if (this._output.raw) {
23786
23786
  this._output.add_raw_token(g), g.directives && g.directives.preserve === "end" && (this._output.raw = this._options.test_output_raw);
@@ -23796,10 +23796,10 @@ function RP() {
23796
23796
  } else
23797
23797
  this.print_block_commment(g, Z);
23798
23798
  }, w.prototype.print_block_commment = function(g, Z) {
23799
- var X = C(g.text), q, M = !1, z = !1, G = g.whitespace_before, J = G.length;
23799
+ var X = C(g.text), M, q = !1, z = !1, G = g.whitespace_before, J = G.length;
23800
23800
  if (this.print_newline(!1, Z), this.print_token_line_indentation(g), this._output.add_token(X[0]), this.print_newline(!1, Z), X.length > 1) {
23801
- for (X = X.slice(1), M = $(X, "*"), z = T(X, G), M && (this._flags.alignment = 1), q = 0; q < X.length; q++)
23802
- M ? (this.print_token_line_indentation(g), this._output.add_token(u(X[q]))) : z && X[q] ? (this.print_token_line_indentation(g), this._output.add_token(X[q].substring(J))) : (this._output.current_line.set_indent(-1), this._output.add_token(X[q])), this.print_newline(!1, Z);
23801
+ for (X = X.slice(1), q = $(X, "*"), z = T(X, G), q && (this._flags.alignment = 1), M = 0; M < X.length; M++)
23802
+ q ? (this.print_token_line_indentation(g), this._output.add_token(u(X[M]))) : z && X[M] ? (this.print_token_line_indentation(g), this._output.add_token(X[M].substring(J))) : (this._output.current_line.set_indent(-1), this._output.add_token(X[M])), this.print_newline(!1, Z);
23803
23803
  this._flags.alignment = 0;
23804
23804
  }
23805
23805
  }, w.prototype.handle_comment = function(g, Z) {
@@ -23937,8 +23937,8 @@ function ZP() {
23937
23937
  this.print_string(this._ch + this.eatString("}"));
23938
23938
  else {
23939
23939
  this.print_string(this._ch);
23940
- var q = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
23941
- q.match(/[ :]$/) && (q = this.eatString(": ").replace(/\s+$/, ""), this.print_string(q), this._output.space_before_token = !0), _ === 0 && q.indexOf(":") !== -1 ? (O = !0, this.indent()) : q in this.NESTED_AT_RULE ? (this._nestedLevel += 1, q in this.CONDITIONAL_GROUP_RULE && (y = !0)) : _ === 0 && !O && (C = !0);
23940
+ var M = this._input.peekUntilAfter(/[: ,;{}()[\]\/='"]/g);
23941
+ M.match(/[ :]$/) && (M = this.eatString(": ").replace(/\s+$/, ""), this.print_string(M), this._output.space_before_token = !0), _ === 0 && M.indexOf(":") !== -1 ? (O = !0, this.indent()) : M in this.NESTED_AT_RULE ? (this._nestedLevel += 1, M in this.CONDITIONAL_GROUP_RULE && (y = !0)) : _ === 0 && !O && (C = !0);
23942
23942
  }
23943
23943
  else if (this._ch === "#" && this._input.peek() === "{")
23944
23944
  this.preserveSingleSpace(w), this.print_string(this._ch + this.eatString("}"));
@@ -23947,8 +23947,8 @@ function ZP() {
23947
23947
  else if (this._ch === "}")
23948
23948
  this.outdent(), this._output.add_new_line(), P === "{" && this._output.trim(!0), O && (this.outdent(), O = !1), this.print_string(this._ch), m = !1, this._nestedLevel && this._nestedLevel--, this.eatWhitespace(!0), this._output.add_new_line(), this._options.newline_between_rules && !this._output.just_added_blankline() && this._input.peek() !== "}" && this._output.add_new_line(!0), this._input.peek() === ")" && (this._output.trim(!0), this._options.brace_style === "expand" && this._output.add_new_line(!0));
23949
23949
  else if (this._ch === ":") {
23950
- for (var M = 0; M < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; M++)
23951
- if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[M])) {
23950
+ for (var q = 0; q < this.NON_SEMICOLON_NEWLINE_PROPERTY.length; q++)
23951
+ if (this._input.lookBack(this.NON_SEMICOLON_NEWLINE_PROPERTY[q])) {
23952
23952
  $ = !0;
23953
23953
  break;
23954
23954
  }
@@ -23984,8 +23984,8 @@ function ZP() {
23984
23984
  this.preserveSingleSpace(J || w), this.print_string(this._ch), !this._output.just_added_newline() && this._input.peek() === `
23985
23985
  ` && $ && this._output.add_new_line();
23986
23986
  }
23987
- var re = this._output.get_code(d);
23988
- return re;
23987
+ var se = this._output.get_code(d);
23988
+ return se;
23989
23989
  }, cl.Beautifier = c, cl;
23990
23990
  }
23991
23991
  var vf;
@@ -24384,8 +24384,8 @@ function VP() {
24384
24384
  var C = this;
24385
24385
  if (O.text !== "") {
24386
24386
  var k = O.text, R, $ = 1, T = "", w = "";
24387
- y.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? R = this._js_beautify : y.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? R = this._css_beautify : y.custom_beautifier_name === "html" && (R = function(M, z) {
24388
- var G = new f(M, z, C._js_beautify, C._css_beautify);
24387
+ y.custom_beautifier_name === "javascript" && typeof this._js_beautify == "function" ? R = this._js_beautify : y.custom_beautifier_name === "css" && typeof this._css_beautify == "function" ? R = this._css_beautify : y.custom_beautifier_name === "html" && (R = function(q, z) {
24388
+ var G = new f(q, z, C._js_beautify, C._css_beautify);
24389
24389
  return G.beautify();
24390
24390
  }), this._options.indent_scripts === "keep" ? $ = 0 : this._options.indent_scripts === "separate" && ($ = -m.indent_level);
24391
24391
  var P = m.get_full_indent($);
@@ -24409,9 +24409,9 @@ function VP() {
24409
24409
  var X = new Z();
24410
24410
  k = R(P + k, X);
24411
24411
  } else {
24412
- var q = O.whitespace_before;
24413
- q && (k = k.replace(new RegExp(`
24414
- (` + q + ")?", "g"), `
24412
+ var M = O.whitespace_before;
24413
+ M && (k = k.replace(new RegExp(`
24414
+ (` + M + ")?", "g"), `
24415
24415
  `)), k = P + k.replace(/\n/g, `
24416
24416
  ` + P);
24417
24417
  }
@@ -24909,7 +24909,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
24909
24909
  });
24910
24910
  }));
24911
24911
  }
24912
- function q() {
24912
+ function M() {
24913
24913
  var A, v;
24914
24914
  if (a.value.length > 0) {
24915
24915
  let E = Math.min(...a.value);
@@ -24924,7 +24924,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
24924
24924
  })), X();
24925
24925
  }
24926
24926
  }
24927
- function M() {
24927
+ function q() {
24928
24928
  a.value.length > 0 && (a.value.forEach((A) => {
24929
24929
  var v, E;
24930
24930
  (v = t.value) == null || v.colConfig.splice(A, 1), (E = t.value) == null || E.config.forEach((Y) => {
@@ -24970,7 +24970,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
24970
24970
  (v = t.value) == null || v.rowConfig.splice(A, 1), (E = t.value) == null || E.config.splice(A, 1);
24971
24971
  }), s.value = [], X());
24972
24972
  }
24973
- function re() {
24973
+ function se() {
24974
24974
  var A, v;
24975
24975
  if (u.value.length > 0) {
24976
24976
  let E = Math.max(...u.value) + 1;
@@ -24989,8 +24989,8 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
24989
24989
  }
24990
24990
  return (A, v) => {
24991
24991
  const E = ce("el-button-group"), Y = ce("el-col"), W = ce("el-option"), I = ce("el-select"), ee = ce("el-input-number");
24992
- return U(), K(se, null, [
24993
- b(s) && b(s).length ? (U(), K(se, { key: 0 }, [
24992
+ return U(), K(re, null, [
24993
+ b(s) && b(s).length ? (U(), K(re, { key: 0 }, [
24994
24994
  UP,
24995
24995
  Q(E, { size: "small" }, {
24996
24996
  default: x(() => [
@@ -25103,7 +25103,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25103
25103
  ]),
25104
25104
  _: 1
25105
25105
  }),
25106
- r.value && o.value ? (U(), K(se, { key: 0 }, [
25106
+ r.value && o.value ? (U(), K(re, { key: 0 }, [
25107
25107
  Qt(Q(Y, { span: 24 }, {
25108
25108
  default: x(() => [
25109
25109
  Q(b(ue), { label: "文本" }, {
@@ -25135,7 +25135,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25135
25135
  onInput: v[5] || (v[5] = (V) => P(V, "cell", "data"))
25136
25136
  }, {
25137
25137
  default: x(() => [
25138
- (U(!0), K(se, null, Fe(b(Z), (V) => (U(), oe(W, {
25138
+ (U(!0), K(re, null, Fe(b(Z), (V) => (U(), oe(W, {
25139
25139
  key: V.columnName,
25140
25140
  label: V.name,
25141
25141
  value: V.columnName
@@ -25214,7 +25214,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25214
25214
  [bt, o.value.type === b(ie).FIELD && _.format !== b(Re).STRING]
25215
25215
  ])
25216
25216
  ], 64)) : ae("", !0),
25217
- b(m) ? (U(), K(se, { key: 1 }, [
25217
+ b(m) ? (U(), K(re, { key: 1 }, [
25218
25218
  Q(Y, { span: 8 }, {
25219
25219
  default: x(() => [
25220
25220
  Q(b(ue), { label: "字体颜色" }, {
@@ -25541,7 +25541,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25541
25541
  ]),
25542
25542
  _: 1
25543
25543
  }),
25544
- _.formatType ? (U(), K(se, { key: 0 }, [
25544
+ _.formatType ? (U(), K(re, { key: 0 }, [
25545
25545
  Qt(Q(Y, { span: 12 }, {
25546
25546
  default: x(() => [
25547
25547
  Q(b(ue), { label: "小数位数" }, {
@@ -25624,7 +25624,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25624
25624
  }, 512), [
25625
25625
  [bt, _.format === "currency"]
25626
25626
  ]),
25627
- _.format === b(Re).SCIENTIFIC ? (U(), K(se, { key: 0 }, [
25627
+ _.format === b(Re).SCIENTIFIC ? (U(), K(re, { key: 0 }, [
25628
25628
  Q(Y, { span: 24 }, {
25629
25629
  default: x(() => [
25630
25630
  Q(b(ue), { label: "指数符号" }, {
@@ -25737,7 +25737,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25737
25737
  })) : ae("", !0)
25738
25738
  ], 64)) : ae("", !0)
25739
25739
  ], 64)) : ae("", !0),
25740
- u.value && u.value.length > 0 && c.value ? (U(), K(se, { key: 1 }, [
25740
+ u.value && u.value.length > 0 && c.value ? (U(), K(re, { key: 1 }, [
25741
25741
  D("div", aw, [
25742
25742
  hw,
25743
25743
  Q(E, { size: "small" }, {
@@ -25762,7 +25762,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25762
25762
  _: 1
25763
25763
  }),
25764
25764
  Q(b(we), {
25765
- onClick: re,
25765
+ onClick: se,
25766
25766
  plain: ""
25767
25767
  }, {
25768
25768
  default: x(() => [
@@ -25813,7 +25813,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25813
25813
  ]),
25814
25814
  _: 1
25815
25815
  }),
25816
- h.value && c.value ? (U(), K(se, { key: 0 }, [
25816
+ h.value && c.value ? (U(), K(re, { key: 0 }, [
25817
25817
  Q(Y, { span: 24 }, {
25818
25818
  default: x(() => [
25819
25819
  Q(b(ue), { label: "数据源" }, {
@@ -25826,7 +25826,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25826
25826
  filterable: ""
25827
25827
  }, {
25828
25828
  default: x(() => [
25829
- (U(!0), K(se, null, Fe(b(g), (V) => (U(), oe(W, {
25829
+ (U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
25830
25830
  key: V.key,
25831
25831
  label: V.name,
25832
25832
  value: V.key
@@ -25876,13 +25876,13 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25876
25876
  }))
25877
25877
  ], 64)) : ae("", !0)
25878
25878
  ], 64)) : ae("", !0),
25879
- a.value && a.value.length > 0 ? (U(), K(se, { key: 2 }, [
25879
+ a.value && a.value.length > 0 ? (U(), K(re, { key: 2 }, [
25880
25880
  D("div", uw, [
25881
25881
  cw,
25882
25882
  Q(E, { size: "small" }, {
25883
25883
  default: x(() => [
25884
25884
  Q(b(we), {
25885
- onClick: q,
25885
+ onClick: M,
25886
25886
  plain: ""
25887
25887
  }, {
25888
25888
  default: x(() => [
@@ -25892,7 +25892,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25892
25892
  }),
25893
25893
  Q(b(we), {
25894
25894
  type: "danger",
25895
- onClick: M,
25895
+ onClick: q,
25896
25896
  plain: ""
25897
25897
  }, {
25898
25898
  default: x(() => [
@@ -25951,7 +25951,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25951
25951
  ]),
25952
25952
  _: 1
25953
25953
  }),
25954
- f.value && d.value ? (U(), K(se, { key: 0 }, [
25954
+ f.value && d.value ? (U(), K(re, { key: 0 }, [
25955
25955
  Q(Y, { span: 24 }, {
25956
25956
  default: x(() => [
25957
25957
  Q(b(ue), { label: "数据源" }, {
@@ -25963,7 +25963,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
25963
25963
  clearable: ""
25964
25964
  }, {
25965
25965
  default: x(() => [
25966
- (U(!0), K(se, null, Fe(b(g), (V) => (U(), oe(W, {
25966
+ (U(!0), K(re, null, Fe(b(g), (V) => (U(), oe(W, {
25967
25967
  key: V.key,
25968
25968
  label: V.name,
25969
25969
  value: V.key
@@ -26039,7 +26039,7 @@ const UP = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
26039
26039
  }
26040
26040
  return (o, l) => {
26041
26041
  const a = ce("el-row"), u = ce("el-tab-pane"), h = ce("el-switch"), c = ce("el-form-item"), f = ce("el-col"), d = ce("el-input");
26042
- return U(), K(se, null, [
26042
+ return U(), K(re, null, [
26043
26043
  Q(u, {
26044
26044
  label: "单元格/参数",
26045
26045
  name: "cell"
@@ -26369,7 +26369,7 @@ const gw = function(n, e) {
26369
26369
  }
26370
26370
  return (d, p) => {
26371
26371
  const _ = ce("el-color-picker"), m = ce("el-input"), O = ce("el-form-item"), y = ce("el-radio-button"), C = ce("el-radio-group"), k = ce("el-input-number"), R = ce("el-switch"), $ = ce("el-tooltip"), T = ce("el-cascader"), w = ce("el-tab-pane");
26372
- return U(), K(se, null, [
26372
+ return U(), K(re, null, [
26373
26373
  b(t) ? (U(), oe(w, {
26374
26374
  key: 0,
26375
26375
  name: "chart",
@@ -26403,7 +26403,7 @@ const gw = function(n, e) {
26403
26403
  ]),
26404
26404
  _: 1
26405
26405
  }),
26406
- b(s) ? (U(), K(se, { key: 0 }, [
26406
+ b(s) ? (U(), K(re, { key: 0 }, [
26407
26407
  Q(O, { label: "X轴轴坐标名称" }, {
26408
26408
  default: x(() => [
26409
26409
  Q(m, {
@@ -26493,7 +26493,7 @@ const gw = function(n, e) {
26493
26493
  ]),
26494
26494
  _: 1
26495
26495
  }),
26496
- b(t).type == "line" ? (U(), K(se, { key: 1 }, [
26496
+ b(t).type == "line" ? (U(), K(re, { key: 1 }, [
26497
26497
  Q(O, { label: "平滑" }, {
26498
26498
  default: x(() => [
26499
26499
  Q(R, {
@@ -26680,7 +26680,7 @@ const gw = function(n, e) {
26680
26680
  ]),
26681
26681
  _: 1
26682
26682
  })) : ae("", !0),
26683
- b(t).isSuspend ? (U(), K(se, { key: 6 }, [
26683
+ b(t).isSuspend ? (U(), K(re, { key: 6 }, [
26684
26684
  Qw,
26685
26685
  Q(O, null, {
26686
26686
  label: x(() => [
@@ -26861,7 +26861,7 @@ const gw = function(n, e) {
26861
26861
  "onUpdate:modelValue": o[0] || (o[0] = (l) => i.value = l)
26862
26862
  }, {
26863
26863
  default: x(() => [
26864
- b(t) !== null ? (U(), K(se, { key: 0 }, [
26864
+ b(t) !== null ? (U(), K(re, { key: 0 }, [
26865
26865
  b(s) ? (U(), oe(pw, { key: 0 })) : (U(), oe(vw, { key: 1 }))
26866
26866
  ], 64)) : ae("", !0)
26867
26867
  ]),
@@ -26884,27 +26884,30 @@ const gw = function(n, e) {
26884
26884
  key: 1,
26885
26885
  class: "data-source-list"
26886
26886
  }, Aw = { class: "data-source-item" }, Vw = { class: "data-source-name" }, Yw = { class: "data-source-name-context" }, Ew = { class: "data-source-columns" }, qw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26887
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "是否分页"),
26888
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "当数据量很大时,则可以启用分页,对数据进行分页展示")
26887
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "转为对象"),
26888
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "将列表数据转为对象方便固定报表使用")
26889
26889
  ], -1), Mw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26890
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "默认分页页数"),
26891
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "当数据分页加载时,每页数据量设置")
26890
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "是否分页"),
26891
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "对数据进行分页展示")
26892
26892
  ], -1), Dw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26893
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "分页下拉数据"),
26894
- /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "分页每页数据量设置")
26895
- ], -1), Lw = { class: "data-pagesizes" }, Uw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26893
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "分页数量"),
26894
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "默认每页数据量")
26895
+ ], -1), Lw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26896
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "可选分页数据"),
26897
+ /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" }, "设置可选分页数据量")
26898
+ ], -1), Uw = { class: "data-pagesizes" }, zw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26896
26899
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "数据前置处理函数"),
26897
26900
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" })
26898
- ], -1), zw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26901
+ ], -1), Ww = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26899
26902
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "X轴数据处理"),
26900
26903
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" })
26901
- ], -1), Ww = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26904
+ ], -1), Bw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26902
26905
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "Y轴数据处理"),
26903
26906
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" })
26904
- ], -1), Bw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26907
+ ], -1), Nw = /* @__PURE__ */ D("div", { class: "custom-from-item-label" }, [
26905
26908
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-context" }, "数据处理"),
26906
26909
  /* @__PURE__ */ D("div", { class: "custom-from-item-label-tips" })
26907
- ], -1), Nw = /* @__PURE__ */ D("div", { class: "title-context" }, "数据源设置", -1), Iw = /* @__PURE__ */ gt({
26910
+ ], -1), Iw = /* @__PURE__ */ D("div", { class: "title-context" }, "数据源设置", -1), Gw = /* @__PURE__ */ gt({
26908
26911
  __name: "dataOption",
26909
26912
  setup(n) {
26910
26913
  const e = Lt(), t = he(!1), { active: i } = Dt(e), s = be(() => i.value ? Yf.includes(i.value.type) : !1), r = be(() => i.value ? i.value.data.source : []), o = he([]);
@@ -26940,11 +26943,11 @@ const gw = function(n, e) {
26940
26943
  if (P && P.length && i.value) {
26941
26944
  let g = [];
26942
26945
  for (let Z = 0; Z < P.length; Z++) {
26943
- const { id: X, url: q, name: M } = P[Z], z = await ng(X);
26946
+ const { id: X, url: M, name: q } = P[Z], z = await ng(X);
26944
26947
  g.push({
26945
26948
  key: X,
26946
- url: q,
26947
- name: M,
26949
+ url: M,
26950
+ name: q,
26948
26951
  columns: z
26949
26952
  });
26950
26953
  }
@@ -26972,8 +26975,8 @@ const gw = function(n, e) {
26972
26975
  }
26973
26976
  return cn(() => {
26974
26977
  }), (w, P) => {
26975
- const g = ce("el-input"), Z = ce("el-checkbox"), X = ce("el-checkbox-group"), q = ce("el-tag"), M = ce("el-col"), z = ce("el-switch"), G = ce("el-form-item"), J = ce("el-form"), re = ce("el-row"), A = ce("el-text");
26976
- return U(), K(se, null, [
26978
+ const g = ce("el-input"), Z = ce("el-checkbox"), X = ce("el-checkbox-group"), M = ce("el-tag"), q = ce("el-col"), z = ce("el-switch"), G = ce("el-form-item"), J = ce("el-row"), se = ce("el-form"), A = ce("el-text");
26979
+ return U(), K(re, null, [
26977
26980
  D("div", $w, [
26978
26981
  Pw,
26979
26982
  Q(b(we), {
@@ -26989,7 +26992,7 @@ const gw = function(n, e) {
26989
26992
  ]),
26990
26993
  Q(b(Wm), { class: "data-columns" }, {
26991
26994
  default: x(() => [
26992
- (U(!0), K(se, null, Fe(b(r), (v, E) => (U(), oe(b(Bm), {
26995
+ (U(!0), K(re, null, Fe(b(r), (v, E) => (U(), oe(b(Bm), {
26993
26996
  key: E,
26994
26997
  name: v.url
26995
26998
  }, {
@@ -26997,7 +27000,7 @@ const gw = function(n, e) {
26997
27000
  B(Me(v.name) + " (" + Me(v.url) + ")", 1)
26998
27001
  ]),
26999
27002
  default: x(() => [
27000
- (U(!0), K(se, null, Fe(v.columns, (Y, W) => (U(), K("div", {
27003
+ (U(!0), K(re, null, Fe(v.columns, (Y, W) => (U(), K("div", {
27001
27004
  class: "data-column report-drag-source",
27002
27005
  "data-drag": "column",
27003
27006
  "data-index": E,
@@ -27005,9 +27008,9 @@ const gw = function(n, e) {
27005
27008
  draggable: "true"
27006
27009
  }, [
27007
27010
  D("div", null, [
27008
- Y.name === Y.columnName ? (U(), K(se, { key: 0 }, [
27011
+ Y.name === Y.columnName ? (U(), K(re, { key: 0 }, [
27009
27012
  B(Me(Y.name), 1)
27010
- ], 64)) : (U(), K(se, { key: 1 }, [
27013
+ ], 64)) : (U(), K(re, { key: 1 }, [
27011
27014
  B(Me(Y.name) + " (" + Me(Y.columnName) + ")", 1)
27012
27015
  ], 64))
27013
27016
  ])
@@ -27024,10 +27027,10 @@ const gw = function(n, e) {
27024
27027
  class: "statement-data-source-dialog",
27025
27028
  "show-close": !1,
27026
27029
  modelValue: t.value,
27027
- "onUpdate:modelValue": P[10] || (P[10] = (v) => t.value = v)
27030
+ "onUpdate:modelValue": P[11] || (P[11] = (v) => t.value = v)
27028
27031
  }, {
27029
27032
  header: x(() => [
27030
- Nw,
27033
+ Iw,
27031
27034
  Q(A, { type: "info" }, {
27032
27035
  default: x(() => [
27033
27036
  B("数据处理函数中:")
@@ -27050,7 +27053,7 @@ const gw = function(n, e) {
27050
27053
  Q(b(we), {
27051
27054
  type: "warning",
27052
27055
  plain: "",
27053
- onClick: P[9] || (P[9] = (v) => t.value = !1)
27056
+ onClick: P[10] || (P[10] = (v) => t.value = !1)
27054
27057
  }, {
27055
27058
  default: x(() => [
27056
27059
  B(" 关闭 ")
@@ -27060,12 +27063,12 @@ const gw = function(n, e) {
27060
27063
  ]),
27061
27064
  default: x(() => [
27062
27065
  b(i) ? (U(), K("div", kw, [
27063
- Q(re, { class: "process-data" }, {
27066
+ Q(J, { class: "process-data" }, {
27064
27067
  default: x(() => [
27065
- Q(M, { span: 8 }, {
27068
+ Q(q, { span: 8 }, {
27066
27069
  default: x(() => [
27067
27070
  D("div", Tw, [
27068
- a.value ? (U(), K(se, { key: 1 }, [
27071
+ a.value ? (U(), K(re, { key: 1 }, [
27069
27072
  Rw,
27070
27073
  Q(g, {
27071
27074
  placeholder: "键入筛选数据源",
@@ -27084,7 +27087,7 @@ const gw = function(n, e) {
27084
27087
  ]),
27085
27088
  _: 1
27086
27089
  }, 8, ["loading"])
27087
- ], 64)) : (U(), K(se, { key: 0 }, [
27090
+ ], 64)) : (U(), K(re, { key: 0 }, [
27088
27091
  Cw,
27089
27092
  Q(b(we), {
27090
27093
  type: "text",
@@ -27112,7 +27115,7 @@ const gw = function(n, e) {
27112
27115
  "onUpdate:modelValue": P[1] || (P[1] = (v) => f.value = v)
27113
27116
  }, {
27114
27117
  default: x(() => [
27115
- (U(!0), K(se, null, Fe(b(c), (v) => (U(), oe(Z, {
27118
+ (U(!0), K(re, null, Fe(b(c), (v) => (U(), oe(Z, {
27116
27119
  label: v.id
27117
27120
  }, {
27118
27121
  default: x(() => [
@@ -27124,16 +27127,16 @@ const gw = function(n, e) {
27124
27127
  _: 1
27125
27128
  }, 8, ["modelValue"])
27126
27129
  ])) : (U(), K("div", Zw, [
27127
- (U(!0), K(se, null, Fe(b(r), (v) => (U(), K("div", Aw, [
27130
+ (U(!0), K(re, null, Fe(b(r), (v) => (U(), K("div", Aw, [
27128
27131
  D("div", Vw, [
27129
27132
  D("div", Yw, Me(v.name) + " (" + Me(v.url) + ")", 1)
27130
27133
  ]),
27131
27134
  D("div", Ew, [
27132
- (U(!0), K(se, null, Fe(v.columns, (E) => (U(), oe(q, null, {
27135
+ (U(!0), K(re, null, Fe(v.columns, (E) => (U(), oe(M, null, {
27133
27136
  default: x(() => [
27134
- E.name === E.columnName ? (U(), K(se, { key: 0 }, [
27137
+ E.name === E.columnName ? (U(), K(re, { key: 0 }, [
27135
27138
  B(Me(E.name), 1)
27136
- ], 64)) : (U(), K(se, { key: 1 }, [
27139
+ ], 64)) : (U(), K(re, { key: 1 }, [
27137
27140
  B(Me(E.name) + " (" + Me(E.columnName) + ")", 1)
27138
27141
  ], 64))
27139
27142
  ]),
@@ -27145,98 +27148,147 @@ const gw = function(n, e) {
27145
27148
  ]),
27146
27149
  _: 1
27147
27150
  }),
27148
- b(i).type === "report" ? (U(), oe(M, {
27151
+ b(i).type === "report" ? (U(), oe(q, {
27149
27152
  key: 0,
27150
27153
  span: 16
27151
27154
  }, {
27152
27155
  default: x(() => [
27153
- Q(J, { "label-position": "top" }, {
27156
+ Q(se, { "label-position": "top" }, {
27154
27157
  default: x(() => [
27155
- Q(G, null, {
27156
- label: x(() => [
27157
- qw
27158
- ]),
27159
- default: x(() => [
27160
- Q(z, {
27161
- modelValue: b(i).data.pagination,
27162
- "onUpdate:modelValue": P[2] || (P[2] = (v) => b(i).data.pagination = v),
27163
- disabled: b(i).data.source && b(i).data.source.length > 1
27164
- }, null, 8, ["modelValue", "disabled"])
27165
- ]),
27166
- _: 1
27167
- }),
27168
- b(i).data.pagination ? (U(), oe(G, { key: 0 }, {
27169
- label: x(() => [
27170
- Mw
27171
- ]),
27172
- default: x(() => [
27173
- Q(g, {
27174
- modelValue: b(i).data.pageSize,
27175
- "onUpdate:modelValue": P[3] || (P[3] = (v) => b(i).data.pageSize = v),
27176
- modelModifiers: { number: !0 }
27177
- }, null, 8, ["modelValue"])
27178
- ]),
27179
- _: 1
27180
- })) : ae("", !0),
27181
- b(i).data.pagination ? (U(), oe(G, { key: 1 }, {
27182
- label: x(() => [
27183
- Dw
27184
- ]),
27185
- default: x(() => [
27186
- D("div", Lw, [
27187
- (U(!0), K(se, null, Fe(o.value, (v, E) => (U(), oe(q, {
27188
- closable: "",
27189
- key: v,
27190
- "disable-transitions": !1,
27191
- onClose: (Y) => $(E)
27192
- }, {
27193
- default: x(() => [
27194
- B(Me(v), 1)
27195
- ]),
27196
- _: 2
27197
- }, 1032, ["onClose"]))), 128)),
27198
- k.value ? (U(), oe(g, {
27199
- key: 0,
27200
- ref_key: "InputRef",
27201
- ref: y,
27202
- modelValue: C.value,
27203
- "onUpdate:modelValue": P[4] || (P[4] = (v) => C.value = v),
27204
- modelModifiers: { number: !0 },
27205
- class: "data-pagesizes-input",
27206
- size: "small",
27207
- onKeyup: Mm(T, ["enter"])
27208
- }, null, 8, ["modelValue", "onKeyup"])) : (U(), oe(b(we), {
27209
- key: 1,
27210
- size: "small",
27211
- onClick: R
27212
- }, {
27213
- default: x(() => [
27214
- B(" 添加分页数 ")
27215
- ]),
27216
- _: 1
27217
- }))
27218
- ])
27219
- ]),
27220
- _: 1
27221
- })) : ae("", !0),
27222
- Q(G, null, {
27223
- label: x(() => [
27224
- Uw
27225
- ]),
27158
+ Q(J, { gutter: 10 }, {
27226
27159
  default: x(() => [
27227
- Q(Ii, {
27228
- height: 300,
27229
- modelValue: b(i).data.processData,
27230
- "onUpdate:modelValue": P[5] || (P[5] = (v) => b(i).data.processData = v)
27160
+ Q(q, { span: 24 }, {
27161
+ default: x(() => [
27162
+ Q(G, null, {
27163
+ label: x(() => [
27164
+ qw
27165
+ ]),
27166
+ default: x(() => [
27167
+ Q(z, {
27168
+ modelValue: b(i).data.pagination,
27169
+ "onUpdate:modelValue": P[2] || (P[2] = (v) => b(i).data.pagination = v),
27170
+ disabled: b(i).data.source && b(i).data.source.length > 1
27171
+ }, null, 8, ["modelValue", "disabled"])
27172
+ ]),
27173
+ _: 1
27174
+ })
27175
+ ]),
27176
+ _: 1
27177
+ }),
27178
+ Q(q, { span: 6 }, {
27179
+ default: x(() => [
27180
+ Q(G, null, {
27181
+ label: x(() => [
27182
+ Mw
27183
+ ]),
27184
+ default: x(() => [
27185
+ Q(z, {
27186
+ modelValue: b(i).data.pagination,
27187
+ "onUpdate:modelValue": P[3] || (P[3] = (v) => b(i).data.pagination = v),
27188
+ disabled: b(i).data.source && b(i).data.source.length > 1
27189
+ }, null, 8, ["modelValue", "disabled"])
27190
+ ]),
27191
+ _: 1
27192
+ })
27193
+ ]),
27194
+ _: 1
27195
+ }),
27196
+ b(i).data.pagination ? (U(), oe(q, {
27197
+ key: 0,
27198
+ span: 6
27231
27199
  }, {
27232
- "pre-code": x(() => [
27233
- B("function (allData,key,data){")
27200
+ default: x(() => [
27201
+ Q(G, null, {
27202
+ label: x(() => [
27203
+ Dw
27204
+ ]),
27205
+ default: x(() => [
27206
+ Q(g, {
27207
+ modelValue: b(i).data.pageSize,
27208
+ "onUpdate:modelValue": P[4] || (P[4] = (v) => b(i).data.pageSize = v),
27209
+ modelModifiers: { number: !0 }
27210
+ }, null, 8, ["modelValue"])
27211
+ ]),
27212
+ _: 1
27213
+ })
27234
27214
  ]),
27235
- "next-code": x(() => [
27236
- B("}")
27215
+ _: 1
27216
+ })) : ae("", !0),
27217
+ b(i).data.pagination ? (U(), oe(q, {
27218
+ key: 1,
27219
+ span: 12
27220
+ }, {
27221
+ default: x(() => [
27222
+ Q(G, null, {
27223
+ label: x(() => [
27224
+ Lw
27225
+ ]),
27226
+ default: x(() => [
27227
+ D("div", Uw, [
27228
+ (U(!0), K(re, null, Fe(o.value, (v, E) => (U(), oe(M, {
27229
+ closable: "",
27230
+ key: v,
27231
+ "disable-transitions": !1,
27232
+ onClose: (Y) => $(E)
27233
+ }, {
27234
+ default: x(() => [
27235
+ B(Me(v), 1)
27236
+ ]),
27237
+ _: 2
27238
+ }, 1032, ["onClose"]))), 128)),
27239
+ k.value ? (U(), oe(g, {
27240
+ key: 0,
27241
+ ref_key: "InputRef",
27242
+ ref: y,
27243
+ modelValue: C.value,
27244
+ "onUpdate:modelValue": P[5] || (P[5] = (v) => C.value = v),
27245
+ modelModifiers: { number: !0 },
27246
+ class: "data-pagesizes-input",
27247
+ size: "small",
27248
+ onKeyup: Mm(T, ["enter"])
27249
+ }, null, 8, ["modelValue", "onKeyup"])) : (U(), oe(b(we), {
27250
+ key: 1,
27251
+ size: "small",
27252
+ onClick: R
27253
+ }, {
27254
+ default: x(() => [
27255
+ B(" 添加分页数 ")
27256
+ ]),
27257
+ _: 1
27258
+ }))
27259
+ ])
27260
+ ]),
27261
+ _: 1
27262
+ })
27237
27263
  ]),
27238
27264
  _: 1
27239
- }, 8, ["modelValue"])
27265
+ })) : ae("", !0),
27266
+ Q(q, { span: 24 }, {
27267
+ default: x(() => [
27268
+ Q(G, null, {
27269
+ label: x(() => [
27270
+ zw
27271
+ ]),
27272
+ default: x(() => [
27273
+ Q(Ii, {
27274
+ height: 100,
27275
+ modelValue: b(i).data.processData,
27276
+ "onUpdate:modelValue": P[6] || (P[6] = (v) => b(i).data.processData = v)
27277
+ }, {
27278
+ "pre-code": x(() => [
27279
+ B("function (allData,key,data){")
27280
+ ]),
27281
+ "next-code": x(() => [
27282
+ B("}")
27283
+ ]),
27284
+ _: 1
27285
+ }, 8, ["modelValue"])
27286
+ ]),
27287
+ _: 1
27288
+ })
27289
+ ]),
27290
+ _: 1
27291
+ })
27240
27292
  ]),
27241
27293
  _: 1
27242
27294
  })
@@ -27245,23 +27297,23 @@ const gw = function(n, e) {
27245
27297
  })
27246
27298
  ]),
27247
27299
  _: 1
27248
- })) : (U(), oe(M, {
27300
+ })) : (U(), oe(q, {
27249
27301
  key: 1,
27250
27302
  span: 16
27251
27303
  }, {
27252
27304
  default: x(() => [
27253
- Q(J, { "label-position": "top" }, {
27305
+ Q(se, { "label-position": "top" }, {
27254
27306
  default: x(() => [
27255
- b(s) ? (U(), K(se, { key: 0 }, [
27307
+ b(s) ? (U(), K(re, { key: 0 }, [
27256
27308
  Q(G, null, {
27257
27309
  label: x(() => [
27258
- zw
27310
+ Ww
27259
27311
  ]),
27260
27312
  default: x(() => [
27261
27313
  Q(Ii, {
27262
27314
  height: 100,
27263
27315
  modelValue: b(i).xAisData,
27264
- "onUpdate:modelValue": P[6] || (P[6] = (v) => b(i).xAisData = v)
27316
+ "onUpdate:modelValue": P[7] || (P[7] = (v) => b(i).xAisData = v)
27265
27317
  }, {
27266
27318
  "pre-code": x(() => [
27267
27319
  B("function (allData){")
@@ -27276,13 +27328,13 @@ const gw = function(n, e) {
27276
27328
  }),
27277
27329
  Q(G, null, {
27278
27330
  label: x(() => [
27279
- Ww
27331
+ Bw
27280
27332
  ]),
27281
27333
  default: x(() => [
27282
27334
  Q(Ii, {
27283
27335
  height: 100,
27284
27336
  modelValue: b(i).yAisData,
27285
- "onUpdate:modelValue": P[7] || (P[7] = (v) => b(i).yAisData = v)
27337
+ "onUpdate:modelValue": P[8] || (P[8] = (v) => b(i).yAisData = v)
27286
27338
  }, {
27287
27339
  "pre-code": x(() => [
27288
27340
  B("function (allData){")
@@ -27298,13 +27350,13 @@ const gw = function(n, e) {
27298
27350
  ], 64)) : ae("", !0),
27299
27351
  Q(G, null, {
27300
27352
  label: x(() => [
27301
- Bw
27353
+ Nw
27302
27354
  ]),
27303
27355
  default: x(() => [
27304
27356
  Q(Ii, {
27305
27357
  height: 100,
27306
27358
  modelValue: b(i).seriesData,
27307
- "onUpdate:modelValue": P[8] || (P[8] = (v) => b(i).seriesData = v)
27359
+ "onUpdate:modelValue": P[9] || (P[9] = (v) => b(i).seriesData = v)
27308
27360
  }, {
27309
27361
  "pre-code": x(() => [
27310
27362
  B("function (allData){")
@@ -27334,7 +27386,7 @@ const gw = function(n, e) {
27334
27386
  };
27335
27387
  }
27336
27388
  });
27337
- function Gw(n, e, t, i, s) {
27389
+ function jw(n, e, t, i, s) {
27338
27390
  let r = he(!1);
27339
27391
  function o(u) {
27340
27392
  let { clientX: h, clientY: c, target: f } = u, { classList: d } = f;
@@ -27359,7 +27411,7 @@ function Gw(n, e, t, i, s) {
27359
27411
  }
27360
27412
  function Cf(n, e = 1) {
27361
27413
  let t = 0, i = 300, s = he(300);
27362
- return Gw(
27414
+ return jw(
27363
27415
  n,
27364
27416
  "drag-tap",
27365
27417
  (r, o, l) => {
@@ -27376,66 +27428,66 @@ function Cf(n, e = 1) {
27376
27428
  formWidth: s
27377
27429
  };
27378
27430
  }
27379
- const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" }, Hw = { class: "statement-actions" }, Kw = /* @__PURE__ */ D("i", { class: "iconfont icon-fullscreen-exit" }, null, -1), Jw = /* @__PURE__ */ D("i", { class: "iconfont icon-fullscreen" }, null, -1), ek = /* @__PURE__ */ D("i", { class: "iconfont icon-save" }, null, -1), tk = /* @__PURE__ */ D("i", { class: "iconfont icon-help-circle-filled" }, null, -1), ik = /* @__PURE__ */ D("i", { class: "iconfont icon-eye-fill" }, null, -1), nk = { class: "statement-design-body" }, sk = /* @__PURE__ */ D("div", { class: "drag-tap right" }, null, -1), rk = { class: "statement-option" }, ok = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
27431
+ const Fw = { class: "statement-design-top" }, Hw = { class: "statement-name" }, Kw = { class: "statement-actions" }, Jw = /* @__PURE__ */ D("i", { class: "iconfont icon-fullscreen-exit" }, null, -1), ek = /* @__PURE__ */ D("i", { class: "iconfont icon-fullscreen" }, null, -1), tk = /* @__PURE__ */ D("i", { class: "iconfont icon-save" }, null, -1), ik = /* @__PURE__ */ D("i", { class: "iconfont icon-help-circle-filled" }, null, -1), nk = /* @__PURE__ */ D("i", { class: "iconfont icon-eye-fill" }, null, -1), sk = { class: "statement-design-body" }, rk = /* @__PURE__ */ D("div", { class: "drag-tap right" }, null, -1), ok = { class: "statement-option" }, lk = /* @__PURE__ */ D("div", { class: "statement-option-title" }, [
27380
27432
  /* @__PURE__ */ D("div", { class: "statement-option-title-context" }, "图表/报表")
27381
- ], -1), lk = {
27433
+ ], -1), ak = {
27382
27434
  key: 1,
27383
27435
  class: "statement-content"
27384
- }, ak = /* @__PURE__ */ D("div", { class: "drag-tap left" }, null, -1), Sk = /* @__PURE__ */ gt({
27436
+ }, hk = /* @__PURE__ */ D("div", { class: "drag-tap left" }, null, -1), vk = /* @__PURE__ */ gt({
27385
27437
  __name: "StatementDesign",
27386
27438
  setup(n) {
27387
27439
  const e = Lt(), { detail: t, isPreview: i, active: s, activeCells: r, activeIndex: o } = Dt(e), l = he(), { isFullscreen: a, toggle: u } = Gm(l), { getDetail: h, saveStatement: c } = e, f = he(), d = he(), { formWidth: p } = Cf(f), { formWidth: _ } = Cf(d, -1), m = he(!1), O = Vf(), y = be({
27388
27440
  get() {
27389
27441
  return t.value.options;
27390
27442
  },
27391
- set(q) {
27392
- return t.value.options = q;
27443
+ set(M) {
27444
+ return t.value.options = M;
27393
27445
  }
27394
27446
  });
27395
27447
  let C = null, k = null, R = he(""), $ = he("");
27396
- function T(q, M) {
27448
+ function T(M, q) {
27397
27449
  let z = "report-drag-source";
27398
- return M || (z = "report-drop-target"), q.classList.contains(z) ? q : q.closest("." + z);
27450
+ return q || (z = "report-drop-target"), M.classList.contains(z) ? M : M.closest("." + z);
27399
27451
  }
27400
- function w(q) {
27401
- let M = T(q.target, !0);
27402
- if (M) {
27403
- let { drag: z, index: G } = M.dataset;
27452
+ function w(M) {
27453
+ let q = T(M.target, !0);
27454
+ if (q) {
27455
+ let { drag: z, index: G } = q.dataset;
27404
27456
  if (lg.value.includes(z)) {
27405
27457
  C = "canvas", k = G, z === "report" ? R.value = "拖拽到中间添加报表" : R.value = "拖拽到中间添加图表";
27406
27458
  let J = ag(z);
27407
- q.dataTransfer.setData("application/json", JSON.stringify(J));
27459
+ M.dataTransfer.setData("application/json", JSON.stringify(J));
27408
27460
  }
27409
27461
  if (z === "column" && s.value) {
27410
27462
  C = "column";
27411
- let { cindex: J } = M.dataset, re = {
27463
+ let { cindex: J } = q.dataset, se = {
27412
27464
  dataSource: s.value.data.source[G],
27413
27465
  columnIndex: J
27414
27466
  };
27415
- q.dataTransfer.setData("application/json", JSON.stringify(re)), R.value = "拖拽到报表添加字段/参数";
27467
+ M.dataTransfer.setData("application/json", JSON.stringify(se)), R.value = "拖拽到报表添加字段/参数";
27416
27468
  }
27417
27469
  z === "params" && (C = "params", k = G, R.value = "左右移动参数位置");
27418
27470
  }
27419
27471
  }
27420
27472
  function P() {
27421
- R.value = "", $.value = "", l.value.querySelectorAll(".report-drop-target.drag-over").forEach((q) => {
27422
- q.classList.remove("drag-over");
27473
+ R.value = "", $.value = "", l.value.querySelectorAll(".report-drop-target.drag-over").forEach((M) => {
27474
+ M.classList.remove("drag-over");
27423
27475
  });
27424
27476
  }
27425
- function g(q) {
27426
- let M = T(q.target, !1);
27427
- if (M) {
27428
- let { source: z, target: G, index: J } = M.dataset;
27477
+ function g(M) {
27478
+ let q = T(M.target, !1);
27479
+ if (q) {
27480
+ let { source: z, target: G, index: J } = q.dataset;
27429
27481
  J = parseInt(J);
27430
- let re = q.dataTransfer.getData("application/json");
27482
+ let se = M.dataTransfer.getData("application/json");
27431
27483
  switch (G) {
27432
27484
  case "canvas":
27433
- C === "canvas" && re && (re = JSON.parse(re), isNaN(J) ? (y.value.push(re), s.value = y.value[y.value.length - 1], o.value = y.value.length - 1) : (y.value.splice(J, 0, re), s.value = y.value[J], o.value = J));
27485
+ C === "canvas" && se && (se = JSON.parse(se), isNaN(J) ? (y.value.push(se), s.value = y.value[y.value.length - 1], o.value = y.value.length - 1) : (y.value.splice(J, 0, se), s.value = y.value[J], o.value = J));
27434
27486
  break;
27435
27487
  case "params":
27436
- if (s.value && (z === C && re || G === C)) {
27437
- if (z === "column" && re) {
27438
- const { dataSource: A, columnIndex: v } = JSON.parse(re);
27488
+ if (s.value && (z === C && se || G === C)) {
27489
+ if (z === "column" && se) {
27490
+ const { dataSource: A, columnIndex: v } = JSON.parse(se);
27439
27491
  let E = A.columns[v], Y = s.value.params.findIndex((I) => I.columnName === E.columnName), W = {
27440
27492
  key: A.key,
27441
27493
  columnName: E.columnName,
@@ -27466,11 +27518,11 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27466
27518
  }
27467
27519
  break;
27468
27520
  case "column":
27469
- if (re) {
27470
- let { columnIndex: A, dataSource: v } = JSON.parse(re);
27521
+ if (se) {
27522
+ let { columnIndex: A, dataSource: v } = JSON.parse(se);
27471
27523
  if (A && v && s.value) {
27472
- let { key: E } = v, { columnName: Y, name: W } = v.columns[A], { col: I, row: ee } = M.dataset;
27473
- q.ctrlKey ? (s.value.config[ee][I].type = ie.TEXT, s.value.config[ee][I].data = void 0, s.value.config[ee][I].text = W) : (s.value.config[ee][I].type = ie.FIELD, q.altKey ? (s.value.rowConfig[ee].data = E, s.value.rowConfig[ee].loop = !1, s.value.rowConfig[ee].dataIndex = 0, s.value.colConfig[I].data = void 0, s.value.colConfig[I].loop = !1, s.value.colConfig[I].dataIndex = void 0, s.value.config[ee][I].data = `row:${Y}`) : q.shiftKey ? (s.value.colConfig[I].data = E, s.value.colConfig[I].loop = !0, s.value.config[ee][I].data = `col:${Y}`) : (s.value.rowConfig[ee].data = E, s.value.rowConfig[ee].loop = !0, s.value.config[ee][I].data = `row:${Y}`)), r.value = [
27524
+ let { key: E } = v, { columnName: Y, name: W } = v.columns[A], { col: I, row: ee } = q.dataset;
27525
+ M.ctrlKey ? (s.value.config[ee][I].type = ie.TEXT, s.value.config[ee][I].data = void 0, s.value.config[ee][I].text = W) : (s.value.config[ee][I].type = ie.FIELD, M.altKey ? (s.value.rowConfig[ee].data = E, s.value.rowConfig[ee].loop = !1, s.value.rowConfig[ee].dataIndex = 0, s.value.colConfig[I].data = void 0, s.value.colConfig[I].loop = !1, s.value.colConfig[I].dataIndex = void 0, s.value.config[ee][I].data = `row:${Y}`) : M.shiftKey ? (s.value.colConfig[I].data = E, s.value.colConfig[I].loop = !0, s.value.config[ee][I].data = `col:${Y}`) : (s.value.rowConfig[ee].data = E, s.value.rowConfig[ee].loop = !0, s.value.config[ee][I].data = `row:${Y}`)), r.value = [
27474
27526
  {
27475
27527
  type: ie.CELL,
27476
27528
  index: parseInt(J),
@@ -27484,18 +27536,18 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27484
27536
  }
27485
27537
  }
27486
27538
  }
27487
- function Z(q) {
27488
- let M = T(q.target, !1);
27489
- if (M) {
27490
- q.preventDefault();
27491
- let { source: z, target: G, index: J } = M.dataset;
27539
+ function Z(M) {
27540
+ let q = T(M.target, !1);
27541
+ if (q) {
27542
+ M.preventDefault();
27543
+ let { source: z, target: G, index: J } = q.dataset;
27492
27544
  if ([z, G].includes(C))
27493
- switch (M.classList.add("drag-over"), console.log(G, q, C), C) {
27545
+ switch (q.classList.add("drag-over"), console.log(G, M, C), C) {
27494
27546
  case "canvas":
27495
27547
  J !== void 0 ? $.value = `将添加到第 ${parseInt(J) + 1} 个位置` : $.value = "将添加到最后一个位置";
27496
27548
  break;
27497
27549
  case "column":
27498
- G === "params" ? J !== void 0 ? $.value = `将添加为第 ${parseInt(J) + 1} 个筛选参数` : $.value = "将添加为一个新的筛选参数" : G === "column" ? q.ctrlKey ? $.value = "将字段名添加到单元格中" : q.altKey ? $.value = "将单元格与字段绑定" : q.shiftKey ? $.value = "根据数据渲染当前列,并绑定单元格与字段" : $.value = "根据数据渲染当前行,并绑定单元格与字段" : $.value = "尝试按住: Shift、Ctrl、Alt";
27550
+ G === "params" ? J !== void 0 ? $.value = `将添加为第 ${parseInt(J) + 1} 个筛选参数` : $.value = "将添加为一个新的筛选参数" : G === "column" ? M.ctrlKey ? $.value = "将字段名添加到单元格中" : M.altKey ? $.value = "将单元格与字段绑定" : M.shiftKey ? $.value = "根据数据渲染当前列,并绑定单元格与字段" : $.value = "根据数据渲染当前行,并绑定单元格与字段" : $.value = "尝试按住: Shift、Ctrl、Alt";
27499
27551
  break;
27500
27552
  }
27501
27553
  else
@@ -27512,29 +27564,29 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27512
27564
  }
27513
27565
  }
27514
27566
  }
27515
- function X(q) {
27567
+ function X(M) {
27516
27568
  $.value = "";
27517
- let M = T(q.target, !1);
27518
- M && M.classList.remove("drag-over"), q.preventDefault();
27569
+ let q = T(M.target, !1);
27570
+ q && q.classList.remove("drag-over"), M.preventDefault();
27519
27571
  }
27520
27572
  return Im(() => {
27521
27573
  c();
27522
27574
  }), Xf(() => {
27523
- var q;
27524
- (q = document.querySelector(".main-container")) == null || q.classList.add("statement-design-main");
27575
+ var M;
27576
+ (M = document.querySelector(".main-container")) == null || M.classList.add("statement-design-main");
27525
27577
  }), Zf(() => {
27526
- var q;
27527
- (q = document.querySelector(".main-container")) == null || q.classList.remove("statement-design-main");
27578
+ var M;
27579
+ (M = document.querySelector(".main-container")) == null || M.classList.remove("statement-design-main");
27528
27580
  }), cn(() => {
27529
- var q, M, z, G, J;
27530
- h(O.params.id), (q = l.value) == null || q.addEventListener("dragstart", w), (M = l.value) == null || M.addEventListener("dragend", P), (z = l.value) == null || z.addEventListener("dragover", Z), (G = l.value) == null || G.addEventListener("dragleave", X), (J = l.value) == null || J.addEventListener("drop", g);
27581
+ var M, q, z, G, J;
27582
+ h(O.params.id), (M = l.value) == null || M.addEventListener("dragstart", w), (q = l.value) == null || q.addEventListener("dragend", P), (z = l.value) == null || z.addEventListener("dragover", Z), (G = l.value) == null || G.addEventListener("dragleave", X), (J = l.value) == null || J.addEventListener("drop", g);
27531
27583
  }), Br(() => {
27532
- var q, M, z, G, J;
27533
- e.$dispose(), (q = l.value) == null || q.removeEventListener("dragstart", w), (M = l.value) == null || M.removeEventListener("dragend", P), (z = l.value) == null || z.removeEventListener("dragover", Z), (G = l.value) == null || G.removeEventListener("dragleave", X), (J = l.value) == null || J.removeEventListener("drop", g);
27534
- }), (q, M) => {
27584
+ var M, q, z, G, J;
27585
+ e.$dispose(), (M = l.value) == null || M.removeEventListener("dragstart", w), (q = l.value) == null || q.removeEventListener("dragend", P), (z = l.value) == null || z.removeEventListener("dragover", Z), (G = l.value) == null || G.removeEventListener("dragleave", X), (J = l.value) == null || J.removeEventListener("drop", g);
27586
+ }), (M, q) => {
27535
27587
  var J;
27536
27588
  const z = ce("el-alert"), G = ce("el-button-group");
27537
- return U(), K(se, null, [
27589
+ return U(), K(re, null, [
27538
27590
  Qt(Q(z, {
27539
27591
  class: "statement-alert",
27540
27592
  title: b(R),
@@ -27550,9 +27602,9 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27550
27602
  ref_key: "designContainerRef",
27551
27603
  ref: l
27552
27604
  }, [
27553
- D("div", jw, [
27554
- D("div", Fw, Me((J = b(t)) == null ? void 0 : J.name), 1),
27555
- D("div", Hw, [
27605
+ D("div", Fw, [
27606
+ D("div", Hw, Me((J = b(t)) == null ? void 0 : J.name), 1),
27607
+ D("div", Kw, [
27556
27608
  Q(G, null, {
27557
27609
  default: x(() => [
27558
27610
  b(i) ? (U(), oe(b(Nm), {
@@ -27565,7 +27617,7 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27565
27617
  b(i) ? (U(), oe(b(we), {
27566
27618
  key: 0,
27567
27619
  text: "",
27568
- onClick: M[2] || (M[2] = (re) => i.value = !1)
27620
+ onClick: q[2] || (q[2] = (se) => i.value = !1)
27569
27621
  }, {
27570
27622
  default: x(() => [
27571
27623
  B(" 退出预览 ")
@@ -27574,18 +27626,18 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27574
27626
  })) : ae("", !0)
27575
27627
  ]),
27576
27628
  _: 1
27577
- })) : (U(), K(se, { key: 0 }, [
27629
+ })) : (U(), K(re, { key: 0 }, [
27578
27630
  Q(b(we), {
27579
27631
  text: "",
27580
27632
  type: "warning",
27581
27633
  onClick: b(u)
27582
27634
  }, {
27583
27635
  default: x(() => [
27584
- b(a) ? (U(), K(se, { key: 0 }, [
27585
- Kw,
27586
- B(" 退出全屏 ")
27587
- ], 64)) : (U(), K(se, { key: 1 }, [
27636
+ b(a) ? (U(), K(re, { key: 0 }, [
27588
27637
  Jw,
27638
+ B(" 退出全屏 ")
27639
+ ], 64)) : (U(), K(re, { key: 1 }, [
27640
+ ek,
27589
27641
  B(" 进入全屏 ")
27590
27642
  ], 64))
27591
27643
  ]),
@@ -27597,27 +27649,27 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27597
27649
  onClick: b(c)
27598
27650
  }, {
27599
27651
  default: x(() => [
27600
- ek,
27652
+ tk,
27601
27653
  B(" 保存 ")
27602
27654
  ]),
27603
27655
  _: 1
27604
27656
  }, 8, ["onClick"]),
27605
27657
  Q(b(we), {
27606
- onClick: M[0] || (M[0] = (re) => m.value = !0),
27658
+ onClick: q[0] || (q[0] = (se) => m.value = !0),
27607
27659
  text: ""
27608
27660
  }, {
27609
27661
  default: x(() => [
27610
- tk,
27662
+ ik,
27611
27663
  B(" 帮助 ")
27612
27664
  ]),
27613
27665
  _: 1
27614
27666
  }),
27615
27667
  Q(b(we), {
27616
27668
  text: "",
27617
- onClick: M[1] || (M[1] = (re) => i.value = !0)
27669
+ onClick: q[1] || (q[1] = (se) => i.value = !0)
27618
27670
  }, {
27619
27671
  default: x(() => [
27620
- ik,
27672
+ nk,
27621
27673
  B(" 预览 ")
27622
27674
  ]),
27623
27675
  _: 1
@@ -27628,7 +27680,7 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27628
27680
  })
27629
27681
  ])
27630
27682
  ]),
27631
- D("div", nk, [
27683
+ D("div", sk, [
27632
27684
  Qt(D("div", {
27633
27685
  class: "statement-form left",
27634
27686
  ref_key: "leftFormRef",
@@ -27637,17 +27689,17 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27637
27689
  width: `${b(p)}px`
27638
27690
  })
27639
27691
  }, [
27640
- sk,
27641
- D("div", rk, [
27642
- ok,
27692
+ rk,
27693
+ D("div", ok, [
27694
+ lk,
27643
27695
  Q(jg, { chartReportList: b(rg) }, null, 8, ["chartReportList"]),
27644
- Q(Iw)
27696
+ Q(Gw)
27645
27697
  ])
27646
27698
  ], 4), [
27647
27699
  [bt, !b(i)]
27648
27700
  ]),
27649
27701
  b(i) ? ae("", !0) : (U(), oe(zg, { key: 0 })),
27650
- b(i) ? (U(), K("div", lk, [
27702
+ b(i) ? (U(), K("div", ak, [
27651
27703
  Q(og, {
27652
27704
  id: b(O).params.id
27653
27705
  }, null, 8, ["id"])
@@ -27660,7 +27712,7 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27660
27712
  width: `${b(_)}px`
27661
27713
  })
27662
27714
  }, [
27663
- ak,
27715
+ hk,
27664
27716
  Q(xw)
27665
27717
  ], 4), [
27666
27718
  [bt, !b(i)]
@@ -27668,7 +27720,7 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27668
27720
  ]),
27669
27721
  Q(Bg, {
27670
27722
  modelValue: m.value,
27671
- "onUpdate:modelValue": M[3] || (M[3] = (re) => m.value = re)
27723
+ "onUpdate:modelValue": q[3] || (q[3] = (se) => m.value = se)
27672
27724
  }, null, 8, ["modelValue"])
27673
27725
  ], 512)
27674
27726
  ], 64);
@@ -27676,6 +27728,6 @@ const jw = { class: "statement-design-top" }, Fw = { class: "statement-name" },
27676
27728
  }
27677
27729
  });
27678
27730
  export {
27679
- Sk as default
27731
+ vk as default
27680
27732
  };
27681
- //# sourceMappingURL=StatementDesign-402d427a.mjs.map
27733
+ //# sourceMappingURL=StatementDesign-d92e1f36.mjs.map