super-page-runtime 2.2.3 → 2.2.6

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 (110) 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.js +276 -326
  17. package/dist/es/components/runtime/utils/events/validator-util.js +85 -116
  18. package/dist/es/components/runtime/utils/form/date-shortcuts.js +1 -2
  19. package/dist/es/components/runtime/utils/form/scan-util.js +10 -17
  20. package/dist/es/components/runtime/utils/global-refs.js +7 -14
  21. package/dist/es/components/runtime/utils/i18n-util.js +1 -2
  22. package/dist/es/components/runtime/utils/page-helper-util.js +58 -104
  23. package/dist/es/components/runtime/utils/page-init-util.js +30 -37
  24. package/dist/es/components/runtime/utils/page-permission-util.js +2 -4
  25. package/dist/es/components/runtime/utils/page-store.d.ts +2 -2
  26. package/dist/es/components/runtime/utils/table-utils.js +4 -8
  27. package/dist/es/components/runtime/utils/tree-utils.js +13 -15
  28. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +2 -2
  29. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +2 -2
  30. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +3 -4
  31. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +2 -2
  32. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +2 -2
  33. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +24 -28
  34. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +44 -40
  37. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +44 -0
  38. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +4 -0
  39. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +20 -20
  40. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +20 -20
  41. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +20 -20
  42. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +22 -22
  43. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.d.ts +33 -1
  44. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +114 -113
  45. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +2 -2
  46. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +2 -2
  47. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +2 -2
  49. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +123 -116
  50. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +4 -4
  51. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +6 -6
  53. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +9 -11
  54. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +6 -6
  55. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  56. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +2 -2
  58. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +2 -2
  60. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +2 -2
  61. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +2 -2
  62. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +2 -2
  64. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +7 -7
  65. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +46 -57
  66. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +13 -21
  67. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +6 -9
  68. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +5 -5
  69. package/dist/es/components/runtime/views/assemblys/error-render.vue.d.ts +4 -4
  70. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +2 -2
  71. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +6 -8
  72. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +4 -6
  73. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +7 -9
  74. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +10 -13
  75. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +5 -5
  76. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +3 -4
  77. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +3 -4
  78. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +5 -5
  79. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +9 -10
  80. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +9 -11
  81. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +1 -1
  83. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +15 -20
  85. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +20 -25
  86. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +15 -20
  87. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +2 -2
  89. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +4 -5
  90. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +5 -5
  91. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.d.ts +17 -0
  92. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue.js +97 -0
  93. package/dist/es/components/runtime/views/assemblys/home-chart-render.vue2.js +4 -0
  94. package/dist/es/components/runtime/views/assemblys/object-render.vue.d.ts +1 -1
  95. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +33 -43
  96. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +3 -4
  97. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +3 -4
  98. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +3 -4
  99. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +2 -2
  100. package/dist/es/components/runtime/views/home-chart.vue.d.ts +23 -0
  101. package/dist/es/components/runtime/views/home-chart.vue.js +36 -0
  102. package/dist/es/components/runtime/views/home-chart.vue2.js +4 -0
  103. package/dist/es/components/runtime/views/super-page-dialog.vue.d.ts +3 -3
  104. package/dist/es/components/runtime/views/super-page-dialog.vue.js +2 -2
  105. package/dist/es/components/runtime/views/super-page.vue.d.ts +6 -6
  106. package/dist/es/components/runtime/views/super-page.vue.js +25 -38
  107. package/dist/es/index.d.ts +2 -2
  108. package/dist/es/index.js +6 -4
  109. package/package.json +74 -74
  110. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue3.js +0 -1
