@valtimo-plugins/freemarker 7.0.0 → 7.0.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.
@@ -2,31 +2,31 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FunctionConfigurationComponent, FunctionConfigurationData } from '@valtimo/plugin';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { GenerateMailContentConfig } from '../../models';
5
- import { ModalService, SelectItem } from '@valtimo/components';
5
+ import { SelectItem } from '@valtimo/components';
6
6
  import { FreemarkerTemplateManagementService } from '../../../../services';
7
- import { DocumentService } from '@valtimo/document';
7
+ import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class GenerateMailContentComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
10
- private readonly modalService;
11
- private readonly documentService;
12
10
  private readonly templateService;
13
11
  save$: Observable<void>;
14
12
  disabled$: Observable<boolean>;
15
13
  pluginId: string;
14
+ context$: Observable<[ManagementContext, CaseManagementParams]>;
16
15
  prefillConfiguration$: Observable<GenerateMailContentConfig>;
17
16
  valid: EventEmitter<boolean>;
18
17
  configuration: EventEmitter<FunctionConfigurationData>;
19
- private saveSubscription;
20
18
  private readonly formValue$;
21
19
  private readonly valid$;
20
+ private _subscriptions;
22
21
  readonly loading$: BehaviorSubject<boolean>;
23
- readonly mailTemplateItems$: Observable<Array<SelectItem>>;
24
- constructor(modalService: ModalService, documentService: DocumentService, templateService: FreemarkerTemplateManagementService);
22
+ readonly mailTemplateItems$: BehaviorSubject<SelectItem[]>;
23
+ constructor(templateService: FreemarkerTemplateManagementService);
25
24
  ngOnInit(): void;
26
25
  ngOnDestroy(): void;
27
26
  formValueChange(formValue: GenerateMailContentConfig): void;
28
27
  private handleValid;
29
28
  private openSaveSubscription;
29
+ private initContextHandling;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GenerateMailContentComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<GenerateMailContentComponent, "valtimo-generate-mail-content-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>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenerateMailContentComponent, "valtimo-generate-mail-content-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "context$": { "alias": "context$"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
32
32
  }
@@ -2,31 +2,31 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FunctionConfigurationComponent, FunctionConfigurationData } from '@valtimo/plugin';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { GenerateMailFileConfig } from '../../models';
5
- import { ModalService, SelectItem } from '@valtimo/components';
6
- import { DocumentService } from '@valtimo/document';
5
+ import { SelectItem } from '@valtimo/components';
7
6
  import { FreemarkerTemplateManagementService } from '../../../../services';
7
+ import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class GenerateMailFileComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
10
- private readonly modalService;
11
- private readonly documentService;
12
10
  private readonly templateService;
13
11
  save$: Observable<void>;
14
12
  disabled$: Observable<boolean>;
15
13
  pluginId: string;
14
+ context$: Observable<[ManagementContext, CaseManagementParams]>;
16
15
  prefillConfiguration$: Observable<GenerateMailFileConfig>;
17
16
  valid: EventEmitter<boolean>;
18
17
  configuration: EventEmitter<FunctionConfigurationData>;
19
- private saveSubscription;
20
18
  private readonly formValue$;
21
19
  private readonly valid$;
20
+ private _subscriptions;
22
21
  readonly loading$: BehaviorSubject<boolean>;
23
- readonly mailTemplateItems$: Observable<Array<SelectItem>>;
24
- constructor(modalService: ModalService, documentService: DocumentService, templateService: FreemarkerTemplateManagementService);
22
+ readonly mailTemplateItems$: BehaviorSubject<SelectItem[]>;
23
+ constructor(templateService: FreemarkerTemplateManagementService);
25
24
  ngOnInit(): void;
26
25
  ngOnDestroy(): void;
27
26
  formValueChange(formValue: GenerateMailFileConfig): void;
28
27
  private handleValid;
29
28
  private openSaveSubscription;
29
+ private initContextHandling;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GenerateMailFileComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<GenerateMailFileComponent, "valtimo-generate-mail-file-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>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenerateMailFileComponent, "valtimo-generate-mail-file-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "context$": { "alias": "context$"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
32
32
  }
@@ -12,6 +12,6 @@ import * as i10 from "carbon-components-angular";
12
12
  import * as i11 from "./components/mail-template-delete-modal/mail-template-delete-modal.component";
13
13
  export declare class MailTemplatePluginModule {
14
14
  static ɵfac: i0.ɵɵFactoryDeclaration<MailTemplatePluginModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<MailTemplatePluginModule, [typeof i1.MailTemplateConfigurationComponent, typeof i2.GenerateMailFileComponent, typeof i3.GenerateMailContentComponent], [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.RenderInPageHeaderDirectiveModule, typeof i10.TabsModule, typeof i7.ValtimoCdsOverflowButtonDirectiveModule, typeof i11.MailTemplateDeleteModalComponent], [typeof i1.MailTemplateConfigurationComponent, typeof i2.GenerateMailFileComponent, typeof i3.GenerateMailContentComponent]>;
15
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MailTemplatePluginModule, [typeof i1.MailTemplateConfigurationComponent, typeof i2.GenerateMailFileComponent, typeof i3.GenerateMailContentComponent], [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 i11.MailTemplateDeleteModalComponent], [typeof i1.MailTemplateConfigurationComponent, typeof i2.GenerateMailFileComponent, typeof i3.GenerateMailContentComponent]>;
16
16
  static ɵinj: i0.ɵɵInjectorDeclaration<MailTemplatePluginModule>;
17
17
  }
