super-page-runtime 2.3.4 → 2.3.5

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.
Files changed (44) hide show
  1. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  2. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +45 -46
  3. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +14 -16
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +24 -26
  5. package/dist/es/components/runtime/utils/events/event-util.js +116 -116
  6. package/dist/es/components/runtime/utils/events/print-label.js +0 -1
  7. package/dist/es/components/runtime/utils/events/standard-event.js +463 -475
  8. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  9. package/dist/es/components/runtime/utils/form/scan-util.js +3 -4
  10. package/dist/es/components/runtime/utils/page-helper-util.js +275 -275
  11. package/dist/es/components/runtime/utils/page-init-util.js +44 -47
  12. package/dist/es/components/runtime/utils/page-store.js +10 -10
  13. package/dist/es/components/runtime/utils/table-utils.js +30 -30
  14. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +12 -16
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +3 -3
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -6
  17. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +14 -15
  18. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +11 -12
  19. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +17 -18
  20. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +18 -19
  21. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +18 -19
  22. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +19 -21
  23. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +63 -63
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +35 -37
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +120 -123
  27. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +57 -58
  28. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -1
  29. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -29
  30. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +17 -17
  31. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +30 -27
  32. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +6 -6
  33. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  34. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -1
  35. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  36. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +15 -15
  38. package/dist/es/components/runtime/views/home-chart.vue.js +4 -4
  39. package/dist/es/components/runtime/views/super-page-dialog.vue.js +6 -6
  40. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  41. package/dist/es/components/runtime/views/super-page.vue2.js +138 -140
  42. package/dist/es/style.css +76 -76
  43. package/dist/es.zip +0 -0
  44. package/package.json +2 -2
