@messaia/cdk-cms 20.2.7 → 21.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/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@messaia/cdk-cms",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "21.0.0-rc.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": "^
|
|
6
|
-
"@angular/core": "^
|
|
5
|
+
"@angular/common": "^21.0.6",
|
|
6
|
+
"@angular/core": "^21.0.6"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2.3.0"
|
|
@@ -452,6 +452,12 @@ declare enum TemplateType {
|
|
|
452
452
|
Pdf = 1
|
|
453
453
|
}
|
|
454
454
|
|
|
455
|
+
declare enum TemplateEngine {
|
|
456
|
+
Razor = 0,
|
|
457
|
+
Fluid = 1,
|
|
458
|
+
Scriban = 2
|
|
459
|
+
}
|
|
460
|
+
|
|
455
461
|
/**
|
|
456
462
|
* @class
|
|
457
463
|
*/
|
|
@@ -508,55 +514,93 @@ declare class TemplateDepartment {
|
|
|
508
514
|
|
|
509
515
|
declare class Template extends AuditEntity {
|
|
510
516
|
/**
|
|
511
|
-
* @property
|
|
517
|
+
* @property Defines the template engine (e.g. Razor, Fluid).
|
|
518
|
+
* @description Determines how the template content is processed and rendered.
|
|
519
|
+
* @type {TemplateEngine | undefined}
|
|
520
|
+
*/
|
|
521
|
+
engine?: TemplateEngine;
|
|
522
|
+
/**
|
|
523
|
+
* @property Defines the template type (e.g. Email, PDF).
|
|
524
|
+
* @description Determines how the template content is interpreted and rendered.
|
|
525
|
+
* @type {TemplateType}
|
|
512
526
|
*/
|
|
513
527
|
type: TemplateType;
|
|
514
528
|
/**
|
|
515
|
-
* @property
|
|
529
|
+
* @property Human-readable name of the template.
|
|
530
|
+
* @description Used for identification in lists and selectors.
|
|
531
|
+
* @type {string | undefined}
|
|
516
532
|
*/
|
|
517
533
|
name?: string;
|
|
518
534
|
/**
|
|
519
|
-
* @property
|
|
535
|
+
* @property Draft template reference.
|
|
536
|
+
* @description Selecting a draft loads its content into the editor.
|
|
537
|
+
* @type {string | undefined}
|
|
520
538
|
*/
|
|
521
539
|
draft?: string;
|
|
522
540
|
/**
|
|
523
|
-
* @property
|
|
541
|
+
* @property Template subject.
|
|
542
|
+
* @description Typically used for email-based templates.
|
|
543
|
+
* @type {string | undefined}
|
|
524
544
|
*/
|
|
525
545
|
subject?: string;
|
|
526
546
|
/**
|
|
527
|
-
* @property
|
|
547
|
+
* @property Unique template key.
|
|
548
|
+
* @description Used for programmatic access and lookup.
|
|
549
|
+
* @type {string | undefined}
|
|
528
550
|
*/
|
|
529
551
|
key?: string;
|
|
530
552
|
/**
|
|
531
|
-
* @property
|
|
553
|
+
* @property Internal notice.
|
|
554
|
+
* @description Informational text not included in rendered output.
|
|
555
|
+
* @type {string | undefined}
|
|
532
556
|
*/
|
|
533
557
|
notice?: string;
|
|
534
558
|
/**
|
|
535
|
-
* @property
|
|
559
|
+
* @property Email address.
|
|
560
|
+
* @description Optional sender or reply-to address.
|
|
561
|
+
* @type {string | undefined}
|
|
536
562
|
*/
|
|
537
563
|
email?: string;
|
|
538
564
|
/**
|
|
539
|
-
* @property
|
|
565
|
+
* @property Template content.
|
|
566
|
+
* @description Main rendered body (HTML, text, etc.).
|
|
567
|
+
* @type {string | undefined}
|
|
540
568
|
*/
|
|
541
569
|
content?: string;
|
|
542
570
|
/**
|
|
543
|
-
* @property
|
|
571
|
+
* @property Dummy data.
|
|
572
|
+
* @description Sample data used for previewing the template.
|
|
573
|
+
* @type {string | undefined}
|
|
544
574
|
*/
|
|
545
575
|
dummyData?: string;
|
|
546
576
|
/**
|
|
547
|
-
* @property
|
|
577
|
+
* @property Client associations.
|
|
578
|
+
* @description Controls template visibility in multi-client environments.
|
|
579
|
+
* @type {TemplateClient[] | undefined}
|
|
548
580
|
*/
|
|
549
581
|
clientJoins?: TemplateClient[];
|
|
550
582
|
/**
|
|
551
|
-
* @property
|
|
583
|
+
* @property Department associations.
|
|
584
|
+
* @description Further restricts template visibility by department.
|
|
585
|
+
* @type {TemplateDepartment[] | undefined}
|
|
552
586
|
*/
|
|
553
587
|
departmentJoins?: TemplateDepartment[];
|
|
554
588
|
/**
|
|
555
|
-
* @property
|
|
589
|
+
* @property Reviewed flag.
|
|
590
|
+
* @description Indicates whether the template is active and selectable.
|
|
591
|
+
* @type {boolean | undefined}
|
|
592
|
+
*/
|
|
593
|
+
reviewed?: true;
|
|
594
|
+
/**
|
|
595
|
+
* @property Enabled flag.
|
|
596
|
+
* @description Indicates whether the template is active and selectable.
|
|
597
|
+
* @type {boolean | undefined}
|
|
556
598
|
*/
|
|
557
599
|
enabled?: true;
|
|
558
600
|
/**
|
|
559
|
-
* @property
|
|
601
|
+
* @property Attachments.
|
|
602
|
+
* @description Files attached to the template (e.g. email attachments).
|
|
603
|
+
* @type {Attachment[]}
|
|
560
604
|
*/
|
|
561
605
|
attachments: Attachment[];
|
|
562
606
|
}
|
|
@@ -1189,4 +1233,4 @@ declare class SliderService extends GenericService<Slider> {
|
|
|
1189
1233
|
|
|
1190
1234
|
declare const DocumentFormTemplate = "\n <div mat-dialog-title class=\"mat-headline-6\" i18n=\"@@newDocument\">New document</div>\n <form *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"save()\">\n <vd-generic-form [formGroup]=\"form\" [fieldGroups]=\"fieldGroups\" [context]=\"this\">\n <ng-template vd-file let-field=\"field\" let-formGroup=\"formGroup\">\n <mat-form-field [attr.flex]=\"field.flex||0\" layout-margin appearance=\"outline\">\n <mat-label>{{field.header}}</mat-label>\n <div vd-file-input [formControlName]=\"field.name\" (select)=\"upload($event)\" [accept]=\"field.fileExtensions\"></div>\n </mat-form-field>\n </ng-template>\n </vd-generic-form>\n <div mat-dialog-actions class=\"pad-top\">\n <button type=\"submit\" mat-flat-button [disabled]=\"isSaving\" color=\"primary\" i18n=\"@@save\">Save</button>\n <button type=\"button\" mat-button (click)=\"cancel()\" i18n=\"@@cancel\">Cancel</button>\n </div>\n </form>";
|
|
1191
1235
|
|
|
1192
|
-
export { CmsSettings, Content, ContentClient, ContentDepartment, ContentFormComponent, ContentService, ContentType, ContentVariable, ContentVariableClient, ContentVariableDepartment, ContentVariableService, Document, DocumentDialogComponent, DocumentFormBaseComponent, DocumentFormTemplate, DocumentGenericService, DocumentListProjectionResolve, DocumentService, ExcludedColumnsResolve, ExcludedFieldsResolve, Faq, FaqClient, FaqDepartment, FaqScope, FaqService, FormIncludesResolve, FormValidationResolve, ListProjectionResolve, SettingsResolve, Slider, SliderService, Template, TemplateClient, TemplateDepartment, TemplateDocService, TemplateFormComponent, TemplatePreview, TemplatePreviewDialogComponent, TemplatePreviewService, TemplateService, TemplateType, VdCmsModule, VdCmsRoutingModule, WrapTag };
|
|
1236
|
+
export { CmsSettings, Content, ContentClient, ContentDepartment, ContentFormComponent, ContentService, ContentType, ContentVariable, ContentVariableClient, ContentVariableDepartment, ContentVariableService, Document, DocumentDialogComponent, DocumentFormBaseComponent, DocumentFormTemplate, DocumentGenericService, DocumentListProjectionResolve, DocumentService, ExcludedColumnsResolve, ExcludedFieldsResolve, Faq, FaqClient, FaqDepartment, FaqScope, FaqService, FormIncludesResolve, FormValidationResolve, ListProjectionResolve, SettingsResolve, Slider, SliderService, Template, TemplateClient, TemplateDepartment, TemplateDocService, TemplateEngine, TemplateFormComponent, TemplatePreview, TemplatePreviewDialogComponent, TemplatePreviewService, TemplateService, TemplateType, VdCmsModule, VdCmsRoutingModule, WrapTag };
|