super-page-runtime 0.0.2-tmp7 → 1.0.2

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 (177) hide show
  1. package/dist/es/components/runtime/index.d.ts +1 -3
  2. package/dist/es/components/runtime/index.js +4 -0
  3. package/dist/es/components/runtime/utils/assemblys-config.js +1 -8
  4. package/dist/es/components/runtime/utils/charts/chart-util.js +1 -14
  5. package/dist/es/components/runtime/utils/common-util.d.ts +0 -5
  6. package/dist/es/components/runtime/utils/common-util.js +0 -13
  7. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +0 -2
  8. package/dist/es/components/runtime/utils/page-helper-util.d.ts +0 -19
  9. package/dist/es/components/runtime/utils/page-helper-util.js +0 -116
  10. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +3 -198
  11. package/dist/es/components/runtime/views/super-page.vue.js +2 -16
  12. package/dist/es/components/super-page-dialog/index.d.ts +3 -0
  13. package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.js +1 -1
  14. package/dist/es/components/super-page-dialog/super-page-dialog.vue2.js +4 -0
  15. package/dist/es/components/wf-editor/index.d.ts +3 -0
  16. package/dist/es/components/wf-editor/index.js +4 -0
  17. package/dist/es/components/wf-editor/wf-editor.css +4 -0
  18. package/dist/es/components/wf-editor/wf-editor.vue.js +16 -0
  19. package/dist/es/index.d.ts +4 -7
  20. package/dist/es/index.js +3 -12
  21. package/dist/favicon.ico +0 -0
  22. package/dist/lib/_virtual/_plugin-vue_export-helper.js +9 -0
  23. package/dist/lib/assets/chart-themes/theme1.js +7 -0
  24. package/dist/lib/assets/chart-themes/theme2.js +7 -0
  25. package/dist/lib/assets/chart-themes/theme3.js +7 -0
  26. package/dist/lib/components/runtime/index.d.ts +3 -0
  27. package/dist/lib/components/runtime/index.js +3 -0
  28. package/dist/lib/components/runtime/utils/api/api-util.d.ts +11 -0
  29. package/dist/lib/components/runtime/utils/api/api-util.js +128 -0
  30. package/dist/lib/components/runtime/utils/assemblys-config.js +258 -0
  31. package/dist/lib/components/runtime/utils/charts/chart-util.js +15 -0
  32. package/dist/lib/components/runtime/utils/common-util.d.ts +11 -0
  33. package/dist/lib/components/runtime/utils/common-util.js +81 -0
  34. package/dist/lib/components/runtime/utils/eventBus.d.ts +7 -0
  35. package/dist/lib/components/runtime/utils/eventBus.js +10 -0
  36. package/dist/lib/components/runtime/utils/events/event-util.d.ts +48 -0
  37. package/dist/lib/components/runtime/utils/events/event-util.js +526 -0
  38. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +61 -0
  39. package/dist/lib/components/runtime/utils/events/standard-event.js +1624 -0
  40. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +4 -0
  41. package/dist/lib/components/runtime/utils/events/validator-util.js +389 -0
  42. package/dist/lib/components/runtime/utils/global-refs.d.ts +59 -0
  43. package/dist/lib/components/runtime/utils/global-refs.js +65 -0
  44. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +221 -0
  45. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +9 -0
  46. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +87 -0
  47. package/dist/lib/components/runtime/utils/page-helper-util.js +503 -0
  48. package/dist/lib/components/runtime/utils/page-init-util.d.ts +38 -0
  49. package/dist/lib/components/runtime/utils/page-init-util.js +200 -0
  50. package/dist/lib/components/runtime/utils/store-util.d.ts +15 -0
  51. package/dist/lib/components/runtime/utils/store-util.js +17 -0
  52. package/dist/lib/components/runtime/utils/store.d.ts +2 -0
  53. package/dist/lib/components/runtime/utils/store.js +3 -0
  54. package/dist/lib/components/runtime/utils/table-utils.js +24 -0
  55. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +3 -0
  56. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +54 -0
  57. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +3 -0
  58. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +35 -0
  59. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +3 -0
  60. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +110 -0
  61. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +3 -0
  62. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +53 -0
  63. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +3 -0
  64. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +49 -0
  65. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +3 -0
  66. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +50 -0
  67. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +3 -0
  68. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +50 -0
  69. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +3 -0
  70. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +51 -0
  71. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +24 -0
  72. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +147 -0
  73. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +3 -0
  74. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +35 -0
  75. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +127 -0
  76. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +3 -0
  77. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +26 -0
  78. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +104 -0
  79. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +3 -0
  80. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +3 -0
  81. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +72 -0
  82. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +3 -0
  83. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +74 -0
  84. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +3 -0
  85. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +79 -0
  86. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +3 -0
  87. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +43 -0
  88. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +3 -0
  89. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +44 -0
  90. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +3 -0
  91. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +30 -0
  92. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +3 -0
  93. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +69 -0
  94. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +3 -0
  95. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +75 -0
  96. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +642 -0
  97. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +3 -0
  98. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +453 -0
  99. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +3 -0
  100. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +3 -0
  101. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +87 -0
  102. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +22 -0
  103. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +22 -0
  104. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +3 -0
  105. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +3 -0
  106. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +156 -0
  107. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +3 -0
  108. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +82 -0
  109. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +3 -0
  110. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +63 -0
  111. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +3 -0
  112. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +40 -0
  113. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +3 -0
  114. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +74 -0
  115. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +3 -0
  116. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +63 -0
  117. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +3 -0
  118. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +127 -0
  119. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +3 -0
  120. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +127 -0
  121. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +3 -0
  122. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +77 -0
  123. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +3 -0
  124. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +29 -0
  125. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +3 -0
  126. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +157 -0
  127. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +3 -0
  128. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +162 -0
  129. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +3 -0
  130. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +201 -0
  131. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +3 -0
  132. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +63 -0
  133. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +3 -0
  134. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +63 -0
  135. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +3 -0
  136. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +65 -0
  137. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +17 -0
  138. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +142 -0
  139. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +3 -0
  140. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +3 -0
  141. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +61 -0
  142. package/dist/lib/components/runtime/views/super-page.vue.d.ts +91 -0
  143. package/dist/lib/components/runtime/views/super-page.vue.js +481 -0
  144. package/dist/lib/components/runtime/views/super-page.vue2.js +3 -0
  145. package/dist/lib/components/super-page-dialog/index.d.ts +3 -0
  146. package/dist/lib/components/super-page-dialog/index.js +3 -0
  147. package/dist/lib/components/super-page-dialog/super-page-dialog.vue.d.ts +36 -0
  148. package/dist/lib/components/super-page-dialog/super-page-dialog.vue.js +74 -0
  149. package/dist/lib/components/super-page-dialog/super-page-dialog.vue2.js +3 -0
  150. package/dist/lib/components/wf-editor/index.d.ts +3 -0
  151. package/dist/lib/components/wf-editor/index.js +3 -0
  152. package/dist/lib/components/wf-editor/wf-editor.css +4 -0
  153. package/dist/lib/components/wf-editor/wf-editor.vue.d.ts +2 -0
  154. package/dist/lib/components/wf-editor/wf-editor.vue.js +15 -0
  155. package/dist/lib/favicon.ico +0 -0
  156. package/dist/lib/index.d.ts +5 -0
  157. package/dist/lib/index.js +8 -0
  158. package/package.json +68 -70
  159. package/dist/es/assets/chart-themes/theme1.d.ts +0 -4
  160. package/dist/es/assets/chart-themes/theme2.d.ts +0 -4
  161. package/dist/es/assets/chart-themes/theme3.d.ts +0 -4
  162. package/dist/es/assets/images/button/button-group.png.js +0 -4
  163. package/dist/es/assets/images/button/button.png.js +0 -4
  164. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +0 -11
  165. package/dist/es/components/runtime/utils/page-permission-util.d.ts +0 -26
  166. package/dist/es/components/runtime/utils/page-permission-util.js +0 -525
  167. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -62
  168. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -4
  169. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -57
  170. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -4
  171. package/dist/es/components/runtime/views/wf-editor.vue.js +0 -7
  172. package/dist/es/components/runtime/views/wf-editor.vue2.js +0 -25
  173. package/dist/es/components/runtime/views/wf-editor.vue3.js +0 -1
  174. package/dist/es/style.css +0 -4
  175. /package/dist/es/components/{runtime/views/super-page-dialog.vue2.js → super-page-dialog/index.js} +0 -0
  176. /package/dist/es/components/{runtime/views → super-page-dialog}/super-page-dialog.vue.d.ts +0 -0
  177. /package/dist/es/components/{runtime/views → wf-editor}/wf-editor.vue.d.ts +0 -0
