super-page-runtime 2.3.18 → 2.3.19-sit2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/es/assets/chart-themes/bar-theme.d.ts +6 -0
  2. package/dist/es/assets/chart-themes/bar-theme.js +4 -0
  3. package/dist/es/assets/chart-themes/gauge-theme.d.ts +6 -0
  4. package/dist/es/assets/chart-themes/gauge-theme.js +4 -0
  5. package/dist/es/assets/chart-themes/pie-theme.d.ts +6 -0
  6. package/dist/es/assets/chart-themes/pie-theme.js +4 -0
  7. package/dist/es/assets/chart-themes/radar-theme.d.ts +6 -0
  8. package/dist/es/assets/chart-themes/radar-theme.js +4 -0
  9. package/dist/es/assets/chart-themes/scatter-theme.d.ts +6 -0
  10. package/dist/es/assets/chart-themes/scatter-theme.js +4 -0
  11. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -70
  12. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  13. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +67 -66
  14. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +31 -30
  15. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +66 -65
  16. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +47 -46
  17. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +33 -32
  18. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +2 -1
  19. package/dist/es/components/runtime/utils/charts/chart-util.js +129 -119
  20. package/dist/es/components/runtime/utils/events/data-backfill-util.d.ts +27 -0
  21. package/dist/es/components/runtime/utils/events/data-backfill-util.js +39 -0
  22. package/dist/es/components/runtime/utils/events/event-util.js +3 -3
  23. package/dist/es/components/runtime/utils/events/print-label.js +25 -26
  24. package/dist/es/components/runtime/utils/events/standard-event.d.ts +3 -1
  25. package/dist/es/components/runtime/utils/events/standard-event.js +577 -512
  26. package/dist/es/components/runtime/utils/events/validator-util.js +1 -1
  27. package/dist/es/components/runtime/utils/page-init-util.d.ts +2 -1
  28. package/dist/es/components/runtime/utils/page-init-util.js +87 -68
  29. package/dist/es/components/runtime/utils/page-store.js +10 -10
  30. package/dist/es/components/runtime/utils/table-utils.js +1 -1
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +3 -3
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +3 -3
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -3
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +3 -3
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +6 -10
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +6 -8
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  40. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +1 -1
  42. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +1 -1
  43. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +1 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +93 -98
  45. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +148 -145
  46. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.d.ts +5 -0
  47. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue.js +20 -0
  48. package/dist/es/components/runtime/views/assemblys/common/event-call-component.vue2.js +4 -0
  49. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +9 -11
  50. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  51. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +3 -3
  52. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +3 -3
  53. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +3 -3
  54. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +3 -3
  55. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +0 -2
  56. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +3 -3
  57. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +3 -3
  58. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +1 -1
  59. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +3 -3
  60. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  61. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +37 -25
  62. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +10 -12
  63. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +194 -194
  64. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +1 -1
  65. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +16 -16
  66. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +3 -3
  67. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +3 -3
  68. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +6 -6
  69. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +55 -54
  70. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +3 -3
  71. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -3
  72. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +4 -4
  73. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +3 -3
  74. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +37 -38
  75. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +5 -7
  76. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +3 -3
  78. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +2 -2
  79. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +43 -27
  80. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +1 -1
  81. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +3 -3
  82. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +11 -11
  83. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +3 -3
  84. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +3 -3
  85. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +11 -13
  86. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.d.ts +14 -0
  87. package/dist/es/components/runtime/views/assemblys/page-bottom.vue.js +6 -0
  88. package/dist/es/components/runtime/views/assemblys/page-bottom.vue2.js +4 -0
  89. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.d.ts +14 -0
  90. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue.js +7 -0
  91. package/dist/es/components/runtime/views/assemblys/workflow/component/workflow-opinion-box.vue2.js +26 -0
  92. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue.js +7 -0
  93. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime-dialog.vue2.js +28 -0
  94. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +1 -1
  95. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +1 -1
  96. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  97. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +9 -9
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +22 -13
  99. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  100. package/dist/es/components/runtime/views/super-page-dialog.vue.js +0 -1
  101. package/dist/es/components/runtime/views/super-page.vue.d.ts +9 -0
  102. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  103. package/dist/es/components/runtime/views/super-page.vue2.js +180 -168
  104. package/dist/es/i18n/langs/cn.js +1 -1
  105. package/dist/es/i18n/langs/en.js +1 -1
  106. package/dist/es/style.css +134 -86
  107. package/package.json +2 -2
  108. package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
  109. package/dist/es/assets/chart-themes/theme1.js +0 -4
  110. package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
  111. package/dist/es/assets/chart-themes/theme2.js +0 -4
  112. package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
  113. package/dist/es/assets/chart-themes/theme3.js +0 -4