@@ -1,36 +1,35 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as i, unref as c, withDirectives as u, createVNode as p, vShow as l } from "vue";
2
- import { getCustomTheme as f, initChartOption as m, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as s, normalizeStyle as u, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
5
- import v from "../common/common-chart-header.vue.js";
6
- import { use as y } from "echarts/core";
5
+ import y from "../common/common-chart-header.vue.js";
6
+ import { use as v } from "echarts/core";
7
7
  import { CanvasRenderer as R } from "echarts/renderers";
8
8
  import { ScatterChart as V } from "echarts/charts";
9
- import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as O } from "echarts/components";
10
- import b from "vue-echarts";
11
- const A = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
12
- y([R, V, _, j, w, I, k, O]);
13
- const H = e2, z = r(null), D = r(null), F = r(null), P = H.configure.runtime ? H.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = H.configure.props ? H.configure.props : {}, J = f(G.customTheme);
14
- m(H.configure, E), console.log("chartOption", E), o(() => {
15
- const e3 = g(H.pageContext, H.configure);
9
+ import { GridComponent as _, LegendComponent as j, TitleComponent as w, TooltipComponent as I, ToolboxComponent as k, DataZoomComponent as b } from "echarts/components";
10
+ import A from "vue-echarts";
11
+ const H = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: H2 }) {
12
+ v([R, V, _, j, w, I, k, b]);
13
+ const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = z.configure.props ? z.configure.props : {}, J = m(G.customTheme);
14
+ h(z.configure, E), t(() => {
15
+ const e3 = g(z.pageContext, z.configure);
16
16
  e3 && N(e3);
17
17
  });
18
18
  let K = B.groupValue;
19
19
  function L() {
20
- q ? d(H.pageContext, [q], B.drillParams) : console.log("无数据源配置,不需要查询!");
20
+ q && d(z.pageContext, [q], B.drillParams);
21
21
  }
22
- t(B, () => {
22
+ o(B, () => {
23
23
  K != B.groupValue && (K = B.groupValue, q && (q.services[0].groupValue = B.groupValue), L());
24
24
  });
25
25
  const M = B.monitorFields;
26
26
  function N(e3) {
27
- if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
28
- e3.hasRender = true, C(H.pageContext, H.configure, E, e3), console.log("chartOption scatter", E);
27
+ e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, E, e3));
29
28
  }
30
- return x(H.pageContext, M, L), A2({ updateChartDatas: N, exportChart: function() {
31
- return h(D.value);
32
- } }), (e3, r2) => (n(), a("div", { style: i(c(S)), class: s([c(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: z }, [u(p(v, { ref_key: "headerRef", ref: F, headerInfo: c(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[l, c(B).showHeader || e3.pageContext.showHomepageSearch]]), p(c(b), { ref_key: "chartRef", ref: D, theme: c(J), option: c(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(z.pageContext, M, L), H2({ updateChartDatas: N, exportChart: function() {
30
+ return l(F.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: u(i(S)), class: s([i(T), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: D }, [c(p(y, { ref_key: "headerRef", ref: O, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(A), { ref_key: "chartRef", ref: F, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
33
32
  } });
34
33
  export {
35
- A as default
34
+ H as default
36
35
  };
@@ -5,7 +5,7 @@ import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
5
5
  import F from "./group-column.vue.js";
6
6
  import k from "./normal-column.vue.js";
7
7
  import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as V, computeFormula as _, getNewColumnConfig as z, summaryStatistics as A, replacePlaceholders as D, getIndexColumn as J, getHeaderCellStyleUtil as P, getRowStyleUtil as U, getCellStyleUtil as G, formatColContent as K } from "./chart-table-util.js";
8
+ import { getSummaryTitleColumn as N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as A, summaryStatistics as D, replacePlaceholders as J, getIndexColumn as P, getHeaderCellStyleUtil as U, getRowStyleUtil as V, getCellStyleUtil as G, formatColContent as K } from "./chart-table-util.js";
9
9
  import { deepCopy as L } from "../../../../utils/common-util.js";
10
10
  const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
11
11
  var _a;
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
19
19
  }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
20
20
  if (B.configure.props.base.showIndex) {
21
21
  re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
- const e4 = J();
22
+ const e4 = P();
23
23
  e4 && (te.value.$index = e4);
24
24
  }
25
25
  }();
@@ -31,8 +31,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
31
31
  ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
32
32
  let de = 300, he = b(B.pageContext, B.configure);
33
33
  function ve(e3) {
34
- if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
35
- !function(e4) {
34
+ e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
36
35
  var _a2;
37
36
  Ne(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
38
37
  if (me) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
@@ -42,12 +41,12 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
42
41
  o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
43
42
  const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
44
43
  r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
45
- console.log("统计表格监听数据变量的变化 newVal:", o3), ye(o3, i2, e4);
44
+ ye(o3, i2, e4);
46
45
  });
47
46
  }
48
47
  ye(o2, me, e4);
49
48
  } else Ce(me, e4);
50
- }(e3), e3.hasRender = true, X && (X.autoRefresh = false);
49
+ }(e3), e3.hasRender = true, X && (X.autoRefresh = false));
51
50
  }
52
51
  function ye(e3, o2, n2) {
53
52
  var _a2;
@@ -79,9 +78,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
79
78
  const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
80
79
  if ((!i2 || 0 === i2.length) && n2.length > 0) {
81
80
  const e5 = [];
82
- return e5.push(z("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
81
+ return e5.push(A("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
83
82
  if ("$GroupColumn" === o5) return;
84
- const r3 = z(o5, o5, n3 + 1, "string");
83
+ const r3 = A(o5, o5, n3 + 1, "string");
85
84
  e5.push(r3);
86
85
  }), e5;
87
86
  }
@@ -97,7 +96,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
97
96
  }), a2.forEach((o5) => {
98
97
  t2.forEach((r3) => {
99
98
  var _a3;
100
- const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = z(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
99
+ const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = A(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
101
100
  e5.push(i4);
102
101
  });
103
102
  }), e5;
@@ -105,7 +104,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
105
104
  }(B.configure, ne.value, e3);
106
105
  ne.value = o3;
107
106
  }
108
- } else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = V(e3, B.configure));
107
+ } else be("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = _(e3, B.configure));
109
108
  if (B.configure.props.dataOrigin.dataFormatting) {
110
109
  const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
111
110
  if (o3) {
@@ -113,7 +112,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
113
112
  n2 && (e3 = n2);
114
113
  }
115
114
  }
116
- if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && _(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
115
+ if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && z(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
117
116
  "frontend" === B.configure.pageination.type ? (fe.value = me.length, Fe(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
118
117
  }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
119
118
  const e4 = B.configure.props.highOrder.groupField;
@@ -129,11 +128,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
129
128
  for (let e6 = 0; e6 < a2.length; e6++) {
130
129
  const o4 = a2[e6], i3 = {};
131
130
  t2 == null ? void 0 : t2.forEach((e7) => {
132
- const n3 = e7.props.base.prop, r3 = A(pe.value[n3], o4, n3, B.pageContext);
131
+ const n3 = e7.props.base.prop, r3 = D(pe.value[n3], o4, n3, B.pageContext);
133
132
  i3[n3] = r3;
134
133
  }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
135
134
  const n3 = e7.props.base.prop;
136
- i3[n3] = D(e7.props.base.summaryTitle, o4[0]);
135
+ i3[n3] = J(e7.props.base.summaryTitle, o4[0]);
137
136
  }), n2.push(i3), le.push(n2.length - 1);
138
137
  }
139
138
  return n2;
@@ -141,7 +140,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
141
140
  }
142
141
  !function(e4) {
143
142
  if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
144
- const o3 = J();
143
+ const o3 = P();
145
144
  o3 && e4.unshift(o3);
146
145
  }
147
146
  }(ne.value);
@@ -151,10 +150,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
151
150
  }
152
151
  function xe(e3) {
153
152
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
154
- return P(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
153
+ return U(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
155
154
  }
156
155
  function Oe(e3) {
157
- return U(e3, le, B);
156
+ return V(e3, le, B);
158
157
  }
159
158
  function Se(e3) {
160
159
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
@@ -167,7 +166,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
167
166
  !function() {
168
167
  const e4 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
169
168
  r(() => o3.reduce((e5, o4) => e5[o4], B.pageContext.entity), (e5) => {
170
- console.log("统计表格监听数据变量的变化 newVal:", e5), e5 ? ve(JSON.parse(JSON.stringify(e5))) : (oe.value = [], console.log("重置统计表格列配置"), B.configure.props.modelCustom ? Ne(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
169
+ e5 ? ve(JSON.parse(JSON.stringify(e5))) : (oe.value = [], B.configure.props.modelCustom ? Ne(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
171
170
  });
172
171
  }();
173
172
  const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
@@ -179,10 +178,10 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
179
178
  return o2.forEach((e4, o3) => {
180
179
  if (ae.value[e4.property]) {
181
180
  const t2 = ae.value[e4.property].label;
182
- r2[o3] = y("div", {}, [D(t2, n2)]);
181
+ r2[o3] = y("div", {}, [J(t2, n2)]);
183
182
  } else if (ue.value[e4.property]) {
184
183
  const t2 = n2.filter((e5, o4) => !le.includes(o4));
185
- r2[o3] = A(ue.value[e4.property], t2, e4.property, B.pageContext);
184
+ r2[o3] = D(ue.value[e4.property], t2, e4.property, B.pageContext);
186
185
  }
187
186
  }), r2;
188
187
  };
@@ -1,36 +1,34 @@
1
- import { defineComponent as e, ref as t, onMounted as l, resolveComponent as o, createBlock as a, openBlock as n, withCtx as s, createVNode as r, createTextVNode as u, toDisplayString as p } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as r, withCtx as s, createVNode as u, createTextVNode as p, toDisplayString as n } from "vue";
2
2
  import { packageTemplateFiles as i } from "../../../utils/common-util.js";
3
- const m = "${", c = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
4
- const d = e2, f = g2, x = t([]), b = t([]), h = d.configure.props.base, v = d.pageContext.entity.data;
3
+ const m = "${", c = "}", d = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: d2 }) {
4
+ const g = e2, f = d2, b = t([]), h = t([]), x = g.configure.props.base, v = g.pageContext.entity.data;
5
5
  function w(e3) {
6
- let t2, l2;
7
- console.log("templateShowName", e3);
8
- let o2 = e3;
9
- const a2 = o2.indexOf(m), n2 = o2.indexOf(c);
10
- return console.log("prefixIndex", a2), console.log("suffixIndex", n2), -1 !== a2 && -1 !== n2 ? (a2 > n2 ? (o2 = o2.substring(0, n2) + o2.substring(n2 + 1), console.log("non replacement value === newValue", o2)) : (t2 = o2.substring(a2 + 2, n2), l2 = o2.substring(a2, n2 + 1), console.log("field", t2), console.log("formatStr", l2), b.value.push(t2), console.log("fields", b.value), o2 = o2.replace(l2, ""), console.log("newValue", o2)), w(o2)) : b.value;
6
+ let t2, a2, l2 = e3;
7
+ const o2 = l2.indexOf(m), r2 = l2.indexOf(c);
8
+ return -1 !== o2 && -1 !== r2 ? (o2 > r2 ? l2 = l2.substring(0, r2) + l2.substring(r2 + 1) : (t2 = l2.substring(o2 + 2, r2), a2 = l2.substring(o2, r2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
11
9
  }
12
- function N() {
10
+ function y() {
13
11
  f("close");
14
12
  }
15
- return l(() => {
16
- h.templateFiles && h.templateFiles.length > 0 ? x.value = i(h.templateFiles) : h.templateUuid && h.templateName && x.value.push({ templateUuid: h.templateUuid, templateName: h.templateName }), x.value.forEach((e3) => {
13
+ return a(() => {
14
+ x.templateFiles && x.templateFiles.length > 0 ? b.value = i(x.templateFiles) : x.templateUuid && x.templateName && b.value.push({ templateUuid: x.templateUuid, templateName: x.templateName }), b.value.forEach((e3) => {
17
15
  e3 && e3.templateName && (e3.templateName = function(e4) {
18
16
  const t2 = w(e4);
19
- return console.log("fields", t2), t2.forEach((t3) => {
20
- const l2 = m + t3 + c;
21
- let o2;
22
- -1 !== e4.indexOf(l2) && v.hasOwnProperty(t3) && (o2 = v[t3] ? v[t3] : "", e4 = e4.replace(l2, o2));
17
+ return t2.forEach((t3) => {
18
+ const a2 = m + t3 + c;
19
+ let l2;
20
+ -1 !== e4.indexOf(a2) && v.hasOwnProperty(t3) && (l2 = v[t3] ? v[t3] : "", e4 = e4.replace(a2, l2));
23
21
  }), e4;
24
22
  }(e3.templateName));
25
23
  });
26
24
  }), (e3, t2) => {
27
- const l2 = o("el-table-column"), i2 = o("el-button"), m2 = o("el-table"), c2 = o("el-dialog");
28
- return n(), a(c2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: N }, { default: s(() => [r(m2, { data: x.value, style: { width: "100%" } }, { default: s(() => [r(l2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: s((e4) => [u(p(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), r(l2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: s((t3) => [r(i2, { type: "text", size: "small", onClick: (e4) => {
29
- return l3 = t3.row, void f("export", d.configure, l3);
30
- var l3;
31
- } }, { default: s(() => [u(p(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
25
+ const a2 = l("el-table-column"), i2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
26
+ return r(), o(c2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: s(() => [u(m2, { data: b.value, style: { width: "100%" } }, { default: s(() => [u(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: s((e4) => [p(n(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), u(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: s((t3) => [u(i2, { type: "text", size: "small", onClick: (e4) => {
27
+ return a3 = t3.row, void f("export", g.configure, a3);
28
+ var a3;
29
+ } }, { default: s(() => [p(n(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
32
30
  };
33
31
  } });
34
32
  export {
35
- g as default
33
+ d as default
36
34
  };
@@ -54,7 +54,7 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
54
54
  }
55
55
  return [window];
56
56
  })();
57
- console.log("检测父级滚动节点", e3), b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
57
+ b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
58
  } catch (e3) {
59
59
  console.error(e3);
60
60
  }
@@ -1,96 +1,96 @@
1
- import { defineComponent as e, ref as n, watch as t, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as l, unref as u, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as d, Fragment as g, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
1
+ import { defineComponent as e, ref as t, watch as n, onMounted as o, nextTick as a, resolveComponent as i, createBlock as c, openBlock as u, unref as l, normalizeClass as r, normalizeStyle as s, withCtx as p, createElementBlock as f, createCommentVNode as g, Fragment as d, renderList as m, createElementVNode as b, toDisplayString as y, withModifiers as v, createTextVNode as h } from "vue";
2
2
  import { ElTabs as x, ElTabPane as C } from "element-plus";
3
3
  import T from "../../object-render.vue.js";
4
4
  import { SuperIcon as E } from "agilebuilder-ui";
5
- import { handleAfterInitEvent as k, handleEvent as w } from "../../../../utils/events/event-util.js";
6
- import { $t as N } from "../../../../utils/i18n-util.js";
7
- import { isPromise as V } from "../../../../utils/page-helper-util.js";
8
- const _ = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: _2 }) {
9
- const A = e2, P = n(""), j = n([]);
10
- A.configure.items.forEach((e3) => {
5
+ import { handleAfterInitEvent as k, handleEvent as N } from "../../../../utils/events/event-util.js";
6
+ import { $t as V } from "../../../../utils/i18n-util.js";
7
+ import { isPromise as _ } from "../../../../utils/page-helper-util.js";
8
+ const A = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: A2 }) {
9
+ const P = e2, j = t(""), w = t([]);
10
+ P.configure.items.forEach((e3) => {
11
11
  e3.code || (e3.code = e3.index);
12
- }), P.value = A.configure.props.defaultOpen ? A.configure.props.defaultOpen : 1;
13
- const O = n(null), R = A.configure.runtime ? A.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
14
- function S(e3, n2) {
15
- return w(e3, A.pageContext, A.configure, "before-leave", { activeName: e3, oldActiveName: n2 }) ?? true;
12
+ }), j.value = P.configure.props.defaultOpen ? P.configure.props.defaultOpen : 1;
13
+ const O = t(null), R = P.configure.runtime ? P.configure.runtime : {}, B = R.style, z = R.class, I = R.headerStyle;
14
+ function S(e3, t2) {
15
+ return N(e3, P.pageContext, P.configure, "before-leave", { activeName: e3, oldActiveName: t2 }) ?? true;
16
16
  }
17
- function D(e3, n2) {
18
- const t2 = { pane: e3, ev: n2 }, o2 = e3.paneName;
19
- return A.pageContext.activeTab = o2, A.pageContext.activeLabel = t2.label, w(o2, A.pageContext, A.configure, "tab-click", t2);
17
+ function D(e3, t2) {
18
+ const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
19
+ return P.pageContext.activeTab = o2, P.pageContext.activeLabel = n2.label, N(o2, P.pageContext, P.configure, "tab-click", n2);
20
20
  }
21
21
  function F(e3) {
22
- const n2 = { paneName: e3 };
23
- return A.pageContext.activeTab = e3, w(e3, A.pageContext, A.configure, "tab-change", n2);
22
+ const t2 = { paneName: e3 };
23
+ return P.pageContext.activeTab = e3, N(e3, P.pageContext, P.configure, "tab-change", t2);
24
24
  }
25
25
  function L(e3) {
26
- const n2 = { paneName: e3 }, t2 = w(e3, A.pageContext, A.configure, "tab-remove", n2);
27
- V(t2) ? t2.then((n3) => {
28
- false !== n3 && U(e3);
29
- }) : false !== t2 && U(e3);
26
+ const t2 = { paneName: e3 }, n2 = N(e3, P.pageContext, P.configure, "tab-remove", t2);
27
+ _(n2) ? n2.then((t3) => {
28
+ false !== t3 && U(e3);
29
+ }) : false !== n2 && U(e3);
30
30
  }
31
31
  function U(e3) {
32
- P.value === e3 && A.configure.items.forEach((n2, t2) => {
33
- if (n2.code === e3) {
34
- const e4 = A.configure.items[t2 + 1] || A.configure.items[t2 - 1];
35
- e4 && void 0 !== e4.code && (P.value = e4.code);
32
+ j.value === e3 && P.configure.items.forEach((t2, n2) => {
33
+ if (t2.code === e3) {
34
+ const e4 = P.configure.items[n2 + 1] || P.configure.items[n2 - 1];
35
+ e4 && void 0 !== e4.code && (j.value = e4.code);
36
36
  }
37
- }), j.value.includes(e3) || j.value.push(e3);
37
+ }), w.value.includes(e3) || w.value.push(e3);
38
38
  }
39
39
  function q() {
40
- return w(null, A.pageContext, A.configure, "tab-add");
40
+ return N(null, P.pageContext, P.configure, "tab-add");
41
41
  }
42
- function G(e3, n2) {
43
- const t2 = { paneName: e3, action: n2 };
44
- return w(e3, A.pageContext, A.configure, "edit", t2);
42
+ function G(e3, t2) {
43
+ const n2 = { paneName: e3, action: t2 };
44
+ return N(e3, P.pageContext, P.configure, "edit", n2);
45
45
  }
46
46
  function H() {
47
- const e3 = w(A.configure.items, A.pageContext, A.configure, "tab-reset");
48
- V(e3) ? e3.then((e4) => {
49
- j.value = [];
50
- }) : false !== e3 && (j.value = []);
47
+ const e3 = N(P.configure.items, P.pageContext, P.configure, "tab-reset");
48
+ _(e3) ? e3.then((e4) => {
49
+ w.value = [];
50
+ }) : false !== e3 && (w.value = []);
51
51
  }
52
- return t(j, (e3) => {
52
+ return n(w, (e3) => {
53
53
  e3 && e3.length > 0 ? e3.forEach((e4) => {
54
- const n2 = document.getElementById("tab-" + e4);
55
- n2 && (n2.style.display = "none");
56
- }) : A.configure.items.forEach((e4) => {
57
- const n2 = document.getElementById("tab-" + e4.code);
58
- n2 && (n2.style.display = "");
54
+ const t2 = document.getElementById("tab-" + e4);
55
+ t2 && (t2.style.display = "none");
56
+ }) : P.configure.items.forEach((e4) => {
57
+ const t2 = document.getElementById("tab-" + e4.code);
58
+ t2 && (t2.style.display = "");
59
59
  });
60
60
  }, { deep: true }), o(() => {
61
61
  a(() => {
62
62
  let e3 = [];
63
- A.configure.items.forEach((n2) => {
64
- n2.code && e3.push(document.getElementById("tab-" + n2.code));
65
- }), k(null, A.pageContext, A.configure, { componentRef: O.value, tabsDom: e3, entity: A.pageContext.entity.data, pageData: A.pageContext.entity.page });
63
+ P.configure.items.forEach((t2) => {
64
+ t2.code && e3.push(document.getElementById("tab-" + t2.code));
65
+ }), k(null, P.pageContext, P.configure, { componentRef: O.value, tabsDom: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
66
66
  });
67
- }), _2({ thisRef: O, activeName: P, hiddenPanes: j, resetTab: H, hiddenTabPanes: function(e3) {
67
+ }), A2({ thisRef: O, activeName: j, hiddenPanes: w, resetTab: H, hiddenTabPanes: function(e3) {
68
68
  if (Array.isArray(e3)) {
69
- const n2 = [];
69
+ const t2 = [];
70
70
  e3.forEach((e4) => {
71
- j.value.includes(e4) || n2.push(e4);
72
- }), n2.length > 0 && j.value.push(...n2);
73
- } else console.warn("hiddenTabs expects an array of pane names.");
71
+ w.value.includes(e4) || t2.push(e4);
72
+ }), t2.length > 0 && w.value.push(...t2);
73
+ }
74
74
  }, showTabPanes: function(e3) {
75
- Array.isArray(e3) ? e3.forEach((e4) => {
76
- const n2 = j.value.indexOf(e4);
77
- n2 > -1 && j.value.splice(n2, 1);
78
- }) : console.warn("showTabs expects an array of pane names.");
75
+ Array.isArray(e3) && e3.forEach((e4) => {
76
+ const t2 = w.value.indexOf(e4);
77
+ t2 > -1 && w.value.splice(t2, 1);
78
+ });
79
79
  }, showTabPanesOnly: function(e3) {
80
- const n2 = [];
81
- A.configure.items.forEach((t2) => {
82
- e3.includes(t2.code) || n2.push(t2.code);
83
- }), j.value = [...new Set(n2)];
80
+ const t2 = [];
81
+ P.configure.items.forEach((n2) => {
82
+ e3.includes(n2.code) || t2.push(n2.code);
83
+ }), w.value = [...new Set(t2)];
84
84
  }, hiddenTabPanesOnly: function(e3) {
85
- const n2 = [];
86
- A.configure.items.forEach((t2) => {
87
- e3.includes(t2.code) && n2.push(t2.code);
88
- }), j.value = [...new Set(n2)];
89
- } }), (e3, n2) => {
90
- const t2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: O, modelValue: P.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => P.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(B)), class: r([u(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(g, null, m(A.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(E), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : d("", true), b("span", { style: s(u(I)) }, y(u(N)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === P.value ? (l(true), f(g, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : d("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (l(), c(t2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : d("", true)]), _: 1 })) : d("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
85
+ const t2 = [];
86
+ P.configure.items.forEach((n2) => {
87
+ e3.includes(n2.code) && t2.push(n2.code);
88
+ }), w.value = [...new Set(t2)];
89
+ } }), (e3, t2) => {
90
+ const n2 = i("el-button");
91
+ return u(), c(l(x), { ref_key: "thisRef", ref: O, modelValue: j.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => j.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(l(B)), class: r([l(z), "runtime-page-container-tabs-view"]), closable: e3.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(u(true), f(d, null, m(P.configure.items, (t3, n3) => (u(), c(l(C), { key: n3, label: t3.label, name: t3.code, lazy: !!e3.configure.props.lazy }, { label: p(() => [t3.iconType && t3.iconValue ? (u(), c(l(E), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(l(I)) }, y(l(V)(t3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.code === j.value ? (u(true), f(d, { key: 0 }, m(t3.items, (t4) => (u(), c(T, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e3.configure.props.resetable ? (u(), c(l(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e3.configure.props.resetable ? (u(), c(n2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e3.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
92
  };
93
93
  } });
94
94
  export {
95
- _ as default
95
+ A as default
96
96
  };