super-page-runtime 2.2.0 → 2.2.1

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 (113) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  17. package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
  18. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  20. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  21. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  22. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  24. package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
  25. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  26. package/dist/es/components/runtime/utils/page-init-util.js +65 -69
  27. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  28. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  29. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  30. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  40. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  41. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  42. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  43. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  44. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  45. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  46. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  47. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
  48. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  51. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
  53. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  54. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  56. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  57. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  58. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  68. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
  69. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
  70. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  71. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  72. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  73. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  75. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  76. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  77. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  78. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  79. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  80. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  81. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  82. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  83. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  84. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  85. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  86. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  87. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  88. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  89. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  90. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  91. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  93. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  94. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  95. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  96. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  98. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  99. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  100. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  101. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  102. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  104. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  105. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  106. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  107. package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
  108. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  109. package/dist/es/components/runtime/views/super-page.vue.js +171 -182
  110. package/dist/es/index.d.ts +2 -2
  111. package/dist/es/index.js +6 -4
  112. package/package.json +74 -74
  113. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, resolveComponent as t, openBlock as n, createElementBlock as p, createVNode as l } from "vue";
1
+ import { defineComponent as e, ref as a, resolveComponent as t, createElementBlock as n, openBlock as p, createVNode as l } from "vue";
2
2
  const u = { style: { padding: "5px", "text-align": "center" } }, g = e({ __name: "table-pageination", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) }, total: { type: Number, default: 0 } }, emits: ["pageChange", "pageSizeChange"], setup(e2, { emit: g2 }) {
3
3
  const i = e2, o = g2, r = a(1), s = a(i.configure.pageination.pageSize), c = (e3) => {
4
4
  r.value = e3, o("pageChange", r.value, s.value);
@@ -7,7 +7,7 @@ const u = { style: { padding: "5px", "text-align": "center" } }, g = e({ __name:
7
7
  };
8
8
  return (a2, g3) => {
9
9
  const i2 = t("el-pagination");
10
- return n(), p("div", u, [l(i2, { "current-page": r.value, "onUpdate:currentPage": g3[0] || (g3[0] = (e3) => r.value = e3), "page-size": s.value, "onUpdate:pageSize": g3[1] || (g3[1] = (e3) => s.value = e3), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: e2.total, onCurrentChange: c, onSizeChange: v }, null, 8, ["current-page", "page-size", "total"])]);
10
+ return p(), n("div", u, [l(i2, { "current-page": r.value, "onUpdate:currentPage": g3[0] || (g3[0] = (e3) => r.value = e3), "page-size": s.value, "onUpdate:pageSize": g3[1] || (g3[1] = (e3) => s.value = e3), "page-sizes": [10, 30, 50, 100], size: "small", layout: "total, sizes, prev, pager, next, jumper", total: e2.total, onCurrentChange: c, onSizeChange: v }, null, 8, ["current-page", "page-size", "total"])]);
11
11
  };
12
12
  } });
13
13
  export {
@@ -1,68 +1,83 @@
1
- import { defineComponent as e, ref as o, onMounted as n, watch as t, resolveComponent as r, openBlock as a, createElementBlock as i, normalizeStyle as u, unref as l, normalizeClass as p, withDirectives as s, createVNode as c, vShow as g, withCtx as f, Fragment as d, renderList as m, createBlock as h, createCommentVNode as v, h as y } from "vue";
1
+ import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, createElementBlock as a, openBlock as i, normalizeClass as u, normalizeStyle as p, unref as l, withDirectives as s, createVNode as c, createBlock as g, createCommentVNode as f, vShow as m, withCtx as d, Fragment as h, renderList as v, h as y } from "vue";
2
2
  import C from "../common/common-chart-header.vue.js";
