super-page-runtime 2.1.93 → 2.1.97

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 (159) hide show
  1. package/dist/es/_virtual/_plugin-vue_export-helper.js +6 -7
  2. package/dist/es/assets/chart-themes/theme1.js +2 -6
  3. package/dist/es/assets/chart-themes/theme2.js +2 -6
  4. package/dist/es/assets/chart-themes/theme3.js +2 -6
  5. package/dist/es/components/runtime/utils/api/api-util.js +4 -7
  6. package/dist/es/components/runtime/utils/api/page-expose-util.js +137 -433
  7. package/dist/es/components/runtime/utils/assemblys-config.js +12 -366
  8. package/dist/es/components/runtime/utils/barcode-util.js +10 -33
  9. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +138 -304
  10. package/dist/es/components/runtime/utils/charts/chart-gauge-util.js +29 -66
  11. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +71 -147
  12. package/dist/es/components/runtime/utils/charts/chart-radar-util.js +52 -122
  13. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +40 -98
  14. package/dist/es/components/runtime/utils/charts/chart-util.js +237 -478
  15. package/dist/es/components/runtime/utils/common-util.js +82 -152
  16. package/dist/es/components/runtime/utils/eventBus.js +3 -9
  17. package/dist/es/components/runtime/utils/events/event-util.js +361 -727
  18. package/dist/es/components/runtime/utils/events/print-label.js +73 -140
  19. package/dist/es/components/runtime/utils/events/standard-event.js +835 -2283
  20. package/dist/es/components/runtime/utils/events/validator-util.js +236 -555
  21. package/dist/es/components/runtime/utils/form/date-shortcuts.js +29 -88
  22. package/dist/es/components/runtime/utils/form/scan-util.js +60 -154
  23. package/dist/es/components/runtime/utils/global-refs.js +45 -69
  24. package/dist/es/components/runtime/utils/i18n-util.js +12 -20
  25. package/dist/es/components/runtime/utils/interfaces/page-design-types.js +2 -7
  26. package/dist/es/components/runtime/utils/page-helper-util.js +299 -602
  27. package/dist/es/components/runtime/utils/page-init-util.js +134 -369
  28. package/dist/es/components/runtime/utils/page-permission-util.js +24 -531
  29. package/dist/es/components/runtime/utils/page-store.js +8 -12
  30. package/dist/es/components/runtime/utils/store-util.js +9 -13
  31. package/dist/es/components/runtime/utils/store.js +2 -2
  32. package/dist/es/components/runtime/utils/table-utils.js +49 -84
  33. package/dist/es/components/runtime/utils/tree-utils.js +18 -36
  34. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue.js +2 -2
  35. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +19 -75
  36. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +14 -46
  38. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +2 -2
  39. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +37 -132
  40. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue.js +2 -2
  41. package/dist/es/components/runtime/views/assemblys/button/export-pdf/exportpdf-runtime.vue2.js +4 -18
  42. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue.js +2 -2
  43. package/dist/es/components/runtime/views/assemblys/button/print-label/printlabel-runtime.vue2.js +17 -107
  44. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +2 -2
  45. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +54 -198
  46. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +12 -42
  47. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +2 -2
  48. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +7 -60
  49. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +2 -2
  50. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +48 -169
  51. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +2 -2
  52. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +2 -2
  53. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +32 -107
  54. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +2 -2
  55. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +43 -164
  56. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +2 -2
  57. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +32 -115
  58. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +2 -2
  59. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +32 -116
  60. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +208 -439
  61. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue.js +4 -42
  62. package/dist/es/components/runtime/views/assemblys/chart/table/group-column-item.vue2.js +2 -2
  63. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue.js +8 -62
  64. package/dist/es/components/runtime/views/assemblys/chart/table/group-column.vue2.js +2 -2
  65. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +63 -226
  66. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue2.js +2 -2
  67. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue.js +13 -62
  68. package/dist/es/components/runtime/views/assemblys/chart/table/table-pageination.vue2.js +2 -2
  69. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue.js +2 -2
  70. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +168 -513
  71. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +29 -139
  72. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +2 -2
  73. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +23 -125
  74. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +2 -2
  75. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +16 -102
  76. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +2 -2
  77. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +2 -2
  78. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +18 -81
  79. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +2 -2
  80. package/dist/es/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +17 -82
  81. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue.js +2 -2
  82. package/dist/es/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +14 -86
  83. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +2 -2
  84. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +21 -79
  85. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue.js +2 -2
  86. package/dist/es/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +16 -61
  87. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +2 -2
  88. package/dist/es/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +10 -37
  89. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +2 -2
  90. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +38 -127
  91. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +2 -2
  92. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +28 -76
  93. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +2 -2
  94. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +61 -178
  95. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +311 -800
  96. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +2 -2
  97. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +251 -592
  98. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +2 -2
  99. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue.js +2 -2
  100. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +43 -115
  101. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +2 -2
  102. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +56 -216
  103. package/dist/es/components/runtime/views/assemblys/error-render.vue.js +3 -21
  104. package/dist/es/components/runtime/views/assemblys/error-render.vue2.js +2 -2
  105. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +2 -2
  106. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +44 -154
  107. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue.js +36 -98
  108. package/dist/es/components/runtime/views/assemblys/form/common/title-suffix-element.vue2.js +2 -2
  109. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue.js +2 -2
  110. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +54 -200
  111. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +2 -2
  112. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +69 -239
  113. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +2 -2
  114. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +28 -98
  115. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +2 -2
  116. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +22 -59
  117. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +2 -2
  118. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +52 -173
  119. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +2 -2
  120. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +22 -103
  121. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +2 -2
  122. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +58 -249
  123. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue.js +2 -2
  124. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +34 -174
  125. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue.js +2 -2
  126. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +28 -107
  127. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +4 -4
  128. package/dist/es/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +13 -50
  129. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +2 -2
  130. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +66 -189
  131. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +2 -2
  132. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -243
  133. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue.js +2 -2
  134. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +82 -261
  135. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue.js +2 -2
  136. package/dist/es/components/runtime/views/assemblys/form/separatelabel/separatelabel-runtime.vue2.js +13 -57
  137. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +2 -2
  138. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +30 -155
  139. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +2 -2
  140. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +41 -129
  141. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +2 -2
  142. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +22 -107
  143. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +133 -252
  144. package/dist/es/components/runtime/views/assemblys/object-render.vue2.js +2 -2
  145. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue.js +2 -2
  146. package/dist/es/components/runtime/views/assemblys/workflow/picture-flow/pictureflow-runtime.vue2.js +19 -46
  147. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue.js +2 -2
  148. package/dist/es/components/runtime/views/assemblys/workflow/text-history/textflow-runtime.vue2.js +22 -49
  149. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +2 -2
  150. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +21 -58
  151. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue.js +2 -2
  152. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +16 -53
  153. package/dist/es/components/runtime/views/super-page-dialog.vue.js +18 -134
  154. package/dist/es/components/runtime/views/super-page-dialog.vue2.js +2 -2
  155. package/dist/es/components/runtime/views/super-page.vue.js +232 -708
  156. package/dist/es/components/runtime/views/super-page.vue2.js +2 -2
  157. package/dist/es/i18n/langs/cn.js +2 -55
  158. package/dist/es/i18n/langs/en.js +2 -55
  159. package/package.json +74 -73
