super-page-runtime 2.2.72 → 2.2.77-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 (43) hide show
  1. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  2. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  3. package/dist/es/components/runtime/utils/charts/chart-util.js +5 -5
  4. package/dist/es/components/runtime/utils/events/standard-event.js +152 -153
  5. package/dist/es/components/runtime/utils/events/validator-util.js +48 -38
  6. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  7. package/dist/es/components/runtime/utils/tree-utils.js +24 -23
  8. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +16 -13
  9. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +4 -1
  10. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +15 -11
  11. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +6 -5
  13. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +125 -111
  14. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  15. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +76 -54
  16. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  17. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  19. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  20. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  21. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +32 -27
  23. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  24. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +20 -20
  25. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
  27. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
  28. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  29. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  30. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -73
  31. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
  32. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
  34. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  35. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  36. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  37. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
  38. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  39. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  40. package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
  41. package/dist/es/index.js +1 -0
  42. package/dist/es/style.css +242 -100
  43. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
- import { defineComponent as e, ref as o, onMounted as n, watch as r, resolveComponent as t, createElementBlock as i, openBlock as a, normalizeClass as u, normalizeStyle as p, unref as l, withDirectives as s, createVNode as c, createBlock as g, createCommentVNode as f, vShow as d, withCtx as m, Fragment as h, renderList 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 i, openBlock as a, 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 { getSizeConfig as x, getChartDatasFromPage as b, getValueFromVariable as O, isPromise as w, setValueForVariableName as S, updateChartDatasourcesByComponent as j, caculateShowCondition as E } from "../../../../utils/page-helper-util.js";
4
- import { getCustomFunc as $ } from "../../../../utils/events/event-util.js";
5
- import k from "./group-column.vue.js";
6
- import F from "./normal-column.vue.js";
3
+ import { getSizeConfig as b, getChartDatasFromPage as x, getValueFromVariable as O, isPromise as S, setValueForVariableName as w, updateChartDatasourcesByComponent as E, caculateShowCondition as j } from "../../../../utils/page-helper-util.js";
4
+ import { getCustomFunc as F } from "../../../../utils/events/event-util.js";
5
+ import $ from "./group-column.vue.js";
6
+ import k from "./normal-column.vue.js";
7
7
  import I from "./table-pageination.vue.js";
8
- import { getSummaryTitleColumn as R, getSummaryDataColumn as H, rowDataToColumn as T, getColumnToRowTableConfig as _, colDataToRow as z, computeFormula as D, getNewColumnConfig as P, summaryStatistics as U, replacePlaceholders as G, getIndexColumn as K, getHeaderCellStyleUtil as N, getRowStyleUtil as J, getCellStyleUtil as L, formatColContent as V } from "./chart-table-util.js";
9
- import { deepCopy as A } from "../../../../utils/common-util.js";
8
+ import { getSummaryTitleColumn as R, getSummaryDataColumn as T, rowDataToColumn as H, getColumnToRowTableConfig as N, colDataToRow as _, computeFormula as z, getNewColumnConfig as D, summaryStatistics as P, replacePlaceholders as U, getIndexColumn as G, getHeaderCellStyleUtil as K, getRowStyleUtil as V, getCellStyleUtil as A, formatColContent as J } from "./chart-table-util.js";
9
+ import { deepCopy as L } from "../../../../utils/common-util.js";
10
10
  const q = e({ __name: "table-runtime", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) } }, setup(e2, { expose: q2 }) {
11
11
  var _a;
12
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({}), ie = o(false), ae = o({}), ue = o({}), pe = o({}), le = [], se = o({}), ce = o({}), ge = o(null), fe = o(0);
13
- let de = [];
13
+ let me = [];
14
14
  if (!B.configure.props.modelCustom) {
15
15
  if (ee.value) {
16
16
  const e3 = [];
@@ -19,7 +19,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
19
19
  }), e3.sort((e4, o2) => e4.displayOrder - o2.displayOrder), re.value = e3, function() {
20
20
  if (B.configure.props.base.showIndex) {
21
21
  re.value.unshift({ columnUuid: "$index", displayOrder: 0, isLeaf: true, prop: "$index", titleText: "序号", uuid: "$index" });
22
- const e4 = K();
22
+ const e4 = G();
23
23
  e4 && (te.value.$index = e4);
24
24
  }
25
25
  }();
@@ -28,8 +28,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
28
28
  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);
29
29
  });
30
30
  }
