@valtimo-plugins/freemarker 7.0.2 → 8.1.0
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/valtimo-plugins-freemarker.mjs +1164 -176
- package/fesm2022/valtimo-plugins-freemarker.mjs.map +1 -1
- package/lib/models/freemarker-template.d.ts +9 -6
- package/lib/plugins/document-generator/assets/document-generator-plugin-logo.d.ts +2 -0
- package/lib/plugins/document-generator/assets/index.d.ts +1 -0
- package/lib/plugins/document-generator/components/document-generator-configuration/document-generator-configuration.component.d.ts +25 -0
- package/lib/plugins/document-generator/components/document-template-add-edit-modal/document-template-add-edit-modal.component.d.ts +36 -0
- package/lib/plugins/document-generator/components/document-template-delete-modal/document-template-delete-modal.component.d.ts +11 -0
- package/lib/plugins/document-generator/components/document-template-editor/document-template-editor.component.d.ts +53 -0
- package/lib/plugins/document-generator/components/document-template-list/document-template-list.component.d.ts +35 -0
- package/lib/plugins/document-generator/components/generate-csv/generate-csv.component.d.ts +32 -0
- package/lib/plugins/document-generator/components/generate-pdf/generate-pdf.component.d.ts +32 -0
- package/lib/plugins/document-generator/document-generator-management-routing.module.d.ts +8 -0
- package/lib/plugins/document-generator/document-generator-plugin-module.d.ts +16 -0
- package/lib/plugins/document-generator/document-generator-plugin.specification.d.ts +3 -0
- package/lib/plugins/document-generator/models/config.d.ts +13 -0
- package/lib/plugins/document-generator/models/index.d.ts +1 -0
- package/lib/plugins/mail-template/components/mail-template-delete-modal/mail-template-delete-modal.component.d.ts +1 -1
- package/lib/plugins/mail-template/components/mail-template-editor/mail-template-editor.component.d.ts +1 -1
- package/lib/plugins/mail-template/components/mail-template-list/mail-template-list.component.d.ts +2 -2
- package/lib/plugins/text-template/components/text-template-delete-modal/text-template-delete-modal.component.d.ts +1 -1
- package/lib/plugins/text-template/components/text-template-editor/text-template-editor.component.d.ts +1 -2
- package/lib/plugins/text-template/components/text-template-list/text-template-list.component.d.ts +2 -2
- package/lib/services/freemarker-template-management.service.d.ts +5 -2
- package/package.json +1 -1
- package/public_api.d.ts +10 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
interface TemplateListItem {
|
|
2
2
|
key: string;
|
|
3
|
-
|
|
3
|
+
type: string;
|
|
4
4
|
}
|
|
5
5
|
interface CreateTemplateRequest {
|
|
6
6
|
key: string;
|
|
@@ -12,8 +12,7 @@ interface CreateTemplateRequest {
|
|
|
12
12
|
interface DeleteTemplatesRequest {
|
|
13
13
|
caseDefinitionKey?: string;
|
|
14
14
|
caseDefinitionVersionTag?: string;
|
|
15
|
-
|
|
16
|
-
templates: Array<string>;
|
|
15
|
+
templates: Array<any>;
|
|
17
16
|
}
|
|
18
17
|
interface UpdateTemplateRequest {
|
|
19
18
|
key: string;
|
|
@@ -28,7 +27,7 @@ interface Template {
|
|
|
28
27
|
caseDefinitionKey?: string;
|
|
29
28
|
caseDefinitionVersionTag?: string;
|
|
30
29
|
type: TemplateType;
|
|
31
|
-
metadata
|
|
30
|
+
metadata?: any;
|
|
32
31
|
content: string;
|
|
33
32
|
}
|
|
34
33
|
interface TemplateResponse {
|
|
@@ -39,6 +38,10 @@ interface TemplateResponse {
|
|
|
39
38
|
metadata: any;
|
|
40
39
|
content: string;
|
|
41
40
|
}
|
|
41
|
+
interface TemplatePreviewRequest {
|
|
42
|
+
fileName: string;
|
|
43
|
+
content: string;
|
|
44
|
+
}
|
|
42
45
|
type TemplateMetadataModal = 'add' | 'edit';
|
|
43
|
-
type TemplateType = 'mail' | 'text';
|
|
44
|
-
export { TemplateListItem, CreateTemplateRequest, DeleteTemplatesRequest, Template, UpdateTemplateRequest, TemplateResponse, TemplateMetadataModal, TemplateType, };
|
|
46
|
+
type TemplateType = 'mail' | 'text' | 'pdf' | 'csv';
|
|
47
|
+
export { TemplateListItem, CreateTemplateRequest, DeleteTemplatesRequest, Template, UpdateTemplateRequest, TemplateResponse, TemplateMetadataModal, TemplateType, TemplatePreviewRequest };
|
|
@@ -0,0 +1,2 @@
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PgogICAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgNTkuNDg2MTExLCAtMTAzLjEyNTI3NSkiLz4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDEsIDAsIDAsIDEsIDU5LjQ4NjExMSwgLTEwMy4xMjUyNzUpIi8+CiAgICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1OS40ODYxMTEsIC0xMDMuMTI1Mjc1KSIvPgogICAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgNTkuNDg2MTExLCAtMTAzLjEyNTI3NSkiLz4KICAgIDxnIHRyYW5zZm9ybT0ibWF0cml4KDEsIDAsIDAsIDEsIDU5LjQ4NjExMSwgLTEwMy4xMjUyNzUpIi8+CiAgICA8ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLCAwLCAwLCAxLCA1OS40ODYxMTEsIC0xMDMuMTI1Mjc1KSIvPgogICAgPGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwgMCwgMCwgMSwgNTkuNDg2MTExLCAtMTAzLjEyNTI3NSkiLz4KICA8L2c+Cjwvc3ZnPg==";
|
|
2
|
+
export { DOCUMENT_GENERATOR_PLUGIN_LOGO_BASE64 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './document-generator-plugin-logo';
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { PluginConfigurationComponent, PluginConfigurationData } from '@valtimo/plugin';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { DocumentTemplateConfig } from '../../models';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class DocumentGeneratorConfigurationComponent implements PluginConfigurationComponent, OnInit, OnDestroy {
|
|
7
|
+
save$: Observable<void>;
|
|
8
|
+
disabled$: Observable<boolean>;
|
|
9
|
+
pluginId: string;
|
|
10
|
+
prefillConfiguration$: Observable<DocumentTemplateConfig>;
|
|
11
|
+
valid: EventEmitter<boolean>;
|
|
12
|
+
configuration: EventEmitter<PluginConfigurationData>;
|
|
13
|
+
constructor();
|
|
14
|
+
private saveSubscription;
|
|
15
|
+
private readonly formValue$;
|
|
16
|
+
private readonly valid$;
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
formValueChange(formValue: DocumentTemplateConfig): void;
|
|
20
|
+
private handleValid;
|
|
21
|
+
private openSaveSubscription;
|
|
22
|
+
private injectCaseTab;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentGeneratorConfigurationComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentGeneratorConfigurationComponent, "valtimo-document-template-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, FormBuilder } from '@angular/forms';
|
|
3
|
+
import { TemplateMetadataModal } from '../../../../models';
|
|
4
|
+
import { KeyGeneratorService } from '@valtimo/components';
|
|
5
|
+
import { ListItem } from 'carbon-components-angular';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class DocumentTemplateAddEditModalComponent implements OnInit {
|
|
8
|
+
private readonly fb;
|
|
9
|
+
private readonly keyGeneratorService;
|
|
10
|
+
open: boolean;
|
|
11
|
+
modalType: TemplateMetadataModal;
|
|
12
|
+
set defaultKeyValue(value: string);
|
|
13
|
+
set defaultTypeValue(value: string);
|
|
14
|
+
closeEvent: EventEmitter<{
|
|
15
|
+
key: string;
|
|
16
|
+
type: string;
|
|
17
|
+
}>;
|
|
18
|
+
form: import("@angular/forms").FormGroup<{
|
|
19
|
+
key: import("@angular/forms").FormControl<string>;
|
|
20
|
+
type: import("@angular/forms").FormControl<any>;
|
|
21
|
+
}>;
|
|
22
|
+
private _defaultKeyValue;
|
|
23
|
+
private _defaultTypeValue;
|
|
24
|
+
get key(): AbstractControl<string>;
|
|
25
|
+
get type(): AbstractControl<string>;
|
|
26
|
+
readonly documentTypeSelectItems: Array<ListItem>;
|
|
27
|
+
constructor(fb: FormBuilder, keyGeneratorService: KeyGeneratorService);
|
|
28
|
+
ngOnInit(): void;
|
|
29
|
+
onCancel(): void;
|
|
30
|
+
onConfirm(): void;
|
|
31
|
+
private setDefaultKeyValue;
|
|
32
|
+
private setDefaultTypeValue;
|
|
33
|
+
private resetForm;
|
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateAddEditModalComponent, never>;
|
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTemplateAddEditModalComponent, "valtimo-document-template-add-edit-modal", never, { "open": { "alias": "open"; "required": false; }; "modalType": { "alias": "modalType"; "required": false; }; "defaultKeyValue": { "alias": "defaultKeyValue"; "required": false; }; "defaultTypeValue": { "alias": "defaultTypeValue"; "required": false; }; }, { "closeEvent": "closeEvent"; }, never, never, true, never>;
|
|
36
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DocumentTemplateDeleteModalComponent {
|
|
5
|
+
deleteRowKeys: Array<string>;
|
|
6
|
+
showDeleteModal$: Observable<boolean>;
|
|
7
|
+
deleteEvent: EventEmitter<any[]>;
|
|
8
|
+
onDelete(templates: Array<any>): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateDeleteModalComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTemplateDeleteModalComponent, "valtimo-document-template-delete-modal", never, { "deleteRowKeys": { "alias": "deleteRowKeys"; "required": false; }; "showDeleteModal$": { "alias": "showDeleteModal$"; "required": false; }; }, { "deleteEvent": "deleteEvent"; }, never, never, true, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { BreadcrumbService, EditorModel, PageTitleService } from '@valtimo/components';
|
|
5
|
+
import { NotificationService } from 'carbon-components-angular';
|
|
6
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
7
|
+
import { FreemarkerTemplateManagementService } from '../../../../services';
|
|
8
|
+
import { TemplateResponse, TemplateType } from '../../../../models';
|
|
9
|
+
import { EnvironmentService } from '@valtimo/shared';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare class DocumentTemplateEditorComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
12
|
+
private readonly templateService;
|
|
13
|
+
private readonly route;
|
|
14
|
+
private readonly pageTitleService;
|
|
15
|
+
private readonly router;
|
|
16
|
+
private readonly notificationService;
|
|
17
|
+
private readonly translateService;
|
|
18
|
+
private readonly breadcrumbService;
|
|
19
|
+
private readonly environmentService;
|
|
20
|
+
readonly model$: BehaviorSubject<EditorModel>;
|
|
21
|
+
readonly template$: BehaviorSubject<TemplateResponse>;
|
|
22
|
+
readonly saveDisabled$: BehaviorSubject<boolean>;
|
|
23
|
+
readonly editorDisabled$: BehaviorSubject<boolean>;
|
|
24
|
+
readonly moreDisabled$: BehaviorSubject<boolean>;
|
|
25
|
+
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
26
|
+
readonly updatedModelValue$: BehaviorSubject<string>;
|
|
27
|
+
private readonly _caseDefinitionId$;
|
|
28
|
+
readonly templateKey$: Observable<string>;
|
|
29
|
+
readonly templateType$: Observable<TemplateType>;
|
|
30
|
+
readonly readOnly$: Observable<boolean>;
|
|
31
|
+
constructor(templateService: FreemarkerTemplateManagementService, route: ActivatedRoute, pageTitleService: PageTitleService, router: Router, notificationService: NotificationService, translateService: TranslateService, breadcrumbService: BreadcrumbService, environmentService: EnvironmentService);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
ngAfterViewInit(): void;
|
|
34
|
+
ngOnDestroy(): void;
|
|
35
|
+
onValid(valid: boolean): void;
|
|
36
|
+
onValueChange(value: string): void;
|
|
37
|
+
updateTemplate(): void;
|
|
38
|
+
onDelete(templates: Array<any>): void;
|
|
39
|
+
showDeleteModal(): void;
|
|
40
|
+
private loadTemplate;
|
|
41
|
+
private setModel;
|
|
42
|
+
private disableMore;
|
|
43
|
+
private enableMore;
|
|
44
|
+
private disableSave;
|
|
45
|
+
private enableSave;
|
|
46
|
+
private disableEditor;
|
|
47
|
+
private enableEditor;
|
|
48
|
+
onSelectedTabPreview(): void;
|
|
49
|
+
private initBreadcrumb;
|
|
50
|
+
private showSuccessMessage;
|
|
51
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateEditorComponent, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTemplateEditorComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
53
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
3
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
4
|
+
import { CarbonListComponent, ColumnConfig } from '@valtimo/components';
|
|
5
|
+
import { FreemarkerTemplateManagementService } from '../../../../services';
|
|
6
|
+
import { TemplateListItem } from '../../../../models';
|
|
7
|
+
import { EnvironmentService } from '@valtimo/shared';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class DocumentTemplateListComponent implements OnInit {
|
|
10
|
+
private readonly templateService;
|
|
11
|
+
private readonly router;
|
|
12
|
+
private readonly route;
|
|
13
|
+
private readonly environmentService;
|
|
14
|
+
carbonList: CarbonListComponent;
|
|
15
|
+
fields: ColumnConfig[];
|
|
16
|
+
private readonly _caseDefinitionId$;
|
|
17
|
+
readonly readOnly$: Observable<boolean>;
|
|
18
|
+
readonly templates$: BehaviorSubject<TemplateListItem[]>;
|
|
19
|
+
readonly showAddModal$: BehaviorSubject<boolean>;
|
|
20
|
+
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
21
|
+
readonly selectedRowKeys$: BehaviorSubject<any[]>;
|
|
22
|
+
readonly loading$: BehaviorSubject<boolean>;
|
|
23
|
+
constructor(templateService: FreemarkerTemplateManagementService, router: Router, route: ActivatedRoute, environmentService: EnvironmentService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
openAddModal(): void;
|
|
26
|
+
onAdd(data?: any): void;
|
|
27
|
+
showDeleteModal(): void;
|
|
28
|
+
onDelete(templates: Array<string>): void;
|
|
29
|
+
onRowClick(template: TemplateListItem): void;
|
|
30
|
+
private gotoDocumentTemplateEditor;
|
|
31
|
+
private reloadTemplateList;
|
|
32
|
+
private setSelectedTemplateKeys;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentTemplateListComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentTemplateListComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FunctionConfigurationComponent, FunctionConfigurationData } from '@valtimo/plugin';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { GenerateCsvFileConfig } from '../../models';
|
|
5
|
+
import { FreemarkerTemplateManagementService } from '../../../../services';
|
|
6
|
+
import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
|
|
7
|
+
import { SelectItem } from '@valtimo/components';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class GenerateCsvComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
|
|
10
|
+
private readonly templateService;
|
|
11
|
+
save$: Observable<void>;
|
|
12
|
+
disabled$: Observable<boolean>;
|
|
13
|
+
pluginId: string;
|
|
14
|
+
prefillConfiguration$: Observable<GenerateCsvFileConfig>;
|
|
15
|
+
context$: Observable<[ManagementContext, CaseManagementParams]>;
|
|
16
|
+
valid: EventEmitter<boolean>;
|
|
17
|
+
configuration: EventEmitter<FunctionConfigurationData>;
|
|
18
|
+
private saveSubscription;
|
|
19
|
+
private readonly formValue$;
|
|
20
|
+
private readonly valid$;
|
|
21
|
+
readonly loading$: BehaviorSubject<boolean>;
|
|
22
|
+
readonly templateListItems$: BehaviorSubject<SelectItem[]>;
|
|
23
|
+
constructor(templateService: FreemarkerTemplateManagementService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
formValueChange(formValue: GenerateCsvFileConfig): void;
|
|
27
|
+
private loadTemplateListItems;
|
|
28
|
+
private handleValid;
|
|
29
|
+
private openSaveSubscription;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenerateCsvComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenerateCsvComponent, "valtimo-generate-csv-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; "context$": { "alias": "context$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { FunctionConfigurationComponent, FunctionConfigurationData } from '@valtimo/plugin';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import { GeneratePdfFileConfig } from '../../models';
|
|
5
|
+
import { FreemarkerTemplateManagementService } from '../../../../services';
|
|
6
|
+
import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
|
|
7
|
+
import { SelectItem } from '@valtimo/components';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class GeneratePdfComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
|
|
10
|
+
private readonly templateService;
|
|
11
|
+
save$: Observable<void>;
|
|
12
|
+
disabled$: Observable<boolean>;
|
|
13
|
+
pluginId: string;
|
|
14
|
+
prefillConfiguration$: Observable<GeneratePdfFileConfig>;
|
|
15
|
+
context$: Observable<[ManagementContext, CaseManagementParams]>;
|
|
16
|
+
valid: EventEmitter<boolean>;
|
|
17
|
+
configuration: EventEmitter<FunctionConfigurationData>;
|
|
18
|
+
private saveSubscription;
|
|
19
|
+
private readonly formValue$;
|
|
20
|
+
private readonly valid$;
|
|
21
|
+
readonly loading$: BehaviorSubject<boolean>;
|
|
22
|
+
readonly templateListItems$: BehaviorSubject<SelectItem[]>;
|
|
23
|
+
constructor(templateService: FreemarkerTemplateManagementService);
|
|
24
|
+
ngOnInit(): void;
|
|
25
|
+
ngOnDestroy(): void;
|
|
26
|
+
formValueChange(formValue: GeneratePdfFileConfig): void;
|
|
27
|
+
private loadTemplateListItems;
|
|
28
|
+
private handleValid;
|
|
29
|
+
private openSaveSubscription;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GeneratePdfComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GeneratePdfComponent, "valtimo-generate-pdf-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; "context$": { "alias": "context$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/router";
|
|
4
|
+
export declare class TemplateManagementRoutingModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TemplateManagementRoutingModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<TemplateManagementRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<TemplateManagementRoutingModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/generate-csv/generate-csv.component";
|
|
3
|
+
import * as i2 from "./components/generate-pdf/generate-pdf.component";
|
|
4
|
+
import * as i3 from "./components/document-generator-configuration/document-generator-configuration.component";
|
|
5
|
+
import * as i4 from "@angular/common";
|
|
6
|
+
import * as i5 from "@valtimo/plugin";
|
|
7
|
+
import * as i6 from "./document-generator-management-routing.module";
|
|
8
|
+
import * as i7 from "@valtimo/components";
|
|
9
|
+
import * as i8 from "@ngx-translate/core";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "carbon-components-angular";
|
|
12
|
+
export declare class DocumentGeneratorPluginModule {
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentGeneratorPluginModule, never>;
|
|
14
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DocumentGeneratorPluginModule, [typeof i1.GenerateCsvComponent, typeof i2.GeneratePdfComponent, typeof i3.DocumentGeneratorConfigurationComponent], [typeof i4.CommonModule, typeof i5.PluginTranslatePipeModule, typeof i6.TemplateManagementRoutingModule, typeof i7.FormModule, typeof i7.ParagraphModule, typeof i7.SelectModule, typeof i7.ConfirmationModalModule, typeof i8.TranslateModule, typeof i9.ReactiveFormsModule, typeof i7.CarbonListModule, typeof i7.EditorModule, typeof i7.InputModule, typeof i10.ButtonModule, typeof i10.DialogModule, typeof i10.DropdownModule, typeof i10.IconModule, typeof i10.InputModule, typeof i10.LoadingModule, typeof i10.ModalModule, typeof i10.NotificationModule, typeof i7.RenderInPageHeaderDirective, typeof i10.TabsModule], [typeof i1.GenerateCsvComponent, typeof i2.GeneratePdfComponent]>;
|
|
15
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<DocumentGeneratorPluginModule>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PluginConfigurationData } from '@valtimo/plugin';
|
|
2
|
+
interface DocumentTemplateConfig extends PluginConfigurationData {
|
|
3
|
+
}
|
|
4
|
+
interface GeneratePdfFileConfig {
|
|
5
|
+
templateKey: string;
|
|
6
|
+
processVariableName: string;
|
|
7
|
+
}
|
|
8
|
+
interface GenerateCsvFileConfig {
|
|
9
|
+
templateKey: string;
|
|
10
|
+
processVariableName: string;
|
|
11
|
+
}
|
|
12
|
+
declare const DOCUMENT_TYPES: Array<string>;
|
|
13
|
+
export { DocumentTemplateConfig, GeneratePdfFileConfig, GenerateCsvFileConfig, DOCUMENT_TYPES };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config';
|
|
@@ -5,7 +5,7 @@ export declare class MailTemplateDeleteModalComponent {
|
|
|
5
5
|
deleteRowKeys: Array<string>;
|
|
6
6
|
showDeleteModal$: Observable<boolean>;
|
|
7
7
|
deleteEvent: EventEmitter<string[]>;
|
|
8
|
-
onDelete(templates: Array<
|
|
8
|
+
onDelete(templates: Array<any>): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<MailTemplateDeleteModalComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<MailTemplateDeleteModalComponent, "valtimo-mail-template-delete-modal", never, { "deleteRowKeys": { "alias": "deleteRowKeys"; "required": false; }; "showDeleteModal$": { "alias": "showDeleteModal$"; "required": false; }; }, { "deleteEvent": "deleteEvent"; }, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -34,7 +34,7 @@ export declare class MailTemplateEditorComponent implements OnInit, AfterViewIni
|
|
|
34
34
|
onValid(valid: boolean): void;
|
|
35
35
|
onValueChange(value: string): void;
|
|
36
36
|
updateTemplate(): void;
|
|
37
|
-
onDelete(templates: Array<
|
|
37
|
+
onDelete(templates: Array<any>): void;
|
|
38
38
|
showDeleteModal(): void;
|
|
39
39
|
private loadTemplate;
|
|
40
40
|
private setModel;
|
package/lib/plugins/mail-template/components/mail-template-list/mail-template-list.component.d.ts
CHANGED
|
@@ -18,14 +18,14 @@ export declare class MailTemplateListComponent implements OnInit {
|
|
|
18
18
|
readonly templates$: BehaviorSubject<TemplateListItem[]>;
|
|
19
19
|
readonly showAddModal$: BehaviorSubject<boolean>;
|
|
20
20
|
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
21
|
-
readonly selectedRowKeys$: BehaviorSubject<
|
|
21
|
+
readonly selectedRowKeys$: BehaviorSubject<any[]>;
|
|
22
22
|
readonly loading$: BehaviorSubject<boolean>;
|
|
23
23
|
constructor(templateService: FreemarkerTemplateManagementService, router: Router, route: ActivatedRoute, environmentService: EnvironmentService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
openAddModal(): void;
|
|
26
26
|
onAdd(data?: any): void;
|
|
27
27
|
showDeleteModal(): void;
|
|
28
|
-
onDelete(templates: Array<
|
|
28
|
+
onDelete(templates: Array<any>): void;
|
|
29
29
|
onRowClick(template: TemplateListItem): void;
|
|
30
30
|
private gotoMailTemplateEditor;
|
|
31
31
|
private reloadTemplateList;
|
|
@@ -5,7 +5,7 @@ export declare class TextTemplateDeleteModalComponent {
|
|
|
5
5
|
deleteRowKeys: Array<string>;
|
|
6
6
|
showDeleteModal$: Observable<boolean>;
|
|
7
7
|
deleteEvent: EventEmitter<string[]>;
|
|
8
|
-
onDelete(templates: Array<
|
|
8
|
+
onDelete(templates: Array<any>): void;
|
|
9
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<TextTemplateDeleteModalComponent, never>;
|
|
10
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<TextTemplateDeleteModalComponent, "valtimo-text-template-delete-modal", never, { "deleteRowKeys": { "alias": "deleteRowKeys"; "required": false; }; "showDeleteModal$": { "alias": "showDeleteModal$"; "required": false; }; }, { "deleteEvent": "deleteEvent"; }, never, never, true, never>;
|
|
11
11
|
}
|
|
@@ -24,7 +24,6 @@ export declare class TextTemplateEditorComponent implements OnInit, AfterViewIni
|
|
|
24
24
|
readonly moreDisabled$: BehaviorSubject<boolean>;
|
|
25
25
|
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
26
26
|
readonly updatedModelValue$: BehaviorSubject<string>;
|
|
27
|
-
readonly canUpdateGlobalConfiguration$: Observable<boolean>;
|
|
28
27
|
private readonly _caseDefinitionId$;
|
|
29
28
|
readonly templateKey$: Observable<string>;
|
|
30
29
|
readonly readOnly$: Observable<boolean>;
|
|
@@ -35,7 +34,7 @@ export declare class TextTemplateEditorComponent implements OnInit, AfterViewIni
|
|
|
35
34
|
onValid(valid: boolean): void;
|
|
36
35
|
onValueChange(value: string): void;
|
|
37
36
|
updateTemplate(): void;
|
|
38
|
-
onDelete(templates: Array<
|
|
37
|
+
onDelete(templates: Array<any>): void;
|
|
39
38
|
showDeleteModal(): void;
|
|
40
39
|
private loadTemplate;
|
|
41
40
|
private setModel;
|
package/lib/plugins/text-template/components/text-template-list/text-template-list.component.d.ts
CHANGED
|
@@ -18,14 +18,14 @@ export declare class TextTemplateListComponent implements OnInit {
|
|
|
18
18
|
readonly templates$: BehaviorSubject<TemplateListItem[]>;
|
|
19
19
|
readonly showAddModal$: BehaviorSubject<boolean>;
|
|
20
20
|
readonly showDeleteModal$: BehaviorSubject<boolean>;
|
|
21
|
-
readonly selectedRowKeys$: BehaviorSubject<
|
|
21
|
+
readonly selectedRowKeys$: BehaviorSubject<any[]>;
|
|
22
22
|
readonly loading$: BehaviorSubject<boolean>;
|
|
23
23
|
constructor(templateService: FreemarkerTemplateManagementService, router: Router, route: ActivatedRoute, environmentService: EnvironmentService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
openAddModal(): void;
|
|
26
26
|
onAdd(data?: any): void;
|
|
27
27
|
showDeleteModal(): void;
|
|
28
|
-
onDelete(templates: Array<
|
|
28
|
+
onDelete(templates: Array<any>): void;
|
|
29
29
|
onRowClick(template: TemplateListItem): void;
|
|
30
30
|
private gotoTextTemplateEditor;
|
|
31
31
|
private reloadTemplateList;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { DeleteTemplatesRequest, Template, TemplateListItem, TemplateResponse, TemplateType, UpdateTemplateRequest } from '../models';
|
|
3
|
+
import { DeleteTemplatesRequest, Template, TemplateListItem, TemplatePreviewRequest, TemplateResponse, TemplateType, UpdateTemplateRequest } from '../models';
|
|
4
4
|
import { ConfigService, Page } from '@valtimo/shared';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class FreemarkerTemplateManagementService {
|
|
@@ -10,13 +10,16 @@ export declare class FreemarkerTemplateManagementService {
|
|
|
10
10
|
constructor(configService: ConfigService, http: HttpClient);
|
|
11
11
|
getAllMailTemplates(caseDefinitionKey?: string, caseDefinitionVersionTag?: string): Observable<Page<TemplateListItem>>;
|
|
12
12
|
getAllTextTemplates(caseDefinitionKey?: string, caseDefinitionVersionTag?: string): Observable<Page<TemplateListItem>>;
|
|
13
|
-
|
|
13
|
+
getAllDocumentTemplates(caseDefinitionKey?: string, caseDefinitionVersionTag?: string): Observable<Page<TemplateListItem>>;
|
|
14
|
+
getAllTemplates(caseDefinitionKey?: string, caseDefinitionVersionTag?: string, templateType?: TemplateType): Observable<Page<TemplateListItem>>;
|
|
15
|
+
getTemplates(caseDefinitionKey?: string, caseDefinitionVersionTag?: string, templateType?: TemplateType, templateTypes?: TemplateType[], templateKey?: string, page?: number, pageSize?: number): Observable<Page<TemplateListItem>>;
|
|
14
16
|
getMailTemplate(caseDefinitionKey: string, caseDefinitionVersionTag: string, key: string): Observable<TemplateResponse>;
|
|
15
17
|
getTextTemplate(caseDefinitionKey: string, caseDefinitionVersionTag: string, key: string): Observable<TemplateResponse>;
|
|
16
18
|
getTemplate(caseDefinitionKey: string, caseDefinitionVersionTag: string, templateType: TemplateType, key: string): Observable<TemplateResponse>;
|
|
17
19
|
addTemplate(template: Template): Observable<TemplateResponse>;
|
|
18
20
|
deleteTemplates(request: DeleteTemplatesRequest): Observable<null>;
|
|
19
21
|
updateTemplate(template: UpdateTemplateRequest): Observable<TemplateResponse>;
|
|
22
|
+
previewTemplate(template: TemplatePreviewRequest): Observable<Blob>;
|
|
20
23
|
isFinal(caseDefinitionKey: string, caseDefinitionVersionTag: string): Observable<boolean>;
|
|
21
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<FreemarkerTemplateManagementService, never>;
|
|
22
25
|
static ɵprov: i0.ɵɵInjectableDeclaration<FreemarkerTemplateManagementService>;
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
export * from './lib/plugins/document-generator/models';
|
|
2
|
+
export * from './lib/plugins/document-generator/document-generator-plugin-module';
|
|
3
|
+
export * from './lib/plugins/document-generator/document-generator-plugin.specification';
|
|
4
|
+
export * from './lib/plugins/document-generator/components/generate-csv/generate-csv.component';
|
|
5
|
+
export * from './lib/plugins/document-generator/components/generate-pdf/generate-pdf.component';
|
|
6
|
+
export * from './lib/plugins/document-generator/components/document-template-add-edit-modal/document-template-add-edit-modal.component';
|
|
7
|
+
export * from './lib/plugins/document-generator/components/document-generator-configuration/document-generator-configuration.component';
|
|
8
|
+
export * from './lib/plugins/document-generator/components/document-template-delete-modal/document-template-delete-modal.component';
|
|
9
|
+
export * from './lib/plugins/document-generator/components/document-template-editor/document-template-editor.component';
|
|
10
|
+
export * from './lib/plugins/document-generator/components/document-template-list/document-template-list.component';
|
|
1
11
|
export * from './lib/plugins/mail-template/models';
|
|
2
12
|
export * from './lib/plugins/mail-template/mail-template-plugin-module';
|
|
3
13
|
export * from './lib/plugins/mail-template/mail-template-plugin.specification';
|