@farris/jit-engine 1.4.119 → 1.4.1120

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 (24) hide show
  1. package/lib/domstructure/ui/attachment-template/attachment-template.js +59 -0
  2. package/lib/domstructure/ui/attachment-template/attachment-template.js.map +1 -0
  3. package/lib/domstructure/ui/attachment-template/index.js +14 -0
  4. package/lib/domstructure/ui/attachment-template/index.js.map +1 -0
  5. package/lib/domstructure/ui/index.js +57 -56
  6. package/lib/domstructure/ui/index.js.map +1 -1
  7. package/lib/template/ui/kendo/attachment-template.pug +15 -0
  8. package/lib/utility/content-type-creator.js +141 -138
  9. package/lib/utility/content-type-creator.js.map +1 -1
  10. package/lib/utility/devkit/component-parameter-collector/component-attachment-template-parameter-collector.js +31 -0
  11. package/lib/utility/devkit/component-parameter-collector/component-attachment-template-parameter-collector.js.map +1 -0
  12. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js +231 -227
  13. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-manager.js.map +1 -1
  14. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js +60 -59
  15. package/lib/utility/devkit/component-parameter-collector/component-parameter-collector-type.js.map +1 -1
  16. package/lib/utility/devkit-template-config.js +594 -591
  17. package/lib/utility/devkit-template-config.js.map +1 -1
  18. package/lib/utility/template-generator/devkit/component-generator/component-attachment-template-parameter-generator.js +89 -0
  19. package/lib/utility/template-generator/devkit/component-generator/component-attachment-template-parameter-generator.js.map +1 -0
  20. package/lib/utility/template-generator/devkit/component-generator/index.js +41 -40
  21. package/lib/utility/template-generator/devkit/component-generator/index.js.map +1 -1
  22. package/lib/utility/template-generator/devkit/component-template-generator.js +534 -524
  23. package/lib/utility/template-generator/devkit/component-template-generator.js.map +1 -1
  24. package/package.json +8 -7