@@ -0,0 +1,200 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const http = require("agilebuilder-ui/src/utils/request");
4
+ const vueRouter = require("vue-router");
5
+ const pageDesignTypes = require("./interfaces/page-design-types.js");
6
+ const pageHelperUtil = require("./page-helper-util.js");
7
+ function queryPageDesignByCode(pageCode) {
8
+ return http.get("/component/super-page-design/runtime/" + pageCode);
9
+ }
10
+ function convertToPageContext(pageDesign, pageRequest) {
11
+ if (pageDesign == null) {
12
+ return null;
13
+ }
14
+ const pageContext = {
15
+ uuid: pageDesign.uuid,
16
+ name: pageDesign.name,
17
+ label: pageDesign.label,
18
+ code: pageDesign.code,
19
+ version: pageDesign.version,
20
+ dimensions: pageDesign.dimensions,
21
+ rules: pageDesign.rules,
22
+ // 表单验证规则
23
+ tableUuids: pageDesign.tableUuids,
24
+ // 表格uuid集合
25
+ tableNames: pageDesign.tableNames,
26
+ // 当前页面中表格对应的数据表名集合,后台保存子表记录时需要
27
+ formNoRuleCode: pageDesign.formNoRuleCode,
28
+ // 表单编号规则
29
+ judgeHeavyList: pageDesign.judgeHeavyList,
30
+ // 判重组合字段集合配置
31
+ conversionCodes: pageDesign.conversionCodes,
32
+ // 数据转换规则
33
+ pageType: pageDesign.pageType,
34
+ // 页面类型:form、list、chart
35
+ beanName: pageDesign.beanName,
36
+ // 业务处理类,继承CommonBaseService接口的类
37
+ importBeanName: pageDesign.importBeanName,
38
+ // 导入处理类,继承ImportDefinitionService接口的类
39
+ notIdInitializationList: pageDesign.notIdInitializationList,
40
+ // 无ID或taskId时初始条件配置
41
+ subTablePageInfo: pageDesign.subTablePageInfo,
42
+ // 列表分页信息,格式是:{列表编码: 每页显示多少条记录},表单页面中校验有分页的子表时提示使用,提示信息格式:第 {pageNum} 页第 {row} 行记录
43
+ customValidatorUuids: pageDesign.customEvents,
44
+ // 自定义组件启用了“自定义校验”开关的uuid集合
45
+ entity: {
46
+ data: {},
47
+ task: {},
48
+ request: getRequestObject(pageRequest),
49
+ //初始化request对象
50
+ page: {},
51
+ context: {},
52
+ system: {}
53
+ }
54
+ };
55
+ if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "link") {
56
+ pageContext.workflowCode = pageDesign.props.linkWorkflowCode;
57
+ } else if (pageDesign.props.activeWorkflow && pageDesign.props.workflowSource && pageDesign.props.workflowSource === "create") {
58
+ pageContext.workflowCode = pageDesign.props.createWorkflowCode;
59
+ }
60
+ if (pageDesign.variables) {
61
+ const pageObj = pageContext.entity.page;
62
+ for (const variable of pageDesign.variables) {
63
+ if (variable.name) {
64
+ if (variable.isArrayElement) {
65
+ pageObj[variable.name] = [];
66
+ } else {
67
+ pageObj[variable.name] = void 0;
68
+ }
69
+ }
70
+ }
71
+ }
72
+ Object.assign(pageContext, pageDesign);
73
+ pageContext.dimensions = getPageDimensions();
74
+ return pageContext;
75
+ }
76
+ function getPageDimensions() {
77
+ const winWidth = window.outerWidth;
78
+ if (!winWidth) {
79
+ return pageDesignTypes.PageDimensions.PC;
80
+ }
81
+ if (winWidth > 768) {
82
+ return pageDesignTypes.PageDimensions.PC;
83
+ } else if (winWidth > 414) {
84
+ return pageDesignTypes.PageDimensions.IPAD;
85
+ } else {
86
+ return pageDesignTypes.PageDimensions.PHONE;
87
+ }
88
+ }
89
+ function getRequestObject(pageRequest) {
90
+ const requestObj = {};
91
+ if (pageRequest) {
92
+ Object.assign(requestObj, pageRequest);
93
+ }
94
+ let url = decodeURI(window.location.href);
95
+ if (url && url.includes("?")) {
96
+ url = url.substring(url.lastIndexOf("?") + 1);
97
+ const strs = url.split("&");
98
+ for (const str of strs) {
99
+ const paramStrs = str.split("=");
100
+ requestObj[paramStrs[0]] = paramStrs.length > 1 ? paramStrs[1] : "";
101
+ }
102
+ }
103
+ const route = vueRouter.useRoute();
104
+ if (route) {
105
+ if (route.params) {
106
+ Object.assign(requestObj, route.params);
107
+ }
108
+ if (route.query) {
109
+ Object.assign(requestObj, route.query);
110
+ }
111
+ }
112
+ if (requestObj["_t_"])
113
+ ;
114
+ return requestObj;
115
+ }
116
+ function getFormModelFields(pageContext, formItemConfigure) {
117
+ if (!formItemConfigure) {
118
+ return ["temp"];
119
+ }
120
+ const entity = pageContext.entity;
121
+ const propsBase = formItemConfigure.props.base ? formItemConfigure.props.base : {};
122
+ let propName = propsBase.prop;
123
+ let fields = null;
124
+ if (!propName || !propName.startsWith("${")) {
125
+ fields = ["page", formItemConfigure.uuid];
126
+ } else {
127
+ propName = propName.substring(2, propName.length - 1);
128
+ fields = propName.split(".");
129
+ if (fields.length < 2) {
130
+ fields = [formItemConfigure.uuid];
131
+ }
132
+ }
133
+ if (entity.data.ID == void 0 && entity.data.ID == void 0) {
134
+ if (propsBase.defaultValue) {
135
+ let defaultValue = pageHelperUtil.formatVariableValue(pageContext, propsBase.defaultValue);
136
+ if (defaultValue != null && defaultValue != void 0) {
137
+ let isMultiple = false;
138
+ if (formItemConfigure.name == "checkbox") {
139
+ isMultiple = true;
140
+ } else if (formItemConfigure.name == "select") {
141
+ isMultiple = propsBase.multiple;
142
+ }
143
+ if (isMultiple) {
144
+ defaultValue = (defaultValue + "").split(",");
145
+ }
146
+ }
147
+ pageHelperUtil.setVariableValue(entity, fields, defaultValue);
148
+ }
149
+ }
150
+ return fields;
151
+ }
152
+ function getPermissionCodes(configure, pageContext) {
153
+ if (!pageContext || pageContext.isTest || !configure) {
154
+ return "";
155
+ }
156
+ const codes = [];
157
+ if (configure.autoPermissions) {
158
+ for (const p of configure.autoPermissions) {
159
+ codes.push(pageContext.code + "." + p.simpleCode);
160
+ }
161
+ }
162
+ if (configure.functionCodes) {
163
+ const sourceTypes = configure.sourceTypes ? configure.sourceTypes : [];
164
+ const functionCodes = configure.functionCodes;
165
+ for (let i = 0; i < functionCodes.length; i++) {
166
+ const functionCode = functionCodes[i];
167
+ const sourceType = i < sourceTypes.length ? sourceTypes[i] : "";
168
+ let newCode = "";
169
+ if (sourceType == "service") {
170
+ newCode = functionCode;
171
+ } else {
172
+ newCode = pageContext.code + "." + functionCode;
173
+ }
174
+ if (!codes.includes(newCode)) {
175
+ codes.push(newCode);
176
+ }
177
+ }
178
+ }
179
+ return codes.join(",");
180
+ }
181
+ function queryPageSuperGrids(pageDesign, pageContext, publishVersion) {
182
+ const tableRuntimes = pageDesign.tableRuntimes;
183
+ const additionalParamMap = pageContext.entity && pageContext.entity.request && Object.keys(pageContext.entity.request).length > 0 ? pageContext.entity.request : null;
184
+ let additionalParamMapJson;
185
+ const pageCode = pageContext.code;
186
+ if (additionalParamMap) {
187
+ additionalParamMapJson = JSON.stringify(additionalParamMap);
188
+ }
189
+ return http.post("/component/super-page-design/super-grids", {
190
+ tableRuntimes,
191
+ additionalParamMapJson,
192
+ pageCode,
193
+ publishVersion
194
+ });
195
+ }
196
+ exports.convertToPageContext = convertToPageContext;
197
+ exports.getFormModelFields = getFormModelFields;
198
+ exports.getPermissionCodes = getPermissionCodes;
199
+ exports.queryPageDesignByCode = queryPageDesignByCode;
200
+ exports.queryPageSuperGrids = queryPageSuperGrids;
@@ -0,0 +1,15 @@
1
+ export declare function getStoreInfo(pageCode: any, pageVersion: any, key: any): any;
2
+ export declare function setStoreInfo(pageCode: any, pageVersion: any, key: string, value: any): void;
3
+ /**
4
+ * 删除某属性
5
+ * @param {*} pageCode
6
+ * @param {*} key
7
+ */
8
+ export declare function deleteStoreInfo(pageCode: any, pageVersion: any, key: any): void;
9
+ /**
10
+ * 获得页面缓存的key
11
+ * @param pageCode
12
+ * @param pageVersion
13
+ * @returns
14
+ */
15
+ export declare function getPageStoreKey(pageCode: any, pageVersion: any): string;
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const store = require("./store.js");
4
+ function setStoreInfo(pageCode, pageVersion, key, value) {
5
+ const pageKey = getPageStoreKey(pageCode, pageVersion);
6
+ let pageCodeStoreInfo = store.get(pageKey);
7
+ if (!pageCodeStoreInfo) {
8
+ pageCodeStoreInfo = {};
9
+ store.set(pageKey, pageCodeStoreInfo);
10
+ }
11
+ pageCodeStoreInfo[key] = value;
12
+ }
13
+ function getPageStoreKey(pageCode, pageVersion) {
14
+ return pageCode + ":" + pageVersion;
15
+ }
16
+ exports.getPageStoreKey = getPageStoreKey;
17
+ exports.setStoreInfo = setStoreInfo;
@@ -0,0 +1,2 @@
1
+ declare const store: Map<any, any>;
2
+ export default store;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const store = /* @__PURE__ */ new Map();
3
+ module.exports = store;
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
+ const commonUtil = require("./common-util.js");
4
+ const http = require("agilebuilder-ui/src/utils/request");
5
+ const eventBus = require("./eventBus.js");
6
+ function getDataTypeMap(system, tableName) {
7
+ return new Promise((resolve, reject) => {
8
+ getDataTypeMapRequest(system, tableName).then((dataTypeMap) => {
9
+ resolve(dataTypeMap);
10
+ }).catch(() => {
11
+ reject(new Error("获得数据表:" + tableName + "的字段类型集合失败"));
12
+ });
13
+ });
14
+ }
15
+ function getDataTypeMapRequest(system, tableName) {
16
+ const baseUrl = commonUtil.getBaseUrl(system);
17
+ return http.get(baseUrl + "/dsc/commons/tables/" + tableName + "/data-types");
18
+ }
19
+ function popupToPage(params) {
20
+ eventBus.$emit(params.pageCode + "_open-dialog", params);
21
+ }
22
+ exports.getDataTypeMap = getDataTypeMap;
23
+ exports.getDataTypeMapRequest = getDataTypeMapRequest;
24
+ exports.popupToPage = popupToPage;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const buttonRuntime_vue_vue_type_script_setup_true_lang = require("./button-runtime.vue2.js");
3
+ module.exports = buttonRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const agilebuilderUi = require("agilebuilder-ui");
4
+ const eventUtil = require("../../../../utils/events/event-util.js");
5
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
6
+ __name: "button-runtime",
7
+ props: {
8
+ pageContext: {},
9
+ configure: {}
10
+ },
11
+ setup(__props) {
12
+ const props = __props;
13
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
14
+ const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
15
+ const runtimeStyle = runtimeInfo.style;
16
+ const runtimeClass = runtimeInfo.class;
17
+ return (_ctx, _cache) => {
18
+ const _component_el_button = vue.resolveComponent("el-button");
19
+ return vue.openBlock(), vue.createBlock(_component_el_button, {
20
+ disabled: vue.unref(designProperty).state === "disabled",
21
+ class: vue.normalizeClass(vue.unref(runtimeClass)),
22
+ style: vue.normalizeStyle(vue.unref(runtimeStyle)),
23
+ type: vue.unref(designProperty).type,
24
+ size: vue.unref(designProperty).size,
25
+ text: vue.unref(designProperty).text,
26
+ round: vue.unref(designProperty).round,
27
+ plain: vue.unref(designProperty).plain,
28
+ onClick: _cache[0] || (_cache[0] = ($event) => vue.unref(eventUtil.handleEvent)($event, _ctx.pageContext, _ctx.configure, "click"))
29
+ }, {
30
+ default: vue.withCtx(() => [
31
+ vue.unref(designProperty).title && vue.unref(designProperty).iconPosition == "right" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
32
+ vue.createTextVNode(vue.toDisplayString(vue.unref(designProperty).title) + " ", 1),
33
+ vue.unref(designProperty).iconValue ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
34
+ vue.createTextVNode("   ")
35
+ ], 64)) : vue.createCommentVNode("", true)
36
+ ], 64)) : vue.createCommentVNode("", true),
37
+ vue.unref(designProperty).iconType && vue.unref(designProperty).iconValue ? (vue.openBlock(), vue.createBlock(vue.unref(agilebuilderUi.SuperIcon), {
38
+ key: 1,
39
+ iconType: vue.unref(designProperty).iconType,
40
+ iconValue: vue.unref(designProperty).iconValue
41
+ }, null, 8, ["iconType", "iconValue"])) : vue.createCommentVNode("", true),
42
+ vue.unref(designProperty).title && vue.unref(designProperty).iconPosition != "right" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 2 }, [
43
+ vue.unref(designProperty).iconValue ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
44
+ vue.createTextVNode("   ")
45
+ ], 64)) : vue.createCommentVNode("", true),
46
+ vue.createTextVNode(" " + vue.toDisplayString(vue.unref(designProperty).title), 1)
47
+ ], 64)) : vue.createCommentVNode("", true)
48
+ ]),
49
+ _: 1
50
+ }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain"]);
51
+ };
52
+ }
53
+ });
54
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const buttongroupRuntime_vue_vue_type_script_setup_true_lang = require("./buttongroup-runtime.vue2.js");
3
+ module.exports = buttongroupRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const objectRender_vue_vue_type_script_setup_true_lang = require("../../object-render.vue.js");
4
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
5
+ __name: "buttongroup-runtime",
6
+ props: {
7
+ pageContext: {},
8
+ configure: {}
9
+ },
10
+ setup(__props) {
11
+ const props = __props;
12
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
13
+ const runtimeStyle = runtimeInfo.style;
14
+ const runtimeClass = runtimeInfo.class;
15
+ return (_ctx, _cache) => {
16
+ const _component_el_button_group = vue.resolveComponent("el-button-group");
17
+ return vue.openBlock(), vue.createBlock(_component_el_button_group, {
18
+ class: vue.normalizeClass(vue.unref(runtimeClass)),
19
+ style: vue.normalizeStyle(vue.unref(runtimeStyle))
20
+ }, {
21
+ default: vue.withCtx(() => [
22
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.configure.items, (element, itemIndex) => {
23
+ return vue.openBlock(), vue.createBlock(objectRender_vue_vue_type_script_setup_true_lang, {
24
+ key: element.uuid,
25
+ pageContext: _ctx.pageContext,
26
+ configure: element
27
+ }, null, 8, ["pageContext", "configure"]);
28
+ }), 128))
29
+ ]),
30
+ _: 1
31
+ }, 8, ["class", "style"]);
32
+ };
33
+ }
34
+ });
35
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const dropdownRuntime_vue_vue_type_script_setup_true_lang = require("./dropdown-runtime.vue2.js");
3
+ module.exports = dropdownRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,110 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const iconsVue = require("@element-plus/icons-vue");
4
+ const pageHelperUtil = require("../../../../utils/page-helper-util.js");
5
+ const _hoisted_1 = { key: 1 };
6
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
7
+ __name: "dropdown-runtime",
8
+ props: {
9
+ pageContext: {},
10
+ configure: {}
11
+ },
12
+ setup(__props) {
13
+ const props = __props;
14
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
15
+ const runtimeStyle = runtimeInfo.style;
16
+ const runtimeClass = runtimeInfo.class;
17
+ const designProperty = runtimeInfo.props ? runtimeInfo.props : {};
18
+ let listOptions = null;
19
+ const dataOrigin = props.configure.props && props.configure.props.dataOrigin ? props.configure.props.dataOrigin : {};
20
+ const valueType = dataOrigin.optionValueSetType;
21
+ if (valueType == "variable") {
22
+ listOptions = vue.computed(() => {
23
+ let options;
24
+ const menuValues = pageHelperUtil.formatVariableValue(props.pageContext, designProperty.menuField);
25
+ if (menuValues && Array.isArray(menuValues)) {
26
+ options = menuValues;
27
+ for (let i = 0; i < options.length; i++) {
28
+ const option = options[i];
29
+ if (!option.label) {
30
+ option.label = i + 1;
31
+ }
32
+ }
33
+ } else {
34
+ const strs = (menuValues ? menuValues + "" : "").trim().split(",");
35
+ options = [];
36
+ for (let str of strs) {
37
+ options.push({
38
+ value: str,
39
+ label: str
40
+ });
41
+ }
42
+ }
43
+ return options;
44
+ });
45
+ } else {
46
+ listOptions = vue.ref(designProperty.options ? designProperty.options : []);
47
+ }
48
+ return (_ctx, _cache) => {
49
+ const _component_el_button = vue.resolveComponent("el-button");
50
+ const _component_el_icon = vue.resolveComponent("el-icon");
51
+ const _component_el_text = vue.resolveComponent("el-text");
52
+ const _component_el_dropdown_item = vue.resolveComponent("el-dropdown-item");
53
+ const _component_el_dropdown_menu = vue.resolveComponent("el-dropdown-menu");
54
+ const _component_el_dropdown = vue.resolveComponent("el-dropdown");
55
+ return vue.openBlock(), vue.createBlock(_component_el_dropdown, {
56
+ class: vue.normalizeClass(vue.unref(runtimeClass)),
57
+ style: vue.normalizeStyle(vue.unref(runtimeStyle)),
58
+ placement: vue.unref(designProperty).placement,
59
+ "split-button": vue.unref(designProperty).splitButton,
60
+ disabled: vue.unref(designProperty).state === "disabled",
61
+ type: vue.unref(designProperty).buttonType,
62
+ size: vue.unref(designProperty).size,
63
+ trigger: vue.unref(designProperty).trigger
64
+ }, {
65
+ dropdown: vue.withCtx(() => [
66
+ vue.createVNode(_component_el_dropdown_menu, null, {
67
+ default: vue.withCtx(() => [
68
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(listOptions), (item, index) => {
69
+ return vue.openBlock(), vue.createBlock(_component_el_dropdown_item, { key: item }, {
70
+ default: vue.withCtx(() => [
71
+ vue.createTextVNode(vue.toDisplayString(item.label), 1)
72
+ ]),
73
+ _: 2
74
+ }, 1024);
75
+ }), 128))
76
+ ]),
77
+ _: 1
78
+ })
79
+ ]),
80
+ default: vue.withCtx(() => [
81
+ vue.unref(designProperty).triggerElement === "button" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
82
+ !vue.unref(designProperty).splitButton ? (vue.openBlock(), vue.createBlock(_component_el_button, {
83
+ key: 0,
84
+ size: vue.unref(designProperty).size,
85
+ type: vue.unref(designProperty).buttonType
86
+ }, {
87
+ default: vue.withCtx(() => [
88
+ vue.createTextVNode(vue.toDisplayString(vue.unref(designProperty).title), 1)
89
+ ]),
90
+ _: 1
91
+ }, 8, ["size", "type"])) : (vue.openBlock(), vue.createElementBlock("span", _hoisted_1, vue.toDisplayString(vue.unref(designProperty).title), 1))
92
+ ], 64)) : (vue.openBlock(), vue.createBlock(_component_el_text, { key: 1 }, {
93
+ default: vue.withCtx(() => [
94
+ vue.createTextVNode(vue.toDisplayString(vue.unref(designProperty).title) + " ", 1),
95
+ vue.createVNode(_component_el_icon, null, {
96
+ default: vue.withCtx(() => [
97
+ vue.createVNode(vue.unref(iconsVue.ArrowDown))
98
+ ]),
99
+ _: 1
100
+ })
101
+ ]),
102
+ _: 1
103
+ }))
104
+ ]),
105
+ _: 1
106
+ }, 8, ["class", "style", "placement", "split-button", "disabled", "type", "size", "trigger"]);
107
+ };
108
+ }
109
+ });
110
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const columnLineRuntime_vue_vue_type_script_setup_true_lang = require("./column-line-runtime.vue2.js");
3
+ module.exports = columnLineRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const chartUtil = require("../../../../utils/charts/chart-util.js");
4
+ const core = require("echarts/core");
5
+ const renderers = require("echarts/renderers");
6
+ const charts = require("echarts/charts");
7
+ const components = require("echarts/components");
8
+ const VChart = require("vue-echarts");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
+ __name: "column-line-runtime",
11
+ props: {
12
+ pageContext: {},
13
+ configure: {}
14
+ },
15
+ setup(__props) {
16
+ core.use([
17
+ renderers.CanvasRenderer,
18
+ charts.LineChart,
19
+ components.GridComponent,
20
+ components.LegendComponent,
21
+ components.TitleComponent,
22
+ components.TooltipComponent,
23
+ charts.BarChart,
24
+ components.ToolboxComponent,
25
+ components.DataZoomComponent
26
+ ]);
27
+ const props = __props;
28
+ const thisRef = vue.ref(null);
29
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
30
+ const runtimeStyle = runtimeInfo.style;
31
+ const runtimeClass = runtimeInfo.class;
32
+ const chartOption = runtimeInfo.chartOption;
33
+ console.log("chartOption-runtime", chartOption);
34
+ const configureProps = props.configure.props ? props.configure.props : {};
35
+ const customTheme = chartUtil.getCustomTheme(configureProps.customTheme);
36
+ return (_ctx, _cache) => {
37
+ return vue.openBlock(), vue.createElementBlock("div", {
38
+ style: vue.normalizeStyle(vue.unref(runtimeStyle)),
39
+ class: vue.normalizeClass([vue.unref(runtimeClass), "amb-widget-chart"]),
40
+ ref_key: "thisRef",
41
+ ref: thisRef
42
+ }, [
43
+ vue.createVNode(vue.unref(VChart), {
44
+ ref: "chartRef",
45
+ theme: vue.unref(customTheme),
46
+ option: vue.unref(chartOption),
47
+ autoresize: ""
48
+ }, null, 8, ["theme", "option"])
49
+ ], 6);
50
+ };
51
+ }
52
+ });
53
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const gaugeRuntime_vue_vue_type_script_setup_true_lang = require("./gauge-runtime.vue2.js");
3
+ module.exports = gaugeRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,49 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const chartUtil = require("../../../../utils/charts/chart-util.js");
4
+ const core = require("echarts/core");
5
+ const renderers = require("echarts/renderers");
6
+ const charts = require("echarts/charts");
7
+ const components = require("echarts/components");
8
+ const VChart = require("vue-echarts");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
+ __name: "gauge-runtime",
11
+ props: {
12
+ pageContext: {},
13
+ configure: {}
14
+ },
15
+ setup(__props) {
16
+ core.use([
17
+ renderers.CanvasRenderer,
18
+ charts.GaugeChart,
19
+ components.GridComponent,
20
+ components.TitleComponent,
21
+ components.TooltipComponent,
22
+ components.ToolboxComponent
23
+ ]);
24
+ const props = __props;
25
+ const thisRef = vue.ref(null);
26
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
27
+ const runtimeStyle = runtimeInfo.style;
28
+ const runtimeClass = runtimeInfo.class;
29
+ const chartOption = runtimeInfo.chartOption;
30
+ const configureProps = props.configure.props ? props.configure.props : {};
31
+ const customTheme = chartUtil.getCustomTheme(configureProps.customTheme);
32
+ return (_ctx, _cache) => {
33
+ return vue.openBlock(), vue.createElementBlock("div", {
34
+ style: vue.normalizeStyle(vue.unref(runtimeStyle)),
35
+ class: vue.normalizeClass([vue.unref(runtimeClass), "amb-widget-chart"]),
36
+ ref_key: "thisRef",
37
+ ref: thisRef
38
+ }, [
39
+ vue.createVNode(vue.unref(VChart), {
40
+ ref: "chartRef",
41
+ theme: vue.unref(customTheme),
42
+ option: vue.unref(chartOption),
43
+ autoresize: ""
44
+ }, null, 8, ["theme", "option"])
45
+ ], 6);
46
+ };
47
+ }
48
+ });
49
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const pieRuntime_vue_vue_type_script_setup_true_lang = require("./pie-runtime.vue2.js");
3
+ module.exports = pieRuntime_vue_vue_type_script_setup_true_lang;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ const vue = require("vue");
3
+ const chartUtil = require("../../../../utils/charts/chart-util.js");
4
+ const core = require("echarts/core");
5
+ const renderers = require("echarts/renderers");
6
+ const charts = require("echarts/charts");
7
+ const components = require("echarts/components");
8
+ const VChart = require("vue-echarts");
9
+ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
10
+ __name: "pie-runtime",
11
+ props: {
12
+ pageContext: {},
13
+ configure: {}
14
+ },
15
+ setup(__props) {
16
+ core.use([
17
+ renderers.CanvasRenderer,
18
+ charts.PieChart,
19
+ components.GridComponent,
20
+ components.LegendComponent,
21
+ components.TitleComponent,
22
+ components.TooltipComponent,
23
+ components.ToolboxComponent
24
+ ]);
25
+ const props = __props;
26
+ const thisRef = vue.ref(null);
27
+ const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
28
+ const runtimeStyle = runtimeInfo.style;
29
+ const runtimeClass = runtimeInfo.class;
30
+ const chartOption = runtimeInfo.chartOption;
31
+ const configureProps = props.configure.props ? props.configure.props : {};
32
+ const customTheme = chartUtil.getCustomTheme(configureProps.customTheme);
33
+ return (_ctx, _cache) => {
34
+ return vue.openBlock(), vue.createElementBlock("div", {
35
+ style: vue.normalizeStyle(vue.unref(runtimeStyle)),
36
+ class: vue.normalizeClass([vue.unref(runtimeClass), "amb-widget-chart"]),
37
+ ref_key: "thisRef",
38
+ ref: thisRef
39
+ }, [
40
+ vue.createVNode(vue.unref(VChart), {
41
+ ref: "chartRef",
42
+ theme: vue.unref(customTheme),
43
+ option: vue.unref(chartOption),
44
+ autoresize: ""
45
+ }, null, 8, ["theme", "option"])
46
+ ], 6);
47
+ };
48
+ }
49
+ });
50
+ module.exports = _sfc_main;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ const radarRuntime_vue_vue_type_script_setup_true_lang = require("./radar-runtime.vue2.js");
3
+ module.exports = radarRuntime_vue_vue_type_script_setup_true_lang;