@messaia/cdk-cms 19.0.2 → 20.0.0-RC.2
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/README.md +49 -10
- package/fesm2022/messaia-cdk-cms.mjs +218 -269
- package/fesm2022/messaia-cdk-cms.mjs.map +1 -1
- package/index.d.ts +1164 -3
- package/package.json +6 -7
- package/lib/cms-routing.module.d.ts +0 -7
- package/lib/cms.module.d.ts +0 -46
- package/lib/comnponents/content-form/content-form.component.d.ts +0 -110
- package/lib/comnponents/document-dialog/document-dialog.component.d.ts +0 -26
- package/lib/comnponents/document-form-base/document-form-base.component.d.ts +0 -48
- package/lib/comnponents/template-form/template-form.component.d.ts +0 -73
- package/lib/comnponents/template-preview-dialog/template-preview-dialog.component.d.ts +0 -80
- package/lib/enums/content-type.d.ts +0 -4
- package/lib/enums/faq-scope.d.ts +0 -4
- package/lib/enums/template-type.d.ts +0 -4
- package/lib/enums/wrap-tag.d.ts +0 -7
- package/lib/models/cms-settings.d.ts +0 -30
- package/lib/models/content-client.d.ts +0 -26
- package/lib/models/content-department.d.ts +0 -26
- package/lib/models/content-variable-client.d.ts +0 -26
- package/lib/models/content-variable-department.d.ts +0 -26
- package/lib/models/content-variable.d.ts +0 -29
- package/lib/models/content.d.ts +0 -103
- package/lib/models/document.d.ts +0 -20
- package/lib/models/faq-client.d.ts +0 -26
- package/lib/models/faq-department.d.ts +0 -26
- package/lib/models/faq.d.ts +0 -38
- package/lib/models/slider.d.ts +0 -63
- package/lib/models/template-client.d.ts +0 -26
- package/lib/models/template-department.d.ts +0 -26
- package/lib/models/template-preview.d.ts +0 -44
- package/lib/models/template.d.ts +0 -59
- package/lib/public-api.d.ts +0 -31
- package/lib/resolvers/document-list-projection.resolve.d.ts +0 -20
- package/lib/resolvers/excluded-columns.resolve.d.ts +0 -13
- package/lib/resolvers/excluded-fields.resolve.d.ts +0 -13
- package/lib/resolvers/form-includes.resolve.d.ts +0 -20
- package/lib/resolvers/form-validation.resolve.d.ts +0 -13
- package/lib/resolvers/list-projection.resolve.d.ts +0 -20
- package/lib/resolvers/settings.resolve.d.ts +0 -15
- package/lib/services/content-variable.service.d.ts +0 -17
- package/lib/services/content.service.d.ts +0 -23
- package/lib/services/document.generic-service.d.ts +0 -9
- package/lib/services/document.service`.d.ts +0 -17
- package/lib/services/faq.service.d.ts +0 -11
- package/lib/services/slider.service.d.ts +0 -11
- package/lib/services/template-doc.service.d.ts +0 -11
- package/lib/services/template-preview.service.d.ts +0 -11
- package/lib/services/template.service.d.ts +0 -11
- package/lib/templates/document-form.template.d.ts +0 -2
- package/public_api.d.ts +0 -1
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messaia/cdk-cms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.0.0-RC.02",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
7
|
-
"@messaia/cdk": "^19.0.2"
|
|
5
|
+
"@angular/common": "^20.0.0",
|
|
6
|
+
"@angular/core": "^20.0.0"
|
|
8
7
|
},
|
|
9
8
|
"dependencies": {
|
|
10
|
-
"tslib": "^2.
|
|
9
|
+
"tslib": "^2.3.0"
|
|
11
10
|
},
|
|
11
|
+
"sideEffects": false,
|
|
12
12
|
"publishConfig": {
|
|
13
13
|
"registry": "https://registry.npmjs.org"
|
|
14
14
|
},
|
|
@@ -22,6 +22,5 @@
|
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
23
|
"default": "./fesm2022/messaia-cdk-cms.mjs"
|
|
24
24
|
}
|
|
25
|
-
}
|
|
26
|
-
"sideEffects": false
|
|
25
|
+
}
|
|
27
26
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "@angular/router";
|
|
3
|
-
export declare class VdCmsRoutingModule {
|
|
4
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VdCmsRoutingModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdCmsRoutingModule, never, [typeof i1.RouterModule], [typeof i1.RouterModule]>;
|
|
6
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VdCmsRoutingModule>;
|
|
7
|
-
}
|
package/lib/cms.module.d.ts
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { ContentFormComponent } from './comnponents/content-form/content-form.component';
|
|
2
|
-
import { DocumentDialogComponent } from './comnponents/document-dialog/document-dialog.component';
|
|
3
|
-
import { DocumentFormBaseComponent } from './comnponents/document-form-base/document-form-base.component';
|
|
4
|
-
import { TemplateFormComponent } from './comnponents/template-form/template-form.component';
|
|
5
|
-
import { TemplatePreviewDialogComponent } from './comnponents/template-preview-dialog/template-preview-dialog.component';
|
|
6
|
-
import DocumentFormTemplate from './templates/document-form.template';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "@angular/material/card";
|
|
9
|
-
import * as i2 from "@angular/material/expansion";
|
|
10
|
-
import * as i3 from "@angular/material/button";
|
|
11
|
-
import * as i4 from "@angular/material/icon";
|
|
12
|
-
import * as i5 from "@angular/material/chips";
|
|
13
|
-
import * as i6 from "@angular/material/autocomplete";
|
|
14
|
-
import * as i7 from "@angular/material/checkbox";
|
|
15
|
-
import * as i8 from "@angular/material/dialog";
|
|
16
|
-
import * as i9 from "@angular/material/input";
|
|
17
|
-
import * as i10 from "@angular/material/select";
|
|
18
|
-
import * as i11 from "@angular/material/progress-bar";
|
|
19
|
-
import * as i12 from "@angular/material/divider";
|
|
20
|
-
import * as i13 from "@messaia/cdk";
|
|
21
|
-
import * as i14 from "./comnponents/content-form/content-form.component";
|
|
22
|
-
import * as i15 from "./comnponents/template-form/template-form.component";
|
|
23
|
-
import * as i16 from "./comnponents/template-preview-dialog/template-preview-dialog.component";
|
|
24
|
-
import * as i17 from "./comnponents/document-dialog/document-dialog.component";
|
|
25
|
-
import * as i18 from "@angular/common";
|
|
26
|
-
import * as i19 from "@ctrl/ngx-codemirror";
|
|
27
|
-
import * as i20 from "@messaia/cdk-base";
|
|
28
|
-
import * as i21 from "./cms-routing.module";
|
|
29
|
-
import * as i22 from "@tinymce/tinymce-angular";
|
|
30
|
-
import * as i23 from "ng2-pdf-viewer";
|
|
31
|
-
export { ContentFormComponent, DocumentDialogComponent, DocumentFormBaseComponent, DocumentFormTemplate, TemplateFormComponent, TemplatePreviewDialogComponent };
|
|
32
|
-
export declare class MaterialModule {
|
|
33
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaterialModule, never>;
|
|
34
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MaterialModule, never, never, [typeof i1.MatCardModule, typeof i2.MatExpansionModule, typeof i3.MatButtonModule, typeof i4.MatIconModule, typeof i5.MatChipsModule, typeof i6.MatAutocompleteModule, typeof i7.MatCheckboxModule, typeof i8.MatDialogModule, typeof i9.MatInputModule, typeof i10.MatSelectModule, typeof i11.MatProgressBarModule, typeof i12.MatDividerModule]>;
|
|
35
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MaterialModule>;
|
|
36
|
-
}
|
|
37
|
-
export declare class VdModule {
|
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VdModule, never>;
|
|
39
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdModule, never, never, [typeof i13.VdCommonModule, typeof i13.VdLayoutModule, typeof i13.VdMediaModule, typeof i13.VdSelectModule, typeof i13.VdChipsModule, typeof i13.VdFileModule]>;
|
|
40
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VdModule>;
|
|
41
|
-
}
|
|
42
|
-
export declare class VdCmsModule {
|
|
43
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<VdCmsModule, never>;
|
|
44
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VdCmsModule, [typeof i14.ContentFormComponent, typeof i15.TemplateFormComponent, typeof i16.TemplatePreviewDialogComponent, typeof i17.DocumentDialogComponent], [typeof i18.CommonModule, typeof i19.CodemirrorModule, typeof i20.VdCdkBaseModule, typeof VdModule, typeof MaterialModule, typeof i21.VdCmsRoutingModule, typeof i22.EditorModule, typeof i23.PdfViewerModule], [typeof VdModule, typeof MaterialModule, typeof i22.EditorModule, typeof i23.PdfViewerModule, typeof i14.ContentFormComponent, typeof i15.TemplateFormComponent, typeof i16.TemplatePreviewDialogComponent, typeof i17.DocumentDialogComponent]>;
|
|
45
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<VdCmsModule>;
|
|
46
|
-
}
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
3
|
-
import { MatChipInputEvent } from '@angular/material/chips';
|
|
4
|
-
import { ActivatedRoute } from '@angular/router';
|
|
5
|
-
import { FileService, GenericReactiveFormComponent } from '@messaia/cdk';
|
|
6
|
-
import { EditorComponent } from '@tinymce/tinymce-angular';
|
|
7
|
-
import { Subscription } from 'rxjs';
|
|
8
|
-
import { ContentType } from '../../enums/content-type';
|
|
9
|
-
import { CmsSettings } from '../../models/cms-settings';
|
|
10
|
-
import { Content } from '../../models/content';
|
|
11
|
-
import { ContentService } from '../../services/content.service';
|
|
12
|
-
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class ContentFormComponent extends GenericReactiveFormComponent<Content, ContentService> {
|
|
14
|
-
protected service: ContentService;
|
|
15
|
-
protected fileService: FileService;
|
|
16
|
-
protected httpClient: HttpClient;
|
|
17
|
-
protected route: ActivatedRoute;
|
|
18
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
19
|
-
/**
|
|
20
|
-
* Router Subscription
|
|
21
|
-
*/
|
|
22
|
-
routeSubscription?: Subscription;
|
|
23
|
-
/**
|
|
24
|
-
* The status of the issue
|
|
25
|
-
*/
|
|
26
|
-
type?: ContentType;
|
|
27
|
-
/**
|
|
28
|
-
* Content status
|
|
29
|
-
*/
|
|
30
|
-
ContentType: typeof ContentType;
|
|
31
|
-
/**
|
|
32
|
-
* Wrap tag enum
|
|
33
|
-
*/
|
|
34
|
-
wrapTags: any[];
|
|
35
|
-
/**
|
|
36
|
-
* Separator keys codes
|
|
37
|
-
*/
|
|
38
|
-
separatorKeysCodes: number[];
|
|
39
|
-
/**
|
|
40
|
-
* settings: CmsSettings
|
|
41
|
-
*/
|
|
42
|
-
settings: CmsSettings;
|
|
43
|
-
/**
|
|
44
|
-
* Gets the aliases control
|
|
45
|
-
*/
|
|
46
|
-
get aliasesControl(): import("@angular/forms").AbstractControl<any, any>;
|
|
47
|
-
/**
|
|
48
|
-
* A ref to form html element
|
|
49
|
-
*/
|
|
50
|
-
formElement?: HTMLFormElement;
|
|
51
|
-
/**
|
|
52
|
-
* A ref to tinymce editor
|
|
53
|
-
*/
|
|
54
|
-
editorComponent?: EditorComponent;
|
|
55
|
-
/**
|
|
56
|
-
* Constructor
|
|
57
|
-
*/
|
|
58
|
-
constructor(service: ContentService, fileService: FileService, httpClient: HttpClient, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
59
|
-
/**
|
|
60
|
-
* Lifecycle hook that is called after data-bound properties
|
|
61
|
-
* of a directive are initialized.
|
|
62
|
-
*/
|
|
63
|
-
ngOnInit(): void;
|
|
64
|
-
/**
|
|
65
|
-
* Shows client joins in the form
|
|
66
|
-
* @returns
|
|
67
|
-
*/
|
|
68
|
-
showClientJoins(): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Checks if the specified alias is available.
|
|
71
|
-
*/
|
|
72
|
-
isAliasAvailable(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Set client
|
|
75
|
-
*/
|
|
76
|
-
setClient(): void;
|
|
77
|
-
/**
|
|
78
|
-
* Add a aliases to the current field
|
|
79
|
-
* @param event
|
|
80
|
-
*/
|
|
81
|
-
addAliases(event: MatChipInputEvent): void;
|
|
82
|
-
/**
|
|
83
|
-
* Removes a aliases
|
|
84
|
-
* @param aliass
|
|
85
|
-
*/
|
|
86
|
-
removeAliases(aliass: string): void;
|
|
87
|
-
/**
|
|
88
|
-
* Creates a new instance of the Template
|
|
89
|
-
*/
|
|
90
|
-
protected newInstance(): Content;
|
|
91
|
-
/**
|
|
92
|
-
* Event emitted when the form has built.
|
|
93
|
-
*/
|
|
94
|
-
protected onAfterFormBuild(): void;
|
|
95
|
-
/**
|
|
96
|
-
* Configures the tinymce editor
|
|
97
|
-
*/
|
|
98
|
-
private configEditor;
|
|
99
|
-
/**
|
|
100
|
-
* Creates config for the editor
|
|
101
|
-
* @returns
|
|
102
|
-
*/
|
|
103
|
-
private getEditorConfig;
|
|
104
|
-
/**
|
|
105
|
-
* Cleanup subscriptions when this component is destroyed.
|
|
106
|
-
*/
|
|
107
|
-
ngOnDestroy(): void;
|
|
108
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ContentFormComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ContentFormComponent, "app-content-form", never, {}, {}, never, never, false, never>;
|
|
110
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { FileService } from '@messaia/cdk';
|
|
5
|
-
import { Document } from '../../models/document';
|
|
6
|
-
import { DocumentService } from '../../services/document.service`';
|
|
7
|
-
import { DocumentFormBaseComponent } from '../document-form-base/document-form-base.component';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
export declare class DocumentDialogComponent extends DocumentFormBaseComponent<Document, DocumentService> {
|
|
10
|
-
protected documentService: DocumentService;
|
|
11
|
-
protected fileService: FileService;
|
|
12
|
-
protected route: ActivatedRoute;
|
|
13
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
14
|
-
dialogRef: MatDialogRef<DocumentDialogComponent>;
|
|
15
|
-
data: Document;
|
|
16
|
-
/**
|
|
17
|
-
* Constructor
|
|
18
|
-
*/
|
|
19
|
-
constructor(documentService: DocumentService, fileService: FileService, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, dialogRef: MatDialogRef<DocumentDialogComponent>, data?: Document);
|
|
20
|
-
/**
|
|
21
|
-
* Event emitted before the form has built.
|
|
22
|
-
*/
|
|
23
|
-
protected onBeforeFormBuild(): void;
|
|
24
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentDialogComponent, never>;
|
|
25
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentDialogComponent, "document-dialog", never, {}, {}, never, never, false, never>;
|
|
26
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Type } from '@angular/core';
|
|
2
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { FileService, GenericReactiveFormComponent, SaveAction } from '@messaia/cdk';
|
|
5
|
-
import { DocumentBase } from "@messaia/cdk-base";
|
|
6
|
-
import { DocumentGenericService } from '../../services/document.generic-service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare abstract class DocumentFormBaseComponent<TDocument extends DocumentBase, TDocumentService extends DocumentGenericService<TDocument>> extends GenericReactiveFormComponent<TDocument, TDocumentService> {
|
|
9
|
-
protected entityType: Type<TDocument>;
|
|
10
|
-
protected documentService: TDocumentService;
|
|
11
|
-
protected fileService: FileService;
|
|
12
|
-
protected dialogRef: MatDialogRef<DocumentFormBaseComponent<TDocument, TDocumentService>>;
|
|
13
|
-
protected route: ActivatedRoute;
|
|
14
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
15
|
-
protected data: TDocument;
|
|
16
|
-
/**
|
|
17
|
-
* Upload status
|
|
18
|
-
*/
|
|
19
|
-
isUploading: boolean;
|
|
20
|
-
/**
|
|
21
|
-
* Upload progress
|
|
22
|
-
*/
|
|
23
|
-
uploadProgress: number;
|
|
24
|
-
/**
|
|
25
|
-
* Constructor
|
|
26
|
-
*/
|
|
27
|
-
constructor(entityType: Type<TDocument>, documentService: TDocumentService, fileService: FileService, dialogRef: MatDialogRef<DocumentFormBaseComponent<TDocument, TDocumentService>>, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef, data: TDocument);
|
|
28
|
-
/**
|
|
29
|
-
* Uploads a new document
|
|
30
|
-
*/
|
|
31
|
-
upload(file: File | FileList): void;
|
|
32
|
-
/**
|
|
33
|
-
* Event emitted after data submition
|
|
34
|
-
* @param action
|
|
35
|
-
* @param response
|
|
36
|
-
*/
|
|
37
|
-
protected onAfterSubmit(_1?: SaveAction, _2?: any): void;
|
|
38
|
-
/**
|
|
39
|
-
* Closes the dialog
|
|
40
|
-
*/
|
|
41
|
-
cancel(): void;
|
|
42
|
-
/**
|
|
43
|
-
* Creates a new instance of the TEntity
|
|
44
|
-
*/
|
|
45
|
-
protected newInstance(): TDocument;
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentFormBaseComponent<any, any>, never>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DocumentFormBaseComponent<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
48
|
-
}
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
3
|
-
import { ActivatedRoute } from '@angular/router';
|
|
4
|
-
import { FileService, GenericReactiveFormComponent } from '@messaia/cdk';
|
|
5
|
-
import { Attachment } from '@messaia/cdk-base';
|
|
6
|
-
import 'codemirror/addon/edit/closetag';
|
|
7
|
-
import 'codemirror/addon/edit/matchbrackets';
|
|
8
|
-
import 'codemirror/addon/selection/active-line';
|
|
9
|
-
import 'codemirror/mode/htmlmixed/htmlmixed';
|
|
10
|
-
import 'codemirror/mode/javascript/javascript';
|
|
11
|
-
import { TemplateType } from '../../enums/template-type';
|
|
12
|
-
import { CmsSettings } from '../../models/cms-settings';
|
|
13
|
-
import { Template } from '../../models/template';
|
|
14
|
-
import { TemplateDocService } from '../../services/template-doc.service';
|
|
15
|
-
import { TemplateService } from '../../services/template.service';
|
|
16
|
-
import * as i0 from "@angular/core";
|
|
17
|
-
export declare class TemplateFormComponent extends GenericReactiveFormComponent<Template, TemplateService> {
|
|
18
|
-
protected service: TemplateService;
|
|
19
|
-
protected templateDocService: TemplateDocService;
|
|
20
|
-
protected fileService: FileService;
|
|
21
|
-
protected dialog: MatDialog;
|
|
22
|
-
protected route: ActivatedRoute;
|
|
23
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
24
|
-
/**
|
|
25
|
-
* Represents the available template types.
|
|
26
|
-
*/
|
|
27
|
-
TemplateType: typeof TemplateType;
|
|
28
|
-
/**
|
|
29
|
-
* Stores CMS settings.
|
|
30
|
-
*/
|
|
31
|
-
settings: CmsSettings;
|
|
32
|
-
/**
|
|
33
|
-
* Retrieves the attachments form control.
|
|
34
|
-
*/
|
|
35
|
-
get attachmentsControl(): import("@angular/forms").AbstractControl<any, any>;
|
|
36
|
-
/**
|
|
37
|
-
* Configuration options for the HTML editor.
|
|
38
|
-
*/
|
|
39
|
-
editorOptions: any;
|
|
40
|
-
/**
|
|
41
|
-
* Configuration options for the JSON editor.
|
|
42
|
-
*/
|
|
43
|
-
jsonEditorOptions: any;
|
|
44
|
-
/**
|
|
45
|
-
* Initializes an instance of TemplateFormComponent.
|
|
46
|
-
*/
|
|
47
|
-
constructor(service: TemplateService, templateDocService: TemplateDocService, fileService: FileService, dialog: MatDialog, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
48
|
-
/**
|
|
49
|
-
* Removes an attachment from the form.
|
|
50
|
-
* @param attachment The attachment to remove.
|
|
51
|
-
*/
|
|
52
|
-
removeAttachment(attachment: Attachment): void;
|
|
53
|
-
/**
|
|
54
|
-
* Handles file upload for attachments.
|
|
55
|
-
* @param $event The file input event.
|
|
56
|
-
*/
|
|
57
|
-
uploadAttachment($event: Event): void;
|
|
58
|
-
/**
|
|
59
|
-
* Initiates a download for the specified attachment.
|
|
60
|
-
* @param attachment The attachment to download.
|
|
61
|
-
*/
|
|
62
|
-
downloadAttachment(attachment: Attachment): void;
|
|
63
|
-
/**
|
|
64
|
-
* Opens a preview dialog for the template.
|
|
65
|
-
*/
|
|
66
|
-
showPreview(): void;
|
|
67
|
-
/**
|
|
68
|
-
* Loads a draft version of the template.
|
|
69
|
-
*/
|
|
70
|
-
loadDraft(): void;
|
|
71
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateFormComponent, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TemplateFormComponent, "app-template-form", never, {}, {}, never, never, false, never>;
|
|
73
|
-
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
2
|
-
import { NgModel } from '@angular/forms';
|
|
3
|
-
import { MatDialogRef } from '@angular/material/dialog';
|
|
4
|
-
import { ActivatedRoute } from '@angular/router';
|
|
5
|
-
import { BaseComponent } from '@messaia/cdk';
|
|
6
|
-
import { PDFSource } from 'ng2-pdf-viewer';
|
|
7
|
-
import { TemplateType } from '../../enums/template-type';
|
|
8
|
-
import { TemplatePreview } from '../../models/template-preview';
|
|
9
|
-
import { TemplatePreviewService } from '../../services/template-preview.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare class TemplatePreviewDialogComponent extends BaseComponent {
|
|
12
|
-
protected service: TemplatePreviewService;
|
|
13
|
-
dialogRef: MatDialogRef<TemplatePreviewDialogComponent>;
|
|
14
|
-
data: TemplatePreview;
|
|
15
|
-
protected route: ActivatedRoute;
|
|
16
|
-
protected changeDetectorRef: ChangeDetectorRef;
|
|
17
|
-
/**
|
|
18
|
-
* TemplateType
|
|
19
|
-
*/
|
|
20
|
-
TemplateType: typeof TemplateType;
|
|
21
|
-
/**
|
|
22
|
-
* Pdf blob
|
|
23
|
-
*/
|
|
24
|
-
pdfBlob?: Blob;
|
|
25
|
-
/**
|
|
26
|
-
* PDF source
|
|
27
|
-
*/
|
|
28
|
-
pdfSrc?: string | Uint8Array | PDFSource;
|
|
29
|
-
/**
|
|
30
|
-
* Pdf zoom
|
|
31
|
-
*/
|
|
32
|
-
zoom: number;
|
|
33
|
-
/**
|
|
34
|
-
* Pdf zoom scale
|
|
35
|
-
*/
|
|
36
|
-
zoomScale: 'page-height' | 'page-fit' | 'page-width';
|
|
37
|
-
/**
|
|
38
|
-
* Track whether the dialog is maximized
|
|
39
|
-
*/
|
|
40
|
-
isMaximized: boolean;
|
|
41
|
-
iframeRef?: ElementRef;
|
|
42
|
-
emailModel?: NgModel;
|
|
43
|
-
/**
|
|
44
|
-
* Constructor
|
|
45
|
-
* @param dialogRef
|
|
46
|
-
* @param data
|
|
47
|
-
*/
|
|
48
|
-
constructor(service: TemplatePreviewService, dialogRef: MatDialogRef<TemplatePreviewDialogComponent>, data: TemplatePreview, route: ActivatedRoute, changeDetectorRef: ChangeDetectorRef);
|
|
49
|
-
/**
|
|
50
|
-
* Lifecycle hook that is called after data-bound properties
|
|
51
|
-
* of a directive are initialized.
|
|
52
|
-
*/
|
|
53
|
-
ngOnInit(): void;
|
|
54
|
-
/**
|
|
55
|
-
* Sends a mail
|
|
56
|
-
*/
|
|
57
|
-
sendMail(): void;
|
|
58
|
-
/**
|
|
59
|
-
* Downloads the pdf
|
|
60
|
-
*/
|
|
61
|
-
download(): void;
|
|
62
|
-
/**
|
|
63
|
-
* Zooms in the pdf
|
|
64
|
-
*/
|
|
65
|
-
zoomIn(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Zooms out the pdf
|
|
68
|
-
*/
|
|
69
|
-
zoomOut(): void;
|
|
70
|
-
/**
|
|
71
|
-
* Closes the dialog
|
|
72
|
-
*/
|
|
73
|
-
cancel(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Toggle the dialog between maximized and normal size
|
|
76
|
-
*/
|
|
77
|
-
toggleMaximize(): void;
|
|
78
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TemplatePreviewDialogComponent, never>;
|
|
79
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TemplatePreviewDialogComponent, "app-template-preview", never, {}, {}, never, never, false, never>;
|
|
80
|
-
}
|
package/lib/enums/faq-scope.d.ts
DELETED
package/lib/enums/wrap-tag.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CmsSettings {
|
|
3
|
-
/**
|
|
4
|
-
* @property
|
|
5
|
-
*/
|
|
6
|
-
multiClients?: boolean;
|
|
7
|
-
/**
|
|
8
|
-
* @property
|
|
9
|
-
*/
|
|
10
|
-
multiDepartments?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @property
|
|
13
|
-
*/
|
|
14
|
-
multitenantable?: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* @property
|
|
17
|
-
*/
|
|
18
|
-
styleUrlEndpoint?: Function;
|
|
19
|
-
/**
|
|
20
|
-
* @property
|
|
21
|
-
*/
|
|
22
|
-
editorHeight?: string;
|
|
23
|
-
/**
|
|
24
|
-
* constructor
|
|
25
|
-
* @param init
|
|
26
|
-
*/
|
|
27
|
-
constructor(init?: Partial<CmsSettings>);
|
|
28
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CmsSettings, never>;
|
|
29
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CmsSettings>;
|
|
30
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export declare class ContentClient {
|
|
5
|
-
/**
|
|
6
|
-
* @property
|
|
7
|
-
*/
|
|
8
|
-
contentId?: number;
|
|
9
|
-
/**
|
|
10
|
-
* @property
|
|
11
|
-
*/
|
|
12
|
-
clientId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @property
|
|
15
|
-
*/
|
|
16
|
-
client?: any;
|
|
17
|
-
/**
|
|
18
|
-
* @property
|
|
19
|
-
*/
|
|
20
|
-
clientName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Constructor
|
|
23
|
-
* @param init
|
|
24
|
-
*/
|
|
25
|
-
constructor(init?: Partial<ContentClient>);
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export declare class ContentDepartment {
|
|
5
|
-
/**
|
|
6
|
-
* @property
|
|
7
|
-
*/
|
|
8
|
-
contentId?: number;
|
|
9
|
-
/**
|
|
10
|
-
* @property
|
|
11
|
-
*/
|
|
12
|
-
departmentId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @property
|
|
15
|
-
*/
|
|
16
|
-
department?: any;
|
|
17
|
-
/**
|
|
18
|
-
* @property
|
|
19
|
-
*/
|
|
20
|
-
departmentName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Constructor
|
|
23
|
-
* @param init
|
|
24
|
-
*/
|
|
25
|
-
constructor(init?: Partial<ContentDepartment>);
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export declare class ContentVariableClient {
|
|
5
|
-
/**
|
|
6
|
-
* @property
|
|
7
|
-
*/
|
|
8
|
-
contentVariableId?: number;
|
|
9
|
-
/**
|
|
10
|
-
* @property
|
|
11
|
-
*/
|
|
12
|
-
clientId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @property
|
|
15
|
-
*/
|
|
16
|
-
client?: any;
|
|
17
|
-
/**
|
|
18
|
-
* @property
|
|
19
|
-
*/
|
|
20
|
-
clientName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Constructor
|
|
23
|
-
* @param init
|
|
24
|
-
*/
|
|
25
|
-
constructor(init?: Partial<ContentVariableClient>);
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class
|
|
3
|
-
*/
|
|
4
|
-
export declare class ContentVariableDepartment {
|
|
5
|
-
/**
|
|
6
|
-
* @property
|
|
7
|
-
*/
|
|
8
|
-
contentVariableId?: number;
|
|
9
|
-
/**
|
|
10
|
-
* @property
|
|
11
|
-
*/
|
|
12
|
-
departmentId?: number;
|
|
13
|
-
/**
|
|
14
|
-
* @property
|
|
15
|
-
*/
|
|
16
|
-
department?: any;
|
|
17
|
-
/**
|
|
18
|
-
* @property
|
|
19
|
-
*/
|
|
20
|
-
departmentName?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Constructor
|
|
23
|
-
* @param init
|
|
24
|
-
*/
|
|
25
|
-
constructor(init?: Partial<ContentVariableDepartment>);
|
|
26
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { AuditEntity } from "@messaia/cdk";
|
|
2
|
-
import { ContentVariableClient } from "./content-variable-client";
|
|
3
|
-
import { ContentVariableDepartment } from "./content-variable-department";
|
|
4
|
-
export declare class ContentVariable extends AuditEntity {
|
|
5
|
-
/**
|
|
6
|
-
* @property
|
|
7
|
-
*/
|
|
8
|
-
title?: string;
|
|
9
|
-
/**
|
|
10
|
-
* @property
|
|
11
|
-
*/
|
|
12
|
-
name?: string;
|
|
13
|
-
/**
|
|
14
|
-
* @property
|
|
15
|
-
*/
|
|
16
|
-
value?: string;
|
|
17
|
-
/**
|
|
18
|
-
* @property
|
|
19
|
-
*/
|
|
20
|
-
clientJoins?: ContentVariableClient[];
|
|
21
|
-
/**
|
|
22
|
-
* @property
|
|
23
|
-
*/
|
|
24
|
-
departmentJoins?: ContentVariableDepartment[];
|
|
25
|
-
/**
|
|
26
|
-
* @property
|
|
27
|
-
*/
|
|
28
|
-
enabled?: boolean;
|
|
29
|
-
}
|