super-page-runtime 2.2.74 → 2.2.77-sit5

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 (42) 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 +83 -49
  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/tools/tools-runtime.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +1 -0
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +54 -52
  27. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +16 -14
  28. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  29. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -73
  30. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -1
  31. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +1 -1
  32. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +29 -29
  33. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -4
  34. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +4 -1
  35. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  36. package/dist/es/components/runtime/views/super-page-dialog.vue.js +13 -13
  37. package/dist/es/components/runtime/views/{super-page-dialog.vue2.js → super-page-dialog.vue3.js} +1 -0
  38. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  39. package/dist/es/components/runtime/views/super-page.vue2.js +17 -15
  40. package/dist/es/index.js +1 -0
  41. package/dist/es/style.css +225 -99
  42. 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";
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
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";
5
+ import F 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 N, getSummaryDataColumn as R, rowDataToColumn as T, getColumnToRowTableConfig as H, colDataToRow as _, computeFormula as z, getNewColumnConfig as D, summaryStatistics as J, replacePlaceholders as P, getIndexColumn as U, getHeaderCellStyleUtil as V, getRowStyleUtil as G, getCellStyleUtil as K, formatColContent as A } 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 = U();
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 = N(B.configure), ie.value && (ue.value = R(B.configure, "table")), B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0 && (pe.value = R(B.configure, "group")));
32
+ 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,11 +38,45 @@ 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;
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) if (((_a2 = B.configure.props) == null ? void 0 : _a2.dataOrigin.limitEnable) && B.configure.props.dataOrigin.itemNumSource) {
44
+ let o2 = 10;
45
+ if ("fix" === B.configure.props.dataOrigin.itemNumSource) o2 = B.configure.props.dataOrigin.itemNumFix;
46
+ else if ("variable" === B.configure.props.dataOrigin.itemNumSource) {
47
+ o2 = Number(O(B.pageContext.entity, B.configure.props.dataOrigin.itemNumVariable));
48
+ const n2 = B.configure.props.dataOrigin.itemNumVariable.match(/\${(.*?)}/), t2 = n2 ? n2[1].split(".") : [], i2 = JSON.parse(JSON.stringify(me));
49
+ r(() => t2.reduce((e5, o3) => e5[o3], B.pageContext.entity), (o3) => {
50
+ Ce(o3, i2, e4);
51
+ });
52
+ }
53
+ Ce(o2, me, e4);
54
+ } else be(me, e4);
43
55
  }(e3), e3.hasRender = true, X && (X.autoRefresh = false));
44
56
  }
