@valtimo-plugins/open-product 1.4.0 → 1.4.1

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.
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { FunctionConfigurationComponent } from "@valtimo/plugin";
2
+ import { FunctionConfigurationComponent, PluginTranslationService } from "@valtimo/plugin";
3
3
  import { Observable } from 'rxjs';
4
4
  import { CreateProductConfig } from './models/create-product-config';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class CreateProductConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
7
+ private readonly pluginTranslationService;
7
8
  save$: Observable<void>;
8
9
  disabled$: Observable<boolean>;
9
10
  pluginId: string;
@@ -13,7 +14,14 @@ export declare class CreateProductConfigurationComponent implements FunctionConf
13
14
  private saveSubscription;
14
15
  private readonly formValue$;
15
16
  private readonly valid$;
17
+ jaNeeSelectItems$: Observable<Array<{
18
+ id: string;
19
+ text: string;
20
+ }>>;
21
+ constructor(pluginTranslationService: PluginTranslationService);
16
22
  ngOnInit(): void;
23
+ gepubliceerdSelectionId(prefill: CreateProductConfig | null): string;
24
+ koppelZaakDocumentenSelectionId(prefill: CreateProductConfig | null): string;
17
25
  ngOnDestroy(): void;
18
26
  formValueChange(formValue: CreateProductConfig): void;
19
27
  private handleValid;
@@ -2,12 +2,13 @@ interface CreateProductConfig {
2
2
  productNaam: string;
3
3
  productTypeUuid: string;
4
4
  eigenaarBsn: string;
5
- aanvraagZaakUrn: string;
5
+ aanvraagZaakUrn?: string;
6
6
  aanvraagZaakUrl: string;
7
7
  gepubliceerd: boolean;
8
8
  productPrijs: string;
9
9
  productFrequentie: string;
10
10
  productStatus: string;
11
11
  dataobjectVariabelNaam?: string;
12
+ koppelZaakDocumenten?: boolean;
12
13
  }
13
14
  export { CreateProductConfig };
@@ -10,5 +10,7 @@ interface UpdateProductConfig {
10
10
  productFrequentie: string;
11
11
  productStatus: string;
12
12
  dataobjectVariabelNaam?: string;
13
+ koppelZaakDocumenten?: boolean;
14
+ documentenVariabelNaam?: string;
13
15
  }
14
16
  export { UpdateProductConfig };
@@ -1,9 +1,10 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
- import { FunctionConfigurationComponent } from "@valtimo/plugin";
2
+ import { FunctionConfigurationComponent, PluginTranslationService } from "@valtimo/plugin";
3
3
  import { Observable } from 'rxjs';
4
4
  import { UpdateProductConfig } from './models/update-product-config';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class UpdateProductConfigurationComponent implements FunctionConfigurationComponent, OnInit, OnDestroy {
7
+ private readonly pluginTranslationService;
7
8
  save$: Observable<void>;
8
9
  disabled$: Observable<boolean>;
9
10
  pluginId: string;
@@ -13,7 +14,13 @@ export declare class UpdateProductConfigurationComponent implements FunctionConf
13
14
  private saveSubscription;
14
15
  private readonly formValue$;
15
16
  private readonly valid$;
17
+ jaNeeSelectItems$: Observable<Array<{
18
+ id: string;
19
+ text: string;
20
+ }>>;
21
+ constructor(pluginTranslationService: PluginTranslationService);
16
22
  ngOnInit(): void;
23
+ koppelZaakDocumentenSelectionId(prefill: UpdateProductConfig | null): string;
17
24
  ngOnDestroy(): void;
18
25
  formValueChange(formValue: UpdateProductConfig): void;
19
26
  private handleValid;
@@ -1 +1,2 @@
1
1
  export * from './config';
2
+ export * from './ja-nee';
@@ -0,0 +1,9 @@
1
+ import { PluginTranslationService } from '@valtimo/plugin';
2
+ import { Observable } from 'rxjs';
3
+ declare const jaNeeSelectItems$: (pluginTranslationService: PluginTranslationService, pluginId: string) => Observable<Array<{
4
+ id: string;
5
+ text: string;
6
+ }>>;
7
+ declare const toJaNeeSelectionId: (value: boolean | string | null | undefined) => string;
8
+ declare const fromJaNeeSelectionId: (value: boolean | string | null | undefined) => boolean;
9
+ export { jaNeeSelectItems$, toJaNeeSelectionId, fromJaNeeSelectionId };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@valtimo-plugins/open-product",
3
3
  "license": "EUPL-1.2",
4
- "version": "1.4.0",
4
+ "version": "1.4.1",
5
5
  "peerDependencies": {
6
6
  "@angular/common": "19.2.20",
7
7
  "@angular/core": "19.2.20"