@@ -1,265 +1,146 @@
1
- import { defineComponent, ref, computed, markRaw, onMounted, resolveDirective, unref, withDirectives, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, normalizeClass, vShow, createCommentVNode, nextTick } from "vue";
2
- import _sfc_main$1 from "./error-render.vue.js";
3
- import { getRuntimeComponentByName } from "../../utils/assemblys-config.js";
4
- import { PageDimensions } from "../../utils/interfaces/page-design-types.js";
5
- import { addComponentRef, addComponentRefByCode } from "../../utils/global-refs.js";
6
- import { getPermissionCodes, packageFormRules, controlObjectRenderState } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition, getFormPropName, getSizeConfig } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage, getPropClassName, isNumber } from "../../utils/common-util.js";
9
- import { isShowComponent } from "../../utils/events/event-util.js";
10
- const _sfc_main = /* @__PURE__ */ defineComponent({
11
- __name: "object-render",
12
- props: {
13
- pageContext: {},
14
- configure: {}
15
- },
16
- setup(__props) {
17
- var _a, _b;
18
- const props = __props;
19
- if (props.configure.style == void 0) {
20
- props.configure.style = {};
21
- }
22
- const permissionCodes = getPermissionCodes(props.configure, props.pageContext);
23
- if (props.configure && props.configure.props && props.configure.props.base) {
24
- props.configure.props.base.functionCode = permissionCodes;
25
- }
26
- packageFormRules(props.pageContext, props.configure);
27
- let handleShowFlag = ref(true);
28
- let showFlag = ref(true);
29
- let editFlag = ref("");
30
- if (props.configure && props.configure.props) {
31
- let showConditions = [];
32
- if ((_a = props.configure.props.base) == null ? void 0 : _a.showConditions) {
33
- if (typeof props.configure.props.base.showConditions === "string") {
34
- showConditions = JSON.parse(props.configure.props.base.showConditions);
35
- } else {
36
- showConditions = props.configure.props.base.showConditions;
37
- }
38
- }
39
- showFlag = computed(() => {
40
- var _a2;
41
- let dynamicShowFlag = true;
42
- if (!handleShowFlag.value) {
43
- dynamicShowFlag = false;
44
- } else {
45
- if (showConditions && showConditions.length > 0) {
46
- dynamicShowFlag = caculateShowCondition(props.pageContext, showConditions);
47
- } else {
48
- const state = (_a2 = props.configure.props.base) == null ? void 0 : _a2.state;
49
- if (state && state === "hidden") {
50
- dynamicShowFlag = false;
51
- }
52
- }
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, resolveDirective as s, unref as r, withDirectives as u, openBlock as l, createBlock as p, resolveDynamicComponent as a, normalizeStyle as c, normalizeClass as f, vShow as g, createCommentVNode as d, nextTick as v } from "vue";
2
+ import m from "./error-render.vue.js";
3
+ import { getRuntimeComponentByName as C } from "../../utils/assemblys-config.js";
4
+ import { PageDimensions as x } from "../../utils/interfaces/page-design-types.js";
5
+ import { addComponentRef as b, addComponentRefByCode as h } from "../../utils/global-refs.js";
6
+ import { getPermissionCodes as y, packageFormRules as w, controlObjectRenderState as j } from "../../utils/page-init-util.js";
7
+ import { caculateShowCondition as _, getFormPropName as B, getSizeConfig as O } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as P, getPropClassName as R, isNumber as S } from "../../utils/common-util.js";
9
+ import { isShowComponent as M } from "../../utils/events/event-util.js";
10
+ const N = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
11
+ var _a, _b;
12
+ const N2 = e2;
13
+ null == N2.configure.style && (N2.configure.style = {});
14
+ const $ = y(N2.configure, N2.pageContext);
15
+ N2.configure && N2.configure.props && N2.configure.props.base && (N2.configure.props.base.functionCode = $), w(N2.pageContext, N2.configure);
16
+ let E = o(true), H = o(true), k = o("");
17
+ if (N2.configure && N2.configure.props) {
18
+ let e3 = [];
19
+ ((_a = N2.configure.props.base) == null ? void 0 : _a.showConditions) && (e3 = "string" == typeof N2.configure.props.base.showConditions ? JSON.parse(N2.configure.props.base.showConditions) : N2.configure.props.base.showConditions), H = t(() => {
20
+ var _a2;
21
+ let o2 = true;
22
+ if (E.value)
23
+ if (e3 && e3.length > 0)
24
+ o2 = _(N2.pageContext, e3);
25
+ else {
26
+ const e4 = (_a2 = N2.configure.props.base) == null ? void 0 : _a2.state;
27
+ e4 && "hidden" === e4 && (o2 = false);
53
28
  }
54
- return dynamicShowFlag;
55
- });
56
- const propConfigure = props.configure;
57
- propConfigure._dynamicShowFlag = showFlag;
58
- if ((_b = props.configure.props.base) == null ? void 0 : _b.editConditions) {
59
- const editConditions = props.configure.props.base.editConditions;
60
- if (editConditions.length > 0) {
61
- const runtime = props.configure.runtime ? props.configure.runtime : {};
62
- const property = runtime.props ? runtime.props : {};
63
- property.rawSate = property.state;
64
- if (isWorkflowPage(props.pageContext) && props.pageContext.fieldPermissionMap) {
65
- const allFields = props.pageContext.fieldPermissionMap.get("all_fields");
66
- if ((allFields == null ? void 0 : allFields["canEdit"]) === false) {
67
- editFlag.value = "disabled";
68
- } else {
69
- const propsBase = props.configure.props.base;
70
- if (propsBase && propsBase.prop) {
71
- let propName = propsBase.prop;
72
- propName = getFormPropName(propName);
73
- const propEditPermission = props.pageContext.fieldPermissionMap.get(propName);
74
- if (propEditPermission) {
75
- if (propEditPermission["canEdit"] === false) {
76
- editFlag.value = "disabled";
77
- }
78
- }
79
- }
29
+ else
30
+ o2 = false;
31
+ return o2;
32
+ });
33
+ if (N2.configure._dynamicShowFlag = H, (_b = N2.configure.props.base) == null ? void 0 : _b.editConditions) {
34
+ const e4 = N2.configure.props.base.editConditions;
35
+ if (e4.length > 0) {
36
+ const o2 = N2.configure.runtime ? N2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
37
+ if (n2.rawSate = n2.state, P(N2.pageContext) && N2.pageContext.fieldPermissionMap) {
38
+ const e5 = N2.pageContext.fieldPermissionMap.get("all_fields");
39
+ if (false === (e5 == null ? void 0 : e5.canEdit))
40
+ k.value = "disabled";
41
+ else {
42
+ const e6 = N2.configure.props.base;
43
+ if (e6 && e6.prop) {
44
+ let o3 = e6.prop;
45
+ o3 = B(o3);
46
+ const t2 = N2.pageContext.fieldPermissionMap.get(o3);
47
+ t2 && false === t2.canEdit && (k.value = "disabled");
80
48
  }
81
49
  }
82
- property.state = computed({
83
- get() {
84
- if (editFlag.value === "disabled") {
85
- return editFlag.value;
86
- }
87
- const canEdit = caculateShowCondition(props.pageContext, editConditions);
88
- return canEdit ? "" : "disabled";
89
- },
90
- set() {
91
- }
92
- });
93
50
  }
51
+ n2.state = t({ get() {
52
+ if ("disabled" === k.value)
53
+ return k.value;
54
+ return _(N2.pageContext, e4) ? "" : "disabled";
55
+ }, set() {
56
+ } });
94
57
  }
95
58
  }
96
- const dynamicComponent = ref({});
97
- dynamicComponent.value = markRaw(getRuntimeComponentByName(props.configure.name));
98
- const showCopy = ref(true);
99
- if (dynamicComponent.value == null) {
100
- dynamicComponent.value = _sfc_main$1;
101
- showCopy.value = false;
102
- }
103
- const thisRef = ref(null);
104
- const runtimeStyle = ref({});
105
- const runtimeClass = ref("");
106
- const propClassName = getPropClassName(props.configure);
107
- if (propClassName) {
108
- runtimeClass.value = propClassName;
109
- }
110
- const commonRuntime = props.configure.runtime && props.configure.runtime.common ? props.configure.runtime.common : {};
111
- if (commonRuntime.class) {
112
- runtimeClass.value += " " + commonRuntime.class;
113
- }
114
- if (commonRuntime.style) {
115
- Object.assign(runtimeStyle.value, commonRuntime.style);
116
- const pageDimensions = props.pageContext && props.pageContext.dimensions ? props.pageContext.dimensions : PageDimensions.PC;
117
- const sizeStyle = commonRuntime.style[pageDimensions + "_style"];
118
- if (sizeStyle) {
119
- Object.assign(runtimeStyle.value, sizeStyle);
120
- }
121
- const sizeClass = commonRuntime.style[pageDimensions + "_class"];
122
- if (sizeClass) {
123
- runtimeClass.value += " " + sizeClass;
124
- }
125
- }
126
- function setComponentRef(el) {
127
- thisRef.value = el;
128
- if (el && !el.show) {
129
- el.show = function() {
130
- handleShowFlag.value = true;
131
- };
132
- }
133
- if (el && !el.hide) {
134
- el.hide = function() {
135
- handleShowFlag.value = false;
136
- };
137
- }
138
- if (el && !el.getConfigure) {
139
- el.getConfigure = function() {
140
- return props.configure;
141
- };
142
- }
143
- if (props.configure.uuid) {
144
- addComponentRef(props.pageContext, props.configure.uuid, thisRef);
145
- }
146
- if (props.configure.code) {
147
- addComponentRefByCode(props.pageContext, props.configure.code, thisRef);
148
- } else if (props.configure.props && props.configure.props.base) {
149
- const propsBase2 = props.configure.props.base;
150
- if (propsBase2.prop) {
151
- let propName = propsBase2.prop;
152
- if (propName.startsWith("${")) {
153
- propName = propName.substring(2, propName.length - 1);
154
- }
155
- if (propName.includes(".")) {
156
- propName = propName.substring(propName.indexOf(".") + 1);
157
- }
158
- addComponentRefByCode(props.pageContext, propName, thisRef);
159
- }
160
- }
161
- const propsBase = props.configure.props ? props.configure.props.base : null;
162
- if (propsBase && propsBase.prop) {
163
- let propName = propsBase.prop;
164
- propName = getFormPropName(propName);
165
- controlObjectRenderState(props.pageContext, propName);
59
+ }
60
+ const F = o({});
61
+ F.value = n(C(N2.configure.name));
62
+ const J = o(true);
63
+ null == F.value && (F.value = m, J.value = false);
64
+ const W = o(null), q = o({}), z = o(""), A = R(N2.configure);
65
+ A && (z.value = A);
66
+ const D = N2.configure.runtime && N2.configure.runtime.common ? N2.configure.runtime.common : {};
67
+ if (D.class && (z.value += " " + D.class), D.style) {
68
+ Object.assign(q.value, D.style);
69
+ const e3 = N2.pageContext && N2.pageContext.dimensions ? N2.pageContext.dimensions : x.PC, o2 = D.style[e3 + "_style"];
70
+ o2 && Object.assign(q.value, o2);
71
+ const t2 = D.style[e3 + "_class"];
72
+ t2 && (z.value += " " + t2);
73
+ }
74
+ function G(e3) {
75
+ if (W.value = e3, e3 && !e3.show && (e3.show = function() {
76
+ E.value = true;
77
+ }), e3 && !e3.hide && (e3.hide = function() {
78
+ E.value = false;
79
+ }), e3 && !e3.getConfigure && (e3.getConfigure = function() {
80
+ return N2.configure;
81
+ }), N2.configure.uuid && b(N2.pageContext, N2.configure.uuid, W), N2.configure.code)
82
+ h(N2.pageContext, N2.configure.code, W);
83
+ else if (N2.configure.props && N2.configure.props.base) {
84
+ const e4 = N2.configure.props.base;
85
+ if (e4.prop) {
86
+ let o3 = e4.prop;
87
+ o3.startsWith("${") && (o3 = o3.substring(2, o3.length - 1)), o3.includes(".") && (o3 = o3.substring(o3.indexOf(".") + 1)), h(N2.pageContext, o3, W);
166
88
  }
167
- setComponentHeight();
168
89
  }
169
- onMounted(() => {
170
- dynamicallyCalculatePosition();
171
- });
172
- function setComponentHeight() {
173
- if (!thisRef.value) {
174
- return;
175
- }
176
- const sizeConfig = getSizeConfig(props.pageContext, props.configure);
177
- if (props.configure.name !== "table" && sizeConfig && sizeConfig["isCalcHeight"]) {
178
- nextTick(() => {
179
- let thisRefDom = thisRef.value.$el;
180
- if (!thisRefDom) {
181
- thisRefDom = thisRef.value;
182
- }
183
- const parentNode = thisRefDom.parentNode;
184
- if (!thisRefDom || !parentNode) {
185
- return;
186
- }
187
- const rect = thisRefDom.getBoundingClientRect();
188
- let contentHeight = window.innerHeight - rect.y - 80;
189
- let heightStyle = contentHeight + "";
190
- if (isNumber(contentHeight)) {
191
- heightStyle = contentHeight + "px";
192
- }
193
- runtimeStyle.value["height"] = heightStyle;
194
- runtimeStyle.value["overflow-y"] = "auto";
195
- runtimeStyle.value["overflow-x"] = "hidden";
196
- if (!props.configure.sytle) {
197
- props.configure.sytle = {};
198
- }
199
- props.configure.sytle._heightStyle = heightStyle;
200
- });
201
- }
90
+ const o2 = N2.configure.props ? N2.configure.props.base : null;
91
+ if (o2 && o2.prop) {
92
+ let e4 = o2.prop;
93
+ e4 = B(e4), j(N2.pageContext, e4);
202
94
  }
203
- const dynamicallyCalculatePosition = () => {
204
- if (!thisRef.value) {
205
- return;
206
- }
207
- let thisRefDom = thisRef.value.$el;
208
- if (!thisRefDom) {
209
- thisRefDom = thisRef.value;
210
- }
211
- const parentNode = thisRefDom.parentNode;
212
- if (!thisRefDom || !parentNode) {
95
+ !function() {
96
+ if (!W.value)
213
97
  return;
214
- }
215
- const thisProps = props.configure.props ? props.configure.props : {};
216
- const thisStyle = props.configure.style ? props.configure.style : {};
217
- const position = thisProps.position;
218
- if (position == "top" || position == "bottom") {
219
- const contentObj = [parentNode];
220
- if (contentObj && contentObj.length > 0) {
221
- const contentRec = contentObj[0].getBoundingClientRect();
222
- if (position == "top") {
223
- runtimeStyle.value["top"] = contentRec.top + "px";
224
- }
225
- if (position == "bottom") {
226
- runtimeStyle.value["bottom"] = "10px";
227
- }
228
- }
229
- const thisRec = thisRefDom.getBoundingClientRect();
230
- runtimeStyle.value["width"] = thisRec.width + "px";
231
- } else if (thisStyle.position) {
232
- runtimeStyle.value["position"] = thisStyle.position;
233
- if (runtimeStyle.value.position != "relative") {
234
- if (!runtimeStyle.value["width"]) {
235
- const thisRec = thisRefDom.getBoundingClientRect();
236
- runtimeStyle.value["width"] = thisRec.width + "px";
237
- }
238
- if (thisStyle.left) {
239
- runtimeStyle.value["left"] = thisStyle.left + "px";
240
- }
241
- if (thisStyle.top) {
242
- runtimeStyle.value["top"] = thisStyle.top + "px";
243
- }
244
- }
245
- }
246
- };
247
- return (_ctx, _cache) => {
248
- const _directive_permission = resolveDirective("permission");
249
- return unref(isShowComponent)(_ctx.configure) ? withDirectives((openBlock(), createBlock(resolveDynamicComponent(dynamicComponent.value), {
250
- key: 0,
251
- ref: setComponentRef,
252
- style: normalizeStyle(runtimeStyle.value),
253
- class: normalizeClass(runtimeClass.value),
254
- configure: _ctx.configure,
255
- pageContext: _ctx.pageContext
256
- }, null, 8, ["style", "class", "configure", "pageContext"])), [
257
- [vShow, unref(showFlag)],
258
- [_directive_permission, unref(permissionCodes) ? unref(permissionCodes) : "true"]
259
- ]) : createCommentVNode("", true);
260
- };
98
+ const e4 = O(N2.pageContext, N2.configure);
99
+ "table" !== N2.configure.name && e4 && e4.isCalcHeight && v(() => {
100
+ let e5 = W.value.$el;
101
+ e5 || (e5 = W.value);
102
+ const o3 = e5.parentNode;
103
+ if (!e5 || !o3)
104
+ return;
105
+ const t2 = e5.getBoundingClientRect();
106
+ let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
107
+ S(n2) && (i2 = n2 + "px"), q.value.height = i2, q.value["overflow-y"] = "auto", q.value["overflow-x"] = "hidden", N2.configure.sytle || (N2.configure.sytle = {}), N2.configure.sytle._heightStyle = i2;
108
+ });
109
+ }();
261
110
  }
262
- });
111
+ i(() => {
112
+ I();
113
+ });
114
+ const I = () => {
115
+ if (!W.value)
116
+ return;
117
+ let e3 = W.value.$el;
118
+ e3 || (e3 = W.value);
119
+ const o2 = e3.parentNode;
120
+ if (!e3 || !o2)
121
+ return;
122
+ const t2 = N2.configure.props ? N2.configure.props : {}, n2 = N2.configure.style ? N2.configure.style : {}, i2 = t2.position;
123
+ if ("top" == i2 || "bottom" == i2) {
124
+ const t3 = [o2];
125
+ if (t3 && t3.length > 0) {
126
+ const e4 = t3[0].getBoundingClientRect();
127
+ "top" == i2 && (q.value.top = e4.top + "px"), "bottom" == i2 && (q.value.bottom = "10px");
128
+ }
129
+ const n3 = e3.getBoundingClientRect();
130
+ q.value.width = n3.width + "px";
131
+ } else if (n2.position && (q.value.position = n2.position, "relative" != q.value.position)) {
132
+ if (!q.value.width) {
133
+ const o3 = e3.getBoundingClientRect();
134
+ q.value.width = o3.width + "px";
135
+ }
136
+ n2.left && (q.value.left = n2.left + "px"), n2.top && (q.value.top = n2.top + "px");
137
+ }
138
+ };
139
+ return (e3, o2) => {
140
+ const t2 = s("permission");
141
+ return r(M)(e3.configure) ? u((l(), p(a(F.value), { key: 0, ref: G, style: c(q.value), class: f(z.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[g, r(H)], [t2, r($) ? r($) : "true"]]) : d("", true);
142
+ };
143
+ } });
263
144
  export {
264
- _sfc_main as default
145
+ N as default
265
146
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./object-render.vue.js";
1
+ import e from "./object-render.vue.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./pictureflow-runtime.vue2.js";
1
+ import e from "./pictureflow-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ e as default
4
4
  };
@@ -1,48 +1,21 @@
1
- import { defineComponent, ref, watch, resolveComponent, unref, openBlock, createElementBlock, toDisplayString, createBlock, normalizeStyle } from "vue";
2
- import { getWorkflowId } from "../../../../utils/common-util.js";
3
- const _hoisted_1 = { key: 0 };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "pictureflow-runtime",
6
- props: {
7
- pageContext: {},
8
- configure: {}
9
- },
10
- setup(__props) {
11
- var _a;
12
- const props = __props;
13
- const maxHeight = ref(null);
14
- const heightStyle = (_a = props.configure.sytle) == null ? void 0 : _a._heightStyle;
15
- if (heightStyle && (heightStyle + "").indexOf("px") > 0) {
16
- const contentHeight = heightStyle.substring(0, heightStyle.lastIndexOf("px"));
17
- maxHeight.value = Number(contentHeight) - 20;
18
- } else {
19
- maxHeight.value = window.innerHeight - 120;
20
- }
21
- const historyGraphRef = ref(null);
22
- const workflowId = getWorkflowId(props.pageContext);
23
- if (props.pageContext.entity && props.pageContext.entity.task) {
24
- watch(
25
- props.pageContext.entity.task.id,
26
- () => {
27
- if (workflowId && historyGraphRef.value) {
28
- historyGraphRef.value.refresh();
29
- }
30
- },
31
- { immediate: true }
32
- );
33
- }
34
- return (_ctx, _cache) => {
35
- const _component_workflow_history = resolveComponent("workflow-history");
36
- return !unref(workflowId) ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.$t("superPageRuntimeMessage.flowNotStart")), 1)) : (openBlock(), createBlock(_component_workflow_history, {
37
- key: 1,
38
- id: unref(workflowId),
39
- ref_key: "historyGraphRef",
40
- ref: historyGraphRef,
41
- style: normalizeStyle({ maxHeight: maxHeight.value + "px" })
42
- }, null, 8, ["id", "style"]));
43
- };
44
- }
45
- });
1
+ import { defineComponent as e, ref as t, watch as n, resolveComponent as o, unref as i, openBlock as r, createElementBlock as s, toDisplayString as a, createBlock as l, normalizeStyle as u } from "vue";
2
+ import { getWorkflowId as p } from "../../../../utils/common-util.js";
3
+ const f = { key: 0 }, g = e({ __name: "pictureflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
4
+ var _a;
5
+ const g2 = e2, m = t(null), x = (_a = g2.configure.sytle) == null ? void 0 : _a._heightStyle;
6
+ if (x && (x + "").indexOf("px") > 0) {
7
+ const e3 = x.substring(0, x.lastIndexOf("px"));
8
+ m.value = Number(e3) - 20;
9
+ } else
10
+ m.value = window.innerHeight - 120;
11
+ const y = t(null), c = p(g2.pageContext);
12
+ return g2.pageContext.entity && g2.pageContext.entity.task && n(g2.pageContext.entity.task.id, () => {
13
+ c && y.value && y.value.refresh();
14
+ }, { immediate: true }), (e3, t2) => {
15
+ const n2 = o("workflow-history");
16
+ return i(c) ? (r(), l(n2, { key: 1, id: i(c), ref_key: "historyGraphRef", ref: y, style: u({ maxHeight: m.value + "px" }) }, null, 8, ["id", "style"])) : (r(), s("span", f, a(e3.$t("superPageRuntimeMessage.flowNotStart")), 1));
17
+ };
18
+ } });
46
19
  export {
47
- _sfc_main as default
20
+ g as default
48
21
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./textflow-runtime.vue2.js";
1
+ import t from "./textflow-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ t as default
4
4
  };
@@ -1,51 +1,24 @@
1
- import { defineComponent, ref, watch, resolveComponent, unref, openBlock, createElementBlock, toDisplayString, createBlock, normalizeStyle } from "vue";
2
- import { getWorkflowId } from "../../../../utils/common-util.js";
3
- const _hoisted_1 = { key: 0 };
4
- const _sfc_main = /* @__PURE__ */ defineComponent({
5
- __name: "textflow-runtime",
6
- props: {
7
- pageContext: {},
8
- configure: {}
9
- },
10
- setup(__props) {
11
- var _a;
12
- const props = __props;
13
- const maxHeight = ref(null);
14
- const heightStyle = (_a = props.configure.sytle) == null ? void 0 : _a._heightStyle;
15
- if (heightStyle && (heightStyle + "").indexOf("px") > 0) {
16
- const contentHeight = heightStyle.substring(0, heightStyle.lastIndexOf("px"));
17
- maxHeight.value = Number(contentHeight) - 20;
18
- } else {
19
- maxHeight.value = window.innerHeight - 120;
20
- }
21
- const historyList = ref(null);
22
- const workflowId = getWorkflowId(props.pageContext);
23
- if (props.pageContext.entity && props.pageContext.entity.task) {
24
- watch(
25
- () => {
26
- var _a2;
27
- return (_a2 = props.pageContext.entity.task) == null ? void 0 : _a2.id;
28
- },
29
- () => {
30
- if (workflowId && historyList.value && props.pageContext.entity.task) {
31
- historyList.value.refresh();
32
- }
33
- },
34
- { immediate: true }
35
- );
36
- }
37
- return (_ctx, _cache) => {
38
- const _component_workflow_history_list = resolveComponent("workflow-history-list");
39
- return !unref(workflowId) ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.$t("superPageRuntimeMessage.flowNotStart")), 1)) : (openBlock(), createBlock(_component_workflow_history_list, {
40
- key: 1,
41
- ref_key: "historyList",
42
- ref: historyList,
43
- "workflow-id": unref(workflowId),
44
- style: normalizeStyle({ maxHeight: maxHeight.value + "px" })
45
- }, null, 8, ["workflow-id", "style"]));
46
- };
47
- }
48
- });
1
+ import { defineComponent as e, ref as t, watch as n, resolveComponent as o, unref as i, openBlock as s, createElementBlock as r, toDisplayString as l, createBlock as a, normalizeStyle as u } from "vue";
2
+ import { getWorkflowId as p } from "../../../../utils/common-util.js";
3
+ const f = { key: 0 }, g = e({ __name: "textflow-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
4
+ var _a;
5
+ const g2 = e2, x = t(null), m = (_a = g2.configure.sytle) == null ? void 0 : _a._heightStyle;
6
+ if (m && (m + "").indexOf("px") > 0) {
7
+ const e3 = m.substring(0, m.lastIndexOf("px"));
8
+ x.value = Number(e3) - 20;
9
+ } else
10
+ x.value = window.innerHeight - 120;
11
+ const y = t(null), w = p(g2.pageContext);
12
+ return g2.pageContext.entity && g2.pageContext.entity.task && n(() => {
13
+ var _a2;
14
+ return (_a2 = g2.pageContext.entity.task) == null ? void 0 : _a2.id;
15
+ }, () => {
16
+ w && y.value && g2.pageContext.entity.task && y.value.refresh();
17
+ }, { immediate: true }), (e3, t2) => {
18
+ const n2 = o("workflow-history-list");
19
+ return i(w) ? (s(), a(n2, { key: 1, ref_key: "historyList", ref: y, "workflow-id": i(w), style: u({ maxHeight: x.value + "px" }) }, null, 8, ["workflow-id", "style"])) : (s(), r("span", f, l(e3.$t("superPageRuntimeMessage.flowNotStart")), 1));
20
+ };
21
+ } });
49
22
  export {
50
- _sfc_main as default
23
+ g as default
51
24
  };
@@ -1,4 +1,4 @@
1
- import _sfc_main from "./workflowbutton-runtime.vue2.js";
1
+ import o from "./workflowbutton-runtime.vue2.js";
2
2
  export {
3
- _sfc_main as default
3
+ o as default
4
4
  };