@messaia/cdk-cms 22.0.0-rc.1 → 22.0.0-rc.4
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.
- package/fesm2022/messaia-cdk-cms.mjs +138 -213
- package/fesm2022/messaia-cdk-cms.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -19,7 +19,7 @@ import { MatFormFieldModule } from '@angular/material/form-field';
|
|
|
19
19
|
import * as i5 from '@tinymce/tinymce-angular';
|
|
20
20
|
import { EditorModule } from '@tinymce/tinymce-angular';
|
|
21
21
|
import { of, map as map$1 } from 'rxjs';
|
|
22
|
-
import { __decorate
|
|
22
|
+
import { __decorate } from 'tslib';
|
|
23
23
|
import { map } from 'rxjs/operators';
|
|
24
24
|
import * as i3$1 from '@angular/material/dialog';
|
|
25
25
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
@@ -114,12 +114,10 @@ class ContentClient {
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
__decorate([
|
|
117
|
-
prop()
|
|
118
|
-
__metadata("design:type", Number)
|
|
117
|
+
prop()
|
|
119
118
|
], ContentClient.prototype, "contentId", void 0);
|
|
120
119
|
__decorate([
|
|
121
|
-
required()
|
|
122
|
-
__metadata("design:type", Number)
|
|
120
|
+
required()
|
|
123
121
|
], ContentClient.prototype, "clientId", void 0);
|
|
124
122
|
|
|
125
123
|
/**
|
|
@@ -151,12 +149,10 @@ class ContentDepartment {
|
|
|
151
149
|
}
|
|
152
150
|
}
|
|
153
151
|
__decorate([
|
|
154
|
-
prop()
|
|
155
|
-
__metadata("design:type", Number)
|
|
152
|
+
prop()
|
|
156
153
|
], ContentDepartment.prototype, "contentId", void 0);
|
|
157
154
|
__decorate([
|
|
158
|
-
required()
|
|
159
|
-
__metadata("design:type", Number)
|
|
155
|
+
required()
|
|
160
156
|
], ContentDepartment.prototype, "departmentId", void 0);
|
|
161
157
|
|
|
162
158
|
let Content = class Content extends AuditEntity {
|
|
@@ -258,50 +254,42 @@ let Content = class Content extends AuditEntity {
|
|
|
258
254
|
departmentJoins;
|
|
259
255
|
};
|
|
260
256
|
__decorate([
|
|
261
|
-
prop()
|
|
262
|
-
__metadata("design:type", Number)
|
|
257
|
+
prop()
|
|
263
258
|
], Content.prototype, "type", void 0);
|
|
264
259
|
__decorate([
|
|
265
|
-
prop()
|
|
266
|
-
__metadata("design:type", Number)
|
|
260
|
+
prop()
|
|
267
261
|
], Content.prototype, "sectionId", void 0);
|
|
268
262
|
__decorate([
|
|
269
263
|
required(),
|
|
270
264
|
Column(),
|
|
271
265
|
FormField({ row: 20 }),
|
|
272
|
-
Display($localize `:@@title:Title`)
|
|
273
|
-
__metadata("design:type", String)
|
|
266
|
+
Display($localize `:@@title:Title`)
|
|
274
267
|
], Content.prototype, "title", void 0);
|
|
275
268
|
__decorate([
|
|
276
269
|
required(),
|
|
277
270
|
Column({ maxWidth: 190, display: Grid.Md }),
|
|
278
271
|
FormField({ row: 30 }),
|
|
279
|
-
Display($localize `:@@name:Name`)
|
|
280
|
-
__metadata("design:type", String)
|
|
272
|
+
Display($localize `:@@name:Name`)
|
|
281
273
|
], Content.prototype, "name", void 0);
|
|
282
274
|
__decorate([
|
|
283
275
|
prop(),
|
|
284
276
|
FormField({ row: 40, type: FormFieldType.Chips }),
|
|
285
|
-
Display($localize `:@@aliases:Aliases`)
|
|
286
|
-
__metadata("design:type", String)
|
|
277
|
+
Display($localize `:@@aliases:Aliases`)
|
|
287
278
|
], Content.prototype, "aliases", void 0);
|
|
288
279
|
__decorate([
|
|
289
280
|
prop(),
|
|
290
281
|
FormField({ row: 50 }),
|
|
291
|
-
Display($localize `:@@wrap:Wrap`)
|
|
292
|
-
__metadata("design:type", String)
|
|
282
|
+
Display($localize `:@@wrap:Wrap`)
|
|
293
283
|
], Content.prototype, "wrapTag", void 0);
|
|
294
284
|
__decorate([
|
|
295
285
|
prop(),
|
|
296
286
|
FormField({ row: 50 }),
|
|
297
|
-
Display($localize `:@@layout:Layout`)
|
|
298
|
-
__metadata("design:type", String)
|
|
287
|
+
Display($localize `:@@layout:Layout`)
|
|
299
288
|
], Content.prototype, "layout", void 0);
|
|
300
289
|
__decorate([
|
|
301
290
|
prop(),
|
|
302
291
|
FormField({ row: 60, type: FormFieldType.Editor }),
|
|
303
|
-
Display($localize `:@@content:Content`)
|
|
304
|
-
__metadata("design:type", String)
|
|
292
|
+
Display($localize `:@@content:Content`)
|
|
305
293
|
], Content.prototype, "body", void 0);
|
|
306
294
|
__decorate([
|
|
307
295
|
prop(),
|
|
@@ -310,8 +298,7 @@ __decorate([
|
|
|
310
298
|
type: FormFieldType.TextArea,
|
|
311
299
|
hint: $localize `:@@scriptHint:Do not include <script> tags.`
|
|
312
300
|
}),
|
|
313
|
-
Display($localize `:@@bodyScript:Body Script`)
|
|
314
|
-
__metadata("design:type", String)
|
|
301
|
+
Display($localize `:@@bodyScript:Body Script`)
|
|
315
302
|
], Content.prototype, "script", void 0);
|
|
316
303
|
__decorate([
|
|
317
304
|
prop(),
|
|
@@ -320,8 +307,7 @@ __decorate([
|
|
|
320
307
|
type: FormFieldType.TextArea,
|
|
321
308
|
hint: $localize `:@@headScriptHint:Do not include <script> tags.`
|
|
322
309
|
}),
|
|
323
|
-
Display($localize `:@@headScript:Head Script`)
|
|
324
|
-
__metadata("design:type", String)
|
|
310
|
+
Display($localize `:@@headScript:Head Script`)
|
|
325
311
|
], Content.prototype, "headScript", void 0);
|
|
326
312
|
__decorate([
|
|
327
313
|
prop(),
|
|
@@ -330,8 +316,7 @@ __decorate([
|
|
|
330
316
|
type: FormFieldType.TextArea,
|
|
331
317
|
hint: $localize `:@@noScriptHint:Do not include <noscript> tags.`
|
|
332
318
|
}),
|
|
333
|
-
Display($localize `:@@noScript:NoScript`)
|
|
334
|
-
__metadata("design:type", String)
|
|
319
|
+
Display($localize `:@@noScript:NoScript`)
|
|
335
320
|
], Content.prototype, "noScript", void 0);
|
|
336
321
|
__decorate([
|
|
337
322
|
prop(),
|
|
@@ -340,14 +325,12 @@ __decorate([
|
|
|
340
325
|
type: FormFieldType.TextArea,
|
|
341
326
|
hint: $localize `:@@styleHint:Do not include <style> or <link> tags.`
|
|
342
327
|
}),
|
|
343
|
-
Display($localize `:@@style:Style`)
|
|
344
|
-
__metadata("design:type", String)
|
|
328
|
+
Display($localize `:@@style:Style`)
|
|
345
329
|
], Content.prototype, "style", void 0);
|
|
346
330
|
__decorate([
|
|
347
331
|
prop(),
|
|
348
332
|
FormField({ row: 200 }),
|
|
349
|
-
Display($localize `:@@showTitle:Show title`)
|
|
350
|
-
__metadata("design:type", Boolean)
|
|
333
|
+
Display($localize `:@@showTitle:Show title`)
|
|
351
334
|
], Content.prototype, "showTitle", void 0);
|
|
352
335
|
__decorate([
|
|
353
336
|
prop(),
|
|
@@ -356,8 +339,7 @@ __decorate([
|
|
|
356
339
|
event: 'toggle'
|
|
357
340
|
}),
|
|
358
341
|
FormField({ row: 210 }),
|
|
359
|
-
Display($localize `:@@enabled:Enabled`)
|
|
360
|
-
__metadata("design:type", Boolean)
|
|
342
|
+
Display($localize `:@@enabled:Enabled`)
|
|
361
343
|
], Content.prototype, "enabled", void 0);
|
|
362
344
|
__decorate([
|
|
363
345
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -385,8 +367,7 @@ __decorate([
|
|
|
385
367
|
optionTemplate: (x) => x?.clientName,
|
|
386
368
|
triggerMapper: (x) => x?.clientName
|
|
387
369
|
}),
|
|
388
|
-
Display($localize `:@@projects:Projects`)
|
|
389
|
-
__metadata("design:type", Array)
|
|
370
|
+
Display($localize `:@@projects:Projects`)
|
|
390
371
|
], Content.prototype, "clientJoins", void 0);
|
|
391
372
|
__decorate([
|
|
392
373
|
prop(),
|
|
@@ -415,8 +396,7 @@ __decorate([
|
|
|
415
396
|
optionTemplate: (x) => x?.departmentName,
|
|
416
397
|
triggerMapper: (x) => x?.departmentName
|
|
417
398
|
}),
|
|
418
|
-
Display($localize `:@@departments:Departments`)
|
|
419
|
-
__metadata("design:type", Array)
|
|
399
|
+
Display($localize `:@@departments:Departments`)
|
|
420
400
|
], Content.prototype, "departmentJoins", void 0);
|
|
421
401
|
Content = __decorate([
|
|
422
402
|
Api('content'),
|
|
@@ -767,8 +747,7 @@ __decorate([
|
|
|
767
747
|
readonly: (x) => (x.id ?? 0) > 0,
|
|
768
748
|
hide: (_, __, ctx) => ctx?.currentUser?.isDepartmentAdmin
|
|
769
749
|
}),
|
|
770
|
-
Display($localize `:@@project:Project`)
|
|
771
|
-
__metadata("design:type", Number)
|
|
750
|
+
Display($localize `:@@project:Project`)
|
|
772
751
|
], Document.prototype, "clientId", void 0);
|
|
773
752
|
__decorate([
|
|
774
753
|
prop(),
|
|
@@ -789,12 +768,10 @@ __decorate([
|
|
|
789
768
|
readonly: (x) => (x.id ?? 0) > 0 || !x.clientId,
|
|
790
769
|
hide: (_, __, ctx) => ctx?.currentUser?.isDepartmentAdmin
|
|
791
770
|
}),
|
|
792
|
-
Display($localize `:@@department:Department`)
|
|
793
|
-
__metadata("design:type", Number)
|
|
771
|
+
Display($localize `:@@department:Department`)
|
|
794
772
|
], Document.prototype, "departmentId", void 0);
|
|
795
773
|
__decorate([
|
|
796
|
-
required()
|
|
797
|
-
__metadata("design:type", String)
|
|
774
|
+
required()
|
|
798
775
|
], Document.prototype, "path", void 0);
|
|
799
776
|
Document = __decorate([
|
|
800
777
|
Table({
|
|
@@ -802,42 +779,9 @@ Document = __decorate([
|
|
|
802
779
|
projection: ['id', 'createdDate', 'name', 'extension', 'publicLink', 'isEditable', 'isDeletable'],
|
|
803
780
|
editable: false,
|
|
804
781
|
downloadable: true
|
|
805
|
-
})
|
|
806
|
-
__metadata("design:paramtypes", [Object])
|
|
782
|
+
})
|
|
807
783
|
], Document);
|
|
808
784
|
|
|
809
|
-
class DocumentGenericService extends GenericService {
|
|
810
|
-
/**
|
|
811
|
-
* Constructor
|
|
812
|
-
* @param serviceName
|
|
813
|
-
*/
|
|
814
|
-
constructor(serviceName) {
|
|
815
|
-
super(serviceName);
|
|
816
|
-
}
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
class DocumentService extends DocumentGenericService {
|
|
820
|
-
/**
|
|
821
|
-
* Constructor
|
|
822
|
-
*/
|
|
823
|
-
constructor() {
|
|
824
|
-
super('document');
|
|
825
|
-
}
|
|
826
|
-
/**
|
|
827
|
-
* Sends an email to the customer
|
|
828
|
-
* @param id The ID of the document
|
|
829
|
-
*/
|
|
830
|
-
sendMail(id) {
|
|
831
|
-
return this.update(`sendMail/${id}`, null);
|
|
832
|
-
}
|
|
833
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
834
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
835
|
-
}
|
|
836
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, decorators: [{
|
|
837
|
-
type: Injectable,
|
|
838
|
-
args: [{ providedIn: 'root' }]
|
|
839
|
-
}], ctorParameters: () => [] });
|
|
840
|
-
|
|
841
785
|
const DocumentFormTemplate = /* html */ `
|
|
842
786
|
<div mat-dialog-title class="mat-headline-6" i18n="@@newDocument">New document</div>
|
|
843
787
|
@if(form){
|
|
@@ -939,6 +883,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
939
883
|
type: Directive
|
|
940
884
|
}], ctorParameters: () => [{ type: i0.Type }, { type: undefined }, { type: i2.FileService }, { type: i3$1.MatDialogRef }, { type: undefined }] });
|
|
941
885
|
|
|
886
|
+
class DocumentGenericService extends GenericService {
|
|
887
|
+
/**
|
|
888
|
+
* Constructor
|
|
889
|
+
* @param serviceName
|
|
890
|
+
*/
|
|
891
|
+
constructor(serviceName) {
|
|
892
|
+
super(serviceName);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
class DocumentService extends DocumentGenericService {
|
|
897
|
+
/**
|
|
898
|
+
* Constructor
|
|
899
|
+
*/
|
|
900
|
+
constructor() {
|
|
901
|
+
super('document');
|
|
902
|
+
}
|
|
903
|
+
/**
|
|
904
|
+
* Sends an email to the customer
|
|
905
|
+
* @param id The ID of the document
|
|
906
|
+
*/
|
|
907
|
+
sendMail(id) {
|
|
908
|
+
return this.update(`sendMail/${id}`, null);
|
|
909
|
+
}
|
|
910
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
911
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, providedIn: 'root' });
|
|
912
|
+
}
|
|
913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: DocumentService, decorators: [{
|
|
914
|
+
type: Injectable,
|
|
915
|
+
args: [{ providedIn: 'root' }]
|
|
916
|
+
}], ctorParameters: () => [] });
|
|
917
|
+
|
|
942
918
|
class DocumentDialogComponent extends DocumentFormBaseComponent {
|
|
943
919
|
documentService;
|
|
944
920
|
fileService;
|
|
@@ -1011,12 +987,10 @@ class FaqClient {
|
|
|
1011
987
|
}
|
|
1012
988
|
}
|
|
1013
989
|
__decorate([
|
|
1014
|
-
prop()
|
|
1015
|
-
__metadata("design:type", Number)
|
|
990
|
+
prop()
|
|
1016
991
|
], FaqClient.prototype, "faqId", void 0);
|
|
1017
992
|
__decorate([
|
|
1018
|
-
required()
|
|
1019
|
-
__metadata("design:type", Number)
|
|
993
|
+
required()
|
|
1020
994
|
], FaqClient.prototype, "clientId", void 0);
|
|
1021
995
|
|
|
1022
996
|
/**
|
|
@@ -1048,12 +1022,10 @@ class FaqDepartment {
|
|
|
1048
1022
|
}
|
|
1049
1023
|
}
|
|
1050
1024
|
__decorate([
|
|
1051
|
-
prop()
|
|
1052
|
-
__metadata("design:type", Number)
|
|
1025
|
+
prop()
|
|
1053
1026
|
], FaqDepartment.prototype, "faqId", void 0);
|
|
1054
1027
|
__decorate([
|
|
1055
|
-
required()
|
|
1056
|
-
__metadata("design:type", Number)
|
|
1028
|
+
required()
|
|
1057
1029
|
], FaqDepartment.prototype, "departmentId", void 0);
|
|
1058
1030
|
|
|
1059
1031
|
let Faq = class Faq extends AuditEntity {
|
|
@@ -1108,8 +1080,7 @@ __decorate([
|
|
|
1108
1080
|
contentLength: 30
|
|
1109
1081
|
}),
|
|
1110
1082
|
FormField({ row: 10 }),
|
|
1111
|
-
Display($localize `:@@question:Question`)
|
|
1112
|
-
__metadata("design:type", String)
|
|
1083
|
+
Display($localize `:@@question:Question`)
|
|
1113
1084
|
], Faq.prototype, "question", void 0);
|
|
1114
1085
|
__decorate([
|
|
1115
1086
|
required(),
|
|
@@ -1122,8 +1093,7 @@ __decorate([
|
|
|
1122
1093
|
row: 20,
|
|
1123
1094
|
type: FormFieldType.Autocomplete
|
|
1124
1095
|
}),
|
|
1125
|
-
Display($localize `:@@group:Group`)
|
|
1126
|
-
__metadata("design:type", String)
|
|
1096
|
+
Display($localize `:@@group:Group`)
|
|
1127
1097
|
], Faq.prototype, "group", void 0);
|
|
1128
1098
|
__decorate([
|
|
1129
1099
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -1152,8 +1122,7 @@ __decorate([
|
|
|
1152
1122
|
optionTemplate: (x) => x?.clientName,
|
|
1153
1123
|
triggerMapper: (x) => x?.clientName
|
|
1154
1124
|
}),
|
|
1155
|
-
Display($localize `:@@projects:Projects`)
|
|
1156
|
-
__metadata("design:type", Array)
|
|
1125
|
+
Display($localize `:@@projects:Projects`)
|
|
1157
1126
|
], Faq.prototype, "clientJoins", void 0);
|
|
1158
1127
|
__decorate([
|
|
1159
1128
|
prop(),
|
|
@@ -1183,14 +1152,12 @@ __decorate([
|
|
|
1183
1152
|
optionTemplate: (x) => x?.departmentName,
|
|
1184
1153
|
triggerMapper: (x) => x?.departmentName
|
|
1185
1154
|
}),
|
|
1186
|
-
Display($localize `:@@departments:Departments`)
|
|
1187
|
-
__metadata("design:type", Array)
|
|
1155
|
+
Display($localize `:@@departments:Departments`)
|
|
1188
1156
|
], Faq.prototype, "departmentJoins", void 0);
|
|
1189
1157
|
__decorate([
|
|
1190
1158
|
prop(),
|
|
1191
1159
|
FormField({ row: 20 }),
|
|
1192
|
-
Display($localize `:@@ordering:Ordering`)
|
|
1193
|
-
__metadata("design:type", Number)
|
|
1160
|
+
Display($localize `:@@ordering:Ordering`)
|
|
1194
1161
|
], Faq.prototype, "ordering", void 0);
|
|
1195
1162
|
__decorate([
|
|
1196
1163
|
required(),
|
|
@@ -1198,8 +1165,7 @@ __decorate([
|
|
|
1198
1165
|
row: 50,
|
|
1199
1166
|
type: FormFieldType.Editor
|
|
1200
1167
|
}),
|
|
1201
|
-
Display($localize `:@@answer:Answer`)
|
|
1202
|
-
__metadata("design:type", String)
|
|
1168
|
+
Display($localize `:@@answer:Answer`)
|
|
1203
1169
|
], Faq.prototype, "answer", void 0);
|
|
1204
1170
|
__decorate([
|
|
1205
1171
|
prop(),
|
|
@@ -1208,8 +1174,7 @@ __decorate([
|
|
|
1208
1174
|
event: 'toggle'
|
|
1209
1175
|
}),
|
|
1210
1176
|
FormField({ row: 100 }),
|
|
1211
|
-
Display($localize `:@@enabled:Enabled`)
|
|
1212
|
-
__metadata("design:type", Boolean)
|
|
1177
|
+
Display($localize `:@@enabled:Enabled`)
|
|
1213
1178
|
], Faq.prototype, "enabled", void 0);
|
|
1214
1179
|
Faq = __decorate([
|
|
1215
1180
|
Api('faq'),
|
|
@@ -1217,8 +1182,7 @@ Faq = __decorate([
|
|
|
1217
1182
|
endpoint: 'faq',
|
|
1218
1183
|
projection: ['id', 'createdDate', 'question', 'group', 'enabled'],
|
|
1219
1184
|
duplicable: true
|
|
1220
|
-
})
|
|
1221
|
-
__metadata("design:paramtypes", [Object])
|
|
1185
|
+
})
|
|
1222
1186
|
], Faq);
|
|
1223
1187
|
|
|
1224
1188
|
class FaqService extends GenericService {
|
|
@@ -1342,12 +1306,10 @@ class TemplateClient {
|
|
|
1342
1306
|
}
|
|
1343
1307
|
}
|
|
1344
1308
|
__decorate([
|
|
1345
|
-
prop()
|
|
1346
|
-
__metadata("design:type", Number)
|
|
1309
|
+
prop()
|
|
1347
1310
|
], TemplateClient.prototype, "templateId", void 0);
|
|
1348
1311
|
__decorate([
|
|
1349
|
-
required()
|
|
1350
|
-
__metadata("design:type", Number)
|
|
1312
|
+
required()
|
|
1351
1313
|
], TemplateClient.prototype, "clientId", void 0);
|
|
1352
1314
|
|
|
1353
1315
|
/**
|
|
@@ -1379,12 +1341,10 @@ class TemplateDepartment {
|
|
|
1379
1341
|
}
|
|
1380
1342
|
}
|
|
1381
1343
|
__decorate([
|
|
1382
|
-
prop()
|
|
1383
|
-
__metadata("design:type", Number)
|
|
1344
|
+
prop()
|
|
1384
1345
|
], TemplateDepartment.prototype, "templateId", void 0);
|
|
1385
1346
|
__decorate([
|
|
1386
|
-
required()
|
|
1387
|
-
__metadata("design:type", Number)
|
|
1347
|
+
required()
|
|
1388
1348
|
], TemplateDepartment.prototype, "departmentId", void 0);
|
|
1389
1349
|
|
|
1390
1350
|
let Template = class Template extends AuditEntity {
|
|
@@ -1492,8 +1452,7 @@ __decorate([
|
|
|
1492
1452
|
enumType: TemplateEngine,
|
|
1493
1453
|
fieldSets: ['details']
|
|
1494
1454
|
}),
|
|
1495
|
-
Display($localize `:@@engine:Engine`)
|
|
1496
|
-
__metadata("design:type", Number)
|
|
1455
|
+
Display($localize `:@@engine:Engine`)
|
|
1497
1456
|
], Template.prototype, "engine", void 0);
|
|
1498
1457
|
__decorate([
|
|
1499
1458
|
required(),
|
|
@@ -1502,8 +1461,7 @@ __decorate([
|
|
|
1502
1461
|
enumType: TemplateType,
|
|
1503
1462
|
fieldSets: ['details']
|
|
1504
1463
|
}),
|
|
1505
|
-
Display($localize `:@@type:Type`)
|
|
1506
|
-
__metadata("design:type", Number)
|
|
1464
|
+
Display($localize `:@@type:Type`)
|
|
1507
1465
|
], Template.prototype, "type", void 0);
|
|
1508
1466
|
__decorate([
|
|
1509
1467
|
required(),
|
|
@@ -1512,8 +1470,7 @@ __decorate([
|
|
|
1512
1470
|
row: 10,
|
|
1513
1471
|
fieldSets: ['details']
|
|
1514
1472
|
}),
|
|
1515
|
-
Display($localize `:@@name:Name`)
|
|
1516
|
-
__metadata("design:type", String)
|
|
1473
|
+
Display($localize `:@@name:Name`)
|
|
1517
1474
|
], Template.prototype, "name", void 0);
|
|
1518
1475
|
__decorate([
|
|
1519
1476
|
prop(),
|
|
@@ -1525,8 +1482,7 @@ __decorate([
|
|
|
1525
1482
|
fieldSets: ['details'],
|
|
1526
1483
|
change: (_, __, ___, ctx) => ctx?.loadDraft()
|
|
1527
1484
|
}),
|
|
1528
|
-
Display($localize `:@@draft:Draft`)
|
|
1529
|
-
__metadata("design:type", String)
|
|
1485
|
+
Display($localize `:@@draft:Draft`)
|
|
1530
1486
|
], Template.prototype, "draft", void 0);
|
|
1531
1487
|
__decorate([
|
|
1532
1488
|
prop(),
|
|
@@ -1535,8 +1491,7 @@ __decorate([
|
|
|
1535
1491
|
row: 30,
|
|
1536
1492
|
fieldSets: ['details']
|
|
1537
1493
|
}),
|
|
1538
|
-
Display($localize `:@@subject:Subject`)
|
|
1539
|
-
__metadata("design:type", String)
|
|
1494
|
+
Display($localize `:@@subject:Subject`)
|
|
1540
1495
|
], Template.prototype, "subject", void 0);
|
|
1541
1496
|
__decorate([
|
|
1542
1497
|
required(),
|
|
@@ -1545,8 +1500,7 @@ __decorate([
|
|
|
1545
1500
|
row: 10,
|
|
1546
1501
|
fieldSets: ['details']
|
|
1547
1502
|
}),
|
|
1548
|
-
Display('Key')
|
|
1549
|
-
__metadata("design:type", String)
|
|
1503
|
+
Display('Key')
|
|
1550
1504
|
], Template.prototype, "key", void 0);
|
|
1551
1505
|
__decorate([
|
|
1552
1506
|
prop(),
|
|
@@ -1555,21 +1509,17 @@ __decorate([
|
|
|
1555
1509
|
type: FormFieldType.TextArea,
|
|
1556
1510
|
fieldSets: ['details']
|
|
1557
1511
|
}),
|
|
1558
|
-
Display($localize `:@@notice:Notice`)
|
|
1559
|
-
__metadata("design:type", String)
|
|
1512
|
+
Display($localize `:@@notice:Notice`)
|
|
1560
1513
|
], Template.prototype, "notice", void 0);
|
|
1561
1514
|
__decorate([
|
|
1562
1515
|
prop(),
|
|
1563
|
-
Display($localize `:@@email:Email`)
|
|
1564
|
-
__metadata("design:type", String)
|
|
1516
|
+
Display($localize `:@@email:Email`)
|
|
1565
1517
|
], Template.prototype, "email", void 0);
|
|
1566
1518
|
__decorate([
|
|
1567
|
-
required()
|
|
1568
|
-
__metadata("design:type", String)
|
|
1519
|
+
required()
|
|
1569
1520
|
], Template.prototype, "content", void 0);
|
|
1570
1521
|
__decorate([
|
|
1571
|
-
prop()
|
|
1572
|
-
__metadata("design:type", String)
|
|
1522
|
+
prop()
|
|
1573
1523
|
], Template.prototype, "dummyData", void 0);
|
|
1574
1524
|
__decorate([
|
|
1575
1525
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -1599,8 +1549,7 @@ __decorate([
|
|
|
1599
1549
|
optionTemplate: (x) => x?.clientName,
|
|
1600
1550
|
triggerMapper: (x) => x?.clientName
|
|
1601
1551
|
}),
|
|
1602
|
-
Display($localize `:@@projects:Projects`)
|
|
1603
|
-
__metadata("design:type", Array)
|
|
1552
|
+
Display($localize `:@@projects:Projects`)
|
|
1604
1553
|
], Template.prototype, "clientJoins", void 0);
|
|
1605
1554
|
__decorate([
|
|
1606
1555
|
prop(),
|
|
@@ -1631,8 +1580,7 @@ __decorate([
|
|
|
1631
1580
|
optionTemplate: (x) => x?.departmentName,
|
|
1632
1581
|
triggerMapper: (x) => x?.departmentName
|
|
1633
1582
|
}),
|
|
1634
|
-
Display($localize `:@@departments:Departments`)
|
|
1635
|
-
__metadata("design:type", Array)
|
|
1583
|
+
Display($localize `:@@departments:Departments`)
|
|
1636
1584
|
], Template.prototype, "departmentJoins", void 0);
|
|
1637
1585
|
__decorate([
|
|
1638
1586
|
prop(),
|
|
@@ -1646,8 +1594,7 @@ __decorate([
|
|
|
1646
1594
|
fieldSets: ['details'],
|
|
1647
1595
|
readonly: _ => true
|
|
1648
1596
|
}),
|
|
1649
|
-
Display($localize `:@@reviewed:Reviewed`)
|
|
1650
|
-
__metadata("design:type", Boolean)
|
|
1597
|
+
Display($localize `:@@reviewed:Reviewed`)
|
|
1651
1598
|
], Template.prototype, "reviewed", void 0);
|
|
1652
1599
|
__decorate([
|
|
1653
1600
|
prop(),
|
|
@@ -1656,12 +1603,10 @@ __decorate([
|
|
|
1656
1603
|
row: 100,
|
|
1657
1604
|
fieldSets: ['details']
|
|
1658
1605
|
}),
|
|
1659
|
-
Display($localize `:@@enabled:Enabled`)
|
|
1660
|
-
__metadata("design:type", Boolean)
|
|
1606
|
+
Display($localize `:@@enabled:Enabled`)
|
|
1661
1607
|
], Template.prototype, "enabled", void 0);
|
|
1662
1608
|
__decorate([
|
|
1663
|
-
prop()
|
|
1664
|
-
__metadata("design:type", Array)
|
|
1609
|
+
prop()
|
|
1665
1610
|
], Template.prototype, "attachments", void 0);
|
|
1666
1611
|
Template = __decorate([
|
|
1667
1612
|
Table({
|
|
@@ -1717,36 +1662,6 @@ class TemplatePreview {
|
|
|
1717
1662
|
}
|
|
1718
1663
|
}
|
|
1719
1664
|
|
|
1720
|
-
class TemplateService extends GenericService {
|
|
1721
|
-
/**
|
|
1722
|
-
* Constructor
|
|
1723
|
-
*/
|
|
1724
|
-
constructor() {
|
|
1725
|
-
super('template');
|
|
1726
|
-
}
|
|
1727
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1728
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, providedIn: 'root' });
|
|
1729
|
-
}
|
|
1730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, decorators: [{
|
|
1731
|
-
type: Injectable,
|
|
1732
|
-
args: [{ providedIn: 'root' }]
|
|
1733
|
-
}], ctorParameters: () => [] });
|
|
1734
|
-
|
|
1735
|
-
class TemplateDocService extends GenericService {
|
|
1736
|
-
/**
|
|
1737
|
-
* Constructor
|
|
1738
|
-
*/
|
|
1739
|
-
constructor() {
|
|
1740
|
-
super('templateDoc');
|
|
1741
|
-
}
|
|
1742
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1743
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, providedIn: 'root' });
|
|
1744
|
-
}
|
|
1745
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, decorators: [{
|
|
1746
|
-
type: Injectable,
|
|
1747
|
-
args: [{ providedIn: 'root' }]
|
|
1748
|
-
}], ctorParameters: () => [] });
|
|
1749
|
-
|
|
1750
1665
|
class TemplatePreviewService extends GenericService {
|
|
1751
1666
|
/**
|
|
1752
1667
|
* Constructor
|
|
@@ -1943,6 +1858,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImpor
|
|
|
1943
1858
|
args: ['email']
|
|
1944
1859
|
}] } });
|
|
1945
1860
|
|
|
1861
|
+
class TemplateService extends GenericService {
|
|
1862
|
+
/**
|
|
1863
|
+
* Constructor
|
|
1864
|
+
*/
|
|
1865
|
+
constructor() {
|
|
1866
|
+
super('template');
|
|
1867
|
+
}
|
|
1868
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1869
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, providedIn: 'root' });
|
|
1870
|
+
}
|
|
1871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateService, decorators: [{
|
|
1872
|
+
type: Injectable,
|
|
1873
|
+
args: [{ providedIn: 'root' }]
|
|
1874
|
+
}], ctorParameters: () => [] });
|
|
1875
|
+
|
|
1876
|
+
class TemplateDocService extends GenericService {
|
|
1877
|
+
/**
|
|
1878
|
+
* Constructor
|
|
1879
|
+
*/
|
|
1880
|
+
constructor() {
|
|
1881
|
+
super('templateDoc');
|
|
1882
|
+
}
|
|
1883
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1884
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, providedIn: 'root' });
|
|
1885
|
+
}
|
|
1886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.7", ngImport: i0, type: TemplateDocService, decorators: [{
|
|
1887
|
+
type: Injectable,
|
|
1888
|
+
args: [{ providedIn: 'root' }]
|
|
1889
|
+
}], ctorParameters: () => [] });
|
|
1890
|
+
|
|
1946
1891
|
class TemplateFormComponent extends GenericReactiveFormComponent {
|
|
1947
1892
|
service;
|
|
1948
1893
|
templateDocService;
|
|
@@ -2135,12 +2080,10 @@ class ContentVariableClient {
|
|
|
2135
2080
|
}
|
|
2136
2081
|
}
|
|
2137
2082
|
__decorate([
|
|
2138
|
-
prop()
|
|
2139
|
-
__metadata("design:type", Number)
|
|
2083
|
+
prop()
|
|
2140
2084
|
], ContentVariableClient.prototype, "contentVariableId", void 0);
|
|
2141
2085
|
__decorate([
|
|
2142
|
-
required()
|
|
2143
|
-
__metadata("design:type", Number)
|
|
2086
|
+
required()
|
|
2144
2087
|
], ContentVariableClient.prototype, "clientId", void 0);
|
|
2145
2088
|
|
|
2146
2089
|
/**
|
|
@@ -2172,12 +2115,10 @@ class ContentVariableDepartment {
|
|
|
2172
2115
|
}
|
|
2173
2116
|
}
|
|
2174
2117
|
__decorate([
|
|
2175
|
-
prop()
|
|
2176
|
-
__metadata("design:type", Number)
|
|
2118
|
+
prop()
|
|
2177
2119
|
], ContentVariableDepartment.prototype, "contentVariableId", void 0);
|
|
2178
2120
|
__decorate([
|
|
2179
|
-
required()
|
|
2180
|
-
__metadata("design:type", Number)
|
|
2121
|
+
required()
|
|
2181
2122
|
], ContentVariableDepartment.prototype, "departmentId", void 0);
|
|
2182
2123
|
|
|
2183
2124
|
let ContentVariable = class ContentVariable extends AuditEntity {
|
|
@@ -2207,22 +2148,19 @@ let ContentVariable = class ContentVariable extends AuditEntity {
|
|
|
2207
2148
|
enabled;
|
|
2208
2149
|
};
|
|
2209
2150
|
__decorate([
|
|
2210
|
-
prop()
|
|
2211
|
-
__metadata("design:type", String)
|
|
2151
|
+
prop()
|
|
2212
2152
|
], ContentVariable.prototype, "title", void 0);
|
|
2213
2153
|
__decorate([
|
|
2214
2154
|
required(),
|
|
2215
2155
|
FormField({ row: 10 }),
|
|
2216
2156
|
Column({}),
|
|
2217
|
-
Display($localize `:@@name:Name`)
|
|
2218
|
-
__metadata("design:type", String)
|
|
2157
|
+
Display($localize `:@@name:Name`)
|
|
2219
2158
|
], ContentVariable.prototype, "name", void 0);
|
|
2220
2159
|
__decorate([
|
|
2221
2160
|
required(),
|
|
2222
2161
|
FormField({ row: 11 }),
|
|
2223
2162
|
Column({ display: Grid.Sm }),
|
|
2224
|
-
Display($localize `:@@value:Value`)
|
|
2225
|
-
__metadata("design:type", String)
|
|
2163
|
+
Display($localize `:@@value:Value`)
|
|
2226
2164
|
], ContentVariable.prototype, "value", void 0);
|
|
2227
2165
|
__decorate([
|
|
2228
2166
|
required({ conditionalExpression: (x) => true }),
|
|
@@ -2252,8 +2190,7 @@ __decorate([
|
|
|
2252
2190
|
optionTemplate: (x) => x?.clientName,
|
|
2253
2191
|
triggerMapper: (x) => x?.clientName
|
|
2254
2192
|
}),
|
|
2255
|
-
Display($localize `:@@projects:Projects`)
|
|
2256
|
-
__metadata("design:type", Array)
|
|
2193
|
+
Display($localize `:@@projects:Projects`)
|
|
2257
2194
|
], ContentVariable.prototype, "clientJoins", void 0);
|
|
2258
2195
|
__decorate([
|
|
2259
2196
|
prop(),
|
|
@@ -2284,15 +2221,13 @@ __decorate([
|
|
|
2284
2221
|
optionTemplate: (x) => x?.departmentName,
|
|
2285
2222
|
triggerMapper: (x) => x?.departmentName
|
|
2286
2223
|
}),
|
|
2287
|
-
Display($localize `:@@departments:Departments`)
|
|
2288
|
-
__metadata("design:type", Array)
|
|
2224
|
+
Display($localize `:@@departments:Departments`)
|
|
2289
2225
|
], ContentVariable.prototype, "departmentJoins", void 0);
|
|
2290
2226
|
__decorate([
|
|
2291
2227
|
prop(),
|
|
2292
2228
|
FormField({ row: 21 }),
|
|
2293
2229
|
Column({ event: 'toggle' }),
|
|
2294
|
-
Display($localize `:@@enabled:Enabled`)
|
|
2295
|
-
__metadata("design:type", Boolean)
|
|
2230
|
+
Display($localize `:@@enabled:Enabled`)
|
|
2296
2231
|
], ContentVariable.prototype, "enabled", void 0);
|
|
2297
2232
|
ContentVariable = __decorate([
|
|
2298
2233
|
Api('contentvariable'),
|
|
@@ -2368,21 +2303,18 @@ __decorate([
|
|
|
2368
2303
|
required(),
|
|
2369
2304
|
FormField({ row: 10 }),
|
|
2370
2305
|
Column({}),
|
|
2371
|
-
Display($localize `:@@name:Name`)
|
|
2372
|
-
__metadata("design:type", String)
|
|
2306
|
+
Display($localize `:@@name:Name`)
|
|
2373
2307
|
], Slider.prototype, "name", void 0);
|
|
2374
2308
|
__decorate([
|
|
2375
2309
|
required(),
|
|
2376
2310
|
FormField({ row: 20 }),
|
|
2377
2311
|
Column({ maxWidth: 150, display: Grid.Lg }),
|
|
2378
|
-
Display($localize `:@@group:Group`)
|
|
2379
|
-
__metadata("design:type", String)
|
|
2312
|
+
Display($localize `:@@group:Group`)
|
|
2380
2313
|
], Slider.prototype, "group", void 0);
|
|
2381
2314
|
__decorate([
|
|
2382
2315
|
required(),
|
|
2383
2316
|
FormField({ row: 50, type: FormFieldType.Editor }),
|
|
2384
|
-
Display($localize `:@@content:Content`)
|
|
2385
|
-
__metadata("design:type", String)
|
|
2317
|
+
Display($localize `:@@content:Content`)
|
|
2386
2318
|
], Slider.prototype, "content", void 0);
|
|
2387
2319
|
__decorate([
|
|
2388
2320
|
prop(),
|
|
@@ -2390,12 +2322,10 @@ __decorate([
|
|
|
2390
2322
|
row: 60,
|
|
2391
2323
|
type: FormFieldType.TextArea
|
|
2392
2324
|
}),
|
|
2393
|
-
Display($localize `:@@style:Style`)
|
|
2394
|
-
__metadata("design:type", String)
|
|
2325
|
+
Display($localize `:@@style:Style`)
|
|
2395
2326
|
], Slider.prototype, "styleInline", void 0);
|
|
2396
2327
|
__decorate([
|
|
2397
|
-
prop()
|
|
2398
|
-
__metadata("design:type", String)
|
|
2328
|
+
prop()
|
|
2399
2329
|
], Slider.prototype, "imagePath", void 0);
|
|
2400
2330
|
__decorate([
|
|
2401
2331
|
FormField({
|
|
@@ -2406,14 +2336,12 @@ __decorate([
|
|
|
2406
2336
|
change: (_, img, __, ctx) => ctx?.upload(img, 'images/sliders', true)
|
|
2407
2337
|
}),
|
|
2408
2338
|
Display($localize `:@@image:Image`),
|
|
2409
|
-
prop()
|
|
2410
|
-
__metadata("design:type", String)
|
|
2339
|
+
prop()
|
|
2411
2340
|
], Slider.prototype, "image", void 0);
|
|
2412
2341
|
__decorate([
|
|
2413
2342
|
prop(),
|
|
2414
2343
|
FormField({ row: 40 }),
|
|
2415
|
-
Display($localize `:@@cssClass:CSS Class`)
|
|
2416
|
-
__metadata("design:type", String)
|
|
2344
|
+
Display($localize `:@@cssClass:CSS Class`)
|
|
2417
2345
|
], Slider.prototype, "cssClass", void 0);
|
|
2418
2346
|
__decorate([
|
|
2419
2347
|
FormField({
|
|
@@ -2426,21 +2354,18 @@ __decorate([
|
|
|
2426
2354
|
display: Grid.Lg
|
|
2427
2355
|
}),
|
|
2428
2356
|
Display($localize `:@@project:Project`),
|
|
2429
|
-
prop()
|
|
2430
|
-
__metadata("design:type", Number)
|
|
2357
|
+
prop()
|
|
2431
2358
|
], Slider.prototype, "clientId", void 0);
|
|
2432
2359
|
__decorate([
|
|
2433
2360
|
prop(),
|
|
2434
2361
|
FormField({ row: 20 }),
|
|
2435
|
-
Display($localize `:@@ordering:Ordering`)
|
|
2436
|
-
__metadata("design:type", Number)
|
|
2362
|
+
Display($localize `:@@ordering:Ordering`)
|
|
2437
2363
|
], Slider.prototype, "ordering", void 0);
|
|
2438
2364
|
__decorate([
|
|
2439
2365
|
prop(),
|
|
2440
2366
|
FormField({ row: 100 }),
|
|
2441
2367
|
Column({ event: 'toggle' }),
|
|
2442
|
-
Display($localize `:@@enabled:Enabled`)
|
|
2443
|
-
__metadata("design:type", Boolean)
|
|
2368
|
+
Display($localize `:@@enabled:Enabled`)
|
|
2444
2369
|
], Slider.prototype, "enabled", void 0);
|
|
2445
2370
|
Slider = __decorate([
|
|
2446
2371
|
Api('slider'),
|