45
- function Ce(e3, o2) {
57
+ function Ce(e3, o2, n2) {
58
+ var _a2;
59
+ if (e3 && e3 < o2.length) {
60
+ let r2 = [];
61
+ if (((_a2 = B.configure.props.dataOrigin.limitCountColumns) == null ? void 0 : _a2.length) > 0) r2 = B.configure.props.dataOrigin.limitCountColumns;
62
+ else {
63
+ ne.value.filter((e4) => "number" === e4.props.base.dataType).forEach((e4) => {
64
+ r2.push(e4.props.base.prop);
65
+ });
66
+ }
67
+ if ((r2 == null ? void 0 : r2.length) > 0) {
68
+ const n3 = o2.slice(e3 - 1, o2.length), t2 = {};
69
+ let i2 = ne.value[0].props.base.prop;
70
+ "$index" === i2 && (i2 = ne.value[1].props.base.prop), n3.forEach((e4) => {
71
+ r2.forEach((o3) => {
72
+ void 0 === t2[o3] && (t2[o3] = 0), t2[o3] = t2[o3] + e4[o3];
73
+ });
74
+ }), o2.length > e3 && (o2 = o2.slice(0, e3 - 1)), t2[i2] = B.configure.props.dataOrigin.overItemAlias, o2.push(t2);
75
+ }
76
+ be(o2, n2);
77
+ } else be(o2, n2);
78
+ }
79
+ function be(e3, o2) {
46
80
  var _a2;
47
81
  if (xe("rowToColumn")) {
48
82
  if (e3 = T(e3, B.configure, ne.value), !ee.value) {
@@ -50,9 +84,9 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
50
84
  const r2 = B.configure.props.dataOrigin.rowToColumn.titleColumns, t2 = B.configure.props.dataOrigin.rowToColumn.dataColumns, i2 = e4.props.dataOrigin.groupField;
51
85
  if ((!i2 || 0 === i2.length) && n2.length > 0) {
52
86
  const e5 = [];
53
- return e5.push(P("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
87
+ return e5.push(D("$GroupColumn", B.configure.props.dataOrigin.rowToColumn.firstColumnTitle, 0, "string")), Object.keys(n2[0]).forEach((o5, n3) => {
54
88
  if ("$GroupColumn" === o5) return;
55
- const r3 = P(o5, o5, n3 + 1, "string");
89
+ const r3 = D(o5, o5, n3 + 1, "string");
56
90
  e5.push(r3);
57
91
  }), e5;
58
92
  }
@@ -68,7 +102,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
68
102
  }), a2.forEach((o5) => {
69
103
  t2.forEach((r3) => {
70
104
  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");
105
+ 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
106
  e5.push(i4);
73
107
  });
74
108
  }), e5;
@@ -76,7 +110,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
76
110
  }(B.configure, ne.value, e3);
77
111
  ne.value = o3;
78
112
  }
79
- } else xe("columnToRow") && (ee.value || (ne.value = _(B.configure)), e3 = z(e3, B.configure));
113
+ } else xe("columnToRow") && (ee.value || (ne.value = H(B.configure)), e3 = _(e3, B.configure));
80
114
  if (B.configure.props.dataOrigin.dataFormatting) {
81
115
  const o3 = $(B.pageContext, B.configure.props.dataOrigin.dataFormatting);
82
116
  if (o3) {
@@ -84,8 +118,8 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
84
118
  n2 && (e3 = n2);
85
119
  }
86
120
  }
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]));
121
+ 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) {
122
+ "frontend" === B.configure.pageination.type ? (fe.value = me.length, ke(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
123
  }(o2) : oe.value = e3, B.configure.props.highOrder.groupField && B.configure.props.highOrder.groupField.length > 0) {
90
124
  const e4 = B.configure.props.highOrder.groupField;
91
125
  oe.value = function(e5, o3) {
@@ -100,11 +134,11 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
100
134
  for (let e6 = 0; e6 < a2.length; e6++) {
101
135
  const o4 = a2[e6], i3 = {};
102
136
  t2 == null ? void 0 : t2.forEach((e7) => {
103
- const n3 = e7.props.base.prop, r3 = U(pe.value[n3], o4, n3, B.pageContext);
137
+ const n3 = e7.props.base.prop, r3 = J(pe.value[n3], o4, n3, B.pageContext);
104
138
  i3[n3] = r3;
105
139
  }), n2.push(...o4), r2 == null ? void 0 : r2.forEach((e7) => {
106
140
  const n3 = e7.props.base.prop;
107
- i3[n3] = G(e7.props.base.summaryTitle, o4[0]);
141
+ i3[n3] = P(e7.props.base.summaryTitle, o4[0]);
108
142
  }), n2.push(i3), le.push(n2.length - 1);
109
143
  }
110
144
  return n2;
@@ -112,7 +146,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
112
146
  }
113
147
  !function(e4) {
114
148
  if (B.configure.props.base.showIndex && -1 === e4.findIndex((e5) => "$index" === e5.props.base.prop)) {
115
- const o3 = K();
149
+ const o3 = U();
116
150
  o3 && e4.unshift(o3);
117
151
  }
118
152
  }(ne.value);
@@ -120,35 +154,35 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
120
154
  function xe(e3) {
121
155
  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
156
  }
123
- function be(e3) {
157
+ function Oe(e3) {
124
158
  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);
159
+ return V(e3, { cellTitleStyle: o2, titleStyle: n2 }, B);
126
160
  }
127
- function Oe(e3) {
128
- return J(e3, le, B);
161
+ function Se(e3) {
162
+ return G(e3, le, B);
129
163
  }
130
164
  function we(e3) {
131
165
  const o2 = se.value[e3.column.property] ? se.value[e3.column.property].cellStyle : null;
132
- return L(e3, o2, B);
166
+ return K(e3, o2, B);
133
167
  }
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);
168
+ he && he.fixHeight && (de = he.fixHeight), he && he.maxHeight && (de = he.maxHeight), de && (de = Number(de + "")), n(() => {
169
+ const e3 = x(B.pageContext, B.configure);
136
170
  if (e3) ye(e3);
137
171
  else if ("variable" === B.configure.props.dataOrigin.dataSource) {
138
172
  ve();
139
173
  const o2 = O(B.pageContext.entity, B.configure.props.dataOrigin.variable);
140
- o2 && Ce(o2, e3);
174
+ o2 && be(o2, e3);
141
175
  }
142
176
  });
143
- const Se = (e3) => {
177
+ const Ee = (e3) => {
144
178
  const { columns: o2, data: n2 } = e3, r2 = [];
145
179
  return o2.forEach((e4, o3) => {
146
180
  if (ae.value[e4.property]) {
147
181
  const t2 = ae.value[e4.property].label;
148
- r2[o3] = y("div", {}, [G(t2, n2)]);
182
+ r2[o3] = y("div", {}, [P(t2, n2)]);
149
183
  } else if (ue.value[e4.property]) {
150
184
  const t2 = n2.filter((e5, o4) => !le.includes(o4));
151
- r2[o3] = U(ue.value[e4.property], t2, e4.property, B.pageContext);
185
+ r2[o3] = J(ue.value[e4.property], t2, e4.property, B.pageContext);
152
186
  }
153
187
  }), r2;
154
188
  };
@@ -162,50 +196,50 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
162
196
  }
163
197
  } else if (i2 && i2.mergeColumn, i2 && i2.mergeRow && i2.mergeRow.includes(t2) && 0 === n2) return { rowspan: oe.value.length, colspan: 1 };
164
198
  }
