super-page-runtime 2.0.19 → 2.0.25

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 (195) hide show
  1. package/dist/es/components/runtime/utils/api/api-util.js +18 -16
  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 +206 -0
  4. package/dist/es/components/runtime/utils/assemblys-config.js +16 -7
  5. package/dist/es/components/runtime/utils/common-util.d.ts +2 -2
  6. package/dist/es/components/runtime/utils/common-util.js +8 -12
  7. package/dist/es/components/runtime/utils/events/event-util.d.ts +14 -0
  8. package/dist/es/components/runtime/utils/events/event-util.js +101 -32
  9. package/dist/es/components/runtime/utils/events/standard-event.d.ts +2 -0
  10. package/dist/es/components/runtime/utils/events/standard-event.js +189 -133
  11. package/dist/es/components/runtime/utils/events/validator-util.js +4 -3
  12. package/dist/es/components/runtime/utils/form/scan-util.js +191 -0
  13. package/dist/es/components/runtime/utils/global-refs.js +12 -0
  14. package/dist/es/components/runtime/utils/interfaces/page-design-types.d.ts +2 -0
  15. package/dist/es/components/runtime/utils/page-helper-util.js +20 -4
  16. package/dist/es/components/runtime/utils/page-init-util.js +9 -15
  17. package/dist/es/components/runtime/utils/table-utils.js +4 -5
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +17 -17
  19. package/dist/es/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +17 -17
  20. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +1 -1
  21. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +1 -1
  22. package/dist/es/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +5 -5
  23. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue.js +4 -0
  24. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +207 -0
  25. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +99 -68
  26. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +3 -2
  27. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +11 -11
  28. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +28 -28
  29. package/dist/es/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +12 -12
  30. package/dist/es/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +7 -5
  31. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +14 -14
  32. package/dist/es/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +15 -15
  33. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +24 -1
  34. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +40 -37
  35. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -10
  36. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +13 -13
  37. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +96 -26
  38. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  39. package/dist/es/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +13 -13
  40. package/dist/es/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +10 -10
  41. package/dist/es/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +14 -14
  42. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +5 -2
  43. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +5 -7
  44. package/dist/es/components/runtime/views/super-page.vue.js +18 -7
  45. package/package.json +3 -2
  46. package/dist/lib/_virtual/AttributeMap.js +0 -4
  47. package/dist/lib/_virtual/Delta.js +0 -4
  48. package/dist/lib/_virtual/Op.js +0 -4
  49. package/dist/lib/_virtual/OpIterator.js +0 -4
  50. package/dist/lib/_virtual/__vite-browser-external.js +0 -3
  51. package/dist/lib/_virtual/_commonjsHelpers.js +0 -8
  52. package/dist/lib/_virtual/_plugin-vue_export-helper.js +0 -9
  53. package/dist/lib/_virtual/dayjs.min.js +0 -4
  54. package/dist/lib/_virtual/index.js +0 -4
  55. package/dist/lib/_virtual/index2.js +0 -4
  56. package/dist/lib/_virtual/index3.js +0 -4
  57. package/dist/lib/assets/chart-themes/theme1.d.ts +0 -4
  58. package/dist/lib/assets/chart-themes/theme1.js +0 -7
  59. package/dist/lib/assets/chart-themes/theme2.d.ts +0 -4
  60. package/dist/lib/assets/chart-themes/theme2.js +0 -7
  61. package/dist/lib/assets/chart-themes/theme3.d.ts +0 -4
  62. package/dist/lib/assets/chart-themes/theme3.js +0 -7
  63. package/dist/lib/components/runtime/index.d.ts +0 -4
  64. package/dist/lib/components/runtime/utils/api/api-util.d.ts +0 -11
  65. package/dist/lib/components/runtime/utils/api/api-util.js +0 -128
  66. package/dist/lib/components/runtime/utils/assemblys-config.js +0 -258
  67. package/dist/lib/components/runtime/utils/charts/chart-util.d.ts +0 -11
  68. package/dist/lib/components/runtime/utils/charts/chart-util.js +0 -28
  69. package/dist/lib/components/runtime/utils/common-util.d.ts +0 -16
  70. package/dist/lib/components/runtime/utils/common-util.js +0 -94
  71. package/dist/lib/components/runtime/utils/eventBus.d.ts +0 -7
  72. package/dist/lib/components/runtime/utils/eventBus.js +0 -10
  73. package/dist/lib/components/runtime/utils/events/event-util.d.ts +0 -48
  74. package/dist/lib/components/runtime/utils/events/event-util.js +0 -526
  75. package/dist/lib/components/runtime/utils/events/standard-event.d.ts +0 -61
  76. package/dist/lib/components/runtime/utils/events/standard-event.js +0 -1625
  77. package/dist/lib/components/runtime/utils/events/validator-util.d.ts +0 -4
  78. package/dist/lib/components/runtime/utils/events/validator-util.js +0 -389
  79. package/dist/lib/components/runtime/utils/global-refs.d.ts +0 -59
  80. package/dist/lib/components/runtime/utils/global-refs.js +0 -65
  81. package/dist/lib/components/runtime/utils/interfaces/page-design-types.d.ts +0 -223
  82. package/dist/lib/components/runtime/utils/interfaces/page-design-types.js +0 -9
  83. package/dist/lib/components/runtime/utils/page-helper-util.d.ts +0 -106
  84. package/dist/lib/components/runtime/utils/page-helper-util.js +0 -622
  85. package/dist/lib/components/runtime/utils/page-init-util.d.ts +0 -38
  86. package/dist/lib/components/runtime/utils/page-init-util.js +0 -200
  87. package/dist/lib/components/runtime/utils/page-permission-util.d.ts +0 -26
  88. package/dist/lib/components/runtime/utils/page-permission-util.js +0 -525
  89. package/dist/lib/components/runtime/utils/store-util.d.ts +0 -15
  90. package/dist/lib/components/runtime/utils/store-util.js +0 -17
  91. package/dist/lib/components/runtime/utils/store.d.ts +0 -2
  92. package/dist/lib/components/runtime/utils/store.js +0 -3
  93. package/dist/lib/components/runtime/utils/table-utils.js +0 -24
  94. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue.js +0 -3
  95. package/dist/lib/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +0 -54
  96. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +0 -3
  97. package/dist/lib/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +0 -35
  98. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue.js +0 -3
  99. package/dist/lib/components/runtime/views/assemblys/button/dropdown/dropdown-runtime.vue2.js +0 -110
  100. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue.js +0 -3
  101. package/dist/lib/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +0 -432
  102. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue.js +0 -43
  103. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-breadcrumb.vue2.js +0 -3
  104. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +0 -61
  105. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue2.js +0 -3
  106. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +0 -126
  107. package/dist/lib/components/runtime/views/assemblys/chart/common/common-chart-header.vue2.js +0 -3
  108. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue.js +0 -3
  109. package/dist/lib/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +0 -52
  110. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue.js +0 -3
  111. package/dist/lib/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +0 -54
  112. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue.js +0 -3
  113. package/dist/lib/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +0 -54
  114. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue.js +0 -3
  115. package/dist/lib/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +0 -56
  116. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.d.ts +0 -24
  117. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +0 -147
  118. package/dist/lib/components/runtime/views/assemblys/common/export-form-report-dialog.vue2.js +0 -3
  119. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.d.ts +0 -35
  120. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +0 -127
  121. package/dist/lib/components/runtime/views/assemblys/common/remove-signer-dialog.vue2.js +0 -3
  122. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.d.ts +0 -26
  123. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +0 -104
  124. package/dist/lib/components/runtime/views/assemblys/common/task-informition-dialog.vue2.js +0 -3
  125. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue.js +0 -3
  126. package/dist/lib/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +0 -72
  127. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue.js +0 -3
  128. package/dist/lib/components/runtime/views/assemblys/container/collapse/collapse-runtime.vue2.js +0 -74
  129. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue.js +0 -3
  130. package/dist/lib/components/runtime/views/assemblys/container/container/container-runtime.vue2.js +0 -79
  131. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue.js +0 -3
  132. package/dist/lib/components/runtime/views/assemblys/container/flex/flex-runtime.vue2.js +0 -43
  133. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue.js +0 -3
  134. package/dist/lib/components/runtime/views/assemblys/container/form/form-runtime.vue2.js +0 -44
  135. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue.js +0 -3
  136. package/dist/lib/components/runtime/views/assemblys/container/iframe/iframe-runtime.vue2.js +0 -30
  137. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +0 -3
  138. package/dist/lib/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue2.js +0 -69
  139. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +0 -3
  140. package/dist/lib/components/runtime/views/assemblys/container/tools/tools-runtime.vue2.js +0 -75
  141. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +0 -642
  142. package/dist/lib/components/runtime/views/assemblys/data/table/main-table-runtime.vue2.js +0 -3
  143. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +0 -453
  144. package/dist/lib/components/runtime/views/assemblys/data/table/sub-table-runtime.vue2.js +0 -3
  145. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue.js +0 -3
  146. package/dist/lib/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +0 -88
  147. package/dist/lib/components/runtime/views/assemblys/error-render.vue.d.ts +0 -22
  148. package/dist/lib/components/runtime/views/assemblys/error-render.vue.js +0 -22
  149. package/dist/lib/components/runtime/views/assemblys/error-render.vue2.js +0 -3
  150. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue.js +0 -3
  151. package/dist/lib/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +0 -156
  152. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue.js +0 -3
  153. package/dist/lib/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +0 -82
  154. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue.js +0 -3
  155. package/dist/lib/components/runtime/views/assemblys/form/dept-tree/depttree-runtime.vue2.js +0 -64
  156. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue.js +0 -3
  157. package/dist/lib/components/runtime/views/assemblys/form/divider/divider-runtime.vue2.js +0 -40
  158. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue.js +0 -3
  159. package/dist/lib/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +0 -74
  160. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue.js +0 -3
  161. package/dist/lib/components/runtime/views/assemblys/form/input-number/input-number-runtime.vue2.js +0 -63
  162. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue.js +0 -3
  163. package/dist/lib/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +0 -127
  164. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue.js +0 -3
  165. package/dist/lib/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +0 -127
  166. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue.js +0 -3
  167. package/dist/lib/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +0 -77
  168. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue.js +0 -3
  169. package/dist/lib/components/runtime/views/assemblys/form/placeholder/placeholder-runtime.vue2.js +0 -29
  170. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue.js +0 -3
  171. package/dist/lib/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +0 -157
  172. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue.js +0 -3
  173. package/dist/lib/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +0 -164
  174. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue.js +0 -3
  175. package/dist/lib/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +0 -201
  176. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue.js +0 -3
  177. package/dist/lib/components/runtime/views/assemblys/form/switch/switch-runtime.vue2.js +0 -63
  178. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue.js +0 -3
  179. package/dist/lib/components/runtime/views/assemblys/form/tag/tag-runtime.vue2.js +0 -63
  180. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue.js +0 -3
  181. package/dist/lib/components/runtime/views/assemblys/form/textarea/textarea-runtime.vue2.js +0 -65
  182. package/dist/lib/components/runtime/views/assemblys/object-render.vue.d.ts +0 -17
  183. package/dist/lib/components/runtime/views/assemblys/object-render.vue.js +0 -142
  184. package/dist/lib/components/runtime/views/assemblys/object-render.vue2.js +0 -3
  185. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +0 -3
  186. package/dist/lib/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +0 -61
  187. package/dist/lib/components/runtime/views/super-page-dialog.vue.d.ts +0 -36
  188. package/dist/lib/components/runtime/views/super-page-dialog.vue.js +0 -73
  189. package/dist/lib/components/runtime/views/super-page-dialog.vue2.js +0 -3
  190. package/dist/lib/components/runtime/views/super-page.vue.d.ts +0 -91
  191. package/dist/lib/components/runtime/views/super-page.vue.js +0 -496
  192. package/dist/lib/components/runtime/views/super-page.vue2.js +0 -3
  193. package/dist/lib/favicon.ico +0 -0
  194. package/dist/lib/index.d.ts +0 -8
  195. package/dist/lib/index.js +0 -15
