@valtimo-plugins/open-product 1.4.0 → 1.5.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-open-product.mjs +102 -31
- package/fesm2022/valtimo-plugins-open-product.mjs.map +1 -1
- package/lib/components/create-product/create-product-configuration.component.d.ts +9 -1
- package/lib/components/create-product/models/create-product-config.d.ts +2 -1
- package/lib/components/update-product/models/update-product-config.d.ts +2 -0
- package/lib/components/update-product/update-product-configuration.component.d.ts +8 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/ja-nee.d.ts +9 -0
- package/package.json +1 -1
|
@@ -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
|
|
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 };
|
|
@@ -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;
|
package/lib/models/index.d.ts
CHANGED
|
@@ -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 };
|