@@ -0,0 +1,36 @@
1
+ import { defineComponent as e, ref as t, resolveDirective as a, withDirectives as i, createElementBlock as n, openBlock as r, createBlock as o, createCommentVNode as s, unref as l } from "vue";
2
+ import { deepCopy as m } from "../utils/common-util.js";
3
+ import u from "./assemblys/home-chart-render.vue.js";
4
+ import h from "agilebuilder-ui/src/utils/request";
5
+ import { updateOptionDatasources as g, updateChartDatasources as p } from "../utils/page-helper-util.js";
6
+ import { initPageEvents as d } from "../utils/events/event-util.js";
7
+ import { setHomeChartInitConfigValue as c } from "../utils/charts/chart-util.js";
8
+ const f = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
9
+ const v2 = e2, C = t(true), y = t(false), b = t({});
10
+ let S = t(null);
11
+ return v2.chartCode && h.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
12
+ if (e3 && e3.designJson) {
13
+ const t2 = JSON.parse(e3.designJson), a2 = window.frameElement;
14
+ b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, a2 && (b.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
15
+ const i2 = { showHomepageSearch: true, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
16
+ if (t2.variables) {
17
+ const e4 = i2.entity.page;
18
+ for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
19
+ }
20
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(i2, t2.initOptionConfigs, void 0), c(b.value.pushHomepage.initConfig, i2, v2.homeChartSettingUserId), d(t2, i2), S.value = i2, setTimeout(() => {
21
+ !function(e4, t3) {
22
+ if (!t3 || 0 == t3.length) return;
23
+ e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
24
+ }(S.value, [t2.initChartServiceConfigs]);
25
+ }, 200);
26
+ } else y.value = true;
27
+ }).finally(() => {
28
+ C.value = false;
29
+ }), (e3, t2) => {
30
+ const m2 = a("loading");
31
+ return i((r(), n("div", f, [C.value ? s("", true) : (r(), o(u, { key: 0, configure: b.value, pageContext: l(S) }, null, 8, ["configure", "pageContext"]))])), [[m2, C.value]]);
32
+ };
33
+ } });
34
+ export {
35
+ v as default
36
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./home-chart.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -17,17 +17,17 @@ interface MyProps {
17
17
  default: null;
18
18
  };
19
19
  }
20
- declare const _default: import('vue').DefineComponent<__VLS_TypePropsToRuntimeProps<MyProps>, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
20
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
21
  close: (...args: any[]) => void;
22
22
  open: (...args: any[]) => void;
23
23
  closed: (...args: any[]) => void;
24
24
  opened: (...args: any[]) => void;
25
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & {
25
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<MyProps>>> & Readonly<{
26
26
  onClose?: (...args: any[]) => any;
27
27
  onOpen?: (...args: any[]) => any;
28
28
  onClosed?: (...args: any[]) => any;
29
29
  onOpened?: (...args: any[]) => any;
30
- }, {}, {}>;
30
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
31
31
  export default _default;
32
32
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
33
33
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as a, resolveComponent as l, openBlock as t, createBlock as u, withCtx as o, createElementBlock as n, createCommentVNode as r } from "vue";
1
+ import { defineComponent as e, ref as a, resolveComponent as l, createBlock as t, openBlock as u, withCtx as o, createElementBlock as n, createCommentVNode as r } from "vue";
2
2
  import i from "./super-page.vue.js";