@@ -1,38 +1,40 @@
1
- import t from "../../../../assets/chart-themes/theme1.js";
2
- import e from "../../../../assets/chart-themes/theme2.js";
3
- import n from "../../../../assets/chart-themes/theme3.js";
4
- import { getDefaultValue as i } from "../page-init-util.js";
5
- import { getValueFromSource as s, setValueForVariableName as o, getParamNames as r, formatVariableValue as l, getValueFromVariable as a, setVariableValue as c } from "../page-helper-util.js";
6
- import { appendDefaultMethods as f } from "../events/event-util.js";
7
- var u = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(u || {});
8
- const d = { theme1: t, theme2: e, theme3: n };
9
- function p(t2) {
10
- return d[t2];
1
+ import t from "../../../../assets/chart-themes/bar-theme.js";
2
+ import e from "../../../../assets/chart-themes/gauge-theme.js";
3
+ import n from "../../../../assets/chart-themes/pie-theme.js";
4
+ import i from "../../../../assets/chart-themes/radar-theme.js";
5
+ import s from "../../../../assets/chart-themes/scatter-theme.js";
6
+ import { getDefaultValue as r } from "../page-init-util.js";
7
+ import { getValueFromSource as o, setValueForVariableName as a, getParamNames as l, formatVariableValue as c, getValueFromVariable as f, setVariableValue as u } from "../page-helper-util.js";
8
+ import { getI18n as d } from "agilebuilder-ui/src/utils/util";
9
+ import { appendDefaultMethods as p } from "../events/event-util.js";
10
+ var h = ((t2) => (t2.X_FIELD_NAME = "__x", t2.Y_TEMP_NAME = "__y", t2))(h || {});
11
+ function g(r2, o2 = "bar") {
12
+ return "bar" === o2 ? t[r2] : "gauge" === o2 ? e[r2] : "pie" === o2 ? n[r2] : "radar" === o2 ? i[r2] : "scatter" === o2 ? s[r2] : t[r2];
11
13
  }
12
- function h() {
14
+ function m() {
13
15
  return [{ value: "theme1", label: "主题1" }, { value: "theme2", label: "主题2" }, { value: "theme3", label: "主题3" }];
14
16
  }
15
- function m(t2, e2, n2, i2, s2) {
16
- return function(o2) {
17
- let r2 = o2 == null ? void 0 : o2.value;
18
- if (s2 && (r2 = o2), null == r2 || null == r2) return r2;
19
- if (Array.isArray(r2)) return r2;
20
- if (isNaN(r2) || !t2 || !t2.indexOf) return r2;
17
+ function x(t2, e2, n2, i2, s2) {
18
+ return function(r2) {
19
+ let o2 = r2 == null ? void 0 : r2.value;
20
+ if (s2 && (o2 = r2), null == o2 || null == o2) return o2;
21
+ if (Array.isArray(o2)) return o2;
22
+ if (isNaN(o2) || !t2 || !t2.indexOf) return o2;
21
23
  if (t2.indexOf("precision") > -1) {
22
24
  let t3 = parseInt(e2);
23
- (null == t3 || isNaN(t3)) && (t3 = 2), r2 = parseFloat(parseFloat(r2).toFixed(t3));
25
+ (null == t3 || isNaN(t3)) && (t3 = 2), o2 = parseFloat(parseFloat(o2).toFixed(t3));
24
26
  }
25
- let l2 = "";
26
- t2.indexOf("prefix") > -1 && n2 && (l2 = n2);
27
27
  let a2 = "";
28
- return t2.indexOf("append") > -1 && i2 && (a2 = i2), l2 + r2.toLocaleString() + a2;
28
+ t2.indexOf("prefix") > -1 && n2 && (a2 = n2);
29
+ let l2 = "";
30
+ return t2.indexOf("append") > -1 && i2 && (l2 = i2), a2 + o2.toLocaleString() + l2;
29
31
  };
30
32
  }
31
- function g(t2, e2) {
33
+ function b(t2, e2) {
32
34
  if (!e2) return;
33
- if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = m.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
35
+ if (e2.tooltipFormatterArgs && (e2.tooltip || (e2.tooltip = {}), e2.tooltip.valueFormatter = x.apply(e2, e2.tooltipFormatterArgs)), e2.series) {
34
36
  const n3 = t2.props ? t2.props.enableDrill : null;
35
- for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = m.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
37
+ for (const i3 of e2.series) e2.radar || (i3.data = []), i3.labelFormatterArgs && (i3.label || (i3.label = {}), i3.label.formatter = x.apply(i3, i3.labelFormatterArgs)), !n3 && t2.clickSet && t2.clickSet.selected && i3.emphasis && (i3.emphasis.disabled = false), "pie" === i3.type && t2.clickSet && t2.clickSet.selected && (t2.clickSet.multiple ? i3.selectedMode = "multiple" : i3.selectedMode = "single");
36
38
  }
37
39
  if (e2.radar) for (const t3 of e2.radar) t3.indicator = [];
38
40
  const n2 = e2.series;
@@ -47,66 +49,66 @@ function g(t2, e2) {
47
49
  });
48
50
  t2.defaultYaxis = s2;
49
51
  }
50
- function x(t2, e2, n2) {
52
+ function I(t2, e2, n2) {
51
53
  if (!(n2 && e2 && e2.clickSet && t2)) return;
52
54
  const i2 = e2.clickSet;
53
55
  n2.on("click", function(s2) {
54
- let o2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = -1;
55
- if (o2) {
56
+ let r2 = e2.highlightInfos ? e2.highlightInfos : [], o2 = -1;
57
+ if (r2) {
56
58
  const t3 = [];
57
- for (let l2 = 0; l2 < o2.length; l2++) {
58
- const a2 = o2[l2], c2 = a2.seriesIndex === s2.seriesIndex && a2.dataIndex === s2.dataIndex;
59
+ for (let a2 = 0; a2 < r2.length; a2++) {
60
+ const l2 = r2[a2], c2 = l2.seriesIndex === s2.seriesIndex && l2.dataIndex === s2.dataIndex;
59
61
  if (c2 || !i2.multiple) {
60
62
  if (i2.selected) {
61
63
  const t4 = "chart-pie" === e2.name ? "unselect" : "downplay";
62
- n2.dispatchAction({ type: t4, seriesIndex: a2.seriesIndex, dataIndex: a2.dataIndex });
64
+ n2.dispatchAction({ type: t4, seriesIndex: l2.seriesIndex, dataIndex: l2.dataIndex });
63
65
  }
64
- } else t3.push(a2);
65
- c2 && (r2 = l2);
66
+ } else t3.push(l2);
67
+ c2 && (o2 = a2);
66
68
  }
67
- o2 = t3;
69
+ r2 = t3;
68
70
  }
69
- if (-1 === r2) {
71
+ if (-1 === o2) {
70
72
  if (i2.selected) {
71
73
  const t3 = "chart-pie" === e2.name ? "select" : "highlight";
72
74
  n2.dispatchAction({ type: t3, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
73
75
  }
74
- o2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
76
+ r2.push({ seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
75
77
  }
76
- e2.highlightInfos = o2, b(t2, e2);
78
+ e2.highlightInfos = r2, N(t2, e2);
77
79
  });
78
80
  }
79
- function I(t2, e2, n2) {
81
+ function v(t2, e2, n2) {
80
82
  if (!n2 || !e2 || !t2) return;
81
83
  const i2 = e2.highlightInfos ? e2.highlightInfos : [];
82
84
  for (let t3 = 0; t3 < i2.length; t3++) {
83
- const s2 = i2[t3], o2 = "chart-pie" === e2.name ? "unselect" : "downplay";
84
- n2.dispatchAction({ type: o2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
85
+ const s2 = i2[t3], r2 = "chart-pie" === e2.name ? "unselect" : "downplay";
86
+ n2.dispatchAction({ type: r2, seriesIndex: s2.seriesIndex, dataIndex: s2.dataIndex });
85
87
  }
86
- e2.highlightInfos = [], b(t2, e2);
88
+ e2.highlightInfos = [], N(t2, e2);
87
89
  }
88
- function b(t2, e2) {
90
+ function N(t2, e2) {
89
91
  if (!e2.clickSet) return;
90
92
  const n2 = e2.clickSet, i2 = n2.variables;
91
93
  if (!i2 || 0 == i2.length) return;
92
- const r2 = e2.highlightInfos ? e2.highlightInfos : [], l2 = e2.cacheDatas ? e2.cacheDatas : [], a2 = [], c2 = [];
93
- for (const t3 of r2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < l2.length && a2.push(l2[t3.dataIndex]));
94
+ const s2 = e2.highlightInfos ? e2.highlightInfos : [], r2 = e2.cacheDatas ? e2.cacheDatas : [], l2 = [], c2 = [];
95
+ for (const t3 of s2) c2.includes(t3.dataIndex) || (c2.push(t3.dataIndex), t3.dataIndex < r2.length && l2.push(r2[t3.dataIndex]));
94
96
  for (const e3 of i2) {
95
97
  if (!e3.fieldName || !e3.variable) continue;
96
98
  const i3 = [];
97
- for (const t3 of a2) {
98
- const n3 = s(t3, e3.fieldName, void 0);
99
+ for (const t3 of l2) {
100
+ const n3 = o(t3, e3.fieldName, void 0);
99
101
  null != n3 && i3.push(n3);
100
102
  }
101
- n2.multiple ? o(t2.entity, e3.variable, i3) : o(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
103
+ n2.multiple ? a(t2.entity, e3.variable, i3) : a(t2.entity, e3.variable, i3.length > 0 ? i3[0] : void 0);
102
104
  }
103
105
  }
104
- function v(t2, e2, n2) {
105
- const i2 = e2.items ? e2.items : [], o2 = e2.props ? e2.props.orderByTarget : "";
106
+ function y(t2, e2, n2) {
107
+ const i2 = e2.items ? e2.items : [], s2 = e2.props ? e2.props.orderByTarget : "";
106
108
  let r2 = null;
107
- if ("x" == o2 || "X" == o2) r2 = "__x";
108
- else if (o2) {
109
- for (const t3 of i2) if (t3.uuid == o2) {
109
+ if ("x" == s2 || "X" == s2) r2 = "__x";
110
+ else if (s2) {
111
+ for (const t3 of i2) if (t3.uuid == s2) {
110
112
  const e3 = t3.props ? t3.props : {}, n3 = e3.yaxisSource, i3 = e3.yaxisField;
111
113
  if (i3 && (!n3 || "variable" == n3)) {
112
114
  r2 = i3;
@@ -116,59 +118,59 @@ function v(t2, e2, n2) {
116
118
  }
117
119
  if (!r2) return;
118
120
  const a2 = e2.props ? e2.props.orderSource : "";
119
- let c2 = e2.props ? e2.props.orderFix : "";
121
+ let l2 = e2.props ? e2.props.orderFix : "";
120
122
  if ("variable" == a2) {
121
123
  const n3 = e2.props ? e2.props.orderVariable : "";
122
- c2 = l(t2, n3);
124
+ l2 = c(t2, n3);
123
125
  }
124
- c2 = "desc" == c2 || "DESC" == c2 ? "desc" : "asc", n2.sort((t3, e3) => {
125
- const n3 = s(t3, r2, void 0), i3 = s(e3, r2, void 0);
126
- return "desc" === c2 ? i3 - n3 : n3 - i3;
126
+ l2 = "desc" == l2 || "DESC" == l2 ? "desc" : "asc", n2.sort((t3, e3) => {
127
+ const n3 = o(t3, r2, void 0), i3 = o(e3, r2, void 0);
128
+ return "desc" === l2 ? i3 - n3 : n3 - i3;
127
129
  });
128
130
  }
129
- function N(t2, e2, n2, i2, o2) {
131
+ function S(t2, e2, n2, i2, s2) {
130
132
  if (!n2) return n2;
131
133
  const r2 = e2.props ? e2.props : {};
132
134
  if (!r2.limitQuantity) return n2;
133
135
  let a2 = null;
134
- if (r2.itemNumVariable ? (a2 = l(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
136
+ if (r2.itemNumVariable ? (a2 = c(t2, r2.itemNumVariable), a2 = parseInt(a2)) : a2 = r2.itemNumFix ? r2.itemNumFix : 10, null == a2 || null == a2 || isNaN(a2)) return n2;
135
137
  if (n2.length < a2) return n2;
136
- const c2 = r2.overItemAlias, f2 = [], u2 = {};
137
- i2 = i2 || [], o2 = o2 || [];
138
+ const l2 = r2.overItemAlias, f2 = [], u2 = {};
139
+ i2 = i2 || [], s2 = s2 || [];
138
140
  for (let t3 = 0; t3 < n2.length; t3++) {
139
141
  const e3 = n2[t3];
140
142
  if (t3 < a2) f2.push(e3);
141
143
  else {
142
- if (!c2) break;
144
+ if (!l2) break;
143
145
  for (const t4 of i2) {
144
146
  if (!t4) continue;
145
- let n3 = s(e3, t4, void 0);
147
+ let n3 = o(e3, t4, void 0);
146
148
  n3 = null == n3 || null == n3 ? "" : n3, u2[t4] || (u2[t4] = []);
147
149
  const i3 = u2[t4];
148
150
  i3.includes(n3) || i3.push(n3);
149
151
  }
150
- for (const t4 of o2) {
152
+ for (const t4 of s2) {
151
153
  if (!t4) continue;
152
- const n3 = s(e3, t4, void 0);
154
+ const n3 = o(e3, t4, void 0);
153
155
  if (isNaN(n3)) continue;
154
156
  const i3 = u2[t4];
155
157
  isNaN(i3) ? u2[t4] = n3 : u2[t4] = n3 + i3;
156
158
  }
157
159
  }
158
160
  }
159
- return c2 && (u2.__x = c2, f2.push(u2)), f2;
161
+ return l2 && (u2.__x = l2, f2.push(u2)), f2;
160
162
  }
161
- function y(t2, e2, n2) {
163
+ function F(t2, e2, n2) {
162
164
  const i2 = {};
163
165
  for (const s2 of t2) {
164
166
  const t3 = s2.props ? s2.props : {};
165
167
  if ("formula" === t3.yaxisSource) {
166
- const s3 = r(t3.formula);
168
+ const s3 = l(t3.formula);
167
169
  for (const t4 of s3) if (!(t4 in i2)) {
168
- if (t4.startsWith("${min.")) i2[t4] = S(e2, t4.substring(6, t4.length - 1));
169
- else if (t4.startsWith("${max.")) i2[t4] = F(e2, t4.substring(6, t4.length - 1));
170
- else if (t4.startsWith("${sum.")) i2[t4] = _(e2, t4.substring(6, t4.length - 1));
171
- else if (t4.startsWith("${avg.")) i2[t4] = A(e2, t4.substring(6, t4.length - 1));
170
+ if (t4.startsWith("${min.")) i2[t4] = _(e2, t4.substring(6, t4.length - 1));
171
+ else if (t4.startsWith("${max.")) i2[t4] = A(e2, t4.substring(6, t4.length - 1));
172
+ else if (t4.startsWith("${sum.")) i2[t4] = M(e2, t4.substring(6, t4.length - 1));
173
+ else if (t4.startsWith("${avg.")) i2[t4] = k(e2, t4.substring(6, t4.length - 1));
172
174
  else if (t4.startsWith("${add.")) {
173
175
  const e3 = t4.substring(6, t4.length - 1);
174
176
  n2.add(e3);
@@ -178,97 +180,105 @@ function y(t2, e2, n2) {
178
180
  }
179
181
  return i2;
180
182
  }
181
- function S(t2, e2) {
183
+ function _(t2, e2) {
182
184
  let n2;
183
185
  for (const i2 of t2) {
184
- const t3 = parseFloat(s(i2, e2, null));
186
+ const t3 = parseFloat(o(i2, e2, null));
185
187
  (void 0 === n2 || !isNaN(t3) && t3 < n2) && (n2 = t3);
186
188
  }
187
189
  return n2;
188
190
  }
189
- function F(t2, e2) {
191
+ function A(t2, e2) {
190
192
  let n2;
191
193
  for (const i2 of t2) {
192
- const t3 = parseFloat(s(i2, e2, null));
194
+ const t3 = parseFloat(o(i2, e2, null));
193
195
  (void 0 === n2 || !isNaN(t3) && t3 > n2) && (n2 = t3);
194
196
  }
195
197
  return n2;
196
198
  }
197
- function _(t2, e2) {
199
+ function M(t2, e2) {
198
200
  let n2;
199
201
  for (const i2 of t2) {
200
- const t3 = parseFloat(s(i2, e2, null));
202
+ const t3 = parseFloat(o(i2, e2, null));
201
203
  void 0 === n2 ? n2 = t3 : isNaN(t3) || (n2 += t3);
202
204
  }
203
205
  return n2;
204
206
  }
205
- function A(t2, e2) {
206
- const n2 = _(t2, e2);
207
+ function k(t2, e2) {
208
+ const n2 = M(t2, e2);
207
209
  return void 0 === n2 || 0 === t2.length ? n2 : parseFloat((n2 / t2.length).toFixed(5));
208
210
  }
209
- function k(t2, e2, n2, i2) {
211
+ function w(t2, e2, n2, i2) {
210
212
  if (!t2) return;
211
213
  if (e2) for (const n3 in e2) t2 = t2.replace(new RegExp("\\${add." + n3 + "}", "g"), e2[n3]);
212
- const o2 = r(t2);
213
- for (const e3 of o2) {
214
- let o3 = null;
215
- o3 = e3.startsWith("${row.") ? s(n2, e3.substring(6, e3.length - 1), null) : a(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), o3);
214
+ const s2 = l(t2);
215
+ for (const e3 of s2) {
216
+ let s3 = null;
217
+ s3 = e3.startsWith("${row.") ? o(n2, e3.substring(6, e3.length - 1), null) : f(i2.entity, e3), t2 = t2.replace(new RegExp(e3.replace("$", "\\$"), "g"), s3);
216
218
  }
217
219
  t2.includes("return ") || (t2 = "return " + t2);
218
- const l2 = new Function("params", t2);
219
- return f(l2, i2), l2({ pageContext: i2, row: n2 });
220
+ const r2 = new Function("params", t2);
221
+ return p(r2, i2), r2({ pageContext: i2, row: n2 });
220
222
  }
221
- function M(t2, e2) {
223
+ function $(t2, e2) {
222
224
  if (!t2 || !t2.$el) return;
223
225
  const n2 = t2.$el.getElementsByTagName("canvas");
224
226
  if (!n2 || 0 === n2.length) return;
225
227
  const i2 = n2[0], s2 = i2.width + ":" + i2.height;
226
228
  return { isTable: false, fileContent: i2.toDataURL(), fileSize: s2, title: e2 == null ? void 0 : e2.title };
227
229
  }
228
- function $(t2, e2, n2) {
229
- const s2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
230
- let r2 = true;
231
- if (s2) {
232
- const t3 = JSON.parse(s2);
230
+ function j(t2, e2, n2) {
231
+ const i2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS");
232
+ let s2 = true;
233
+ if (i2) {
234
+ const t3 = JSON.parse(i2);
233
235
  if (t3[n2]) {
234
- const i2 = t3[n2];
235
- if (Object.keys(i2).length > 0) {
236
- r2 = false;
237
- for (const t4 in i2) null !== i2[t4] && void 0 !== i2[t4] && o(e2.entity, t4, i2[t4]);
236
+ const i3 = t3[n2];
237
+ if (Object.keys(i3).length > 0) {
238
+ s2 = false;
239
+ for (const t4 in i3) null !== i3[t4] && void 0 !== i3[t4] && a(e2.entity, t4, i3[t4]);
238
240
  }
239
241
  }
240
242
  }
241
- if (r2 && t2) {
243
+ if (s2 && t2) {
242
244
  for (const n3 of t2) if (n3.prop && n3.value) {
243
- const t3 = i(e2, n3.value, "input-text", false), s3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
244
- null != t3 && c(e2.entity, s3, t3);
245
+ const t3 = r(e2, n3.value, "input-text", false), i3 = n3.prop.substring(2, n3.prop.length - 1).split(".");
246
+ null != t3 && u(e2.entity, i3, t3);
245
247
  }
246
248
  }
247
249
  }
248
- function w(t2) {
250
+ function O(t2) {
249
251
  if (t2 == null ? void 0 : t2.grid) {
250
252
  const e2 = t2.grid, n2 = (t3) => !t3 || "0" === t3;
251
253
  n2(e2.top) && n2(e2.right) && n2(e2.bottom) && n2(e2.left) && Object.assign(e2, { right: "10%", bottom: "60", left: "10%" });
252
254
  }
253
255
  }
256
+ function E(t2) {
257
+ var _a;
258
+ if ((_a = t2 == null ? void 0 : t2.toolbox) == null ? void 0 : _a.feature) {
259
+ const e2 = t2.toolbox.feature;
260
+ for (const t3 in e2) e2[t3].show && (e2[t3].title = d().t("chartMessage." + t3), "dataView" === t3 && (e2[t3].lang = [d().t("chartMessage.dataView"), d().t("chartMessage.close"), d().t("chartMessage.refresh")]));
261
+ }
262
+ }
254
263
  export {
255
- u as CommonName,
256
- y as caculateFormulaValue,
257
- I as clearChartSelected,
258
- k as executeChartFormula,
259
- M as exportCommonChart,
260
- A as getAvgValue,
261
- p as getCustomTheme,
262
- h as getCustomThemeOptions,
263
- F as getMaxValue,
264
- S as getMinValue,
265
- m as getNumFormatter,
266
- _ as getSumValue,
267
- g as initChartOption,
268
- N as limitDatas,
269
- x as monitorChartClickToVariable,
270
- w as setDefaultGrid,
271
- $ as setHomeChartInitConfigValue,
272
- v as sortDatas,
273
- b as updateClickVariablesForSelected
264
+ h as CommonName,
265
+ F as caculateFormulaValue,
266
+ v as clearChartSelected,
267
+ w as executeChartFormula,
268
+ $ as exportCommonChart,
269
+ E as formatToolboxI18n,
270
+ k as getAvgValue,
271
+ g as getCustomTheme,
272
+ m as getCustomThemeOptions,
273
+ A as getMaxValue,
274
+ _ as getMinValue,
275
+ x as getNumFormatter,
276
+ M as getSumValue,
277
+ b as initChartOption,
278
+ S as limitDatas,
279
+ I as monitorChartClickToVariable,
280
+ O as setDefaultGrid,
281
+ j as setHomeChartInitConfigValue,
282
+ y as sortDatas,
283
+ N as updateClickVariablesForSelected
274
284
  };
@@ -0,0 +1,27 @@
1
+ export declare function getBackFillDataKey(pageCode: string, dataId: string): string;
2
+ /**
3
+ * 缓存回填数据
4
+ * @param pageCode 页面编码
5
+ * @param data 数据
6
+ */
7
+ export declare function cacheBackfillData(pageCode: string, data: any): void;
8
+ /**
9
+ * 删除缓存回填数据
10
+ * @param pageCode 页面编码
11
+ * @param data 数据
12
+ */
13
+ export declare function removeCacheFillData(pageCode: string, data: any): void;
14
+ /**
15
+ * 删除缓存回填数据
16
+ * @param pageCode 页面编码
17
+ * @param dataId 数据ID
18
+ */
19
+ export declare function removeCacheFillDataById(pageCode: string, dataId: any): void;
20
+ /**
21
+ * sessionStorage中是否存在回填数据
22
+ * @param pageCode 页面编码
23
+ * @param dataId 数据ID
24
+ * @returns boolean
25
+ */
26
+ export declare function hasBackfillData(pageCode: string, dataId: any): boolean;
27
+ export declare function getRealFillData(pageCode: string, dataId: any, dbData: any): any;
@@ -0,0 +1,39 @@
1
+ import { getUsername as e } from "agilebuilder-ui/src/utils/auth";
2
+ function t(e2, t2) {
3
+ let i2 = "new";
4
+ return t2.id ? i2 = t2.id : t2.ID && (i2 = t2.ID), n(e2, i2);
5
+ }
6
+ function n(t2, n2) {
7
+ return n2 ? `${e()}_backfill_data_${t2}_${n2}` : `${e()}_backfill_data_${t2}_new`;
8
+ }
9
+ function i(e2, n2) {
10
+ sessionStorage.setItem(t(e2, n2), JSON.stringify(n2));
11
+ }
12
+ function o(e2, n2) {
13
+ sessionStorage.removeItem(t(e2, n2));
14
+ }
15
+ function r(e2, t2) {
16
+ sessionStorage.removeItem(n(e2, t2));
17
+ }
18
+ function s(e2, t2) {
19
+ return null !== sessionStorage.getItem(n(e2, t2));
20
+ }
21
+ function u(e2, t2, i2) {
22
+ const o2 = sessionStorage.getItem(n(e2, t2));
23
+ if (o2) {
24
+ const e3 = JSON.parse(o2);
25
+ let t3 = null;
26
+ e3.version ? t3 = e3.version : e3.VERSION && (t3 = e3.VERSION);
27
+ let n2 = null;
28
+ if (i2.version ? n2 = i2.version : i2.VERSION && (n2 = i2.VERSION), t3 == n2) return e3;
29
+ }
30
+ return i2;
31
+ }
32
+ export {
33
+ i as cacheBackfillData,
34
+ n as getBackFillDataKey,
35
+ u as getRealFillData,
36
+ s as hasBackfillData,
37
+ o as removeCacheFillData,
38
+ r as removeCacheFillDataById
39
+ };
@@ -146,10 +146,10 @@ function T(e2, t2, i2) {
146
146
  r3 ? n(r3) ? r3.then((n2) => {
147
147
  n2 ? A(e2, t2, c2, i2) : e2.canClick = true;
148
148
  }).catch((n2) => {
149
- console.error(n2), e2.canClick = true;
149
+ e2.canClick = true;
150
150
  }) : A(e2, t2, c2, i2) : e2.canClick = true;
151
151
  }).catch((n2) => {
152
- console.error(n2), e2.canClick = true;
152
+ e2.canClick = true;
153
153
  });
154
154
  }
155
155
  function F(e2, n2, t2, i2, o2) {
@@ -214,7 +214,7 @@ function A(e2, t2, i2, o2) {
214
214
  n(a2) ? a2.then((n2) => {
215
215
  n2 ? q(e3, t3, o3, c2, n2, u3) : e3.canClick = true;
216
216
  }).catch((n2) => {
217
- console.error(n2), e3.canClick = true;
217
+ e3.canClick = true;
218
218
  }) : q(e3, t3, o3, c2, a2, u3);
219
219
  } else q(e3, t3, o3, false, null, u3);
220
220
  }(e2, t2, i2, o2);
@@ -3,27 +3,26 @@ import { hiprint as t, disAutoConnect as n } from "vue-plugin-hiprint";
3
3
  import { generateCodeByRule as o } from "../barcode-util.js";
4
4
  function a(n2, a2) {
5
5
  e.post(window.$vueApp.config.globalProperties.baseAPI + "/dc/print-models/by-codes", [a2]).then((e2) => {
6
- const a3 = JSON.parse(e2[0].template), r2 = [];
6
+ const a3 = JSON.parse(e2[0].template), i2 = [];
7
7
  a3.panels.forEach((e3) => {
8
8
  e3.printElements.forEach((e4) => {
9
- "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || r2.push(e4.options);
9
+ "barcode" !== e4.options.textType && "qrcode" !== e4.options.textType || i2.push(e4.options);
10
10
  });
11
11
  });
12
- const i = new t.PrintTemplate({ template: a3 }), l = { callback: () => {
12
+ const l = new t.PrintTemplate({ template: a3 }), r = { callback: () => {
13
13
  }, styleHandler: () => "" }, c = { leftOffset: -1, topOffset: -1 }, f = {};
14
14
  a3.panels[0].printElements.forEach((e3) => {
15
15
  if ("datetime" === e3.options.dataType && e3.options.field) {
16
16
  const t2 = e3.options.field.substring(6);
17
17
  f[t2] = e3.options.dateFormat;
18
18
  }
19
- }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, r3) {
20
- const i2 = JSON.parse(JSON.stringify(e3.selections));
21
- if (i2.forEach((e4) => {
19
+ }), n2.pageContext.pageType ? "list" === n2.pageContext.pageType ? function(e3, t2, n3, a4, s2, i3) {
20
+ const l2 = JSON.parse(JSON.stringify(e3.selections));
21
+ if (l2.forEach((e4) => {
22
22
  Object.keys(t2).forEach((t3) => {
23
23
  if (e4[t3] && "number" == typeof e4[t3] && !isNaN(e4[t3])) try {
24
24
  e4[t3] = new Date(e4[t3]);
25
25
  } catch (e5) {
26
- console.error(`日期格式化失败: ${e5}`);
27
26
  }
28
27
  });
29
28
  }), n3.length > 0) {
@@ -31,51 +30,51 @@ function a(n2, a2) {
31
30
  n3.forEach((t3) => {
32
31
  e4.push(function(e5, t4) {
33
32
  return new Promise((n4, a5) => {
34
- const s3 = e5.field.split("."), r4 = [];
33
+ const s3 = e5.field.split("."), i4 = [];
35
34
  s3.length < 2 && n4([]);
36
35
  try {
37
36
  p(s3[1]).then((e6) => {
38
37
  t4.forEach((t5, n5) => {
39
38
  const a6 = { type: s3[0], name: s3[1], value: null, index: n5 };
40
- a6.value = o(JSON.parse(e6.barcodeModelItems), t5), r4.push(a6);
41
- }), n4(r4);
39
+ a6.value = o(JSON.parse(e6.barcodeModelItems), t5), i4.push(a6);
40
+ }), n4(i4);
42
41
  });
43
42
  } catch (e6) {
44
- console.error("获取条码规则失败:", e6), n4([]);
43
+ n4([]);
45
44
  }
46
45
  });
47
- }(t3, i2));
46
+ }(t3, l2));
48
47
  }), Promise.all(e4).then((e5) => {
49
48
  e5.forEach((e6) => {
50
49
  e6.forEach((e7) => {
51
- const t3 = e7.index, n4 = i2[t3];
50
+ const t3 = e7.index, n4 = l2[t3];
52
51
  n4[e7.type] || (n4[e7.type] = {}), n4[e7.type][e7.name] = e7.value;
53
52
  });
54
- }), a4.print(i2, s2, r3);
53
+ }), a4.print(l2, s2, i3);
55
54
  });
56
- } else a4.print(i2, s2, r3);
57
- }(n2, f, r2, i, c, l) : "form" === n2.pageContext.pageType && s(n2, r2, i, c, l) : s(n2, r2, i, c, l);
55
+ } else a4.print(l2, s2, i3);
56
+ }(n2, f, i2, l, c, r) : "form" === n2.pageContext.pageType && s(n2, i2, l, c, r) : s(n2, i2, l, c, r);
58
57
  });
59
58
  }
60
59
  function s(e2, t2, n2, a2, s2) {
61
60
  if (t2.length > 0) {
62
- const r2 = [];
61
+ const i2 = [];
63
62
  t2.forEach((t3) => {
64
- r2.push(function(e3, t4) {
63
+ i2.push(function(e3, t4) {
65
64
  return new Promise((n3, a3) => {
66
- const s3 = t4.field.split("."), r3 = { type: null, name: null, value: null };
67
- s3.length < 2 && n3(r3), r3.type = s3[0], r3.name = s3[1];
65
+ const s3 = t4.field.split("."), i3 = { type: null, name: null, value: null };
66
+ s3.length < 2 && n3(i3), i3.type = s3[0], i3.name = s3[1];
68
67
  try {
69
- p(r3.name).then((t5) => {
68
+ p(i3.name).then((t5) => {
70
69
  const a4 = JSON.parse(t5.barcodeModelItems);
71
- r3.value = o(a4, e3.entity.data), n3(r3);
70
+ i3.value = o(a4, e3.entity.data), n3(i3);
72
71
  });
73
72
  } catch (e4) {
74
- console.error("获取条码规则失败:", e4), n3(r3);
73
+ n3(i3);
75
74
  }
76
75
  });
77
76
  }(e2.pageContext, t3));
78
- }), Promise.all(r2).then((t3) => {
77
+ }), Promise.all(i2).then((t3) => {
79
78
  const o2 = {};
80
79
  t3.forEach((e3) => {
81
80
  e3.type && e3.name && e3.value && (o2[e3.type] || (o2[e3.type] = {}), o2[e3.type][e3.name] = e3.value);
@@ -93,8 +92,8 @@ function p(t2) {
93
92
  return e.get(window.$vueApp.config.globalProperties.baseAPI + `/dc/setting-barcode-models/by-name?name=${n2}`);
94
93
  }
95
94
  n();
96
- const r = { printLabel: a };
95
+ const i = { printLabel: a };
97
96
  export {
98
- r as default,
97
+ i as default,
99
98
  a as printLabel
100
99
  };
@@ -39,6 +39,7 @@ export declare const standardEvents: {
39
39
  removeSigner: (params: any) => void;
40
40
  retrieveTask: (params: any) => Promise<unknown>;
41
41
  extractWorkflow: (params: any) => Promise<unknown>;
42
+ extractWorkflowEvent: (params: any) => void;
42
43
  cancelExtractWorkflow: (params: any) => Promise<unknown>;
43
44
  approveExtractWorkflow: (params: any) => Promise<unknown>;
44
45
  refuseExtractWorkflow: (params: any) => Promise<unknown>;
@@ -80,7 +81,8 @@ export declare function getRemoveSigner(params: any): any;
80
81
  export declare function doRemoveSigners(params: any, selectRemoveTasks: any): void;
81
82
  export declare function getRemoveTransactor(params: any): any;
82
83
  export declare function doRemoveTransactors(params: any, selectRemoveTasks: any): void;
83
- export declare function isVisibleWorkflowButton(standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
84
+ export declare function extractWorkflowFunc(params: any): Promise<unknown>;
85
+ export declare function isVisibleWorkflowButton(pageContext: any, standardEventName: any, buttonInfo: any, completeTaskParam: any, btnConfigure: any, data: any): boolean;
84
86
  /**
85
87
  * 刷新页面
86
88
  * @param pageContext