@@ -1,223 +0,0 @@
1
- /**
2
- * 状态
3
- */
4
- export declare enum EnableStates {
5
- ENABLE = "ENABLE",
6
- DISABLE = "DISABLE"
7
- }
8
- /**
9
- * 屏幕尺寸
10
- */
11
- export declare enum PageDimensions {
12
- PC = "pc",
13
- IPAD = "ipad",
14
- PHONE = "phone"
15
- }
16
- /**
17
- * 组件对象
18
- */
19
- export interface Component extends Object {
20
- uuid: string;
21
- name: string;
22
- label: string;
23
- desc?: string;
24
- icon?: string;
25
- version?: number;
26
- releaseDate?: string;
27
- creator?: string;
28
- auditor?: string;
29
- snapshot?: string;
30
- docHref?: string;
31
- parent?: Component;
32
- items?: Component[];
33
- props?: any;
34
- style?: any;
35
- events?: ComponentEvent[];
36
- methods?: ComponentMethod[];
37
- advance?: any;
38
- [otherProp: string]: any;
39
- }
40
- /**
41
- * 页面对象
42
- */
43
- export interface PageDesign extends Component {
44
- systemCode: string;
45
- systemVersion: number;
46
- code: string;
47
- version: number;
48
- tableSysCode?: string;
49
- tableSysVersion?: number;
50
- tableName?: string;
51
- tableAlias?: string;
52
- workflowCode: string;
53
- workflowVersion: number;
54
- variables?: CustomVariable[];
55
- logicDesigns?: object[];
56
- modelFields?: ModelField[];
57
- initChartServiceConfigs?: Array<any>;
58
- rules?: object;
59
- tableUuids?: Array<any>;
60
- tableNames?: Array<any>;
61
- formNoRuleCode?: string;
62
- judgeHeavyList?: Array<any>;
63
- conversionCodes?: Array<any>;
64
- pageType?: string;
65
- beanName?: string;
66
- importBeanName?: string;
67
- name: string;
68
- notIdInitializationList?: Array<any>;
69
- subTablePageInfo?: object;
70
- customValidatorUuids?: Array<string>;
71
- customEvents?: Array<any>;
72
- }
73
- /**
74
- * 运行时页面对象
75
- */
76
- export interface PageContext extends Component {
77
- isTest?: boolean;
78
- systemCode?: string;
79
- systemVersion?: number;
80
- code: string;
81
- version: number;
82
- dimensions: string;
83
- tableSysCode?: string;
84
- tableSysVersion?: number;
85
- tableName?: string;
86
- tableAlias?: string;
87
- workflowCode?: string;
88
- workflowVersion?: number;
89
- rules?: object;
90
- tableUuids?: Array<any>;
91
- tableNames?: Array<any>;
92
- formNoRuleCode?: string;
93
- judgeHeavyList?: Array<any>;
94
- conversionCodes?: Array<any>;
95
- pageType?: string;
96
- beanName?: string;
97
- importBeanName?: string;
98
- name: string;
99
- notIdInitializationList?: Array<any>;
100
- subTablePageInfo?: object;
101
- customValidatorUuids?: Array<string>;
102
- entity: {
103
- data: {
104
- [otherProp: string]: any;
105
- };
106
- task: {
107
- [otherProp: string]: any;
108
- };
109
- request: {
110
- [otherProp: string]: any;
111
- };
112
- page: {
113
- [otherProp: string]: any;
114
- };
115
- context: {
116
- [otherProp: string]: any;
117
- };
118
- system: {
119
- [otherProp: string]: any;
120
- };
121
- };
122
- superGridItems?: object;
123
- emailTemplateCode?: string;
124
- fieldPermissions?: Array<any>;
125
- fieldPermissionMap?: Map<string, any>;
126
- actionPermissions?: Array<any>;
127
- actionPermissionMap?: Map<string, any>;
128
- workflowButtonComponent?: object;
129
- completeTaskParam?: object;
130
- customRules?: object;
131
- initFormNo?: string;
132
- definitionId?: number;
133
- dataTypeMaps?: Object;
134
- editData?: object;
135
- searchFormData?: Array<object>;
136
- selectOptions?: object;
137
- chartDataSourceMap?: any;
138
- [otherProp: string]: any;
139
- }
140
- /**
141
- * 事件对象
142
- */
143
- export interface ComponentEvent extends Object {
144
- name: string;
145
- label: string;
146
- params?: ComponentEventParam[];
147
- }
148
- /**
149
- * 事件对象
150
- */
151
- export interface ComponentEventParam extends Object {
152
- name: string;
153
- label: string;
154
- type: string;
155
- }
156
- /**
157
- * 方法对象
158
- */
159
- export interface ComponentMethod extends Object {
160
- name: string;
161
- label: string;
162
- inParams: ComponentEventParam[];
163
- outParams: ComponentEventParam[];
164
- }
165
- /**
166
- * 方法参数描述
167
- */
168
- export interface ComponentMethodParam extends Object {
169
- name: string;
170
- type: string;
171
- }
172
- /**
173
- * 自定义变量对象
174
- */
175
- export interface CustomVariable extends Object {
176
- name: string;
177
- alias: string;
178
- defaultValue?: string;
179
- isArrayElement?: boolean;
180
- items?: CustomVariable[];
181
- [otherProp: string]: any;
182
- }
183
- /**
184
- * 自定义变量对象
185
- */
186
- export interface ModelField extends Object {
187
- name: string;
188
- alias: string;
189
- dataType: string;
190
- displayOrder: number;
191
- }
192
- /**
193
- * 前端逻辑对象
194
- */
195
- export interface LogicDesign extends Object {
196
- code: string;
197
- name: string;
198
- props?: any;
199
- variables?: CustomVariable[];
200
- flow: {
201
- nodes?: LogicNode[];
202
- };
203
- triggerSource?: LogicTriggerSource[];
204
- }
205
- /**
206
- * 前端逻辑节点对象
207
- */
208
- export interface LogicNode extends Object {
209
- id: string;
210
- type: string;
211
- x: number;
212
- y: number;
213
- properties?: any;
214
- }
215
- /**
216
- * 前端逻辑节点触发来源
217
- */
218
- export interface LogicTriggerSource extends Object {
219
- assemblyIndex: number;
220
- assemblyType: string;
221
- triggerType: string;
222
- triggerName: string;
223
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- var PageDimensions = /* @__PURE__ */ ((PageDimensions2) => {
4
- PageDimensions2["PC"] = "pc";
5
- PageDimensions2["IPAD"] = "ipad";
6
- PageDimensions2["PHONE"] = "phone";
7
- return PageDimensions2;
8
- })(PageDimensions || {});
9
- exports.PageDimensions = PageDimensions;
@@ -1,106 +0,0 @@
1
- import { PageContext, Component } from './interfaces/page-design-types';
2
-
3
- /**
4
- * 获取选项组类需要查询的配置信息
5
- * @param component
6
- * @param pageContext
7
- * @returns
8
- */
9
- export declare function getComponentOptionConfigs(component: Component, pageContext: PageContext): any;
10
- /**
11
- * 初始化需要查询数据的信息
12
- * @param component
13
- * @param pageDesign
14
- * @returns
15
- */
16
- export declare function initComponentDataSources(component: Component, pageContext: PageContext): void;
17
- /**
18
- * 初始化统计图的数据源
19
- * @param pageContext 页面上下文
20
- * @param dataSourceConfs 初始化数据配置参数
21
- */
22
- export declare function updateChartDatasources(pageContext: PageContext, dataSourceConfs: Array<any>, appendParams: any): Promise<any>;
23
- /**
24
- * 初始化数据源
25
- * @param pageContext 页面上下文
26
- * @param dataSourceConfs 初始化数据配置参数
27
- */
28
- export declare function updateOptionDatasources(pageContext: PageContext, dataSourceConfs: Array<any>, query: any): Promise<any>;
29
- /**
30
- * 从页面缓存中获取查询到的选项组数据
31
- * @param pageContext
32
- * @param configure
33
- */
34
- export declare function getOptionDatasFromPage(pageContext: PageContext, configure: Component): any;
35
- /**
36
- * 从页面缓存中获取查询到的统计图数据
37
- * @param pageContext
38
- * @param configure
39
- */
40
- export declare function getChartDatasFromPage(pageContext: PageContext, configure: Component): any;
41
- /**
42
- * 初始化数据源
43
- * @param pageContext 页面上下文
44
- * @param dataSourceConfs 初始化数据配置参数
45
- * @param query 查询条件
46
- */
47
- export declare function queryOptionDatasources(pageContext: PageContext, dataSourceConf: any, query: any): Promise<any>;
48
- /**
49
- * 根据查询条件远程查询
50
- * @param component
51
- * @param query 模糊查询内容
52
- */
53
- export declare function queryOptions(component: Component, pageContext: PageContext, query: string): Promise<any>;
54
- /**
55
- * 根据查询条件远程查询
56
- * @param component
57
- * @param query 模糊查询内容
58
- */
59
- export declare function autoSetAfterSelect(component: Component, pageContext: PageContext, autoSets: any[], selItems: any[]): void;
60
- /**
61
- *
62
- * @param entity
63
- * @param fields
64
- * @returns
65
- */
66
- export declare function getVariableValue(entity: any, fields: string[]): any;
67
- /**
68
- * 设置参数值
69
- * @param entity
70
- * @param fields
71
- * @param newValue 新的值
72
- */
73
- export declare function setVariableValue(entity: any, fields: string[], newValue: any): void;
74
- /**
75
- * 格式化变量值
76
- * @param pageContext
77
- * @param variable
78
- */
79
- export declare function formatVariableValue(pageContext: PageContext, variable: string): any;
80
- /**
81
- * 根据类型格式化对象
82
- * @param value
83
- * @param formatInfo
84
- * @returns
85
- */
86
- export declare function formatValueByType(value: any, formatType: string, formatInfo: any): any;
87
- /**
88
- * 从对象中获取值
89
- * @param valueSource 源对象
90
- * @param paramName 变量值
91
- * @param paramType 类型
92
- */
93
- export declare function getValueFromSource(valueSource: any, paramName: string, paramType: any): any;
94
- /**
95
- * 打开链接
96
- * @param component
97
- * @param pageContext
98
- */
99
- export declare function openLink(component: Component, pageContext: PageContext): void;
100
- /**
101
- * 计算组件是否显示
102
- * @param pageContext 页面对象
103
- * @param configure 组件配置参数
104
- * @param showConditions 显示条件
105
- */
106
- export declare function caculateShowCondition(pageContext: PageContext, configure: Component, showConditions: Array<any>): any;