@@ -0,0 +1,59 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AttachmentTemplate = void 0;
4
+ const toolhepler_1 = require("../../../utility/toolhepler");
5
+ const common_1 = require("../common");
6
+ class AttachmentTemplate extends common_1.BaseComponent {
7
+ constructor(param) {
8
+ super(param);
9
+ let obj;
10
+ if (typeof param === 'string') {
11
+ obj = toolhepler_1.ToolHelper.convertToJsonOrDefault(param);
12
+ }
13
+ else {
14
+ obj = param;
15
+ }
16
+ if (!obj) {
17
+ return;
18
+ }
19
+ const keys = 'id,type,appearance,visible,rootId,fileData,columns,previewVisible,downLoadVisible,serializedExtendServerConfig';
20
+ for (const key in obj) {
21
+ if (obj[key] && keys.includes(key)) {
22
+ switch (key) {
23
+ case 'previewVisible':
24
+ case 'downLoadVisible':
25
+ this[key] = this.convertString(obj[key]);
26
+ break;
27
+ case 'columns':
28
+ if (toolhepler_1.ToolHelper.isArray(obj[key], false)) {
29
+ this.columns = obj[key];
30
+ }
31
+ break;
32
+ default:
33
+ this[key] = obj[key];
34
+ break;
35
+ }
36
+ }
37
+ }
38
+ this.serializedFileData = toolhepler_1.ToolHelper.replaceQuoteToSingle(JSON.stringify(this.fileData));
39
+ if (this.columns && this.columns.length > 0) {
40
+ this.serializedColumns = toolhepler_1.ToolHelper.replaceQuoteToSingle(JSON.stringify(this.columns));
41
+ }
42
+ this.serializedExtendServerConfig = toolhepler_1.ToolHelper.replaceQuoteToSingle(`{'rootId': '${obj.rootId}', 'formId': this.viewModel.bindingData && this.viewModel.bindingData['id']}`);
43
+ }
44
+ convertString(value) {
45
+ let visibleValue;
46
+ if (typeof value === 'boolean') {
47
+ visibleValue = value;
48
+ }
49
+ else if (typeof value === 'string') {
50
+ visibleValue = "'" + value + "'";
51
+ }
52
+ else {
53
+ visibleValue = null;
54
+ }
55
+ return visibleValue;
56
+ }
57
+ }
58
+ exports.AttachmentTemplate = AttachmentTemplate;
59
+ //# sourceMappingURL=attachment-template.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attachment-template.js","sourceRoot":"","sources":["../../../../src/domstructure/ui/attachment-template/attachment-template.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,GAAG,uBAAU,CAAC,oBAAoB,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;SACxF;QAED,IAAI,CAAC,4BAA4B,GAAG,uBAAU,CAAC,oBAAoB,CAAC,eAAe,GAAG,CAAC,MAAM,8EAA8E,CAAC,CAAC;IAC/K,CAAC;IAEO,aAAa,CAAC,KAAU;QAC9B,IAAI,YAAY,CAAC;QACjB,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;YAC9B,YAAY,GAAG,KAAK,CAAC;SACtB;aAAM,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;YACpC,YAAY,GAAG,GAAG,GAAG,KAAK,GAAG,GAAG,CAAC;SAClC;aAAM;YAEL,YAAY,GAAG,IAAI,CAAC;SACrB;QACD,OAAO,YAAY,CAAC;IACtB,CAAC;CAMF;AA3ED,gDA2EC"}
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./attachment-template"), exports);
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/domstructure/ui/attachment-template/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,wDAAsC"}
@@ -1,57 +1,58 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- __exportStar(require("./commands"), exports);
14
- __exportStar(require("./common"), exports);
15
- __exportStar(require("./container"), exports);
16
- __exportStar(require("./data"), exports);
17
- __exportStar(require("./component"), exports);
18
- __exportStar(require("./tabs"), exports);
19
- __exportStar(require("./tag"), exports);
20
- __exportStar(require("./container/sidebar"), exports);
21
- __exportStar(require("./section"), exports);
22
- __exportStar(require("./image"), exports);
23
- __exportStar(require("./farrisprogressstep"), exports);
24
- __exportStar(require("./queryScheme"), exports);
25
- __exportStar(require("./wizard"), exports);
26
- __exportStar(require("./formheader"), exports);
27
- __exportStar(require("./listview"), exports);
28
- __exportStar(require("./farrissplitter"), exports);
29
- __exportStar(require("./list-nav"), exports);
30
- __exportStar(require("./multi-select"), exports);
31
- __exportStar(require("./view-change"), exports);
32
- __exportStar(require("./farris-avatar"), exports);
33
- __exportStar(require("./list-filter"), exports);
34
- __exportStar(require("./light-listfilter"), exports);
35
- __exportStar(require("./farris-calendar"), exports);
36
- __exportStar(require("./farris-scrollspy"), exports);
37
- __exportStar(require("./farris-dynamic-control-group"), exports);
38
- __exportStar(require("./farris-file-preview"), exports);
39
- __exportStar(require("./farris-file-upload"), exports);
40
- __exportStar(require("./image-upload"), exports);
41
- __exportStar(require("./p-treetable"), exports);
42
- __exportStar(require("./discussion"), exports);
43
- __exportStar(require("./nav-tab"), exports);
44
- __exportStar(require("./tags"), exports);
45
- __exportStar(require("./portlet"), exports);
46
- __exportStar(require("./farris-ui-footer"), exports);
47
- __exportStar(require("./header"), exports);
48
- __exportStar(require("./modal-footer"), exports);
49
- __exportStar(require("./approve-logs"), exports);
50
- __exportStar(require("./oa-relation"), exports);
51
- __exportStar(require("./farris-fileupload-preview"), exports);
52
- __exportStar(require("./table"), exports);
53
- __exportStar(require("./appointment-calendar"), exports);
54
- __exportStar(require("./qr-code"), exports);
55
- __exportStar(require("./appropval-association"), exports);
56
- __exportStar(require("./static-text"), exports);
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
+ };
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ __exportStar(require("./commands"), exports);
14
+ __exportStar(require("./common"), exports);
15
+ __exportStar(require("./container"), exports);
16
+ __exportStar(require("./data"), exports);
17
+ __exportStar(require("./component"), exports);
18
+ __exportStar(require("./tabs"), exports);
19
+ __exportStar(require("./tag"), exports);
20
+ __exportStar(require("./container/sidebar"), exports);
21
+ __exportStar(require("./section"), exports);
22
+ __exportStar(require("./image"), exports);
23
+ __exportStar(require("./farrisprogressstep"), exports);
24
+ __exportStar(require("./queryScheme"), exports);
25
+ __exportStar(require("./wizard"), exports);
26
+ __exportStar(require("./formheader"), exports);
27
+ __exportStar(require("./listview"), exports);
28
+ __exportStar(require("./farrissplitter"), exports);
29
+ __exportStar(require("./list-nav"), exports);
30
+ __exportStar(require("./multi-select"), exports);
31
+ __exportStar(require("./view-change"), exports);
32
+ __exportStar(require("./farris-avatar"), exports);
33
+ __exportStar(require("./list-filter"), exports);
34
+ __exportStar(require("./light-listfilter"), exports);
35
+ __exportStar(require("./farris-calendar"), exports);
36
+ __exportStar(require("./farris-scrollspy"), exports);
37
+ __exportStar(require("./farris-dynamic-control-group"), exports);
38
+ __exportStar(require("./farris-file-preview"), exports);
39
+ __exportStar(require("./farris-file-upload"), exports);
40
+ __exportStar(require("./image-upload"), exports);
41
+ __exportStar(require("./p-treetable"), exports);
42
+ __exportStar(require("./discussion"), exports);
43
+ __exportStar(require("./nav-tab"), exports);
44
+ __exportStar(require("./tags"), exports);
45
+ __exportStar(require("./portlet"), exports);
46
+ __exportStar(require("./farris-ui-footer"), exports);
47
+ __exportStar(require("./header"), exports);
48
+ __exportStar(require("./modal-footer"), exports);
49
+ __exportStar(require("./approve-logs"), exports);
50
+ __exportStar(require("./oa-relation"), exports);
51
+ __exportStar(require("./farris-fileupload-preview"), exports);
52
+ __exportStar(require("./table"), exports);
53
+ __exportStar(require("./appointment-calendar"), exports);
54
+ __exportStar(require("./qr-code"), exports);
55
+ __exportStar(require("./appropval-association"), exports);
56
+ __exportStar(require("./static-text"), exports);
57
+ __exportStar(require("./attachment-template"), exports);
57
58
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domstructure/ui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,sDAAoC;AACpC,4CAA0B;AAC1B,0CAAwB;AACxB,uDAAqC;AACrC,gDAA8B;AAC9B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,kDAAgC;AAChC,gDAA8B;AAC9B,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,iEAA+C;AAC/C,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB;AACvB,4CAA0B;AAC1B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,8DAA4C;AAC5C,0CAAwB;AACxB,yDAAuC;AACvC,4CAA0B;AAC1B,0DAAwC;AACxC,gDAA8B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/domstructure/ui/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2B;AAC3B,2CAAyB;AACzB,8CAA4B;AAC5B,yCAAuB;AACvB,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,sDAAoC;AACpC,4CAA0B;AAC1B,0CAAwB;AACxB,uDAAqC;AACrC,gDAA8B;AAC9B,2CAAyB;AACzB,+CAA6B;AAC7B,6CAA2B;AAC3B,mDAAiC;AACjC,6CAA2B;AAC3B,iDAA+B;AAC/B,gDAA8B;AAC9B,kDAAgC;AAChC,gDAA8B;AAC9B,qDAAmC;AACnC,oDAAkC;AAClC,qDAAmC;AACnC,iEAA+C;AAC/C,wDAAsC;AACtC,uDAAqC;AACrC,iDAA+B;AAC/B,gDAA8B;AAC9B,+CAA6B;AAC7B,4CAA0B;AAC1B,yCAAuB;AACvB,4CAA0B;AAC1B,qDAAmC;AACnC,2CAAyB;AACzB,iDAA+B;AAC/B,iDAA+B;AAC/B,gDAA8B;AAC9B,8DAA4C;AAC5C,0CAAwB;AACxB,yDAAuC;AACvC,4CAA0B;AAC1B,0DAAwC;AACxC,gDAA8B;AAC9B,wDAAsC"}
@@ -0,0 +1,15 @@
1
+ f-file-upload-and-preview(
2
+ id = variable.replacedId
3
+ class = "d-block mx-3 " + (variable.appearance && variable.appearance.class ? variable.appearance.class : "")
4
+ style = (variable.appearance && variable.appearance.style ? variable.appearance.style : undefined)
5
+ fFilePreviewAdaptUnifile
6
+ '[fileInfos]' = variable.serializedFileData
7
+ '[previewReadonly]' != variable.previewReadonly
8
+ '[uploadVisible]' = 'false'
9
+ '[previewEnableMulti]' = 'true'
10
+ '[previewShowType]' = "'list'"
11
+ '[previewVisible]' != variable.previewVisible
12
+ '[previewEnableRename]' = 'false'
13
+ '[previewColumns]' != variable.serializedColumns
14
+ '[extendServerConfig]' != variable.serializedExtendServerConfig
15
+ )
@@ -1,139 +1,142 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ContentTypeCreator = void 0;
4
- const tab_type_creator_factory_1 = require("./devkit/tab-type-creator-factory");
5
- const datagrid_type_creator_factory_1 = require("./devkit/datagrid-type-creator-factory");
6
- const checkgroup_type_creator_factory_1 = require("./devkit/checkgroup-type-creator-factory");
7
- const switch_type_creator_factory_1 = require("./devkit/switch-type-creator-factory");
8
- const lookup_type_creator_factory_1 = require("./devkit/lookup-type-creator-factory");
9
- const datebox_type_creator_factory_1 = require("./devkit/datebox-type-creator-factory");
10
- const enumfield_type_creator_1 = require("./devkit/enumfield-type-creator");
11
- const treegrid_type_creator_factory_1 = require("./devkit/treegrid-type-creator-factory");
12
- const richtextbox_type_creator_factory_1 = require("./devkit/richtextbox-type-creator-factory");
13
- const list_filter_type_creator_factory_1 = require("./devkit/list-filter-type-creator-factory");
14
- class ContentTypeCreator {
15
- static create(contentType, controlSource, controlItem) {
16
- let result = contentType;
17
- if (tab_type_creator_factory_1.TabTypeCreatorFactory.isTab(contentType) == true) {
18
- const generatedTabType = tab_type_creator_factory_1.TabTypeCreatorFactory.create(contentType, controlSource);
19
- if (generatedTabType) {
20
- contentType = generatedTabType;
21
- result = generatedTabType;
22
- }
23
- }
24
- else if (datagrid_type_creator_factory_1.DataGridTypeCreatorFactory.isDataGrid(contentType) == true) {
25
- const generatedDataGridType = datagrid_type_creator_factory_1.DataGridTypeCreatorFactory.create(contentType, controlSource);
26
- if (generatedDataGridType) {
27
- contentType = generatedDataGridType;
28
- result = generatedDataGridType;
29
- }
30
- }
31
- else if (checkgroup_type_creator_factory_1.CheckGroupTypeCreatorFactory.isCheckGroup(contentType) == true) {
32
- const generatedCheckGroupType = checkgroup_type_creator_factory_1.CheckGroupTypeCreatorFactory.create(contentType, controlSource);
33
- if (generatedCheckGroupType) {
34
- contentType = generatedCheckGroupType;
35
- result = generatedCheckGroupType;
36
- }
37
- }
38
- else if (switch_type_creator_factory_1.SwitchTypeCreatorFactory.isSwitch(contentType) == true) {
39
- const generatedSwitchType = switch_type_creator_factory_1.SwitchTypeCreatorFactory.create(contentType, controlSource);
40
- if (generatedSwitchType) {
41
- contentType = generatedSwitchType;
42
- result = generatedSwitchType;
43
- }
44
- }
45
- else if (lookup_type_creator_factory_1.LookupTypeCreatorFactory.isLookup(contentType) == true && controlItem) {
46
- const generatedLookupType = lookup_type_creator_factory_1.LookupTypeCreatorFactory.create(contentType, controlItem.lookupStyle);
47
- if (generatedLookupType) {
48
- result = generatedLookupType;
49
- }
50
- }
51
- else if (datebox_type_creator_factory_1.DateBoxTypeCreatorFactory.isDateBox(contentType) == true) {
52
- const dateBoxType = datebox_type_creator_factory_1.DateBoxTypeCreatorFactory.create(contentType, controlSource);
53
- if (dateBoxType) {
54
- result = dateBoxType;
55
- }
56
- }
57
- else if (enumfield_type_creator_1.EnumFieldTypeCreatorFactory.isEnumField(contentType)) {
58
- const enumFieldType = enumfield_type_creator_1.EnumFieldTypeCreatorFactory.create(contentType, controlSource);
59
- if (enumFieldType) {
60
- result = enumFieldType;
61
- }
62
- }
63
- else if (treegrid_type_creator_factory_1.TreeGridTypeCreatorFactory.isTreeGrid(contentType)) {
64
- const treeGridType = treegrid_type_creator_factory_1.TreeGridTypeCreatorFactory.create(contentType, controlSource);
65
- if (treeGridType) {
66
- result = treeGridType;
67
- }
68
- }
69
- else if (richtextbox_type_creator_factory_1.RichTextBoxTypeCreatorFactory.isRichTextBox(contentType)) {
70
- const richTextBoxType = richtextbox_type_creator_factory_1.RichTextBoxTypeCreatorFactory.create(contentType, controlSource);
71
- if (richTextBoxType) {
72
- result = richTextBoxType;
73
- }
74
- }
75
- else if (list_filter_type_creator_factory_1.ListFilterTypeCreatorFactory.isListFilter(contentType)) {
76
- const listFilterType = list_filter_type_creator_factory_1.ListFilterTypeCreatorFactory.create(contentType, controlSource);
77
- if (listFilterType) {
78
- result = listFilterType;
79
- }
80
- }
81
- if (contentType == "Sidebar") {
82
- result = "FarrisSideBar";
83
- }
84
- if (contentType == "Steps") {
85
- result = "FarrisProgressStep";
86
- }
87
- if (contentType == "Avatar") {
88
- result = "FarrisAvatar";
89
- }
90
- if (contentType == "Calendar") {
91
- result = "FarrisCalendar";
92
- }
93
- if (contentType == "NumberSpinner") {
94
- result = "FarrisNumberSpinner";
95
- }
96
- if (contentType == "NumberRange") {
97
- result = "FarrisNumberRange";
98
- }
99
- if (contentType == "ComboLookup") {
100
- result = "FarrisComboLookup";
101
- }
102
- if (controlItem && contentType == "LookupEdit" && controlItem.lookupStyle == "combolist") {
103
- result = "FarrisComboLookup";
104
- }
105
- if (contentType == "NumericBox" && controlSource == "Farris") {
106
- result = "FarrisNumberSpinner";
107
- }
108
- if (contentType == "Scrollspy") {
109
- result = "FarrisScrollspy";
110
- }
111
- if (contentType == "DynamicControlGroup") {
112
- result = "FarrisDynamicControlGroup";
113
- }
114
- if (contentType == "Footer") {
115
- result = "FarrisUIFooter";
116
- }
117
- if (contentType == "FileUpload") {
118
- result = "FarrisFileUpload";
119
- }
120
- if (contentType == "FilePreview") {
121
- result = "FarrisFilePreview";
122
- }
123
- if (contentType == "FileUploadPreview") {
124
- result = "FarrisFileUploadAndPreview";
125
- }
126
- if (contentType == "ApprovalAssociation") {
127
- result = "FarrisApprovalAssociation";
128
- }
129
- if (contentType === "Table") {
130
- result = "FarrisTable";
131
- }
132
- if (["PersonnelSelector", "PersonnelScopeSelector"].includes(contentType)) {
133
- result = "PersonnelSelector";
134
- }
135
- return result;
136
- }
137
- }
138
- exports.ContentTypeCreator = ContentTypeCreator;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ContentTypeCreator = void 0;
4
+ const checkgroup_type_creator_factory_1 = require("./devkit/checkgroup-type-creator-factory");
5
+ const datagrid_type_creator_factory_1 = require("./devkit/datagrid-type-creator-factory");
6
+ const datebox_type_creator_factory_1 = require("./devkit/datebox-type-creator-factory");
7
+ const enumfield_type_creator_1 = require("./devkit/enumfield-type-creator");
8
+ const list_filter_type_creator_factory_1 = require("./devkit/list-filter-type-creator-factory");
9
+ const lookup_type_creator_factory_1 = require("./devkit/lookup-type-creator-factory");
10
+ const richtextbox_type_creator_factory_1 = require("./devkit/richtextbox-type-creator-factory");
11
+ const switch_type_creator_factory_1 = require("./devkit/switch-type-creator-factory");
12
+ const tab_type_creator_factory_1 = require("./devkit/tab-type-creator-factory");
13
+ const treegrid_type_creator_factory_1 = require("./devkit/treegrid-type-creator-factory");
14
+ class ContentTypeCreator {
15
+ static create(contentType, controlSource, controlItem) {
16
+ let result = contentType;
17
+ if (tab_type_creator_factory_1.TabTypeCreatorFactory.isTab(contentType) == true) {
18
+ const generatedTabType = tab_type_creator_factory_1.TabTypeCreatorFactory.create(contentType, controlSource);
19
+ if (generatedTabType) {
20
+ contentType = generatedTabType;
21
+ result = generatedTabType;
22
+ }
23
+ }
24
+ else if (datagrid_type_creator_factory_1.DataGridTypeCreatorFactory.isDataGrid(contentType) == true) {
25
+ const generatedDataGridType = datagrid_type_creator_factory_1.DataGridTypeCreatorFactory.create(contentType, controlSource);
26
+ if (generatedDataGridType) {
27
+ contentType = generatedDataGridType;
28
+ result = generatedDataGridType;
29
+ }
30
+ }
31
+ else if (checkgroup_type_creator_factory_1.CheckGroupTypeCreatorFactory.isCheckGroup(contentType) == true) {
32
+ const generatedCheckGroupType = checkgroup_type_creator_factory_1.CheckGroupTypeCreatorFactory.create(contentType, controlSource);
33
+ if (generatedCheckGroupType) {
34
+ contentType = generatedCheckGroupType;
35
+ result = generatedCheckGroupType;
36
+ }
37
+ }
38
+ else if (switch_type_creator_factory_1.SwitchTypeCreatorFactory.isSwitch(contentType) == true) {
39
+ const generatedSwitchType = switch_type_creator_factory_1.SwitchTypeCreatorFactory.create(contentType, controlSource);
40
+ if (generatedSwitchType) {
41
+ contentType = generatedSwitchType;
42
+ result = generatedSwitchType;
43
+ }
44
+ }
45
+ else if (lookup_type_creator_factory_1.LookupTypeCreatorFactory.isLookup(contentType) == true && controlItem) {
46
+ const generatedLookupType = lookup_type_creator_factory_1.LookupTypeCreatorFactory.create(contentType, controlItem.lookupStyle);
47
+ if (generatedLookupType) {
48
+ result = generatedLookupType;
49
+ }
50
+ }
51
+ else if (datebox_type_creator_factory_1.DateBoxTypeCreatorFactory.isDateBox(contentType) == true) {
52
+ const dateBoxType = datebox_type_creator_factory_1.DateBoxTypeCreatorFactory.create(contentType, controlSource);
53
+ if (dateBoxType) {
54
+ result = dateBoxType;
55
+ }
56
+ }
57
+ else if (enumfield_type_creator_1.EnumFieldTypeCreatorFactory.isEnumField(contentType)) {
58
+ const enumFieldType = enumfield_type_creator_1.EnumFieldTypeCreatorFactory.create(contentType, controlSource);
59
+ if (enumFieldType) {
60
+ result = enumFieldType;
61
+ }
62
+ }
63
+ else if (treegrid_type_creator_factory_1.TreeGridTypeCreatorFactory.isTreeGrid(contentType)) {
64
+ const treeGridType = treegrid_type_creator_factory_1.TreeGridTypeCreatorFactory.create(contentType, controlSource);
65
+ if (treeGridType) {
66
+ result = treeGridType;
67
+ }
68
+ }
69
+ else if (richtextbox_type_creator_factory_1.RichTextBoxTypeCreatorFactory.isRichTextBox(contentType)) {
70
+ const richTextBoxType = richtextbox_type_creator_factory_1.RichTextBoxTypeCreatorFactory.create(contentType, controlSource);
71
+ if (richTextBoxType) {
72
+ result = richTextBoxType;
73
+ }
74
+ }
75
+ else if (list_filter_type_creator_factory_1.ListFilterTypeCreatorFactory.isListFilter(contentType)) {
76
+ const listFilterType = list_filter_type_creator_factory_1.ListFilterTypeCreatorFactory.create(contentType, controlSource);
77
+ if (listFilterType) {
78
+ result = listFilterType;
79
+ }
80
+ }
81
+ if (contentType == "Sidebar") {
82
+ result = "FarrisSideBar";
83
+ }
84
+ if (contentType == "Steps") {
85
+ result = "FarrisProgressStep";
86
+ }
87
+ if (contentType == "Avatar") {
88
+ result = "FarrisAvatar";
89
+ }
90
+ if (contentType == "Calendar") {
91
+ result = "FarrisCalendar";
92
+ }
93
+ if (contentType == "NumberSpinner") {
94
+ result = "FarrisNumberSpinner";
95
+ }
96
+ if (contentType == "NumberRange") {
97
+ result = "FarrisNumberRange";
98
+ }
99
+ if (contentType == "ComboLookup") {
100
+ result = "FarrisComboLookup";
101
+ }
102
+ if (controlItem && contentType == "LookupEdit" && controlItem.lookupStyle == "combolist") {
103
+ result = "FarrisComboLookup";
104
+ }
105
+ if (contentType == "NumericBox" && controlSource == "Farris") {
106
+ result = "FarrisNumberSpinner";
107
+ }
108
+ if (contentType == "Scrollspy") {
109
+ result = "FarrisScrollspy";
110
+ }
111
+ if (contentType == "DynamicControlGroup") {
112
+ result = "FarrisDynamicControlGroup";
113
+ }
114
+ if (contentType == "Footer") {
115
+ result = "FarrisUIFooter";
116
+ }
117
+ if (contentType == "FileUpload") {
118
+ result = "FarrisFileUpload";
119
+ }
120
+ if (contentType == "FilePreview") {
121
+ result = "FarrisFilePreview";
122
+ }
123
+ if (contentType == "FileUploadPreview") {
124
+ result = "FarrisFileUploadAndPreview";
125
+ }
126
+ if (contentType == "ApprovalAssociation") {
127
+ result = "FarrisApprovalAssociation";
128
+ }
129
+ if (contentType === "Table") {
130
+ result = "FarrisTable";
131
+ }
132
+ if (["PersonnelSelector", "PersonnelScopeSelector"].includes(contentType)) {
133
+ result = "PersonnelSelector";
134
+ }
135
+ if (["AttachmentTemplate"].includes(contentType)) {
136
+ result = "AttachmentTemplate";
137
+ }
138
+ return result;
139
+ }
140
+ }
141
+ exports.ContentTypeCreator = ContentTypeCreator;
139
142
  //# sourceMappingURL=content-type-creator.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"content-type-creator.js","sourceRoot":"","sources":["../../src/utility/content-type-creator.ts"],"names":[],"mappings":";;;AAAA,gFAA0E;AAC1E,0FAAoF;AACpF,8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AG,mBAAmB,CAAC;SAChC;QAED,IAAI,WAAW,IAAI,YAAY,IAAI,aAAa,IAAI,QAAQ,EAAE;YAC1D,MAAM,GAAG,qBAAqB,CAAC;SAClC;QAED,IAAI,WAAW,IAAI,WAAW,EAAE;YAC5B,MAAM,GAAG,iBAAiB,CAAC;SAC9B;QACD,IAAI,WAAW,IAAI,qBAAqB,EAAE;YACtC,MAAM,GAAG,2BAA2B,CAAC;SACxC;QAED,IAAI,WAAW,IAAI,QAAQ,EAAE;YACzB,MAAM,GAAG,gBAAgB,CAAC;SAC7B;QAED,IAAI,WAAW,IAAI,YAAY,EAAE;YAC7B,MAAM,GAAG,kBAAkB,CAAC;SAC/B;QACD,IAAI,WAAW,IAAI,aAAa,EAAE;YAC9B,MAAM,GAAG,mBAAmB,CAAC;SAChC;QACD,IAAI,WAAW,IAAI,mBAAmB,EAAE;YACpC,MAAM,GAAG,4BAA4B,CAAC;SACzC;QACD,IAAI,WAAW,IAAI,qBAAqB,EAAE;YACtC,MAAM,GAAG,2BAA2B,CAAC;SACxC;QAED,IAAI,WAAW,KAAK,OAAO,EAAE;YACzB,MAAM,GAAG,aAAa,CAAC;SAC1B;QAED,IAAI,CAAC,mBAAmB,EAAE,wBAAwB,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YACvE,MAAM,GAAG,mBAAmB,CAAC;SAChC;QAED,IAAI,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE;YAC9C,MAAM,GAAG,oBAAoB,CAAC;SACjC;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AA3JD,gDA2JC"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComponentAttachmentTemplateParameterCollector = void 0;
