super-page-runtime 2.0.19 → 2.0.22

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 (189) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +16 -14
  2. package/dist/es/components/runtime/utils/api/page-expose-util.d.ts +1 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +202 -0
  4. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  5. package/dist/es/components/runtime/utils/common-util.js +7 -11
  6. package/dist/es/components/runtime/utils/events/event-util.js +9 -14
  7. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
  8. package/dist/es/components/runtime/utils/events/standard-event.js +124 -110
  9. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  10. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  11. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  12. package/dist/es/components/runtime/utils/page-helper-util.js +4 -4
  13. package/dist/es/components/runtime/utils/page-init-util.js +5 -3
  14. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  15. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  16. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  17. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  18. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  19. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  20. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -13
  21. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +2 -1
  22. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  23. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  24. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  25. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  26. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  27. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  28. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  29. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  30. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  31. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +91 -39
  32. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  33. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  34. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  35. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  36. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +2 -2
  37. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  38. package/dist/es/components/runtime/views/super-page.vue.js +2 -2
  39. package/package.json +3 -2
  40. package/dist/lib/_virtual/AttributeMap.js +0 -4
  41. package/dist/lib/_virtual/Delta.js +0 -4
  42. package/dist/lib/_virtual/Op.js +0 -4
  43. package/dist/lib/_virtual/OpIterator.js +0 -4
  44. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  45. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  46. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  47. package/dist/lib/_virtual/dayjs.min.js +0 -4
  48. package/dist/lib/_virtual/index.js +0 -4
  49. package/dist/lib/_virtual/index2.js +0 -4
  50. package/dist/lib/_virtual/index3.js +0 -4
  51. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  52. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  53. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  54. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  55. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  56. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  57. package/dist/lib/components/runtime/index.d.ts +0 -4
  58. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  59. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  60. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  61. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  62. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  63. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  64. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  65. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  66. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  67. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  68. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  69. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  70. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  71. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  72. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  73. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  74. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  75. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  76. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  77. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  78. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  79. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  80. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  81. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  82. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  83. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  84. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  85. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  86. package/dist/lib/components/runtime/utils/store.js +0 -3
  87. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  88. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  89. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  90. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  91. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  92. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  93. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  94. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  96. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  97. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  98. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  99. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  100. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  101. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  102. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  103. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  104. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  105. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  106. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  107. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  108. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  110. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  111. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  112. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  114. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  115. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  116. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  117. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  118. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  120. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  121. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  123. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  124. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  125. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  127. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  129. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  131. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  133. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  135. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  136. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  137. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  138. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  139. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  141. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  142. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  143. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  144. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  146. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  147. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  148. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  149. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  150. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  152. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  154. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  156. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  158. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  160. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  162. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  164. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  166. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  168. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  170. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  172. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  174. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  176. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  177. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  178. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  180. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  181. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  182. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  183. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  184. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  185. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  186. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  187. package/dist/lib/favicon.ico +0 -0
  188. package/dist/lib/index.d.ts +0 -8
  189. package/dist/lib/index.js +0 -15
