@valtimo/plugin 5.3.0 → 5.7.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/README.md +7 -9
- package/esm2020/lib/components/plugin-configuration-container/plugin-configuration-container.component.mjs +10 -11
- package/esm2020/lib/components/plugin-configuration-container/plugin-configuration-container.module.mjs +5 -5
- package/esm2020/lib/constants/index.mjs +6 -2
- package/esm2020/lib/constants/injection-tokens.mjs +6 -2
- package/esm2020/lib/models/index.mjs +6 -2
- package/esm2020/lib/models/plugin.mjs +6 -2
- package/esm2020/lib/pipes/index.mjs +6 -2
- package/esm2020/lib/pipes/plugin-translate/index.mjs +6 -2
- package/esm2020/lib/pipes/plugin-translate/plugin-translate-pipe.module.mjs +10 -6
- package/esm2020/lib/pipes/plugin-translate/plugin-translate.pipe.mjs +9 -5
- package/esm2020/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.mjs +18 -0
- package/esm2020/lib/plugins/documenten-api/assets/index.mjs +17 -0
- package/esm2020/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.mjs +89 -0
- package/esm2020/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.mjs +96 -0
- package/esm2020/lib/plugins/documenten-api/documenten-api-plugin.module.mjs +36 -0
- package/esm2020/lib/plugins/documenten-api/documenten-api-plugin.specification.mjs +108 -0
- package/esm2020/lib/plugins/documenten-api/models/config.mjs +17 -0
- package/esm2020/lib/plugins/documenten-api/models/index.mjs +17 -0
- package/esm2020/lib/plugins/object-token-authentication/assets/object-token-authentication-plugin-logo.mjs +18 -0
- package/esm2020/lib/plugins/object-token-authentication/components/object-token-authentication-configuration/object-token-authencation-configuration.component.mjs +74 -0
- package/esm2020/lib/plugins/object-token-authentication/models/config.mjs +17 -0
- package/esm2020/lib/plugins/object-token-authentication/models/index.mjs +17 -0
- package/esm2020/lib/plugins/object-token-authentication/object-token-authentication-plugin.module.mjs +35 -0
- package/esm2020/lib/plugins/object-token-authentication/object-token-authentication-plugin.specification.mjs +47 -0
- package/esm2020/lib/plugins/objecten-api/assets/index.mjs +17 -0
- package/esm2020/lib/plugins/objecten-api/assets/objecten-api-plugin-logo.mjs +18 -0
- package/esm2020/lib/plugins/objecten-api/components/objecten-api-configuration/objecten-api-configuration.component.mjs +88 -0
- package/esm2020/lib/plugins/objecten-api/models/config.mjs +17 -0
- package/esm2020/lib/plugins/objecten-api/models/index.mjs +17 -0
- package/esm2020/lib/plugins/objecten-api/objecten-api-plugin-module.mjs +54 -0
- package/esm2020/lib/plugins/objecten-api/objecten-api-plugin.specification.mjs +53 -0
- package/esm2020/lib/plugins/objecttypen-api/assets/index.mjs +17 -0
- package/esm2020/lib/plugins/objecttypen-api/assets/objecttypen-api-plugin-logo.mjs +18 -0
- package/esm2020/lib/plugins/objecttypen-api/components/objecttypen-api-configuration/objecttypen-api-configuration.component.mjs +88 -0
- package/esm2020/lib/plugins/objecttypen-api/models/config.mjs +17 -0
- package/esm2020/lib/plugins/objecttypen-api/models/index.mjs +17 -0
- package/esm2020/lib/plugins/objecttypen-api/objecttypen-api-plugin-module.mjs +54 -0
- package/esm2020/lib/plugins/objecttypen-api/objecttypen-api-plugin.specification.mjs +53 -0
- package/esm2020/lib/plugins/open-zaak/assets/index.mjs +6 -2
- package/esm2020/lib/plugins/open-zaak/assets/open-zaak-plugin-logo.mjs +6 -2
- package/esm2020/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.mjs +38 -20
- package/esm2020/lib/plugins/open-zaak/models/config.mjs +6 -2
- package/esm2020/lib/plugins/open-zaak/models/index.mjs +6 -2
- package/esm2020/lib/plugins/open-zaak/open-zaak-plugin.module.mjs +9 -63
- package/esm2020/lib/plugins/open-zaak/open-zaak-plugin.specification.mjs +21 -63
- package/esm2020/lib/plugins/smart-documents/assets/index.mjs +6 -2
- package/esm2020/lib/plugins/smart-documents/assets/smart-documents-plugin-logo.mjs +6 -2
- package/esm2020/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.mjs +40 -16
- package/esm2020/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.mjs +41 -15
- package/esm2020/lib/plugins/smart-documents/models/config.mjs +6 -2
- package/esm2020/lib/plugins/smart-documents/models/index.mjs +6 -2
- package/esm2020/lib/plugins/smart-documents/smart-documents-plugin.module.mjs +10 -7
- package/esm2020/lib/plugins/smart-documents/smart-documents-plugin.specification.mjs +24 -5
- package/esm2020/lib/plugins/zaken-api/assets/index.mjs +17 -0
- package/esm2020/lib/plugins/zaken-api/assets/zaken-api-plugin-logo.mjs +18 -0
- package/esm2020/lib/plugins/zaken-api/components/link-document-to-zaak/link-document-to-zaak-configuration.component.mjs +86 -0
- package/esm2020/lib/plugins/zaken-api/components/zaken-api-configuration/zaken-api-configuration.component.mjs +88 -0
- package/esm2020/lib/plugins/zaken-api/models/config.mjs +17 -0
- package/esm2020/lib/plugins/zaken-api/models/index.mjs +17 -0
- package/esm2020/lib/plugins/zaken-api/zaken-api-plugin.module.mjs +55 -0
- package/esm2020/lib/plugins/zaken-api/zaken-api-plugin.specification.mjs +87 -0
- package/esm2020/lib/services/index.mjs +7 -2
- package/esm2020/lib/services/plugin-management.service.mjs +79 -0
- package/esm2020/lib/services/plugin-translation.service.mjs +9 -5
- package/esm2020/lib/services/plugin.service.mjs +4 -4
- package/esm2020/public-api.mjs +28 -7
- package/fesm2015/valtimo-plugin.mjs +1565 -544
- package/fesm2015/valtimo-plugin.mjs.map +1 -1
- package/fesm2020/valtimo-plugin.mjs +1553 -542
- package/fesm2020/valtimo-plugin.mjs.map +1 -1
- package/lib/components/plugin-configuration-container/plugin-configuration-container.component.d.ts +5 -6
- package/lib/components/plugin-configuration-container/plugin-configuration-container.component.d.ts.map +1 -1
- package/lib/constants/index.d.ts.map +1 -1
- package/lib/constants/injection-tokens.d.ts.map +1 -1
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/plugin.d.ts +41 -7
- package/lib/models/plugin.d.ts.map +1 -1
- package/lib/pipes/index.d.ts.map +1 -1
- package/lib/pipes/plugin-translate/index.d.ts.map +1 -1
- package/lib/pipes/plugin-translate/plugin-translate-pipe.module.d.ts.map +1 -1
- package/lib/pipes/plugin-translate/plugin-translate.pipe.d.ts.map +1 -1
- package/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.d.ts +3 -0
- package/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.d.ts.map +1 -0
- package/lib/plugins/documenten-api/assets/index.d.ts +2 -0
- package/lib/plugins/documenten-api/assets/index.d.ts.map +1 -0
- package/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.d.ts +34 -0
- package/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.d.ts.map +1 -0
- package/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.d.ts +39 -0
- package/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.d.ts.map +1 -0
- package/lib/plugins/documenten-api/documenten-api-plugin.module.d.ts +12 -0
- package/lib/plugins/documenten-api/documenten-api-plugin.module.d.ts.map +1 -0
- package/lib/plugins/documenten-api/documenten-api-plugin.specification.d.ts +4 -0
- package/lib/plugins/documenten-api/documenten-api-plugin.specification.d.ts.map +1 -0
- package/lib/plugins/documenten-api/models/config.d.ts +17 -0
- package/lib/plugins/documenten-api/models/config.d.ts.map +1 -0
- package/lib/plugins/documenten-api/models/index.d.ts +2 -0
- package/lib/plugins/documenten-api/models/index.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/assets/object-token-authentication-plugin-logo.d.ts +3 -0
- package/lib/plugins/object-token-authentication/assets/object-token-authentication-plugin-logo.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/components/object-token-authentication-configuration/object-token-authencation-configuration.component.d.ts +24 -0
- package/lib/plugins/object-token-authentication/components/object-token-authentication-configuration/object-token-authencation-configuration.component.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/models/config.d.ts +6 -0
- package/lib/plugins/object-token-authentication/models/config.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/models/index.d.ts +2 -0
- package/lib/plugins/object-token-authentication/models/index.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/object-token-authentication-plugin.module.d.ts +11 -0
- package/lib/plugins/object-token-authentication/object-token-authentication-plugin.module.d.ts.map +1 -0
- package/lib/plugins/object-token-authentication/object-token-authentication-plugin.specification.d.ts +4 -0
- package/lib/plugins/object-token-authentication/object-token-authentication-plugin.specification.d.ts.map +1 -0
- package/lib/plugins/objecten-api/assets/index.d.ts +2 -0
- package/lib/plugins/objecten-api/assets/index.d.ts.map +1 -0
- package/lib/plugins/objecten-api/assets/objecten-api-plugin-logo.d.ts +3 -0
- package/lib/plugins/objecten-api/assets/objecten-api-plugin-logo.d.ts.map +1 -0
- package/lib/plugins/objecten-api/components/objecten-api-configuration/objecten-api-configuration.component.d.ts +34 -0
- package/lib/plugins/objecten-api/components/objecten-api-configuration/objecten-api-configuration.component.d.ts.map +1 -0
- package/lib/plugins/objecten-api/models/config.d.ts +7 -0
- package/lib/plugins/objecten-api/models/config.d.ts.map +1 -0
- package/lib/plugins/objecten-api/models/index.d.ts +2 -0
- package/lib/plugins/objecten-api/models/index.d.ts.map +1 -0
- package/lib/plugins/objecten-api/objecten-api-plugin-module.d.ts +11 -0
- package/lib/plugins/objecten-api/objecten-api-plugin-module.d.ts.map +1 -0
- package/lib/plugins/objecten-api/objecten-api-plugin.specification.d.ts +4 -0
- package/lib/plugins/objecten-api/objecten-api-plugin.specification.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/assets/index.d.ts +2 -0
- package/lib/plugins/objecttypen-api/assets/index.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/assets/objecttypen-api-plugin-logo.d.ts +3 -0
- package/lib/plugins/objecttypen-api/assets/objecttypen-api-plugin-logo.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/components/objecttypen-api-configuration/objecttypen-api-configuration.component.d.ts +34 -0
- package/lib/plugins/objecttypen-api/components/objecttypen-api-configuration/objecttypen-api-configuration.component.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/models/config.d.ts +7 -0
- package/lib/plugins/objecttypen-api/models/config.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/models/index.d.ts +2 -0
- package/lib/plugins/objecttypen-api/models/index.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/objecttypen-api-plugin-module.d.ts +11 -0
- package/lib/plugins/objecttypen-api/objecttypen-api-plugin-module.d.ts.map +1 -0
- package/lib/plugins/objecttypen-api/objecttypen-api-plugin.specification.d.ts +4 -0
- package/lib/plugins/objecttypen-api/objecttypen-api-plugin.specification.d.ts.map +1 -0
- package/lib/plugins/open-zaak/assets/index.d.ts.map +1 -1
- package/lib/plugins/open-zaak/assets/open-zaak-plugin-logo.d.ts.map +1 -1
- package/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.d.ts +11 -6
- package/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.d.ts.map +1 -1
- package/lib/plugins/open-zaak/models/config.d.ts +3 -7
- package/lib/plugins/open-zaak/models/config.d.ts.map +1 -1
- package/lib/plugins/open-zaak/models/index.d.ts.map +1 -1
- package/lib/plugins/open-zaak/open-zaak-plugin.module.d.ts +4 -9
- package/lib/plugins/open-zaak/open-zaak-plugin.module.d.ts.map +1 -1
- package/lib/plugins/open-zaak/open-zaak-plugin.specification.d.ts.map +1 -1
- package/lib/plugins/smart-documents/assets/index.d.ts.map +1 -1
- package/lib/plugins/smart-documents/assets/smart-documents-plugin-logo.d.ts.map +1 -1
- package/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.d.ts +12 -7
- package/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.d.ts.map +1 -1
- package/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.d.ts +11 -6
- package/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.d.ts.map +1 -1
- package/lib/plugins/smart-documents/models/config.d.ts +3 -2
- package/lib/plugins/smart-documents/models/config.d.ts.map +1 -1
- package/lib/plugins/smart-documents/models/index.d.ts.map +1 -1
- package/lib/plugins/smart-documents/smart-documents-plugin.module.d.ts +1 -1
- package/lib/plugins/smart-documents/smart-documents-plugin.module.d.ts.map +1 -1
- package/lib/plugins/smart-documents/smart-documents-plugin.specification.d.ts.map +1 -1
- package/lib/plugins/zaken-api/assets/index.d.ts +2 -0
- package/lib/plugins/zaken-api/assets/index.d.ts.map +1 -0
- package/lib/plugins/zaken-api/assets/zaken-api-plugin-logo.d.ts +3 -0
- package/lib/plugins/zaken-api/assets/zaken-api-plugin-logo.d.ts.map +1 -0
- package/lib/plugins/zaken-api/components/link-document-to-zaak/link-document-to-zaak-configuration.component.d.ts +34 -0
- package/lib/plugins/zaken-api/components/link-document-to-zaak/link-document-to-zaak-configuration.component.d.ts.map +1 -0
- package/lib/plugins/zaken-api/components/zaken-api-configuration/zaken-api-configuration.component.d.ts +34 -0
- package/lib/plugins/zaken-api/components/zaken-api-configuration/zaken-api-configuration.component.d.ts.map +1 -0
- package/lib/plugins/zaken-api/models/config.d.ts +12 -0
- package/lib/plugins/zaken-api/models/config.d.ts.map +1 -0
- package/lib/plugins/zaken-api/models/index.d.ts +2 -0
- package/lib/plugins/zaken-api/models/index.d.ts.map +1 -0
- package/lib/plugins/zaken-api/zaken-api-plugin.module.d.ts +12 -0
- package/lib/plugins/zaken-api/zaken-api-plugin.module.d.ts.map +1 -0
- package/lib/plugins/zaken-api/zaken-api-plugin.specification.d.ts +4 -0
- package/lib/plugins/zaken-api/zaken-api-plugin.specification.d.ts.map +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/plugin-management.service.d.ts +27 -0
- package/lib/services/plugin-management.service.d.ts.map +1 -0
- package/lib/services/plugin-translation.service.d.ts.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +17 -5
- package/public-api.d.ts.map +1 -1
- package/esm2020/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.mjs +0 -65
- package/esm2020/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.mjs +0 -61
- package/esm2020/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.mjs +0 -85
- package/esm2020/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.mjs +0 -95
- package/esm2020/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.mjs +0 -90
- package/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.d.ts +0 -23
- package/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.d.ts.map +0 -1
- package/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.d.ts +0 -23
- package/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.d.ts.map +0 -1
- package/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.d.ts +0 -30
- package/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.d.ts.map +0 -1
- package/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.d.ts +0 -30
- package/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.d.ts.map +0 -1
- package/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.d.ts +0 -30
- package/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.d.ts.map +0 -1
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Injectable, Inject, Pipe, NgModule, EventEmitter, ViewContainerRef, Component, ViewChild, Input, Output } from '@angular/core';
|
|
3
|
-
import { BehaviorSubject, combineLatest,
|
|
4
|
-
import { map, tap
|
|
5
|
-
import * as
|
|
3
|
+
import { BehaviorSubject, combineLatest, take, map as map$1 } from 'rxjs';
|
|
4
|
+
import { map, tap } from 'rxjs/operators';
|
|
5
|
+
import * as i2 from '@ngx-translate/core';
|
|
6
6
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
|
-
import * as
|
|
8
|
-
import
|
|
9
|
-
import * as
|
|
7
|
+
import * as i1 from '@valtimo/config';
|
|
8
|
+
import * as i3 from '@angular/platform-browser';
|
|
9
|
+
import * as i4 from '@angular/common/http';
|
|
10
|
+
import * as i3$1 from '@valtimo/user-interface';
|
|
11
|
+
import { ParagraphModule, FormModule, InputModule, SelectModule, MultiInputModule } from '@valtimo/user-interface';
|
|
12
|
+
import * as i4$1 from '@angular/common';
|
|
10
13
|
import { CommonModule } from '@angular/common';
|
|
11
|
-
import * as i1$1 from '@valtimo/resource';
|
|
12
14
|
|
|
13
15
|
/*
|
|
14
16
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -19,7 +21,11 @@ import * as i1$1 from '@valtimo/resource';
|
|
|
19
21
|
*
|
|
20
22
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
21
23
|
*
|
|
22
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
24
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
25
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
26
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
27
|
+
* See the License for the specific language governing permissions and
|
|
28
|
+
* limitations under the License.
|
|
23
29
|
*/
|
|
24
30
|
const PLUGINS_TOKEN = new InjectionToken('Provide plugin config; an array of plugin specifications.');
|
|
25
31
|
|
|
@@ -32,7 +38,11 @@ const PLUGINS_TOKEN = new InjectionToken('Provide plugin config; an array of plu
|
|
|
32
38
|
*
|
|
33
39
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
34
40
|
*
|
|
35
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
41
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
42
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
43
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
44
|
+
* See the License for the specific language governing permissions and
|
|
45
|
+
* limitations under the License.
|
|
36
46
|
*/
|
|
37
47
|
|
|
38
48
|
/*
|
|
@@ -67,9 +77,9 @@ class PluginService {
|
|
|
67
77
|
return this._availablePluginIds$;
|
|
68
78
|
}
|
|
69
79
|
}
|
|
70
|
-
PluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
71
|
-
PluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
72
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
80
|
+
PluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, deps: [{ token: PLUGINS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
81
|
+
PluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, providedIn: 'root' });
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, decorators: [{
|
|
73
83
|
type: Injectable,
|
|
74
84
|
args: [{
|
|
75
85
|
providedIn: 'root',
|
|
@@ -88,7 +98,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
88
98
|
*
|
|
89
99
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
90
100
|
*
|
|
91
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
101
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
102
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
103
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
104
|
+
* See the License for the specific language governing permissions and
|
|
105
|
+
* limitations under the License.
|
|
92
106
|
*/
|
|
93
107
|
class PluginTranslationService {
|
|
94
108
|
constructor(translateService, pluginService) {
|
|
@@ -111,14 +125,85 @@ class PluginTranslationService {
|
|
|
111
125
|
return translation || `${pluginDefinitionKey}.${translateKey}`;
|
|
112
126
|
}
|
|
113
127
|
}
|
|
114
|
-
PluginTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
115
|
-
PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
128
|
+
PluginTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, deps: [{ token: i2.TranslateService }, { token: PluginService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
129
|
+
PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, providedIn: 'root' });
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, decorators: [{
|
|
131
|
+
type: Injectable,
|
|
132
|
+
args: [{
|
|
133
|
+
providedIn: 'root',
|
|
134
|
+
}]
|
|
135
|
+
}], ctorParameters: function () { return [{ type: i2.TranslateService }, { type: PluginService }]; } });
|
|
136
|
+
|
|
137
|
+
/*
|
|
138
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
139
|
+
*
|
|
140
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
141
|
+
* you may not use this file except in compliance with the License.
|
|
142
|
+
* You may obtain a copy of the License at
|
|
143
|
+
*
|
|
144
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
145
|
+
*
|
|
146
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
147
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
148
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
149
|
+
* See the License for the specific language governing permissions and
|
|
150
|
+
* limitations under the License.
|
|
151
|
+
*/
|
|
152
|
+
class PluginManagementService {
|
|
153
|
+
constructor(configService, pluginService, sanitizer, http) {
|
|
154
|
+
this.configService = configService;
|
|
155
|
+
this.pluginService = pluginService;
|
|
156
|
+
this.sanitizer = sanitizer;
|
|
157
|
+
this.http = http;
|
|
158
|
+
this.VALTIMO_API_ENDPOINT_URI = this.configService.config.valtimoApi.endpointUri;
|
|
159
|
+
}
|
|
160
|
+
getPluginDefinitions() {
|
|
161
|
+
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}plugin/definition`);
|
|
162
|
+
}
|
|
163
|
+
getPluginFunctions(pluginDefinitionId) {
|
|
164
|
+
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}plugin/definition/${pluginDefinitionId}/action`);
|
|
165
|
+
}
|
|
166
|
+
getAllPluginConfigurations() {
|
|
167
|
+
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}plugin/configuration`);
|
|
168
|
+
}
|
|
169
|
+
getPluginConfigurationsByCategory(categoryId) {
|
|
170
|
+
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}plugin/configuration?category=${categoryId}`);
|
|
171
|
+
}
|
|
172
|
+
getAllPluginConfigurationsWithLogos() {
|
|
173
|
+
return this.returnPluginConfigurationsWithLogos(this.getAllPluginConfigurations());
|
|
174
|
+
}
|
|
175
|
+
savePluginConfiguration(pluginConfiguration) {
|
|
176
|
+
return this.http.post(`${this.VALTIMO_API_ENDPOINT_URI}plugin/configuration`, pluginConfiguration);
|
|
177
|
+
}
|
|
178
|
+
updatePluginConfiguration(configurationId, configurationTitle, configurationProperties) {
|
|
179
|
+
return this.http.put(`${this.VALTIMO_API_ENDPOINT_URI}plugin/configuration/${configurationId}`, {
|
|
180
|
+
title: configurationTitle,
|
|
181
|
+
properties: configurationProperties,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
deletePluginConfiguration(configurationId) {
|
|
185
|
+
return this.http.delete(`${this.VALTIMO_API_ENDPOINT_URI}plugin/configuration/${configurationId}`);
|
|
186
|
+
}
|
|
187
|
+
returnPluginConfigurationsWithLogos(pluginConfigurations$) {
|
|
188
|
+
return combineLatest([pluginConfigurations$, this.pluginService.pluginSpecifications$]).pipe(map(([pluginConfigurations, pluginSpecifications]) => pluginConfigurations?.map(pluginConfiguration => {
|
|
189
|
+
const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginConfiguration?.pluginDefinition?.key);
|
|
190
|
+
return {
|
|
191
|
+
...pluginConfiguration,
|
|
192
|
+
...(pluginSpecification?.pluginLogoBase64 && {
|
|
193
|
+
pluginLogoBase64: this.sanitizer.bypassSecurityTrustResourceUrl(pluginSpecification?.pluginLogoBase64),
|
|
194
|
+
}),
|
|
195
|
+
};
|
|
196
|
+
})));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
PluginManagementService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginManagementService, deps: [{ token: i1.ConfigService }, { token: PluginService }, { token: i3.DomSanitizer }, { token: i4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
200
|
+
PluginManagementService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginManagementService, providedIn: 'root' });
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginManagementService, decorators: [{
|
|
117
202
|
type: Injectable,
|
|
118
203
|
args: [{
|
|
119
204
|
providedIn: 'root',
|
|
120
205
|
}]
|
|
121
|
-
}], ctorParameters: function () { return [{ type: i1.
|
|
206
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: PluginService }, { type: i3.DomSanitizer }, { type: i4.HttpClient }]; } });
|
|
122
207
|
|
|
123
208
|
/*
|
|
124
209
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -129,7 +214,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
129
214
|
*
|
|
130
215
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
131
216
|
*
|
|
132
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
217
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
218
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
219
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
220
|
+
* See the License for the specific language governing permissions and
|
|
221
|
+
* limitations under the License.
|
|
133
222
|
*/
|
|
134
223
|
|
|
135
224
|
/*
|
|
@@ -141,7 +230,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
141
230
|
*
|
|
142
231
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
143
232
|
*
|
|
144
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
233
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
234
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
235
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
236
|
+
* See the License for the specific language governing permissions and
|
|
237
|
+
* limitations under the License.
|
|
145
238
|
*/
|
|
146
239
|
|
|
147
240
|
/*
|
|
@@ -153,7 +246,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
153
246
|
*
|
|
154
247
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
155
248
|
*
|
|
156
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
249
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
250
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
251
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
252
|
+
* See the License for the specific language governing permissions and
|
|
253
|
+
* limitations under the License.
|
|
157
254
|
*/
|
|
158
255
|
|
|
159
256
|
/*
|
|
@@ -165,7 +262,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
165
262
|
*
|
|
166
263
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
167
264
|
*
|
|
168
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
265
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
266
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
267
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
268
|
+
* See the License for the specific language governing permissions and
|
|
269
|
+
* limitations under the License.
|
|
169
270
|
*/
|
|
170
271
|
class PluginTranslatePipe {
|
|
171
272
|
constructor(pluginTranslationService, pluginService) {
|
|
@@ -176,9 +277,9 @@ class PluginTranslatePipe {
|
|
|
176
277
|
return this.pluginTranslationService.translate(translateKey, pluginDefinitionKey);
|
|
177
278
|
}
|
|
178
279
|
}
|
|
179
|
-
PluginTranslatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
180
|
-
PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.
|
|
181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
280
|
+
PluginTranslatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, deps: [{ token: PluginTranslationService }, { token: PluginService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
281
|
+
PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, name: "pluginTranslate" });
|
|
282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, decorators: [{
|
|
182
283
|
type: Pipe,
|
|
183
284
|
args: [{
|
|
184
285
|
name: 'pluginTranslate',
|
|
@@ -194,14 +295,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
194
295
|
*
|
|
195
296
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
196
297
|
*
|
|
197
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
298
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
299
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
300
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
301
|
+
* See the License for the specific language governing permissions and
|
|
302
|
+
* limitations under the License.
|
|
198
303
|
*/
|
|
199
304
|
class PluginTranslatePipeModule {
|
|
200
305
|
}
|
|
201
|
-
PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
202
|
-
PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
203
|
-
PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
204
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
306
|
+
PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
307
|
+
PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, declarations: [PluginTranslatePipe], imports: [TranslateModule], exports: [PluginTranslatePipe] });
|
|
308
|
+
PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, imports: [[TranslateModule]] });
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, decorators: [{
|
|
205
310
|
type: NgModule,
|
|
206
311
|
args: [{
|
|
207
312
|
imports: [TranslateModule],
|
|
@@ -219,7 +324,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
219
324
|
*
|
|
220
325
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
221
326
|
*
|
|
222
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
327
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
328
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
329
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
330
|
+
* See the License for the specific language governing permissions and
|
|
331
|
+
* limitations under the License.
|
|
223
332
|
*/
|
|
224
333
|
|
|
225
334
|
/*
|
|
@@ -231,7 +340,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
231
340
|
*
|
|
232
341
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
233
342
|
*
|
|
234
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
343
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
344
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
345
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
346
|
+
* See the License for the specific language governing permissions and
|
|
347
|
+
* limitations under the License.
|
|
235
348
|
*/
|
|
236
349
|
|
|
237
350
|
/*
|
|
@@ -316,10 +429,11 @@ class PluginConfigurationContainerComponent {
|
|
|
316
429
|
this.validSubscription?.unsubscribe();
|
|
317
430
|
if (instance) {
|
|
318
431
|
instance.save$ = this.save$;
|
|
319
|
-
instance.
|
|
320
|
-
instance.error = this.error;
|
|
321
|
-
instance.disabled = this.disabled;
|
|
432
|
+
instance.disabled$ = this.disabled$;
|
|
322
433
|
instance.pluginId = pluginDefinitionKey;
|
|
434
|
+
if (this.prefillConfiguration$) {
|
|
435
|
+
instance.prefillConfiguration$ = this.prefillConfiguration$;
|
|
436
|
+
}
|
|
323
437
|
this.validSubscription = instance.valid.subscribe(valid => {
|
|
324
438
|
this.valid.emit(valid);
|
|
325
439
|
});
|
|
@@ -330,9 +444,9 @@ class PluginConfigurationContainerComponent {
|
|
|
330
444
|
});
|
|
331
445
|
}
|
|
332
446
|
}
|
|
333
|
-
PluginConfigurationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
334
|
-
PluginConfigurationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
447
|
+
PluginConfigurationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, deps: [{ token: PluginService }], target: i0.ɵɵFactoryTarget.Component });
|
|
448
|
+
PluginConfigurationContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: PluginConfigurationContainerComponent, selector: "valtimo-plugin-configuration-container", inputs: { type: "type", pluginDefinitionKey: "pluginDefinitionKey", functionKey: "functionKey", save$: "save$", disabled$: "disabled$", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, viewQueries: [{ propertyName: "dynamicContainer", first: true, predicate: ["pluginConfigurationComponent"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-template #pluginConfigurationComponent></ng-template>\n<ng-container *ngIf=\"noConfigurationComponentAvailable$ | async\">\n <v-paragraph [center]=\"true\">{{ 'plugin.noConfigurationComponent' | translate }}</v-paragraph>\n</ng-container>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], components: [{ type: i3$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "translate": i2.TranslatePipe } });
|
|
449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, decorators: [{
|
|
336
450
|
type: Component,
|
|
337
451
|
args: [{ selector: 'valtimo-plugin-configuration-container', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<ng-template #pluginConfigurationComponent></ng-template>\n<ng-container *ngIf=\"noConfigurationComponentAvailable$ | async\">\n <v-paragraph [center]=\"true\">{{ 'plugin.noConfigurationComponent' | translate }}</v-paragraph>\n</ng-container>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
338
452
|
}], ctorParameters: function () { return [{ type: PluginService }]; }, propDecorators: { dynamicContainer: [{
|
|
@@ -344,13 +458,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
344
458
|
type: Input
|
|
345
459
|
}], functionKey: [{
|
|
346
460
|
type: Input
|
|
347
|
-
}], clear$: [{
|
|
348
|
-
type: Input
|
|
349
461
|
}], save$: [{
|
|
350
462
|
type: Input
|
|
351
|
-
}], disabled
|
|
463
|
+
}], disabled$: [{
|
|
352
464
|
type: Input
|
|
353
|
-
}],
|
|
465
|
+
}], prefillConfiguration$: [{
|
|
354
466
|
type: Input
|
|
355
467
|
}], valid: [{
|
|
356
468
|
type: Output
|
|
@@ -375,10 +487,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
375
487
|
*/
|
|
376
488
|
class PluginConfigurationContainerModule {
|
|
377
489
|
}
|
|
378
|
-
PluginConfigurationContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
379
|
-
PluginConfigurationContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
380
|
-
PluginConfigurationContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.
|
|
381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
490
|
+
PluginConfigurationContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
491
|
+
PluginConfigurationContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, declarations: [PluginConfigurationContainerComponent], imports: [CommonModule, ParagraphModule, TranslateModule], exports: [PluginConfigurationContainerComponent] });
|
|
492
|
+
PluginConfigurationContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, imports: [[CommonModule, ParagraphModule, TranslateModule]] });
|
|
493
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, decorators: [{
|
|
382
494
|
type: NgModule,
|
|
383
495
|
args: [{
|
|
384
496
|
declarations: [PluginConfigurationContainerComponent],
|
|
@@ -396,42 +508,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
396
508
|
*
|
|
397
509
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
398
510
|
*
|
|
399
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
511
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
512
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
513
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
514
|
+
* See the License for the specific language governing permissions and
|
|
515
|
+
* limitations under the License.
|
|
400
516
|
*/
|
|
401
517
|
class OpenZaakConfigurationComponent {
|
|
402
518
|
constructor() {
|
|
403
519
|
this.valid = new EventEmitter();
|
|
404
520
|
this.configuration = new EventEmitter();
|
|
521
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
522
|
+
this.valid$ = new BehaviorSubject(false);
|
|
523
|
+
}
|
|
524
|
+
ngOnInit() {
|
|
525
|
+
this.openSaveSubscription();
|
|
526
|
+
}
|
|
527
|
+
ngOnDestroy() {
|
|
528
|
+
this.saveSubscription?.unsubscribe();
|
|
405
529
|
}
|
|
406
530
|
formValueChange(formValue) {
|
|
407
|
-
this.
|
|
531
|
+
this.formValue$.next(formValue);
|
|
408
532
|
this.handleValid(formValue);
|
|
409
533
|
}
|
|
410
534
|
handleValid(formValue) {
|
|
411
|
-
const valid = formValue.
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
535
|
+
const valid = !!(formValue.configurationTitle && formValue.clientId && formValue.clientSecret);
|
|
536
|
+
this.valid$.next(valid);
|
|
537
|
+
this.valid.emit(valid);
|
|
538
|
+
}
|
|
539
|
+
openSaveSubscription() {
|
|
540
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
541
|
+
combineLatest([this.formValue$, this.valid$])
|
|
542
|
+
.pipe(take(1))
|
|
543
|
+
.subscribe(([formValue, valid]) => {
|
|
544
|
+
if (valid) {
|
|
545
|
+
this.configuration.emit(formValue);
|
|
546
|
+
}
|
|
547
|
+
});
|
|
548
|
+
});
|
|
418
549
|
}
|
|
419
550
|
}
|
|
420
|
-
OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
421
|
-
OpenZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
551
|
+
OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
552
|
+
OpenZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: OpenZaakConfigurationComponent, selector: "valtimo-open-zaak-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [widthPx]=\"350\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"clientId\"\n [title]=\"'clientId' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientId\"\n [widthPx]=\"350\"\n [required]=\"true\"\n [tooltip]=\"'clientIdTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"clientSecret\"\n type=\"password\"\n [title]=\"'clientSecret' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientSecret\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n [tooltip]=\"'clientSecretTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, decorators: [{
|
|
423
554
|
type: Component,
|
|
424
|
-
args: [{ selector: 'valtimo-open-zaak-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form
|
|
425
|
-
}], propDecorators: {
|
|
555
|
+
args: [{ selector: 'valtimo-open-zaak-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [widthPx]=\"350\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"clientId\"\n [title]=\"'clientId' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientId\"\n [widthPx]=\"350\"\n [required]=\"true\"\n [tooltip]=\"'clientIdTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"clientSecret\"\n type=\"password\"\n [title]=\"'clientSecret' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientSecret\"\n [required]=\"true\"\n [fullWidth]=\"true\"\n [tooltip]=\"'clientSecretTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
556
|
+
}], propDecorators: { save$: [{
|
|
426
557
|
type: Input
|
|
427
|
-
}],
|
|
428
|
-
type: Input
|
|
429
|
-
}], disabled: [{
|
|
430
|
-
type: Input
|
|
431
|
-
}], error: [{
|
|
558
|
+
}], disabled$: [{
|
|
432
559
|
type: Input
|
|
433
560
|
}], pluginId: [{
|
|
434
561
|
type: Input
|
|
562
|
+
}], prefillConfiguration$: [{
|
|
563
|
+
type: Input
|
|
435
564
|
}], valid: [{
|
|
436
565
|
type: Output
|
|
437
566
|
}], configuration: [{
|
|
@@ -447,48 +576,42 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
447
576
|
*
|
|
448
577
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
449
578
|
*
|
|
450
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
579
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
580
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
581
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
582
|
+
* See the License for the specific language governing permissions and
|
|
583
|
+
* limitations under the License.
|
|
451
584
|
*/
|
|
452
|
-
class
|
|
453
|
-
constructor(openZaakService, modalService, pluginTranslationService) {
|
|
454
|
-
this.openZaakService = openZaakService;
|
|
455
|
-
this.modalService = modalService;
|
|
456
|
-
this.pluginTranslationService = pluginTranslationService;
|
|
457
|
-
this.zaakTypeSelected = new EventEmitter();
|
|
458
|
-
this.zaakTypeLinks$ = this.modalService.modalData$.pipe(switchMap(modalData => {
|
|
459
|
-
if (modalData?.processDefinitionKey) {
|
|
460
|
-
return this.openZaakService.getZaakTypeLinkListByProcess(modalData?.processDefinitionKey);
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
return of(null);
|
|
464
|
-
}
|
|
465
|
-
}));
|
|
466
|
-
this.zaakTypeLinkSelectItems$ = this.zaakTypeLinks$.pipe(map(zaakTypeLinks => zaakTypeLinks?.map(link => ({
|
|
467
|
-
id: link.zaakTypeUrl,
|
|
468
|
-
text: link.documentDefinitionName,
|
|
469
|
-
}))));
|
|
470
|
-
this.selectedZaakTypeUrl$ = new BehaviorSubject('');
|
|
471
|
-
this.selectedZaakType$ = combineLatest([
|
|
472
|
-
this.selectedZaakTypeUrl$,
|
|
473
|
-
this.openZaakService.getZaakTypes(),
|
|
474
|
-
]).pipe(map(([selectedZaakTypeUrl, zaakTypes]) => zaakTypes.find(zaakType => zaakType.url === selectedZaakTypeUrl)), tap(selectedZaakType => this.zaakTypeSelected.emit(selectedZaakType)));
|
|
475
|
-
}
|
|
476
|
-
selectZaakTypeLink(zaakTypeUrl) {
|
|
477
|
-
this.selectedZaakTypeUrl$.next(zaakTypeUrl);
|
|
478
|
-
}
|
|
585
|
+
class OpenZaakPluginModule {
|
|
479
586
|
}
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
i0.ɵɵ
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
587
|
+
OpenZaakPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
588
|
+
OpenZaakPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, declarations: [OpenZaakConfigurationComponent], imports: [CommonModule, FormModule, InputModule, PluginTranslatePipeModule], exports: [OpenZaakConfigurationComponent] });
|
|
589
|
+
OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, imports: [[CommonModule, FormModule, InputModule, PluginTranslatePipeModule]] });
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
|
|
591
|
+
type: NgModule,
|
|
592
|
+
args: [{
|
|
593
|
+
declarations: [OpenZaakConfigurationComponent],
|
|
594
|
+
imports: [CommonModule, FormModule, InputModule, PluginTranslatePipeModule],
|
|
595
|
+
exports: [OpenZaakConfigurationComponent],
|
|
596
|
+
}]
|
|
597
|
+
}] });
|
|
598
|
+
|
|
599
|
+
/*
|
|
600
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
601
|
+
*
|
|
602
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
603
|
+
* you may not use this file except in compliance with the License.
|
|
604
|
+
* You may obtain a copy of the License at
|
|
605
|
+
*
|
|
606
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
607
|
+
*
|
|
608
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
609
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
610
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
611
|
+
* See the License for the specific language governing permissions and
|
|
612
|
+
* limitations under the License.
|
|
613
|
+
*/
|
|
614
|
+
const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAARtAAAEbQF9GpMFAAAAB3RJTUUH5gYKBB8NWNadBAAAAAZiS0dEAP8A/wD/oL2nkwAADG1JREFUaN7lm3tw1cUVx9O/2uqMnUEg1FZnOmOx8ih1ykwZcajaoVoEqmbkGR4+QEBQHI2iTpUZwSEhRJ6CgLwThhLCI2ocqChCpFJeLRhCeIcg3JsHSUhyb27uzel+9u7v5ndfed6EOOzMmfyyv92z57t7Xru/vXFxMSw9Upxxv/ioKC5+vvO2+PmOPooSFaUp+kJRniKnIpcinyGXqcszbdJMnz7wgBc8O11RAkI/VfSAoiRFOYouK3Irku6KuqU4pCuU7JA7DfFMHe9oE+8nt+mbY3g9YHjfZJALrsbFp2igdyh6SlGmWa367gYYdNcCh9y3pFj+tKpEHttYJk9vuS6jM/3EM3W8ow1trX7wgJfhmWnGuEOPqca+GSv6c0VPKtqjqIYV6mpWqtfSYklQYOZ+c0N25rvlv9fq5IdKn1S468VVVy+1Xj/xTB3vaENb+tAXHnaejGHGetKM3UFAU5w/UX/7KUpXVKWFUityT5pThmaUybJD1XLCUSfVnnppbaEvPOAFT3jrVfcDrzJj9zOytPuqTlJ0Id7M/t1KGNQz+7Rbyl2tBxmtwBPejMFYXVMCtn7ByBL71TZg4xUtw7My09jY4A2lsi3PJTdqYw80tD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BWKFOrM3Xllp6Mc3r8ycJzDzZjnX5mz7kvyO3+q8RY1/fXvZoAc+qBB/imTre0Ya29KGvxQee8GYMb4jFxOxiWmuuHpLlkNqR8fRc7L/12iW5wTP/MtXvBEkSCDkQz9TxLuCxzS15eMDr0wJ3UAalvXF7XD1s7eXSGqWW7LJQP3ZYOJtfLXAEYqwOQTayYjVtaEsf+sKjJoI5tNvl0lhcH6b+lLJJ8trF31XLrH9VypTsCpmoQhDEM3W8ow1tG+PV7teHoyQmk9tyQZyYSpyFmrPBaOKC+OR2/TlAfKozrvuC4k7zEwAtS2oH/MznlvmRxy37M55b8odaP9af4v0f7OO0BSS5cpoAAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDYtMTBUMDQ6MzE6MTMtMDQ6MDAqVmbCAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA2LTEwVDA0OjMxOjEzLTA0OjAwWwvefgAAAABJRU5ErkJggg==';
|
|
492
615
|
|
|
493
616
|
/*
|
|
494
617
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -499,56 +622,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
499
622
|
*
|
|
500
623
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
501
624
|
*
|
|
502
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
625
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
626
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
627
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
628
|
+
* See the License for the specific language governing permissions and
|
|
629
|
+
* limitations under the License.
|
|
503
630
|
*/
|
|
504
|
-
class CreateZaakConfigurationComponent {
|
|
505
|
-
constructor() {
|
|
506
|
-
this.valid = new EventEmitter();
|
|
507
|
-
this.configuration = new EventEmitter();
|
|
508
|
-
this.selectedZaakType$ = new BehaviorSubject(null);
|
|
509
|
-
}
|
|
510
|
-
ngOnInit() {
|
|
511
|
-
this.openValidSubscription();
|
|
512
|
-
}
|
|
513
|
-
ngOnDestroy() {
|
|
514
|
-
this.validSubscription?.unsubscribe();
|
|
515
|
-
}
|
|
516
|
-
selectZaakType(zaakType) {
|
|
517
|
-
this.selectedZaakType$.next(zaakType);
|
|
518
|
-
}
|
|
519
|
-
openValidSubscription() {
|
|
520
|
-
this.validSubscription = combineLatest([this.selectedZaakType$])
|
|
521
|
-
.pipe(tap(([zaakType]) => {
|
|
522
|
-
if (zaakType) {
|
|
523
|
-
this.valid.emit(true);
|
|
524
|
-
}
|
|
525
|
-
else {
|
|
526
|
-
this.valid.emit(false);
|
|
527
|
-
}
|
|
528
|
-
}))
|
|
529
|
-
.subscribe();
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
CreateZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
533
|
-
CreateZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: CreateZaakConfigurationComponent, selector: "valtimo-create-zaak-configuration", inputs: { clear$: "clear$", save$: "save$", disabled: "disabled", error: "error", pluginId: "pluginId" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n", styles: [""], components: [{ type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: ["pluginId", "disabled"], outputs: ["zaakTypeSelected"] }] });
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, decorators: [{
|
|
535
|
-
type: Component,
|
|
536
|
-
args: [{ selector: 'valtimo-create-zaak-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n", styles: [""] }]
|
|
537
|
-
}], propDecorators: { clear$: [{
|
|
538
|
-
type: Input
|
|
539
|
-
}], save$: [{
|
|
540
|
-
type: Input
|
|
541
|
-
}], disabled: [{
|
|
542
|
-
type: Input
|
|
543
|
-
}], error: [{
|
|
544
|
-
type: Input
|
|
545
|
-
}], pluginId: [{
|
|
546
|
-
type: Input
|
|
547
|
-
}], valid: [{
|
|
548
|
-
type: Output
|
|
549
|
-
}], configuration: [{
|
|
550
|
-
type: Output
|
|
551
|
-
}] } });
|
|
552
631
|
|
|
553
632
|
/*
|
|
554
633
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -559,73 +638,49 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
559
638
|
*
|
|
560
639
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
561
640
|
*
|
|
562
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
641
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
642
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
643
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
644
|
+
* See the License for the specific language governing permissions and
|
|
645
|
+
* limitations under the License.
|
|
563
646
|
*/
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
this.valid.emit(false);
|
|
604
|
-
}
|
|
605
|
-
}))
|
|
606
|
-
.subscribe();
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
SetBesluitConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
610
|
-
SetBesluitConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SetBesluitConfigurationComponent, selector: "valtimo-set-besluit-configuration", inputs: { clear$: "clear$", save$: "save$", disabled: "disabled", error: "error", pluginId: "pluginId" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"besluitSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'besluit' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || disabled\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectBesluit($event)\"\n></v-select>\n", styles: [""], components: [{ type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: ["pluginId", "disabled"], outputs: ["zaakTypeSelected"] }, { type: i2.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$"], outputs: ["selectedChange", "clear"] }], pipes: { "async": i3.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, decorators: [{
|
|
612
|
-
type: Component,
|
|
613
|
-
args: [{ selector: 'valtimo-set-besluit-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"besluitSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'besluit' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || disabled\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectBesluit($event)\"\n></v-select>\n", styles: [""] }]
|
|
614
|
-
}], propDecorators: { clear$: [{
|
|
615
|
-
type: Input
|
|
616
|
-
}], save$: [{
|
|
617
|
-
type: Input
|
|
618
|
-
}], disabled: [{
|
|
619
|
-
type: Input
|
|
620
|
-
}], error: [{
|
|
621
|
-
type: Input
|
|
622
|
-
}], pluginId: [{
|
|
623
|
-
type: Input
|
|
624
|
-
}], valid: [{
|
|
625
|
-
type: Output
|
|
626
|
-
}], configuration: [{
|
|
627
|
-
type: Output
|
|
628
|
-
}] } });
|
|
647
|
+
const openZaakPluginSpecification = {
|
|
648
|
+
pluginId: 'openzaak',
|
|
649
|
+
pluginConfigurationComponent: OpenZaakConfigurationComponent,
|
|
650
|
+
pluginLogoBase64: OPEN_ZAAK_PLUGIN_LOGO_BASE64,
|
|
651
|
+
pluginTranslations: {
|
|
652
|
+
nl: {
|
|
653
|
+
title: 'OpenZaak',
|
|
654
|
+
description: 'OpenZaak is een productiewaardig API platform die de API-standaard voor zaakgericht werken implementeert (de ZGW-API’s).',
|
|
655
|
+
configurationTitle: 'Configuratienaam',
|
|
656
|
+
configurationTitleTooltip: 'Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
657
|
+
clientId: 'Client ID',
|
|
658
|
+
clientIdTooltip: 'Vul hier het clientId in dat geconfigureerd staat onder OpenZaak-beheer (zie API authorisaties > Applicaties). Dit clientId moet de juiste authorisaties hebben voor de benodigde functionaliteit',
|
|
659
|
+
clientSecret: 'Secret',
|
|
660
|
+
clientSecretTooltip: 'Vul de secret in die hoort bij de clientId hierboven',
|
|
661
|
+
},
|
|
662
|
+
en: {
|
|
663
|
+
title: 'OpenZaak',
|
|
664
|
+
description: 'OpenZaak is a production-worthy API platform that implements the API standard for case-oriented working (the ZGW APIs).',
|
|
665
|
+
configurationTitle: 'Configuration name',
|
|
666
|
+
configurationTitleTooltip: 'Under this name, the plugin will be recognizable in the rest of the application',
|
|
667
|
+
clientId: 'Client ID',
|
|
668
|
+
clientIdTooltip: 'Enter the clientId here which is configured under OpenZaak management (see API authorizations > Applications). This clientId must have the correct authorizations for the required functionality',
|
|
669
|
+
clientSecret: 'Secret',
|
|
670
|
+
clientSecretTooltip: 'Enter the secret associated with the clientId above',
|
|
671
|
+
},
|
|
672
|
+
de: {
|
|
673
|
+
title: 'OpenZaak',
|
|
674
|
+
description: 'OpenZaak ist eine produktionstaugliche API-Plattform, die den API-Standard für fallorientiertes Arbeiten (die ZGW-APIs) implementiert.',
|
|
675
|
+
configurationTitle: 'Konfigurationsname',
|
|
676
|
+
configurationTitleTooltip: 'Unter diesem Namen wird das Plugin im Rest der Anwendung erkennbar sein',
|
|
677
|
+
clientId: 'Client ID',
|
|
678
|
+
clientIdTooltip: 'Geben Sie hier die clientId ein, die unter OpenZaak-Verwaltung konfiguriert ist (siehe API-Berechtigungen > Anwendungen). Diese clientId muss die richtigen Berechtigungen für die erforderliche Funktionalität haben',
|
|
679
|
+
clientSecret: 'Secret',
|
|
680
|
+
clientSecretTooltip: 'Geben Sie das mit der obigen clientId verknüpfte Geheimnis ein',
|
|
681
|
+
},
|
|
682
|
+
},
|
|
683
|
+
};
|
|
629
684
|
|
|
630
685
|
/*
|
|
631
686
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -636,160 +691,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
636
691
|
*
|
|
637
692
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
638
693
|
*
|
|
639
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
694
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
695
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
696
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
697
|
+
* See the License for the specific language governing permissions and
|
|
698
|
+
* limitations under the License.
|
|
640
699
|
*/
|
|
641
|
-
class
|
|
700
|
+
class ObjectTokenAuthencationConfigurationComponent {
|
|
642
701
|
constructor() {
|
|
643
702
|
this.valid = new EventEmitter();
|
|
644
703
|
this.configuration = new EventEmitter();
|
|
645
|
-
this.
|
|
646
|
-
this.
|
|
647
|
-
this.RESULTATEN = [
|
|
648
|
-
'Ingetrokken',
|
|
649
|
-
'Ongegrond met financ',
|
|
650
|
-
'Gegrond met financië',
|
|
651
|
-
'Informeel afgehandel',
|
|
652
|
-
'Niet ontvankelijk ve',
|
|
653
|
-
'Gegrond met invloed',
|
|
654
|
-
'Ongegrond',
|
|
655
|
-
'Afgebroken',
|
|
656
|
-
'Gegrond',
|
|
657
|
-
];
|
|
658
|
-
this.resultaatSelectItems = this.RESULTATEN.map(resultaat => ({
|
|
659
|
-
id: resultaat,
|
|
660
|
-
text: resultaat,
|
|
661
|
-
}));
|
|
662
|
-
this.clearSubject$ = new Subject();
|
|
704
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
705
|
+
this.valid$ = new BehaviorSubject(false);
|
|
663
706
|
}
|
|
664
707
|
ngOnInit() {
|
|
665
|
-
this.
|
|
708
|
+
this.openSaveSubscription();
|
|
666
709
|
}
|
|
667
710
|
ngOnDestroy() {
|
|
668
|
-
this.
|
|
669
|
-
}
|
|
670
|
-
|
|
671
|
-
this.
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
this.
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
else {
|
|
690
|
-
this.valid.emit(false);
|
|
691
|
-
}
|
|
692
|
-
}))
|
|
693
|
-
.subscribe();
|
|
711
|
+
this.saveSubscription?.unsubscribe();
|
|
712
|
+
}
|
|
713
|
+
formValueChange(formValue) {
|
|
714
|
+
this.formValue$.next(formValue);
|
|
715
|
+
this.handleValid(formValue);
|
|
716
|
+
}
|
|
717
|
+
handleValid(formValue) {
|
|
718
|
+
const valid = !!(formValue.configurationTitle && formValue.token);
|
|
719
|
+
this.valid$.next(valid);
|
|
720
|
+
this.valid.emit(valid);
|
|
721
|
+
}
|
|
722
|
+
openSaveSubscription() {
|
|
723
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
724
|
+
combineLatest([this.formValue$, this.valid$])
|
|
725
|
+
.pipe(take(1))
|
|
726
|
+
.subscribe(([formValue, valid]) => {
|
|
727
|
+
if (valid) {
|
|
728
|
+
this.configuration.emit(formValue);
|
|
729
|
+
}
|
|
730
|
+
});
|
|
731
|
+
});
|
|
694
732
|
}
|
|
695
733
|
}
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
734
|
+
ObjectTokenAuthencationConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthencationConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
735
|
+
ObjectTokenAuthencationConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ObjectTokenAuthencationConfigurationComponent, selector: "valtimo-object-token-authentication-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [widthPx]=\"350\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"token\"\n type=\"password\"\n [title]=\"'token' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientId\"\n [required]=\"true\"\n [tooltip]=\"'tokenTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthencationConfigurationComponent, decorators: [{
|
|
699
737
|
type: Component,
|
|
700
|
-
args: [{ selector: 'valtimo-
|
|
701
|
-
}], propDecorators: {
|
|
738
|
+
args: [{ selector: 'valtimo-object-token-authentication-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [widthPx]=\"350\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"token\"\n type=\"password\"\n [title]=\"'token' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.clientId\"\n [required]=\"true\"\n [tooltip]=\"'tokenTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
739
|
+
}], propDecorators: { save$: [{
|
|
702
740
|
type: Input
|
|
703
|
-
}],
|
|
704
|
-
type: Input
|
|
705
|
-
}], disabled: [{
|
|
706
|
-
type: Input
|
|
707
|
-
}], error: [{
|
|
708
|
-
type: Input
|
|
709
|
-
}], pluginId: [{
|
|
710
|
-
type: Input
|
|
711
|
-
}], valid: [{
|
|
712
|
-
type: Output
|
|
713
|
-
}], configuration: [{
|
|
714
|
-
type: Output
|
|
715
|
-
}] } });
|
|
716
|
-
|
|
717
|
-
/*
|
|
718
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
719
|
-
*
|
|
720
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
721
|
-
* you may not use this file except in compliance with the License.
|
|
722
|
-
* You may obtain a copy of the License at
|
|
723
|
-
*
|
|
724
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
725
|
-
*
|
|
726
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
727
|
-
*/
|
|
728
|
-
class SetStatusConfigurationComponent {
|
|
729
|
-
constructor() {
|
|
730
|
-
this.valid = new EventEmitter();
|
|
731
|
-
this.configuration = new EventEmitter();
|
|
732
|
-
this.selectedStatus = new BehaviorSubject('');
|
|
733
|
-
this.selectedZaakType$ = new BehaviorSubject(null);
|
|
734
|
-
this.STATUSES = [
|
|
735
|
-
'Geregistreerd',
|
|
736
|
-
'Geaccepteerd',
|
|
737
|
-
'In behandeling genomen',
|
|
738
|
-
'Afgehandeld',
|
|
739
|
-
];
|
|
740
|
-
this.statusesSelectItems = this.STATUSES.map(status => ({
|
|
741
|
-
id: status,
|
|
742
|
-
text: status,
|
|
743
|
-
}));
|
|
744
|
-
this.clearSubject$ = new Subject();
|
|
745
|
-
}
|
|
746
|
-
ngOnInit() {
|
|
747
|
-
this.openValidSubscription();
|
|
748
|
-
}
|
|
749
|
-
ngOnDestroy() {
|
|
750
|
-
this.validSubscription?.unsubscribe();
|
|
751
|
-
}
|
|
752
|
-
selectZaakType(zaakType) {
|
|
753
|
-
this.selectedZaakType$.next(zaakType);
|
|
754
|
-
if (!zaakType) {
|
|
755
|
-
this.clearStatus();
|
|
756
|
-
}
|
|
757
|
-
}
|
|
758
|
-
clearStatus() {
|
|
759
|
-
this.selectedStatus.next('');
|
|
760
|
-
this.clearSubject$.next(null);
|
|
761
|
-
}
|
|
762
|
-
selectStatus(status) {
|
|
763
|
-
this.selectedStatus.next(status);
|
|
764
|
-
}
|
|
765
|
-
openValidSubscription() {
|
|
766
|
-
this.validSubscription = combineLatest([this.selectedStatus, this.selectedZaakType$])
|
|
767
|
-
.pipe(tap(([status, zaakType]) => {
|
|
768
|
-
if (status && zaakType) {
|
|
769
|
-
this.valid.emit(true);
|
|
770
|
-
}
|
|
771
|
-
else {
|
|
772
|
-
this.valid.emit(false);
|
|
773
|
-
}
|
|
774
|
-
}))
|
|
775
|
-
.subscribe();
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
SetStatusConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
779
|
-
SetStatusConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SetStatusConfigurationComponent, selector: "valtimo-set-status-configuration", inputs: { clear$: "clear$", save$: "save$", disabled: "disabled", error: "error", pluginId: "pluginId" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"statusesSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'zaakStatus' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || disabled\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectStatus($event)\"\n></v-select>\n", styles: [""], components: [{ type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: ["pluginId", "disabled"], outputs: ["zaakTypeSelected"] }, { type: i2.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$"], outputs: ["selectedChange", "clear"] }], pipes: { "async": i3.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
780
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, decorators: [{
|
|
781
|
-
type: Component,
|
|
782
|
-
args: [{ selector: 'valtimo-set-status-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-select-zaak-type\n [pluginId]=\"pluginId\"\n [disabled]=\"disabled\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"statusesSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'zaakStatus' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || disabled\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectStatus($event)\"\n></v-select>\n", styles: [""] }]
|
|
783
|
-
}], propDecorators: { clear$: [{
|
|
784
|
-
type: Input
|
|
785
|
-
}], save$: [{
|
|
786
|
-
type: Input
|
|
787
|
-
}], disabled: [{
|
|
788
|
-
type: Input
|
|
789
|
-
}], error: [{
|
|
741
|
+
}], disabled$: [{
|
|
790
742
|
type: Input
|
|
791
743
|
}], pluginId: [{
|
|
792
744
|
type: Input
|
|
745
|
+
}], prefillConfiguration$: [{
|
|
746
|
+
type: Input
|
|
793
747
|
}], valid: [{
|
|
794
748
|
type: Output
|
|
795
749
|
}], configuration: [{
|
|
@@ -811,66 +765,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
811
765
|
* See the License for the specific language governing permissions and
|
|
812
766
|
* limitations under the License.
|
|
813
767
|
*/
|
|
814
|
-
class
|
|
768
|
+
class ObjectTokenAuthenticationPluginModule {
|
|
815
769
|
}
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
SetResultaatConfigurationComponent,
|
|
821
|
-
SetStatusConfigurationComponent,
|
|
822
|
-
SelectZaakTypeComponent], imports: [CommonModule,
|
|
823
|
-
TitleModule,
|
|
824
|
-
FormModule,
|
|
825
|
-
InputModule,
|
|
826
|
-
PluginTranslatePipeModule,
|
|
827
|
-
SelectModule,
|
|
828
|
-
InputLabelModule,
|
|
829
|
-
ParagraphModule], exports: [OpenZaakConfigurationComponent,
|
|
830
|
-
CreateZaakConfigurationComponent,
|
|
831
|
-
SetBesluitConfigurationComponent,
|
|
832
|
-
SetResultaatConfigurationComponent,
|
|
833
|
-
SetStatusConfigurationComponent,
|
|
834
|
-
SelectZaakTypeComponent] });
|
|
835
|
-
OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, imports: [[
|
|
836
|
-
CommonModule,
|
|
837
|
-
TitleModule,
|
|
838
|
-
FormModule,
|
|
839
|
-
InputModule,
|
|
840
|
-
PluginTranslatePipeModule,
|
|
841
|
-
SelectModule,
|
|
842
|
-
InputLabelModule,
|
|
843
|
-
ParagraphModule,
|
|
844
|
-
]] });
|
|
845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
|
|
770
|
+
ObjectTokenAuthenticationPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthenticationPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
771
|
+
ObjectTokenAuthenticationPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthenticationPluginModule, declarations: [ObjectTokenAuthencationConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule], exports: [ObjectTokenAuthencationConfigurationComponent] });
|
|
772
|
+
ObjectTokenAuthenticationPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthenticationPluginModule, imports: [[CommonModule, PluginTranslatePipeModule, FormModule, InputModule]] });
|
|
773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectTokenAuthenticationPluginModule, decorators: [{
|
|
846
774
|
type: NgModule,
|
|
847
775
|
args: [{
|
|
848
|
-
declarations: [
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
SetBesluitConfigurationComponent,
|
|
852
|
-
SetResultaatConfigurationComponent,
|
|
853
|
-
SetStatusConfigurationComponent,
|
|
854
|
-
SelectZaakTypeComponent,
|
|
855
|
-
],
|
|
856
|
-
imports: [
|
|
857
|
-
CommonModule,
|
|
858
|
-
TitleModule,
|
|
859
|
-
FormModule,
|
|
860
|
-
InputModule,
|
|
861
|
-
PluginTranslatePipeModule,
|
|
862
|
-
SelectModule,
|
|
863
|
-
InputLabelModule,
|
|
864
|
-
ParagraphModule,
|
|
865
|
-
],
|
|
866
|
-
exports: [
|
|
867
|
-
OpenZaakConfigurationComponent,
|
|
868
|
-
CreateZaakConfigurationComponent,
|
|
869
|
-
SetBesluitConfigurationComponent,
|
|
870
|
-
SetResultaatConfigurationComponent,
|
|
871
|
-
SetStatusConfigurationComponent,
|
|
872
|
-
SelectZaakTypeComponent,
|
|
873
|
-
],
|
|
776
|
+
declarations: [ObjectTokenAuthencationConfigurationComponent],
|
|
777
|
+
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule],
|
|
778
|
+
exports: [ObjectTokenAuthencationConfigurationComponent],
|
|
874
779
|
}]
|
|
875
780
|
}] });
|
|
876
781
|
|
|
@@ -883,21 +788,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
883
788
|
*
|
|
884
789
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
885
790
|
*
|
|
886
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
892
|
-
*
|
|
893
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
894
|
-
* you may not use this file except in compliance with the License.
|
|
895
|
-
* You may obtain a copy of the License at
|
|
896
|
-
*
|
|
897
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
898
|
-
*
|
|
899
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions and limitations under the License.
|
|
791
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
792
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
793
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
794
|
+
* See the License for the specific language governing permissions and
|
|
795
|
+
* limitations under the License.
|
|
900
796
|
*/
|
|
797
|
+
const OBJECT_TOKEN_AUTHENTICATION_PLUGIN_LOGO_BASE64 =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JE0R9bN8mxwaFIm8UbeWPCJ7zwZ0toV0MC0T14wDBuR4t+mCapXIPit6a9rvAJoF3a/3W3sZXBp8+xXs8k3GyaLNoJ7+NwqtNO0pip099K06rz+631jfHRG+tr39+KdoKt9ub64lOrq+IEHe3AjvHRAp8FF8S7SaTwlSotJvF4rtElF5eKd6dMl+w9q027P9/R31yV4QrfUz831uuFd1/PzOFV3hOBx02U0ShC2r/zhE7me7b2RLbxXCQ6Hp7SljcwyLge3pbLvq/tzlrRmlpAg8AAAAldEVYdGRhdGU6Y3JlYXRlADIwMjItMDgtMTdUMTA6MDE6NDQrMDA6MDBT+iFgAAAAJXRFWHRkYXRlOm1vZGlmeQAyMDIyLTA4LTE3VDEwOjAxOjQ0KzAwOjAwIqeZ3AAAAABJRU5ErkJggg==';
|
|
901
798
|
|
|
902
799
|
/*
|
|
903
800
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -908,84 +805,37 @@ const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhE
|
|
|
908
805
|
*
|
|
909
806
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
910
807
|
*
|
|
911
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
808
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
809
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
810
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
811
|
+
* See the License for the specific language governing permissions and
|
|
812
|
+
* limitations under the License.
|
|
912
813
|
*/
|
|
913
|
-
const
|
|
914
|
-
pluginId: '
|
|
915
|
-
pluginConfigurationComponent:
|
|
916
|
-
pluginLogoBase64:
|
|
917
|
-
functionConfigurationComponents: {
|
|
918
|
-
'create-zaak': CreateZaakConfigurationComponent,
|
|
919
|
-
'set-status': SetStatusConfigurationComponent,
|
|
920
|
-
'set-resultaat': SetResultaatConfigurationComponent,
|
|
921
|
-
'set-besluit': SetBesluitConfigurationComponent,
|
|
922
|
-
},
|
|
814
|
+
const objectTokenAuthenticationPluginSpecification = {
|
|
815
|
+
pluginId: 'objecttokenauthentication',
|
|
816
|
+
pluginConfigurationComponent: ObjectTokenAuthencationConfigurationComponent,
|
|
817
|
+
pluginLogoBase64: OBJECT_TOKEN_AUTHENTICATION_PLUGIN_LOGO_BASE64,
|
|
923
818
|
pluginTranslations: {
|
|
924
819
|
nl: {
|
|
925
|
-
title: '
|
|
926
|
-
description: '
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
'set-besluit': 'Besluit instellen',
|
|
931
|
-
name: 'Configuratienaam',
|
|
932
|
-
url: 'OpenZaak URL',
|
|
933
|
-
clientId: 'Client ID',
|
|
934
|
-
secret: 'Secret',
|
|
935
|
-
rsin: 'Rsin',
|
|
936
|
-
catalogusUrl: 'Catalogus URL',
|
|
937
|
-
zaakType: 'Zaaktype',
|
|
938
|
-
zaakStatus: 'Zaakstatus',
|
|
939
|
-
zaakResultaat: 'Resultaat',
|
|
940
|
-
besluit: 'Besluit',
|
|
941
|
-
documentDefinition: 'Documentdefinitie',
|
|
942
|
-
noZaakTypeSelected: 'Geen zaaktype geselecteerd',
|
|
943
|
-
noZaakTypeLinksFound: "Geen gelinkte zaaktype's gevonden",
|
|
944
|
-
noProcessDefinition: 'Er is geen procesdefinitie geselecteerd',
|
|
820
|
+
title: 'Object token authenticatie',
|
|
821
|
+
description: 'Auhenticatie met behulp van tokens voor gebruik door de Objecten API en Objecttypen API.',
|
|
822
|
+
configurationTitle: 'Configuratienaam',
|
|
823
|
+
token: 'Token',
|
|
824
|
+
tokenTooltip: 'Het token is een sleutel waarmee toestemmingen verleend zijn om specifieke objecttypen en objecten te mogen ophalen',
|
|
945
825
|
},
|
|
946
826
|
en: {
|
|
947
|
-
title: '
|
|
948
|
-
description: '
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
'set-besluit': 'Set besluit',
|
|
953
|
-
name: 'Configuration name',
|
|
954
|
-
url: 'OpenZaak URL',
|
|
955
|
-
clientId: 'Client ID',
|
|
956
|
-
secret: 'Secret',
|
|
957
|
-
rsin: 'Rsin',
|
|
958
|
-
catalogusUrl: 'Catalog URL',
|
|
959
|
-
zaakType: 'Zaaktype',
|
|
960
|
-
zaakStatus: 'Zaakstatus',
|
|
961
|
-
zaakResultaat: 'Result',
|
|
962
|
-
besluit: 'Besluit',
|
|
963
|
-
documentDefinition: 'Document definition',
|
|
964
|
-
noZaakTypeSelected: 'No zaaktype selected',
|
|
965
|
-
noZaakTypeLinksFound: 'No linked zaaktypes found',
|
|
966
|
-
noProcessDefinition: 'No process definition is selected',
|
|
827
|
+
title: 'Object token authentication',
|
|
828
|
+
description: 'Authentication using tokens for use by the Objects API and Object Types API.',
|
|
829
|
+
configurationTitle: 'Configuration name',
|
|
830
|
+
token: 'Token',
|
|
831
|
+
tokenTooltip: 'The token is a key that grants permissions to access specific object types and objects',
|
|
967
832
|
},
|
|
968
833
|
de: {
|
|
969
|
-
title: '
|
|
970
|
-
description: '
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
'set-besluit': 'Besluit setzen',
|
|
975
|
-
name: 'Konfigurationsname',
|
|
976
|
-
url: 'OpenZaak URL',
|
|
977
|
-
clientId: 'Client ID',
|
|
978
|
-
secret: 'Secret',
|
|
979
|
-
rsin: 'Rsin',
|
|
980
|
-
catalogusUrl: 'Katalog URL',
|
|
981
|
-
zaakType: 'Zaaktype',
|
|
982
|
-
zaakStatus: 'Zaakstatus',
|
|
983
|
-
zaakResultaat: 'Resultat',
|
|
984
|
-
besluit: 'Besluit',
|
|
985
|
-
documentDefinition: 'Dokumentendefinition',
|
|
986
|
-
noZaakTypeSelected: 'Kein Zaaktype ausgewählt',
|
|
987
|
-
noZaakTypeLinksFound: 'Keine verknüpften Zaaktypen gefunden',
|
|
988
|
-
noProcessDefinition: 'Es ist keine Prozessdefinition ausgewählt',
|
|
834
|
+
title: 'Object Token-Authentifizierung',
|
|
835
|
+
description: 'Authentifizierung mit Token zur Verwendung durch die Objects-API und die Object Types-API.',
|
|
836
|
+
configurationTitle: 'Konfigurationsname',
|
|
837
|
+
token: 'Token',
|
|
838
|
+
tokenTooltip: 'Das Token ist ein Schlüssel, der Berechtigungen zum Anzeigen bestimmter Objekttypen und Objekte erteilt',
|
|
989
839
|
},
|
|
990
840
|
},
|
|
991
841
|
};
|
|
@@ -999,37 +849,62 @@ const openZaakPluginSpecification = {
|
|
|
999
849
|
*
|
|
1000
850
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1001
851
|
*
|
|
1002
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
852
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
853
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
854
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
855
|
+
* See the License for the specific language governing permissions and
|
|
856
|
+
* limitations under the License.
|
|
1003
857
|
*/
|
|
1004
858
|
class SmartDocumentsConfigurationComponent {
|
|
1005
859
|
constructor() {
|
|
1006
860
|
this.valid = new EventEmitter();
|
|
1007
861
|
this.configuration = new EventEmitter();
|
|
862
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
863
|
+
this.valid$ = new BehaviorSubject(false);
|
|
864
|
+
}
|
|
865
|
+
ngOnInit() {
|
|
866
|
+
this.openSaveSubscription();
|
|
867
|
+
}
|
|
868
|
+
ngOnDestroy() {
|
|
869
|
+
this.saveSubscription?.unsubscribe();
|
|
1008
870
|
}
|
|
1009
871
|
formValueChange(formValue) {
|
|
1010
|
-
this.
|
|
872
|
+
this.formValue$.next(formValue);
|
|
1011
873
|
this.handleValid(formValue);
|
|
1012
874
|
}
|
|
1013
875
|
handleValid(formValue) {
|
|
1014
|
-
const valid = formValue.
|
|
1015
|
-
|
|
876
|
+
const valid = !!(formValue.configurationTitle &&
|
|
877
|
+
formValue.url &&
|
|
878
|
+
formValue.password &&
|
|
879
|
+
formValue.username);
|
|
880
|
+
this.valid$.next(valid);
|
|
881
|
+
this.valid.emit(valid);
|
|
882
|
+
}
|
|
883
|
+
openSaveSubscription() {
|
|
884
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
885
|
+
combineLatest([this.formValue$, this.valid$])
|
|
886
|
+
.pipe(take(1))
|
|
887
|
+
.subscribe(([formValue, valid]) => {
|
|
888
|
+
if (valid) {
|
|
889
|
+
this.configuration.emit(formValue);
|
|
890
|
+
}
|
|
891
|
+
});
|
|
892
|
+
});
|
|
1016
893
|
}
|
|
1017
894
|
}
|
|
1018
|
-
SmartDocumentsConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
1019
|
-
SmartDocumentsConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
1020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
895
|
+
SmartDocumentsConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
896
|
+
SmartDocumentsConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SmartDocumentsConfigurationComponent, selector: "valtimo-smart-documents-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [widthPx]=\"350\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"username\"\n [title]=\"'username' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.username\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"password\"\n type=\"password\"\n [title]=\"'password' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.password\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
897
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, decorators: [{
|
|
1021
898
|
type: Component,
|
|
1022
|
-
args: [{ selector: 'valtimo-smart-documents-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form
|
|
1023
|
-
}], propDecorators: {
|
|
1024
|
-
type: Input
|
|
1025
|
-
}], save$: [{
|
|
1026
|
-
type: Input
|
|
1027
|
-
}], disabled: [{
|
|
899
|
+
args: [{ selector: 'valtimo-smart-documents-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [widthPx]=\"350\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"username\"\n [title]=\"'username' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.username\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"password\"\n type=\"password\"\n [title]=\"'password' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.password\"\n [required]=\"true\"\n [widthPx]=\"350\"\n >\n </v-input>\n</v-form>\n", styles: [""] }]
|
|
900
|
+
}], propDecorators: { save$: [{
|
|
1028
901
|
type: Input
|
|
1029
|
-
}],
|
|
902
|
+
}], disabled$: [{
|
|
1030
903
|
type: Input
|
|
1031
904
|
}], pluginId: [{
|
|
1032
905
|
type: Input
|
|
906
|
+
}], prefillConfiguration$: [{
|
|
907
|
+
type: Input
|
|
1033
908
|
}], valid: [{
|
|
1034
909
|
type: Output
|
|
1035
910
|
}], configuration: [{
|
|
@@ -1045,7 +920,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1045
920
|
*
|
|
1046
921
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1047
922
|
*
|
|
1048
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
923
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
924
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
925
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
926
|
+
* See the License for the specific language governing permissions and
|
|
927
|
+
* limitations under the License.
|
|
1049
928
|
*/
|
|
1050
929
|
class GenerateDocumentConfigurationComponent {
|
|
1051
930
|
constructor() {
|
|
@@ -1056,34 +935,53 @@ class GenerateDocumentConfigurationComponent {
|
|
|
1056
935
|
id: format,
|
|
1057
936
|
text: format,
|
|
1058
937
|
}));
|
|
938
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
939
|
+
this.valid$ = new BehaviorSubject(false);
|
|
940
|
+
}
|
|
941
|
+
ngOnInit() {
|
|
942
|
+
this.openSaveSubscription();
|
|
943
|
+
}
|
|
944
|
+
ngOnDestroy() {
|
|
945
|
+
this.saveSubscription?.unsubscribe();
|
|
1059
946
|
}
|
|
1060
947
|
formValueChange(formValue) {
|
|
1061
|
-
this.
|
|
948
|
+
this.formValue$.next(formValue);
|
|
1062
949
|
this.handleValid(formValue);
|
|
1063
950
|
}
|
|
1064
951
|
handleValid(formValue) {
|
|
1065
|
-
const valid = formValue.templateGroup &&
|
|
952
|
+
const valid = !!(formValue.templateGroup &&
|
|
1066
953
|
formValue.templateName &&
|
|
1067
954
|
formValue.format &&
|
|
1068
|
-
formValue.
|
|
1069
|
-
|
|
955
|
+
formValue.resultingDocumentProcessVariableName &&
|
|
956
|
+
formValue.templateData?.length > 0);
|
|
957
|
+
this.valid$.next(valid);
|
|
958
|
+
this.valid.emit(valid);
|
|
959
|
+
}
|
|
960
|
+
openSaveSubscription() {
|
|
961
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
962
|
+
combineLatest([this.formValue$, this.valid$])
|
|
963
|
+
.pipe(take(1))
|
|
964
|
+
.subscribe(([formValue, valid]) => {
|
|
965
|
+
if (valid) {
|
|
966
|
+
this.configuration.emit(formValue);
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
});
|
|
1070
970
|
}
|
|
1071
971
|
}
|
|
1072
|
-
GenerateDocumentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
1073
|
-
GenerateDocumentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.
|
|
1074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
972
|
+
GenerateDocumentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GenerateDocumentConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
973
|
+
GenerateDocumentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: GenerateDocumentConfigurationComponent, selector: "valtimo-generate-document-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-paragraph [margin]=\"true\" [italic]=\"true\">\n {{ 'generateDocumentWarning' | pluginTranslate: pluginId | async }}\n</v-paragraph>\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"templateGroup\"\n [title]=\"'templateGroup' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.templateGroup\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"templateName\"\n [title]=\"'templateName' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.templateName\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"resultingDocumentProcessVariableName\"\n [title]=\"'resultingDocumentProcessVariableName' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.resultingDocumentProcessVariableName\"\n [disabled]=\"obs.disabled\"\n [tooltip]=\"'resultingDocumentProcessVariableNameTooltip' | pluginTranslate: pluginId | async\"\n [required]=\"true\"\n >\n </v-input>\n <v-select\n [items]=\"FORMAT_SELECT_ITEMS\"\n [margin]=\"true\"\n [widthInPx]=\"150\"\n name=\"format\"\n [title]=\"'format' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.format\"\n [required]=\"true\"\n ></v-select>\n <v-multi-input\n name=\"templateData\"\n [title]=\"'templateData' | pluginTranslate: pluginId | async\"\n type=\"keyValue\"\n [disabled]=\"obs.disabled\"\n [defaultValues]=\"obs.prefill?.templateData\"\n [margin]=\"true\"\n [required]=\"true\"\n [tooltip]=\"'templateDataTooltip' | pluginTranslate: pluginId | async\"\n ></v-multi-input>\n</v-form>\n", styles: [""], components: [{ type: i3$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }, { type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }, { type: i3$1.MultiInputComponent, selector: "v-multi-input", inputs: ["name", "title", "titleTranslationKey", "type", "initialAmountOfRows", "minimumAmountOfRows", "maxRows", "addRowText", "addRowTranslationKey", "deleteRowText", "deleteRowTranslationKey", "disabled", "defaultValues", "margin", "tooltip", "required"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GenerateDocumentConfigurationComponent, decorators: [{
|
|
1075
975
|
type: Component,
|
|
1076
|
-
args: [{ selector: 'valtimo-generate-document-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form
|
|
1077
|
-
}], propDecorators: {
|
|
1078
|
-
type: Input
|
|
1079
|
-
}], save$: [{
|
|
976
|
+
args: [{ selector: 'valtimo-generate-document-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-paragraph [margin]=\"true\" [italic]=\"true\">\n {{ 'generateDocumentWarning' | pluginTranslate: pluginId | async }}\n</v-paragraph>\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"templateGroup\"\n [title]=\"'templateGroup' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.templateGroup\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"templateName\"\n [title]=\"'templateName' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.templateName\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"resultingDocumentProcessVariableName\"\n [title]=\"'resultingDocumentProcessVariableName' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.resultingDocumentProcessVariableName\"\n [disabled]=\"obs.disabled\"\n [tooltip]=\"'resultingDocumentProcessVariableNameTooltip' | pluginTranslate: pluginId | async\"\n [required]=\"true\"\n >\n </v-input>\n <v-select\n [items]=\"FORMAT_SELECT_ITEMS\"\n [margin]=\"true\"\n [widthInPx]=\"150\"\n name=\"format\"\n [title]=\"'format' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.format\"\n [required]=\"true\"\n ></v-select>\n <v-multi-input\n name=\"templateData\"\n [title]=\"'templateData' | pluginTranslate: pluginId | async\"\n type=\"keyValue\"\n [disabled]=\"obs.disabled\"\n [defaultValues]=\"obs.prefill?.templateData\"\n [margin]=\"true\"\n [required]=\"true\"\n [tooltip]=\"'templateDataTooltip' | pluginTranslate: pluginId | async\"\n ></v-multi-input>\n</v-form>\n", styles: [""] }]
|
|
977
|
+
}], propDecorators: { save$: [{
|
|
1080
978
|
type: Input
|
|
1081
|
-
}], disabled
|
|
1082
|
-
type: Input
|
|
1083
|
-
}], error: [{
|
|
979
|
+
}], disabled$: [{
|
|
1084
980
|
type: Input
|
|
1085
981
|
}], pluginId: [{
|
|
1086
982
|
type: Input
|
|
983
|
+
}], prefillConfiguration$: [{
|
|
984
|
+
type: Input
|
|
1087
985
|
}], valid: [{
|
|
1088
986
|
type: Output
|
|
1089
987
|
}], configuration: [{
|
|
@@ -1107,22 +1005,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1107
1005
|
*/
|
|
1108
1006
|
class SmartDocumentsPluginModule {
|
|
1109
1007
|
}
|
|
1110
|
-
SmartDocumentsPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.
|
|
1111
|
-
SmartDocumentsPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.
|
|
1008
|
+
SmartDocumentsPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1009
|
+
SmartDocumentsPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, declarations: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent], imports: [CommonModule,
|
|
1112
1010
|
PluginTranslatePipeModule,
|
|
1113
1011
|
FormModule,
|
|
1114
1012
|
InputModule,
|
|
1115
1013
|
SelectModule,
|
|
1116
|
-
MultiInputModule
|
|
1117
|
-
|
|
1014
|
+
MultiInputModule,
|
|
1015
|
+
ParagraphModule], exports: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent] });
|
|
1016
|
+
SmartDocumentsPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, imports: [[
|
|
1118
1017
|
CommonModule,
|
|
1119
1018
|
PluginTranslatePipeModule,
|
|
1120
1019
|
FormModule,
|
|
1121
1020
|
InputModule,
|
|
1122
1021
|
SelectModule,
|
|
1123
1022
|
MultiInputModule,
|
|
1023
|
+
ParagraphModule,
|
|
1124
1024
|
]] });
|
|
1125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.
|
|
1025
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, decorators: [{
|
|
1126
1026
|
type: NgModule,
|
|
1127
1027
|
args: [{
|
|
1128
1028
|
declarations: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent],
|
|
@@ -1133,6 +1033,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1133
1033
|
InputModule,
|
|
1134
1034
|
SelectModule,
|
|
1135
1035
|
MultiInputModule,
|
|
1036
|
+
ParagraphModule,
|
|
1136
1037
|
],
|
|
1137
1038
|
exports: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent],
|
|
1138
1039
|
}]
|
|
@@ -1147,7 +1048,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
|
|
|
1147
1048
|
*
|
|
1148
1049
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1149
1050
|
*
|
|
1150
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1051
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1052
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1053
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1054
|
+
* See the License for the specific language governing permissions and
|
|
1055
|
+
* limitations under the License.
|
|
1151
1056
|
*/
|
|
1152
1057
|
const SMART_DOCUMENTS_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAA8CAYAAACEhkNqAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5gYXBhEC9x32NwAAIoJJREFUeNrtnXec3VWZ/9/P+d47LT0hpCcTeqRoRCCIBRB3lbVjAwwtyqKy+FMWIR0ICeCqSNldWcykIMoiiIWyIEJwaRZ6Segzk4SYkDqZdsv3fH5/nO/NnblzpwVCVl/58Jowc++555zvOc95+nOusSuxuL7w22TgQuBkYDAg4CngauC/gXZm1O7SqezBOwv3DoxxELAcOJtAVAAGTAX+nUBw6Q5EuAd/B7Bd1nMglArgJ8D0Hlo2AacCdwDs4Vx/H9jVHOsQ4GO9tBkMfAVI7e7F2IO3D7uasA4G9upDuynAkN29GHvw9mFXE1aKvolb18d2e/A3gl1NWK8DzX1s17S7F2MP3j70rNcULbUhBCtuFJADVgIvAXEvyvbjwP8CH++hTQa4Fcju7sXYg7cP3XOsIlG9C/gZcCfwc+AW4HfATKCmFzfBdmAB0NDN+yK4Im4F9liEf0foXq8JBDOeQEwfKNMiC8wCfgCUJ4oi0X1nR7uAHNAILAX+A9i8h6j+72PmuDmBYsQgczYKiIE3gMyi1Qs6tS3PsYoE8TnKExUEH9U5wKRuZ1IklieA1uT3N4CvA8cBi9hDVH8zMDPM7GDgFnn9QV5/kHQNMHzWhLmd2vakvDtgWi9jjQf268OcMoAnKPL/CiwGVjOj1u8hqr8NzJk0n3cffxiSziH4JscA4xEzJH1aXsydfPGO9r0RVnUv4zkg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ZZXz9ycAVvnlKS5Rva1gLjDFpTkT1nkPMiBLON0YjTMA5BNAMPSNzqnMnnYiztRiffsHEEIUv4NeDOlLO/eIh3jcJXJK6DCPe3f46u6SUdsYkQAvoBZb5lojuM+NkazLBYWCo4HPXmybvjToxdhwN/+QaRMza3exPQkpWaT9v1zzj2F8FzJMkKl8+98YXOyZPDb1oDgfmYM7wEm04Nc3snyr+qCOLq84SshQkEP1cT4YaXPxAU/ocpfDPYnvTkv3n8fzyzk0lh/r9IAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTIzVDA2OjE3OjAyLTA0OjAwD/f+UwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0yM1QwNjoxNzowMi0wNDowMH6qRu8AAAAASUVORK5CYII=';
|
|
1153
1058
|
|
|
@@ -1160,7 +1065,11 @@ const SMART_DOCUMENTS_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAA
|
|
|
1160
1065
|
*
|
|
1161
1066
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1162
1067
|
*
|
|
1163
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1068
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1069
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1070
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1071
|
+
* See the License for the specific language governing permissions and
|
|
1072
|
+
* limitations under the License.
|
|
1164
1073
|
*/
|
|
1165
1074
|
|
|
1166
1075
|
/*
|
|
@@ -1172,7 +1081,11 @@ const SMART_DOCUMENTS_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAA
|
|
|
1172
1081
|
*
|
|
1173
1082
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1174
1083
|
*
|
|
1175
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1084
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1085
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1086
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1087
|
+
* See the License for the specific language governing permissions and
|
|
1088
|
+
* limitations under the License.
|
|
1176
1089
|
*/
|
|
1177
1090
|
const smartDocumentsPluginSpecification = {
|
|
1178
1091
|
pluginId: 'smartdocuments',
|
|
@@ -1185,20 +1098,26 @@ const smartDocumentsPluginSpecification = {
|
|
|
1185
1098
|
nl: {
|
|
1186
1099
|
title: 'SmartDocuments',
|
|
1187
1100
|
description: 'Automatiseer documenten met slimme templates.',
|
|
1188
|
-
|
|
1101
|
+
configurationTitle: 'Configuratienaam',
|
|
1102
|
+
configurationTitleTooltip: 'Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
1189
1103
|
url: 'SmartDocuments URL',
|
|
1190
1104
|
username: 'Gebruikersnaam',
|
|
1191
1105
|
password: 'Wachtwoord',
|
|
1192
1106
|
'generate-document': 'Document genereren',
|
|
1193
1107
|
templateGroup: 'Template-groep',
|
|
1194
1108
|
templateName: 'Template-naam',
|
|
1109
|
+
templateDataTooltip: 'De rechter value-kolom ondersteunt ook het gebruik van procesvariabelen zoals pv: en doc:',
|
|
1195
1110
|
format: 'Documentformaat',
|
|
1196
1111
|
templateData: 'Template-data',
|
|
1112
|
+
resultingDocumentProcessVariableName: 'Naam procesvariabele voor opslag document',
|
|
1113
|
+
resultingDocumentProcessVariableNameTooltip: 'De locatie van het gegenereerde document wordt opgeslagen in een procesvariabele. Deze procesvariabele kan gebruikt worden om het document te verwerken in een andere BPMN-taak.',
|
|
1114
|
+
generateDocumentWarning: 'Deze actie genereert een tijdelijk bestand. Het verwerken hiervan moet door een andere actie worden gedaan.',
|
|
1197
1115
|
},
|
|
1198
1116
|
en: {
|
|
1199
1117
|
title: 'SmartDocuments',
|
|
1200
1118
|
description: 'Automate documents with smart templates.',
|
|
1201
|
-
|
|
1119
|
+
configurationTitle: 'Configuration name',
|
|
1120
|
+
configurationTitleTooltip: 'With this name the plugin will be recognizable in the rest of the application',
|
|
1202
1121
|
url: 'SmartDocuments URL',
|
|
1203
1122
|
username: 'Username',
|
|
1204
1123
|
password: 'Password',
|
|
@@ -1207,11 +1126,16 @@ const smartDocumentsPluginSpecification = {
|
|
|
1207
1126
|
templateName: 'Template name',
|
|
1208
1127
|
format: 'Document format',
|
|
1209
1128
|
templateData: 'Template data',
|
|
1129
|
+
templateDataTooltip: 'The right value-column also supports the use of process variables such as pv: and doc:',
|
|
1130
|
+
resultingDocumentProcessVariableName: 'Process variable name for storing document',
|
|
1131
|
+
resultingDocumentProcessVariableNameTooltip: 'The location of the generated document is stored in a process variable. This process variable can be used to access the document in another BPMN task.',
|
|
1132
|
+
generateDocumentWarning: 'This action generates a temporary file. It needs to be stored in a following task.',
|
|
1210
1133
|
},
|
|
1211
1134
|
de: {
|
|
1212
1135
|
title: 'SmartDocuments',
|
|
1213
1136
|
description: 'Automatisieren Sie Dokumente mit intelligenten Templates.',
|
|
1214
|
-
|
|
1137
|
+
configurationTitle: 'Konfigurationsname',
|
|
1138
|
+
configurationTitleTooltip: 'An diesem Namen wird das Plugin im Rest der Anwendung erkennbar sein',
|
|
1215
1139
|
url: 'SmartDocuments URL',
|
|
1216
1140
|
username: 'Nutzername',
|
|
1217
1141
|
password: 'Passwort',
|
|
@@ -1220,6 +1144,10 @@ const smartDocumentsPluginSpecification = {
|
|
|
1220
1144
|
templateName: 'Templatename',
|
|
1221
1145
|
format: 'Dokumentformat',
|
|
1222
1146
|
templateData: 'Templatedaten',
|
|
1147
|
+
templateDataTooltip: 'Die rechte Wertespalte unterstützt auch die Verwendung von Prozessvariablen wie pv: und doc:',
|
|
1148
|
+
resultingDocumentProcessVariableName: 'Prozessvariablenname zum Speichern des Dokuments',
|
|
1149
|
+
resultingDocumentProcessVariableNameTooltip: 'Der Ort des generierten Dokuments wird in einer Prozessvariablen gespeichert. Diese Prozessvariable wird verwendet, um in einer anderen BPMN-Aufgabe auf das Dokument zuzugreifen.',
|
|
1150
|
+
generateDocumentWarning: 'Diese Aktion erzeugt eine temporäre Datei. Die Verarbeitung muss durch eine andere Aktion erfolgen.',
|
|
1223
1151
|
},
|
|
1224
1152
|
},
|
|
1225
1153
|
};
|
|
@@ -1233,12 +1161,1095 @@ const smartDocumentsPluginSpecification = {
|
|
|
1233
1161
|
*
|
|
1234
1162
|
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1235
1163
|
*
|
|
1236
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1164
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1165
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1166
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1167
|
+
* See the License for the specific language governing permissions and
|
|
1168
|
+
* limitations under the License.
|
|
1169
|
+
*/
|
|
1170
|
+
class DocumentenApiConfigurationComponent {
|
|
1171
|
+
constructor(pluginManagementService, translateService, pluginTranslationService) {
|
|
1172
|
+
this.pluginManagementService = pluginManagementService;
|
|
1173
|
+
this.translateService = translateService;
|
|
1174
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
1175
|
+
this.valid = new EventEmitter();
|
|
1176
|
+
this.configuration = new EventEmitter();
|
|
1177
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
1178
|
+
this.valid$ = new BehaviorSubject(false);
|
|
1179
|
+
this.authenticationPluginSelectItems$ = combineLatest([
|
|
1180
|
+
this.pluginManagementService.getPluginConfigurationsByCategory('documenten-api-authentication'),
|
|
1181
|
+
this.translateService.stream('key'),
|
|
1182
|
+
]).pipe(map$1(([configurations]) => configurations.map(configuration => ({
|
|
1183
|
+
id: configuration.id,
|
|
1184
|
+
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
1185
|
+
}))));
|
|
1186
|
+
}
|
|
1187
|
+
ngOnInit() {
|
|
1188
|
+
this.openSaveSubscription();
|
|
1189
|
+
}
|
|
1190
|
+
ngOnDestroy() {
|
|
1191
|
+
this.saveSubscription?.unsubscribe();
|
|
1192
|
+
}
|
|
1193
|
+
formValueChange(formValue) {
|
|
1194
|
+
this.formValue$.next(formValue);
|
|
1195
|
+
this.handleValid(formValue);
|
|
1196
|
+
}
|
|
1197
|
+
handleValid(formValue) {
|
|
1198
|
+
const valid = !!(formValue.configurationTitle &&
|
|
1199
|
+
formValue.url &&
|
|
1200
|
+
formValue.bronorganisatie &&
|
|
1201
|
+
formValue.authenticationPluginConfiguration);
|
|
1202
|
+
this.valid$.next(valid);
|
|
1203
|
+
this.valid.emit(valid);
|
|
1204
|
+
}
|
|
1205
|
+
openSaveSubscription() {
|
|
1206
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
1207
|
+
combineLatest([this.formValue$, this.valid$])
|
|
1208
|
+
.pipe(take(1))
|
|
1209
|
+
.subscribe(([formValue, valid]) => {
|
|
1210
|
+
if (valid) {
|
|
1211
|
+
this.configuration.emit(formValue);
|
|
1212
|
+
}
|
|
1213
|
+
});
|
|
1214
|
+
});
|
|
1215
|
+
}
|
|
1216
|
+
}
|
|
1217
|
+
DocumentenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1218
|
+
DocumentenApiConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: DocumentenApiConfigurationComponent, selector: "valtimo-documenten-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"bronorganisatie\"\n type=\"digitOnly\"\n [title]=\"'bronorganisatie' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.bronorganisatie\"\n [required]=\"true\"\n [widthPx]=\"150\"\n [tooltip]=\"'bronorganisatieTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: [""], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, decorators: [{
|
|
1220
|
+
type: Component,
|
|
1221
|
+
args: [{ selector: 'valtimo-documenten-api-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"bronorganisatie\"\n type=\"digitOnly\"\n [title]=\"'bronorganisatie' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.bronorganisatie\"\n [required]=\"true\"\n [widthPx]=\"150\"\n [tooltip]=\"'bronorganisatieTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: [""] }]
|
|
1222
|
+
}], ctorParameters: function () { return [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
1223
|
+
type: Input
|
|
1224
|
+
}], disabled$: [{
|
|
1225
|
+
type: Input
|
|
1226
|
+
}], pluginId: [{
|
|
1227
|
+
type: Input
|
|
1228
|
+
}], prefillConfiguration$: [{
|
|
1229
|
+
type: Input
|
|
1230
|
+
}], valid: [{
|
|
1231
|
+
type: Output
|
|
1232
|
+
}], configuration: [{
|
|
1233
|
+
type: Output
|
|
1234
|
+
}] } });
|
|
1235
|
+
|
|
1236
|
+
/*
|
|
1237
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1238
|
+
*
|
|
1239
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1240
|
+
* you may not use this file except in compliance with the License.
|
|
1241
|
+
* You may obtain a copy of the License at
|
|
1242
|
+
*
|
|
1243
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1244
|
+
*
|
|
1245
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1246
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1247
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1248
|
+
* See the License for the specific language governing permissions and
|
|
1249
|
+
* limitations under the License.
|
|
1250
|
+
*/
|
|
1251
|
+
class StoreTempDocumentConfigurationComponent {
|
|
1252
|
+
constructor(translateService, pluginTranslationService) {
|
|
1253
|
+
this.translateService = translateService;
|
|
1254
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
1255
|
+
this.valid = new EventEmitter();
|
|
1256
|
+
this.configuration = new EventEmitter();
|
|
1257
|
+
this.LANGUAGE_ITEMS = ['nld'];
|
|
1258
|
+
this.languageSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.LANGUAGE_ITEMS.map(item => ({
|
|
1259
|
+
id: item,
|
|
1260
|
+
text: this.pluginTranslationService.instant(item, this.pluginId),
|
|
1261
|
+
}))));
|
|
1262
|
+
this.STATUS_ITEMS = [
|
|
1263
|
+
'in_bewerking',
|
|
1264
|
+
'ter_vaststelling',
|
|
1265
|
+
'definitief',
|
|
1266
|
+
'gearchiveerd',
|
|
1267
|
+
];
|
|
1268
|
+
this.statusSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.STATUS_ITEMS.map(item => ({
|
|
1269
|
+
id: item,
|
|
1270
|
+
text: this.pluginTranslationService.instant(item, this.pluginId),
|
|
1271
|
+
}))));
|
|
1272
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
1273
|
+
this.valid$ = new BehaviorSubject(false);
|
|
1274
|
+
}
|
|
1275
|
+
ngOnInit() {
|
|
1276
|
+
this.openSaveSubscription();
|
|
1277
|
+
}
|
|
1278
|
+
ngOnDestroy() {
|
|
1279
|
+
this.saveSubscription?.unsubscribe();
|
|
1280
|
+
}
|
|
1281
|
+
formValueChange(formValue) {
|
|
1282
|
+
this.formValue$.next(formValue);
|
|
1283
|
+
this.handleValid(formValue);
|
|
1284
|
+
}
|
|
1285
|
+
handleValid(formValue) {
|
|
1286
|
+
const valid = !!(formValue.localDocumentLocation &&
|
|
1287
|
+
formValue.taal &&
|
|
1288
|
+
formValue.status &&
|
|
1289
|
+
formValue.informatieobjecttype);
|
|
1290
|
+
this.valid$.next(valid);
|
|
1291
|
+
this.valid.emit(valid);
|
|
1292
|
+
}
|
|
1293
|
+
openSaveSubscription() {
|
|
1294
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
1295
|
+
combineLatest([this.formValue$, this.valid$])
|
|
1296
|
+
.pipe(take(1))
|
|
1297
|
+
.subscribe(([formValue, valid]) => {
|
|
1298
|
+
if (valid) {
|
|
1299
|
+
this.configuration.emit(formValue);
|
|
1300
|
+
}
|
|
1301
|
+
});
|
|
1302
|
+
});
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
StoreTempDocumentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StoreTempDocumentConfigurationComponent, deps: [{ token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1306
|
+
StoreTempDocumentConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: StoreTempDocumentConfigurationComponent, selector: "valtimo-store-temp-document-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"localDocumentLocation\"\n [title]=\"'localDocumentLocation' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.localDocumentLocation\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'localDocumentLocationTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"storedDocumentUrl\"\n [title]=\"'storedDocumentUrl' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.storedDocumentUrl\"\n [disabled]=\"obs.disabled\"\n [tooltip]=\"'storeDocumentUrlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-select\n [items]=\"languageSelectItems$ | async\"\n [margin]=\"true\"\n [widthInPx]=\"200\"\n name=\"taal\"\n [title]=\"'taal' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.taal || LANGUAGE_ITEMS[0]\"\n [required]=\"true\"\n ></v-select>\n <v-select\n [items]=\"statusSelectItems$ | async\"\n [margin]=\"true\"\n [widthInPx]=\"200\"\n name=\"status\"\n [title]=\"'status' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.status || STATUS_ITEMS[2]\"\n [required]=\"true\"\n ></v-select>\n <v-input\n name=\"informatieobjecttype\"\n [title]=\"'informatieobjecttype' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.informatieobjecttype\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'informatieobjecttypeTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StoreTempDocumentConfigurationComponent, decorators: [{
|
|
1308
|
+
type: Component,
|
|
1309
|
+
args: [{ selector: 'valtimo-store-temp-document-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"localDocumentLocation\"\n [title]=\"'localDocumentLocation' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.localDocumentLocation\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'localDocumentLocationTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-input\n name=\"storedDocumentUrl\"\n [title]=\"'storedDocumentUrl' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.storedDocumentUrl\"\n [disabled]=\"obs.disabled\"\n [tooltip]=\"'storeDocumentUrlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <v-select\n [items]=\"languageSelectItems$ | async\"\n [margin]=\"true\"\n [widthInPx]=\"200\"\n name=\"taal\"\n [title]=\"'taal' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.taal || LANGUAGE_ITEMS[0]\"\n [required]=\"true\"\n ></v-select>\n <v-select\n [items]=\"statusSelectItems$ | async\"\n [margin]=\"true\"\n [widthInPx]=\"200\"\n name=\"status\"\n [title]=\"'status' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.status || STATUS_ITEMS[2]\"\n [required]=\"true\"\n ></v-select>\n <v-input\n name=\"informatieobjecttype\"\n [title]=\"'informatieobjecttype' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.informatieobjecttype\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'informatieobjecttypeTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""] }]
|
|
1310
|
+
}], ctorParameters: function () { return [{ type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
1311
|
+
type: Input
|
|
1312
|
+
}], disabled$: [{
|
|
1313
|
+
type: Input
|
|
1314
|
+
}], pluginId: [{
|
|
1315
|
+
type: Input
|
|
1316
|
+
}], prefillConfiguration$: [{
|
|
1317
|
+
type: Input
|
|
1318
|
+
}], valid: [{
|
|
1319
|
+
type: Output
|
|
1320
|
+
}], configuration: [{
|
|
1321
|
+
type: Output
|
|
1322
|
+
}] } });
|
|
1323
|
+
|
|
1324
|
+
/*
|
|
1325
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1326
|
+
*
|
|
1327
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1328
|
+
* you may not use this file except in compliance with the License.
|
|
1329
|
+
* You may obtain a copy of the License at
|
|
1330
|
+
*
|
|
1331
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1332
|
+
*
|
|
1333
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1334
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1335
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1336
|
+
* See the License for the specific language governing permissions and
|
|
1337
|
+
* limitations under the License.
|
|
1338
|
+
*/
|
|
1339
|
+
class DocumentenApiPluginModule {
|
|
1340
|
+
}
|
|
1341
|
+
DocumentenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1342
|
+
DocumentenApiPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, declarations: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent], imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule], exports: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent] });
|
|
1343
|
+
DocumentenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, imports: [[CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule]] });
|
|
1344
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, decorators: [{
|
|
1345
|
+
type: NgModule,
|
|
1346
|
+
args: [{
|
|
1347
|
+
declarations: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
|
|
1348
|
+
imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule],
|
|
1349
|
+
exports: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
|
|
1350
|
+
}]
|
|
1351
|
+
}] });
|
|
1352
|
+
|
|
1353
|
+
/*
|
|
1354
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1355
|
+
*
|
|
1356
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1357
|
+
* you may not use this file except in compliance with the License.
|
|
1358
|
+
* You may obtain a copy of the License at
|
|
1359
|
+
*
|
|
1360
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1361
|
+
*
|
|
1362
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1363
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1364
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1365
|
+
* See the License for the specific language governing permissions and
|
|
1366
|
+
* limitations under the License.
|
|
1367
|
+
*/
|
|
1368
|
+
const DOCUMENTEN_API_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA8CAYAAABVTYVfAAAACXBIWXMAABG3AAARtwGaY1MrAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAADuxJREFUeJztnX10VdWVwH/73pBAAmUoiEASgpWOWsdx1MGRQQYxKeo4OpZK6rQVk6BSrcupVUjiV9/qdAzRjp3iaEVNXkQdK0rtGluQj4RYrTpq/Si1Bb/4yEukoIgCAZLcu+ePlxCSd857930E1MlvrbcWufvcvXey3z33nH32OQgDSWhdFkUnHoPXMZEsmQiMRskD8hB1BtR2qqjuobww1OdauOUk4HxExgTTIZ2g7Sh7wN+G425ln7+ZqwpbM+9wL5JxjQ+0FeHoHIRi0OlAXsZtDCw7KC8Ye/CnB1vOw5dfARn48sk2oBHR1Xg5TzLvqN3p6zxEe0a0hDSLokgpKpcjzCAjv/gRo28wwy2/AZk+AHbageWo3EtF/vOZUJheMJe8MoTso8tAqoAvZcKhTwH9ghnZCPzlgFpU1uHyb1xWsC4dNak/QeG26eSMexXkPj4/gTSxdsAtCDPxaSIcWU59a2GqapIP5pK2XBpa7wf/GZS/StXwZ4fOm4DGw2RsNo7+kXDkO6ncnFw3u7TtBDx9HPTEJO7aDfoCyJ9QeQfRP4PuRZ2O5FzNNDoU4SmDoG83C6AqNEQmo05RINUiwxEvD3UmgH8cyEkIp6JkJeHgz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Zc55HlfxF5CO14hIpj0tuk1U3m/5OakDpMbDsDhxLULwGZgi3zHxj9I/7QMw6eV/7ZfGd+CPos6jQi/irKC9/OtIHMB7M/qkJdZBSuOxbXG0kXQ3HcHNQL0iv4qLudzvHrmS+93U9oXRZFk2cNnNNp4jgd+N4B/Kx9SOdOhg/bTmnA43fS4P8A/zvlqbh/D8sAAAAASUVORK5CYII=';
|
|
1369
|
+
|
|
1370
|
+
/*
|
|
1371
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1372
|
+
*
|
|
1373
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1374
|
+
* you may not use this file except in compliance with the License.
|
|
1375
|
+
* You may obtain a copy of the License at
|
|
1376
|
+
*
|
|
1377
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1378
|
+
*
|
|
1379
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1380
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1381
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1382
|
+
* See the License for the specific language governing permissions and
|
|
1383
|
+
* limitations under the License.
|
|
1384
|
+
*/
|
|
1385
|
+
|
|
1386
|
+
/*
|
|
1387
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1388
|
+
*
|
|
1389
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1390
|
+
* you may not use this file except in compliance with the License.
|
|
1391
|
+
* You may obtain a copy of the License at
|
|
1392
|
+
*
|
|
1393
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1394
|
+
*
|
|
1395
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1396
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1397
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1398
|
+
* See the License for the specific language governing permissions and
|
|
1399
|
+
* limitations under the License.
|
|
1400
|
+
*/
|
|
1401
|
+
const documentenApiPluginSpecification = {
|
|
1402
|
+
pluginId: 'documentenapi',
|
|
1403
|
+
pluginConfigurationComponent: DocumentenApiConfigurationComponent,
|
|
1404
|
+
pluginLogoBase64: DOCUMENTEN_API_PLUGIN_LOGO_BASE64,
|
|
1405
|
+
functionConfigurationComponents: {
|
|
1406
|
+
'store-temp-document': StoreTempDocumentConfigurationComponent,
|
|
1407
|
+
},
|
|
1408
|
+
pluginTranslations: {
|
|
1409
|
+
nl: {
|
|
1410
|
+
title: 'Documenten API',
|
|
1411
|
+
description: 'API voor opslag en ontsluiting van documenten en daarbij behorende metadata.',
|
|
1412
|
+
'store-temp-document': 'Document opslaan',
|
|
1413
|
+
configurationTitle: 'Configuratienaam',
|
|
1414
|
+
configurationTitleTooltip: 'Hier kunt u een eigen naam verzinnen. Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
1415
|
+
url: 'Documenten API URL',
|
|
1416
|
+
urlTooltip: 'In dit veld moet de verwijzing komen naar de REST API van Documenten. Deze url moet dus eindigen op /documenten/api/v1/',
|
|
1417
|
+
bronorganisatie: 'Bronorganisatie RSIN',
|
|
1418
|
+
bronorganisatieTooltip: 'Vul hier het RSIN van de organisatie in die verantwoordelijk is voor de documenten',
|
|
1419
|
+
localDocumentLocation: 'Naam procesvariabele met document',
|
|
1420
|
+
localDocumentLocationTooltip: 'Hier moet de procesvariabele ingevuld worden die wijst naar de locatie waar het document lokaal staat opgeslagen',
|
|
1421
|
+
storedDocumentUrl: 'Naam procesvariabele voor opslag document-URL',
|
|
1422
|
+
storeDocumentUrlTooltip: 'Nadat het document geupload is naar de Documenten API zal de applicatie in deze procesvariabele de URL naar het document opslaan.',
|
|
1423
|
+
taal: 'Taal',
|
|
1424
|
+
status: 'Status',
|
|
1425
|
+
informatieobjecttype: 'URL naar het informatieobjecttype',
|
|
1426
|
+
informatieobjecttypeTooltip: 'Vul in dit veld de volledige URL naar een informatieobjecttype van een Zaak catalogus. Deze URL moet dus eindigen op /catalogi/api/v1/informatieobjecttypen/{uuid}',
|
|
1427
|
+
nld: 'Nederlands',
|
|
1428
|
+
in_bewerking: 'In bewerking',
|
|
1429
|
+
ter_vaststelling: 'Ter vaststelling',
|
|
1430
|
+
definitief: 'Definitief',
|
|
1431
|
+
gearchiveerd: 'Gearchiveerd',
|
|
1432
|
+
authenticationPluginConfiguration: 'Configuratie authenticatie-plug-in',
|
|
1433
|
+
authenticationPluginConfigurationTooltip: 'Selecteer de plugin die de authenticatie kan afhandelen. Wanneer de selectiebox leeg blijft zal de authenticatie plugin (bv. OpenZaak) eerst aangemaakt moeten worden',
|
|
1434
|
+
},
|
|
1435
|
+
en: {
|
|
1436
|
+
title: 'Documenten API',
|
|
1437
|
+
description: 'API for storing and accessing documents and associated metadata.',
|
|
1438
|
+
'store-temp-document': 'Save document',
|
|
1439
|
+
configurationTitle: 'Configuration name',
|
|
1440
|
+
configurationTitleTooltip: 'Here you can enter a name for the plugin. This name will be used to recognize the plugin throughout the rest of the application',
|
|
1441
|
+
url: 'Documenten API URL',
|
|
1442
|
+
urlTooltip: 'This field must contain the URL to the rest API of Documenten, therefore this URL should end with /documenten/api/v1/',
|
|
1443
|
+
bronorganisatie: 'Organisation RSIN',
|
|
1444
|
+
bronorganisatieTooltip: 'Enter here the RSIN of the organization responsible for the documents. The RSIN is a dutch identification number for legal entities and partnerships ',
|
|
1445
|
+
localDocumentLocation: 'Name of process variable with document',
|
|
1446
|
+
localDocumentLocationTooltip: 'Enter the process variable that points to the location where the document is stored locally',
|
|
1447
|
+
storedDocumentUrl: 'Process variable name for storing document URL',
|
|
1448
|
+
storeDocumentUrlTooltip: 'After the document has been uploaded to the Documenten API, the application will store the URL to the document in this process variable.',
|
|
1449
|
+
taal: 'Language',
|
|
1450
|
+
status: 'Status',
|
|
1451
|
+
informatieobjecttype: 'URL to the informationobjecttype',
|
|
1452
|
+
informatieobjecttypeTooltip: 'Enter the full URL to an information object type of a Zaak catalog in this field. So this URL must end with /catalogi/api/v1/informatieobjecttypen/{uuid}',
|
|
1453
|
+
nld: 'Dutch',
|
|
1454
|
+
in_bewerking: 'Editing',
|
|
1455
|
+
ter_vaststelling: 'To be confirmed',
|
|
1456
|
+
definitief: 'Final',
|
|
1457
|
+
gearchiveerd: 'Archived',
|
|
1458
|
+
authenticationPluginConfiguration: 'Authentication plugin configuration',
|
|
1459
|
+
authenticationPluginConfigurationTooltip: 'Select the plugin that can handle the authentication. If the selection box remains empty, the authentication plugin (e.g. OpenZaak) will have to be created first',
|
|
1460
|
+
},
|
|
1461
|
+
de: {
|
|
1462
|
+
title: 'Documenten API',
|
|
1463
|
+
description: 'API zum Speichern und Zugreifen auf Dokumente und zugehörige Metadaten.',
|
|
1464
|
+
'store-temp-document': 'Dokument speichern',
|
|
1465
|
+
configurationTitle: 'Konfigurationsname',
|
|
1466
|
+
configurationTitleTooltip: 'Hier können Sie einen Namen für das Plugin eingeben. Dieser Name wird verwendet, um das Plugin im Rest der Anwendung zu erkennen',
|
|
1467
|
+
url: 'Documenten API URL',
|
|
1468
|
+
urlTooltip: 'Dieses Feld muss die URL zur rest API von Documenten enthalten, daher sollte diese URL mit enden /documenten/api/v1/',
|
|
1469
|
+
bronorganisatie: 'Organisation RSIN',
|
|
1470
|
+
bronorganisatieTooltip: 'Geben Sie hier den RAIN der für die Dokumente verantwortlichen Organisation ein. Der RAIN ist eine niederländische Identifikationsnummer für juristische Personen und Personengesellschaften',
|
|
1471
|
+
localDocumentLocation: 'Name Prozessvariable mit Dokument',
|
|
1472
|
+
localDocumentLocationTooltip: 'Geben Sie die Prozessvariable ein, die auf den Ort zeigt, an dem das Dokument lokal gespeichert ist',
|
|
1473
|
+
storedDocumentUrl: 'Name der Prozessvariablen zum Speichern der Dokument-URL',
|
|
1474
|
+
storeDocumentUrlTooltip: 'Nachdem das Dokument in die Dokumenten-API hochgeladen wurde, speichert die Anwendung die URL zum Dokument in dieser Prozessvariablen.',
|
|
1475
|
+
taal: 'Sprache',
|
|
1476
|
+
status: 'Status',
|
|
1477
|
+
informatieobjecttype: 'URL zum Informationsobjekttyp',
|
|
1478
|
+
informatieobjecttypeTooltip: 'Geben Sie in diesem Feld die vollständige URL zu einem Informationsobjekttyp eines Case Katalogs. Diese URL muss daher mit enden /catalogi/api/v1/informatieobjecttypen/{uuid}',
|
|
1479
|
+
nld: 'Niederländisch',
|
|
1480
|
+
in_bewerking: 'In Bearbeitung',
|
|
1481
|
+
ter_vaststelling: 'Zu bestimmen',
|
|
1482
|
+
definitief: 'Endgültig',
|
|
1483
|
+
gearchiveerd: 'Archiviert',
|
|
1484
|
+
authenticationPluginConfiguration: 'Authentifizierungs-Plugin-Konfiguration',
|
|
1485
|
+
authenticationPluginConfigurationTooltip: 'Wählen Sie das Plugin aus, das die Authentifizierung verarbeiten kann. Bleibt das Auswahlfeld leer, muss zunächst das Authentifizierungs-Plugin (z. B. OpenZaak) erstellt werden',
|
|
1486
|
+
},
|
|
1487
|
+
},
|
|
1488
|
+
};
|
|
1489
|
+
|
|
1490
|
+
/*
|
|
1491
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1492
|
+
*
|
|
1493
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1494
|
+
* you may not use this file except in compliance with the License.
|
|
1495
|
+
* You may obtain a copy of the License at
|
|
1496
|
+
*
|
|
1497
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1498
|
+
*
|
|
1499
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1500
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1501
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1502
|
+
* See the License for the specific language governing permissions and
|
|
1503
|
+
* limitations under the License.
|
|
1504
|
+
*/
|
|
1505
|
+
class ObjecttypenApiConfigurationComponent {
|
|
1506
|
+
constructor(pluginManagementService, translateService, pluginTranslationService) {
|
|
1507
|
+
this.pluginManagementService = pluginManagementService;
|
|
1508
|
+
this.translateService = translateService;
|
|
1509
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
1510
|
+
this.valid = new EventEmitter();
|
|
1511
|
+
this.configuration = new EventEmitter();
|
|
1512
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
1513
|
+
this.valid$ = new BehaviorSubject(false);
|
|
1514
|
+
this.authenticationPluginSelectItems$ = combineLatest([
|
|
1515
|
+
this.pluginManagementService.getPluginConfigurationsByCategory('objecten-api-authentication'),
|
|
1516
|
+
this.translateService.stream('key'),
|
|
1517
|
+
]).pipe(map$1(([configurations]) => configurations.map(configuration => ({
|
|
1518
|
+
id: configuration.id,
|
|
1519
|
+
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
1520
|
+
}))));
|
|
1521
|
+
}
|
|
1522
|
+
ngOnInit() {
|
|
1523
|
+
this.openSaveSubscription();
|
|
1524
|
+
}
|
|
1525
|
+
ngOnDestroy() {
|
|
1526
|
+
this.saveSubscription?.unsubscribe();
|
|
1527
|
+
}
|
|
1528
|
+
formValueChange(formValue) {
|
|
1529
|
+
this.formValue$.next(formValue);
|
|
1530
|
+
this.handleValid(formValue);
|
|
1531
|
+
}
|
|
1532
|
+
handleValid(formValue) {
|
|
1533
|
+
const valid = !!(formValue.configurationTitle &&
|
|
1534
|
+
formValue.url &&
|
|
1535
|
+
formValue.authenticationPluginConfiguration);
|
|
1536
|
+
this.valid$.next(valid);
|
|
1537
|
+
this.valid.emit(valid);
|
|
1538
|
+
}
|
|
1539
|
+
openSaveSubscription() {
|
|
1540
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
1541
|
+
combineLatest([this.formValue$, this.valid$])
|
|
1542
|
+
.pipe(take(1))
|
|
1543
|
+
.subscribe(([formValue, valid]) => {
|
|
1544
|
+
if (valid) {
|
|
1545
|
+
this.configuration.emit(formValue);
|
|
1546
|
+
}
|
|
1547
|
+
});
|
|
1548
|
+
});
|
|
1549
|
+
}
|
|
1550
|
+
}
|
|
1551
|
+
ObjecttypenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1552
|
+
ObjecttypenApiConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ObjecttypenApiConfigurationComponent, selector: "valtimo-objecttypen-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
1553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiConfigurationComponent, decorators: [{
|
|
1554
|
+
type: Component,
|
|
1555
|
+
args: [{ selector: 'valtimo-objecttypen-api-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
1556
|
+
}], ctorParameters: function () { return [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
1557
|
+
type: Input
|
|
1558
|
+
}], disabled$: [{
|
|
1559
|
+
type: Input
|
|
1560
|
+
}], pluginId: [{
|
|
1561
|
+
type: Input
|
|
1562
|
+
}], prefillConfiguration$: [{
|
|
1563
|
+
type: Input
|
|
1564
|
+
}], valid: [{
|
|
1565
|
+
type: Output
|
|
1566
|
+
}], configuration: [{
|
|
1567
|
+
type: Output
|
|
1568
|
+
}] } });
|
|
1569
|
+
|
|
1570
|
+
/*
|
|
1571
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1572
|
+
*
|
|
1573
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1574
|
+
* you may not use this file except in compliance with the License.
|
|
1575
|
+
* You may obtain a copy of the License at
|
|
1576
|
+
*
|
|
1577
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1578
|
+
*
|
|
1579
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1580
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1581
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1582
|
+
* See the License for the specific language governing permissions and
|
|
1583
|
+
* limitations under the License.
|
|
1584
|
+
*/
|
|
1585
|
+
class ObjecttypenApiPluginModule {
|
|
1586
|
+
}
|
|
1587
|
+
ObjecttypenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1588
|
+
ObjecttypenApiPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiPluginModule, declarations: [ObjecttypenApiConfigurationComponent], imports: [CommonModule,
|
|
1589
|
+
PluginTranslatePipeModule,
|
|
1590
|
+
FormModule,
|
|
1591
|
+
InputModule,
|
|
1592
|
+
SelectModule,
|
|
1593
|
+
ParagraphModule], exports: [ObjecttypenApiConfigurationComponent] });
|
|
1594
|
+
ObjecttypenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiPluginModule, imports: [[
|
|
1595
|
+
CommonModule,
|
|
1596
|
+
PluginTranslatePipeModule,
|
|
1597
|
+
FormModule,
|
|
1598
|
+
InputModule,
|
|
1599
|
+
SelectModule,
|
|
1600
|
+
ParagraphModule,
|
|
1601
|
+
]] });
|
|
1602
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjecttypenApiPluginModule, decorators: [{
|
|
1603
|
+
type: NgModule,
|
|
1604
|
+
args: [{
|
|
1605
|
+
declarations: [ObjecttypenApiConfigurationComponent],
|
|
1606
|
+
imports: [
|
|
1607
|
+
CommonModule,
|
|
1608
|
+
PluginTranslatePipeModule,
|
|
1609
|
+
FormModule,
|
|
1610
|
+
InputModule,
|
|
1611
|
+
SelectModule,
|
|
1612
|
+
ParagraphModule,
|
|
1613
|
+
],
|
|
1614
|
+
exports: [ObjecttypenApiConfigurationComponent],
|
|
1615
|
+
}]
|
|
1616
|
+
}] });
|
|
1617
|
+
|
|
1618
|
+
/*
|
|
1619
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1620
|
+
*
|
|
1621
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1622
|
+
* you may not use this file except in compliance with the License.
|
|
1623
|
+
* You may obtain a copy of the License at
|
|
1624
|
+
*
|
|
1625
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1626
|
+
*
|
|
1627
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1628
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1629
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1630
|
+
* See the License for the specific language governing permissions and
|
|
1631
|
+
* limitations under the License.
|
|
1632
|
+
*/
|
|
1633
|
+
const OBJECTTYPEN_API_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA8CAYAAAC+ej5cAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5ggRCgE1liNZsAAAAAFvck5UAc+id5oAABALSURBVHja7d15tF11dQfwz+/c+15GMEAYAoggqJi8RIsWJ5AhIQzagriw4oSt7XKoWrQWrcsBqC2tdVm7rNRFi0NbsVLrWC0hL5EiyNACShIiMshMQMCEJDzecO+vf+x733Dfve/e9/IylOa71l153HPPOb+z92/v397fvX+HZNvQhWfjBTgcB2IOvoyfbuO1n2lYhD9AHx7Gnbgd92FwRw9mb7wRl+EX2Iwh5Nq/r9vZ0toFcQr6hYwqQmZ34Bs4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/*
|
|
1636
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1637
|
+
*
|
|
1638
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1639
|
+
* you may not use this file except in compliance with the License.
|
|
1640
|
+
* You may obtain a copy of the License at
|
|
1641
|
+
*
|
|
1642
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1643
|
+
*
|
|
1644
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1645
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1646
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1647
|
+
* See the License for the specific language governing permissions and
|
|
1648
|
+
* limitations under the License.
|
|
1649
|
+
*/
|
|
1650
|
+
|
|
1651
|
+
/*
|
|
1652
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1653
|
+
*
|
|
1654
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1655
|
+
* you may not use this file except in compliance with the License.
|
|
1656
|
+
* You may obtain a copy of the License at
|
|
1657
|
+
*
|
|
1658
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1659
|
+
*
|
|
1660
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1661
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1662
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1663
|
+
* See the License for the specific language governing permissions and
|
|
1664
|
+
* limitations under the License.
|
|
1665
|
+
*/
|
|
1666
|
+
const objecttypenApiPluginSpecification = {
|
|
1667
|
+
pluginId: 'objecttypenapi',
|
|
1668
|
+
pluginConfigurationComponent: ObjecttypenApiConfigurationComponent,
|
|
1669
|
+
pluginLogoBase64: OBJECTTYPEN_API_PLUGIN_LOGO_BASE64,
|
|
1670
|
+
pluginTranslations: {
|
|
1671
|
+
nl: {
|
|
1672
|
+
title: 'Objecttypen API',
|
|
1673
|
+
url: 'Objecttypen API URL',
|
|
1674
|
+
urlTooltip: 'In dit veld moet de verwijzing komen naar de REST API van Objecttypen',
|
|
1675
|
+
description: 'Met de Overige Objecten Registratie API-specificaties (Objecttypen) kunnen gemeenten eenduidig objecten registreren, opslaan en ontsluiten.',
|
|
1676
|
+
configurationTitle: 'Configuratienaam',
|
|
1677
|
+
configurationTitleTooltip: 'Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
1678
|
+
authenticationPluginConfiguration: 'Configuratie authenticatie-plug-in',
|
|
1679
|
+
},
|
|
1680
|
+
en: {
|
|
1681
|
+
title: 'Objecttypen API',
|
|
1682
|
+
url: 'Objecttypen API URL',
|
|
1683
|
+
urlTooltip: 'This field must contain the URL to the REST API of Objecttypen',
|
|
1684
|
+
description: 'With the Other Objects Registration API specifications (Object types), municipalities can unambiguously register, store and access objects.',
|
|
1685
|
+
configurationTitle: 'Configuration name',
|
|
1686
|
+
configurationTitleTooltip: 'With this name the plugin will be recognizable in the rest of the application',
|
|
1687
|
+
authenticationPluginConfiguration: 'Authentication plugin configuration',
|
|
1688
|
+
},
|
|
1689
|
+
de: {
|
|
1690
|
+
title: 'Objecttypen API',
|
|
1691
|
+
url: 'Objecttypen API URL',
|
|
1692
|
+
urlTooltip: 'Dieses Feld muss die URL zur REST API von Objecttypen enthalten',
|
|
1693
|
+
description: 'Mit den Spezifikationen der Other Objects Registration API (Objekttypen) können Kommunen Objekte eindeutig registrieren, speichern und darauf zugreifen.',
|
|
1694
|
+
configurationTitle: 'Konfigurationsname',
|
|
1695
|
+
configurationTitleTooltip: 'An diesem Namen wird das Plugin im Rest der Anwendung erkennbar sein',
|
|
1696
|
+
authenticationPluginConfiguration: 'Authentifizierungs-Plugin-Konfiguration',
|
|
1697
|
+
},
|
|
1698
|
+
},
|
|
1699
|
+
};
|
|
1700
|
+
|
|
1701
|
+
/*
|
|
1702
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1703
|
+
*
|
|
1704
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1705
|
+
* you may not use this file except in compliance with the License.
|
|
1706
|
+
* You may obtain a copy of the License at
|
|
1707
|
+
*
|
|
1708
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1709
|
+
*
|
|
1710
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1711
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1712
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1713
|
+
* See the License for the specific language governing permissions and
|
|
1714
|
+
* limitations under the License.
|
|
1715
|
+
*/
|
|
1716
|
+
class ZakenApiConfigurationComponent {
|
|
1717
|
+
constructor(pluginManagementService, translateService, pluginTranslationService) {
|
|
1718
|
+
this.pluginManagementService = pluginManagementService;
|
|
1719
|
+
this.translateService = translateService;
|
|
1720
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
1721
|
+
this.valid = new EventEmitter();
|
|
1722
|
+
this.configuration = new EventEmitter();
|
|
1723
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
1724
|
+
this.valid$ = new BehaviorSubject(false);
|
|
1725
|
+
this.authenticationPluginSelectItems$ = combineLatest([
|
|
1726
|
+
this.pluginManagementService.getPluginConfigurationsByCategory('zaken-api-authentication'),
|
|
1727
|
+
this.translateService.stream('key'),
|
|
1728
|
+
]).pipe(map$1(([configurations]) => configurations.map(configuration => ({
|
|
1729
|
+
id: configuration.id,
|
|
1730
|
+
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
1731
|
+
}))));
|
|
1732
|
+
}
|
|
1733
|
+
ngOnInit() {
|
|
1734
|
+
this.openSaveSubscription();
|
|
1735
|
+
}
|
|
1736
|
+
ngOnDestroy() {
|
|
1737
|
+
this.saveSubscription?.unsubscribe();
|
|
1738
|
+
}
|
|
1739
|
+
formValueChange(formValue) {
|
|
1740
|
+
this.formValue$.next(formValue);
|
|
1741
|
+
this.handleValid(formValue);
|
|
1742
|
+
}
|
|
1743
|
+
handleValid(formValue) {
|
|
1744
|
+
const valid = !!(formValue.configurationTitle &&
|
|
1745
|
+
formValue.url &&
|
|
1746
|
+
formValue.authenticationPluginConfiguration);
|
|
1747
|
+
this.valid$.next(valid);
|
|
1748
|
+
this.valid.emit(valid);
|
|
1749
|
+
}
|
|
1750
|
+
openSaveSubscription() {
|
|
1751
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
1752
|
+
combineLatest([this.formValue$, this.valid$])
|
|
1753
|
+
.pipe(take(1))
|
|
1754
|
+
.subscribe(([formValue, valid]) => {
|
|
1755
|
+
if (valid) {
|
|
1756
|
+
this.configuration.emit(formValue);
|
|
1757
|
+
}
|
|
1758
|
+
});
|
|
1759
|
+
});
|
|
1760
|
+
}
|
|
1761
|
+
}
|
|
1762
|
+
ZakenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1763
|
+
ZakenApiConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ZakenApiConfigurationComponent, selector: "valtimo-zaken-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: [""], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
1764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiConfigurationComponent, decorators: [{
|
|
1765
|
+
type: Component,
|
|
1766
|
+
args: [{ selector: 'valtimo-zaken-api-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [tooltip]=\"'authenticationPluginConfigurationTooltip' | pluginTranslate: pluginId | async\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: [""] }]
|
|
1767
|
+
}], ctorParameters: function () { return [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
1768
|
+
type: Input
|
|
1769
|
+
}], disabled$: [{
|
|
1770
|
+
type: Input
|
|
1771
|
+
}], pluginId: [{
|
|
1772
|
+
type: Input
|
|
1773
|
+
}], prefillConfiguration$: [{
|
|
1774
|
+
type: Input
|
|
1775
|
+
}], valid: [{
|
|
1776
|
+
type: Output
|
|
1777
|
+
}], configuration: [{
|
|
1778
|
+
type: Output
|
|
1779
|
+
}] } });
|
|
1780
|
+
|
|
1781
|
+
/*
|
|
1782
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1783
|
+
*
|
|
1784
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1785
|
+
* you may not use this file except in compliance with the License.
|
|
1786
|
+
* You may obtain a copy of the License at
|
|
1787
|
+
*
|
|
1788
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1789
|
+
*
|
|
1790
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1791
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1792
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1793
|
+
* See the License for the specific language governing permissions and
|
|
1794
|
+
* limitations under the License.
|
|
1795
|
+
*/
|
|
1796
|
+
class LinkDocumentToZaakConfigurationComponent {
|
|
1797
|
+
constructor(pluginManagementService, translateService, pluginTranslationService) {
|
|
1798
|
+
this.pluginManagementService = pluginManagementService;
|
|
1799
|
+
this.translateService = translateService;
|
|
1800
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
1801
|
+
this.valid = new EventEmitter();
|
|
1802
|
+
this.configuration = new EventEmitter();
|
|
1803
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
1804
|
+
this.valid$ = new BehaviorSubject(false);
|
|
1805
|
+
this.authenticationPluginSelectItems$ = combineLatest([
|
|
1806
|
+
this.pluginManagementService.getPluginConfigurationsByCategory('link-document-to-zaak'),
|
|
1807
|
+
this.translateService.stream('key'),
|
|
1808
|
+
]).pipe(map$1(([configurations]) => configurations.map(configuration => ({
|
|
1809
|
+
id: configuration.id,
|
|
1810
|
+
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
1811
|
+
}))));
|
|
1812
|
+
}
|
|
1813
|
+
ngOnInit() {
|
|
1814
|
+
this.openSaveSubscription();
|
|
1815
|
+
}
|
|
1816
|
+
ngOnDestroy() {
|
|
1817
|
+
this.saveSubscription?.unsubscribe();
|
|
1818
|
+
}
|
|
1819
|
+
formValueChange(formValue) {
|
|
1820
|
+
this.formValue$.next(formValue);
|
|
1821
|
+
this.handleValid(formValue);
|
|
1822
|
+
}
|
|
1823
|
+
handleValid(formValue) {
|
|
1824
|
+
const valid = !!formValue.documentUrl;
|
|
1825
|
+
this.valid$.next(valid);
|
|
1826
|
+
this.valid.emit(valid);
|
|
1827
|
+
}
|
|
1828
|
+
openSaveSubscription() {
|
|
1829
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
1830
|
+
combineLatest([this.formValue$, this.valid$])
|
|
1831
|
+
.pipe(take(1))
|
|
1832
|
+
.subscribe(([formValue, valid]) => {
|
|
1833
|
+
if (valid) {
|
|
1834
|
+
this.configuration.emit(formValue);
|
|
1835
|
+
}
|
|
1836
|
+
});
|
|
1837
|
+
});
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
LinkDocumentToZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinkDocumentToZaakConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1841
|
+
LinkDocumentToZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: LinkDocumentToZaakConfigurationComponent, selector: "valtimo-link-document-to-zaak-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-paragraph [margin]=\"true\" [italic]=\"true\">\n {{ 'linkDocumentInformation' | pluginTranslate: pluginId | async }}\n</v-paragraph>\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"documentUrl\"\n [title]=\"'documentUrl' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.documentUrl\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'documentUrlTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n <v-input\n name=\"titel\"\n [title]=\"'titel' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.titel\"\n [disabled]=\"obs.disabled\"\n [required]=\"false\"\n [tooltip]=\"'titelTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"beschrijving\"\n [title]=\"'beschrijving' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.beschrijving\"\n [disabled]=\"obs.disabled\"\n [required]=\"false\"\n [tooltip]=\"'beschrijvingTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i3$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }, { type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
1842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: LinkDocumentToZaakConfigurationComponent, decorators: [{
|
|
1843
|
+
type: Component,
|
|
1844
|
+
args: [{ selector: 'valtimo-link-document-to-zaak-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-paragraph [margin]=\"true\" [italic]=\"true\">\n {{ 'linkDocumentInformation' | pluginTranslate: pluginId | async }}\n</v-paragraph>\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"documentUrl\"\n [title]=\"'documentUrl' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.documentUrl\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n [tooltip]=\"'documentUrlTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n <v-input\n name=\"titel\"\n [title]=\"'titel' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.titel\"\n [disabled]=\"obs.disabled\"\n [required]=\"false\"\n [tooltip]=\"'titelTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"beschrijving\"\n [title]=\"'beschrijving' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [defaultValue]=\"obs.prefill?.beschrijving\"\n [disabled]=\"obs.disabled\"\n [required]=\"false\"\n [tooltip]=\"'beschrijvingTooltip' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""] }]
|
|
1845
|
+
}], ctorParameters: function () { return [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
1846
|
+
type: Input
|
|
1847
|
+
}], disabled$: [{
|
|
1848
|
+
type: Input
|
|
1849
|
+
}], pluginId: [{
|
|
1850
|
+
type: Input
|
|
1851
|
+
}], prefillConfiguration$: [{
|
|
1852
|
+
type: Input
|
|
1853
|
+
}], valid: [{
|
|
1854
|
+
type: Output
|
|
1855
|
+
}], configuration: [{
|
|
1856
|
+
type: Output
|
|
1857
|
+
}] } });
|
|
1858
|
+
|
|
1859
|
+
/*
|
|
1860
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1861
|
+
*
|
|
1862
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1863
|
+
* you may not use this file except in compliance with the License.
|
|
1864
|
+
* You may obtain a copy of the License at
|
|
1865
|
+
*
|
|
1866
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1867
|
+
*
|
|
1868
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1869
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1870
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1871
|
+
* See the License for the specific language governing permissions and
|
|
1872
|
+
* limitations under the License.
|
|
1873
|
+
*/
|
|
1874
|
+
class ZakenApiPluginModule {
|
|
1875
|
+
}
|
|
1876
|
+
ZakenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1877
|
+
ZakenApiPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiPluginModule, declarations: [ZakenApiConfigurationComponent, LinkDocumentToZaakConfigurationComponent], imports: [CommonModule,
|
|
1878
|
+
PluginTranslatePipeModule,
|
|
1879
|
+
FormModule,
|
|
1880
|
+
InputModule,
|
|
1881
|
+
SelectModule,
|
|
1882
|
+
ParagraphModule], exports: [ZakenApiConfigurationComponent, LinkDocumentToZaakConfigurationComponent] });
|
|
1883
|
+
ZakenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiPluginModule, imports: [[
|
|
1884
|
+
CommonModule,
|
|
1885
|
+
PluginTranslatePipeModule,
|
|
1886
|
+
FormModule,
|
|
1887
|
+
InputModule,
|
|
1888
|
+
SelectModule,
|
|
1889
|
+
ParagraphModule,
|
|
1890
|
+
]] });
|
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ZakenApiPluginModule, decorators: [{
|
|
1892
|
+
type: NgModule,
|
|
1893
|
+
args: [{
|
|
1894
|
+
declarations: [ZakenApiConfigurationComponent, LinkDocumentToZaakConfigurationComponent],
|
|
1895
|
+
imports: [
|
|
1896
|
+
CommonModule,
|
|
1897
|
+
PluginTranslatePipeModule,
|
|
1898
|
+
FormModule,
|
|
1899
|
+
InputModule,
|
|
1900
|
+
SelectModule,
|
|
1901
|
+
ParagraphModule,
|
|
1902
|
+
],
|
|
1903
|
+
exports: [ZakenApiConfigurationComponent, LinkDocumentToZaakConfigurationComponent],
|
|
1904
|
+
}]
|
|
1905
|
+
}] });
|
|
1906
|
+
|
|
1907
|
+
/*
|
|
1908
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1909
|
+
*
|
|
1910
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1911
|
+
* you may not use this file except in compliance with the License.
|
|
1912
|
+
* You may obtain a copy of the License at
|
|
1913
|
+
*
|
|
1914
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1915
|
+
*
|
|
1916
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1917
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1918
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1919
|
+
* See the License for the specific language governing permissions and
|
|
1920
|
+
* limitations under the License.
|
|
1921
|
+
*/
|
|
1922
|
+
const ZAKEN_API_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA8CAYAAABVTYVfAAAACXBIWXMAABG3AAARtwGaY1MrAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAADuxJREFUeJztnX10VdWVwH/73pBAAmUoiEASgpWOWsdx1MGRQQYxKeo4OpZK6rQVk6BSrcupVUjiV9/qdAzRjp3iaEVNXkQdK0rtGluQj4RYrTpq/Si1Bb/4yEukoIgCAZLcu+ePlxCSd857930E1MlvrbcWufvcvXey3z33nH32OQgDSWhdFkUnHoPXMZEsmQiMRskD8hB1BtR2qqjuobww1OdauOUk4HxExgTTIZ2g7Sh7wN+G425ln7+ZqwpbM+9wL5JxjQ+0FeHoHIRi0OlAXsZtDCw7KC8Ye/CnB1vOw5dfARn48sk2oBHR1Xg5TzLvqN3p6zxEe0a0hDSLokgpKpcjzCAjv/gRo28wwy2/AZk+AHbageWo3EtF/vOZUJheMJe8MoTso8tAqoAvZcKhTwH9ghnZCPzlgFpU1uHyb1xWsC4dNak/QeG26eSMexXkPj4/gTSxdsAtCDPxaSIcWU59a2GqapIP5pK2XBpa7wf/GZS/StXwZ4fOm4DGw2RsNo7+kXDkO6ncnFw3u7TtBDx9HPTEJO7aDfoCyJ9QeQfRP4PuRZ2O5FzNNDoU4SmDoG83C6AqNEQmo05RINUiwxEvD3UmgH8cyEkIp6JkJeHgz/FzrkxmkBQ8mPWtJYj+AhgRoPX7KP+Ny3I25b9MSLoC2zlcLN2Wh9e1xyCJDWYmqNsxArdjJviXoHIRMCzhPcIfED2Xy4JNaYIFMxyZAzwE5CRo+TpCDbn5yykVL5DuI8XhDuahLHl3JNnZV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NNp4jgd+N4B/Kx9SOdOhg/bTmnA43fS4P8A/zvlqbh/D8sAAAAASUVORK5CYII=';
|
|
1923
|
+
|
|
1924
|
+
/*
|
|
1925
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1926
|
+
*
|
|
1927
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1928
|
+
* you may not use this file except in compliance with the License.
|
|
1929
|
+
* You may obtain a copy of the License at
|
|
1930
|
+
*
|
|
1931
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1932
|
+
*
|
|
1933
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1934
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1935
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1936
|
+
* See the License for the specific language governing permissions and
|
|
1937
|
+
* limitations under the License.
|
|
1938
|
+
*/
|
|
1939
|
+
|
|
1940
|
+
/*
|
|
1941
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
1942
|
+
*
|
|
1943
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1944
|
+
* you may not use this file except in compliance with the License.
|
|
1945
|
+
* You may obtain a copy of the License at
|
|
1946
|
+
*
|
|
1947
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1948
|
+
*
|
|
1949
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1950
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1951
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1952
|
+
* See the License for the specific language governing permissions and
|
|
1953
|
+
* limitations under the License.
|
|
1954
|
+
*/
|
|
1955
|
+
const zakenApiPluginSpecification = {
|
|
1956
|
+
pluginId: 'zakenapi',
|
|
1957
|
+
/*
|
|
1958
|
+
A component of the interface PluginConfigurationComponent, used to configure the plugin itself.
|
|
1959
|
+
*/
|
|
1960
|
+
pluginConfigurationComponent: ZakenApiConfigurationComponent,
|
|
1961
|
+
pluginLogoBase64: ZAKEN_API_PLUGIN_LOGO_BASE64,
|
|
1962
|
+
functionConfigurationComponents: {
|
|
1963
|
+
'link-document-to-zaak': LinkDocumentToZaakConfigurationComponent,
|
|
1964
|
+
},
|
|
1965
|
+
pluginTranslations: {
|
|
1966
|
+
nl: {
|
|
1967
|
+
title: 'Zaken API',
|
|
1968
|
+
url: 'Zaken API URL',
|
|
1969
|
+
urlTooltip: 'In dit veld moet de verwijzing komen naar de REST api van Open zaak. Deze url moet dus eindigen op /zaken/api/v1/',
|
|
1970
|
+
description: 'De API ondersteunt het opslaan en het naar andere applicaties ontsluiten van gegevens over alle gemeentelijke zaken, van elk type.',
|
|
1971
|
+
'link-document-to-zaak': 'Koppel document aan zaak',
|
|
1972
|
+
configurationTitle: 'Configuratienaam',
|
|
1973
|
+
configurationTitleTooltip: 'Onder deze naam zal de plugin te herkennen zijn in de rest van de applicatie',
|
|
1974
|
+
documentUrl: 'URL naar het document',
|
|
1975
|
+
documentUrlTooltip: 'Dit veld ondersteunt URLs en proces variabelen. Gebruik pv:variable om een proces variabele uit te lezen',
|
|
1976
|
+
titel: 'Documenttitel',
|
|
1977
|
+
titelTooltip: '(Optioneel) Vult het titel veld in de metadata van de link tussen de Zaak en het Document',
|
|
1978
|
+
beschrijving: 'Documentbeschrijving',
|
|
1979
|
+
beschrijvingTooltip: '(Optioneel) Vult het beschrijving veld in de metadata van de link tussen de Zaak en het Document',
|
|
1980
|
+
authenticationPluginConfiguration: 'Configuratie authenticatie-plug-in',
|
|
1981
|
+
authenticationPluginConfigurationTooltip: 'Selecteer de plugin die de authenticatie kan afhandelen. Wanneer de selectiebox leeg blijft zal de authenticatie plugin (bv. OpenZaak) eerst aangemaakt moeten worden',
|
|
1982
|
+
linkDocumentInformation: 'Deze actie koppelt een document uit de Documenten API aan de zaak die bij het dossier hoort.',
|
|
1983
|
+
},
|
|
1984
|
+
en: {
|
|
1985
|
+
title: 'Zaken API',
|
|
1986
|
+
url: 'URL',
|
|
1987
|
+
urlTooltip: 'This field must contain the URL to the rest API of Open Zaak, therefore this URL should end with /zaken/api/v1/',
|
|
1988
|
+
description: 'The API supports the storage and disclosure of data on all municipal matters to other applications, of all types.',
|
|
1989
|
+
'link-document-to-zaak': 'Link document to zaak',
|
|
1990
|
+
configurationTitle: 'Configuration name',
|
|
1991
|
+
configurationTitleTooltip: 'With this name the plugin will be recognizable in the rest of the application',
|
|
1992
|
+
documentUrl: 'URL to the document',
|
|
1993
|
+
documentUrlTooltip: 'This field supports URLs and process variables. Use pv:variable to read a process variable',
|
|
1994
|
+
titel: 'Document title',
|
|
1995
|
+
titelTooltip: '(Optional) Fills the title field in the metadata of the link between the Zaak and the Document',
|
|
1996
|
+
beschrijving: 'Document description',
|
|
1997
|
+
beschrijvingTooltip: '(Optional) Fills the description field in the metadata of the link between the Zaak and the Document',
|
|
1998
|
+
authenticationPluginConfiguration: 'Authentication plugin configuration',
|
|
1999
|
+
authenticationPluginConfigurationTooltip: 'Select the plugin that can handle the authentication. If the selection box remains empty, the authentication plugin (e.g. OpenZaak) will have to be created first',
|
|
2000
|
+
linkDocumentInformation: 'This action links a document from the Documents API to the zaak associated with the case.',
|
|
2001
|
+
},
|
|
2002
|
+
de: {
|
|
2003
|
+
title: 'Zaken API',
|
|
2004
|
+
url: 'URL',
|
|
2005
|
+
urlTooltip: 'Dieses Feld muss die URL zur rest API von Open Zaak enthalten, daher sollte diese URL mit enden /zaken/api/v1/',
|
|
2006
|
+
description: 'Die API unterstützt die Speicherung und Weitergabe von Daten zu allen kommunalen Belangen an andere Anwendungen.',
|
|
2007
|
+
'link-document-to-zaak': 'Dokument mit Zaak verknüpfen',
|
|
2008
|
+
configurationTitle: 'Konfigurationsname',
|
|
2009
|
+
configurationTitleTooltip: 'An diesem Namen wird das Plugin im Rest der Anwendung erkennbar sein',
|
|
2010
|
+
documentUrl: 'URL zum Dokument',
|
|
2011
|
+
documentUrlTooltip: 'Dieses Feld unterstützt URLs und Prozessvariablen. Verwenden Sie pv:Variablen, um eine Prozessvariable zu lesen',
|
|
2012
|
+
titel: 'Dokumenttitel',
|
|
2013
|
+
titelTooltip: '(Optional) Füllt das Titelfeld in den Metadaten des Links zwischen dem Zaak und dem Dokument aus',
|
|
2014
|
+
beschrijving: 'Dokumentbeschreibung',
|
|
2015
|
+
beschrijvingTooltip: '(Optional) Füllt das Beschreibungsfeld in den Metadaten des Links zwischen dem Zaak und dem Dokument aus',
|
|
2016
|
+
authenticationPluginConfiguration: 'Authentifizierungs-Plugin-Konfiguration',
|
|
2017
|
+
authenticationPluginConfigurationTooltip: 'Wählen Sie das Plugin aus, das die Authentifizierung verarbeiten kann. Bleibt das Auswahlfeld leer, muss zunächst das Authentifizierungs-Plugin (z. B. OpenZaak) erstellt werden',
|
|
2018
|
+
linkDocumentInformation: 'Diese Aktion verknüpft ein Dokument aus der Dokumenten-API mit dem mit dem Fall verknüpften Zaak.',
|
|
2019
|
+
},
|
|
2020
|
+
},
|
|
2021
|
+
};
|
|
2022
|
+
|
|
2023
|
+
/*
|
|
2024
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2025
|
+
*
|
|
2026
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2027
|
+
* you may not use this file except in compliance with the License.
|
|
2028
|
+
* You may obtain a copy of the License at
|
|
2029
|
+
*
|
|
2030
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2031
|
+
*
|
|
2032
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2033
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2034
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2035
|
+
* See the License for the specific language governing permissions and
|
|
2036
|
+
* limitations under the License.
|
|
2037
|
+
*/
|
|
2038
|
+
class ObjectenApiConfigurationComponent {
|
|
2039
|
+
constructor(pluginManagementService, translateService, pluginTranslationService) {
|
|
2040
|
+
this.pluginManagementService = pluginManagementService;
|
|
2041
|
+
this.translateService = translateService;
|
|
2042
|
+
this.pluginTranslationService = pluginTranslationService;
|
|
2043
|
+
this.valid = new EventEmitter();
|
|
2044
|
+
this.configuration = new EventEmitter();
|
|
2045
|
+
this.formValue$ = new BehaviorSubject(null);
|
|
2046
|
+
this.valid$ = new BehaviorSubject(false);
|
|
2047
|
+
this.authenticationPluginSelectItems$ = combineLatest([
|
|
2048
|
+
this.pluginManagementService.getPluginConfigurationsByCategory('objecten-api-authentication'),
|
|
2049
|
+
this.translateService.stream('key'),
|
|
2050
|
+
]).pipe(map$1(([configurations]) => configurations.map(configuration => ({
|
|
2051
|
+
id: configuration.id,
|
|
2052
|
+
text: `${configuration.title} - ${this.pluginTranslationService.instant('title', configuration.pluginDefinition.key)}`,
|
|
2053
|
+
}))));
|
|
2054
|
+
}
|
|
2055
|
+
ngOnInit() {
|
|
2056
|
+
this.openSaveSubscription();
|
|
2057
|
+
}
|
|
2058
|
+
ngOnDestroy() {
|
|
2059
|
+
this.saveSubscription?.unsubscribe();
|
|
2060
|
+
}
|
|
2061
|
+
formValueChange(formValue) {
|
|
2062
|
+
this.formValue$.next(formValue);
|
|
2063
|
+
this.handleValid(formValue);
|
|
2064
|
+
}
|
|
2065
|
+
handleValid(formValue) {
|
|
2066
|
+
const valid = !!(formValue.configurationTitle &&
|
|
2067
|
+
formValue.url &&
|
|
2068
|
+
formValue.authenticationPluginConfiguration);
|
|
2069
|
+
this.valid$.next(valid);
|
|
2070
|
+
this.valid.emit(valid);
|
|
2071
|
+
}
|
|
2072
|
+
openSaveSubscription() {
|
|
2073
|
+
this.saveSubscription = this.save$?.subscribe(save => {
|
|
2074
|
+
combineLatest([this.formValue$, this.valid$])
|
|
2075
|
+
.pipe(take(1))
|
|
2076
|
+
.subscribe(([formValue, valid]) => {
|
|
2077
|
+
if (valid) {
|
|
2078
|
+
this.configuration.emit(formValue);
|
|
2079
|
+
}
|
|
2080
|
+
});
|
|
2081
|
+
});
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
ObjectenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiConfigurationComponent, deps: [{ token: PluginManagementService }, { token: i2.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
|
|
2085
|
+
ObjectenApiConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: ObjectenApiConfigurationComponent, selector: "valtimo-objecten-api-configuration", inputs: { save$: "save$", disabled$: "disabled$", pluginId: "pluginId", prefillConfiguration$: "prefillConfiguration$" }, outputs: { valid: "valid", configuration: "configuration" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"], components: [{ type: i3$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i3$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox"], outputs: ["valueChange"] }, { type: i3$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required", "loading", "loadingText", "placeholder"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i4$1.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
|
|
2086
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiConfigurationComponent, decorators: [{
|
|
2087
|
+
type: Component,
|
|
2088
|
+
args: [{ selector: 'valtimo-objecten-api-configuration', template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<v-form\n (valueChange)=\"formValueChange($event)\"\n *ngIf=\"{\n disabled: disabled$ | async,\n prefill: prefillConfiguration$ ? (prefillConfiguration$ | async) : null\n } as obs\"\n>\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.configurationTitle\"\n [required]=\"true\"\n [tooltip]=\"'configurationTitleTooltip' | pluginTranslate: pluginId | async\"\n [widthPx]=\"350\"\n >\n </v-input>\n <v-input\n name=\"url\"\n [title]=\"'url' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [defaultValue]=\"obs.prefill?.url\"\n [required]=\"true\"\n [tooltip]=\"'urlTooltip' | pluginTranslate: pluginId | async\"\n >\n </v-input>\n <ng-container\n *ngIf=\"{authenticationPluginSelectItems: authenticationPluginSelectItems$ | async} as authObs\"\n >\n <v-select\n [items]=\"authObs.authenticationPluginSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n name=\"authenticationPluginConfiguration\"\n [title]=\"'authenticationPluginConfiguration' | pluginTranslate: pluginId | async\"\n [disabled]=\"obs.disabled\"\n [defaultSelectionId]=\"obs.prefill?.authenticationPluginConfiguration\"\n [required]=\"true\"\n [loading]=\"!authObs.authenticationPluginSelectItems\"\n ></v-select>\n </ng-container>\n</v-form>\n", styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n"] }]
|
|
2089
|
+
}], ctorParameters: function () { return [{ type: PluginManagementService }, { type: i2.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
|
|
2090
|
+
type: Input
|
|
2091
|
+
}], disabled$: [{
|
|
2092
|
+
type: Input
|
|
2093
|
+
}], pluginId: [{
|
|
2094
|
+
type: Input
|
|
2095
|
+
}], prefillConfiguration$: [{
|
|
2096
|
+
type: Input
|
|
2097
|
+
}], valid: [{
|
|
2098
|
+
type: Output
|
|
2099
|
+
}], configuration: [{
|
|
2100
|
+
type: Output
|
|
2101
|
+
}] } });
|
|
2102
|
+
|
|
2103
|
+
/*
|
|
2104
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2105
|
+
*
|
|
2106
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2107
|
+
* you may not use this file except in compliance with the License.
|
|
2108
|
+
* You may obtain a copy of the License at
|
|
2109
|
+
*
|
|
2110
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2111
|
+
*
|
|
2112
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2113
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2114
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2115
|
+
* See the License for the specific language governing permissions and
|
|
2116
|
+
* limitations under the License.
|
|
2117
|
+
*/
|
|
2118
|
+
class ObjectenApiPluginModule {
|
|
2119
|
+
}
|
|
2120
|
+
ObjectenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2121
|
+
ObjectenApiPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiPluginModule, declarations: [ObjectenApiConfigurationComponent], imports: [CommonModule,
|
|
2122
|
+
PluginTranslatePipeModule,
|
|
2123
|
+
FormModule,
|
|
2124
|
+
InputModule,
|
|
2125
|
+
SelectModule,
|
|
2126
|
+
ParagraphModule], exports: [ObjectenApiConfigurationComponent] });
|
|
2127
|
+
ObjectenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiPluginModule, imports: [[
|
|
2128
|
+
CommonModule,
|
|
2129
|
+
PluginTranslatePipeModule,
|
|
2130
|
+
FormModule,
|
|
2131
|
+
InputModule,
|
|
2132
|
+
SelectModule,
|
|
2133
|
+
ParagraphModule,
|
|
2134
|
+
]] });
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: ObjectenApiPluginModule, decorators: [{
|
|
2136
|
+
type: NgModule,
|
|
2137
|
+
args: [{
|
|
2138
|
+
declarations: [ObjectenApiConfigurationComponent],
|
|
2139
|
+
imports: [
|
|
2140
|
+
CommonModule,
|
|
2141
|
+
PluginTranslatePipeModule,
|
|
2142
|
+
FormModule,
|
|
2143
|
+
InputModule,
|
|
2144
|
+
SelectModule,
|
|
2145
|
+
ParagraphModule,
|
|
2146
|
+
],
|
|
2147
|
+
exports: [ObjectenApiConfigurationComponent],
|
|
2148
|
+
}]
|
|
2149
|
+
}] });
|
|
2150
|
+
|
|
2151
|
+
/*
|
|
2152
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2153
|
+
*
|
|
2154
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2155
|
+
* you may not use this file except in compliance with the License.
|
|
2156
|
+
* You may obtain a copy of the License at
|
|
2157
|
+
*
|
|
2158
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2159
|
+
*
|
|
2160
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2161
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2162
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2163
|
+
* See the License for the specific language governing permissions and
|
|
2164
|
+
* limitations under the License.
|
|
2165
|
+
*/
|
|
2166
|
+
const OBJECTEN_API_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAAA8CAYAAAC+ej5cAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAAB3RJTUUH5ggRCgE1liNZsAAAAAFvck5UAc+id5oAABALSURBVHja7d15tF11dQfwz+/c+15GMEAYAoggqJi8RIsWJ5AhIQzagriw4oSt7XKoWrQWrcsBqC2tdVm7rNRFi0NbsVLrWC0hL5EiyNACShIiMshMQMCEJDzecO+vf+x733Dfve/e9/IylOa71l153HPPOb+z92/v397fvX+HZNvQhWfjBTgcB2IOvoyfbuO1n2lYhD9AHx7Gnbgd92FwRw9mb7wRl+EX2Iwh5Nq/r9vZ0toFcQr6hYwqQmZ34Bs4G/vsiEGU8Fu4G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* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2170
|
+
*
|
|
2171
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2172
|
+
* you may not use this file except in compliance with the License.
|
|
2173
|
+
* You may obtain a copy of the License at
|
|
2174
|
+
*
|
|
2175
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2176
|
+
*
|
|
2177
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2178
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2179
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2180
|
+
* See the License for the specific language governing permissions and
|
|
2181
|
+
* limitations under the License.
|
|
2182
|
+
*/
|
|
2183
|
+
|
|
2184
|
+
/*
|
|
2185
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2186
|
+
*
|
|
2187
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2188
|
+
* you may not use this file except in compliance with the License.
|
|
2189
|
+
* You may obtain a copy of the License at
|
|
2190
|
+
*
|
|
2191
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2192
|
+
*
|
|
2193
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2194
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2195
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2196
|
+
* See the License for the specific language governing permissions and
|
|
2197
|
+
* limitations under the License.
|
|
2198
|
+
*/
|
|
2199
|
+
const objectenApiPluginSpecification = {
|
|
2200
|
+
pluginId: 'objectenapi',
|
|
2201
|
+
pluginConfigurationComponent: ObjectenApiConfigurationComponent,
|
|
2202
|
+
pluginLogoBase64: OBJECTEN_API_PLUGIN_LOGO_BASE64,
|
|
2203
|
+
pluginTranslations: {
|
|
2204
|
+
nl: {
|
|
2205
|
+
title: 'Objecten API',
|
|
2206
|
+
url: 'Objecten API URL',
|
|
2207
|
+
urlTooltip: 'Een URL naar de REST API van Objecten',
|
|
2208
|
+
description: 'Met de Overige Objecten Registratie API-specificaties (Objecten) kunnen gemeenten eenduidig objecten registreren, opslaan en ontsluiten.',
|
|
2209
|
+
configurationTitle: 'Configuratienaam',
|
|
2210
|
+
configurationTitleTooltip: 'Onder deze naam zal de plug-in te herkennen zijn in de rest van de applicatie',
|
|
2211
|
+
authenticationPluginConfiguration: 'Configuratie authenticatie-plug-in',
|
|
2212
|
+
},
|
|
2213
|
+
en: {
|
|
2214
|
+
title: 'Objects API',
|
|
2215
|
+
url: 'Objects API URL',
|
|
2216
|
+
urlTooltip: 'A URL to the REST API of Objects',
|
|
2217
|
+
description: 'With the Other Objects Registration API specifications (Objects), municipalities can unambiguously register, store and access objects.',
|
|
2218
|
+
configurationTitle: 'Configuration name',
|
|
2219
|
+
configurationTitleTooltip: 'With this name the plugin will be recognizable in the rest of the application',
|
|
2220
|
+
authenticationPluginConfiguration: 'Authentication plugin configuration',
|
|
2221
|
+
},
|
|
2222
|
+
de: {
|
|
2223
|
+
title: 'Objecten API',
|
|
2224
|
+
url: 'Objecten API URL',
|
|
2225
|
+
urlTooltip: 'Die URL zur REST API von Objecten',
|
|
2226
|
+
description: 'Mit den Spezifikationen der Other Objects Registration API (Objecten) können Kommunen Objecten eindeutig registrieren, speichern und darauf zugreifen.',
|
|
2227
|
+
configurationTitle: 'Konfigurationsname',
|
|
2228
|
+
configurationTitleTooltip: 'An diesem Namen wird das Plugin im Rest der Anwendung erkennbar sein',
|
|
2229
|
+
authenticationPluginConfiguration: 'Authentifizierungs-Plugin-Konfiguration',
|
|
2230
|
+
},
|
|
2231
|
+
},
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
/*
|
|
2235
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
2236
|
+
*
|
|
2237
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2238
|
+
* you may not use this file except in compliance with the License.
|
|
2239
|
+
* You may obtain a copy of the License at
|
|
2240
|
+
*
|
|
2241
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2242
|
+
*
|
|
2243
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2244
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2245
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2246
|
+
* See the License for the specific language governing permissions and
|
|
2247
|
+
* limitations under the License.
|
|
1237
2248
|
*/
|
|
1238
2249
|
|
|
1239
2250
|
/**
|
|
1240
2251
|
* Generated bundle index. Do not edit.
|
|
1241
2252
|
*/
|
|
1242
2253
|
|
|
1243
|
-
export {
|
|
2254
|
+
export { DocumentenApiConfigurationComponent, DocumentenApiPluginModule, GenerateDocumentConfigurationComponent, LinkDocumentToZaakConfigurationComponent, ObjectTokenAuthencationConfigurationComponent, ObjectTokenAuthenticationPluginModule, ObjectenApiConfigurationComponent, ObjectenApiPluginModule, ObjecttypenApiConfigurationComponent, ObjecttypenApiPluginModule, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginConfigurationContainerComponent, PluginConfigurationContainerModule, PluginManagementService, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, SmartDocumentsConfigurationComponent, SmartDocumentsPluginModule, StoreTempDocumentConfigurationComponent, ZakenApiConfigurationComponent, ZakenApiPluginModule, documentenApiPluginSpecification, objectTokenAuthenticationPluginSpecification, objectenApiPluginSpecification, objecttypenApiPluginSpecification, openZaakPluginSpecification, smartDocumentsPluginSpecification, zakenApiPluginSpecification };
|
|
1244
2255
|
//# sourceMappingURL=valtimo-plugin.mjs.map
|