super-page-runtime 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +1 -2
  2. package/dist/es/components/runtime/index.d.ts +2 -1
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +70 -72
  4. package/dist/es/components/runtime/utils/assemblys-config.js +2 -4
  5. package/dist/es/components/runtime/utils/barcode-util.js +1 -2
  6. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +59 -81
  7. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +2 -4
  8. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +8 -16
  9. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +10 -18
  10. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +20 -25
  11. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -0
  12. package/dist/es/components/runtime/utils/charts/chart-util.js +200 -218
  13. package/dist/es/components/runtime/utils/common-util.js +7 -14
  14. package/dist/es/components/runtime/utils/events/event-util.js +97 -115
  15. package/dist/es/components/runtime/utils/events/print-label.js +20 -21
  16. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -2
  17. package/dist/es/components/runtime/utils/events/standard-event.js +295 -337
  18. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  19. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  20. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  21. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  22. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  23. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  24. package/dist/es/components/runtime/utils/page-helper-util.js +66 -116
  25. package/dist/es/components/runtime/utils/page-init-util.d.ts +6 -1
  26. package/dist/es/components/runtime/utils/page-init-util.js +65 -69
  27. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  28. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  29. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  30. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  31. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  34. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  40. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  41. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  42. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  43. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  44. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  45. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  46. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +34 -1
  47. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +205 -170
  48. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +19 -50
  51. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +151 -120
  53. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  54. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  56. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  57. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  58. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  66. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  68. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +60 -72
  69. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +91 -95
  70. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  71. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  72. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  73. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  74. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  75. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  76. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  77. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  78. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +25 -28
  79. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  80. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  81. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  82. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  83. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  84. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  85. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  86. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  87. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  88. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  89. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  90. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  91. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  93. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  94. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  95. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  96. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  97. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  98. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  99. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  100. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  101. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  102. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  103. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  104. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  105. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  106. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  107. package/dist/es/components/runtime/views/super-page-dialog.vue.js +15 -13
  108. package/dist/es/components/runtime/views/super-page.vue.d.ts +15 -6
  109. package/dist/es/components/runtime/views/super-page.vue.js +171 -182
  110. package/dist/es/index.d.ts +2 -2
  111. package/dist/es/index.js +6 -4
  112. package/package.json +74 -74
  113. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -1,5 +1,5 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeStyle as s, unref as u, normalizeClass as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as l, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as s, unref as i, withDirectives as p, createVNode as c, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-radar-util.js";
5
5
  import v from "../common/common-chart-header.vue.js";
@@ -7,29 +7,29 @@ import { use as R } from "echarts/core";
7
7
  import { CanvasRenderer as y } from "echarts/renderers";
8
8
  import { RadarChart as V } from "echarts/charts";
9
9
  import { GridComponent as _, TitleComponent as j, TooltipComponent as I, ToolboxComponent as k, LegendComponent as w } from "echarts/components";