165
- function Ee(e3, o2) {
166
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
167
- }
168
199
  function $e(e3, o2) {
169
- "frontend" === B.configure.pageination.type ? ke(e3, o2) : Fe(e3, o2);
200
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
201
+ }
202
+ function Fe(e3, o2) {
203
+ "frontend" === B.configure.pageination.type ? ke(e3, o2) : Ie(e3, o2);
170
204
  }
171
205
  function ke(e3, o2) {
172
- de && (oe.value = de.slice((e3 - 1) * o2, e3 * o2));
206
+ me && (oe.value = me.slice((e3 - 1) * o2, e3 * o2));
173
207
  }
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);
208
+ function Ie(e3, o2) {
209
+ 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
210
  }
177
- function Ie(e3) {
211
+ function Ne(e3) {
178
212
  const o2 = e3.showCondition;
179
- return E(B.pageContext, o2);
213
+ return j(B.pageContext, o2);
180
214
  }
181
215
  function Re(e3) {
182
216
  if (B.configure.props.modelCustom) {
183
217
  const o2 = $(B.pageContext, B.configure.props.modelCustom);
184
218
  if (o2) {
185
219
  const n2 = o2.apply(o2, [{ pageContext: B.pageContext, configureObj: B.configure, value: e3 }]);
186
- w(n2) ? n2.then((e4) => {
220
+ S(n2) ? n2.then((e4) => {
187
221
  ne.value = e4.columns;
188
222
  }) : ne.value = n2.columns;
189
223
  }
190
224
  }
191
225
  }
192
- function He(e3, o2, n2) {
226
+ function Te(e3, o2, n2) {
193
227
  e3.forEach((e4) => {
194
228
  const r2 = e4.props.base.prop, t2 = e4.props.base.name;
195
229
  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);
230
+ 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
231
  });
198
232
  }
199
233
  return q2({ updateChartDatas: ye, exportChart: function() {
200
234
  let e3 = [], o2 = [];
201
235
  o2 = ee.value ? B.configure.props.groupHeaders : B.configure.items;
202
236
  let n2 = [];
203
- He(o2, e3, n2);
237
+ Te(o2, e3, n2);
204
238
  return { isTable: true, dataArr: function(e4) {
205
239
  let o3 = [];
206
- oe.value && (o3 = A(oe.value), o3.forEach((o4) => {
240
+ oe.value && (o3 = L(oe.value), o3.forEach((o4) => {
207
241
  e4.forEach((e5) => {
208
- const n3 = V(o4, e5.props.format, e5, B.pageContext, B.configure);
242
+ const n3 = A(o4, e5.props.format, e5, B.pageContext, B.configure);
209
243
  o4[e5.props.base.prop] = n3;
210
244
  });
211
245
  }));
@@ -213,7 +247,7 @@ const q = e({ __name: "table-runtime", props: { configure: { type: Object, defau
213
247
  }(n2), columns: e3 };
214
248
  } }), (o2, n2) => {
215
249
  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);
250
+ 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": Oe, "row-style": Se, "cell-style": we, "show-summary": ie.value, stripe: e2.configure.props.base.stripe, "summary-method": Ee, "span-method": je }, { default: d(() => [ee.value ? (a(true), i(h, { key: 0 }, v(re.value, (o3, n3) => (a(), i(h, { key: n3 }, [o3.isLeaf ? Ne(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(F, { 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 }, [Ne(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: $e, onPageSizeChange: Fe }, null, 8, ["configure", "table-data", "total"])) : f("", true)], 6);
217
251
  };
218
252
  } });
219
253
  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-3a587c94"]]);
4
+ const r = e(t, [["__scopeId", "data-v-0cf3e10d"]]);
5
5
  export {
6
6
  r as default
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import o from "./tools-runtime.vue2.js";
2
2
  /* empty css */
3
3
  import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = t(o, [["__scopeId", "data-v-445a411e"]]);
4
+ const e = t(o, [["__scopeId", "data-v-89de1a38"]]);
5
5
  export {
6
6
  e as default
7
7
  };
@@ -327,6 +327,7 @@ const A = ["id"], z = e({ __name: "main-table-runtime", props: { pageContext: {}
327
327
  le.value && le.value.dynamicControlTableEdit(e3, t2, n2);
328
328
  }, doLayout: function(e3) {
329
329
  le.value && le.value.doLayout(e3);
330
+ }, changeOperationAddState: function(e3) {
330
331
  } }), (e3, t2) => {
331
332
  const n2 = a("super-grid");
332
333
  return r(), l("div", { ref_key: "tableDivRef", ref: ae, id: u(ue) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: le, url: u(re), options: ie.value, code: u(ue), settings: u(ge), "search-form-info": de.value, "list-toolbar-form-data": u(pe), onSelect: Ne, onSelectAll: Pe, onSelectionChange: Be, onCellClick: Fe, onCellDblclick: He, onRowClick: Ue, onRowDblclick: Me, onHeaderClick: $e, onRefresh: _e, onNewOpenGridDialog: u(B), onCanShowMobileSearch: Le }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, A);