@@ -1,110 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const index = require("../../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js");
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, index2) => {
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(index.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;
@@ -1,3 +0,0 @@
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;
@@ -1,432 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const chartUtil = require("../../../../utils/charts/chart-util.js");
4
- const commonUtil = require("../../../../utils/common-util.js");
5
- const pageHelperUtil = require("../../../../utils/page-helper-util.js");
6
- const commonChartHeader_vue_vue_type_script_setup_true_lang = require("../common/common-chart-header.vue.js");
7
- const index_esm_min = require("../../../../../../node_modules/.pnpm/vue-echarts@6.6.9_echarts@5.5.0_vue@3.4.21/node_modules/vue-echarts/dist/index.esm.min.js");
8
- const extension = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/extension.js");
9
- const installCanvasRenderer = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/renderer/installCanvasRenderer.js");
10
- const install = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/line/install.js");
11
- const install$1 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/grid/install.js");
12
- const install$2 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/legend/install.js");
13
- const install$3 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/title/install.js");
14
- const install$4 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/tooltip/install.js");
15
- const install$5 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/chart/bar/install.js");
16
- const install$6 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/toolbox/install.js");
17
- const install$7 = require("../../../../../../node_modules/.pnpm/echarts@5.5.0/node_modules/echarts/lib/component/dataZoom/install.js");
18
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
19
- __name: "column-line-runtime",
20
- props: {
21
- pageContext: {},
22
- configure: {}
23
- },
24
- setup(__props, { expose: __expose }) {
25
- extension.use([
26
- installCanvasRenderer.install,
27
- install.install,
28
- install$1.install,
29
- install$2.install,
30
- install$3.install,
31
- install$4.install,
32
- install$5.install,
33
- install$6.install,
34
- install$7.install
35
- ]);
36
- const props = __props;
37
- const thisRef = Vue.ref(null);
38
- const chartRef = Vue.ref(null);
39
- const headerRef = Vue.ref(null);
40
- const enableDrill = props.configure.props ? props.configure.props.enableDrill : null;
41
- const runtimeInfo = props.configure.runtime ? props.configure.runtime : {};
42
- const runtimeStyle = runtimeInfo.style;
43
- const runtimeClass = runtimeInfo.class;
44
- const dataConfig = runtimeInfo.dataConfig;
45
- const headerInfo = runtimeInfo.headerInfo ? runtimeInfo.headerInfo : {};
46
- let cacheDatas = null;
47
- const chartOption = runtimeInfo.chartOption;
48
- const defaultSeries = chartOption.series;
49
- if (defaultSeries && defaultSeries.length > 0) {
50
- for (let s of defaultSeries) {
51
- s.data = [];
52
- }
53
- }
54
- const defaultXaxis = chartOption.xAxis;
55
- if (defaultXaxis && defaultXaxis.length > 0 && defaultXaxis[0].data) {
56
- defaultXaxis[0].data = [];
57
- }
58
- const defaultYaxis = chartOption.yAxis;
59
- if (defaultYaxis) {
60
- for (let yAxis of defaultYaxis) {
61
- if (yAxis.data) {
62
- yAxis.data = [];
63
- }
64
- }
65
- }
66
- console.log("chartOption", chartOption);
67
- const configureProps = props.configure.props ? props.configure.props : {};
68
- const customTheme = chartUtil.getCustomTheme(configureProps.customTheme);
69
- function updateChartDatas(resultData) {
70
- if (!resultData) {
71
- resultData = [];
72
- }
73
- resultData = resultData.length > 0 ? resultData[0] : {};
74
- if (!resultData) {
75
- resultData = {};
76
- }
77
- if (resultData.hasRender) {
78
- resultData.hasRender = true;
79
- console.log("重复更新!", resultData);
80
- return;
81
- }
82
- resultData.hasRender = true;
83
- updateChartOption(resultData);
84
- }
85
- Vue.onMounted(() => {
86
- const resultData = pageHelperUtil.getChartDatasFromPage(props.pageContext, props.configure);
87
- if (resultData) {
88
- updateChartDatas(resultData);
89
- }
90
- if (enableDrill && chartRef.value) {
91
- chartRef.value.chart.on("click", function(params) {
92
- if (headerRef.value && headerRef.value.drill) {
93
- headerRef.value.drill(params, cacheDatas);
94
- }
95
- });
96
- }
97
- });
98
- function onDrillEnd(params) {
99
- }
100
- let hisGroupValue = headerInfo.groupValue;
101
- Vue.watch(headerInfo, () => {
102
- if (hisGroupValue == headerInfo.groupValue) {
103
- return;
104
- }
105
- hisGroupValue = headerInfo.groupValue;
106
- refresh();
107
- });
108
- function refresh() {
109
- if (!dataConfig) {
110
- console.log("无数据源配置,不需要查询!");
111
- return;
112
- }
113
- dataConfig.services[0].groupValue = headerInfo.groupValue;
114
- pageHelperUtil.updateChartDatasources(props.pageContext, [dataConfig], headerInfo.drillParams);
115
- }
116
- function updateChartOption(resultData) {
117
- if (!resultData || !resultData.result) {
118
- return;
119
- }
120
- const result = resultData && resultData.result ? resultData.result : {};
121
- const groupValue = resultData && resultData.groupValue ? resultData.groupValue : [];
122
- const dataSetField = props.configure.serviceDataField;
123
- let datas = null;
124
- if (dataSetField) {
125
- datas = result[dataSetField];
126
- } else {
127
- if (result) {
128
- if (Array.isArray(result)) {
129
- datas = result;
130
- } else {
131
- datas = [result];
132
- }
133
- }
134
- }
135
- if (!datas) {
136
- datas = [];
137
- }
138
- let confGroups = props.configure.props ? props.configure.props.groups : null;
139
- if (!confGroups) {
140
- confGroups = [];
141
- }
142
- const groupMap = {};
143
- const groupFields = [];
144
- for (let g of confGroups) {
145
- groupMap[g.group] = g.target;
146
- if (g.target && !groupFields.includes(g.target)) {
147
- groupFields.push(g.target);
148
- }
149
- }
150
- let mulGroupShow = props.configure.props ? props.configure.props.mulGroupShow : "";
151
- mulGroupShow = mulGroupShow == "break" ? "<br/>" : " ";
152
- const xFieldName = "__x";
153
- for (let d of datas) {
154
- if (!d) {
155
- continue;
156
- }
157
- const xValues2 = [];
158
- for (let g of groupValue) {
159
- const fieldName = groupMap[g];
160
- const value = pageHelperUtil.getValueFromSource(d, fieldName, void 0);
161
- if (value) {
162
- xValues2.push(value);
163
- }
164
- }
165
- const xValue = xValues2.join(mulGroupShow);
166
- d[xFieldName] = xValue;
167
- }
168
- const itemConfs = props.configure.items ? props.configure.items : [];
169
- const serieValues = [];
170
- const serieValueMap = {};
171
- const dynamicFileds = [];
172
- const dynamicValueField = {};
173
- const allValueFields = [];
174
- for (let item of itemConfs) {
175
- const itemProps = item.props ? item.props : {};
176
- const sourceType = itemProps.yaxisSource;
177
- const yaxisField = itemProps.yaxisField;
178
- let serieValue = null;
179
- if (yaxisField && (!sourceType || sourceType == "variable")) {
180
- serieValue = {
181
- uuid: item.uuid,
182
- type: "variable",
183
- field: yaxisField,
184
- data: [],
185
- dynamicDatas: []
186
- //动态系列数据
187
- };
188
- if (yaxisField && !allValueFields.includes(yaxisField)) {
189
- allValueFields.push(yaxisField);
190
- }
191
- } else {
192
- serieValue = {
193
- uuid: item.uuid,
194
- type: "fixed",
195
- field: itemProps.yaxisFix,
196
- data: [],
197
- dynamicDatas: []
198
- //动态系列数据
199
- };
200
- }
201
- if (serieValue != null) {
202
- serieValues.push(serieValue);
203
- serieValueMap[item.uuid] = serieValue;
204
- }
205
- if (itemProps.dynamicSeriesField && // !groupFields.includes(itemProps.dynamicSeriesField) &&
206
- !dynamicFileds.includes(itemProps.dynamicSeriesField) && serieValue && yaxisField) {
207
- serieValue.dynamicField = itemProps.dynamicSeriesField;
208
- serieValue.dynamicSeriesTitle = itemProps.dynamicSeriesTitle;
209
- serieValue.dynamicShowStack = itemProps.dynamicShowStack;
210
- dynamicFileds.push(itemProps.dynamicSeriesField);
211
- dynamicValueField[itemProps.dynamicSeriesField] = yaxisField;
212
- }
213
- }
214
- const dynamicLabelMap = {};
215
- if (dynamicFileds.length > 0) {
216
- const newDatas = [];
217
- const dataMap = {};
218
- for (let d of datas) {
219
- if (!d) {
220
- continue;
221
- }
222
- for (let valueField of allValueFields) {
223
- const groupValue2 = d[xFieldName];
224
- let newData = dataMap[groupValue2];
225
- if (!newData) {
226
- newData = {};
227
- for (let gField of groupFields) {
228
- newData[gField] = d[gField];
229
- }
230
- newData[xFieldName] = d[xFieldName];
231
- dataMap[groupValue2] = newData;
232
- newDatas.push(newData);
233
- }
234
- let newValue = pageHelperUtil.getValueFromSource(d, valueField, void 0);
235
- if (!isNaN(newValue)) {
236
- const hisValue = newData[valueField];
237
- if (!isNaN) {
238
- newValue += hisValue;
239
- }
240
- newData[valueField] = newValue;
241
- }
242
- }
243
- }
244
- for (let dynamicField of dynamicFileds) {
245
- const dynamicLabels = [];
246
- for (let d of datas) {
247
- if (!d) {
248
- continue;
249
- }
250
- const groupValue2 = d[xFieldName];
251
- let newData = dataMap[groupValue2];
252
- if (!newData) {
253
- continue;
254
- }
255
- let dynamicLabel = pageHelperUtil.getValueFromSource(d, dynamicField, void 0);
256
- dynamicLabel = dynamicLabel == null || dynamicLabel == void 0 ? "" : dynamicLabel;
257
- if (!dynamicLabels.includes(dynamicLabel)) {
258
- dynamicLabels.push(dynamicLabel);
259
- }
260
- const valueField = dynamicValueField[dynamicField];
261
- let newValue = pageHelperUtil.getValueFromSource(d, valueField, void 0);
262
- if (!isNaN(newValue)) {
263
- const hisValue = newData[dynamicLabel];
264
- if (!isNaN) {
265
- newValue += hisValue;
266
- }
267
- newData[dynamicLabel] = newValue;
268
- }
269
- }
270
- dynamicLabelMap[dynamicField] = dynamicLabels;
271
- }
272
- datas = newDatas;
273
- }
274
- sortDatas(datas);
275
- const xValues = [];
276
- for (let data of datas) {
277
- if (!data) {
278
- continue;
279
- }
280
- xValues.push(data[xFieldName]);
281
- for (let item of serieValues) {
282
- let serieData = item.data;
283
- const dynamicDatas = item.dynamicDatas;
284
- if (item.dynamicField) {
285
- let dynamicLabels = dynamicLabelMap[item.dynamicField];
286
- dynamicLabels = dynamicLabels ? dynamicLabels : [];
287
- for (let i = 0; i < dynamicLabels.length; i++) {
288
- if (i >= dynamicDatas.length) {
289
- dynamicDatas.push([]);
290
- }
291
- serieData = dynamicDatas[i];
292
- const fieldName = dynamicLabels[i];
293
- const value = pageHelperUtil.getValueFromSource(data, fieldName, void 0);
294
- serieData.push(value);
295
- }
296
- } else if (item.type == "fixed") {
297
- serieData.push(item.field);
298
- } else if (item.type == "variable") {
299
- const value = pageHelperUtil.getValueFromSource(data, item.field, void 0);
300
- serieData.push(value);
301
- } else {
302
- serieData.push(void 0);
303
- }
304
- }
305
- }
306
- const tempSeries = commonUtil.deepCopy(defaultSeries == null ? [] : defaultSeries);
307
- const newSeries = [];
308
- for (let serie of tempSeries) {
309
- const serieValue = serieValueMap[serie.uuid];
310
- if (serieValue.dynamicField) {
311
- let dynamicLabels = dynamicLabelMap[serieValue.dynamicField];
312
- dynamicLabels = dynamicLabels ? dynamicLabels : [];
313
- const dynamicDatas = serieValue.dynamicDatas ? serieValue.dynamicDatas : [];
314
- for (let i = 0; i < dynamicLabels.length; i++) {
315
- let label = dynamicLabels[i];
316
- const newSerie = commonUtil.deepCopy(serie);
317
- if (serieValue.dynamicSeriesTitle) {
318
- const dynamicSeriesTitle = serieValue.dynamicSeriesTitle.replace("${name}", label);
319
- newSerie.name = pageHelperUtil.formatVariableValue(props.pageContext, dynamicSeriesTitle);
320
- } else {
321
- newSerie.name = label;
322
- }
323
- newSerie.data = i < dynamicDatas.length ? dynamicDatas[i] : [];
324
- if (serie.type == "bar" && serieValue.dynamicShowStack) {
325
- newSerie.stack = serie.uuid;
326
- }
327
- newSeries.push(newSerie);
328
- }
329
- } else {
330
- serie.data = serieValue ? serieValue.data : [];
331
- newSeries.push(serie);
332
- }
333
- }
334
- chartOption.series = newSeries;
335
- if (chartOption.isBar) {
336
- if (defaultYaxis) {
337
- for (let tempYaxis of defaultYaxis) {
338
- tempYaxis.data = xValues;
339
- }
340
- }
341
- chartOption.xAxis = defaultXaxis;
342
- chartOption.yAxis = defaultYaxis;
343
- } else {
344
- if (defaultXaxis && defaultXaxis.length > 0) {
345
- defaultXaxis[0].data = xValues;
346
- }
347
- chartOption.xAxis = defaultXaxis;
348
- chartOption.yAxis = defaultYaxis;
349
- }
350
- cacheDatas = datas;
351
- console.log("chartOption", chartOption);
352
- }
353
- function sortDatas(datas) {
354
- const itemConfs = props.configure.items ? props.configure.items : [];
355
- let orderByTarget = props.configure.props ? props.configure.props.orderByTarget : "";
356
- let orderField = null;
357
- if (orderByTarget == "x" || orderByTarget == "X") {
358
- orderField = "__x";
359
- } else if (orderByTarget) {
360
- for (let item of itemConfs) {
361
- if (item.uuid == orderByTarget) {
362
- const itemProps = item.props ? item.props : {};
363
- const sourceType = itemProps.yaxisSource;
364
- const yaxisField = itemProps.yaxisField;
365
- if (yaxisField && (!sourceType || sourceType == "variable")) {
366
- orderField = yaxisField;
367
- break;
368
- }
369
- }
370
- }
371
- }
372
- if (!orderField) {
373
- return;
374
- }
375
- let orderSource = props.configure.props ? props.configure.props.orderSource : "";
376
- let orderValue = props.configure.props ? props.configure.props.orderFix : "";
377
- if (orderSource == "variable") {
378
- let orderVariable = props.configure.props ? props.configure.props.orderVariable : "";
379
- orderValue = pageHelperUtil.formatVariableValue(props.pageContext, orderVariable);
380
- }
381
- orderValue = orderValue == "desc" || orderValue == "DESC" ? "desc" : "asc";
382
- let maxLen = datas.length;
383
- for (let i = 0; i < maxLen - 1; i++) {
384
- let vali = pageHelperUtil.getValueFromSource(datas[i], orderField, void 0);
385
- for (let j = i + 1; j < maxLen; j++) {
386
- let valj = pageHelperUtil.getValueFromSource(datas[j], orderField, void 0);
387
- let isSwap = false;
388
- if ("desc" == orderValue) {
389
- if (vali < valj) {
390
- isSwap = true;
391
- }
392
- } else {
393
- if (vali > valj) {
394
- isSwap = true;
395
- }
396
- }
397
- if (isSwap) {
398
- [datas[i], datas[j]] = [datas[j], datas[i]];
399
- }
400
- }
401
- }
402
- }
403
- __expose({
404
- updateChartDatas
405
- });
406
- return (_ctx, _cache) => {
407
- return Vue.openBlock(), Vue.createElementBlock("div", {
408
- style: Vue.normalizeStyle(Vue.unref(runtimeStyle)),
409
- class: Vue.normalizeClass([Vue.unref(runtimeClass), "amb-widget-chart"]),
410
- ref_key: "thisRef",
411
- ref: thisRef
412
- }, [
413
- Vue.withDirectives(Vue.createVNode(commonChartHeader_vue_vue_type_script_setup_true_lang, {
414
- ref_key: "headerRef",
415
- ref: headerRef,
416
- headerInfo: Vue.unref(headerInfo),
417
- onDrillEnd
418
- }, null, 8, ["headerInfo"]), [
419
- [Vue.vShow, Vue.unref(headerInfo).showHeader]
420
- ]),
421
- Vue.createVNode(Vue.unref(index_esm_min.default), {
422
- ref_key: "chartRef",
423
- ref: chartRef,
424
- theme: Vue.unref(customTheme),
425
- option: Vue.unref(chartOption),
426
- autoresize: ""
427
- }, null, 8, ["theme", "option"])
428
- ], 6);
429
- };
430
- }
431
- });
432
- module.exports = _sfc_main;
@@ -1,43 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const index = require("../../../../../../node_modules/.pnpm/@element-plus_icons-vue@2.3.1_vue@3.4.21/node_modules/@element-plus/icons-vue/dist/index.js");
4
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
5
- __name: "common-chart-header-breadcrumb",
6
- props: {
7
- headerInfo: {
8
- type: Object,
9
- required: true
10
- }
11
- },
12
- emits: ["close-drill"],
13
- setup(__props, { emit: __emit }) {
14
- const $emits = __emit;
15
- function closeDrill(drillIndex) {
16
- $emits("close-drill", drillIndex);
17
- }
18
- return (_ctx, _cache) => {
19
- const _component_el_tag = Vue.resolveComponent("el-tag");
20
- const _component_el_breadcrumb = Vue.resolveComponent("el-breadcrumb");
21
- return Vue.openBlock(), Vue.createBlock(_component_el_breadcrumb, { "separator-icon": Vue.unref(index.ArrowRight) }, {
22
- default: Vue.withCtx(() => [
23
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.drillOptions, (tag, index2) => {
24
- return Vue.openBlock(), Vue.createBlock(_component_el_tag, {
25
- key: tag.name,
26
- closable: "",
27
- type: "success",
28
- style: { "margin-left": "4px" },
29
- onClose: ($event) => closeDrill(index2)
30
- }, {
31
- default: Vue.withCtx(() => [
32
- Vue.createTextVNode(Vue.toDisplayString(tag.label), 1)
33
- ]),
34
- _: 2
35
- }, 1032, ["onClose"]);
36
- }), 128))
37
- ]),
38
- _: 1
39
- }, 8, ["separator-icon"]);
40
- };
41
- }
42
- });
43
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang = require("./common-chart-header-breadcrumb.vue.js");
3
- module.exports = commonChartHeaderBreadcrumb_vue_vue_type_script_setup_true_lang;
@@ -1,61 +0,0 @@
1
- "use strict";
2
- const Vue = require("vue");
3
- const _sfc_main = /* @__PURE__ */ Vue.defineComponent({
4
- __name: "common-chart-header-group",
5
- props: {
6
- headerInfo: {
7
- type: Object,
8
- required: true
9
- }
10
- },
11
- setup(__props) {
12
- const props = __props;
13
- Vue.watch(props.headerInfo, () => {
14
- console.log("props.headerInfo", props.headerInfo);
15
- });
16
- return (_ctx, _cache) => {
17
- const _component_el_checkbox = Vue.resolveComponent("el-checkbox");
18
- const _component_el_checkbox_group = Vue.resolveComponent("el-checkbox-group");
19
- const _component_el_radio = Vue.resolveComponent("el-radio");
20
- const _component_el_radio_button = Vue.resolveComponent("el-radio-button");
21
- const _component_el_radio_group = Vue.resolveComponent("el-radio-group");
22
- return __props.headerInfo.groupComponent == "checkbox" ? (Vue.openBlock(), Vue.createBlock(_component_el_checkbox_group, {
23
- key: 0,
24
- modelValue: __props.headerInfo.groupValue,
25
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => __props.headerInfo.groupValue = $event)
26
- }, {
27
- default: Vue.withCtx(() => [
28
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.options, (o) => {
29
- return Vue.openBlock(), Vue.createBlock(_component_el_checkbox, {
30
- label: o.label,
31
- value: o.value
32
- }, null, 8, ["label", "value"]);
33
- }), 256))
34
- ]),
35
- _: 1
36
- }, 8, ["modelValue"])) : __props.headerInfo.groupComponent == "radio" ? (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, { key: 1 }, Vue.renderList(__props.headerInfo.options, (o) => {
37
- return Vue.openBlock(), Vue.createBlock(_component_el_radio, {
38
- modelValue: __props.headerInfo.groupValue,
39
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => __props.headerInfo.groupValue = $event),
40
- value: o.value,
41
- label: o.label
42
- }, null, 8, ["modelValue", "value", "label"]);
43
- }), 256)) : (Vue.openBlock(), Vue.createBlock(_component_el_radio_group, {
44
- key: 2,
45
- modelValue: __props.headerInfo.groupValue,
46
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => __props.headerInfo.groupValue = $event)
47
- }, {
48
- default: Vue.withCtx(() => [
49
- (Vue.openBlock(true), Vue.createElementBlock(Vue.Fragment, null, Vue.renderList(__props.headerInfo.options, (o) => {
50
- return Vue.openBlock(), Vue.createBlock(_component_el_radio_button, {
51
- label: o.label,
52
- value: o.value
53
- }, null, 8, ["label", "value"]);
54
- }), 256))
55
- ]),
56
- _: 1
57
- }, 8, ["modelValue"]));
58
- };
59
- }
60
- });
61
- module.exports = _sfc_main;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- const commonChartHeaderGroup_vue_vue_type_script_setup_true_lang = require("./common-chart-header-group.vue.js");
3
- module.exports = commonChartHeaderGroup_vue_vue_type_script_setup_true_lang;