@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.
Files changed (51) hide show
  1. package/README.md +49 -10
  2. package/fesm2022/messaia-cdk-cms.mjs +218 -269
  3. package/fesm2022/messaia-cdk-cms.mjs.map +1 -1
  4. package/index.d.ts +1164 -3
  5. package/package.json +6 -7
  6. package/lib/cms-routing.module.d.ts +0 -7
  7. package/lib/cms.module.d.ts +0 -46
  8. package/lib/comnponents/content-form/content-form.component.d.ts +0 -110
  9. package/lib/comnponents/document-dialog/document-dialog.component.d.ts +0 -26
  10. package/lib/comnponents/document-form-base/document-form-base.component.d.ts +0 -48
  11. package/lib/comnponents/template-form/template-form.component.d.ts +0 -73
  12. package/lib/comnponents/template-preview-dialog/template-preview-dialog.component.d.ts +0 -80
  13. package/lib/enums/content-type.d.ts +0 -4
  14. package/lib/enums/faq-scope.d.ts +0 -4
  15. package/lib/enums/template-type.d.ts +0 -4
  16. package/lib/enums/wrap-tag.d.ts +0 -7
  17. package/lib/models/cms-settings.d.ts +0 -30
  18. package/lib/models/content-client.d.ts +0 -26
  19. package/lib/models/content-department.d.ts +0 -26
  20. package/lib/models/content-variable-client.d.ts +0 -26
  21. package/lib/models/content-variable-department.d.ts +0 -26
  22. package/lib/models/content-variable.d.ts +0 -29
  23. package/lib/models/content.d.ts +0 -103
  24. package/lib/models/document.d.ts +0 -20
  25. package/lib/models/faq-client.d.ts +0 -26
  26. package/lib/models/faq-department.d.ts +0 -26
  27. package/lib/models/faq.d.ts +0 -38
  28. package/lib/models/slider.d.ts +0 -63
  29. package/lib/models/template-client.d.ts +0 -26
  30. package/lib/models/template-department.d.ts +0 -26
  31. package/lib/models/template-preview.d.ts +0 -44
  32. package/lib/models/template.d.ts +0 -59
  33. package/lib/public-api.d.ts +0 -31
  34. package/lib/resolvers/document-list-projection.resolve.d.ts +0 -20
  35. package/lib/resolvers/excluded-columns.resolve.d.ts +0 -13
  36. package/lib/resolvers/excluded-fields.resolve.d.ts +0 -13
  37. package/lib/resolvers/form-includes.resolve.d.ts +0 -20
  38. package/lib/resolvers/form-validation.resolve.d.ts +0 -13
  39. package/lib/resolvers/list-projection.resolve.d.ts +0 -20
  40. package/lib/resolvers/settings.resolve.d.ts +0 -15
  41. package/lib/services/content-variable.service.d.ts +0 -17
  42. package/lib/services/content.service.d.ts +0 -23
  43. package/lib/services/document.generic-service.d.ts +0 -9
  44. package/lib/services/document.service`.d.ts +0 -17
  45. package/lib/services/faq.service.d.ts +0 -11
  46. package/lib/services/slider.service.d.ts +0 -11
  47. package/lib/services/template-doc.service.d.ts +0 -11
  48. package/lib/services/template-preview.service.d.ts +0 -11
  49. package/lib/services/template.service.d.ts +0 -11
  50. package/lib/templates/document-form.template.d.ts +0 -2
  51. package/public_api.d.ts +0 -1
@@ -1,103 +0,0 @@
1
- import { AuditEntity } from "@messaia/cdk";
2
- import { ContentType } from "../enums/content-type";
3
- import { WrapTag } from "../enums/wrap-tag";
4
- import { ContentClient } from "./content-client";
5
- import { ContentDepartment } from "./content-department";
6
- export declare class Content extends AuditEntity {
7
- /**
8
- * @property Defines the type of the content.
9
- * @description Optional enum property indicating the content's type.
10
- * @type {ContentType}
11
- */
12
- type?: ContentType;
13
- /**
14
- * @property Identifier for the section the content belongs to.
15
- * @description Optional number representing the section ID.
16
- * @type {number}
17
- */
18
- sectionId?: number;
19
- /**
20
- * @property The title of the content.
21
- * @description This required property represents the human-readable title displayed in the UI.
22
- * @type {string}
23
- */
24
- title?: string;
25
- /**
26
- * @property Internal name of the content.
27
- * @description This required property is used for internal reference and URLs.
28
- * @type {string}
29
- */
30
- name?: string;
31
- /**
32
- * @property Aliases of the content.
33
- * @description Optional string used to define alternative names or keywords.
34
- * @type {string}
35
- */
36
- aliases?: string;
37
- /**
38
- * @property The wrap tag used for HTML structure.
39
- * @description Optional property that defines how the content is wrapped in the DOM.
40
- * @type {WrapTag}
41
- */
42
- wrapTag: WrapTag;
43
- /**
44
- * @property Layout identifier or class name.
45
- * @description Optional layout style applied to this content block.
46
- * @type {string}
47
- */
48
- layout?: string;
49
- /**
50
- * @property Main body of the content.
51
- * @description Optional HTML or markdown content.
52
- * @type {string}
53
- */
54
- body?: string;
55
- /**
56
- * @property Embedded script.
57
- * @description Optional JavaScript code associated with the content.
58
- * @type {string}
59
- */
60
- script?: string;
61
- /**
62
- * @property headScript
63
- * @description This optional property allows insertion of custom JavaScript code inside the <head> tag of the HTML document.
64
- * @type {string}
65
- */
66
- headScript?: string;
67
- /**
68
- * @property noScript
69
- * @description This optional property allows inserting content inside a <noscript> tag, which is rendered when JavaScript is disabled.
70
- * @type {string}
71
- */
72
- noScript?: string;
73
- /**
74
- * @property Embedded style.
75
- * @description Optional CSS styling specific to this content.
76
- * @type {string}
77
- */
78
- style?: string;
79
- /**
80
- * @property Indicates whether the title should be shown.
81
- * @description This optional boolean defaults to true and determines title visibility.
82
- * @type {boolean}
83
- */
84
- showTitle: boolean;
85
- /**
86
- * @property Indicates whether the content is enabled.
87
- * @description This boolean property enables or disables the content, default is true.
88
- * @type {boolean}
89
- */
90
- enabled: boolean;
91
- /**
92
- * @property Associated clients for this content.
93
- * @description This required property defines which clients the content is related to.
94
- * @type {ContentClient[]}
95
- */
96
- clientJoins?: ContentClient[];
97
- /**
98
- * @property Associated departments for this content.
99
- * @description Optional departments related to this content, with visibility based on admin context.
100
- * @type {ContentDepartment[]}
101
- */
102
- departmentJoins?: ContentDepartment[];
103
- }
@@ -1,20 +0,0 @@
1
- import { DocumentBase } from "@messaia/cdk-base";
2
- export declare class Document extends DocumentBase {
3
- /**
4
- * @property
5
- */
6
- clientId?: number;
7
- /**
8
- * @property
9
- */
10
- departmentId?: number;
11
- /**
12
- * @property
13
- */
14
- path: string;
15
- /**
16
- * constructor
17
- * @param init
18
- */
19
- constructor(init?: Partial<Document>);
20
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @class
3
- */
4
- export declare class FaqClient {
5
- /**
6
- * @property
7
- */
8
- faqId?: 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<FaqClient>);
26
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @class
3
- */
4
- export declare class FaqDepartment {
5
- /**
6
- * @property
7
- */
8
- faqId?: 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<FaqDepartment>);
26
- }
@@ -1,38 +0,0 @@
1
- import { AuditEntity } from "@messaia/cdk";
2
- import { FaqClient } from "./faq-client";
3
- import { FaqDepartment } from "./faq-department";
4
- export declare class Faq extends AuditEntity {
5
- /**
6
- * @property
7
- */
8
- question?: string;
9
- /**
10
- * @property
11
- */
12
- group?: string;
13
- /**
14
- * @property
15
- */
16
- clientJoins?: FaqClient[];
17
- /**
18
- * @property
19
- */
20
- departmentJoins?: FaqDepartment[];
21
- /**
22
- * @property
23
- */
24
- ordering?: number;
25
- /**
26
- * @property
27
- */
28
- answer?: string;
29
- /**
30
- * @property
31
- */
32
- enabled?: boolean;
33
- /**
34
- * constructor
35
- * @param init
36
- */
37
- constructor(init?: Partial<Faq>);
38
- }
@@ -1,63 +0,0 @@
1
- import { AuditEntity } from "@messaia/cdk";
2
- export declare class Slider extends AuditEntity {
3
- /**
4
- * @property Slider name.
5
- * @description The title or identifier for the slider.
6
- * @type {string | undefined}
7
- */
8
- name?: string;
9
- /**
10
- * @property Slider group.
11
- * @description A group identifier used to categorize sliders.
12
- * @type {string | undefined}
13
- */
14
- group?: string;
15
- /**
16
- * @property Slider content.
17
- * @description HTML or rich text content displayed within the slider.
18
- * @type {string | undefined}
19
- */
20
- content?: string;
21
- /**
22
- * @property Embedded style.
23
- * @description Optional CSS styling specific to this content.
24
- * @type {string}
25
- */
26
- styleInline?: string;
27
- /**
28
- * @property Slider image path.
29
- * @description File path to the slider image, typically used internally.
30
- * @type {string | undefined}
31
- */
32
- imagePath?: string;
33
- /**
34
- * @property Image file for the slider.
35
- * @description This property stores the image file for the slider, located in a common directory for slider images.
36
- * @type {string | undefined}
37
- */
38
- image?: string;
39
- /**
40
- * @property CSS class.
41
- * @description Custom CSS class applied to the slider, useful for styling purposes.
42
- * @type {string | undefined}
43
- */
44
- cssClass?: string;
45
- /**
46
- * @property Client ID.
47
- * @description Reference to the associated client or project.
48
- * @type {number | undefined}
49
- */
50
- clientId?: number;
51
- /**
52
- * @property Ordering index.
53
- * @description Position of the slider in a sorted list.
54
- * @type {number | undefined}
55
- */
56
- ordering?: number;
57
- /**
58
- * @property Enabled flag.
59
- * @description Indicates whether the slider is active or visible.
60
- * @type {boolean | undefined}
61
- */
62
- enabled?: boolean;
63
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @class
3
- */
4
- export declare class TemplateClient {
5
- /**
6
- * @property
7
- */
8
- templateId?: 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<TemplateClient>);
26
- }
@@ -1,26 +0,0 @@
1
- /**
2
- * @class
3
- */
4
- export declare class TemplateDepartment {
5
- /**
6
- * @property
7
- */
8
- templateId?: 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<TemplateDepartment>);
26
- }
@@ -1,44 +0,0 @@
1
- import { TemplateType } from "../enums/template-type";
2
- export declare class TemplatePreview {
3
- /**
4
- * @property
5
- */
6
- type?: TemplateType;
7
- /**
8
- * @property
9
- */
10
- endpoint?: string;
11
- /**
12
- * @property
13
- */
14
- displayName?: string;
15
- /**
16
- * @property
17
- */
18
- entityName?: string;
19
- /**
20
- * @property
21
- */
22
- entityId?: number;
23
- /**
24
- * @property
25
- */
26
- templateId?: number;
27
- /**
28
- * @property
29
- */
30
- email?: string;
31
- /**
32
- * @property
33
- */
34
- subject?: string;
35
- /**
36
- * @property
37
- */
38
- content?: string;
39
- /**
40
- * constructor
41
- * @param init
42
- */
43
- constructor(init?: Partial<TemplatePreview>);
44
- }
@@ -1,59 +0,0 @@
1
- import { AuditEntity } from "@messaia/cdk";
2
- import { Attachment } from "@messaia/cdk-base";
3
- import { TemplateType } from "../enums/template-type";
4
- import { TemplateClient } from "./template-client";
5
- import { TemplateDepartment } from "./template-department";
6
- export declare class Template extends AuditEntity {
7
- /**
8
- * @property
9
- */
10
- type: TemplateType;
11
- /**
12
- * @property
13
- */
14
- name?: string;
15
- /**
16
- * @property
17
- */
18
- draft?: string;
19
- /**
20
- * @property
21
- */
22
- subject?: string;
23
- /**
24
- * @property
25
- */
26
- key?: string;
27
- /**
28
- * @property
29
- */
30
- notice?: string;
31
- /**
32
- * @property
33
- */
34
- email?: string;
35
- /**
36
- * @property
37
- */
38
- content?: string;
39
- /**
40
- * @property
41
- */
42
- dummyData?: string;
43
- /**
44
- * @property
45
- */
46
- clientJoins?: TemplateClient[];
47
- /**
48
- * @property
49
- */
50
- departmentJoins?: TemplateDepartment[];
51
- /**
52
- * @property
53
- */
54
- enabled?: true;
55
- /**
56
- * @property
57
- */
58
- attachments: Attachment[];
59
- }
@@ -1,31 +0,0 @@
1
- export * from './cms.module';
2
- export * from './enums/content-type';
3
- export * from './enums/faq-scope';
4
- export * from './enums/template-type';
5
- export * from './enums/wrap-tag';
6
- export * from './models/cms-settings';
7
- export * from './models/content';
8
- export * from './models/content-client';
9
- export * from './models/content-department';
10
- export * from './models/content-variable';
11
- export * from './models/content-variable-client';
12
- export * from './models/content-variable-department';
13
- export * from './models/document';
14
- export * from './models/faq';
15
- export * from './models/faq-client';
16
- export * from './models/faq-department';
17
- export * from './models/slider';
18
- export * from './models/template';
19
- export * from './models/template-client';
20
- export * from './models/template-department';
21
- export * from './models/template-preview';
22
- export * from './resolvers/form-includes.resolve';
23
- export * from './resolvers/list-projection.resolve';
24
- export * from './services/content-variable.service';
25
- export * from './services/content.service';
26
- export * from './services/document.generic-service';
27
- export * from './services/document.service`';
28
- export * from './services/faq.service';
29
- export * from './services/slider.service';
30
- export * from './services/template-preview.service';
31
- export * from './services/template.service';
@@ -1,20 +0,0 @@
1
- import { OidcSecurityService } from "angular-auth-oidc-client";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Includes resolve service
6
- */
7
- export declare class DocumentListProjectionResolve {
8
- private oidcSecurityService;
9
- /**
10
- * Constructor
11
- * @param oidcSecurityService
12
- */
13
- constructor(oidcSecurityService: OidcSecurityService);
14
- /**
15
- * Resolves includes
16
- */
17
- resolve(): Observable<string[]>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<DocumentListProjectionResolve, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<DocumentListProjectionResolve>;
20
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Excluded columns resolve service
5
- */
6
- export declare class ExcludedColumnsResolve {
7
- /**
8
- * Resolves excluded columns
9
- */
10
- resolve(): Observable<string[]>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedColumnsResolve, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedColumnsResolve>;
13
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Excluded fields resolve service
5
- */
6
- export declare class ExcludedFieldsResolve {
7
- /**
8
- * Resolves excluded fields
9
- */
10
- resolve(): Observable<string[]>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<ExcludedFieldsResolve, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<ExcludedFieldsResolve>;
13
- }
@@ -1,20 +0,0 @@
1
- import { OidcSecurityService } from "angular-auth-oidc-client";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Includes resolve service
6
- */
7
- export declare class FormIncludesResolve {
8
- private oidcSecurityService;
9
- /**
10
- * Constructor
11
- * @param oidcSecurityService
12
- */
13
- constructor(oidcSecurityService: OidcSecurityService);
14
- /**
15
- * Resolves includes
16
- */
17
- resolve(): Observable<string[]>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<FormIncludesResolve, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<FormIncludesResolve>;
20
- }
@@ -1,13 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Form validation resolve service
5
- */
6
- export declare class FormValidationResolve {
7
- /**
8
- * Resolves Form validation
9
- */
10
- resolve(): Observable<any>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<FormValidationResolve, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<FormValidationResolve>;
13
- }
@@ -1,20 +0,0 @@
1
- import { OidcSecurityService } from "angular-auth-oidc-client";
2
- import { Observable } from "rxjs";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Includes resolve service
6
- */
7
- export declare class ListProjectionResolve {
8
- private oidcSecurityService;
9
- /**
10
- * Constructor
11
- * @param oidcSecurityService
12
- */
13
- constructor(oidcSecurityService: OidcSecurityService);
14
- /**
15
- * Resolves includes
16
- */
17
- resolve(): Observable<string[]>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<ListProjectionResolve, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<ListProjectionResolve>;
20
- }
@@ -1,15 +0,0 @@
1
- import { ActivatedRouteSnapshot } from "@angular/router";
2
- import { Observable } from "rxjs";
3
- import { CmsSettings } from "../models/cms-settings";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Settings resolve service
7
- */
8
- export declare class SettingsResolve {
9
- /**
10
- * Resolves settings
11
- */
12
- resolve(route: ActivatedRouteSnapshot): Observable<CmsSettings>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<SettingsResolve, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<SettingsResolve>;
15
- }
@@ -1,17 +0,0 @@
1
- import { GenericService } from '@messaia/cdk';
2
- import { ContentVariable } from '../models/content-variable';
3
- import * as i0 from "@angular/core";
4
- export declare class ContentVariableService extends GenericService<ContentVariable> {
5
- /**
6
- * Constructor
7
- */
8
- constructor();
9
- /**
10
- * Checks if the specified alias is available.
11
- * @param id
12
- * @param alias
13
- */
14
- isNameAvailable(item: ContentVariable): import("rxjs").Observable<any>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentVariableService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentVariableService>;
17
- }
@@ -1,23 +0,0 @@
1
- import { GenericService } from '@messaia/cdk';
2
- import { Observable } from 'rxjs';
3
- import { Content } from '../models/content';
4
- import * as i0 from "@angular/core";
5
- export declare class ContentService extends GenericService<Content> {
6
- /**
7
- * Constructor
8
- */
9
- constructor();
10
- /**
11
- * Checks if the specified alias is available.
12
- * @param id
13
- * @param alias
14
- */
15
- isAliasAvailable(item: Content): Observable<any>;
16
- /**
17
- * Duplicates a tariff
18
- * @param id
19
- */
20
- duplicate(id: number): Observable<any>;
21
- static ɵfac: i0.ɵɵFactoryDeclaration<ContentService, never>;
22
- static ɵprov: i0.ɵɵInjectableDeclaration<ContentService>;
23
- }
@@ -1,9 +0,0 @@
1
- import { GenericService } from '@messaia/cdk';
2
- import { DocumentBase } from '@messaia/cdk-base';
3
- export declare abstract class DocumentGenericService<TDocument extends DocumentBase> extends GenericService<TDocument> {
4
- /**
5
- * Constructor
6
- * @param serviceName
7
- */
8
- constructor(serviceName?: string);
9
- }
@@ -1,17 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { Document } from '../models/document';
3
- import { DocumentGenericService } from './document.generic-service';
4
- import * as i0 from "@angular/core";
5
- export declare class DocumentService extends DocumentGenericService<Document> {
6
- /**
7
- * Constructor
8
- */
9
- constructor();
10
- /**
11
- * Sends an email to the customer
12
- * @param id The ID of the document
13
- */
14
- sendMail(id: number): Observable<any>;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<DocumentService, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<DocumentService>;
17
- }
@@ -1,11 +0,0 @@
1
- import { GenericService } from '@messaia/cdk';
2
- import { Faq } from '../models/faq';
3
- import * as i0 from "@angular/core";
4
- export declare class FaqService extends GenericService<Faq> {
5
- /**
6
- * Constructor
7
- */
8
- constructor();
9
- static ɵfac: i0.ɵɵFactoryDeclaration<FaqService, never>;
10
- static ɵprov: i0.ɵɵInjectableDeclaration<FaqService>;
11
- }