super-page-runtime 2.3.18 → 2.3.19-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 (92) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
  2. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
  4. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
  5. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
  6. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
  7. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
  8. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  9. package/dist/es/components/runtime/utils/charts/chart-util.js +73 -64
  10. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  11. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  12. package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
  13. package/dist/es/components/runtime/utils/events/standard-event.js +591 -554
  14. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  15. package/dist/es/components/runtime/utils/page-init-util.js +5 -7
  16. package/dist/es/components/runtime/utils/page-store.js +10 -10
  17. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  19. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  20. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  21. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  23. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  25. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  26. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  27. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  28. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  32. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
  33. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
  34. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  35. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
  36. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  37. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  38. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  39. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  40. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  41. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  42. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  43. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  44. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  45. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  46. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +36 -24
  48. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  49. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
  50. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  52. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  55. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +37 -37
  56. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  59. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  61. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  62. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  63. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  64. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +4 -5
  66. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  67. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  69. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  70. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  71. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
  72. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
  73. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
  74. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
  75. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
  76. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  77. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
  78. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  79. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
  80. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  81. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  82. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
  84. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  85. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  86. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  87. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  88. package/dist/es/components/runtime/views/super-page.vue2.js +165 -161
  89. package/dist/es/i18n/langs/cn.js +1 -1
  90. package/dist/es/i18n/langs/en.js +1 -1
  91. package/dist/es/style.css +134 -86
  92. package/package.json +2 -2
@@ -1,125 +1,129 @@
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";
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 y, h as C } from "vue";
2
2
  import b from "../common/common-chart-header.vue.js";
3
3
  import { getSizeConfig as x, getChartDatasFromPage as O, getValueFromVariable as S, caculateShowCondition as w, isPromise as E, setValueForVariableName as j, updateChartDatasourcesByComponent as $ } from "../../../../utils/page-helper-util.js";