@@ -2,31 +2,31 @@ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { FunctionConfigurationComponent, FunctionConfigurationData } from '@valtimo/plugin';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
4
  import { GenerateTextFileConfig } from '../../models';
5
- import { ModalService, SelectItem } from '@valtimo/components';
6
- import { DocumentService } from '@valtimo/document';
5
+ import { SelectItem } from '@valtimo/components';
7
6
  import { FreemarkerTemplateManagementService } from '../../../../services';
7
+ import { CaseManagementParams, ManagementContext } from '@valtimo/shared';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class GenerateTextFileComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
10
- private readonly modalService;
11
- private readonly documentService;
12
10
  private readonly templateService;
13
11
  save$: Observable<void>;
14
12
  disabled$: Observable<boolean>;
15
13
  pluginId: string;
14
+ context$: Observable<[ManagementContext, CaseManagementParams]>;
16
15
  prefillConfiguration$: Observable<GenerateTextFileConfig>;
17
16
  valid: EventEmitter<boolean>;
18
17
  configuration: EventEmitter<FunctionConfigurationData>;
19
- private saveSubscription;
20
18
  private readonly formValue$;
21
19
  private readonly valid$;
20
+ private _subscriptions;
22
21
  readonly loading$: BehaviorSubject<boolean>;
23
- readonly textTemplateItems$: Observable<Array<SelectItem>>;
24
- constructor(modalService: ModalService, documentService: DocumentService, templateService: FreemarkerTemplateManagementService);
22
+ readonly textTemplateItems$: BehaviorSubject<SelectItem[]>;
23
+ constructor(templateService: FreemarkerTemplateManagementService);
25
24
  ngOnInit(): void;
26
25
  ngOnDestroy(): void;
27
26
  formValueChange(formValue: GenerateTextFileConfig): void;
28
27
  private handleValid;
29
28
  private openSaveSubscription;
29
+ private initContextHandling;
30
30
  static ɵfac: i0.ɵɵFactoryDeclaration<GenerateTextFileComponent, never>;
31
- static ɵcmp: i0.ɵɵComponentDeclaration<GenerateTextFileComponent, "valtimo-generate-text-file-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>;
31
+ static ɵcmp: i0.ɵɵComponentDeclaration<GenerateTextFileComponent, "valtimo-generate-text-file-configuration", never, { "save$": { "alias": "save$"; "required": false; }; "disabled$": { "alias": "disabled$"; "required": false; }; "pluginId": { "alias": "pluginId"; "required": false; }; "context$": { "alias": "context$"; "required": false; }; "prefillConfiguration$": { "alias": "prefillConfiguration$"; "required": false; }; }, { "valid": "valid"; "configuration": "configuration"; }, never, never, false, never>;
32
32
  }
@@ -10,6 +10,6 @@ import * as i8 from "@angular/forms";
10
10
  import * as i9 from "carbon-components-angular";
11
11
  export declare class TextTemplatePluginModule {
12
12
  static ɵfac: i0.ɵɵFactoryDeclaration<TextTemplatePluginModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<TextTemplatePluginModule, [typeof i1.GenerateTextFileComponent, typeof i2.TextTemplateConfigurationComponent], [typeof i3.CommonModule, typeof i4.PluginTranslatePipeModule, typeof i5.TemplateManagementRoutingModule, typeof i6.FormModule, typeof i6.ParagraphModule, typeof i6.SelectModule, typeof i6.ConfirmationModalModule, typeof i7.TranslateModule, typeof i8.ReactiveFormsModule, typeof i6.CarbonListModule, typeof i6.EditorModule, typeof i6.InputModule, typeof i9.ButtonModule, typeof i9.DialogModule, typeof i9.DropdownModule, typeof i9.IconModule, typeof i9.InputModule, typeof i9.LoadingModule, typeof i9.ModalModule, typeof i9.NotificationModule, typeof i6.RenderInPageHeaderDirectiveModule, typeof i9.TabsModule], [typeof i1.GenerateTextFileComponent]>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TextTemplatePluginModule, [typeof i1.GenerateTextFileComponent, typeof i2.TextTemplateConfigurationComponent], [typeof i3.CommonModule, typeof i4.PluginTranslatePipeModule, typeof i5.TemplateManagementRoutingModule, typeof i6.FormModule, typeof i6.ParagraphModule, typeof i6.SelectModule, typeof i6.ConfirmationModalModule, typeof i7.TranslateModule, typeof i8.ReactiveFormsModule, typeof i6.CarbonListModule, typeof i6.EditorModule, typeof i6.InputModule, typeof i9.ButtonModule, typeof i9.DialogModule, typeof i9.DropdownModule, typeof i9.IconModule, typeof i9.InputModule, typeof i9.LoadingModule, typeof i9.ModalModule, typeof i9.NotificationModule, typeof i6.RenderInPageHeaderDirective, typeof i9.TabsModule], [typeof i1.GenerateTextFileComponent]>;
14
14
  static ɵinj: i0.ɵɵInjectorDeclaration<TextTemplatePluginModule>;
15
15
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo-plugins/freemarker",
3
3
  "license": "EUPL-1.2",
4
- "version": "7.0.0",
4
+ "version": "7.0.2",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "^19.2.8",
7
7
  "@angular/core": "^19.2.8"