super-page-runtime 2.3.43 → 2.3.44-sit1

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 (72) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +136 -136
  2. package/dist/es/components/runtime/utils/events/event-util.js +122 -122
  3. package/dist/es/components/runtime/utils/events/print-label.js +33 -34
  4. package/dist/es/components/runtime/utils/events/standard-event.js +201 -200
  5. package/dist/es/components/runtime/utils/events/validator-util.js +81 -84
  6. package/dist/es/components/runtime/utils/page-init-util.js +41 -43
  7. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  10. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  11. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  13. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  14. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  15. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  16. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  17. package/dist/es/components/runtime/views/assemblys/chart/common/home-chart-condition-render.vue.js +8 -8
  18. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  19. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  21. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +1 -1
  23. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +98 -94
  24. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +75 -74
  25. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +13 -13
  26. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  27. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  29. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  30. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  31. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  32. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +5 -5
  35. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +9 -11
  37. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +167 -165
  39. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  41. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  42. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  44. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +22 -22
  45. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  47. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +65 -51
  48. package/dist/es/components/runtime/views/assemblys/form/image-upload/imageupload-runtime.vue2.js +15 -16
  49. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  50. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +47 -48
  51. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +4 -6
  52. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +7 -9
  53. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -9
  56. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  57. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  59. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  61. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +9 -11
  62. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  66. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  68. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  69. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  70. package/dist/es/components/runtime/views/super-page.vue2.js +132 -141
  71. package/dist/es/style.css +76 -76
  72. package/package.json +2 -2
@@ -1,7 +1,7 @@
1
- import { defineComponent as e, ref as o, computed as r, onMounted as t, watch as n, resolveComponent as i, createElementBlock as a, openBlock as u, normalizeClass as p, normalizeStyle as l, unref as s, withDirectives as c, createVNode as g, createBlock as f, createCommentVNode as m, vShow as d, withCtx as h, Fragment as v, renderList as C, h as y } from "vue";
1
+ import { defineComponent as e, ref as o, computed as r, onMounted as n, watch as t, resolveComponent as i, createElementBlock as a, openBlock as u, normalizeClass as p, normalizeStyle as l, unref as s, withDirectives as c, createVNode as g, createBlock as f, createCommentVNode as m, vShow as d, withCtx as h, Fragment as v, renderList as y, h as C } from "vue";
2
2
  import b from "../common/common-chart-header.vue.js";