4
- import { getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
- import k from "./group-column.vue.js";
4
+ import { handleChartEvent as F, getCustomFunc as k } from "../../../../utils/events/event-util.js";
5
+ import N from "./group-column.vue.js";
6
6
  import I from "./normal-column.vue.js";
7
- import N from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as T, rowDataToColumn as H, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as A, getNewColumnConfig as D, summaryStatistics as J, replacePlaceholders as P, getIndexColumn as U, getHeaderCellStyleUtil as V, getRowStyleUtil as G, getCellStyleUtil as K, mergeRowByProperty as L, formatColContent as q } from "./chart-table-util.js";
9
- import { deepCopy as B } from "../../../../utils/common-util.js";
10
- const M = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: M2 }) {
7
+ import R from "./table-pageination.vue.js";
8
+ import { getSummaryTitleColumn as T, getSummaryDataColumn as H, rowDataToColumn as D, getColumnToRowTableConfig as J, colDataToRow as U, computeFormula as _, getNewColumnConfig as z, summaryStatistics as A, replacePlaceholders as P, getIndexColumn as V, getHeaderCellStyleUtil as G, getRowStyleUtil as K, getCellStyleUtil as L, mergeRowByProperty as q, formatColContent as B } from "./chart-table-util.js";
9
+ import { deepCopy as M } from "../../../../utils/common-util.js";
10
+ const Q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: Q2 }) {
11
11
  var _a;
12
- const Q = e2, W = Q.configure.runtime ? Q.configure.runtime : {}, X = W.style, Y = W.class, Z = W.dataConfig, ee = W.headerInfo ? W.headerInfo : {}, oe = o(null), re = o(W.props.isEnableGroupHeader), ne = o([]), te = o([]), ie = o([]), ae = o({}), ue = o(false), pe = o({}), le = o({}), se = o({}), ce = [], ge = o({}), fe = o({}), me = o(null), de = r(() => re.value ? ie.value.filter((e3) => !e3.isLeaf || Te(ae[e3.columnUuid])) : te.value.filter((e3) => Te(e3))), he = o(0);
13
- let ve = [];
14
- if (!Q.configure.props.modelCustom) {
15
- if (re.value) {
12
+ const W = e2, X = W.configure.runtime ? W.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))), ye = o(0);
13
+ let Ce = [];
14
+ if (!W.configure.props.modelCustom) {
15
+ if (te.value) {
16
16
  const e3 = [];
17
- Q.configure.props.groupHeaders.forEach((o2) => {
17
+ W.configure.props.groupHeaders.forEach((o2) => {
18
18
  o2.parentUuid || e3.push(o2);
19
- }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), ie.value = e3, function() {
20
- if (Q.configure.props.base.showIndex) {
21
- ie.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
- const e4 = U();
23
- e4 && (ae.value.$index = e4);
19
+ }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), ue.value = e3, function() {
20
+ if (W.configure.props.base.showIndex) {
21
+ ue.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
+ const e4 = V();
23
+ e4 && (pe.value.$index = e4);
24
24
  }
25
25
  }();
26
- } else te.value = Q.configure.items;
27
- (_a = Q.configure.items) == null ? void 0 : _a.forEach((e3) => {
28
- ae.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (ge.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (fe.value[e3.props.base.prop] = e3.formula);
26
+ } else ie.value = W.configure.items;
27
+ (_a = W.configure.items) == null ? void 0 : _a.forEach((e3) => {
28
+ pe.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (me.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (de.value[e3.props.base.prop] = e3.formula);
29
29
  });
30
30
  }
31
- ue.value = Q.configure.props.base.showSummary, (ue.value || Q.configure.props.highOrder.groupField && Q.configure.props.highOrder.groupField.length > 0) && (pe.value = R(Q.configure), ue.value && (le.value = T(Q.configure, "table")), Q.configure.props.highOrder.groupField && Q.configure.props.highOrder.groupField.length > 0 && (se.value = T(Q.configure, "group")));
32
- let ye = 300, Ce = x(Q.pageContext, Q.configure);
33
- function be(e3) {
34
- e3 || (e3 = []), Array.isArray(e3) && (e3 = e3.length > 0 ? e3[0] : {}), e3 || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
31
+ le.value = W.configure.props.base.showSummary, (le.value || W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0) && (se.value = T(W.configure), le.value && (ce.value = H(W.configure, "table")), W.configure.props.highOrder.groupField && W.configure.props.highOrder.groupField.length > 0 && (ge.value = H(W.configure, "group")));
32
+ let be = 300, xe = x(W.pageContext, W.configure);
33
+ function Oe(e3) {
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
+ F(W.pageContext, W.configure, "beforeUpdateChart", o2, { resultData: e3 }), function(e4) {
35
37
  var _a2;
36
- He(e4), "service" === Q.configure.props.dataOrigin.dataSource && e4.result ? ve = e4.result[Q.configure.props.dataOrigin.service.serviceDataField] : "variable" === Q.configure.props.dataOrigin.dataSource && (ve = S(Q.pageContext.entity, Q.configure.props.dataOrigin.variable));
37
- if (ve) if (((_a2 = Q.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && Q.configure.props.dataOrigin.itemNumSource) {
38
- let o2 = 10;
39
- if ("fix" === Q.configure.props.dataOrigin.itemNumSource) o2 = Q.configure.props.dataOrigin.itemNumFix;
40
- else if ("variable" === Q.configure.props.dataOrigin.itemNumSource) {
41
- o2 = Number(S(Q.pageContext.entity, Q.configure.props.dataOrigin.itemNumVariable));
42
- const r2 = Q.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), n2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(ve));
43
- t(() => n2.reduce((e5, o3) => e5[o3], Q.pageContext.entity), (o3) => {
44
- xe(o3, i2, e4);
38
+ Je(e4), "service" === W.configure.props.dataOrigin.dataSource && e4.result ? Ce = e4.result[W.configure.props.dataOrigin.service.serviceDataField] : "variable" === W.configure.props.dataOrigin.dataSource && (Ce = S(W.pageContext.entity, W.configure.props.dataOrigin.variable));
39
+ if (Ce) if (((_a2 = W.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && W.configure.props.dataOrigin.itemNumSource) {
40
+ let o3 = 10;
41
+ if ("fix" === W.configure.props.dataOrigin.itemNumSource) o3 = W.configure.props.dataOrigin.itemNumFix;
42
+ else if ("variable" === W.configure.props.dataOrigin.itemNumSource) {
43
+ o3 = Number(S(W.pageContext.entity, W.configure.props.dataOrigin.itemNumVariable));
44
+ const r2 = W.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = r2 ? r2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(Ce));
45
+ n(() => t2.reduce((e5, o4) => e5[o4], W.pageContext.entity), (o4) => {
46
+ Se(o4, i2, e4);
45
47
  });
46
48
  }
47
- xe(o2, ve, e4);
48
- } else Oe(ve, e4);
49
- }(e3), e3.hasRender = true, Z && (Z.autoRefresh = false));
49
+ Se(o3, Ce, e4);
50
+ } else we(Ce, e4);
51
+ }(e3), e3.hasRender = true, ee && (ee.autoRefresh = false), F(W.pageContext, W.configure, "afterUpdateChart", o2, { resultData: e3 });
50
52
  }
51
- function xe(e3, o2, r2) {
53
+ function Se(e3, o2, r2) {
52
54
  var _a2;
53
55
  if (e3 && e3 < o2.length) {
54
- let n2 = [];
55
- if (((_a2 = Q.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) n2 = Q.configure.props.dataOrigin.limitCountColumns;
56
+ let t2 = [];
57
+ if (((_a2 = W.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) t2 = W.configure.props.dataOrigin.limitCountColumns;
56
58
  else {
57
- te.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
58
- n2.push(e4.props.base.prop);
59
+ ie.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
60
+ t2.push(e4.props.base.prop);
59
61
  });
60
62
  }
61
- if ((n2 == null ? void 0 : n2.length) > 0) {
62
- const r3 = o2.slice(e3 - 1, o2.length), t2 = {};
63
- let i2 = te.value[0].props.base.prop;
64
- "$index" === i2 && (i2 = te.value[1].props.base.prop), r3.forEach((e4) => {
65
- n2.forEach((o3) => {
66
- void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
63
+ if ((t2 == null ? void 0 : t2.length) > 0) {
64
+ const r3 = o2.slice(e3 - 1, o2.length), n2 = {};
65
+ let i2 = ie.value[0].props.base.prop;
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
69
  });
68
- }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = Q.configure.props.dataOrigin.overItemAlias, o2.push(t2);
70
+ }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), n2[i2] = W.configure.props.dataOrigin.overItemAlias, o2.push(n2);
69
71
  }
70
- Oe(o2, r2);
71
- } else Oe(o2, r2);
72
+ we(o2, r2);
73
+ } else we(o2, r2);
72
74
  }
73
- function Oe(e3, o2) {
74
- var _a2, _b, _c, _d, _e2, _f, _g;
75
- if (Se("rowToColumn")) {
76
- if (e3 = H(e3, Q.configure, te.value), !re.value) {
75
+ function we(e3, o2) {
76
+ var _a2, _b, _c, _d, _e, _f, _g;
77
+ if (Ee("rowToColumn")) {
78
+ if (ae.value = JSON.parse(JSON.stringify(W.configure.items)), e3 = D(e3, W.configure, ae.value), !te.value) {
77
79
  const o3 = function(e4, o4, r2) {
78
- const n2 = Q.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = Q.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
80
+ const t2 = W.configure.props.dataOrigin.rowToColumn.titleColumns, n2 = W.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
79
81
  if ((!i2 || 0 === i2.length) && r2.length > 0) {
80
82
  const e5 = [];
81
- return e5.push(D("$GroupColumn", Q.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(r2[0]).forEach((o5, r3) => {
83
+ return e5.push(z("$GroupColumn", W.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(r2[0]).forEach((o5, r3) => {
82
84
  if ("$GroupColumn" === o5) return;
83
- const n3 = D(o5, o5, r3 + 1, "string");
84
- e5.push(n3);
85
+ const t3 = z(o5, o5, r3 + 1, "string");
86
+ e5.push(t3);
85
87
  }), e5;
86
88
  }
87
89
  {
88
- 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();
90
+ 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();
89
91
  return r2.forEach((e6) => {
90
92
  Object.keys(e6).forEach((e7) => {
91
- if (t2.some((o5) => e7.includes(o5))) {
93
+ if (n2.some((o5) => e7.includes(o5))) {
92
94
  const o5 = e7.split(i3)[0];
93
95
  a2.add(o5);
94
96
  }
95
97
  });
96
98
  }), a2.forEach((o5) => {
97
- t2.forEach((n3) => {
99
+ n2.forEach((t3) => {
98
100
  var _a3;
99
- const t3 = (_a3 = te.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name, i4 = D(`${o5}${n3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${n3}`] ? "number" : "string");
101
+ let n3 = (_a3 = ie.value.find((e6) => e6.props.base.prop === t3)) == null ? void 0 : _a3.props.base.name;
102
+ null == n3 && (n3 = "");
103
+ const i4 = z(`${o5}${t3}`, `${o5}${n3}`, e5.length + 1, "number" == typeof r2[0][`${o5}${t3}`] ? "number" : "string");
100
104
  e5.push(i4);
101
105
  });
102
106
  }), e5;
103
107
  }
104
- }(Q.configure, te.value, e3);
105
- te.value = o3;
108
+ }(W.configure, ae.value, e3);
109
+ ie.value = o3;
106
110
  }
107
- } else Se("columnToRow") && (re.value || (te.value = _(Q.configure)), e3 = z(e3, Q.configure));
108
- if ((_b = (_a2 = Q.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
109
- const o3 = F(Q.pageContext, Q.configure.props.dataOrigin.dataFormatting);
111
+ } else Ee("columnToRow") && (te.value || (ie.value = J(W.configure)), e3 = U(e3, W.configure));
112
+ if ((_b = (_a2 = W.configure.props) == null ? void 0 : _a2.dataOrigin) == null ? void 0 : _b.dataFormatting) {
113
+ const o3 = k(W.pageContext, W.configure.props.dataOrigin.dataFormatting);
110
114
  if (o3) {
111
115
  const r2 = o3.apply(o3, [{ tableData: e3 }]);
112
116
  r2 && (e3 = r2);
113
117
  }
114
118
  }
115
- if (Object.keys(fe.value).length > 0 && e3 && e3.length > 0 && A(fe.value, e3, Q.pageContext.entity), ((_c = Q.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
116
- "frontend" === Q.configure.pageination.type ? (he.value = ve.length, Ne(1, Q.configure.pageination.pageSize)) : "backend" === Q.configure.pageination.type && (ne.value = ve, Q.configure.pageination.totalFrom && (he.value = e4.result[Q.configure.pageination.totalFrom]));
117
- }(o2) : ne.value = e3, ((_e2 = (_d = Q.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e2.groupField) && ((_g = (_f = Q.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
118
- const e4 = Q.configure.props.highOrder.groupField;
119
+ if (Object.keys(de.value).length > 0 && e3 && e3.length > 0 && _(de.value, e3, W.pageContext.entity), ((_c = W.configure.pageination) == null ? void 0 : _c.enable) ? function(e4) {
120
+ "frontend" === W.configure.pageination.type ? (ye.value = Ce.length, Te(1, W.configure.pageination.pageSize)) : "backend" === W.configure.pageination.type && (ne.value = Ce, W.configure.pageination.totalFrom && (ye.value = e4.result[W.configure.pageination.totalFrom]));
121
+ }(o2) : ne.value = e3, ((_e = (_d = W.configure.props) == null ? void 0 : _d.highOrder) == null ? void 0 : _e.groupField) && ((_g = (_f = W.configure.props) == null ? void 0 : _f.highOrder) == null ? void 0 : _g.groupField.length) > 0) {
122
+ const e4 = W.configure.props.highOrder.groupField;
119
123
  ne.value = function(e5, o3) {
120
124
  var _a3, _b2;
121
- if (0 === se.value.length) return e5;
122
- 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 = {};
125
+ if (0 === ge.value.length) return e5;
126
+ const r2 = [], t2 = (_a3 = W.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), n2 = (_b2 = W.configure.items) == null ? void 0 : _b2.filter((e6) => true === e6.props.base.groupSummary), i2 = {};
123
127
  e5.forEach((e6) => {
124
128
  const r3 = o3.map((o4) => e6[o4]).join("|");
125
129
  i2[r3] || (i2[r3] = []), i2[r3].push(e6);
@@ -127,129 +131,128 @@ const M = e({ __name: "table-runtime", props: { configure: { type: Object, defau
127
131
  const a2 = Object.values(i2);
128
132
  for (let e6 = 0; e6 < a2.length; e6++) {
129
133
  const o4 = a2[e6], i3 = {};
130
- t2 == null ? void 0 : t2.forEach((e7) => {
131
- const r3 = e7.props.base.prop, n3 = J(se.value[r3], o4, r3, Q.pageContext);
132
- i3[r3] = n3;
133
- }), r2.push(...o4), n2 == null ? void 0 : n2.forEach((e7) => {
134
+ n2 == null ? void 0 : n2.forEach((e7) => {
135
+ const r3 = e7.props.base.prop, t3 = A(ge.value[r3], o4, r3, W.pageContext);
136
+ i3[r3] = t3;
137
+ }), r2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
134
138
  const r3 = e7.props.base.prop;
135
139
  i3[r3] = P(e7.props.base.summaryTitle, o4[0]);
136
- }), r2.push(i3), ce.push(r2.length - 1);
140
+ }), r2.push(i3), fe.push(r2.length - 1);
137
141
  }
138
142
  return r2;
139
143
  }(ne.value, e4);
140
144
  }
141
145
  !function(e4) {
142
- if (Q.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
143
- const o3 = U();
146
+ if (W.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
147
+ const o3 = V();
144
148
  o3 && e4.unshift(o3);
145
149
  }
146
- }(te.value);
147
- }
148
- function Se(e3) {
149
- 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;
150
- }
151
- function we(e3) {
152
- const o2 = ge.value[e3.column.property] ? ge.value[e3.column.property].titleStyle : null, r2 = X == null ? void 0 : X.titleStyle;
153
- return V(e3, { cellTitleStyle: o2, titleStyle: r2 }, Q);
150
+ }(ie.value);
154
151
  }
155
152
  function Ee(e3) {
156
- return G(e3, ce, Q);
153
+ return W.configure.props.dataOrigin.transition === e3 && W.configure.props.dataOrigin[e3].titleColumns && W.configure.props.dataOrigin[e3].titleColumns.length > 0 && W.configure.props.dataOrigin[e3].dataColumns && W.configure.props.dataOrigin[e3].dataColumns.length > 0;
157
154
  }
158
155
  function je(e3) {
159
- const o2 = ge.value[e3.column.property] ? ge.value[e3.column.property].cellStyle : null;
160
- return K(e3, o2, Q);
156
+ const o2 = me.value[e3.column.property] ? me.value[e3.column.property].titleStyle : null, r2 = Y == null ? void 0 : Y.titleStyle;
157
+ return G(e3, { cellTitleStyle: o2, titleStyle: r2 }, W);
158
+ }
159
+ function $e(e3) {
160
+ return K(e3, fe, W);
161
161
  }
162
- Ce && Ce.fixHeight && (ye = Ce.fixHeight), Ce && Ce.maxHeight && (ye = Ce.maxHeight), ye && (ye = Number(ye + "")), n(() => {
163
- const e3 = O(Q.pageContext, Q.configure);
164
- if (e3) be(e3);
165
- else if ("variable" === Q.configure.props.dataOrigin.dataSource) {
162
+ function Fe(e3) {
163
+ const o2 = me.value[e3.column.property] ? me.value[e3.column.property].cellStyle : null;
164
+ return L(e3, o2, W);
165
+ }
166
+ xe && xe.fixHeight && (be = xe.fixHeight), xe && xe.maxHeight && (be = xe.maxHeight), be && (be = Number(be + "")), t(() => {
167
+ const e3 = O(W.pageContext, W.configure);
168
+ if (e3) Oe(e3);
169
+ else if ("variable" === W.configure.props.dataOrigin.dataSource) {
166
170
  !function() {
167
- const e4 = Q.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
168
- t(() => o3.reduce((e5, o4) => e5[o4], Q.pageContext.entity), (e5) => {
169
- e5 ? be(JSON.parse(JSON.stringify(e5))) : (ne.value = [], Q.configure.props.modelCustom ? He(null) : re.value ? ie.value = Q.configure.props.groupHeaders : te.value = Q.configure.items);
171
+ const e4 = W.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o3 = e4 ? e4[1].split(".") : [];
172
+ n(() => o3.reduce((e5, o4) => e5[o4], W.pageContext.entity), (e5) => {
173
+ e5 ? Oe(JSON.parse(JSON.stringify(e5))) : (ne.value = [], W.configure.props.modelCustom ? Je(null) : te.value ? ue.value = W.configure.props.groupHeaders : ie.value = W.configure.items);
170
174
  });
171
175
  }();
172
- const o2 = S(Q.pageContext.entity, Q.configure.props.dataOrigin.variable);
173
- o2 && Oe(o2, e3);
176
+ const o2 = S(W.pageContext.entity, W.configure.props.dataOrigin.variable);
177
+ o2 && we(o2, e3);
174
178
  }
175
179
  });
176
- const $e = (e3) => {
177
- const { columns: o2, data: r2 } = e3, n2 = [];
180
+ const ke = (e3) => {
181
+ const { columns: o2, data: r2 } = e3, t2 = [];
178
182
  return o2.forEach((e4, o3) => {
179
- if (pe.value[e4.property]) {
180
- const t2 = pe.value[e4.property].label;
181
- return void (n2[o3] = C("div", {}, [P(t2, r2)]));
182
- }
183
- if (le.value[e4.property]) {
184
- const t2 = r2.filter((e5, o4) => !ce.includes(o4));
185
- n2[o3] = J(le.value[e4.property], t2, e4.property, Q.pageContext);
183
+ if (se.value[e4.property]) {
184
+ const n2 = se.value[e4.property].label;
185
+ t2[o3] = C("div", {}, [P(n2, r2)]);
186
+ } else if (ce.value[e4.property]) {
187
+ const n2 = r2.filter((e5, o4) => !fe.includes(o4));
188
+ t2[o3] = A(ce.value[e4.property], n2, e4.property, W.pageContext);
186
189
  }
187
- }), n2;
190
+ }), t2;
188
191
  };
189
- function Fe({ row: e3, column: o2, rowIndex: r2, columnIndex: n2 }) {
190
- const t2 = o2.property, i2 = Q.configure.props.highOrder;
192
+ function Ne({ row: e3, column: o2, rowIndex: r2, columnIndex: t2 }) {
193
+ const n2 = o2.property, i2 = W.configure.props.highOrder;
191
194
  if (i2.scopeFunc) {
192
- const t3 = F(Q.pageContext, i2.scopeFunc);
193
- if (t3) {
194
- const i3 = t3.apply(t3, [{ tableData: ne.value, row: e3, column: o2, rowIndex: r2, columnIndex: n2 }]);
195
+ const n3 = k(W.pageContext, i2.scopeFunc);
196
+ if (n3) {
197
+ const i3 = n3.apply(n3, [{ tableData: ne.value, row: e3, column: o2, rowIndex: r2, columnIndex: t2 }]);
195
198
  if (i3) return i3;
196
199
  }
197
- } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2)) return L(e3, o2, r2, t2, ne.value);
198
- }
199
- function ke(e3, o2) {
200
- "frontend" === Q.configure.pageination.type ? Ne(e3, o2) : Re(e3, o2);
200
+ } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(n2)) return q(e3, o2, r2, n2, ne.value);
201
201
  }
202
202
  function Ie(e3, o2) {
203
- "frontend" === Q.configure.pageination.type ? Ne(e3, o2) : Re(e3, o2);
204
- }
205
- function Ne(e3, o2) {
206
- ve && (ne.value = ve.slice((e3 - 1) * o2, e3 * o2));
203
+ "frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
207
204
  }
208
205
  function Re(e3, o2) {
209
- Q.configure.pageination.currentPageSet && j(Q.pageContext.entity, Q.configure.pageination.currentPageSet, e3), Q.configure.pageination.pageSizeSet && j(Q.pageContext.entity, Q.configure.pageination.pageSizeSet, o2), $(Q.pageContext, Q.configure.uuid);
206
+ "frontend" === W.configure.pageination.type ? Te(e3, o2) : He(e3, o2);
207
+ }
208
+ function Te(e3, o2) {
209
+ Ce && (ne.value = Ce.slice((e3 - 1) * o2, e3 * o2));
210
+ }
211
+ function He(e3, o2) {
212
+ W.configure.pageination.currentPageSet && j(W.pageContext.entity, W.configure.pageination.currentPageSet, e3), W.configure.pageination.pageSizeSet && j(W.pageContext.entity, W.configure.pageination.pageSizeSet, o2), $(W.pageContext, W.configure.uuid);
210
213
  }
211
- function Te(e3) {
214
+ function De(e3) {
212
215
  const o2 = e3.showCondition;
213
- return w(Q.pageContext, o2);
216
+ return w(W.pageContext, o2);
214
217
  }
215
- function He(e3) {
216
- if (Q.configure.props.modelCustom) {
217
- const o2 = F(Q.pageContext, Q.configure.props.modelCustom);
218
+ function Je(e3) {
219
+ if (W.configure.props.modelCustom) {
220
+ const o2 = k(W.pageContext, W.configure.props.modelCustom);
218
221
  if (o2) {
219
- const r2 = o2.apply(o2, [{ pageContext: Q.pageContext, configureObj: Q.configure, value: e3 }]);
222
+ const r2 = o2.apply(o2, [{ pageContext: W.pageContext, configureObj: W.configure, value: e3 }]);
220
223
  E(r2) ? r2.then((e4) => {
221
- te.value = e4.columns;
222
- }) : te.value = r2.columns;
224
+ ie.value = e4.columns;
225
+ }) : ie.value = r2.columns;
223
226
  }
224
227
  }
225
228
  }
226
- function _e(e3, o2, r2) {
229
+ function Ue(e3, o2, r2) {
227
230
  e3.forEach((e4) => {
228
- const n2 = e4.props.base.prop, t2 = e4.props.base.name;
229
- let i2 = { name: n2, label: t2, i18nKey: t2 };
230
- e4.children && e4.children.length > 0 && (i2.children = [], _e(e4.children, i2.children, r2)), e4.props.format && e4.props.format.type && r2.push(e4), o2.push(i2);
231
+ const t2 = e4.props.base.prop, n2 = e4.props.base.name;
232
+ let i2 = { name: t2, label: n2, i18nKey: n2 };
233
+ 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);
231
234
  });
232
235
  }
233
- return M2({ updateChartDatas: be, exportChart: function() {
236
+ return Q2({ updateChartDatas: Oe, exportChart: function() {
234
237
  let e3 = [], o2 = [];
235
- o2 = re.value ? Q.configure.props.groupHeaders : de.value;
238
+ o2 = te.value ? W.configure.props.groupHeaders : ve.value;
236
239
  let r2 = [];
237
- _e(o2, e3, r2);
240
+ Ue(o2, e3, r2);
238
241
  return { isTable: true, dataArr: function(e4) {
239
242
  let o3 = [];
240
- ne.value && (o3 = B(ne.value), o3.forEach((o4) => {
243
+ ne.value && (o3 = M(ne.value), o3.forEach((o4) => {
241
244
  e4.forEach((e5) => {
242
- const r3 = q(o4, e5.props.format, e5, Q.pageContext, Q.configure);
245
+ const r3 = B(o4, e5.props.format, e5, W.pageContext, W.configure);
243
246
  o4[e5.props.base.prop] = r3;
244
247
  });
245
248
  }));
246
249
  return o3;
247
- }(r2), columns: e3, title: ee == null ? void 0 : ee.title };
250
+ }(r2), columns: e3, title: oe == null ? void 0 : oe.title };
248
251
  } }), (o2, r2) => {
249
- const n2 = i("el-table");
250
- return u(), a("div", { style: l(s(X)), class: p([s(Y), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [c(g(b, { ref_key: "headerRef", ref: oe, headerInfo: s(ee), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, s(ee).showHeader || e2.pageContext.showHomepageSearch]]), g(n2, { ref_key: "gridRef", ref: me, data: ne.value, style: { width: "100%" }, "max-height": s(ye), "header-cell-style": we, "row-style": Ee, "cell-style": je, "show-summary": ue.value, stripe: e2.configure.props.base.stripe, "summary-method": $e, "span-method": Fe }, { default: h(() => [re.value ? (u(true), a(v, { key: 0 }, y(ie.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: ae.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: ae.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (u(true), a(v, { key: 1 }, y(de.value, (o3, r3) => (u(), f(I, { 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(N, { key: 0, configure: e2.configure, "table-data": ne.value, total: he.value, onPageChange: ke, onPageSizeChange: Ie }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
252
+ const t2 = i("el-table");
253
+ return u(), a("div", { style: l(s(Y)), class: p([s(Z), "amb-widget-chart amb-widget-flex"]), 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": je, "row-style": $e, "cell-style": Fe, "show-summary": le.value, stripe: e2.configure.props.base.stripe, "summary-method": ke, "span-method": Ne }, { default: h(() => [te.value ? (u(true), a(v, { key: 0 }, y(ue.value, (o3, r3) => (u(), a(v, { key: r3 }, [o3.isLeaf ? (u(), f(I, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: pe.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : (u(), f(N, { 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(I, { 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(R, { key: 0, configure: e2.configure, "table-data": ne.value, total: ye.value, onPageChange: Ie, onPageSizeChange: Re }, null, 8, ["configure", "table-data", "total"])) : m("", true)], 6);
251
254
  };
252
255
  } });
253
256
  export {
254
- M as default
257
+ Q as default
255
258
  };
@@ -0,0 +1,5 @@
1
+ declare function renderComponent(componentName: string, propsData: any): Promise<void>;
2
+ declare const _default: import('vue').DefineComponent<{}, {
3
+ renderComponent: typeof renderComponent;
4
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
5
+ export default _default;
@@ -0,0 +1,20 @@
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
+ };
8
+ return v2({ renderComponent: async function(e3, o2) {
9
+ try {
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
+ } catch (e4) {
14
+ m.value = c;
15
+ }
16
+ } }), (e3, o2) => (t(), n(l(m.value), u(p.value, { onDestroy: f }), null, 16));
17
+ } });
18
+ export {
19
+ v as default
20
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./event-call-component.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -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 {
@@ -19,9 +19,9 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
19
19
  });
20
20
  }), V2({ test: function() {
21
21
  _.configure.props.title = "teee";
22
- } }), (o2, t2) => {
23
- const i2 = r("el-link");
24
- return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e2.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e2.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e2.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e2.configure.props.iconType && e2.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e2.configure.props.iconType, iconValue: e2.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e2.configure.props.base.title)), 1)], 4), R.value ? (s(), l(i2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
22
+ } }), (e3, o2) => {
23
+ const t2 = r("el-link");
24
+ return s(), l(u(b), { ref_key: "thisRef", ref: z, style: p(u(A)), "data-collapse": String(D.value), class: a(["yx-card-box-view-main", u(B)]) }, c({ default: f(() => [g("div", { class: "yx-card-box-view-context", style: p(u(F)) }, [(s(true), m(y, null, d(e3.configure.items, (o3, t3) => (s(), l(S, { key: o3.uuid, pageContext: e3.pageContext, configure: o3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: f(() => [g("div", { class: "yx-card-box-view-header", onClick: G }, [g("div", { class: "yx-card-box-view-title", style: p(u(E)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (s(), l(u(h), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : v("", true), x(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(t2, { key: 0, underline: false, icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : v("", true)])]), key: "0" } : void 0]), 1032, ["style", "data-collapse", "class"]);
25
25
  };
26
26
  } });
27
27
  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 {
@@ -8,9 +8,9 @@ const C = e({ __name: "container-runtime", props: { pageContext: {}, configure:
8
8
  o(() => {
9
9
  d(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
10
10
  });
11
- }), (t2, n2) => {
12
- const o2 = u("el-aside"), d2 = u("el-main"), C3 = u("el-container");
13
- return i(), l(C3, { ref_key: "thisRef", ref: _ }, { default: r(() => [e2.configure.props.useLeft ? (i(), l(o2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(d2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e2.configure.props.useRight ? (i(), l(o2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e2.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e2.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
11
+ }), (e3, t2) => {
12
+ const n2 = u("el-aside"), o2 = u("el-main"), d2 = u("el-container");
13
+ return i(), l(d2, { ref_key: "thisRef", ref: _ }, { default: r(() => [e3.configure.props.useLeft ? (i(), l(n2, { key: 0, style: g(f(v)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.leftAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true), a(o2, { style: g(f(j)), class: m(f(R)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.items, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style", "class"]), e3.configure.props.useRight ? (i(), l(n2, { key: 1, style: g(f(h)) }, { default: r(() => [(i(true), p(c, null, y(e3.configure.rightAslides, (t3, n3) => (i(), l(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["style"])) : s("", true)]), _: 1 }, 512);
14
14
  };
15
15
  } });
16
16
  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 {