1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
/**
* 应用组件服务
*
* @memberof AppComponentService
*/
export class AppComponentService {
/**
* 视图组件Map
*
* @memberof AppComponentService
*/
protected static viewMap: Map<string, any> = new Map();
/**
* 部件组件Map
*
* @memberof AppComponentService
*/
protected static controlMap: Map<string, any> = new Map();
/**
* 控件组件Map
*
* @memberof AppComponentService
*/
protected static editorMap: Map<string, any> = new Map();
/**
* 注册应用组件
*
* @memberof AppComponentService
*/
public static registerAppComponents() {
this.registerViewComponents();
this.registerControlComponents();
this.registerEditorComponents();
}
/**
* 注册视图组件
*
* @memberof AppComponentService
*/
protected static registerViewComponents() {
this.viewMap.set("APPINDEXVIEW_DEFAULT", 'app-default-indexview');
this.viewMap.set("DEEDITVIEW_DEFAULT", 'app-default-editview');
this.viewMap.set("DEGRIDVIEW_DEFAULT", 'app-default-gridview');
this.viewMap.set("DEGRIDVIEW4_DEFAULT", 'app-default-gridview4');
this.viewMap.set("DELISTVIEW_DEFAULT", 'app-default-listview');
this.viewMap.set("DECHARTVIEW_DEFAULT", 'app-default-chartview');
this.viewMap.set("DECHARTEXPVIEW_DEFAULT", 'app-default-chartexpview');
this.viewMap.set("DEDATAVIEW_DEFAULT", 'app-default-dataviewview');
this.viewMap.set("DECALENDARVIEW_DEFAULT", 'app-default-calendarview');
this.viewMap.set("DEKANBANVIEW_DEFAULT", 'app-default-kanbanview');
this.viewMap.set("DEPORTALVIEW_DEFAULT", 'app-default-deportalview');
this.viewMap.set("DETABEXPVIEW_DEFAULT", 'app-default-tabexpview');
this.viewMap.set("DETABSEARCHVIEW_DEFAULT", 'app-default-tabsearchview');
this.viewMap.set("DEMEDITVIEW9_DEFAULT", 'app-default-meditview');
this.viewMap.set("DEGANTTVIEW_DEFAULT", 'app-default-ganttview');
this.viewMap.set("DETREEVIEW_DEFAULT", 'app-default-treeview');
this.viewMap.set("DETREEGRIDEXVIEW_DEFAULT", 'app-default-treegridexview');
this.viewMap.set("DELISTEXPVIEW_DEFAULT", 'app-default-listexpview');
this.viewMap.set("DEGRIDEXPVIEW_DEFAULT", 'app-default-gridexpview');
this.viewMap.set("DEWFDYNAEXPGRIDVIEW_DEFAULT", 'app-default-wfdynaexpgridview');
this.viewMap.set("DEDATAVIEWEXPVIEW_DEFAULT", 'app-default-dataviewexpview');
this.viewMap.set("DEPICKUPGRIDVIEW_DEFAULT", 'app-default-pickupgridview');
this.viewMap.set("DEMPICKUPVIEW_DEFAULT", 'app-default-mpickupview');
this.viewMap.set("DEMPICKUPVIEW2_DEFAULT", 'app-default-mpickupview2');
this.viewMap.set("DEPICKUPVIEW_DEFAULT", 'app-default-pickupview');
this.viewMap.set("DEPICKUPVIEW2_DEFAULT", 'app-default-pickupview2');
this.viewMap.set("DEPICKUPVIEW3_DEFAULT", 'app-default-pickupview3');
this.viewMap.set("DECALENDAREXPVIEW_DEFAULT", 'app-default-calendarexpview');
this.viewMap.set("DETREEEXPVIEW_DEFAULT", 'app-default-treeexpview');
this.viewMap.set("DEPICKUPTREEVIEW_DEFAULT", 'app-default-pickuptreeview');
this.viewMap.set("DECUSTOMVIEW_DEFAULT", 'app-default-customview');
this.viewMap.set("DEOPTVIEW_DEFAULT", 'app-default-optview');
this.viewMap.set("APPPORTALVIEW_DEFAULT", 'app-default-portalview');
this.viewMap.set("DEWFDYNAACTIONVIEW_DEFAULT", 'app-default-wfdynaactionview');
this.viewMap.set("DEWFDYNASTARTVIEW_DEFAULT", 'app-default-wfdynastartview');
this.viewMap.set("DEWFDYNAEDITVIEW_DEFAULT", 'app-default-wfdynaeditview');
this.viewMap.set("DEWFDYNAEDITVIEW3_DEFAULT", 'app-default-wfdynaeditview3');
this.viewMap.set("DEPORTALVIEW9_DEFAULT", 'app-default-deportalview');
this.viewMap.set("DEEDITVIEW9_DEFAULT", 'app-default-editview');
this.viewMap.set("DEGRIDVIEW9_DEFAULT", 'app-default-gridview');
this.viewMap.set("DELISTVIEW9_DEFAULT", 'app-default-listview');
this.viewMap.set("DECHARTVIEW9_DEFAULT", 'app-default-chartview');
this.viewMap.set("DEDATAVIEW9_DEFAULT",'app-default-dataviewview');
this.viewMap.set("DEFORMPICKUPDATAVIEW_DEFAULT","app-default-formpickupdataview");
this.viewMap.set("DEINDEXPICKUPDATAVIEW_DEFAULT","app-default-indexpickupdataview");
this.viewMap.set("DEWIZARDVIEW_DEFAULT", 'app-default-wizardview');
this.viewMap.set("DEWFACTIONVIEW_DEFAULT", 'app-default-wfactionview');
this.viewMap.set("DEREDIRECTVIEW_DEFAULT", 'app-default-deredirectview');
this.viewMap.set("APPWFSTEPTRACEVIEW_DEFAULT", 'app-default-wfsteptraceview');
this.viewMap.set("DEEDITVIEW2_DEFAULT", 'app-default-editview2');
this.viewMap.set("DEEDITVIEW3_DEFAULT", 'app-default-editview3');
this.viewMap.set("DEEDITVIEW4_DEFAULT", 'app-default-editview4');
this.viewMap.set("DEHTMLVIEW_DEFAULT", 'app-default-htmlview');
this.viewMap.set("DEMAPVIEW_DEFAULT", 'app-default-mapview');
this.viewMap.set("DEREPORTVIEW_DEFAULT",'app-default-dereportview');
this.viewMap.set("DEMAPEXPVIEW_DEFAULT",'app-default-mapexpview');
this.viewMap.set("DEPANELVIEW_DEFAULT", 'app-default-depanelview');
this.viewMap.set("DEINDEXVIEW_DEFAULT", 'app-default-deindexview');
// STYLE2 样式
this.viewMap.set("APPINDEXVIEW_STYLE2", 'app-style2-indexview');
this.viewMap.set("DEEDITVIEW_STYLE2", 'app-style2-editview');
this.viewMap.set("DEEDITVIEW2_STYLE2", 'app-style2-editview2');
this.viewMap.set("DEEDITVIEW3_STYLE2", 'app-style2-editview3');
this.viewMap.set("DEEDITVIEW4_STYLE2", 'app-style2-editview4');
this.viewMap.set("DEGRIDVIEW_STYLE2", 'app-style2-gridview');
this.viewMap.set("DELISTVIEW_STYLE2", 'app-style2-listview');
this.viewMap.set("DECHARTVIEW_STYLE2", 'app-style2-chartview');
this.viewMap.set("DECHARTEXPVIEW_STYLE2", 'app-style2-chartexpview');
this.viewMap.set("DEDATAVIEW_STYLE2", 'app-style2-dataviewview');
this.viewMap.set("DECALENDARVIEW_STYLE2", 'app-style2-calendarview');
this.viewMap.set("DEKANBANVIEW_STYLE2", 'app-style2-kanbanview');
this.viewMap.set("DEPORTALVIEW_STYLE2", 'app-style2-deportalview');
this.viewMap.set("DETABEXPVIEW_STYLE2", 'app-style2-tabexpview');
this.viewMap.set("DETABSEARCHVIEW_STYLE2", 'app-style2-tabsearchview');
this.viewMap.set("DEMEDITVIEW9_STYLE2", 'app-style2-meditview');
this.viewMap.set("DEGANTTVIEW_STYLE2", 'app-style2-ganttview');
this.viewMap.set("DETREEVIEW_STYLE2", 'app-style2-treeview');
this.viewMap.set("DETREEGRIDEXVIEW_STYLE2", 'app-style2-treegridexview');
this.viewMap.set("DELISTEXPVIEW_STYLE2", 'app-style2-listexpview');
this.viewMap.set("DEGRIDEXPVIEW_STYLE2", 'app-style2-gridexpview');
this.viewMap.set("DEWFDYNAEXPGRIDVIEW_STYLE2", 'app-style2-wfdynaexpgridview');
this.viewMap.set("DEDATAVIEWEXPVIEW_STYLE2", 'app-style2-dataviewexpview');
this.viewMap.set("DEPICKUPGRIDVIEW_STYLE2", 'app-style2-pickupgridview');
this.viewMap.set("DEMPICKUPVIEW_STYLE2", 'app-style2-mpickupview');
this.viewMap.set("DEPICKUPVIEW_STYLE2", 'app-style2-pickupview');
this.viewMap.set("DECALENDAREXPVIEW_STYLE2", 'app-style2-calendarexpview');
this.viewMap.set("DETREEEXPVIEW_STYLE2", 'app-style2-treeexpview');
this.viewMap.set("DEPICKUPTREEVIEW_STYLE2", 'app-style2-pickuptreeview');
this.viewMap.set("DECUSTOMVIEW_STYLE2", 'app-style2-customview');
this.viewMap.set("DEOPTVIEW_STYLE2", 'app-style2-optview');
this.viewMap.set("DEOPTVIEW_STYLE2", 'app-style2-optview');
this.viewMap.set("APPPORTALVIEW_STYLE2", 'app-style2-portalview');
this.viewMap.set("DEWFDYNAACTIONVIEW_STYLE2", 'app-style2-wfdynaactionview');
this.viewMap.set("DEWFDYNASTARTVIEW_STYLE2", 'app-style2-wfdynastartview');
this.viewMap.set("DEWFDYNAEDITVIEW_STYLE2", 'app-style2-wfdynaeditview');
this.viewMap.set("DEWFDYNAEDITVIEW3_STYLE2", 'app-style2-wfdynaeditview3');
this.viewMap.set("DEPORTALVIEW9_STYLE2", 'app-style2-deportalview');
this.viewMap.set("DEEDITVIEW9_STYLE2", 'app-style2-editview');
this.viewMap.set("DEGRIDVIEW9_STYLE2", 'app-style2-gridview');
this.viewMap.set("DELISTVIEW9_STYLE2", 'app-style2-listview');
this.viewMap.set("DEHTMLVIEW_STYLE2", 'app-style2-htmlview');
this.viewMap.set("DECHARTVIEW9_STYLE2", 'app-style2-chartview');
this.viewMap.set("DEDATAVIEW9_STYLE2",'app-style2-dataviewview');
this.viewMap.set("DEFORMPICKUPDATAVIEW_STYLE2","app-style2-formpickupdataview");
this.viewMap.set("DEINDEXPICKUPDATAVIEW_STYLE2","app-style2-indexpickupdataview");
this.viewMap.set("DEWIZARDVIEW_STYLE2", 'app-style2-wizardview');
this.viewMap.set("DEWFACTIONVIEW_STYLE2", 'app-style2-wfactionview');
this.viewMap.set("DEREDIRECTVIEW_STYLE2", 'app-style2-deredirectview');
this.viewMap.set("APPWFSTEPTRACEVIEW_STYLE2", 'app-style2-wfsteptraceview');
this.viewMap.set("DEREPORTVIEW_STYLE2",'app-style2-dereportview');
this.viewMap.set("DEMAPEXPVIEW_STYLE2",'app-style2-mapexpview');
this.viewMap.set("DEPANELVIEW_STYLE2",'app-style2-depanelview');
this.viewMap.set("DEMAPVIEW_STYLE2", 'app-style2-mapview');
// STYLE3 样式
this.viewMap.set("APPINDEXVIEW_STYLE3", 'app-style2-indexview');
// STYLE4 样式
this.viewMap.set("APPINDEXVIEW_STYLE4", 'app-default-indexview');
this.viewMap.set("APPPORTALVIEW_STYLE4", 'app-style4-portalview');
this.viewMap.set("DEPORTALVIEW_STYLE4", 'app-style4-deportalview');
// 注册视图插件
// 注册视图样式,无插件模式
}
/**
* 获取视图组件
*
* @memberof AppComponentService
*/
public static getViewComponents(viewType: string, viewStyle: string, pluginCode?: string) {
let componentName = 'app-default-notsupportedview';
if(pluginCode){
componentName = this.viewMap.get(`${pluginCode}`);
}else{
componentName = this.viewMap.get(`${viewType}_${viewStyle}`);
}
return componentName || 'app-default-notsupportedview';
}
/**
* 注册部件组件
*
* @memberof AppComponentService
*/
protected static registerControlComponents() {
this.controlMap.set("FORM_DEFAULT", 'app-default-form');
this.controlMap.set("SEARCHFORM_DEFAULT", 'app-default-searchform');
this.controlMap.set("GRID_DEFAULT", 'app-default-grid');
this.controlMap.set("LIST_DEFAULT", 'app-default-list');
this.controlMap.set("LIST_LISTVIEW", 'app-default-list');
this.controlMap.set("APPMENU_DEFAULT", 'app-default-appmenu');
this.controlMap.set("CHART_DEFAULT", 'app-default-chart');
this.controlMap.set("CHART_NEW", 'app-default-chart');
this.controlMap.set("CHARTEXPBAR_DEFAULT", 'app-default-chart-exp-bar');
this.controlMap.set("DATAVIEW_DEFAULT", 'app-default-dataview');
this.controlMap.set("PANEL_DEFAULT", 'app-default-panel');
this.controlMap.set("CALENDAR_DEFAULT", 'app-default-calendar');
this.controlMap.set("KANBAN_DEFAULT", 'app-default-kanban');
this.controlMap.set("DASHBOARD_DEFAULT", 'app-default-dashboard');
this.controlMap.set("PORTLET_DEFAULT", 'app-default-portlet');
this.controlMap.set("TABEXPPANEL_DEFAULT", 'app-default-tabexp-panel');
this.controlMap.set("CONTEXTMENU_DEFAULT", 'app-default-contextmenu');
this.controlMap.set("GANTT_DEFAULT", 'app-default-gantt');
this.controlMap.set("MULTIEDITVIEWPANEL_DEFAULT", 'app-default-meditViewPanel');
this.controlMap.set("TREEVIEW_DEFAULT", 'app-default-tree');
this.controlMap.set("TREEGRIDEX_DEFAULT", 'app-default-tree-grid-ex');
this.controlMap.set("LISTEXPBAR_DEFAULT", 'app-default-list-exp-bar');
this.controlMap.set("GRIDEXPBAR_DEFAULT", 'app-default-grid-exp-bar');
this.controlMap.set("DATAVIEWEXPBAR_DEFAULT", 'app-default-dataview-exp-bar');
this.controlMap.set("PICKUPVIEWPANEL_DEFAULT", 'app-default-pick-up-view-panel');
this.controlMap.set("CALENDAREXPBAR_DEFAULT", 'app-default-calendar-exp-bar');
this.controlMap.set("TREEEXPBAR_DEFAULT", 'app-default-tree-exp-bar');
this.controlMap.set("SEARCHBAR_DEFAULT", 'app-default-searchbar');
this.controlMap.set("TABVIEWPANEL_DEFAULT", 'app-default-tab-view-panel');
this.controlMap.set("WIZARDPANEL_DEFAULT", 'app-default-wizard-panel');
this.controlMap.set("WIZARDPANEL_STATE", 'app-default-state-wizard-panel');
this.controlMap.set("DRTAB_DEFAULT", 'app-default-drtab');
this.controlMap.set("DRBAR_DEFAULT", 'app-default-drbar');
this.controlMap.set("MAP_DEFAULT", 'app-default-map');
this.controlMap.set("REPORTPANEL_DEFAULT", 'app-default-report-panel');
this.controlMap.set("MAPEXPBAR_DEFAULT", 'app-default-map-exp-bar');
this.controlMap.set("DASHBOARD_STYLE4", 'app-default-dashboard');
this.controlMap.set("VIEWPANEL_DEFAULT", 'app-default-view-panel');
// 注册部件插件标识
this.controlMap.set("PivotTable", 'app-pivot-table');
this.controlMap.set("GRID_RENDER_PivotTable", 'app-pivot-table');
this.controlMap.set("GRID_RENDER_CellEditGrid", 'app-cell-edit-grid');
}
/**
* 获取部件组件
*
* @memberof AppComponentService
*/
public static getControlComponents(ctrlType: string, ctrlStyle: string, pluginCode?: string) {
let componentName = 'app-default-notsupportedcontrol';
if(pluginCode){
componentName = this.controlMap.get(`${pluginCode}`);
}else{
componentName = this.controlMap.get(`${ctrlType}_${ctrlStyle}`);
}
return componentName || 'app-default-notsupportedcontrol';
}
/**
* 注册编辑器组件
*
* @memberof AppComponentService
*/
protected static registerEditorComponents() {
this.editorMap.set("TEXTBOX_DEFAULT", 'input-box');
this.editorMap.set("PASSWORD_DEFAULT", 'input-box');
this.editorMap.set("TEXTAREA_DEFAULT", 'input-box');
this.editorMap.set("TEXTAREA_10_DEFAULT", 'input-box');
this.editorMap.set("MARKDOWN_DEFAULT", 'app-markdown-editor');
this.editorMap.set("CODE_DEFAULT", 'app-code-editor');
this.editorMap.set("NUMBER_DEFAULT", 'input-box');
this.editorMap.set("SLIDER_DEFAULT", 'app-slider');
this.editorMap.set("RATING_DEFAULT", 'app-rate');
this.editorMap.set("STEPPER_DEFAULT", 'app-stepper');
this.editorMap.set("SWITCH_DEFAULT", 'app-switch');
this.editorMap.set("SPANEX_DEFAULT", 'i-input');
this.editorMap.set("SPAN_DEFAULT", 'app-span');
this.editorMap.set("AC_DEFAULT", 'app-autocomplete');
this.editorMap.set("HTMLEDITOR_DEFAULT", 'app-rich-text-editor');
this.editorMap.set("FILEUPLOADER_DEFAULT", 'app-file-upload');
this.editorMap.set("FILEUPLOADER_ONE_DEFAULT", "app-file-upload");
this.editorMap.set("PICTURE_DEFAULT", 'app-image-upload');
this.editorMap.set("PICTURE_ONE_DEFAULT", 'app-image-upload');
this.editorMap.set("RADIOBUTTONLIST_DEFAULT", 'app-radio-group');
this.editorMap.set("CHECKBOX_DEFAULT", 'app-checkbox');
this.editorMap.set("CHECKBOXLIST_DEFAULT", 'app-checkbox-list');
this.editorMap.set("MDROPDOWNLIST_DEFAULT", 'dropdown-list-mpicker');
this.editorMap.set("DROPDOWNLIST_DEFAULT", 'dropdown-list');
this.editorMap.set("DROPDOWNLIST_100_DEFAULT", 'dropdown-list');
this.editorMap.set("DATEPICKEREX_DEFAULT", 'date-picker');
this.editorMap.set("DATEPICKEREX_NOTIME_DEFAULT", 'date-picker');
this.editorMap.set("DATEPICKER_DEFAULT", 'date-picker');
this.editorMap.set("DATEPICKEREX_HOUR_DEFAULT", 'time-picker');
this.editorMap.set("DATEPICKEREX_MINUTE_DEFAULT", 'time-picker');
this.editorMap.set("DATEPICKEREX_SECOND_DEFAULT", 'time-picker');
this.editorMap.set("DATEPICKEREX_NODAY_DEFAULT", 'time-picker');
this.editorMap.set("DATEPICKEREX_NODAY_NOSECOND_DEFAULT", 'time-picker');
this.editorMap.set("PICKEREX_DROPDOWNVIEW_DEFAULT", 'app-picker-select-view');
this.editorMap.set("PICKEREX_DROPDOWNVIEW_LINK_DEFAULT", 'app-picker-select-view');
this.editorMap.set("PICKUPVIEW_DEFAULT", 'app-embed-picker');
this.editorMap.set("ADDRESSPICKUP_DEFAULT", 'app-mpicker');
this.editorMap.set("ADDRESSPICKUP_IMPORTABILITY", 'app-mpicker-importability');
this.editorMap.set("ADDRESSPICKUP_AC_DEFAULT", 'app-mpicker');
this.editorMap.set("PICKEREX_LINKONLY_DEFAULT", 'app-picker');
this.editorMap.set("PICKER_DEFAULT", 'app-picker');
this.editorMap.set("PICKER_IMPORTABILITY", 'app-picker-importability');
this.editorMap.set("PICKER_TAGPICKER", 'app-tag-picker');
this.editorMap.set("PICKER_ALLEMPSELECT", 'app-picker');
this.editorMap.set("PICKEREX_NOBUTTON_DEFAULT", 'app-picker');
this.editorMap.set("PICKEREX_NOAC_LINK_DEFAULT", 'app-picker');
this.editorMap.set("PICKEREX_TRIGGER_LINK_DEFAULT", 'app-picker');
this.editorMap.set("PICKEREX_TRIGGER_DEFAULT", 'app-picker');
this.editorMap.set("PICKEREX_NOAC_DEFAULT", 'app-picker');
this.editorMap.set("PICKEREX_LINK_DEFAULT", 'app-picker');
this.editorMap.set("IPADDRESSTEXTBOX_DEFAULT", "app-input-ip");
this.editorMap.set("RAW_DEFAULT", "app-rawitem");
this.editorMap.set("AC_FS_DEFAULT", 'app-autocomplete');
this.editorMap.set("AC_NOBUTTON_DEFAULT", 'app-autocomplete');
this.editorMap.set("AC_FS_NOBUTTON_DEFAULT", 'app-autocomplete');
this.editorMap.set("LISTBOX_DEFAULT", 'app-list-box');
this.editorMap.set("LISTBOXPICKUP_DEFAULT", 'app-list-box');
this.editorMap.set("PICTURE_ONE_RAW_DEFAULT", 'app-image-select');
this.editorMap.set('MAPPICKER_DEFAULT','app-map-picker');
this.editorMap.set('ARRAY_DEFAULT','app-array-box');
this.editorMap.set('DATERANGE_DEFAULT','app-date-range-picker');
this.editorMap.set('DATERANGE_NOTIME_DEFAULT','app-date-range-picker');
this.editorMap.set('NUMBERRANGE_DEFAULT','app-number-range-picker');
this.editorMap.set('CASCADER_DEFAULT','app-cascader');
this.editorMap.set('COLORPICKER_DEFAULT','app-color-picker');
//兼容移动端编辑器
this.editorMap.set('MOBTEXT_DEFAULT','input-box');
this.editorMap.set('MOBPASSWORD_DEFAULT','input-box');
this.editorMap.set('MOBNUMBER_DEFAULT','input-box');
this.editorMap.set('MOBSTEPPER_DEFAULT','app-stepper');
this.editorMap.set('MOBTEXTAREA_DEFAULT','input-box');
this.editorMap.set('MOBSLIDER_DEFAULT','app-slider');
this.editorMap.set('MOBSWITCH_DEFAULT','app-switch');
this.editorMap.set('MOBRATING_DEFAULT','app-rate');
this.editorMap.set('MOBDATE_DEFAULT','date-picker');
this.editorMap.set('MOBHTMLTEXT_DEFAULT','app-rich-text-editor');
this.editorMap.set('MOBDROPDOWNLIST_DEFAULT','dropdown-list');
this.editorMap.set('MOBCHECKLIST_DEFAULT','app-checkbox-list');
this.editorMap.set('MOBPICKER_DEFAULT','app-picker');
this.editorMap.set('MOBMPICKER_DEFAULT','app-mpicker');
this.editorMap.set('MOBPICKER_DROPDOWNVIEW_DEFAULT','dropdown-list');
this.editorMap.set('MOBSINGLEFILEUPLOAD_DEFAULT','app-file-upload');
this.editorMap.set('MOBMULTIFILEUPLOAD_DEFAULT','app-file-upload');
this.editorMap.set('SPAN_DEFAULT','app-span');
// 预置扩展编辑器
this.editorMap.set("TEXTBOX_JSONSCHEMA", "app-json-schema");
this.editorMap.set("MDROPDOWNLIST_CRONEDITOR", "cron-editor");
this.editorMap.set("DROPDOWNLIST_HIDDEN", "dropdown-list-hidden");
this.editorMap.set("MDROPDOWNLIST_TRANSFER", "app-transfer");
this.editorMap.set("PICKER_MAPPOSITION", "app-map-position");
this.editorMap.set("FILEUPLOADER_DISK", "disk-file-upload");
this.editorMap.set("PICTURE_ROMATE", "app-image-romate");
this.editorMap.set("PICTURE_DISKPIC", "disk-image-upload");
this.editorMap.set("FILEUPLOADER_DRAG", "app-file-upload");
this.editorMap.set("PICTURE_INFO", "app-image-preview");
this.editorMap.set("FILEUPLOADER_INFO", "app-upload-file-info");
this.editorMap.set("TEXTBOX_COLORPICKER", "app-color-picker");
this.editorMap.set("TEXTBOX_ICONPICKER", "app-icon-picker");
this.editorMap.set("HTMLEDITOR_INFO", "html-container");
this.editorMap.set("TEXTAREA_WFAPPROVAL", "app-wf-approval");
this.editorMap.set("TEXTAREA_WFAPPROVALTIMELINE", "action-timeline");
this.editorMap.set("TEXTAREA_WFAPPROVALEXTENDTIMELINE", "extend-action-timeline");
this.editorMap.set("TEXTAREA_10_WFOPINION", 'app-wf-opinion');
this.editorMap.set("SPAN_AFTERTIME", "app-after-time");
this.editorMap.set("SPAN_ADDRESSPICKUP", "app-span");
this.editorMap.set("SPAN_COLORSPAN", "app-color-span");
this.editorMap.set("PICKER_ORGSELECT", "app-org-select");
this.editorMap.set("PICKER_ORGMULTIPLE", "app-org-select");
this.editorMap.set("PICKER_ALLORGSELECT", "app-org-select");
this.editorMap.set("PICKER_ALLORGMULTIPLE", "app-org-select");
this.editorMap.set("PICKER_ALLDEPTPERSONSELECT", "app-department-personnel");
this.editorMap.set("PICKER_ALLDEPTPERSONMULTIPLE", "app-department-personnel");
this.editorMap.set("PICKER_DEPTPERSONSELECT", "app-department-personnel");
this.editorMap.set("PICKER_DEPTPERSONMULTIPLE", "app-department-personnel");
this.editorMap.set("PICKER_ALLEMPSELECT", "app-group-select");
this.editorMap.set("PICKER_ALLEMPMULTIPLE", "app-group-select");
this.editorMap.set("PICKER_EMPSELECT", "app-group-select");
this.editorMap.set("PICKER_EMPMULTIPLE", "app-group-select");
this.editorMap.set("PICKER_ALLDEPATMENTSELECT", "app-department-select");
this.editorMap.set("PICKER_ALLDEPATMENTMULTIPLE", "app-department-select");
this.editorMap.set("PICKER_DEPATMENTSELECT", "app-department-select");
this.editorMap.set("PICKER_DEPATMENTMULTIPLE", "app-department-select");
this.editorMap.set("FILEUPLOADER_CAMERA", "app-file-upload-camera");
this.editorMap.set("FILEUPLOADER_USEWORKTEMP", "text-file-upload");
this.editorMap.set("PICKER_COMMONMICROCOM", "app-common-microcom");
this.editorMap.set("SLIDER_PROGRESS", 'app-progress');
// 注册编辑器
}
/**
* 获取编辑器组件
*
* @memberof AppComponentService
*/
public static getEditorComponents(editorType: string, editorStyle: string) {
let componentName = editorStyle ? this.editorMap.get(`${editorType}_${editorStyle}`) : this.editorMap.get(`${editorType}_DEFAULT`);
return componentName || 'app-not-supported-editor';
}
}