31
- ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = R(B.configure), ie.value && (ue.value = H(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = H(B.configure, "group")));
32
- let me = 300, he = x(B.pageContext, B.configure);
31
+ ie.value = B.configure.props.base.showSummary, (ie.value || B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) && (ae.value = R(B.configure), ie.value && (ue.value = T(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = T(B.configure, "group")));
32
+ let de = 300, he = b(B.pageContext, B.configure);
33
33
  function ve() {
34
34
  const e3 = B.configure.props.dataOrigin.variable.match(/\${(.*?)}/), o2 = e3 ? e3[1].split(".") : [];
35
35
  r(() => o2.reduce((e4, o3) => e4[o3], B.pageContext.entity), (e4) => {
@@ -38,21 +38,43 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
38
38
  }
39
39
  function ye(e3) {
40
40
  e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (!function(e4) {
41
- Re(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));
42
- de && Ce(de, e4);
41
+ var _a2, _b;
42
+ Re(e4), "service" === B.configure.props.dataOrigin.dataSource && e4.result ? me = e4.result[B.configure.props.dataOrigin.service.serviceDataField] : "variable" === B.configure.props.dataOrigin.dataSource && (ve(), me = O(B.pageContext.entity, B.configure.props.dataOrigin.variable));
43
+ if (me) {
44
+ if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
45
+ let e5 = 10;
46
+ "fix" === B.configure.props.dataOrigin.itemNumSource ? e5 = B.configure.props.dataOrigin.itemNumFix : "variable" === B.configure.props.dataOrigin.itemNumSource && (e5 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable)));
47
+ let o2 = [];
48
+ if (((_b = B.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _b.length) > 0) o2 = B.configure.props.dataOrigin.limitCountColumns;
49
+ else {
50
+ ne.value.filter((e6) => "number" === e6.props.base.dataType).forEach((e6) => {
51
+ o2.push(e6.props.base.prop);
52
+ });
53
+ }
54
+ if ((o2 == null ? void 0 : o2.length) > 0) {
55
+ const n2 = me.slice(e5, me.length - 1), r2 = {}, t2 = ne.value[0].props.base.prop;
56
+ n2.forEach((e6) => {
57
+ o2.forEach((o3) => {
58
+ void 0 === r2[o3] && (r2[o3] = 0), r2[o3] = r2[o3] + e6[o3];
59
+ });
60
+ }), me.length > e5 && (me = me.slice(0, e5 - 1)), r2[t2] = B.configure.props.dataOrigin.overItemAlias, me.push(r2);
61
+ }
62
+ }
63
+ Ce(me, e4);
64
+ }
43
65
  }(e3), e3.hasRender = true, X && (X.autoRefresh = false));
44
66
  }