3
- import { getSizeConfig as x, getChartDatasFromPage as O, getValueFromVariable as S, caculateShowCondition as w, isPromise as E, setValueForVariableName as T, updateChartDatasourcesByComponent as j } from "../../../../utils/page-helper-util.js";
4
- import { handleChartEvent as $, getCustomFunc as F } from "../../../../utils/events/event-util.js";
3
+ import { getSizeConfig as x, getChartDatasFromPage as O, getValueFromVariable as S, caculateShowCondition as w, isPromise as E, setValueForVariableName as $, updateChartDatasourcesByComponent as T } from "../../../../utils/page-helper-util.js";
4
+ import { handleChartEvent as j, getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
5
  import k from "./group-column.vue.js";
6
6
  import N from "./normal-column.vue.js";
7
7
  import I from "./table-pageination.vue.js";
@@ -9,10 +9,10 @@ import { getSummaryTitleColumn as R, getSummaryDataColumn as H, rowDataToColumn
9
9
  import { deepCopy as B } from "../../../../utils/common-util.js";
10
10
  const M = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: M2 }) {
11
11
  var _a;
12
- const Q = e2, X = Q.configure.runtime ? Q.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null), te = o(X.props.isEnableGroupHeader), ne = o([]), ie = o([]), ae = o([]), ue = o([]), pe = o({}), le = o(false), se = o({}), ce = o({}), ge = o({}), fe = [], me = o({}), de = o({}), he = o(null), ve = r(() => te.value ? ue.value.filter((e3) => !e3.isLeaf || De(pe[e3.columnUuid])) : ie.value.filter((e3) => De(e3))), Ce = o(0);
13
- let ye = [];
12
+ const Q = e2, X = Q.configure.runtime ? Q.configure.runtime : {}, Y = X.style, Z = X.class, ee = X.dataConfig, oe = X.headerInfo ? X.headerInfo : {}, re = o(null), ne = o(X.props.isEnableGroupHeader), te = o([]), ie = o([]), ae = o([]), ue = o([]), pe = o({}), le = o(false), se = o({}), ce = o({}), ge = o({}), fe = [], me = o({}), de = o({}), he = o(null), ve = r(() => ne.value ? ue.value.filter((e3) => !e3.isLeaf || De(pe[e3.columnUuid])) : ie.value.filter((e3) => De(e3))), ye = o(0);
13
+ let Ce = [];
14
14
  if (!Q.configure.props.modelCustom) {
15
- if (te.value) {
15
+ if (ne.value) {
16
16
  const e3 = [];
17
17
  Q.configure.props.groupHeaders.forEach((o2) => {
18
18
  o2.parentUuid || e3.push(o2);
@@ -32,42 +32,42 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
32
32
  let be = 300, xe = x(Q.pageContext, Q.configure);
33
33
  function Oe(e3) {
34
34
  if (e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender) return void (e3.hasRender = true);
35
- const o2 = te.value ? ue.value : ve;
36
- $(Q.pageContext, Q.configure, "beforeUpdateChart", o2, { resultData: e3 }), function(e4) {
35
+ const o2 = ne.value ? ue.value : ve;
36
+ j(Q.pageContext, Q.configure, "beforeUpdateChart", o2, { resultData: e3 }), function(e4) {
37
37
  var _a2;
38
- Je(e4), "service" === Q.configure.props.dataOrigin.dataSource && e4.result ? ye = e4.result[Q.configure.props.dataOrigin.service.serviceDataField] : "variable" === Q.configure.props.dataOrigin.dataSource && (ye = S(Q.pageContext.entity, Q.configure.props.dataOrigin.variable));
39
- if (ye) if (((_a2 = Q.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && Q.configure.props.dataOrigin.itemNumSource) {
38
+ Je(e4), "service" === Q.configure.props.dataOrigin.dataSource && e4.result ? Ce = e4.result[Q.configure.props.dataOrigin.service.serviceDataField] : "variable" === Q.configure.props.dataOrigin.dataSource && (Ce = S(Q.pageContext.entity, Q.configure.props.dataOrigin.variable));
39
+ if (Ce) if (((_a2 = Q.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && Q.configure.props.dataOrigin.itemNumSource) {
40
40
  let o3 = 10;
41
41
  if ("fix" === Q.configure.props.dataOrigin.itemNumSource) o3 = Q.configure.props.dataOrigin.itemNumFix;
42
42
  else if ("variable" === Q.configure.props.dataOrigin.itemNumSource) {
43
43
  o3 = Number(S(Q.pageContext.entity, Q.configure.props.dataOrigin.itemNumVariable));
44
- const r2 = Q.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(ye));
45
- n(() => t2.reduce((e5, o4) => e5[o4], Q.pageContext.entity), (o4) => {
44
+ const r2 = Q.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), n2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(Ce));
45
+ t(() => n2.reduce((e5, o4) => e5[o4], Q.pageContext.entity), (o4) => {
46
46
  Se(o4, i2, e4);
47
47
  });
48
48
  }
49
- Se(o3, ye, e4);
50
- } else we(ye, e4);
51
- }(e3), e3.hasRender = true, ee && (ee.autoRefresh = false), $(Q.pageContext, Q.configure, "afterUpdateChart", o2, { resultData: e3 });
49
+ Se(o3, Ce, e4);
50
+ } else we(Ce, e4);
51
+ }(e3), e3.hasRender = true, ee && (ee.autoRefresh = false), j(Q.pageContext, Q.configure, "afterUpdateChart", o2, { resultData: e3 });
52
52
  }
53
53
  function Se(e3, o2, r2) {
54
54
  var _a2;
55
55
  if (e3 && e3 < o2.length) {
56
- let t2 = [];
57
- if (((_a2 = Q.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) t2 = Q.configure.props.dataOrigin.limitCountColumns;
56
+ let n2 = [];
57
+ if (((_a2 = Q.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) n2 = Q.configure.props.dataOrigin.limitCountColumns;
58
58
  else {
59
59
  ie.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
60
- t2.push(e4.props.base.prop);
60
+ n2.push(e4.props.base.prop);
61
61
  });
62
62
  }
63
- if ((t2 == null ? void 0 : t2.length) > 0) {
64
- const r3 = o2.slice(e3 - 1, o2.length), n2 = {};
63
+ if ((n2 == null ? void 0 : n2.length) > 0) {
64
+ const r3 = o2.slice(e3 - 1, o2.length), t2 = {};
65
65
  let i2 = ie.value[0].props.base.prop;
66
66
  "$index" === i2 && (i2 = ie.value[1].props.base.prop), r3.forEach((e4) => {
67
- t2.forEach((o3) => {
68
- void 0 === n2[o3] && (n2[o3] = 0), n2[o3] = n2[o3] + e4[o3];
67
+ n2.forEach((o3) => {
68
+ void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
69
69
  });
70
- }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), n2[i2] = Q.configure.props.dataOrigin.overItemAlias, o2.push(n2);
70
+ }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = Q.configure.props.dataOrigin.overItemAlias, o2.push(t2);
71
71
  }
72
72
  we(o2, r2);
73
73
  } else we(o2, r2);
@@ -75,34 +75,34 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
75
75
  function we(e3, o2) {
76
76
  var _a2, _b, _c, _d, _e, _f, _g;
77
77
  if (Ee("rowToColumn")) {
78
- if (ae.value = JSON.parse(JSON.stringify(Q.configure.items)), e3 = D(e3, Q.configure, ae.value), !te.value) {
78
+ if (ae.value = JSON.parse(JSON.stringify(Q.configure.items)), e3 = D(e3, Q.configure, ae.value), !ne.value) {
79
79
  const o3 = function(e4, o4, r2) {
80
80
  var _a3, _b2;
81
- const t2 = Q.configure.props.dataOrigin.rowToColumn.titleColumns, n2 = Q.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
81
+ const n2 = Q.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = Q.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
82
82
  if ((!i2 || 0 === i2.length) && r2.length > 0) {
83
- const o5 = [], t3 = _("$GroupColumn", Q.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string");
84
- return ((_b2 = (_a3 = e4.props.dataOrigin) == null ? void 0 : _a3.rowToColumn) == null ? void 0 : _b2.minTitleColumnWidth) && (t3.props.base.minWidth = e4.props.dataOrigin.rowToColumn.minTitleColumnWidth), o5.push(t3), Object.keys(r2[0]).forEach((r3, t4) => {
83
+ const o5 = [], n3 = _("$GroupColumn", Q.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string");
84
+ return ((_b2 = (_a3 = e4.props.dataOrigin) == null ? void 0 : _a3.rowToColumn) == null ? void 0 : _b2.minTitleColumnWidth) && (n3.props.base.minWidth = e4.props.dataOrigin.rowToColumn.minTitleColumnWidth), o5.push(n3), Object.keys(r2[0]).forEach((r3, n4) => {
85
85
  var _a4, _b3, _c2, _d2, _e2, _f2;
86
86
  if ("$GroupColumn" === r3) return;
87
- const n3 = _(r3, r3, t4 + 1, "string");
88
- ((_b3 = (_a4 = e4.props.dataOrigin) == null ? void 0 : _a4.rowToColumn) == null ? void 0 : _b3.minDataColumnWidth) && (n3.props.base.minWidth = e4.props.dataOrigin.rowToColumn.minDataColumnWidth), ((_d2 = (_c2 = e4.props.dataOrigin) == null ? void 0 : _c2.rowToColumn) == null ? void 0 : _d2.cellStyle) && (me.value[n3.props.base.prop] = { cellStyle: (_f2 = (_e2 = e4.props.dataOrigin) == null ? void 0 : _e2.rowToColumn) == null ? void 0 : _f2.cellStyle }), o5.push(n3);
87
+ const t3 = _(r3, r3, n4 + 1, "string");
88
+ ((_b3 = (_a4 = e4.props.dataOrigin) == null ? void 0 : _a4.rowToColumn) == null ? void 0 : _b3.minDataColumnWidth) && (t3.props.base.minWidth = e4.props.dataOrigin.rowToColumn.minDataColumnWidth), ((_d2 = (_c2 = e4.props.dataOrigin) == null ? void 0 : _c2.rowToColumn) == null ? void 0 : _d2.cellStyle) && (me.value[t3.props.base.prop] = { cellStyle: (_f2 = (_e2 = e4.props.dataOrigin) == null ? void 0 : _e2.rowToColumn) == null ? void 0 : _f2.cellStyle }), o5.push(t3);
89
89
  }), o5;
90
90
  }
91
91
  {
92
- const e5 = [...o4].filter((e6) => !t2.includes(e6.props.base.prop) && !n2.includes(e6.props.base.prop)), i3 = new RegExp(`(${n2.join("|")})$`), a2 = /* @__PURE__ */ new Set();
92
+ const e5 = [...o4].filter((e6) => !n2.includes(e6.props.base.prop) && !t2.includes(e6.props.base.prop)), i3 = new RegExp(`(${t2.join("|")})$`), a2 = /* @__PURE__ */ new Set();
93
93
  return r2.forEach((e6) => {
94
94
  Object.keys(e6).forEach((e7) => {
95
- if (n2.some((o5) => e7.includes(o5))) {
95
+ if (t2.some((o5) => e7.includes(o5))) {
96
96
  const o5 = e7.split(i3)[0];
97
97
  a2.add(o5);
98
98
  }
99
99
  });
100
100
  }), a2.forEach((o5) => {
101
- n2.forEach((t3) => {
101
+ t2.forEach((n3) => {
102
102
  var _a4;
103
- let n3 = (_a4 = ie.value.find((e6) => e6.props.base.prop === t3)) == null ? void 0 : _a4.props.base.name;
104
- null == n3 && (n3 = "");
105
- const i4 = _(`${o5}${t3}`, `${o5}${n3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${t3}`] ? "number" : "string");
103
+ let t3 = (_a4 = ie.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a4.props.base.name;
104
+ null == t3 && (t3 = "");
105
+ const i4 = _(`${o5}${n3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${n3}`] ? "number" : "string");
106
106
  e5.push(i4);
107
107
  });
108
108
  }), e5;
@@ -110,7 +110,7 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
110
110
  }(Q.configure, ae.value, e3);
111
111
  ie.value = o3;
112
112
  }
113
- } else Ee("columnToRow") && (te.value || (ie.value = J(Q.configure)), e3 = U(e3, Q.configure));
113
+ } else Ee("columnToRow") && (ne.value || (ie.value = J(Q.configure)), e3 = U(e3, Q.configure));
114
114
  if ((_b = (_a2 = Q.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
115
115
  const o3 = F(Q.pageContext, Q.configure.props.dataOrigin.dataFormatting);
116
116
  if (o3) {
@@ -119,13 +119,13 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
119
119
  }
120
120
  }
121
121
  if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 && W(de.value, e3, Q.pageContext.entity), ((_c = Q.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
122
- "frontend" === Q.configure.pageination.type ? (Ce.value = ye.length, Re(1, Q.configure.pageination.pageSize)) : "backend" === Q.configure.pageination.type && (ne.value = ye, Q.configure.pageination.totalFrom && (Ce.value = e4.result[Q.configure.pageination.totalFrom]));
123
- }(o2) : ne.value = e3, ((_e = (_d = Q.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = Q.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
122
+ "frontend" === Q.configure.pageination.type ? (ye.value = Ce.length, Re(1, Q.configure.pageination.pageSize)) : "backend" === Q.configure.pageination.type && (te.value = Ce, Q.configure.pageination.totalFrom && (ye.value = e4.result[Q.configure.pageination.totalFrom]));
123
+ }(o2) : te.value = e3, ((_e = (_d = Q.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = Q.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
124
124
  const e4 = Q.configure.props.highOrder.groupField;
125
- ne.value = function(e5, o3) {
125
+ te.value = function(e5, o3) {
126
126
  var _a3, _b2;
127
127
  if (0 === ge.value.length) return e5;
128
- const r2 = [], t2 = (_a3 = Q.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), n2 = (_b2 = Q.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
128
+ const r2 = [], n2 = (_a3 = Q.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b2 = Q.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
129
129
  e5.forEach((e6) => {
130
130
  const r3 = o3.map((o4) => e6[o4]).join("|");
131
131
  i2[r3] || (i2[r3] = []), i2[r3].push(e6);
@@ -133,16 +133,16 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
133
133
  const a2 = Object.values(i2);
134
134
  for (let e6 = 0; e6 < a2.length; e6++) {
135
135
  const o4 = a2[e6], i3 = {};
136
- n2 == null ? void 0 : n2.forEach((e7) => {
137
- const r3 = e7.props.base.prop, t3 = z(ge.value[r3], o4, r3, Q.pageContext);
138
- i3[r3] = t3;
139
- }), r2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
136
+ t2 == null ? void 0 : t2.forEach((e7) => {
137
+ const r3 = e7.props.base.prop, n3 = z(ge.value[r3], o4, r3, Q.pageContext, ve.value);
138
+ i3[r3] = n3;
139
+ }), r2.push(...o4), n2 == null ? void 0 : n2.forEach((e7) => {
140
140
  const r3 = e7.props.base.prop;
141
141
  i3[r3] = A(e7.props.base.summaryTitle, o4[0]);
142
142
  }), r2.push(i3), fe.push(r2.length - 1);
143
143
  }
144
144
  return r2;
145
- }(ne.value, e4);
145
+ }(te.value, e4);
146
146
  }
147
147
  !function(e4) {
148
148
  if (Q.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
@@ -154,25 +154,25 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
154
154
  function Ee(e3) {
155
155
  return Q.configure.props.dataOrigin.transition === e3 && Q.configure.props.dataOrigin[e3].titleColumns && Q.configure.props.dataOrigin[e3].titleColumns.length > 0 && Q.configure.props.dataOrigin[e3].dataColumns && Q.configure.props.dataOrigin[e3].dataColumns.length > 0;
156
156
  }
157
- function Te(e3) {
157
+ function $e(e3) {
158
158
  const o2 = me.value[e3.column.property] ? me.value[e3.column.property].titleStyle : null, r2 = Y == null ? void 0 : Y.titleStyle;
159
159
  return V(e3, { cellTitleStyle: o2, titleStyle: r2 }, Q);
160
160
  }
161
- function je(e3) {
161
+ function Te(e3) {
162
162
  return G(e3, fe, Q);
163
163
  }
164
- function $e(e3) {
164
+ function je(e3) {
165
165
  const o2 = me.value[e3.column.property] ? me.value[e3.column.property].cellStyle : null;
166
166
  return K(e3, o2, Q);
167
167
  }
168
- xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")), t(() => {
168
+ xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")), n(() => {
169
169
  const e3 = O(Q.pageContext, Q.configure);
170
170
  if (e3) Oe(e3);
171
171
  else if ("variable" === Q.configure.props.dataOrigin.dataSource) {
172
172
  !function() {
173
173
  const e4 = Q.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
174
- n(() => o3.reduce((e5, o4) => e5[o4], Q.pageContext.entity), (e5) => {
175
- e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (ne.value = [], Q.configure.props.modelCustom ? Je(null) : te.value ? ue.value = Q.configure.props.groupHeaders : ie.value = Q.configure.items);
174
+ t(() => o3.reduce((e5, o4) => e5[o4], Q.pageContext.entity), (e5) => {
175
+ e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (te.value = [], Q.configure.props.modelCustom ? Je(null) : ne.value ? ue.value = Q.configure.props.groupHeaders : ie.value = Q.configure.items);
176
176
  });
177
177
  }();
178
178
  const o2 = S(Q.pageContext.entity, Q.configure.props.dataOrigin.variable);
@@ -180,27 +180,28 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
180
180
  }
181
181
  });
182
182
  const Fe = (e3) => {
183
- const { columns: o2, data: r2 } = e3, t2 = [];
183
+ const { columns: o2, data: r2 } = e3, n2 = [];
184
184
  return o2.forEach((e4, o3) => {
185
- if (se.value[e4.property]) {
186
- const n2 = se.value[e4.property].label;
187
- return void (t2[o3] = y("div", {}, [A(n2, r2)]));
188
- }
189
- if (ce.value[e4.property]) {
190
- const n2 = r2.filter((e5, o4) => !fe.includes(o4));
191
- t2[o3] = z(ce.value[e4.property], n2, e4.property, Q.pageContext);
185
+ if (se.value[e4.property] || "index" === e4.type && se.value.$index) {
186
+ let t2 = e4.property;
187
+ "index" === e4.type && (t2 = "$index");
188
+ const i2 = se.value[t2].label;
189
+ n2[o3] = C("div", {}, [A(i2, r2)]);
190
+ } else if (ce.value[e4.property]) {
191
+ const t2 = r2.filter((e5, o4) => !fe.includes(o4));
192
+ n2[o3] = z(ce.value[e4.property], t2, e4.property, Q.pageContext, ve.value);
192
193
  }
193
- }), t2;
194
+ }), n2;
194
195
  };
195
- function ke({ row: e3, column: o2, rowIndex: r2, columnIndex: t2 }) {
196
- const n2 = o2.property, i2 = Q.configure.props.highOrder;
196
+ function ke({ row: e3, column: o2, rowIndex: r2, columnIndex: n2 }) {
197
+ const t2 = o2.property, i2 = Q.configure.props.highOrder;
197
198
  if (i2.scopeFunc) {
198
- const n3 = F(Q.pageContext, i2.scopeFunc);
199
- if (n3) {
200
- const i3 = n3.apply(n3, [{ tableData: ne.value, row: e3, column: o2, rowIndex: r2, columnIndex: t2 }]);
199
+ const t3 = F(Q.pageContext, i2.scopeFunc);
200
+ if (t3) {
201
+ const i3 = t3.apply(t3, [{ tableData: te.value, row: e3, column: o2, rowIndex: r2, columnIndex: n2 }]);
201
202
  if (i3) return i3;
202
203
  }
203
- } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(n2)) return L(e3, o2, r2, n2, ne.value);
204
+ } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2)) return L(e3, o2, r2, t2, te.value);
204
205
  }
205
206
  function Ne(e3, o2) {
206
207
  "frontend" === Q.configure.pageination.type ? Re(e3, o2) : He(e3, o2);
@@ -209,10 +210,10 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
209
210
  "frontend" === Q.configure.pageination.type ? Re(e3, o2) : He(e3, o2);
210
211
  }
211
212
  function Re(e3, o2) {
212
- ye && (ne.value = ye.slice((e3 - 1) * o2, e3 * o2));
213
+ Ce && (te.value = Ce.slice((e3 - 1) * o2, e3 * o2));
213
214
  }
214
215
  function He(e3, o2) {
215
- Q.configure.pageination.currentPageSet && T(Q.pageContext.entity, Q.configure.pageination.currentPageSet, e3), Q.configure.pageination.pageSizeSet && T(Q.pageContext.entity, Q.configure.pageination.pageSizeSet, o2), j(Q.pageContext, Q.configure.uuid);
216
+ Q.configure.pageination.currentPageSet && $(Q.pageContext.entity, Q.configure.pageination.currentPageSet, e3), Q.configure.pageination.pageSizeSet && $(Q.pageContext.entity, Q.configure.pageination.pageSizeSet, o2), T(Q.pageContext, Q.configure.uuid);
216
217
  }
217
218
  function De(e3) {
218
219
  const o2 = e3.showCondition;
@@ -231,19 +232,19 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
231
232
  }
232
233
  function Ue(e3, o2, r2) {
233
234
  e3.forEach((e4) => {
234
- const t2 = e4.props.base.prop, n2 = e4.props.base.name;
235
- let i2 = { name: t2, label: n2, i18nKey: n2 };
235
+ const n2 = e4.props.base.prop, t2 = e4.props.base.name;
236
+ let i2 = { name: n2, label: t2, i18nKey: t2 };
236
237
  e4.children && e4.children.length > 0 && (i2.children = [], Ue(e4.children, i2.children, r2)), e4.props.format && e4.props.format.type && r2.push(e4), o2.push(i2);
237
238
  });
238
239
  }
239
240
  return M2({ updateChartDatas: Oe, exportChart: function() {
240
241
  let e3 = [], o2 = [];
241
- o2 = te.value ? Q.configure.props.groupHeaders : ve.value;
242
+ o2 = ne.value ? Q.configure.props.groupHeaders : ve.value;
242
243
  let r2 = [];
243
244
  Ue(o2, e3, r2);
244
245
  return { isTable: true, dataArr: function(e4) {
245
246
  let o3 = [];
246
- ne.value && (o3 = B(ne.value), o3.forEach((o4) => {
247
+ te.value && (o3 = B(te.value), o3.forEach((o4) => {
247
248
  e4.forEach((e5) => {
248
249
  const r3 = q(o4, e5.props.format, e5, Q.pageContext, Q.configure);
249
250
  o4[e5.props.base.prop] = r3;
@@ -252,8 +253,8 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
252
253
  return o3;
253
254
  }(r2), columns: e3, title: oe == null ? void 0 : oe.title };
254
255
  } }), (o2, r2) => {
255
- const t2 = i("el-table");
256
- return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex amb-chart-table"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(t2, { ref_key: "gridRef", ref: he, data: ne.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": Te, "row-style": je, "cell-style": $e, border: true, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": Fe, "span-method": ke }, { default: h(() => [te.value ? (u(true), a(v, { key: 0 }, C(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(N, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: pe.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, C(ve.value, (o3, r3) => (u(), f(N, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(I, { key: 0, configure: e2.configure, "table-data": ne.value, total: Ce.value, onPageChange: Ne, onPageSizeChange: Ie }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
256
+ const n2 = i("el-table");
257
+ return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex amb-chart-table"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: re, headerInfo: s(oe), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(oe).showHeader || e2.pageContext.showHomepageSearch]]), g(n2, { ref_key: "gridRef", ref: he, data: te.value, style: { width: "100%" }, "max-height": s(be), "header-cell-style": $e, "row-style": Te, "cell-style": je, border: true, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": Fe, "span-method": ke }, { default: h(() => [ne.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(N, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: pe.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(ve.value, (o3, r3) => (u(), f(N, { key: r3, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"]))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (u(), f(I, { key: 0, configure: e2.configure, "table-data": te.value, total: ye.value, onPageChange: Ne, onPageSizeChange: Ie }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
257
258
  };
258
259
  } });
259
260
  export {
@@ -1,20 +1,20 @@
1
- import { defineComponent as e, ref as o, createBlock as n, openBlock as r, resolveDynamicComponent as t, mergeProps as l, nextTick as u, markRaw as a } from "vue";
2
- import { getRuntimeComponentByName as c } from "../../../utils/assemblys-config.js";
3
- import s from "../error-render.vue.js";
4
- const m = e({ __name: "event-call-component", setup(e2, { expose: m2 }) {
5
- const p = o(null), v = o({}), f = () => {
6
- p.value = null, v.value = {};
1
+ import { defineComponent as e, ref as o, createBlock as n, openBlock as t, resolveDynamicComponent as l, mergeProps as u, nextTick as r, markRaw as a } from "vue";
2
+ import { getRuntimeComponentByName as s } from "../../../utils/assemblys-config.js";
3
+ import c from "../error-render.vue.js";
4
+ const v = e({ __name: "event-call-component", setup(e2, { expose: v2 }) {
5
+ const m = o(null), p = o({}), f = () => {
6
+ m.value = null, p.value = {};
7
7
  };
8
- return m2({ renderComponent: async function(e3, o2) {
8
+ return v2({ renderComponent: async function(e3, o2) {
9
9
  try {
10
- p.value = null, v.value = o2 || {}, await u();
11
- const n2 = c(e3);
12
- p.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? s : a(n2);
10
+ m.value = null, p.value = o2 || {}, await r();
11
+ const n2 = s(e3);
12
+ m.value = !n2 || "object" != typeof n2 && "function" != typeof n2 ? c : a(n2);
13
13
  } catch (e4) {
14
- console.error("event-call-component renderedComponent error", e4), p.value = s;
14
+ m.value = c;
15
15
  }
16
- } }), (e3, o2) => (r(), n(t(p.value), l(v.value, { onDestroy: f }), null, 16));
16
+ } }), (e3, o2) => (t(), n(l(m.value), u(p.value, { onDestroy: f }), null, 16));
17
17
  } });
18
18
  export {
19
- m as default
19
+ v as default
20
20
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as n, createVNode as i, createTextVNode as p, toDisplayString as r } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as u, withCtx as i, createVNode as n, createTextVNode as p, toDisplayString as r } from "vue";
2
2
  import { packageTemplateFiles as s } from "../../../utils/common-util.js";
3
3
  import { ElMessage as m } from "element-plus";
4
4
  const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object, required: true } }, emits: ["export", "close"], setup(e2, { emit: g2 }) {
@@ -7,7 +7,7 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
7
7
  function w(e3) {
8
8
  let t2, a2, l2 = e3;
9
9
  const o2 = l2.indexOf(c), u2 = l2.indexOf(d);
10
- return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), h.value, l2 = l2.replace(a2, "")), w(l2)) : h.value;
10
+ return -1 !== o2 && -1 !== u2 ? (o2 > u2 ? l2 = l2.substring(0, u2) + l2.substring(u2 + 1) : (t2 = l2.substring(o2 + 2, u2), a2 = l2.substring(o2, u2 + 1), h.value.push(t2), l2 = l2.replace(a2, "")), w(l2)) : h.value;
11
11
  }
12
12
  function N(e3) {
13
13
  x("export", f.configure, e3);
@@ -17,18 +17,16 @@ const c = "${", d = "}", g = e({ __name: "export-form-report-dialog", props: { c
17
17
  }
18
18
  return a(() => {
19
19
  C.templateFiles && C.templateFiles.length > 0 ? b.value = s(C.templateFiles, f.pageContext, f.configure) : C.templateUuid && C.templateName && b.value.push({ templateUuid: C.templateUuid, templateName: C.templateName }), b.value.forEach((e3) => {
20
- e3 && e3.templateName && (e3.templateName = function(e4) {
21
- const t2 = w(e4);
22
- return t2.forEach((t3) => {
23
- const a2 = c + t3 + d;
24
- let l2;
25
- -1 !== e4.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, t3) && (l2 = y[t3] ? y[t3] : "", e4 = e4.replace(a2, l2));
26
- }), e4;
27
- }(e3.templateName));
20
+ var t2;
21
+ e3 && e3.templateName && (e3.templateName = (w(t2 = e3.templateName).forEach((e4) => {
22
+ const a2 = c + e4 + d;
23
+ let l2;
24
+ -1 !== t2.indexOf(a2) && Object.prototype.hasOwnProperty.call(y, e4) && (l2 = y[e4] ? y[e4] : "", t2 = t2.replace(a2, l2));
25
+ }), t2));
28
26
  }), b.value && 0 !== b.value.length || (m({ message: "无符合条件可导出的模板!", type: "warning" }), x("close")), 1 === (b == null ? void 0 : b.value.length) ? (N(b.value[0]), x("close")) : v.value = true;
29
27
  }), (e3, t2) => {
30
28
  const a2 = l("el-table-column"), s2 = l("el-button"), m2 = l("el-table"), c2 = l("el-dialog");
31
- return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: n(() => [i(m2, { data: b.value, style: { width: "100%" } }, { default: n(() => [i(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: n((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), i(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: n((t3) => [i(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: n(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 1 }, 8, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
29
+ return u(), o(c2, { modelValue: v.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => v.value = e4), "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), onClose: O }, { default: i(() => [n(m2, { data: b.value, style: { width: "100%" } }, { default: i(() => [n(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: i((e4) => [p(r(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), n(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: i((t3) => [n(s2, { type: "text", size: "small", onClick: (e4) => N(t3.row), loading: void 0 !== f.pageContext.canClick && void 0 !== f.pageContext.clickUuid && !f.pageContext.canClick && f.pageContext.clickUuid === f.configure.uuid }, { default: i(() => [p(r(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick", "loading"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["modelValue", "title"]);
32
30
  };
33
31
  } });
34
32
  export {
@@ -27,7 +27,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
27
27
  p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
28
28
  });
29
29
  var l3;
30
- } }, { default: u(() => [s(y2)]), _: 1 }, 8, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
30
+ } }, { default: u(() => [s(y2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
31
31
  };
32
32
  } });
33
33
  export {
@@ -25,9 +25,9 @@ const R = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
25
25
  ((_b2 = (_a2 = z.configure.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.openCardConditions) && z.configure.props.base.openCardConditions.length > 0 && (_(z.pageContext, z.configure.props.base.openCardConditions) ? A.value = true : A.value = false), t(() => {
26
26
  j(null, z.pageContext, z.configure, { componentRef: q.value, entity: z.pageContext.entity.data, pageData: z.pageContext.entity.page });
27
27
  });
28
- }), R2({ isCardContextShow: A }), (o2, n2) => {
29
- const i2 = r("el-link");
30
- return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(e2.configure.items, (o3, n3) => (a(), s(T, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: g(() => [f("div", { class: "yx-card-box-view-header", onClick: J }, [f("div", { class: "yx-card-box-view-title", style: u(l(H)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (a(), s(l(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(D.value), 1)], 4), E.value ? (a(), s(i2, { key: 0, underline: false, icon: A.value ? l(k) : l(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
28
+ }), R2({ isCardContextShow: A }), (e3, o2) => {
29
+ const n2 = r("el-link");
30
+ return a(), s(l(b), { ref_key: "thisRef", ref: q, style: u(l(F)), "data-collapse": String(A.value), class: p(["yx-card-box-view-main", l(G)]) }, c({ default: g(() => [f("div", { class: "yx-card-box-view-context", style: u(l(I)) }, [(a(true), d(m, null, y(e3.configure.items, (o3, n3) => (a(), s(T, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: g(() => [f("div", { class: "yx-card-box-view-header", onClick: J }, [f("div", { class: "yx-card-box-view-title", style: u(l(H)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (a(), s(l(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : x("", true), v(" " + C(D.value), 1)], 4), E.value ? (a(), s(n2, { key: 0, underline: false, icon: A.value ? l(k) : l(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
31
31
  };
32
32
  } });
33
33
  export {
@@ -11,9 +11,9 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
11
11
  o(() => {
12
12
  j(null, _2.pageContext, _2.configure, { componentRef: b.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
13
13
  });
14
- }), (t2, n2) => {
15
- const o2 = l("SuperIcon"), j2 = l("el-collapse-item"), _3 = l("el-collapse");
16
- return u(), i(_3, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": n2[0] || (n2[0] = (e3) => s(h) ? h.value = e3 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e2.configure.items, (t3, n3) => (u(), i(j2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(o2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n4) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
14
+ }), (e3, t2) => {
15
+ const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
16
+ return u(), i(j2, { ref_key: "thisRef", ref: b, modelValue: a(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => s(h) ? h.value = e4 : null), style: p(a(O)), accordion: a(T), class: r(a(R)) }, { default: c(() => [(u(true), f(g, null, m(e3.configure.items, (t3, l2) => (u(), i(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([a(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (u(), i(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(a(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(u(true), f(g, null, m(t3.items, (t4, n3) => (u(), i(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
17
17
  };
18
18
  } });
19
19
  export {
@@ -17,9 +17,9 @@ const h = e({ __name: "container-runtime", props: { pageContext: {}, configure:
17
17
  I.value = false;
18
18
  }, openRightAside: function() {
19
19
  I.value = true;
20
- } }), (t2, n2) => {
21
- const l2 = o("el-aside"), _2 = o("el-icon"), h3 = o("el-main"), A2 = o("el-container");
22
- return i(), u(A2, { ref_key: "thisRef", ref: L }, { default: s(() => [e2.configure.props.useLeft ? a((i(), u(l2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e2.configure.props.useLeft && e2.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: n2[0] || (n2[0] = (e3) => D.value = !D.value) }, [c(_2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(h3, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? a((i(), u(l2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e2.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
20
+ } }), (e3, t2) => {
21
+ const n2 = o("el-aside"), l2 = o("el-icon"), _2 = o("el-main"), h3 = o("el-container");
22
+ return i(), u(h3, { ref_key: "thisRef", ref: L }, { default: s(() => [e3.configure.props.useLeft ? a((i(), u(n2, { key: 0, style: p(g(b)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.leftAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, D.value]]) : r("", true), e3.configure.props.useLeft && e3.configure.props.showLeftAsideCollapseIcon ? (i(), f("div", { key: 1, class: "aside-collapse-btn aside-collapse-btn--left", onClick: t2[0] || (t2[0] = (e4) => D.value = !D.value) }, [c(l2, null, { default: s(() => [D.value ? (i(), u(g(x), { key: 0 })) : (i(), u(g(C), { key: 1 }))]), _: 1 })])) : r("", true), c(_2, { style: p(g(S)), class: v(g(w)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.items, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? a((i(), u(n2, { key: 2, style: p(g(j)) }, { default: s(() => [(i(true), f(d, null, y(e3.configure.rightAslides, (t3, n3) => (i(), u(k, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])), [[m, I.value]]) : r("", true)]), _: 1 }, 512);
23
23
  };
24
24
  } });
25
25
  export {
@@ -19,7 +19,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
19
19
  B.value = l2 ?? 0, R(n2 || i2 || false, e3);
20
20
  }
21
21
  } catch (e3) {
22
- console.error(e3);
23
22
  }
24
23
  }, R = (e3, t2) => {
25
24
  var _a;
@@ -56,7 +55,6 @@ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
56
55
  })();
57
56
  b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
58
57
  } catch (e3) {
59
- console.error(e3);
60
58
  }
61
59
  });
62
60
  }, 100);
@@ -15,9 +15,9 @@ const _ = e({ __name: "flex-runtime", props: { pageContext: {}, configure: {} },
15
15
  s(() => {
16
16
  v(null, _2.pageContext, _2.configure, { componentRef: j.value, entity: _2.pageContext.entity.data, pageData: _2.pageContext.entity.page });
17
17
  });
18
- }), (t2, n2) => {
19
- const s2 = l("el-col"), C2 = l("el-row");
20
- return o(), i(C2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e2.configure.items, (t3, n3) => c((o(), i(s2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
18
+ }), (e3, t2) => {
19
+ const n2 = l("el-col"), s2 = l("el-row");
20
+ return o(), i(s2, { ref_key: "thisRef", ref: j, justify: b.value.flexJustify, gutter: b.value.flexGutter, align: b.value.alignItems, style: u([{ display: "flex" }, r(h)]), class: a(r(w)) }, { default: f(() => [(o(true), p(g, null, m(e3.configure.items, (t3, s3) => c((o(), i(n2, { key: t3.uuid, style: u(t3.itemStyle), span: t3.flexSpan }, { default: f(() => [y(d, { pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"])]), _: 2 }, 1032, ["style", "span"])), [[x, t3._dynamicShowFlag]])), 128))]), _: 1 }, 8, ["justify", "gutter", "align", "style", "class"]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -15,9 +15,9 @@ const P = e({ __name: "form-runtime", props: { pageContext: {}, configure: {} },
15
15
  o(() => {
16
16
  C(null, P2.pageContext, P2.configure, "afterFormLoad", { componentRef: R.value, entity: P2.pageContext.entity.data, pageData: P2.pageContext.entity.page });
17
17
  });
18
- }), (t2, i2) => {
19
- const o2 = s("el-form");
20
- return l(), n("div", null, [r(o2, { ref_key: "thisRef", ref: R, "label-width": p(S).labelWidth, "label-position": O.value, size: p(S).componentSize, "require-asterisk-position": h.value, style: u(_.value), class: a(p(w)) }, { default: f(() => [p(S).formTitle ? (l(), n("div", { key: 0, class: "amb-widget-form-title", style: u(z.value) }, g(p(S).formTitle), 5)) : m("", true), (l(true), n(c, null, d(e2.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "require-asterisk-position", "style", "class"])]);
18
+ }), (e3, t2) => {
19
+ const i2 = s("el-form");
20
+ return l(), n("div", null, [r(i2, { ref_key: "thisRef", ref: R, "label-width": p(S).labelWidth, "label-position": O.value, size: p(S).componentSize, "require-asterisk-position": h.value, style: u(_.value), class: a(p(w)) }, { default: f(() => [p(S).formTitle ? (l(), n("div", { key: 0, class: "amb-widget-form-title", style: u(z.value) }, g(p(S).formTitle), 5)) : m("", true), (l(true), n(c, null, d(e3.configure.items, (t3, i3) => (l(), y(v, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["label-width", "label-position", "size", "require-asterisk-position", "style", "class"])]);
21
21
  };
22
22
  } });
23
23
  export {
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as r, openBlock as i, normalizeStyle as a, normalizeClass as s, unref as l } from "vue";
2
- import { handleAfterInitEvent as c } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createElementBlock as i, openBlock as r, normalizeStyle as s, normalizeClass as a, unref as c } from "vue";
2
+ import { handleAfterInitEvent as l } from "../../../../utils/events/event-util.js";
3
3
  import { getSystemFrontendUrl as u } from "agilebuilder-ui/src/utils/common-util.js";
4
4
  const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, configure: {}, indexObj: {}, selectWidget: {} }, setup(e2, { expose: g2 }) {
5
5
  const p = e2, m = t(null), d = p.configure.runtime ? p.configure.runtime : {}, y = d.style, w = d.class, h = t();
@@ -26,7 +26,7 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
26
26
  t2(n3);
27
27
  } else n2(new Error("System not found"));
28
28
  }).catch((e4) => {
29
- console.error("Failed to load page for iframe:", e4), n2(e4);
29
+ n2(e4);
30
30
  });
31
31
  });
32
32
  }
@@ -35,11 +35,11 @@ const f = ["src"], g = e({ __name: "iframe-runtime", props: { pageContext: {}, c
35
35
  }
36
36
  return n(() => {
37
37
  o(() => {
38
- c(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
38
+ l(null, p.pageContext, p.configure, { componentRef: m.value, entity: p.pageContext.entity.data, pageData: p.pageContext.entity.page });
39
39
  });
40
40
  }), g2({ changeIframeSrc: b, changeIframeSrcByPage: v, getPagePathByCode: P, refreshIframe: function() {
41
41
  m.value && m.value.contentWindow.location.reload();
42
- } }), (e3, t2) => (i(), r("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: s(["amb-widget-container-iframe", l(w)]), style: a(l(y)) }, null, 14, f));
42
+ } }), (e3, t2) => (r(), i("iframe", { ref_key: "thisRef", ref: m, src: h.value, class: a(["amb-widget-container-iframe", c(w)]), style: s(c(y)) }, null, 14, f));
43
43
  } });
44
44
  export {
45
45
  g as default
@@ -86,9 +86,9 @@ const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} },
86
86
  _.configure.items.forEach((t2) => {
87
87
  e3.includes(t2.code) && n2.push(t2.code);
88
88
  }), I.value = [...new Set(n2)];
89
- } }), (n2, t2) => {
90
- const o2 = i("el-button");
91
- return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e3) => A.value = e3), type: e2.configure.props.cardType, "tab-position": e2.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "runtime-page-container-tabs-view"]), closable: e2.configure.props.closable, "before-leave": S, onTabClick: D, onTabChange: F, onTabRemove: L, onTabAdd: q, onEdit: G }, { default: p(() => [(l(true), f(d, null, m(_.configure.items, (n3, t3) => (l(), c(u(C), { key: t3, label: n3.label, name: n3.code, lazy: !!e2.configure.props.lazy }, { label: p(() => [n3.iconType && n3.iconValue ? (l(), c(u(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e2.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e2.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128)), e2.configure.props.resetable ? (l(), c(u(C), { key: 0, disabled: "", name: "-1" }, { label: p(() => [e2.configure.props.resetable ? (l(), c(o2, { key: 0, type: "text", circle: "", onClick: v(H, ["stop"]) }, { default: p(() => [h(y(e2.configure.props.resetButtonName || "重置"), 1)]), _: 1 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
89
+ } }), (e3, n2) => {
90
+ const t2 = i("el-button");
91
+ return l(), c(u(x), { ref_key: "thisRef", ref: P, modelValue: A.value, "onUpdate:modelValue": n2[0] || (n2[0] = (e4) => A.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: s(u(R)), class: r([u(B), "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(d, null, m(_.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(k), { key: 0, iconType: n3.iconType, iconValue: n3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : g("", true), b("span", { style: s(u(z)) }, y(u(O)(n3.label)), 5)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || n3.code === A.value ? (l(true), f(d, { key: 0 }, m(n3.items, (n4) => (l(), c(T, { key: n4.uuid, pageContext: e3.pageContext, configure: n4 }, null, 8, ["pageContext", "configure"]))), 128)) : g("", 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 })) : g("", true)]), _: 1 })) : g("", true)]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class", "closable"]);
92
92
  };
93
93
  } });
94
94
  export {