10
- import b from "vue-echarts";
11
- const z = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
10
+ import H from "vue-echarts";
11
+ const b = e({ __name: "radar-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: b2 }) {
12
12
  R([y, V, _, j, I, k, w]);
13
- const D = e2, F = r(null), H = r(null), O = r(null), P = D.configure.runtime ? D.configure.runtime : {}, T = P.style, q = P.class, A = P.dataConfig, B = P.headerInfo ? P.headerInfo : {}, E = P.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
14
- l(D.configure, E), t(() => {
15
- const e3 = g(D.pageContext, D.configure);
16
- e3 && N(e3);
13
+ const z = e2, D = r(null), F = r(null), O = r(null), P = z.configure.runtime ? z.configure.runtime : {}, S = P.style, T = P.class, q = P.dataConfig, A = P.headerInfo ? P.headerInfo : {}, B = P.chartOption, E = z.configure.props ? z.configure.props : {}, G = m(E.customTheme);
14
+ h(z.configure, B), t(() => {
15
+ const e3 = g(z.pageContext, z.configure);
16
+ e3 && M(e3);
17
17
  });
18
- let K = B.groupValue;
19
- function L() {
20
- A && d(D.pageContext, [A], B.drillParams);
18
+ let J = A.groupValue;
19
+ function K() {
20
+ q && d(z.pageContext, [q], A.drillParams);
21
21
  }
22
- o(B, () => {
23
- K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
22
+ o(A, () => {
23
+ J != A.groupValue && (J = A.groupValue, q && (q.services[0].groupValue = A.groupValue), K());
24
24
  });
25
- const M = B.monitorFields;
26
- function N(e3) {
27
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
25
+ const L = A.monitorFields;
26
+ function M(e3) {
27
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(z.pageContext, z.configure, B, e3));
28
28
  }
29
- return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
30
- h(H.value);
31
- } }), (e3, r2) => (a(), n("div", { style: s(u(T)), class: i([u(q), "amb-widget-chart"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: O, headerInfo: u(B) }, null, 8, ["headerInfo"]), [[f, u(B).showHeader]]), p(u(b), { ref_key: "chartRef", ref: H, theme: u(J), option: u(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(z.pageContext, L, K), b2({ updateChartDatas: M, exportChart: function() {
30
+ return l(F.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: s(i(S)), class: u([i(T), "amb-widget-chart"]), ref_key: "thisRef", ref: D }, [p(c(v, { ref_key: "headerRef", ref: O, headerInfo: i(A), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(A).showHeader || e3.pageContext.showHomepageSearch]]), c(i(H), { ref_key: "chartRef", ref: F, theme: i(G), option: i(B), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- z as default
34
+ b as default
35
35
  };
@@ -1,35 +1,35 @@
1
- import { defineComponent as e, ref as r, onMounted as t, watch as o, openBlock as a, createElementBlock as n, normalizeStyle as s, unref as u, normalizeClass as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
- import { getCustomTheme as m, initChartOption as l, exportCommonChart as h } from "../../../../utils/charts/chart-util.js";
1
+ import { defineComponent as e, ref as r, onMounted as t, watch as o, createElementBlock as a, openBlock as n, normalizeClass as u, normalizeStyle as s, unref as i, withDirectives as c, createVNode as p, vShow as f } from "vue";
2
+ import { getCustomTheme as m, initChartOption as h, exportCommonChart as l } from "../../../../utils/charts/chart-util.js";
3
3
  import { getChartDatasFromPage as g, updateChartDatasources as d, monitorFieldChange as x } from "../../../../utils/page-helper-util.js";
4
4
  import { updateChartOption as C } from "../../../../utils/charts/chart-scatter-util.js";
5
5
  import v from "../common/common-chart-header.vue.js";
6
6
  import { use as R } from "echarts/core";
7
7
  import { CanvasRenderer as y } from "echarts/renderers";
8
8
  import { ScatterChart as V } from "echarts/charts";
9
- import { GridComponent as _, LegendComponent as j, TitleComponent as I, TooltipComponent as k, ToolboxComponent as w, DataZoomComponent as b } from "echarts/components";
10
- import z from "vue-echarts";
11
- const D = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
12
- R([y, V, _, j, I, k, w, b]);
13
- const F = e2, H = r(null), O = r(null), P = r(null), T = F.configure.runtime ? F.configure.runtime : {}, q = T.style, A = T.class, B = T.dataConfig, E = T.headerInfo ? T.headerInfo : {}, G = T.chartOption, J = F.configure.props ? F.configure.props : {}, K = m(J.customTheme);
14
- l(F.configure, G), t(() => {
15
- const e3 = g(F.pageContext, F.configure);
16
- e3 && Q(e3);
9
+ import { GridComponent as _, LegendComponent as j, TitleComponent as I, TooltipComponent as k, ToolboxComponent as w, DataZoomComponent as H } from "echarts/components";
10
+ import b from "vue-echarts";
11
+ const z = e({ __name: "scatter-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: z2 }) {
12
+ R([y, V, _, j, I, k, w, H]);
13
+ const D = e2, F = r(null), O = r(null), P = r(null), S = D.configure.runtime ? D.configure.runtime : {}, T = S.style, q = S.class, A = S.dataConfig, B = S.headerInfo ? S.headerInfo : {}, E = S.chartOption, G = D.configure.props ? D.configure.props : {}, J = m(G.customTheme);
14
+ h(D.configure, E), t(() => {
15
+ const e3 = g(D.pageContext, D.configure);
16
+ e3 && N(e3);
17
17
  });
18
- let L = E.groupValue;
19
- function M() {
20
- B && d(F.pageContext, [B], E.drillParams);
18
+ let K = B.groupValue;
19
+ function L() {
20
+ A && d(D.pageContext, [A], B.drillParams);
21
21
  }
22
- o(E, () => {
23
- L != E.groupValue && (L = E.groupValue, B && (B.services[0].groupValue = E.groupValue), M());
22
+ o(B, () => {
23
+ K != B.groupValue && (K = B.groupValue, A && (A.services[0].groupValue = B.groupValue), L());
24
24
  });
25
- const N = E.monitorFields;
26
- function Q(e3) {
27
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(F.pageContext, F.configure, G, e3));
25
+ const M = B.monitorFields;
26
+ function N(e3) {
27
+ e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, C(D.pageContext, D.configure, E, e3));
28
28
  }
29
- return x(F.pageContext, N, M), D2({ updateChartDatas: Q, exportChart: function() {
30
- h(O.value);
31
- } }), (e3, r2) => (a(), n("div", { style: s(u(q)), class: i([u(A), "amb-widget-chart"]), ref_key: "thisRef", ref: H }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: u(E) }, null, 8, ["headerInfo"]), [[f, u(E).showHeader]]), p(u(z), { ref_key: "chartRef", ref: O, theme: u(K), option: u(G), autoresize: "" }, null, 8, ["theme", "option"])], 6));
29
+ return x(D.pageContext, M, L), z2({ updateChartDatas: N, exportChart: function() {
30
+ return l(O.value);
31
+ } }), (e3, r2) => (n(), a("div", { style: s(i(T)), class: u([i(q), "amb-widget-chart"]), ref_key: "thisRef", ref: F }, [c(p(v, { ref_key: "headerRef", ref: P, headerInfo: i(B), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["headerInfo", "configure", "pageContext"]), [[f, i(B).showHeader || e3.pageContext.showHomepageSearch]]), p(i(b), { ref_key: "chartRef", ref: O, theme: i(J), option: i(E), autoresize: "" }, null, 8, ["theme", "option"])], 6));
32
32
  } });
33
33
  export {
34
- D as default
34
+ z as default
35
35
  };
@@ -36,7 +36,7 @@ export declare function replacePlaceholders(template: string, data: {
36
36
  export declare function getHeaderCellStyleUtil(data: any, runtimeStyle: any, props: any): any;
37
37
  export declare function getRowStyleUtil(data: any, groupSummaryDataRowIndex: number[], props: any): any;
38
38
  export declare function getCellStyleUtil(data: any, cellStyles: any, props: any): {};
39
- export declare function rowDataToColumn(data: any, configure: Component): any;
39
+ export declare function rowDataToColumn(data: any, configure: Component, sourceTableColumnsConfig: any): any;
40
40
  /**
41
41
  *
42
42
  * @param data 数据
@@ -75,5 +75,38 @@ export declare function getIndexColumn(): {
75
75
  tittleClass: string;
76
76
  };
77
77
  };
78
+ export declare function getNewColumnConfig(prop: string, name: string, displayOrder: number, dataType: string): {
79
+ uuid: number;
80
+ name: string;
81
+ props: {
82
+ base: {
83
+ prop: string;
84
+ name: string;
85
+ displayOrder: number;
86
+ sortable: boolean;
87
+ headerAlign: string;
88
+ align: string;
89
+ fixed: boolean;
90
+ visible: boolean;
91
+ dataType: string;
92
+ };
93
+ format: {};
94
+ size: {
95
+ pc: {};
96
+ };
97
+ };
98
+ style: {};
99
+ componentIndex: number;
100
+ runtime: {
101
+ common: {
102
+ class: string;
103
+ style: {
104
+ pc_style: {};
105
+ pc_class: string;
106
+ };
107
+ };
108
+ };
109
+ };
78
110
  export declare function computeFormula(itemConfs: any, datas: any, entity: any): void;
111
+ export declare function formatColContent(row: any, format: any, column: any, pageContext: any, configure: any): any;
79
112
  export {};