3
3
  const d = ["src"], s = ["src"], p = e({ __name: "super-page-dialog", props: { parentPageContext: {}, parentPageEventParams: {}, jumpPageSetting: {}, isTest: { type: Boolean }, customParams: {} }, emits: ["open", "opened", "close", "closed"], setup(e2, { emit: p2 }) {
4
4
  const g = e2, v = p2, m = a(true), c = g.jumpPageSetting ? g.jumpPageSetting : null, P = a(null), f = a(null), h = a(null), j = a(null), C = a(null), w = a(null), y = a({}), b = a(false), k = a(false), O = a("rtl"), I = a(null), _ = a(false), V = a(null);
@@ -17,7 +17,7 @@ const d = ["src"], s = ["src"], p = e({ __name: "super-page-dialog", props: { pa
17
17
  }
18
18
  return (e3, a2) => {
19
19
  const p3 = l("el-drawer"), g2 = l("el-dialog");
20
- return w.value && "drawer" === w.value ? (t(), u(p3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: o(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (t(), u(g2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, draggable: b.value, overflow: k.value, onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: o(() => [!_.value && h.value ? (t(), u(i, { key: 0, pageCode: h.value, pageRequest: y.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (t(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
20
+ return w.value && "drawer" === w.value ? (u(), t(p3, { key: 0, modelValue: m.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => m.value = e4), title: f.value, direction: O.value, size: P.value, onOpen: a2[1] || (a2[1] = (e4) => v("open")), onOpened: a2[2] || (a2[2] = (e4) => v("opened")), onClose: a2[3] || (a2[3] = (e4) => v("close")), onClosed: a2[4] || (a2[4] = (e4) => v("closed")) }, { default: o(() => [!_.value && h.value ? (u(), t(i, { key: 0, pageCode: h.value, pageRequest: y.value, isDialog: true }, null, 8, ["pageCode", "pageRequest"])) : _.value ? (u(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, d)) : r("", true)]), _: 1 }, 8, ["modelValue", "title", "direction", "size"])) : (u(), t(g2, { key: 1, "model-value": "", title: f.value, "close-on-click-modal": false, "append-to-body": "", width: P.value, draggable: b.value, overflow: k.value, onOpen: a2[5] || (a2[5] = (a3) => e3.$emit("open")), onOpend: a2[6] || (a2[6] = (a3) => e3.$emit("opend")), onClose: a2[7] || (a2[7] = (e4) => v("close")), onClosed: a2[8] || (a2[8] = (a3) => e3.$emit("closed")) }, { default: o(() => [!_.value && h.value ? (u(), t(i, { key: 0, pageCode: h.value, pageRequest: y.value, contentHeight: I.value, isDialog: true }, null, 8, ["pageCode", "pageRequest", "contentHeight"])) : _.value ? (u(), n("iframe", { key: 1, height: "98%", width: "100%", src: V.value, frameborder: "0", allowtransparency: "no" }, null, 8, s)) : r("", true)]), _: 1 }, 8, ["title", "width", "draggable", "overflow"]));
21
21
  };
22
22
  } });
23
23
  export {
@@ -4,7 +4,7 @@ import { PageDesign } from '../utils/interfaces/page-design-types';
4
4
  declare function pickFileDone(data: any): void;
5
5
  declare function uploadFileDone(data: any): void;
6
6
  declare function scanDone(data: any): void;
7
- declare const _default: import('vue').DefineComponent<{
7
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
8
  pageCode: {
9
9
  type: StringConstructor;
10
10
  required: false;
@@ -53,11 +53,11 @@ declare const _default: import('vue').DefineComponent<{
53
53
  type: BooleanConstructor;
54
54
  required: false;
55
55
  };
56
- }, {
56
+ }>, {
57
57
  pickFileDone: typeof pickFileDone;
58
58
  uploadFileDone: typeof uploadFileDone;
59
59
  scanDone: typeof scanDone;
60
- }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
60
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
61
61
  close: (...args: any[]) => void;
62
62
  open: (...args: any[]) => void;
63
63
  closed: (...args: any[]) => void;
@@ -111,14 +111,14 @@ declare const _default: import('vue').DefineComponent<{
111
111
  type: BooleanConstructor;
112
112
  required: false;
113
113
  };
114
- }>> & {
114
+ }>> & Readonly<{
115
115
  onClose?: (...args: any[]) => any;
116
116
  onOpen?: (...args: any[]) => any;
117
117
  onClosed?: (...args: any[]) => any;
118
118
  onOpened?: (...args: any[]) => any;
119
- }, {
119
+ }>, {
120
120
  isTest: boolean;
121
121
  contentHeight: string | number;
122
122
  isDialog: boolean;
123
- }, {}>;
123
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
124
124
  export default _default;
@@ -1,4 +1,4 @@
1
- import { defineComponent as e, ref as l, onMounted as t, onUpdated as a, nextTick as u, onUnmounted as n, openBlock as o, createElementBlock as i, normalizeClass as s, normalizeStyle as r, Fragment as v, renderList as p, createBlock as m, unref as g, createCommentVNode as f, createElementVNode as c, watch as d } from "vue";
1
+ import { defineComponent as e, ref as l, onMounted as t, onUpdated as a, nextTick as u, onUnmounted as n, createElementBlock as o, openBlock as i, createCommentVNode as s, normalizeStyle as r, normalizeClass as v, createBlock as p, createElementVNode as m, Fragment as g, renderList as f, unref as c, watch as d } from "vue";
2
2
  import y from "./assemblys/object-render.vue.js";
3
3
  import { updateOptionDatasources as h, updateChartDatasources as C } from "../utils/page-helper-util.js";
4
4
  import { queryPageSuperGrids as b, queryPageDesignByCode as P, convertToPageContext as j, packageAdditionalMapWithLocationSearch as k, packageAdditionalMapWithRoute as $, packageAdditionalMapWithPageRequest as x } from "../utils/page-init-util.js";
@@ -29,19 +29,16 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
29
29
  function Ae(e3) {
30
30
  var _a;
31
31
  const l2 = j(e3);
32
- if (l2.isTest = ye.isTest, l2.isTest && ye.dimensions && (l2.dimensions = ye.dimensions), ye.isDialog || (k(l2.entity.request), $(Ue, l2.entity.request)), x(ye.pageRequest, l2.entity.request), Be.value = l2, null == Be.value)
33
- return;
32
+ if (l2.isTest = ye.isTest, l2.isTest && ye.dimensions && (l2.dimensions = ye.dimensions), ye.isDialog || (k(l2.entity.request), $(Ue, l2.entity.request)), x(ye.pageRequest, l2.entity.request), Be.value = l2, null == Be.value) return;
34
33
  setTimeout(() => {
35
34
  !function(e4, l3) {
36
- if (!l3 || 0 == l3.length)
37
- return;
35
+ if (!l3 || 0 == l3.length) return;
38
36
  const t3 = l3.filter((e5) => "remote" != e5.filterType);
39
37
  t3 && t3.length > 0 && h(e4, t3, void 0);
40
38
  }(Be.value, e3.initOptionConfigs);
41
39
  }, 0), setTimeout(() => {
42
40
  !function(e4, l3) {
43
- if (!l3 || 0 == l3.length)
44
- return;
41
+ if (!l3 || 0 == l3.length) return;
45
42
  e4.initChartData = {}, e4.initChartData.data = oe(e4.entity.data), e4.initChartData.page = oe(e4.entity.page), l3 && l3.length > 0 && C(e4, l3, null, true);
46
43
  }(Be.value, e3.initChartServiceConfigs);
47
44
  }, 200), Be.value.initDataSources = [], q(Be.value), Ce.value = Be.value.items ? Be.value.items : [];
@@ -78,27 +75,23 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
78
75
  Ee.value = e4.pageContext, Ve.value = e4.configureObj, We.value = e4.eventParams, l3 = Ve.value, t3 = We.value, a3 = e4.jumpPageSetting, function(e5, l4, t4) {
79
76
  return new Promise((a4, u2) => {
80
77
  var _a2;
81
- if (t4)
82
- a4(t4);
78
+ if (t4) a4(t4);
83
79
  else {
84
80
  const t5 = e5 && e5.props && e5.props.linkPage ? e5.props.linkPage : null;
85
81
  if (t5 && t5.jumpPageUrl) {
86
82
  false !== t5.isNewPage && true !== t5.isNewPage && (t5.isNewPage = true);
87
83
  const e6 = L(Be), u3 = !!((_a2 = Ve.value.props.linkPage) == null ? void 0 : _a2.isNeedId);
88
84
  let n2 = u3 && l4 ? l4.id : null, o2 = u3 && l4 ? l4.ids : null, i2 = l4 ? l4.selections : [], s2 = l4 ? l4.row : null;
89
- if (!s2)
90
- if (s2 = {}, i2 && i2.length > 0)
91
- s2 = i2[0];
92
- else {
93
- const e7 = Ee.value.entity.data, l5 = Ee.value.entity.page;
94
- l5 && Object.assign(s2, l5), e7 && Object.assign(s2, e7);
95
- }
85
+ if (!s2) if (s2 = {}, i2 && i2.length > 0) s2 = i2[0];
86
+ else {
87
+ const e7 = Ee.value.entity.data, l5 = Ee.value.entity.page;
88
+ l5 && Object.assign(s2, l5), e7 && Object.assign(s2, e7);
89
+ }
96
90
  const r2 = oe(Ee.value.entity.page);
97
91
  t5._pageData = r2, ae(t5, null, n2, s2, e6, o2).then((e7) => {
98
92
  e7.isNeedId = u3, a4(e7);
99
93
  });
100
- } else
101
- a4(false);
94
+ } else a4(false);
102
95
  }
103
96
  });
104
97
  }(l3, t3, a3).then((e5) => {
@@ -111,19 +104,16 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
111
104
  (function(e7, l4) {
112
105
  const t5 = ne();
113
106
  return new Promise((a5, u3) => {
114
- if (t5)
115
- if ("popup" !== l4 && !ze || Ee.value.systemCode === e7.customSystem)
107
+ if (t5) if ("popup" !== l4 && !ze || Ee.value.systemCode === e7.customSystem) a5(true);
108
+ else {
109
+ const l5 = e7.customSystem;
110
+ pe.dispatch("getCurrentUserPermissions", { loginName: t5, systemCode: l5 }).then(() => {
116
111
  a5(true);
117
- else {
118
- const l5 = e7.customSystem;
119
- pe.dispatch("getCurrentUserPermissions", { loginName: t5, systemCode: l5 }).then(() => {
120
- a5(true);
121
- }).catch(() => {
122
- a5(true);
123
- });
124
- }
125
- else
126
- a5(true);
112
+ }).catch(() => {
113
+ a5(true);
114
+ });
115
+ }
116
+ else a5(true);
127
117
  });
128
118
  })(u2, a4).then(() => {
129
119
  ze && (Ee.value.systemCode !== u2.customSystem || e6 && "url" === e6) ? (u2._isIframe = true, "refresh" === a4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : (u2._isIframe = false, "popup" === a4 || ze && "refresh" === a4 ? ("refresh" === a4 && (u2.dialogType = "drawer", u2.jumpPageWidth = "100%"), Me.value = u2, Fe.value = true) : "refresh" === a4 && tl.push({ path: "/dsc/page", query: u2 }));
@@ -216,8 +206,7 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
216
206
  return ((_b2 = (_a2 = e5.props) == null ? void 0 : _a2.base) == null ? void 0 : _b2.prop) && ((_d = (_c = e5.props) == null ? void 0 : _c.base) == null ? void 0 : _d.prop) === i2;
217
207
  });
218
208
  o2 = e4 && e4.length > 0 ? e4[0] : null;
219
- } else
220
- o2 = Ve.value;
209
+ } else o2 = Ve.value;
221
210
  I(null, Ee.value, o2, "closePopup", { sourceModel: a2, sourceTableName: u2, jumpPageSetting: Me, entity: Ee.value.entity.data, targetTableName: n2, pageContext: Be.value, parentPageContext: Ee.value, parentConfigureObj: o2, columnProp: i2 }), function(e4, l3, t3) {
222
211
  if (e4) {
223
212
  const a3 = T(Ee.value, e4);
@@ -234,16 +223,14 @@ const me = { class: "app-container" }, ge = e({ __name: "super-page", props: { p
234
223
  }, scanDone: function(e3) {
235
224
  let l2 = e3.componentId, t2 = e3.listCode;
236
225
  (l2 || t2) && (t2 ? F.$emit(t2 + "-scanDone", e3) : F.$emit(l2 + "-scanDone", e3));
237
- } }), (e3, l2) => (o(), i("div", me, [Re.value ? (o(), i("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: s(be.value), style: r(Pe.value) }, [(o(true), i(v, null, p(Ce.value, (e4, l3) => (o(), m(y, { key: e4.uuid, configure: e4, pageContext: g(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (o(), m(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Qe, onExport: Xe }, null, 8, ["configure", "pageContext"])) : f("", true), c("input", { ref_key: "_selectFile_", ref: Ye, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
226
+ } }), (e3, l2) => (i(), o("div", me, [Re.value ? (i(), o("div", { ref_key: "thisRef", ref: he, key: Ge.value, class: v(be.value), style: r(Pe.value) }, [(i(true), o(g, null, f(Ce.value, (e4, l3) => (i(), p(y, { key: e4.uuid, configure: e4, pageContext: c(Be) }, null, 8, ["configure", "pageContext"]))), 128)), $e.value ? (i(), p(_, { key: 0, configure: He.value, pageContext: Je.value, onClose: Qe, onExport: Xe }, null, 8, ["configure", "pageContext"])) : s("", true), m("input", { ref_key: "_selectFile_", ref: Ye, type: "file", name: "_selectFile_", style: { display: "none" }, onChange: l2[0] || (l2[0] = (e4) => function() {
238
227
  if (ke.value) {
239
- if (!Ye.value)
240
- return;
241
- if ("" === Ye.value.value || null === Ye.value.value)
242
- return;
228
+ if (!Ye.value) return;
229
+ if ("" === Ye.value.value || null === Ye.value.value) return;
243
230
  const e5 = Ye.value.files[0];
244
231
  e5 ? (Ye.value.value = null, B(ke.value, e5)) : Q({ showClose: true, type: "warning", message: de("superPageRuntimeMessage.noFileSelected") });
245
232
  }
246
- }()) }, null, 544), xe.value || De.value || Ne.value ? (o(), m(g(Y), { key: 1, width: "60%", multiple: qe.value, onClose: Ze }, null, 8, ["multiple"])) : f("", true), Ie.value ? (o(), m(O, { key: 2, "task-informitions": Se.value, onClose: l2[1] || (l2[1] = (e4) => Ie.value = false), onResult: el }, null, 8, ["task-informitions"])) : f("", true), _e.value ? (o(), m(R, { key: 3, "task-id": Oe.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ll }, null, 8, ["task-id", "active-tasks"])) : f("", true), Fe.value ? (o(), m(ee, { key: 4, parentPageContext: Ee.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => al()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : f("", true)], 6)) : f("", true)]));
233
+ }()) }, null, 544), xe.value || De.value || Ne.value ? (i(), p(c(Y), { key: 1, width: "60%", multiple: qe.value, onClose: Ze }, null, 8, ["multiple"])) : s("", true), Ie.value ? (i(), p(O, { key: 2, "task-informitions": Se.value, onClose: l2[1] || (l2[1] = (e4) => Ie.value = false), onResult: el }, null, 8, ["task-informitions"])) : s("", true), _e.value ? (i(), p(R, { key: 3, "task-id": Oe.value, "active-tasks": Te.value, onClose: l2[2] || (l2[2] = (e4) => _e.value = false), onResult: ll }, null, 8, ["task-id", "active-tasks"])) : s("", true), Fe.value ? (i(), p(ee, { key: 4, parentPageContext: Ee.value, parentPageEventParams: We.value, jumpPageSetting: Me.value, onClose: l2[3] || (l2[3] = (e4) => al()) }, null, 8, ["parentPageContext", "parentPageEventParams", "jumpPageSetting"])) : s("", true)], 6)) : s("", true)]));
247
234
  } });
248
235
  export {
249
236
  ge as default
@@ -1,4 +1,4 @@
1
- import { SuperPageNew, SuperPageDialogNew } from './components/runtime';
1
+ import { SuperPageNew, SuperPageDialogNew, HomeChart } from './components/runtime';
2
2
  import { getComponentOptionConfigs } from './components/runtime/utils/page-helper-util';
3
3
  import { getStandPermissionInfo, getFunctionInfo, FuncType } from './components/runtime/utils/page-permission-util';
4
4
  import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from './components/runtime/utils/charts/chart-util';
@@ -7,7 +7,7 @@ import { default as en } from './i18n/langs/en.js';
7
7
  import { getDateShortCuts } from './components/runtime/utils/form/date-shortcuts';
8
8
  import { getListCode } from './components/runtime/utils/common-util';
9
9
 
10
- export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs };
10
+ export { SuperPageNew, SuperPageDialogNew, getComponentOptionConfigs, HomeChart };
11
11
  export { getStandPermissionInfo, getFunctionInfo, FuncType };
12
12
  export { getCustomTheme, getCustomThemeOptions, getNumFormatter as getNumFormatterForChart };
13
13
  export { getDateShortCuts };
package/dist/es/index.js CHANGED
@@ -1,18 +1,20 @@
1
1
  import { default as default2 } from "./components/runtime/views/super-page.vue.js";
2
2
  import { default as default3 } from "./components/runtime/views/super-page-dialog.vue.js";
3
+ import { default as default4 } from "./components/runtime/views/home-chart.vue.js";
3
4
  import { getComponentOptionConfigs } from "./components/runtime/utils/page-helper-util.js";
4
5
  import { FuncType, getFunctionInfo, getStandPermissionInfo } from "./components/runtime/utils/page-permission-util.js";
5
6
  import { getCustomTheme, getCustomThemeOptions, getNumFormatter } from "./components/runtime/utils/charts/chart-util.js";
6
- import { default as default4 } from "./i18n/langs/cn.js";
7
- import { default as default5 } from "./i18n/langs/en.js";
7
+ import { default as default5 } from "./i18n/langs/cn.js";
8
+ import { default as default6 } from "./i18n/langs/en.js";
8
9
  import { getDateShortCuts } from "./components/runtime/utils/form/date-shortcuts.js";
9
10
  import { getListCode } from "./components/runtime/utils/common-util.js";
10
11
  export {
11
12
  FuncType,
13
+ default4 as HomeChart,
12
14
  default3 as SuperPageDialogNew,
13
15
  default2 as SuperPageNew,
14
- default4 as cn,
15
- default5 as en,
16
+ default5 as cn,
17
+ default6 as en,
16
18
  getComponentOptionConfigs,
17
19
  getCustomTheme,
18
20
  getCustomThemeOptions,
package/package.json CHANGED
@@ -1,74 +1,74 @@
1
- {
2
- "name": "super-page-runtime",
3
- "version": "2.2.3",
4
- "description": "AgileBuilder super page runtime",
5
- "license": "ISC",
6
- "main": "dist/es/index.js",
7
- "files": [
8
- "dist/*"
9
- ],
10
- "typings": "dist/lib/index.d.ts",
11
- "scripts": {
12
- "dev": "vite",
13
- "build": "run-p type-check \"build-only {@}\" --",
14
- "preview": "vite preview",
15
- "test:unit": "vitest",
16
- "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
17
- "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
18
- "build-only": "vite build",
19
- "type-check": "vue-tsc --build --force",
20
- "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
21
- "format": "prettier --write src/"
22
- },
23
- "dependencies": {
24
- "@vueup/vue-quill": "^1.2.0",
25
- "@vueuse/core": "^10.9.0",
26
- "async-validator": "^4.2.5",
27
- "dayjs": "^1.11.11",
28
- "echarts": "^5.5.0",
29
- "jsbarcode": "^3.11.6",
30
- "nprogress": "^0.2.0",
31
- "qrcode": "^1.5.3",
32
- "quill": "^2.0.1",
33
- "quill-delta": "5.1.0",
34
- "uuid": "^9.0.1",
35
- "vue-awesome": "^4.5.0",
36
- "vue-codemirror": "^6.1.1",
37
- "vue-draggable-plus": "^0.3.5",
38
- "vue-echarts": "^6.6.9",
39
- "vue-plugin-hiprint": "^0.0.56"
40
- },
41
- "devDependencies": {
42
- "@element-plus/icons": "^0.0.11",
43
- "@element-plus/icons-vue": "^2.3.1",
44
- "@rushstack/eslint-patch": "^1.3.3",
45
- "@types/jsdom": "^21.1.6",
46
- "@types/node": "^20.11.28",
47
- "@vitejs/plugin-vue": "^5.0.4",
48
- "@vitejs/plugin-vue-jsx": "^3.1.0",
49
- "@vue/eslint-config-prettier": "^8.0.0",
50
- "@vue/test-utils": "^2.4.4",
51
- "agilebuilder-ui": "1.1.4",
52
- "axios": "^1.6.8",
53
- "cypress": "^13.6.6",
54
- "element-plus": "^2.6.1",
55
- "eslint": "^8.49.0",
56
- "eslint-plugin-cypress": "^2.15.1",
57
- "eslint-plugin-vue": "^9.17.0",
58
- "js-cookie": "^3.0.5",
59
- "jsdom": "^24.0.0",
60
- "mitt": "^3.0.1",
61
- "pinia": "^2.1.7",
62
- "rollup-plugin-terser": "^7.0.2",
63
- "saas": "^1.0.0",
64
- "sass": "^1.72.0",
65
- "start-server-and-test": "^2.0.3",
66
- "vite": "^5.1.6",
67
- "vite-plugin-dts": "^3.9.1",
68
- "vitest": "^1.3.1",
69
- "vue": "^3.4.21",
70
- "vue-i18n": "^9.10.2",
71
- "vue-router": "^4.3.0",
72
- "vuex": "^4.1.0"
73
- }
74
- }
1
+ {
2
+ "name": "super-page-runtime",
3
+ "version": "2.2.6",
4
+ "description": "AgileBuilder super page runtime",
5
+ "license": "ISC",
6
+ "main": "dist/es/index.js",
7
+ "files": [
8
+ "dist/*"
9
+ ],
10
+ "typings": "dist/lib/index.d.ts",
11
+ "scripts": {
12
+ "dev": "vite",
13
+ "build": "run-p type-check \"build-only {@}\" --",
14
+ "preview": "vite preview",
15
+ "test:unit": "vitest",
16
+ "test:e2e": "start-server-and-test preview http://localhost:4173 'cypress run --e2e'",
17
+ "test:e2e:dev": "start-server-and-test 'vite dev --port 4173' http://localhost:4173 'cypress open --e2e'",
18
+ "build-only": "vite build",
19
+ "type-check": "vue-tsc --build --force",
20
+ "lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix --ignore-path .gitignore",
21
+ "format": "prettier --write src/"
22
+ },
23
+ "dependencies": {
24
+ "@vueup/vue-quill": "^1.2.0",
25
+ "@vueuse/core": "^10.9.0",
26
+ "async-validator": "^4.2.5",
27
+ "dayjs": "^1.11.11",
28
+ "echarts": "^5.5.0",
29
+ "jsbarcode": "^3.11.6",
30
+ "nprogress": "^0.2.0",
31
+ "qrcode": "^1.5.3",
32
+ "quill": "^2.0.1",
33
+ "quill-delta": "5.1.0",
34
+ "uuid": "^9.0.1",
35
+ "vue-awesome": "^4.5.0",
36
+ "vue-codemirror": "^6.1.1",
37
+ "vue-draggable-plus": "^0.3.5",
38
+ "vue-echarts": "^6.6.9",
39
+ "vue-plugin-hiprint": "^0.0.56"
40
+ },
41
+ "devDependencies": {
42
+ "@element-plus/icons": "^0.0.11",
43
+ "@element-plus/icons-vue": "^2.3.1",
44
+ "@rushstack/eslint-patch": "^1.3.3",
45
+ "@types/jsdom": "^21.1.6",
46
+ "@types/node": "^20.11.28",
47
+ "@vitejs/plugin-vue": "^5.0.4",
48
+ "@vitejs/plugin-vue-jsx": "^3.1.0",
49
+ "@vue/eslint-config-prettier": "^8.0.0",
50
+ "@vue/test-utils": "^2.4.4",
51
+ "agilebuilder-ui": "1.1.5",
52
+ "axios": "^1.6.8",
53
+ "cypress": "^13.6.6",
54
+ "element-plus": "^2.6.1",
55
+ "eslint": "^8.49.0",
56
+ "eslint-plugin-cypress": "^2.15.1",
57
+ "eslint-plugin-vue": "^9.17.0",
58
+ "js-cookie": "^3.0.5",
59
+ "jsdom": "^24.0.0",
60
+ "mitt": "^3.0.1",
61
+ "pinia": "^2.1.7",
62
+ "rollup-plugin-terser": "^7.0.2",
63
+ "saas": "^1.0.0",
64
+ "sass": "^1.72.0",
65
+ "start-server-and-test": "^2.0.3",
66
+ "vite": "^5.1.6",
67
+ "vite-plugin-dts": "^3.9.1",
68
+ "vitest": "^1.3.1",
69
+ "vue": "^3.4.21",
70
+ "vue-i18n": "^9.10.2",
71
+ "vue-router": "^4.3.0",
72
+ "vuex": "^4.1.0"
73
+ }
74
+ }