45
67
  function Ce(e3, o2) {
46
68
  var _a2;
47
- if (xe("rowToColumn")) {
48
- if (e3 = T(e3, B.configure, ne.value), !ee.value) {
69
+ if (be("rowToColumn")) {
70
+ if (e3 = H(e3, B.configure, ne.value), !ee.value) {
49
71
  const o3 = function(e4, o4, n2) {
50
72
  const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
51
73
  if ((!i2 || 0 === i2.length) && n2.length > 0) {
52
74
  const e5 = [];
53
- return e5.push(P("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
75
+ return e5.push(D("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
54
76
  if ("$GroupColumn" === o5) return;
55
- const r3 = P(o5, o5, n3 + 1, "string");
77
+ const r3 = D(o5, o5, n3 + 1, "string");
56
78
  e5.push(r3);
57
79
  }), e5;
58
80
  }
@@ -68,7 +90,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
68
90
  }), a2.forEach((o5) => {
69
91
  t2.forEach((r3) => {
70
92
  var _a3;
71
- const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = P(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
93
+ const t3 = (_a3 = ne.value.find((e6) => e6.props.base.prop === r3)) == null ? void 0 : _a3.props.base.name, i4 = D(`${o5}${r3}`, `${o5}${t3}`, e5.length + 1, "number" == typeof n2[0][`${o5}${r3}`] ? "number" : "string");
72
94
  e5.push(i4);
73
95
  });
74
96
  }), e5;
@@ -76,16 +98,16 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
76
98
  }(B.configure, ne.value, e3);
77
99
  ne.value = o3;
78
100
  }
79
- } else xe("columnToRow") && (ee.value || (ne.value = _(B.configure)), e3 = z(e3, B.configure));
101
+ } else be("columnToRow") && (ee.value || (ne.value = N(B.configure)), e3 = _(e3, B.configure));
80
102
  if (B.configure.props.dataOrigin.dataFormatting) {
81
- const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
103
+ const o3 = F(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
82
104
  if (o3) {
83
105
  const n2 = o3.apply(o3, [{ tableData: e3 }]);
84
106
  n2 && (e3 = n2);
85
107
  }
86
108
  }
87
- 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) {
88
- "frontend" === B.configure.pageination.type ? (fe.value = de.length, ke(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]));
109
+ if (Object.keys(ce.value).length > 0 && e3 && e3.length > 0 && z(ce.value, e3, B.pageContext.entity), ((_a2 = B.configure.pageination) == null ? void 0 : _a2.enable) ? function(e4) {
110
+ "frontend" === B.configure.pageination.type ? (fe.value = me.length, $e(1, B.configure.pageination.pageSize)) : "backend" === B.configure.pageination.type && (oe.value = me, B.configure.pageination.totalFrom && (fe.value = e4.result[B.configure.pageination.totalFrom]));
89
111
  }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
90
112
  const e4 = B.configure.props.highOrder.groupField;
91
113
  oe.value = function(e5, o3) {
@@ -100,11 +122,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
100
122
  for (let e6 = 0; e6 < a2.length; e6++) {
101
123
  const o4 = a2[e6], i3 = {};
102
124
  t2 == null ? void 0 : t2.forEach((e7) => {
103
- const n3 = e7.props.base.prop, r3 = U(pe.value[n3], o4, n3, B.pageContext);
125
+ const n3 = e7.props.base.prop, r3 = P(pe.value[n3], o4, n3, B.pageContext);
104
126
  i3[n3] = r3;
105
127
  }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
106
128
  const n3 = e7.props.base.prop;
107
- i3[n3] = G(e7.props.base.summaryTitle, o4[0]);
129
+ i3[n3] = U(e7.props.base.summaryTitle, o4[0]);
108
130
  }), n2.push(i3), le.push(n2.length - 1);
109
131
  }
110
132
  return n2;
@@ -112,27 +134,27 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
112
134
  }
113
135
  !function(e4) {
114
136
  if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
115
- const o3 = K();
137
+ const o3 = G();
116
138
  o3 && e4.unshift(o3);
117
139
  }
118
140
  }(ne.value);
119
141
  }
120
- function xe(e3) {
142
+ function be(e3) {
121
143
  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;
122
144
  }
123
- function be(e3) {
145
+ function xe(e3) {
124
146
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].titleStyle : null, n2 = Q == null ? void 0 : Q.titleStyle;
125
- return N(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
147
+ return K(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
126
148
  }
127
149
  function Oe(e3) {
128
- return J(e3, le, B);
150
+ return V(e3, le, B);
129
151
  }
130
- function we(e3) {
152
+ function Se(e3) {
131
153
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
132
- return L(e3, o2, B);
154
+ return A(e3, o2, B);
133
155
  }
134
- he && he.fixHeight && (me = he.fixHeight), he && he.maxHeight && (me = he.maxHeight), me && (me = Number(me + "")), n(() => {
135
- const e3 = b(B.pageContext, B.configure);
156
+ he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
157
+ const e3 = x(B.pageContext, B.configure);
136
158
  if (e3) ye(e3);
137
159
  else if ("variable" === B.configure.props.dataOrigin.dataSource) {
138
160
  ve();
@@ -140,72 +162,72 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
140
162
  o2 && Ce(o2, e3);
141
163
  }
142
164
  });
143
- const Se = (e3) => {
165
+ const we = (e3) => {
144
166
  const { columns: o2, data: n2 } = e3, r2 = [];
145
167
  return o2.forEach((e4, o3) => {
146
168
  if (ae.value[e4.property]) {
147
169
  const t2 = ae.value[e4.property].label;
148
- r2[o3] = y("div", {}, [G(t2, n2)]);
170
+ r2[o3] = y("div", {}, [U(t2, n2)]);
149
171
  } else if (ue.value[e4.property]) {
150
172
  const t2 = n2.filter((e5, o4) => !le.includes(o4));
151
- r2[o3] = U(ue.value[e4.property], t2, e4.property, B.pageContext);
173
+ r2[o3] = P(ue.value[e4.property], t2, e4.property, B.pageContext);
152
174
  }
153
175
  }), r2;
154
176
  };
155
- function je({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
177
+ function Ee({ row: e3, column: o2, rowIndex: n2, columnIndex: r2 }) {
156
178
  const t2 = o2.property, i2 = B.configure.props.highOrder;
157
179
  if (i2.scopeFunc) {
158
- const t3 = $(B.pageContext, i2.scopeFunc);
180
+ const t3 = F(B.pageContext, i2.scopeFunc);
159
181
  if (t3) {
160
182
  const i3 = t3.apply(t3, [{ tableData: oe.value, row: e3, column: o2, rowIndex: n2, columnIndex: r2 }]);
161
183
  if (i3) return i3;
162
184
  }
163
185
  } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2) && 0 === n2) return { rowspan: oe.value.length, colspan: 1 };
164
186
  }
165
- function Ee(e3, o2) {
166
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
187
+ function je(e3, o2) {
188
+ "frontend" === B.configure.pageination.type ? $e(e3, o2) : ke(e3, o2);
189
+ }
190
+ function Fe(e3, o2) {
191
+ "frontend" === B.configure.pageination.type ? $e(e3, o2) : ke(e3, o2);
167
192
  }
168
193
  function $e(e3, o2) {
169
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
194
+ me && (oe.value = me.slice((e3 - 1) * o2, e3 * o2));
170
195
  }
171
196
  function ke(e3, o2) {
172
- de && (oe.value = de.slice((e3 - 1) * o2, e3 * o2));
173
- }
174
- function Fe(e3, o2) {
175
- B.configure.pageination.currentPageSet && S(B.pageContext.entity, B.configure.pageination.currentPageSet, e3), B.configure.pageination.pageSizeSet && S(B.pageContext.entity, B.configure.pageination.pageSizeSet, o2), j(B.pageContext, B.configure.uuid);
197
+ 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), E(B.pageContext, B.configure.uuid);
176
198
  }
177
199
  function Ie(e3) {
178
200
  const o2 = e3.showCondition;
179
- return E(B.pageContext, o2);
201
+ return j(B.pageContext, o2);
180
202
  }
181
203
  function Re(e3) {
182
204
  if (B.configure.props.modelCustom) {
183
- const o2 = $(B.pageContext, B.configure.props.modelCustom);
205
+ const o2 = F(B.pageContext, B.configure.props.modelCustom);
184
206
  if (o2) {
185
207
  const n2 = o2.apply(o2, [{ pageContext: B.pageContext, configureObj: B.configure, value: e3 }]);
186
- w(n2) ? n2.then((e4) => {
208
+ S(n2) ? n2.then((e4) => {
187
209
  ne.value = e4.columns;
188
210
  }) : ne.value = n2.columns;
189
211
  }
190
212
  }
191
213
  }
192
- function He(e3, o2, n2) {
214
+ function Te(e3, o2, n2) {
193
215
  e3.forEach((e4) => {
194
216
  const r2 = e4.props.base.prop, t2 = e4.props.base.name;
195
217
  let i2 = { name: r2, label: t2, i18nKey: t2 };
196
- e4.children && e4.childern.length > 0 && (i2.children = [], He(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
218
+ e4.children && e4.childern.length > 0 && (i2.children = [], Te(e4.children, i2.children, n2)), e4.props.format && e4.props.format.type && n2.push(e4), o2.push(i2);
197
219
  });
198
220
  }
199
221
  return q2({ updateChartDatas: ye, exportChart: function() {
200
222
  let e3 = [], o2 = [];
201
223
  o2 = ee.value ? B.configure.props.groupHeaders : B.configure.items;
202
224
  let n2 = [];
203
- He(o2, e3, n2);
225
+ Te(o2, e3, n2);
204
226
  return { isTable: true, dataArr: function(e4) {
205
227
  let o3 = [];
206
- oe.value && (o3 = A(oe.value), o3.forEach((o4) => {
228
+ oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
207
229
  e4.forEach((e5) => {
208
- const n3 = V(o4, e5.props.format, e5, B.pageContext, B.configure);
230
+ const n3 = J(o4, e5.props.format, e5, B.pageContext, B.configure);
209
231
  o4[e5.props.base.prop] = n3;
210
232
  });
211
233
  }));
@@ -213,7 +235,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
213
235
  }(n2), columns: e3 };
214
236
  } }), (o2, n2) => {
215
237
  const r2 = t("el-table");
216
- return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), class: u([l(W), "amb-widget-chart amb-widget-flex"]), ref: "thisRef" }, [s(c(C, { ref_key: "headerRef", ref: Z, headerInfo: l(Y), configure: e2.configure, pageContext: e2.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[d, 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": be, "row-style": Oe, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Se, "span-method": je }, { default: m(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ie(te.value[o3.columnUuid]) ? (a(), g(F, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g(k, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ie(o3) ? (a(), g(F, { 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 ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: Ee, onPageSizeChange: $e }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
238
+ return a(), i("div", { style: p([l(Q), { display: "flex", "flex-direction": "column" }]), class: u([l(W), "amb-widget-chart amb-widget-flex"]), 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(de), "header-cell-style": xe, "row-style": Oe, "cell-style": Se, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": we, "span-method": Ee }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ie(te.value[o3.columnUuid]) ? (a(), g(k, { key: 1, configure: e2.configure, pageContext: e2.pageContext, column: te.value[o3.columnUuid] }, null, 8, ["configure", "pageContext", "column"])) : f("", true) : (a(), g($, { key: 0, configure: e2.configure, pageContext: e2.pageContext, groupColumn: o3, columnsConfigKeyValues: te.value }, null, 8, ["configure", "pageContext", "groupColumn", "columnsConfigKeyValues"]))], 64))), 128)) : (a(true), i(h, { key: 1 }, v(ne.value, (o3, n3) => (a(), i(h, { key: n3 }, [Ie(o3) ? (a(), g(k, { 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 ? (a(), g(I, { key: 0, configure: e2.configure, "table-data": oe.value, total: fe.value, onPageChange: je, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
217
239
  };
218
240
  } });
219
241
  export {
@@ -2,21 +2,21 @@ import { defineComponent as e, ref as t, onMounted as l, resolveComponent as a,
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
- const { t: f } = m(), v = e2, b = g2, h = t([]), k = t([]);
6
- function y(e3) {
5
+ const { t: f } = m(), v = e2, b = g2, h = t([]), y = t([]);
6
+ function k(e3) {
7
7
  h.value = e3;
8
8
  }
9
9
  function R() {
10
10
  0 !== h.value.length ? b("result", h.value) : p({ showClose: true, type: "warning", message: this.$t("superPageRuntimeMessage.pleaseSelectRemoverUsers") });
11
11
  }
12
12
  return l(() => {
13
- k.value = function() {
13
+ y.value = function() {
14
14
  if (v.activeTasks && v.taskId) return v.activeTasks.filter((e3) => v.taskId !== e3.id ? e3.id : e3.ID ? e3.ID : null);
15
15
  return [];
16
16
  }();
17
17
  }), (e3, t2) => {
18
18
  const l2 = a("el-table-column"), p2 = a("el-table"), m2 = a("el-button"), g3 = a("el-dialog");
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"])]);
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, { type: "default", onClick: t2[0] || (t2[0] = (t3) => e3.$emit("close")) }, { default: r(() => [i(d(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: r(() => [n(p2, { data: y.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"])]);
20
20
  };
21
21
  } });
22
22
  export {
@@ -22,7 +22,7 @@ const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dial
22
22
  $();
23
23
  }), v2({ refreshConditionList: $ }), (e3, t2) => {
24
24
  const l2 = o("el-input"), c2 = o("el-col"), m2 = o("el-button"), v3 = o("el-row"), h2 = o("el-table-column"), y2 = o("Delete"), b2 = o("el-icon"), x = o("el-table"), O = o("el-dialog");
25
- return n(), a("div", null, [s(O, { "model-value": "", title: e3.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: t2[2] || (t2[2] = (e4) => _("open")), onOpend: t2[3] || (t2[3] = (e4) => _("opend")), onClose: t2[4] || (t2[4] = (e4) => _("close")), onClosed: t2[5] || (t2[5] = (e4) => _("closed")) }, { footer: u(() => [d("div", f, [s(m2, { type: "primary", onClick: R }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), s(m2, { onClick: t2[1] || (t2[1] = (e4) => _("close")) }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: u(() => [s(v3, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: u(() => [s(c2, { span: 18 }, { default: u(() => [s(l2, { modelValue: w.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => w.value = e4), placeholder: e3.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), s(c2, { span: 6 }, { default: u(() => [s(m2, { type: "primary", onClick: P }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), s(x, { data: M.value, border: "", style: { width: "100%" }, onSelect: k }, { default: u(() => [s(h2, { type: "selection", align: "center", width: "55" }), s(h2, { prop: "name", label: e3.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), s(h2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: u((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => {
25
+ return n(), a("div", null, [s(O, { "model-value": "", title: e3.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: t2[2] || (t2[2] = (e4) => _("open")), onOpend: t2[3] || (t2[3] = (e4) => _("opend")), onClose: t2[4] || (t2[4] = (e4) => _("close")), onClosed: t2[5] || (t2[5] = (e4) => _("closed")) }, { footer: u(() => [d("div", f, [s(m2, { type: "primary", onClick: R }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), s(m2, { type: "default", onClick: t2[1] || (t2[1] = (e4) => _("close")) }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: u(() => [s(v3, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: u(() => [s(c2, { span: 18 }, { default: u(() => [s(l2, { modelValue: w.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => w.value = e4), placeholder: e3.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), s(c2, { span: 6 }, { default: u(() => [s(m2, { type: "primary", onClick: P }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), s(x, { data: M.value, border: "", style: { width: "100%" }, onSelect: k }, { default: u(() => [s(h2, { type: "selection", align: "center", width: "55" }), s(h2, { prop: "name", label: e3.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), s(h2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: u((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => {
26
26
  return l3 = e4.row, void g(l3.id).then(() => {
27
27
  p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
28
28
  });
@@ -1,4 +1,4 @@
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";
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 u, createTextVNode as i, 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 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"])]);
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(() => [u("div", m, [a(g2, { type: "primary", onClick: b }, { default: s(() => [i(d(t2.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), a(g2, { type: "default", onClick: r2[0] || (r2[0] = (e3) => f("close")) }, { default: s(() => [i(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,7 +1,7 @@
1
1
  import r from "./card-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const t = e(r, [["__scopeId", "data-v-fc66efb1"]]);
4
+ const t = e(r, [["__scopeId", "data-v-26138226"]]);
5
5
  export {
6
6
  t as default
7
7
  };
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, computed as t, ref as o, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as x, createTextVNode as v, toDisplayString as C } from "vue";
1
+ import { defineComponent as e, computed as o, ref as t, onMounted as i, nextTick as n, resolveComponent as r, createBlock as l, openBlock as s, unref as u, normalizeClass as a, normalizeStyle as p, createSlots as c, withCtx as f, createElementVNode as g, createElementBlock as m, Fragment as y, renderList as d, createCommentVNode as v, createTextVNode as x, toDisplayString as C } from "vue";
2
2
  import { ElCard as b } from "element-plus";
3
3
  import { SuperIcon as h } from "agilebuilder-ui";
4
4
  import { ArrowUp as k, ArrowDown as w } from "@element-plus/icons-vue";
@@ -9,19 +9,19 @@ const V = e({ __name: "card-runtime", props: { pageContext: {}, configure: {} },
9
9
  var _a, _b;
10
10
  const _ = e2;
11
11
  _.configure.items || (_.configure.items = []);
12
- const R = t(() => {
12
+ const R = o(() => {
13
13
  var _a2;
14
14
  return [true, void 0].includes((_a2 = _.configure.props) == null ? void 0 : _a2.isCollapse);
15
- }), z = o(null), D = o(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
15
+ }), z = t(null), D = t(!((_a = _.configure.props) == null ? void 0 : _a.isCollapse) || false !== ((_b = _.configure.props) == null ? void 0 : _b.isCollapseShow)), q = _.configure.runtime ? _.configure.runtime : {}, A = q.style, B = q.class, E = q.headerStyle, F = q.contentStyle, G = () => R.value && (D.value = !D.value);
16
16
  return i(() => {
17
17
  n(() => {
18
18
  T(null, _.pageContext, _.configure, { componentRef: z.value, entity: _.pageContext.entity.data, pageData: _.pageContext.entity.page });
19
19
  });
20
20
  }), V2({ test: function() {
21
21
  _.configure.props.title = "teee";
22
- } }), (e3, t2) => {
23
- const o2 = r("el-button");
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, (t3, o3) => (s(), l(S, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, 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"])) : x("", true), v(" " + C(u(j)(e3.configure.props.base.title)), 1)], 4), R.value ? (s(), l(o2, { key: 0, type: "text", icon: D.value ? u(k) : u(w), style: { margin: "-15px 0", "z-index": "1" } }, null, 8, ["icon"])) : x("", 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 {
@@ -1,7 +1,7 @@
1
1
  import e from "./YxAffix.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(e, [["__scopeId", "data-v-d053fb6d"]]);
4
+ const r = o(e, [["__scopeId", "data-v-a57b9445"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,44 +1,46 @@
1
- import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, createElementBlock as r, openBlock as s, createCommentVNode as u, createElementVNode as f, normalizeStyle as c, normalizeClass as d, renderSlot as p } from "vue";
2
- const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: v2 }) {
3
- const m = e2, w = v2, h = t(null), x = t(null), y = t(false), g = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = () => {
1
+ import { defineComponent as e, ref as t, onMounted as o, nextTick as n, onUnmounted as i, watchEffect as l, computed as a, resolveDirective as r, createElementBlock as s, openBlock as u, normalizeStyle as f, withDirectives as c, normalizeClass as d, renderSlot as v } from "vue";
2
+ const p = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 }, position: { type: String, default: "top", validator: (e2) => ["top", "bottom"].includes(e2) }, target: { type: [String, HTMLElement], default: () => window }, autoDetectParentScroll: { type: Boolean, default: true }, stickyInScrollContainer: { type: Boolean, default: true }, zIndex: { type: Number, default: 100 }, enableIntervalUpdate: { type: Boolean, default: true }, enableIntervalTime: { type: Number, default: 2e3 } }, emits: ["change"], setup(e2, { emit: p2 }) {
3
+ const m = e2, h = p2, g = t(null), w = t(null), x = t(false), y = t({}), b = t([]), T = t(window), B = t(0), I = t(null), E = (e3) => {
4
+ e3.contentRect.height && (y.value.height = e3.contentRect.height);
5
+ }, S = () => {
4
6
  try {
5
- if (!x.value) return;
6
- const e3 = x.value.getBoundingClientRect(), t2 = T.value;
7
+ if (!w.value) return;
8
+ const e3 = w.value.getBoundingClientRect(), t2 = T.value;
7
9
  if (t2 === window) {
8
10
  const t3 = "top" === m.position ? e3.top <= m.offset : e3.bottom >= window.innerHeight - m.offset;
9
- B.value = 0, S(t3, e3);
11
+ B.value = 0, R(t3, e3);
10
12
  } else if (m.stickyInScrollContainer) {
11
13
  const o2 = t2.getBoundingClientRect(), { isFixTop: n2, isFixBottom: i2, containerOffset: l2 } = ((e4) => {
12
14
  const t3 = ["top"].includes(m.position), o3 = ["bottom"].includes(m.position);
13
- if (!h.value) return { isTop: t3, isBottom: o3 };
14
- const n3 = h.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
15
+ if (!g.value) return { isTop: t3, isBottom: o3 };
16
+ const n3 = g.value.getBoundingClientRect(), i3 = n3.top - e4.top, l3 = n3.left - e4.left, a2 = e4.height - n3.height - i3, r2 = e4.top, s2 = window.innerHeight - e4.bottom;
15
17
  return { isTop: t3, isBottom: o3, containerTop: r2, containerBottom: s2, containerOffset: t3 ? r2 : o3 ? s2 : 0, offsetTop: i3, offsetLeft: l3, offsetBottom: a2, isFixTop: t3 && i3 <= 0, isFixBottom: o3 && a2 <= 0 };
16
18
  })(o2);
17
- B.value = l2 ?? 0, S(n2 || i2 || false, e3);
19
+ B.value = l2 ?? 0, R(n2 || i2 || false, e3);
18
20
  }
19
21
  } catch (e3) {
20
22
  }
21
- }, S = (e3, t2) => {
23
+ }, R = (e3, t2) => {
22
24
  var _a;
23
- e3 === y.value && ((_a = g.value) == null ? void 0 : _a.height) === `${t2.height}px` || (y.value = e3, w("change", e3), g.value = e3 ? { width: "100%", height: `${t2.height}px` } : {});
24
- }, C = () => {
25
- requestAnimationFrame(E);
25
+ e3 === x.value && ((_a = y.value) == null ? void 0 : _a.height) === `${t2.height}px` || (x.value = e3, h("change", e3), y.value = e3 ? { width: "100%", height: `${t2.height}px` } : {});
26
+ }, z = () => {
27
+ requestAnimationFrame(S);
26
28
  };
27
- let L;
28
- const k = () => {
29
- y.value = false, clearTimeout(L), L = window.setTimeout(() => {
30
- E();
29
+ let C;
30
+ const L = () => {
31
+ x.value = false, clearTimeout(C), C = window.setTimeout(() => {
32
+ S();
31
33
  }, 100);
32
34
  };
33
35
  o(() => {
34
36
  setTimeout(() => {
35
37
  n(() => {
36
38
  try {
37
- m.enableIntervalUpdate && (I.value = setInterval(C, m.enableIntervalTime));
39
+ m.enableIntervalUpdate && (I.value = setInterval(z, m.enableIntervalTime));
38
40
  const e3 = (() => {
39
- if (m.autoDetectParentScroll && x.value) {
41
+ if (m.autoDetectParentScroll && w.value) {
40
42
  const e4 = [];
41
- let t2 = x.value.parentElement;
43
+ let t2 = w.value.parentElement;
42
44
  for (; t2 && t2 !== document.body; ) {
43
45
  const { overflowY: o2 } = window.getComputedStyle(t2);
44
46
  /(auto|scroll)/.test(o2) && e4.push(t2), t2 = t2.parentElement;
@@ -51,24 +53,27 @@ const v = e({ __name: "YxAffix", props: { offset: { type: Number, default: 0 },
51
53
  }
52
54
  return [window];
53
55
  })();
54
- b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", C)), window.addEventListener("resize", k), E();
56
+ b.value = e3, T.value = e3[0], b.value.forEach((e4) => e4.addEventListener("scroll", z)), window.addEventListener("resize", L), S();
55
57
  } catch (e3) {
56
58
  }
57
59
  });
58
60
  }, 100);
59
61
  }), i(() => {
60
- T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", C)), window.removeEventListener("resize", k), clearTimeout(L), I.value && clearInterval(I.value);
62
+ T.value && b.value.forEach((e3) => e3.removeEventListener("scroll", z)), window.removeEventListener("resize", L), clearTimeout(C), I.value && clearInterval(I.value);
61
63
  }), l(() => {
62
64
  n(() => {
63
- C();
65
+ z();
64
66
  });
65
67
  });
66
- const z = a(() => {
68
+ const F = a(() => {
67
69
  var _a;
68
- return y.value ? { position: "fixed", width: `${(_a = x.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
70
+ return x.value ? { position: "fixed", width: `${(_a = w.value) == null ? void 0 : _a.offsetWidth}px`, zIndex: m.zIndex, [m.position]: `${m.offset + B.value}px` } : { position: "relative" };
69
71
  });
70
- return (e3, t2) => (s(), r("div", { ref_key: "affixMainRef", ref: h, class: "yx-affix" }, [y.value ? (s(), r("div", { key: 0, style: c(g.value), class: "yx-affix-placeholder" }, null, 4)) : u("", true), f("div", { ref_key: "affixRef", ref: x, style: c(z.value), class: d({ "yx-affix-content": true, "is-fixed": y.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }) }, [p(e3.$slots, "default", {}, void 0, true)], 6)], 512));
72
+ return (e3, t2) => {
73
+ const o2 = r("resize");
74
+ return u(), s("div", { ref_key: "affixMainRef", ref: g, class: "yx-affix", style: f({ height: x.value ? y.value.height : void 0 }) }, [c((u(), s("div", { ref_key: "affixRef", ref: w, style: f(F.value), class: d([{ "is-fixed": x.value, "is-top": "top" === m.position, "is-bottom": "bottom" === m.position }, "yx-affix-content"]) }, [v(e3.$slots, "default", {}, void 0, true)], 6)), [[o2, E]])], 4);
75
+ };
71
76
  } });
72
77
  export {
73
- v as default
78
+ p as default
74
79
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./tabs-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = e(t, [["__scopeId", "data-v-ad75c0d0"]]);
4
+ const r = e(t, [["__scopeId", "data-v-0cf3e10d"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,41 +1,41 @@
1
- import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as u, normalizeClass as l, normalizeStyle as r, withCtx as c, createElementBlock as p, Fragment as s, renderList as g, createElementVNode as f, createCommentVNode as m, toDisplayString as d } from "vue";
2
- import { ElTabs as b, ElTabPane as y } from "element-plus";
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, createBlock as a, openBlock as i, unref as l, normalizeClass as u, normalizeStyle as r, withCtx as p, createElementBlock as c, Fragment as s, renderList as g, createCommentVNode as f, createElementVNode as m, toDisplayString as d } from "vue";
2
+ import { ElTabs as y, ElTabPane as b } from "element-plus";
3
3
  import x from "../../object-render.vue.js";
4
4
  import { SuperIcon as C } from "agilebuilder-ui";
5
5
  import { handleAfterInitEvent as v, handleEvent as T } from "../../../../utils/events/event-util.js";
6
6
  import { $t as h } from "../../../../utils/i18n-util.js";
7
- const V = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
- const V2 = e2, k = t(null);
9
- k.value = V2.configure.props.defaultOpen ? V2.configure.props.defaultOpen : 1;
10
- const _ = t(null), j = V2.configure.runtime ? V2.configure.runtime : {}, N = j.style, R = j.class, D = j.headerStyle;
11
- function E(e3, t2) {
7
+ const k = e({ __name: "tabs-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
8
+ const k2 = e2, V = t(null);
9
+ V.value = k2.configure.props.defaultOpen ? k2.configure.props.defaultOpen : 1;
10
+ const _ = t(null), j = k2.configure.runtime ? k2.configure.runtime : {}, N = j.style, R = j.class, z = j.headerStyle;
11
+ function D(e3, t2) {
12
12
  const n2 = { pane: e3, ev: t2 }, o2 = e3.paneName;
13
- return V2.pageContext.activeTab = o2, V2.pageContext.activeLabel = n2.label, T(o2, V2.pageContext, V2.configure, "tab-click", n2);
13
+ return k2.pageContext.activeTab = o2, k2.pageContext.activeLabel = n2.label, T(o2, k2.pageContext, k2.configure, "tab-click", n2);
14
14
  }
15
- function O(e3) {
15
+ function E(e3) {
16
16
  const t2 = { paneName: e3 };
17
- return V2.pageContext.activeTab = e3, T(e3, V2.pageContext, V2.configure, "tab-change", t2);
17
+ return k2.pageContext.activeTab = e3, T(e3, k2.pageContext, k2.configure, "tab-change", t2);
18
18
  }
19
- function S(e3) {
19
+ function O(e3) {
20
20
  const t2 = { paneName: e3 };
21
- return T(e3, V2.pageContext, V2.configure, "tab-remove", t2);
21
+ return T(e3, k2.pageContext, k2.configure, "tab-remove", t2);
22
22
  }
23
- function q() {
24
- return T(null, V2.pageContext, V2.configure, "tab-add");
23
+ function S() {
24
+ return T(null, k2.pageContext, k2.configure, "tab-add");
25
25
  }
26
- function w(e3, t2) {
26
+ function q(e3, t2) {
27
27
  const n2 = { paneName: e3, action: t2 };
28
- return T(e3, V2.pageContext, V2.configure, "edit", n2);
28
+ return T(e3, k2.pageContext, k2.configure, "edit", n2);
29
29
  }
30
30
  return n(() => {
31
31
  o(() => {
32
32
  let e3 = [];
33
- V2.configure.items.forEach((t2) => {
33
+ k2.configure.items.forEach((t2) => {
34
34
  t2.code && e3.push(document.querySelector("." + t2.code));
35
- }), v(null, V2.pageContext, V2.configure, { componentRef: _.value, tabsDom: e3, entity: V2.pageContext.entity.data, pageData: V2.pageContext.entity.page });
35
+ }), v(null, k2.pageContext, k2.configure, { componentRef: _.value, tabsDom: e3, entity: k2.pageContext.entity.data, pageData: k2.pageContext.entity.page });
36
36
  });
37
- }), (e3, t2) => (i(), a(u(b), { ref_key: "thisRef", ref: _, modelValue: k.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => k.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: r(u(N)), class: l([u(R), "runtime-page-container-tabs-view"]), onTabClick: E, onTabChange: O, onTabRemove: S, onTabAdd: q, onEdit: w }, { default: c(() => [(i(true), p(s, null, g(e3.configure.items, (t3, n2) => (i(), a(u(y), { label: t3.label, name: t3.index }, { label: c(() => [f("span", { class: l(t3.code) }, [t3.iconType && t3.iconValue ? (i(), a(u(C), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : m("", true), f("span", { style: r(u(D)) }, d(u(h)(t3.label)), 5)], 2)]), default: c(() => [(i(true), p(s, null, g(t3.items, (t4, n3) => (i(), a(x, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 2 }, 1032, ["label", "name"]))), 256))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
37
+ }), (e3, t2) => (i(), a(l(y), { ref_key: "thisRef", ref: _, modelValue: V.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => V.value = e4), type: e3.configure.props.cardType, "tab-position": e3.configure.props.tabPosition, style: r(l(N)), class: u([l(R), "runtime-page-container-tabs-view"]), onTabClick: D, onTabChange: E, onTabRemove: O, onTabAdd: S, onEdit: q }, { default: p(() => [(i(true), c(s, null, g(e3.configure.items, (t3, n2) => (i(), a(l(b), { key: n2, label: t3.label, name: t3.index, lazy: !!e3.configure.props.lazy }, { label: p(() => [m("span", { class: u(t3.code) }, [t3.iconType && t3.iconValue ? (i(), a(l(C), { key: 0, iconType: t3.iconType, iconValue: t3.iconValue, style: { "margin-right": "2px" } }, null, 8, ["iconType", "iconValue"])) : f("", true), m("span", { style: r(l(z)) }, d(l(h)(t3.label)), 5)], 2)]), default: p(() => [(e3.configure.props.isFullyRendered ?? 1) || t3.index === V.value ? (i(true), c(s, { key: 0 }, g(t3.items, (t4, n3) => (i(), a(x, { key: t4.uuid, pageContext: e3.pageContext, configure: t4 }, null, 8, ["pageContext", "configure"]))), 128)) : f("", true)]), _: 2 }, 1032, ["label", "name", "lazy"]))), 128))]), _: 1 }, 8, ["modelValue", "type", "tab-position", "style", "class"]));
38
38
  } });
39
39
  export {
40
- V as default
40
+ k as default
41
41
  };