3
- import { getChartDatasFromPage as b, getValueFromVariable as x, isPromise as O, setValueForVariableName as S, updateChartDatasourcesByComponent as w, caculateShowCondition as j } 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";
6
- import E from "./normal-column.vue.js";
7
- import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as $, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, summaryStatistics as H, replacePlaceholders as P, getHeaderCellStyleUtil as J, getRowStyleUtil as K, getCellStyleUtil as N, getIndexColumn as U } from "./chart-table-util.js";
9
- const V = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: V2 }) {
3
+ import { getSizeConfig as b, getChartDatasFromPage as x, getValueFromVariable as O, isPromise as S, setValueForVariableName as w, updateChartDatasourcesByComponent as j, caculateShowCondition as k } from "../../../../utils/page-helper-util.js";
4
+ import { getCustomFunc as E } from "../../../../utils/events/event-util.js";
5
+ import F from "./group-column.vue.js";
6
+ import $ from "./normal-column.vue.js";
7
+ import R from "./table-pageination.vue.js";
8
+ import { getSummaryTitleColumn as H, getSummaryDataColumn as I, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, getNewColumnConfig as P, summaryStatistics as G, replacePlaceholders as K, getIndexColumn as N, getHeaderCellStyleUtil as J, getRowStyleUtil as U, getCellStyleUtil as V, formatColContent as A } from "./chart-table-util.js";
9
+ import { deepCopy as L } 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 }) {
10
11
  var _a;
11
- const A = e2, G = A.configure.runtime ? A.configure.runtime : {}, L = G.style, q = G.class, B = G.dataConfig, M = G.headerInfo ? G.headerInfo : {}, Q = o(null), W = o(G.props.isEnableGroupHeader), X = o([]), Y = o([]), Z = o([]), ee = o({}), oe = o(false), ne = o({}), te = o({}), re = o({}), ae = [], ie = o({}), ue = o({}), le = o(null), pe = o(0);
12
- let se = [];
13
- function ce() {
14
- const e3 = A.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
15
- t(() => o2.reduce((e4, o3) => e4[o3], A.pageContext.entity), (e4) => {
16
- e4 ? fe(JSON.parse(JSON.stringify(e4)), null) : (X.value = [], A.configure.props.modelCustom ? je(null) : W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items);
12
+ const B = e2, M = B.configure.runtime ? B.configure.runtime : {}, Q = M.style, W = M.class, X = M.dataConfig, Y = M.headerInfo ? M.headerInfo : {}, Z = o(null), ee = o(M.props.isEnableGroupHeader), oe = o([]), ne = o([]), re = o([]), te = o({}), ae = o(false), ie = o({}), ue = o({}), pe = o({}), le = [], se = o({}), ce = o({}), ge = o(null), fe = o(0);
13
+ let me, de = [];
14
+ B.configure.props.modelCustom || (ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items, (_a = B.configure.items) == null ? void 0 : _a.forEach((e3) => {
15
+ te.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (se.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ce.value[e3.props.base.prop] = e3.formula);
16
+ })), ae.value = B.configure.props.base.showSummary, (ae.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ie.value = H(B.configure), ae.value && (ue.value = I(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = I(B.configure, "group")));
17
+ let he = b(B.pageContext, B.configure);
18
+ function ve() {
19
+ const e3 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
20
+ r(() => o2.reduce((e4, o3) => e4[o3], B.pageContext.entity), (e4) => {
21
+ e4 ? ye(JSON.parse(JSON.stringify(e4))) : (oe.value = [], B.configure.props.modelCustom ? He(null) : ee.value ? re.value = B.configure.props.groupHeaders : ne.value = B.configure.items);
17
22
  });
18
23
  }
19
- function ge(e3) {
24
+ function ye(e3) {
20
25
  e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
21
- je(e4), "service" === A.configure.props.dataOrigin.dataSource && e4.result ? se = e4.result[A.configure.props.dataOrigin.service.serviceDataField] : "variable" === A.configure.props.dataOrigin.dataSource && (ce(), se = x(A.pageContext.entity, A.configure.props.dataOrigin.variable));
22
- se && fe(se, e4);
23
- }(e3), e3.hasRender = true, B && (B.autoRefresh = false));
26
+ He(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? de = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), de = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
27
+ de && Ce(de, e4);
28
+ }(e3), e3.hasRender = true, X && (X.autoRefresh = false));
24
29
  }
25
- function fe(e3, o2) {
30
+ function Ce(e3, o2) {
26
31
  var _a2;
27
- if (de("rowToColumn")) {
28
- if (e3 = T(e3, A.configure), !W.value) {
29
- const o3 = function(e4, o4, n2, t2) {
30
- const r2 = [...e4].filter((e5) => !n2.includes(e5.props.base.prop) && !t2.includes(e5.props.base.prop)), a2 = new RegExp(`(${t2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
31
- return o4.forEach((e5) => {
32
- Object.keys(e5).forEach((e6) => {
33
- if (t2.some((o5) => e6.includes(o5))) {
34
- const o5 = e6.split(a2)[0];
35
- i2.add(o5);
36
- }
37
- });
38
- }), i2.forEach((e5) => {
39
- t2.forEach((n3) => {
40
- var _a3;
41
- const t3 = (_a3 = Y.value.find((e6) => e6.props.base.prop === n3)) == null ? void 0 : _a3.props.base.name, a3 = { uuid: (/* @__PURE__ */ new Date()).getTime(), name: "", props: { base: { prop: `${e5}${n3}`, name: `${e5}${t3}`, displayOrder: r2.length + 1, sortable: true, headerAlign: "center", align: "center", fixed: false, visible: true, dataType: "number" == typeof o4[0][`${e5}${n3}`] ? "number" : "string" }, format: {}, size: { pc: {} } }, style: {}, componentIndex: 0, runtime: { common: { class: "", style: { pc_style: {}, pc_class: "" } } } };
42
- r2.push(a3);
43
- });
44
- }), r2;
45
- }(Y.value, e3, A.configure.props.dataOrigin.rowToColumn.titleColumns, A.configure.props.dataOrigin.rowToColumn.dataColumns);
46
- Y.value = o3;
32
+ if (be("rowToColumn")) {
33
+ if (e3 = T(e3, B.configure, ne.value), !ee.value) {
34
+ const o3 = function(e4, o4, n2) {
35
+ const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, a2 = e4.props.dataOrigin.groupField;
36
+ if ((!a2 || 0 === a2.length) && n2.length > 0) {
37
+ const e5 = [];
38
+ return e5.push(P("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
39
+ if ("$GroupColumn" === o5) return;
40
+ const r3 = P(o5, o5, n3 + 1, "string");
41
+ e5.push(r3);
42
+ }), e5;
43
+ }
44
+ {
45
+ const e5 = [...o4].filter((e6) => !r2.includes(e6.props.base.prop) && !t2.includes(e6.props.base.prop)), a3 = new RegExp(`(${t2.join("|")})$`), i2 = /* @__PURE__ */ new Set();
46
+ return n2.forEach((e6) => {
47
+ Object.keys(e6).forEach((e7) => {
48
+ if (t2.some((o5) => e7.includes(o5))) {
49
+ const o5 = e7.split(a3)[0];
50
+ i2.add(o5);
51
+ }
52
+ });
53
+ }), i2.forEach((o5) => {
54
+ t2.forEach((r3) => {
55
+ var _a3;
56
+ (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name;
57
+ const t3 = P(`${o5}${r3}`, `${o5}${r3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
58
+ e5.push(t3);
59
+ });
60
+ }), e5;
61
+ }
62
+ }(B.configure, ne.value, e3);
63
+ ne.value = o3;
47
64
  }
48
- } else
49
- de("columnToRow") && (W.value || (Y.value = _(A.configure)), e3 = z(e3, A.configure));
50
- if (A.configure.props.dataOrigin.dataFormatting) {
51
- const o3 = F(A.pageContext, A.configure.props.dataOrigin.dataFormatting);
65
+ } else be("columnToRow") && (ee.value || (ne.value = _(B.configure)), e3 = z(e3, B.configure));
66
+ if (B.configure.props.dataOrigin.dataFormatting) {
67
+ const o3 = E(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
52
68
  if (o3) {
53
69
  const n2 = o3.apply(o3, [{ tableData: e3 }]);
54
70
  n2 && (e3 = n2);
55
71
  }
56
72
  }
57
- if (Object.keys(ue.value).length > 0 && e3 && e3.length > 0 && D(ue.value, e3, A.pageContext.entity), ((_a2 = A.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
58
- "frontend" === A.configure.pageination.type ? (pe.value = se.length, Oe(1, A.configure.pageination.pageSize)) : "backend" === A.configure.pageination.type && (X.value = se, A.configure.pageination.totalFrom && (pe.value = e4.result[A.configure.pageination.totalFrom]));
59
- }(o2) : X.value = e3, A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) {
60
- const e4 = A.configure.props.highOrder.groupField;
61
- X.value = function(e5, o3) {
73
+ if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && D(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
74
+ "frontend" === B.configure.pageination.type ? (fe.value = de.length, Fe(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = de, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
75
+ }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
76
+ const e4 = B.configure.props.highOrder.groupField;
77
+ oe.value = function(e5, o3) {
62
78
  var _a3, _b;
63
- if (0 === re.value.length)
64
- return e5;
65
- const n2 = [], t2 = (_a3 = A.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), r2 = (_b = A.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), a2 = {};
79
+ if (0 === pe.value.length) return e5;
80
+ const n2 = [], r2 = (_a3 = B.configure.items) == null ? void 0 : _a3.filter((e6) => o3.includes(e6.props.base.prop)), t2 = (_b = B.configure.items) == null ? void 0 : _b.filter((e6) => true === e6.props.base.groupSummary), a2 = {};
66
81
  e5.forEach((e6) => {
67
82
  const n3 = o3.map((o4) => e6[o4]).join("|");
68
83
  a2[n3] || (a2[n3] = []), a2[n3].push(e6);
@@ -70,107 +85,123 @@ const V = e({ __name: "table-runtime", props: { configure: { type: Object, defau
70
85
  const i2 = Object.values(a2);
71
86
  for (let e6 = 0; e6 < i2.length; e6++) {
72
87
  const o4 = i2[e6], a3 = {};
73
- r2 == null ? void 0 : r2.forEach((e7) => {
74
- const n3 = e7.props.base.prop, t3 = H(re.value[n3], o4, n3, A.pageContext);
75
- a3[n3] = t3;
76
- }), n2.push(...o4), t2 == null ? void 0 : t2.forEach((e7) => {
88
+ t2 == null ? void 0 : t2.forEach((e7) => {
89
+ const n3 = e7.props.base.prop, r3 = G(pe.value[n3], o4, n3, B.pageContext);
90
+ a3[n3] = r3;
91
+ }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
77
92
  const n3 = e7.props.base.prop;
78
- a3[n3] = P(e7.props.base.summaryTitle, o4[0]);
79
- }), n2.push(a3), ae.push(n2.length - 1);
93
+ a3[n3] = K(e7.props.base.summaryTitle, o4[0]);
94
+ }), n2.push(a3), le.push(n2.length - 1);
80
95
  }
81
96
  return n2;
82
- }(X.value, e4);
97
+ }(oe.value, e4);
83
98
  }
84
99
  !function(e4) {
85
- if (A.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
86
- const o3 = U();
100
+ if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
101
+ const o3 = N();
87
102
  o3 && e4.unshift(o3);
88
103
  }
89
- }(Y.value);
104
+ }(ne.value);
90
105
  }
91
- function de(e3) {
92
- return A.configure.props.dataOrigin.transition === e3 && A.configure.props.dataOrigin.groupField && A.configure.props.dataOrigin.groupField.length > 0 && A.configure.props.dataOrigin[e3].titleColumns && A.configure.props.dataOrigin[e3].titleColumns.length > 0 && A.configure.props.dataOrigin[e3].dataColumns && A.configure.props.dataOrigin[e3].dataColumns.length > 0;
106
+ function be(e3) {
107
+ return B.configure.props.dataOrigin.transition === e3 && B.configure.props.dataOrigin[e3].titleColumns && B.configure.props.dataOrigin[e3].titleColumns.length > 0 && B.configure.props.dataOrigin[e3].dataColumns && B.configure.props.dataOrigin[e3].dataColumns.length > 0;
93
108
  }
94
- function me(e3) {
95
- const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].titleStyle : null, n2 = L == null ? void 0 : L.titleStyle;
96
- return J(e3, { cellTitleStyle: o2, titleStyle: n2 }, A);
109
+ function xe(e3) {
110
+ const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
111
+ return J(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
97
112
  }
98
- function he(e3) {
99
- return K(e3, ae, A);
113
+ function Oe(e3) {
114
+ return U(e3, le, B);
100
115
  }
101
- function ve(e3) {
102
- const o2 = ie.value[e3.column.property] ? ie.value[e3.column.property].cellStyle : null;
103
- return N(e3, o2, A);
116
+ function Se(e3) {
117
+ const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
118
+ return V(e3, o2, B);
104
119
  }
105
- A.configure.props.modelCustom || (W.value ? Z.value = A.configure.props.groupHeaders : Y.value = A.configure.items, (_a = A.configure.items) == null ? void 0 : _a.forEach((e3) => {
106
- ee.value[e3.uuid] = e3, Object.keys(e3.style).length > 0 && (ie.value[e3.props.base.prop] = { cellStyle: e3.style, titleStyle: e3.titleStyle }), e3.formula && "" !== e3.formula.trim() && (ue.value[e3.props.base.prop] = e3.formula);
107
- })), oe.value = A.configure.props.base.showSummary, (oe.value || A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0) && (ne.value = R(A.configure), oe.value && (te.value = $(A.configure, "table")), A.configure.props.highOrder.groupField && A.configure.props.highOrder.groupField.length > 0 && (re.value = $(A.configure, "group"))), n(() => {
108
- const e3 = b(A.pageContext, A.configure);
109
- if (e3)
110
- ge(e3);
111
- else if ("variable" === A.configure.props.dataOrigin.dataSource) {
112
- ce();
113
- const o2 = x(A.pageContext.entity, A.configure.props.dataOrigin.variable);
114
- o2 && fe(o2, e3);
120
+ he && he.maxHeight && (me = he.maxHeight), !me && he && he.fixHeight && (me = he.fixHeight), me && (me = Number(me + "")), n(() => {
121
+ const e3 = x(B.pageContext, B.configure);
122
+ if (e3) ye(e3);
123
+ else if ("variable" === B.configure.props.dataOrigin.dataSource) {
124
+ ve();
125
+ const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
126
+ o2 && Ce(o2, e3);
115
127
  }
116
128
  });
117
- const ye = (e3) => {
118
- const { columns: o2, data: n2 } = e3, t2 = [];
129
+ const we = (e3) => {
130
+ const { columns: o2, data: n2 } = e3, r2 = [];
119
131
  return o2.forEach((e4, o3) => {
120
- if (ne.value[e4.property]) {
121
- const r2 = ne.value[e4.property].label;
122
- t2[o3] = y("div", {}, [P(r2, n2)]);
123
- } else if (te.value[e4.property]) {
124
- const r2 = n2.filter((e5, o4) => !ae.includes(o4));
125
- t2[o3] = H(te.value[e4.property], r2, e4.property, A.pageContext);
132
+ if (ie.value[e4.property]) {
133
+ const t2 = ie.value[e4.property].label;
134
+ r2[o3] = y("div", {}, [K(t2, n2)]);
135
+ } else if (ue.value[e4.property]) {
136
+ const t2 = n2.filter((e5, o4) => !le.includes(o4));
137
+ r2[o3] = G(ue.value[e4.property], t2, e4.property, B.pageContext);
126
138
  }
127
- }), t2;
139
+ }), r2;
128
140
  };
129
- function Ce({ row: e3, column: o2, rowIndex: n2, columnIndex: t2 }) {
130
- const r2 = o2.property, a2 = A.configure.props.highOrder;
141
+ function je({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
142
+ const t2 = o2.property, a2 = B.configure.props.highOrder;
131
143
  if (a2.scopeFunc) {
132
- const r3 = F(A.pageContext, a2.scopeFunc);
133
- if (r3) {
134
- const a3 = r3.apply(r3, [{ tableData: X.value, row: e3, column: o2, rowIndex: n2, columnIndex: t2 }]);
135
- if (a3)
136
- return a3;
144
+ const t3 = E(B.pageContext, a2.scopeFunc);
145
+ if (t3) {
146
+ const a3 = t3.apply(t3, [{ tableData: oe.value, row: e3, column: o2, rowIndex: n2, columnIndex: r2 }]);
147
+ if (a3) return a3;
137
148
  }
138
- } else if (a2 && a2.mergeColumn, a2 && a2.mergeRow && a2.mergeRow.includes(r2) && 0 === n2)
139
- return { rowspan: X.value.length, colspan: 1 };
149
+ } else if (a2 && a2.mergeColumn, a2 && a2.mergeRow && a2.mergeRow.includes(t2) && 0 === n2) return { rowspan: oe.value.length, colspan: 1 };
140
150
  }
141
- function be(e3, o2) {
142
- "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
151
+ function ke(e3, o2) {
152
+ "frontend" === B.configure.pageination.type ? Fe(e3, o2) : $e(e3, o2);
143
153
  }
144
- function xe(e3, o2) {
145
- "frontend" === A.configure.pageination.type ? Oe(e3, o2) : Se(e3, o2);
154
+ function Ee(e3, o2) {
155
+ "frontend" === B.configure.pageination.type ? Fe(e3, o2) : $e(e3, o2);
146
156
  }
147
- function Oe(e3, o2) {
148
- se && (X.value = se.slice((e3 - 1) * o2, e3 * o2));
157
+ function Fe(e3, o2) {
158
+ de && (oe.value = de.slice((e3 - 1) * o2, e3 * o2));
149
159
  }
150
- function Se(e3, o2) {
151
- A.configure.pageination.currentPageSet && S(A.pageContext.entity, A.configure.pageination.currentPageSet, e3), A.configure.pageination.pageSizeSet && S(A.pageContext.entity, A.configure.pageination.pageSizeSet, o2), w(A.pageContext, A.configure.uuid);
160
+ function $e(e3, o2) {
161
+ B.configure.pageination.currentPageSet && w(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && w(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), j(B.pageContext, B.configure.uuid);
152
162
  }
153
- function we(e3) {
163
+ function Re(e3) {
154
164
  const o2 = e3.showCondition;
155
- return j(A.pageContext, o2);
165
+ return k(B.pageContext, o2);
156
166
  }
157
- function je(e3) {
158
- if (A.configure.props.modelCustom) {
159
- const o2 = F(A.pageContext, A.configure.props.modelCustom);
167
+ function He(e3) {
168
+ if (B.configure.props.modelCustom) {
169
+ const o2 = E(B.pageContext, B.configure.props.modelCustom);
160
170
  if (o2) {
161
- const n2 = o2.apply(o2, [{ pageContext: A.pageContext, configureObj: A.configure, value: e3 }]);
162
- O(n2) ? n2.then((e4) => {
163
- Y.value = e4.columns;
164
- }) : Y.value = n2.columns;
171
+ const n2 = o2.apply(o2, [{ pageContext: B.pageContext, configureObj: B.configure, value: e3 }]);
172
+ S(n2) ? n2.then((e4) => {
173
+ ne.value = e4.columns;
174
+ }) : ne.value = n2.columns;
165
175
  }
166
176
  }
167
177
  }
168
- return V2({ updateChartDatas: ge, exportChart: function() {
178
+ function Ie(e3, o2, n2) {
179
+ e3.forEach((e4) => {
180
+ const r2 = e4.props.base.prop, t2 = e4.props.base.name;
181
+ let a2 = { name: r2, label: t2, i18nKey: t2 };
182
+ e4.children && e4.childern.length > 0 && (a2.children = [], Ie(e4.children, a2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(a2);
183
+ });
184
+ }
185
+ return q2({ updateChartDatas: ye, exportChart: function() {
186
+ let e3 = [], o2 = [];
187
+ o2 = ee.value ? B.configure.props.groupHeaders : B.configure.items;
188
+ let n2 = [];
189
+ Ie(o2, e3, n2);
190
+ return { isTable: true, dataArr: function(e4) {
191
+ let o3 = [];
192
+ oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
193
+ e4.forEach((e5) => {
194
+ const n3 = A(o4, e5.props.format, e5, B.pageContext, B.configure);
195
+ o4[e5.props.base.prop] = n3;
196
+ });
197
+ }));
198
+ return o3;
199
+ }(n2), columns: e3 };
169
200
  } }), (o2, n2) => {
170
- const t2 = r("el-table");
171
- return a(), i("div", { style: u(l(L)), class: p([l(q), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Q, headerInfo: l(M), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[g, l(M).showHeader]]), c(t2, { ref_key: "gridRef", ref: le, data: X.value, style: { width: "100%" }, "header-cell-style": me, "row-style": he, "cell-style": ve, "show-summary": oe.value, stripe: e2.configure.props.base.stripe, "summary-method": ye, "span-method": Ce }, { default: f(() => [W.value ? (a(true), i(d, { key: 0 }, m(Z.value, (o3, n3) => (a(), i(d, { key: n3 }, [o3.isLeaf ? we(ee.value[o3.columnUuid]) ? (a(), h(E, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: ee.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : v("", true) : (a(), h(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: ee.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(d, { key: 1 }, m(Y.value, (o3, n3) => (a(), i(d, { key: n3 }, [we(o3) ? (a(), h(E, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : v("", true)], 64))), 128))]), _: 1 }, 8, ["data", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (a(), h(I, { key: 0, configure: e2.configure, "table-data": X.value, total: pe.value, onPageChange: be, onPageSizeChange: xe }, null, 8, ["configure", "table-data", "total"])) : v("", true)], 6);
201
+ const r2 = t("el-table");
202
+ return i(), a("div", { style: p(l(Q)), class: u([l(W), "amb-widget-chart"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[m, l(Y).showHeader || e2.pageContext.showHomepageSearch]]), c(r2, { ref_key: "gridRef", ref: ge, data: oe.value, style: { width: "100%" }, "max-height": l(me), "header-cell-style": xe, "row-style": Oe, "cell-style": Se, "show-summary": ae.value, stripe: e2.configure.props.base.stripe, "summary-method": we, "span-method": je }, { default: d(() => [ee.value ? (i(true), a(h, { key: 0 }, v(re.value, (o3, n3) => (i(), a(h, { key: n3 }, [o3.isLeaf ? Re(te.value[o3.columnUuid]) ? (i(), g($, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (i(), g(F, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (i(true), a(h, { key: 1 }, v(ne.value, (o3, n3) => (i(), a(h, { key: n3 }, [Re(o3) ? (i(), g($, { key: 0, column: o3, configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["column", "configure", "pageContext"])) : f("", true)], 64))), 128))]), _: 1 }, 8, ["data", "max-height", "show-summary", "stripe"]), e2.configure.pageination && e2.configure.pageination.enable ? (i(), g(R, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: ke, onPageSizeChange: Ee }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
172
203
  };
173
204
  } });
174
205
  export {
175
- V as default
206
+ q as default
176
207
  };
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  configure: {
3
3
  type: ObjectConstructor;
4
4
  required: true;
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<{
6
6
  pageContext: {
7
7
  type: ObjectConstructor;
8
8
  };
9
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
9
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
10
10
  close: (...args: any[]) => void;
11
11
  export: (...args: any[]) => void;
12
12
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
@@ -17,8 +17,8 @@ declare const _default: import('vue').DefineComponent<{
17
17
  pageContext: {
18
18
  type: ObjectConstructor;
19
19
  };
20
- }>> & {
20
+ }>> & Readonly<{
21
21
  onClose?: (...args: any[]) => any;
22
22
  onExport?: (...args: any[]) => any;
23
- }, {}, {}>;
23
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
24
24
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, openBlock as o, createBlock as p, withCtx as r, createVNode as s, createTextVNode as u, toDisplayString as i } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as a, resolveComponent as l, createBlock as o, openBlock as p, withCtx as r, createVNode as s, createTextVNode as u, toDisplayString as i } from "vue";
2
2
  import { packageTemplateFiles as n } from "../../../utils/common-util.js";
3
3
  const m = "${", d = "}", c = e({ __name: "export-form-report-dialog", props: { configure: { type: Object, required: true }, pageContext: { type: Object } }, emits: ["export", "close"], setup(e2, { emit: c2 }) {
4
4
  const g = e2, f = c2, b = t([]), h = t([]), x = g.configure.props.base, v = g.pageContext.entity.data;
@@ -21,7 +21,7 @@ const m = "${", d = "}", c = e({ __name: "export-form-report-dialog", props: { c
21
21
  });
22
22
  }), (e3, t2) => {
23
23
  const a2 = l("el-table-column"), n2 = l("el-button"), m2 = l("el-table"), d2 = l("el-dialog");
24
- return o(), p(d2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: r(() => [s(m2, { data: b.value, style: { width: "100%" } }, { default: r(() => [s(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: r((e4) => [u(i(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: r((t3) => [s(n2, { type: "text", size: "small", onClick: (e4) => {
24
+ return p(), o(d2, { "show-close": true, "append-to-body": true, title: e3.$t("superPageRuntimeMessage.selectTemplate"), "model-value": "", onClose: y }, { default: r(() => [s(m2, { data: b.value, style: { width: "100%" } }, { default: r(() => [s(a2, { label: e3.$t("superPageRuntimeMessage.temlpate"), prop: "templateShowPath" }, { default: r((e4) => [u(i(e4.row.templateName), 1)]), _: 1 }, 8, ["label"]), s(a2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "200", fixed: "right" }, { default: r((t3) => [s(n2, { type: "text", size: "small", onClick: (e4) => {
25
25
  return a3 = t3.row, void f("export", g.configure, a3);
26
26
  var a3;
27
27
  } }, { default: r(() => [u(i(e3.$t("superPageRuntimeMessage.export")), 1)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"]);
@@ -1,4 +1,4 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  taskId: {
3
3
  type: NumberConstructor;
4
4
  default: any;
@@ -7,9 +7,9 @@ declare const _default: import('vue').DefineComponent<{
7
7
  type: ArrayConstructor;
8
8
  default: any;
9
9
  };
10
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
- result: (...args: any[]) => void;
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
12
11
  close: (...args: any[]) => void;
12
+ result: (...args: any[]) => void;
13
13
  open: (...args: any[]) => void;
14
14
  opend: (...args: any[]) => void;
15
15
  closed: (...args: any[]) => void;
@@ -22,14 +22,14 @@ declare const _default: import('vue').DefineComponent<{
22
22
  type: ArrayConstructor;
23
23
  default: any;
24
24
  };
25
- }>> & {
25
+ }>> & Readonly<{
26
26
  onClose?: (...args: any[]) => any;
27
27
  onResult?: (...args: any[]) => any;
28
28
  onOpen?: (...args: any[]) => any;
29
29
  onOpend?: (...args: any[]) => any;
30
30
  onClosed?: (...args: any[]) => any;
31
- }, {
31
+ }>, {
32
32
  taskId: number;
33
33
  activeTasks: unknown[];
34
- }, {}>;
34
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
35
35
  export default _default;
@@ -1,24 +1,22 @@
1
- import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, openBlock as s, createElementBlock as o, createVNode as n, withCtx as r, createElementVNode as u, createTextVNode as i, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a, createElementBlock as s, openBlock as o, createVNode as n, withCtx as r, createElementVNode as u, createTextVNode as i, toDisplayString as d } from "vue";
2
2
  import { ElMessage as p } from "element-plus";
3
3
  import { useI18n as m } from "vue-i18n";
4
4
  const c = { class: "dialog-footer" }, g = e({ __name: "remove-signer-dialog", props: { taskId: { type: Number, default: null }, activeTasks: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: g2 }) {
5
- m();
6
- const f = e2, v = g2, b = t([]), h = t([]);
7
- function k(e3) {
8
- b.value = e3;
5
+ const { t: f } = m(), v = e2, b = g2, h = t([]), k = t([]);
6
+ function y(e3) {
7
+ h.value = e3;
9
8
  }
10
- function y() {
11
- 0 !== b.value.length ? v("result", b.value) : p({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
9
+ function R() {
10
+ 0 !== h.value.length ? b("result", h.value) : p({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
12
11
  }
13
12
  return l(() => {
14
- h.value = function() {
15
- if (f.activeTasks && f.taskId)
16
- return f.activeTasks.filter((e3) => f.taskId !== e3.id ? e3.id : e3.ID ? e3.ID : null);
13
+ k.value = function() {
14
+ if (v.activeTasks && v.taskId) return v.activeTasks.filter((e3) => v.taskId !== e3.id ? e3.id : e3.ID ? e3.ID : null);
17
15
  return [];
18
16
  }();
19
17
  }), (e3, t2) => {
20
18
  const l2 = a("el-table-column"), p2 = a("el-table"), m2 = a("el-button"), g3 = a("el-dialog");
21
- return s(), o("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => v("open")), onOpend: t2[2] || (t2[2] = (e4) => v("opend")), onClose: t2[3] || (t2[3] = (e4) => v("close")), onClosed: t2[4] || (t2[4] = (e4) => v("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: y }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: h.value, border: "", style: { width: "100%" }, onSelect: k }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
19
+ return o(), s("div", null, [n(g3, { "model-value": "", title: e3.$t("superPageRuntimeMessage.selectRemoveUsers"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: t2[1] || (t2[1] = (e4) => b("open")), onOpend: t2[2] || (t2[2] = (e4) => b("opend")), onClose: t2[3] || (t2[3] = (e4) => b("close")), onClosed: t2[4] || (t2[4] = (e4) => b("closed")) }, { footer: r(() => [u("div", c, [n(m2, { type: "primary", onClick: R }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), n(m2, { onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: k.value, border: "", style: { width: "100%" }, onSelect: y }, { default: r(() => [n(l2, { type: "selection", width: "55" }), n(l2, { prop: "transactorName", label: e3.$t("superPageRuntimeMessage.transactorName"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "transactor", label: e3.$t("superPageRuntimeMessage.transactor"), width: "180" }, null, 8, ["label"]), n(l2, { prop: "trustorName", label: e3.$t("superPageRuntimeMessage.trustorName"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
22
20
  };
23
21
  } });
24
22
  export {
@@ -1,11 +1,11 @@
1
- declare const _default: import('vue').DefineComponent<{
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
2
  taskInformitions: {
3
3
  type: ArrayConstructor;
4
4
  default: any;
5
5
  };
6
- }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
- result: (...args: any[]) => void;
6
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
8
7
  close: (...args: any[]) => void;
8
+ result: (...args: any[]) => void;
9
9
  open: (...args: any[]) => void;
10
10
  opend: (...args: any[]) => void;
11
11
  closed: (...args: any[]) => void;
@@ -14,13 +14,13 @@ declare const _default: import('vue').DefineComponent<{
14
14
  type: ArrayConstructor;
15
15
  default: any;
16
16
  };
17
- }>> & {
17
+ }>> & Readonly<{
18
18
  onClose?: (...args: any[]) => any;
19
19
  onResult?: (...args: any[]) => any;
20
20
  onOpen?: (...args: any[]) => any;
21
21
  onOpend?: (...args: any[]) => any;
22
22
  onClosed?: (...args: any[]) => any;
23
- }, {
23
+ }>, {
24
24
  taskInformitions: unknown[];
25
- }, {}>;
25
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
26
26
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, resolveComponent as l, openBlock as o, createElementBlock as n, createVNode as a, withCtx as s, createElementVNode as i, createTextVNode as u, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, resolveComponent as l, createElementBlock as o, openBlock as n, createVNode as a, withCtx as s, createElementVNode as i, createTextVNode as u, toDisplayString as d } from "vue";
2
2
  import { ElMessage as r } from "element-plus";
3
3
  import { useI18n as p } from "vue-i18n";
4
4
  const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog", props: { taskInformitions: { type: Array, default: null } }, emits: ["open", "opend", "close", "closed", "result"], setup(e2, { emit: c2 }) {
@@ -11,7 +11,7 @@ const m = { class: "dialog-footer" }, c = e({ __name: "task-informition-dialog",
11
11
  }
12
12
  return (t2, r2) => {
13
13
  const p2 = l("el-table-column"), c3 = l("el-table"), g2 = l("el-button"), h2 = l("el-dialog");
14
- return o(), n("div", null, [a(h2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[1] || (r2[1] = (e3) => f("open")), onOpend: r2[2] || (r2[2] = (e3) => f("opend")), onClose: r2[3] || (r2[3] = (e3) => f("close")), onClosed: r2[4] || (r2[4] = (e3) => f("closed")) }, { footer: s(() => [i("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [a(c3, { data: e2.taskInformitions, border: "", style: { width: "100%" }, onSelect: v }, { default: s(() => [a(p2, { type: "selection", width: "55" }), a(p2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), a(p2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
14
+ return n(), o("div", null, [a(h2, { "model-value": "", title: t2.$t("superPageRuntimeMessage.selectNode"), "close-on-click-modal": false, "append-to-body": "", width: "30%", "max-height": "400", onOpen: r2[1] || (r2[1] = (e3) => f("open")), onOpend: r2[2] || (r2[2] = (e3) => f("opend")), onClose: r2[3] || (r2[3] = (e3) => f("close")), onClosed: r2[4] || (r2[4] = (e3) => f("closed")) }, { footer: s(() => [i("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [u(d(t2.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: s(() => [a(c3, { data: e2.taskInformitions, border: "", style: { width: "100%" }, onSelect: v }, { default: s(() => [a(p2, { type: "selection", width: "55" }), a(p2, { prop: "nodeName", label: t2.$t("superPageRuntimeMessage.nodeName"), width: "180" }, null, 8, ["label"]), a(p2, { prop: "nodeId", label: t2.$t("superPageRuntimeMessage.nodeId"), width: "180" }, null, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
15
15
  };
16
16
  } });
17
17
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, openBlock as i, createBlock as r, unref as u, normalizeStyle as p, normalizeClass as s, createSlots as l, withCtx as c, createElementVNode as a, createElementBlock as f, Fragment as g, renderList as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, createBlock as i, openBlock as r, unref as u, normalizeClass as p, normalizeStyle as s, createSlots as l, withCtx as c, createElementVNode as a, createElementBlock as f, Fragment as g, renderList as m, createCommentVNode as y, createTextVNode as d, toDisplayString as x } from "vue";
2
2
  import { ElCard as v } from "element-plus";
3
3
  import { SuperIcon as C } from "agilebuilder-ui";
4
4
  import h from "../../object-render.vue.js";
@@ -14,7 +14,7 @@ const k = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
14
14
  });
15
15
  }), k2({ test: function() {
16
16
  T.configure.props.title = "teee";
17
- } }), (e3, t2) => (i(), r(u(v), { ref_key: "thisRef", ref: V, style: p([u(S), { "margin-top": "20px" }]), class: s(u(R)) }, l({ default: c(() => [a("div", { style: p(u(D)) }, [(i(true), f(g, null, m(e3.configure.items, (t3, o2) => (i(), r(h, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: c(() => [a("div", { style: p(u(w)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (i(), r(u(C), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(u(b)(e3.configure.props.base.title)), 1)], 4)]), key: "0" } : void 0]), 1032, ["style", "class"]));
17
+ } }), (e3, t2) => (r(), i(u(v), { ref_key: "thisRef", ref: V, style: s([u(S), { "margin-top": "20px" }]), class: p(u(R)) }, l({ default: c(() => [a("div", { style: s(u(D)) }, [(r(true), f(g, null, m(e3.configure.items, (t3, o2) => (r(), i(h, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))], 4)]), _: 2 }, [e3.configure.props.base.tittleShow ? { name: "header", fn: c(() => [a("div", { style: s(u(w)) }, [e3.configure.props.iconType && e3.configure.props.iconValue ? (r(), i(u(C), { key: 0, iconType: e3.configure.props.iconType, iconValue: e3.configure.props.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), d(" " + x(u(b)(e3.configure.props.base.title)), 1)], 4)]), key: "0" } : void 0]), 1032, ["style", "class"]));
18
18
  } });
19
19
  export {
20
20
  k as default
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as l, openBlock as i, createBlock as u, unref as r, isRef as a, normalizeStyle as p, normalizeClass as s, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createElementVNode as d, createCommentVNode as y, createTextVNode as x, toDisplayString as v } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as l, createBlock as i, openBlock as u, normalizeClass as r, unref as a, normalizeStyle as p, isRef as s, withCtx as c, createElementBlock as f, Fragment as g, renderList as m, createElementVNode as d, createCommentVNode as y, createTextVNode as x, toDisplayString as v } from "vue";
2
2
  import C from "../../object-render.vue.js";
3
3
  import "../../../../utils/global-refs.js";
4
4
  import { $t as V } from "../../../../utils/i18n-util.js";
@@ -13,7 +13,7 @@ const _ = e({ __name: "collapse-runtime", props: { pageContext: {}, configure: {
13
13
  });
14
14
  }), (e3, t2) => {
15
15
  const n2 = l("SuperIcon"), o2 = l("el-collapse-item"), j2 = l("el-collapse");
16
- return i(), u(j2, { ref_key: "thisRef", ref: b, modelValue: r(h), "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => a(h) ? h.value = e4 : null), style: p(r(O)), accordion: r(T), class: s(r(R)) }, { default: c(() => [(i(true), f(g, null, m(e3.configure.items, (t3, l2) => (i(), u(o2, { name: t3.index }, { title: c(() => [d("div", { style: p([r(S), { width: "100%" }]) }, [t3.iconType && t3.iconValue ? (i(), u(n2, { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : y("", true), x(" " + v(r(V)(t3.label)), 1)], 4)]), default: c(() => [d("div", null, [(i(true), f(g, null, m(t3.items, (t4, n3) => (i(), u(C, { key: t4.uuid, configure: t4, pageContext: e3.pageContext }, null, 8, ["configure", "pageContext"]))), 128))])]), _: 2 }, 1032, ["name"]))), 256))]), _: 1 }, 8, ["modelValue", "style", "accordion", "class"]);
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 {