super-page-runtime 2.2.26 → 2.2.29-tmp2

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