4
+ const abstract_component_parameter_collector_1 = require("./abstract-component-parameter-collector");
5
+ class ComponentAttachmentTemplateParameterCollector extends abstract_component_parameter_collector_1.AbstractComponentParameterCollector {
6
+ collect(value, _options) {
7
+ const componentAttachmentTemplateParameters = [];
8
+ this.collectAttachmentTemplate(value, componentAttachmentTemplateParameters);
9
+ return componentAttachmentTemplateParameters;
10
+ }
11
+ collectAttachmentTemplate(component, attachmentTemplates) {
12
+ const contents = component.contents;
13
+ if (contents && contents.length) {
14
+ contents.forEach((element) => {
15
+ this.collectAttachmentTemplate(element, attachmentTemplates);
16
+ });
17
+ }
18
+ if (component && component.type == 'attachmentTemplate') {
19
+ const attachmentTemplateParameter = {
20
+ id: component.id,
21
+ fileData: component.fileData || [],
22
+ columns: component.columns || [],
23
+ rootId: component.rootId || 'default-root',
24
+ serializedExtendServerConfig: component.rootId ? `{'rootId': '${component.rootId}', 'formId': this.viewModel.bindingData && this.viewModel.bindingData['id']}` : undefined
25
+ };
26
+ attachmentTemplates.push(attachmentTemplateParameter);
27
+ }
28
+ }
29
+ }
30
+ exports.ComponentAttachmentTemplateParameterCollector = ComponentAttachmentTemplateParameterCollector;
31
+ //# sourceMappingURL=component-attachment-template-parameter-collector.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"component-attachment-template-parameter-collector.js","sourceRoot":"","sources":["../../../../src/utility/devkit/component-parameter-collector/component-attachment-template-parameter-collector.ts"],"names":[],"mappings":";;;AAAA,qGAA+F;AAY/F,MAAa,6CAA8C,SAAQ,4EAAmC;IAClG,OAAO,CAAC,KAAU,EAAE,QAA6C;QAC7D,MAAM,qCAAqC,GAAU,EAAE,CAAC;QACxD,IAAI,CAAC,yBAAyB,CAAC,KAAK,EAAE,qCAAqC,CAAC,CAAC;QAC7E,OAAO,qCAAqC,CAAC;IACjD,CAAC;IAEO,yBAAyB,CAAC,SAAc,EAAE,mBAA0B;QACxE,MAAM,QAAQ,GAAG,SAAS,CAAC,QAAQ,CAAC;QACpC,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,EAAE;YAC7B,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAY,EAAE,EAAE;gBAC9B,IAAI,CAAC,yBAAyB,CAAC,OAAO,EAAE,mBAAmB,CAAC,CAAC;YACjE,CAAC,CAAC,CAAC;SACN;QAED,IAAI,SAAS,IAAI,SAAS,CAAC,IAAI,IAAI,oBAAoB,EAAE;YACrD,MAAM,2BAA2B,GAAG;gBAChC,EAAE,EAAE,SAAS,CAAC,EAAE;gBAChB,QAAQ,EAAE,SAAS,CAAC,QAAQ,IAAI,EAAE;gBAClC,OAAO,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE;gBAChC,MAAM,EAAE,SAAS,CAAC,MAAM,IAAI,cAAc;gBAC1C,4BAA4B,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,eAAe,SAAS,CAAC,MAAM,8EAA8E,CAAC,CAAC,CAAC,SAAS;aAC7K,CAAC;YACF,mBAAmB,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;SACzD;IACL,CAAC;CACJ;AA1BD,sGA0BC"}