@valtimo/plugin 5.2.0 → 5.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/esm2020/lib/components/plugin-configuration-container/plugin-configuration-container.component.mjs +131 -0
  2. package/esm2020/lib/components/plugin-configuration-container/plugin-configuration-container.module.mjs +35 -0
  3. package/esm2020/lib/constants/index.mjs +6 -2
  4. package/esm2020/lib/constants/injection-tokens.mjs +6 -2
  5. package/esm2020/lib/models/index.mjs +6 -2
  6. package/esm2020/lib/models/plugin.mjs +6 -2
  7. package/esm2020/lib/pipes/index.mjs +6 -2
  8. package/esm2020/lib/pipes/plugin-translate/index.mjs +6 -2
  9. package/esm2020/lib/pipes/plugin-translate/plugin-translate-pipe.module.mjs +10 -6
  10. package/esm2020/lib/pipes/plugin-translate/plugin-translate.pipe.mjs +9 -5
  11. package/esm2020/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.mjs +18 -0
  12. package/esm2020/lib/plugins/documenten-api/assets/index.mjs +17 -0
  13. package/esm2020/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.mjs +72 -0
  14. package/esm2020/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.mjs +96 -0
  15. package/esm2020/lib/plugins/documenten-api/documenten-api-plugin.module.mjs +36 -0
  16. package/esm2020/lib/plugins/documenten-api/documenten-api-plugin.specification.mjs +81 -0
  17. package/esm2020/lib/plugins/documenten-api/models/config.mjs +17 -0
  18. package/esm2020/lib/plugins/documenten-api/models/index.mjs +17 -0
  19. package/esm2020/lib/plugins/open-zaak/assets/index.mjs +6 -2
  20. package/esm2020/lib/plugins/open-zaak/assets/open-zaak-plugin-logo.mjs +6 -2
  21. package/esm2020/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.mjs +39 -12
  22. package/esm2020/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.mjs +49 -11
  23. package/esm2020/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.mjs +65 -0
  24. package/esm2020/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.mjs +58 -12
  25. package/esm2020/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.mjs +68 -12
  26. package/esm2020/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.mjs +63 -12
  27. package/esm2020/lib/plugins/open-zaak/models/config.mjs +17 -0
  28. package/esm2020/lib/plugins/open-zaak/models/index.mjs +17 -0
  29. package/esm2020/lib/plugins/open-zaak/open-zaak-plugin.module.mjs +40 -9
  30. package/esm2020/lib/plugins/open-zaak/open-zaak-plugin.specification.mjs +48 -2
  31. package/esm2020/lib/plugins/smart-documents/assets/index.mjs +17 -0
  32. package/esm2020/lib/plugins/smart-documents/assets/smart-documents-plugin-logo.mjs +18 -0
  33. package/esm2020/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.mjs +83 -0
  34. package/esm2020/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.mjs +75 -0
  35. package/esm2020/lib/plugins/smart-documents/models/config.mjs +17 -0
  36. package/esm2020/lib/plugins/smart-documents/models/index.mjs +17 -0
  37. package/esm2020/lib/plugins/smart-documents/smart-documents-plugin.module.mjs +58 -0
  38. package/esm2020/lib/plugins/smart-documents/smart-documents-plugin.specification.mjs +78 -0
  39. package/esm2020/lib/services/index.mjs +6 -2
  40. package/esm2020/lib/services/plugin-translation.service.mjs +9 -5
  41. package/esm2020/lib/services/plugin.service.mjs +4 -4
  42. package/esm2020/public-api.mjs +20 -2
  43. package/fesm2015/valtimo-plugin.mjs +1233 -88
  44. package/fesm2015/valtimo-plugin.mjs.map +1 -1
  45. package/fesm2020/valtimo-plugin.mjs +1220 -89
  46. package/fesm2020/valtimo-plugin.mjs.map +1 -1
  47. package/lib/components/plugin-configuration-container/plugin-configuration-container.component.d.ts +34 -0
  48. package/lib/components/plugin-configuration-container/plugin-configuration-container.component.d.ts.map +1 -0
  49. package/lib/components/plugin-configuration-container/plugin-configuration-container.module.d.ts +11 -0
  50. package/lib/components/plugin-configuration-container/plugin-configuration-container.module.d.ts.map +1 -0
  51. package/lib/constants/index.d.ts.map +1 -1
  52. package/lib/constants/injection-tokens.d.ts.map +1 -1
  53. package/lib/models/index.d.ts.map +1 -1
  54. package/lib/models/plugin.d.ts +23 -7
  55. package/lib/models/plugin.d.ts.map +1 -1
  56. package/lib/pipes/index.d.ts.map +1 -1
  57. package/lib/pipes/plugin-translate/index.d.ts.map +1 -1
  58. package/lib/pipes/plugin-translate/plugin-translate-pipe.module.d.ts.map +1 -1
  59. package/lib/pipes/plugin-translate/plugin-translate.pipe.d.ts.map +1 -1
  60. package/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.d.ts +3 -0
  61. package/lib/plugins/documenten-api/assets/documenten-api-plugin-logo.d.ts.map +1 -0
  62. package/lib/plugins/documenten-api/assets/index.d.ts +2 -0
  63. package/lib/plugins/documenten-api/assets/index.d.ts.map +1 -0
  64. package/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.d.ts +23 -0
  65. package/lib/plugins/documenten-api/components/documenten-api-configuration/documenten-api-configuration.component.d.ts.map +1 -0
  66. package/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.d.ts +39 -0
  67. package/lib/plugins/documenten-api/components/store-temp-document/store-temp-document-configuration.component.d.ts.map +1 -0
  68. package/lib/plugins/documenten-api/documenten-api-plugin.module.d.ts +12 -0
  69. package/lib/plugins/documenten-api/documenten-api-plugin.module.d.ts.map +1 -0
  70. package/lib/plugins/documenten-api/documenten-api-plugin.specification.d.ts +4 -0
  71. package/lib/plugins/documenten-api/documenten-api-plugin.specification.d.ts.map +1 -0
  72. package/lib/plugins/documenten-api/models/config.d.ts +15 -0
  73. package/lib/plugins/documenten-api/models/config.d.ts.map +1 -0
  74. package/lib/plugins/documenten-api/models/index.d.ts +2 -0
  75. package/lib/plugins/documenten-api/models/index.d.ts.map +1 -0
  76. package/lib/plugins/open-zaak/assets/index.d.ts.map +1 -1
  77. package/lib/plugins/open-zaak/assets/open-zaak-plugin-logo.d.ts.map +1 -1
  78. package/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.d.ts +15 -9
  79. package/lib/plugins/open-zaak/components/create-zaak-configuration/create-zaak-configuration.component.d.ts.map +1 -1
  80. package/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.d.ts +15 -7
  81. package/lib/plugins/open-zaak/components/open-zaak-configuration/open-zaak-configuration.component.d.ts.map +1 -1
  82. package/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.d.ts +23 -0
  83. package/lib/plugins/open-zaak/components/select-zaak-type/select-zaak-type.component.d.ts.map +1 -0
  84. package/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.d.ts +22 -9
  85. package/lib/plugins/open-zaak/components/set-besluit-configuration/set-besluit-configuration.component.d.ts.map +1 -1
  86. package/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.d.ts +22 -9
  87. package/lib/plugins/open-zaak/components/set-resultaat-configuration/set-resultaat-configuration.component.d.ts.map +1 -1
  88. package/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.d.ts +22 -9
  89. package/lib/plugins/open-zaak/components/set-status-configuration/set-status-configuration.component.d.ts.map +1 -1
  90. package/lib/plugins/open-zaak/models/config.d.ts +11 -0
  91. package/lib/plugins/open-zaak/models/config.d.ts.map +1 -0
  92. package/lib/plugins/open-zaak/models/index.d.ts +2 -0
  93. package/lib/plugins/open-zaak/models/index.d.ts.map +1 -0
  94. package/lib/plugins/open-zaak/open-zaak-plugin.module.d.ts +5 -3
  95. package/lib/plugins/open-zaak/open-zaak-plugin.module.d.ts.map +1 -1
  96. package/lib/plugins/open-zaak/open-zaak-plugin.specification.d.ts.map +1 -1
  97. package/lib/plugins/smart-documents/assets/index.d.ts +2 -0
  98. package/lib/plugins/smart-documents/assets/index.d.ts.map +1 -0
  99. package/lib/plugins/smart-documents/assets/smart-documents-plugin-logo.d.ts +3 -0
  100. package/lib/plugins/smart-documents/assets/smart-documents-plugin-logo.d.ts.map +1 -0
  101. package/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.d.ts +29 -0
  102. package/lib/plugins/smart-documents/components/generate-document-configuration/generate-document-configuration.component.d.ts.map +1 -0
  103. package/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.d.ts +23 -0
  104. package/lib/plugins/smart-documents/components/smart-documents-configuration/smart-documents-configuration.component.d.ts.map +1 -0
  105. package/lib/plugins/smart-documents/models/config.d.ts +19 -0
  106. package/lib/plugins/smart-documents/models/config.d.ts.map +1 -0
  107. package/lib/plugins/smart-documents/models/index.d.ts +2 -0
  108. package/lib/plugins/smart-documents/models/index.d.ts.map +1 -0
  109. package/lib/plugins/smart-documents/smart-documents-plugin.module.d.ts +12 -0
  110. package/lib/plugins/smart-documents/smart-documents-plugin.module.d.ts.map +1 -0
  111. package/lib/plugins/smart-documents/smart-documents-plugin.specification.d.ts +4 -0
  112. package/lib/plugins/smart-documents/smart-documents-plugin.specification.d.ts.map +1 -0
  113. package/lib/services/index.d.ts.map +1 -1
  114. package/lib/services/plugin-translation.service.d.ts.map +1 -1
  115. package/package.json +1 -1
  116. package/public-api.d.ts +11 -0
  117. package/public-api.d.ts.map +1 -1
@@ -1,12 +1,14 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, Inject, Pipe, NgModule, EventEmitter, Component, Input, Output } from '@angular/core';
3
- import { BehaviorSubject, combineLatest } from 'rxjs';
4
- import { map } from 'rxjs/operators';
2
+ import { InjectionToken, Injectable, Inject, Pipe, NgModule, EventEmitter, ViewContainerRef, Component, ViewChild, Input, Output } from '@angular/core';
3
+ import { BehaviorSubject, combineLatest, take, of, Subject, map as map$1 } from 'rxjs';
4
+ import { map, tap, switchMap } from 'rxjs/operators';
5
5
  import * as i1 from '@ngx-translate/core';
6
6
  import { TranslateModule } from '@ngx-translate/core';
7
- import { CommonModule } from '@angular/common';
8
7
  import * as i1$1 from '@valtimo/user-interface';
9
- import { TitleModule } from '@valtimo/user-interface';
8
+ import { ParagraphModule, TitleModule, FormModule, InputModule, SelectModule, InputLabelModule, MultiInputModule } from '@valtimo/user-interface';
9
+ import * as i2 from '@angular/common';
10
+ import { CommonModule } from '@angular/common';
11
+ import * as i1$2 from '@valtimo/resource';
10
12
 
11
13
  /*
12
14
  * Copyright 2015-2020 Ritense BV, the Netherlands.
@@ -17,7 +19,11 @@ import { TitleModule } from '@valtimo/user-interface';
17
19
  *
18
20
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
19
21
  *
20
- * 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.
22
+ * Unless required by applicable law or agreed to in writing, software
23
+ * distributed under the License is distributed on an "AS IS" basis,
24
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
25
+ * See the License for the specific language governing permissions and
26
+ * limitations under the License.
21
27
  */
22
28
  const PLUGINS_TOKEN = new InjectionToken('Provide plugin config; an array of plugin specifications.');
23
29
 
@@ -30,7 +36,11 @@ const PLUGINS_TOKEN = new InjectionToken('Provide plugin config; an array of plu
30
36
  *
31
37
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
32
38
  *
33
- * 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.
39
+ * Unless required by applicable law or agreed to in writing, software
40
+ * distributed under the License is distributed on an "AS IS" basis,
41
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
42
+ * See the License for the specific language governing permissions and
43
+ * limitations under the License.
34
44
  */
35
45
 
36
46
  /*
@@ -65,9 +75,9 @@ class PluginService {
65
75
  return this._availablePluginIds$;
66
76
  }
67
77
  }
68
- PluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, deps: [{ token: PLUGINS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
69
- PluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, providedIn: 'root' });
70
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginService, decorators: [{
78
+ PluginService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, deps: [{ token: PLUGINS_TOKEN }], target: i0.ɵɵFactoryTarget.Injectable });
79
+ PluginService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, providedIn: 'root' });
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginService, decorators: [{
71
81
  type: Injectable,
72
82
  args: [{
73
83
  providedIn: 'root',
@@ -86,7 +96,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
86
96
  *
87
97
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
88
98
  *
89
- * 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.
99
+ * Unless required by applicable law or agreed to in writing, software
100
+ * distributed under the License is distributed on an "AS IS" basis,
101
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
102
+ * See the License for the specific language governing permissions and
103
+ * limitations under the License.
90
104
  */
91
105
  class PluginTranslationService {
92
106
  constructor(translateService, pluginService) {
@@ -109,9 +123,9 @@ class PluginTranslationService {
109
123
  return translation || `${pluginDefinitionKey}.${translateKey}`;
110
124
  }
111
125
  }
112
- PluginTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslationService, deps: [{ token: i1.TranslateService }, { token: PluginService }], target: i0.ɵɵFactoryTarget.Injectable });
113
- PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslationService, providedIn: 'root' });
114
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslationService, decorators: [{
126
+ PluginTranslationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, deps: [{ token: i1.TranslateService }, { token: PluginService }], target: i0.ɵɵFactoryTarget.Injectable });
127
+ PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, providedIn: 'root' });
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, decorators: [{
115
129
  type: Injectable,
116
130
  args: [{
117
131
  providedIn: 'root',
@@ -127,7 +141,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
127
141
  *
128
142
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
129
143
  *
130
- * 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.
144
+ * Unless required by applicable law or agreed to in writing, software
145
+ * distributed under the License is distributed on an "AS IS" basis,
146
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
147
+ * See the License for the specific language governing permissions and
148
+ * limitations under the License.
131
149
  */
132
150
 
133
151
  /*
@@ -139,7 +157,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
139
157
  *
140
158
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
141
159
  *
142
- * 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.
160
+ * Unless required by applicable law or agreed to in writing, software
161
+ * distributed under the License is distributed on an "AS IS" basis,
162
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
163
+ * See the License for the specific language governing permissions and
164
+ * limitations under the License.
143
165
  */
144
166
 
145
167
  /*
@@ -151,7 +173,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
151
173
  *
152
174
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
153
175
  *
154
- * 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.
176
+ * Unless required by applicable law or agreed to in writing, software
177
+ * distributed under the License is distributed on an "AS IS" basis,
178
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
179
+ * See the License for the specific language governing permissions and
180
+ * limitations under the License.
155
181
  */
156
182
 
157
183
  /*
@@ -163,7 +189,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
163
189
  *
164
190
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
165
191
  *
166
- * 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.
192
+ * Unless required by applicable law or agreed to in writing, software
193
+ * distributed under the License is distributed on an "AS IS" basis,
194
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
195
+ * See the License for the specific language governing permissions and
196
+ * limitations under the License.
167
197
  */
168
198
  class PluginTranslatePipe {
169
199
  constructor(pluginTranslationService, pluginService) {
@@ -174,9 +204,9 @@ class PluginTranslatePipe {
174
204
  return this.pluginTranslationService.translate(translateKey, pluginDefinitionKey);
175
205
  }
176
206
  }
177
- PluginTranslatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipe, deps: [{ token: PluginTranslationService }, { token: PluginService }], target: i0.ɵɵFactoryTarget.Pipe });
178
- PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipe, name: "pluginTranslate" });
179
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipe, decorators: [{
207
+ 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 });
208
+ PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, name: "pluginTranslate" });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, decorators: [{
180
210
  type: Pipe,
181
211
  args: [{
182
212
  name: 'pluginTranslate',
@@ -192,14 +222,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
192
222
  *
193
223
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
194
224
  *
195
- * 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.
225
+ * Unless required by applicable law or agreed to in writing, software
226
+ * distributed under the License is distributed on an "AS IS" basis,
227
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
228
+ * See the License for the specific language governing permissions and
229
+ * limitations under the License.
196
230
  */
197
231
  class PluginTranslatePipeModule {
198
232
  }
199
- PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
200
- PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, declarations: [PluginTranslatePipe], imports: [TranslateModule], exports: [PluginTranslatePipe] });
201
- PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, imports: [[TranslateModule]] });
202
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, decorators: [{
233
+ PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
234
+ PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, declarations: [PluginTranslatePipe], imports: [TranslateModule], exports: [PluginTranslatePipe] });
235
+ PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, imports: [[TranslateModule]] });
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, decorators: [{
203
237
  type: NgModule,
204
238
  args: [{
205
239
  imports: [TranslateModule],
@@ -217,7 +251,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
217
251
  *
218
252
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
219
253
  *
220
- * 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.
254
+ * Unless required by applicable law or agreed to in writing, software
255
+ * distributed under the License is distributed on an "AS IS" basis,
256
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
257
+ * See the License for the specific language governing permissions and
258
+ * limitations under the License.
221
259
  */
222
260
 
223
261
  /*
@@ -229,7 +267,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
229
267
  *
230
268
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
231
269
  *
232
- * 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.
270
+ * Unless required by applicable law or agreed to in writing, software
271
+ * distributed under the License is distributed on an "AS IS" basis,
272
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
273
+ * See the License for the specific language governing permissions and
274
+ * limitations under the License.
233
275
  */
234
276
 
235
277
  /*
@@ -241,26 +283,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
241
283
  *
242
284
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
243
285
  *
244
- * 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.
286
+ * Unless required by applicable law or agreed to in writing, software
287
+ * distributed under the License is distributed on an "AS IS" basis,
288
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
289
+ * See the License for the specific language governing permissions and
290
+ * limitations under the License.
245
291
  */
246
- class OpenZaakConfigurationComponent {
247
- constructor() {
292
+ class PluginConfigurationContainerComponent {
293
+ constructor(pluginService) {
294
+ this.pluginService = pluginService;
248
295
  this.valid = new EventEmitter();
249
296
  this.configuration = new EventEmitter();
297
+ this.noConfigurationComponentAvailable$ = new BehaviorSubject(false);
298
+ this.componentRef$ = new BehaviorSubject(undefined);
299
+ this._componentType = new BehaviorSubject(null);
300
+ this._pluginDefinitionKey = new BehaviorSubject('');
301
+ this._functionKey = new BehaviorSubject('');
302
+ }
303
+ set type(type) {
304
+ this._componentType.next(type);
305
+ }
306
+ set pluginDefinitionKey(key) {
307
+ this._pluginDefinitionKey.next(key);
308
+ }
309
+ set functionKey(key) {
310
+ this._functionKey.next(key);
311
+ }
312
+ ngOnInit() {
313
+ this.openPluginSubscription();
314
+ this.openComponentInstanceSubscription();
315
+ }
316
+ ngOnDestroy() {
317
+ this.pluginSubscription?.unsubscribe();
318
+ this.componentRefSubscription?.unsubscribe();
319
+ }
320
+ openPluginSubscription() {
321
+ this.pluginSubscription = combineLatest([
322
+ this._pluginDefinitionKey,
323
+ this._functionKey,
324
+ this._componentType,
325
+ this.pluginService.pluginSpecifications$,
326
+ ])
327
+ .pipe(tap(([pluginDefinitionKey, functionKey, componentType, pluginSpecifications]) => {
328
+ let configurationComponent;
329
+ this.dynamicContainer.clear();
330
+ if (componentType === 'configuration' && pluginDefinitionKey) {
331
+ configurationComponent = pluginSpecifications.find(specification => specification.pluginId === pluginDefinitionKey)?.pluginConfigurationComponent;
332
+ }
333
+ else if (componentType === 'function' && pluginDefinitionKey && functionKey) {
334
+ const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginDefinitionKey);
335
+ configurationComponent =
336
+ pluginSpecification?.functionConfigurationComponents[functionKey];
337
+ }
338
+ if (configurationComponent) {
339
+ const componentRef = this.dynamicContainer.createComponent(configurationComponent);
340
+ this.componentRef$.next(componentRef);
341
+ this.noConfigurationComponentAvailable$.next(false);
342
+ }
343
+ else {
344
+ this.noConfigurationComponentAvailable$.next(true);
345
+ }
346
+ }))
347
+ .subscribe();
348
+ }
349
+ openComponentInstanceSubscription() {
350
+ this.componentRefSubscription = combineLatest([
351
+ this.componentRef$,
352
+ this._pluginDefinitionKey,
353
+ ]).subscribe(([ref, pluginDefinitionKey]) => {
354
+ const instance = ref?.instance;
355
+ this.configurationSubscription?.unsubscribe();
356
+ this.validSubscription?.unsubscribe();
357
+ if (instance) {
358
+ instance.save$ = this.save$;
359
+ instance.disabled$ = this.disabled$;
360
+ instance.pluginId = pluginDefinitionKey;
361
+ if (this.prefillConfiguration$) {
362
+ instance.prefillConfiguration$ = this.prefillConfiguration$;
363
+ }
364
+ this.validSubscription = instance.valid.subscribe(valid => {
365
+ this.valid.emit(valid);
366
+ });
367
+ this.configurationSubscription = instance.configuration.subscribe(configuration => {
368
+ this.configuration.emit(configuration);
369
+ });
370
+ }
371
+ });
250
372
  }
251
373
  }
252
- OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
253
- OpenZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: OpenZaakConfigurationComponent, selector: "valtimo-open-zaak-configuration", inputs: { clear$: "clear$", save$: "save$", disabled: "disabled", error: "error" }, 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-title>open zaak config works</v-title>\n", styles: [""], components: [{ type: i1$1.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }] });
254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakConfigurationComponent, decorators: [{
374
+ PluginConfigurationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, deps: [{ token: PluginService }], target: i0.ɵɵFactoryTarget.Component });
375
+ 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: i1$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "translate": i1.TranslatePipe } });
376
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, decorators: [{
255
377
  type: Component,
256
- 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-title>open zaak config works</v-title>\n", styles: [""] }]
257
- }], propDecorators: { clear$: [{
378
+ 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"] }]
379
+ }], ctorParameters: function () { return [{ type: PluginService }]; }, propDecorators: { dynamicContainer: [{
380
+ type: ViewChild,
381
+ args: ['pluginConfigurationComponent', { static: true, read: ViewContainerRef }]
382
+ }], type: [{
383
+ type: Input
384
+ }], pluginDefinitionKey: [{
385
+ type: Input
386
+ }], functionKey: [{
258
387
  type: Input
259
388
  }], save$: [{
260
389
  type: Input
261
- }], disabled: [{
390
+ }], disabled$: [{
262
391
  type: Input
263
- }], error: [{
392
+ }], prefillConfiguration$: [{
264
393
  type: Input
265
394
  }], valid: [{
266
395
  type: Output
@@ -277,26 +406,206 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
277
406
  *
278
407
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
279
408
  *
280
- * 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.
409
+ * Unless required by applicable law or agreed to in writing, software
410
+ * distributed under the License is distributed on an "AS IS" basis,
411
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
412
+ * See the License for the specific language governing permissions and
413
+ * limitations under the License.
281
414
  */
282
- class CreateZaakConfigurationComponent {
415
+ class PluginConfigurationContainerModule {
416
+ }
417
+ PluginConfigurationContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
418
+ PluginConfigurationContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, declarations: [PluginConfigurationContainerComponent], imports: [CommonModule, ParagraphModule, TranslateModule], exports: [PluginConfigurationContainerComponent] });
419
+ PluginConfigurationContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, imports: [[CommonModule, ParagraphModule, TranslateModule]] });
420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, decorators: [{
421
+ type: NgModule,
422
+ args: [{
423
+ declarations: [PluginConfigurationContainerComponent],
424
+ imports: [CommonModule, ParagraphModule, TranslateModule],
425
+ exports: [PluginConfigurationContainerComponent],
426
+ }]
427
+ }] });
428
+
429
+ /*
430
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
431
+ *
432
+ * Licensed under EUPL, Version 1.2 (the "License");
433
+ * you may not use this file except in compliance with the License.
434
+ * You may obtain a copy of the License at
435
+ *
436
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
437
+ *
438
+ * Unless required by applicable law or agreed to in writing, software
439
+ * distributed under the License is distributed on an "AS IS" basis,
440
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
441
+ * See the License for the specific language governing permissions and
442
+ * limitations under the License.
443
+ */
444
+ class OpenZaakConfigurationComponent {
283
445
  constructor() {
284
446
  this.valid = new EventEmitter();
285
447
  this.configuration = new EventEmitter();
448
+ this.formValue$ = new BehaviorSubject(null);
449
+ this.valid$ = new BehaviorSubject(false);
450
+ }
451
+ ngOnInit() {
452
+ this.openSaveSubscription();
453
+ }
454
+ ngOnDestroy() {
455
+ this.saveSubscription?.unsubscribe();
456
+ }
457
+ formValueChange(formValue) {
458
+ this.formValue$.next(formValue);
459
+ this.handleValid(formValue);
460
+ }
461
+ handleValid(formValue) {
462
+ const valid = !!(formValue.configurationTitle &&
463
+ formValue.url &&
464
+ formValue.catalogusUrl &&
465
+ formValue.rsin &&
466
+ formValue.secret &&
467
+ formValue.clientId);
468
+ this.valid$.next(valid);
469
+ this.valid.emit(valid);
470
+ }
471
+ openSaveSubscription() {
472
+ this.saveSubscription = this.save$?.subscribe(save => {
473
+ combineLatest([this.formValue$, this.valid$])
474
+ .pipe(take(1))
475
+ .subscribe(([formValue, valid]) => {
476
+ if (valid) {
477
+ this.configuration.emit(formValue);
478
+ }
479
+ });
480
+ });
286
481
  }
287
482
  }
288
- CreateZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
289
- 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" }, 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-title>create-zaak function config works</v-title>\n", styles: [""], components: [{ type: i1$1.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }] });
290
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, decorators: [{
483
+ OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
484
+ 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" }, 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\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 >\n </v-input>\n <v-input\n name=\"clientId\"\n [title]=\"'clientId' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"secret\"\n type=\"password\"\n [title]=\"'secret' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"rsin\"\n [title]=\"'rsin' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"catalogusUrl\"\n [title]=\"'catalogusUrl' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\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: i1$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required"], outputs: ["valueChange"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
485
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, decorators: [{
291
486
  type: Component,
292
- 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<v-title>create-zaak function config works</v-title>\n", styles: [""] }]
293
- }], propDecorators: { clear$: [{
487
+ 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\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 >\n </v-input>\n <v-input\n name=\"clientId\"\n [title]=\"'clientId' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"secret\"\n type=\"password\"\n [title]=\"'secret' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"rsin\"\n [title]=\"'rsin' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n >\n </v-input>\n <v-input\n name=\"catalogusUrl\"\n [title]=\"'catalogusUrl' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\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"] }]
488
+ }], propDecorators: { save$: [{
294
489
  type: Input
295
- }], save$: [{
490
+ }], disabled$: [{
491
+ type: Input
492
+ }], pluginId: [{
493
+ type: Input
494
+ }], valid: [{
495
+ type: Output
496
+ }], configuration: [{
497
+ type: Output
498
+ }] } });
499
+
500
+ /*
501
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
502
+ *
503
+ * Licensed under EUPL, Version 1.2 (the "License");
504
+ * you may not use this file except in compliance with the License.
505
+ * You may obtain a copy of the License at
506
+ *
507
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
508
+ *
509
+ * Unless required by applicable law or agreed to in writing, software
510
+ * distributed under the License is distributed on an "AS IS" basis,
511
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
512
+ * See the License for the specific language governing permissions and
513
+ * limitations under the License.
514
+ */
515
+ class SelectZaakTypeComponent {
516
+ constructor(openZaakService, modalService, pluginTranslationService) {
517
+ this.openZaakService = openZaakService;
518
+ this.modalService = modalService;
519
+ this.pluginTranslationService = pluginTranslationService;
520
+ this.zaakTypeSelected = new EventEmitter();
521
+ this.zaakTypeLinks$ = this.modalService.modalData$.pipe(switchMap(modalData => {
522
+ if (modalData?.processDefinitionKey) {
523
+ return this.openZaakService.getZaakTypeLinkListByProcess(modalData?.processDefinitionKey);
524
+ }
525
+ else {
526
+ return of(null);
527
+ }
528
+ }));
529
+ this.zaakTypeLinkSelectItems$ = this.zaakTypeLinks$.pipe(map(zaakTypeLinks => zaakTypeLinks?.map(link => ({
530
+ id: link.zaakTypeUrl,
531
+ text: link.documentDefinitionName,
532
+ }))));
533
+ this.selectedZaakTypeUrl$ = new BehaviorSubject('');
534
+ this.selectedZaakType$ = combineLatest([
535
+ this.selectedZaakTypeUrl$,
536
+ this.openZaakService.getZaakTypes(),
537
+ ]).pipe(map(([selectedZaakTypeUrl, zaakTypes]) => zaakTypes.find(zaakType => zaakType.url === selectedZaakTypeUrl)), tap(selectedZaakType => this.zaakTypeSelected.emit(selectedZaakType)));
538
+ }
539
+ selectZaakTypeLink(zaakTypeUrl) {
540
+ this.selectedZaakTypeUrl$.next(zaakTypeUrl);
541
+ }
542
+ }
543
+ SelectZaakTypeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectZaakTypeComponent, deps: [{ token: i1$2.OpenZaakService }, { token: i1$1.ModalService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
544
+ SelectZaakTypeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: { pluginId: "pluginId", disabled: "disabled" }, outputs: { zaakTypeSelected: "zaakTypeSelected" }, 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-container\n *ngIf=\"{\n zaakTypeLinkSelectItems: zaakTypeLinkSelectItems$ | async,\n selectedZaakType: selectedZaakType$ | async\n } as obs\"\n>\n <v-select\n (selectedChange)=\"selectZaakTypeLink($event)\"\n [items]=\"obs.zaakTypeLinkSelectItems\"\n [disabled]=\"!obs.zaakTypeLinkSelectItems || disabled\"\n [notFoundText]=\"'noZaakTypeLinksFound' | pluginTranslate: pluginId | async\"\n [title]=\"'documentDefinition' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n ></v-select>\n <div class=\"selected-zaak-type\">\n <v-input-label [title]=\"'zaakType' | pluginTranslate: pluginId | async\"></v-input-label>\n <v-paragraph *ngIf=\"obs.selectedZaakType?.omschrijving; else noSelectedZaakType\">{{\n obs.selectedZaakType.omschrijving\n }}</v-paragraph>\n </div>\n</ng-container>\n\n<ng-template #noSelectedZaakType>\n <v-paragraph>{{ 'noZaakTypeSelected' | pluginTranslate: pluginId | async }}</v-paragraph>\n</ng-template>\n", styles: [".selected-zaak-type{margin-block-end:var(--v-input-margin)}\n"], components: [{ type: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }, { type: i1$1.InputLabelComponent, selector: "v-input-label", inputs: ["name", "title", "titleTranslationKey", "tooltip", "required"] }, { type: i1$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
545
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectZaakTypeComponent, decorators: [{
546
+ type: Component,
547
+ args: [{ selector: 'valtimo-select-zaak-type', 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-container\n *ngIf=\"{\n zaakTypeLinkSelectItems: zaakTypeLinkSelectItems$ | async,\n selectedZaakType: selectedZaakType$ | async\n } as obs\"\n>\n <v-select\n (selectedChange)=\"selectZaakTypeLink($event)\"\n [items]=\"obs.zaakTypeLinkSelectItems\"\n [disabled]=\"!obs.zaakTypeLinkSelectItems || disabled\"\n [notFoundText]=\"'noZaakTypeLinksFound' | pluginTranslate: pluginId | async\"\n [title]=\"'documentDefinition' | pluginTranslate: pluginId | async\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n ></v-select>\n <div class=\"selected-zaak-type\">\n <v-input-label [title]=\"'zaakType' | pluginTranslate: pluginId | async\"></v-input-label>\n <v-paragraph *ngIf=\"obs.selectedZaakType?.omschrijving; else noSelectedZaakType\">{{\n obs.selectedZaakType.omschrijving\n }}</v-paragraph>\n </div>\n</ng-container>\n\n<ng-template #noSelectedZaakType>\n <v-paragraph>{{ 'noZaakTypeSelected' | pluginTranslate: pluginId | async }}</v-paragraph>\n</ng-template>\n", styles: [".selected-zaak-type{margin-block-end:var(--v-input-margin)}\n"] }]
548
+ }], ctorParameters: function () { return [{ type: i1$2.OpenZaakService }, { type: i1$1.ModalService }, { type: PluginTranslationService }]; }, propDecorators: { pluginId: [{
296
549
  type: Input
297
550
  }], disabled: [{
298
551
  type: Input
299
- }], error: [{
552
+ }], zaakTypeSelected: [{
553
+ type: Output
554
+ }] } });
555
+
556
+ /*
557
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
558
+ *
559
+ * Licensed under EUPL, Version 1.2 (the "License");
560
+ * you may not use this file except in compliance with the License.
561
+ * You may obtain a copy of the License at
562
+ *
563
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
564
+ *
565
+ * Unless required by applicable law or agreed to in writing, software
566
+ * distributed under the License is distributed on an "AS IS" basis,
567
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
568
+ * See the License for the specific language governing permissions and
569
+ * limitations under the License.
570
+ */
571
+ class CreateZaakConfigurationComponent {
572
+ constructor() {
573
+ this.valid = new EventEmitter();
574
+ this.configuration = new EventEmitter();
575
+ this.selectedZaakType$ = new BehaviorSubject(null);
576
+ }
577
+ ngOnInit() {
578
+ this.openValidSubscription();
579
+ }
580
+ ngOnDestroy() {
581
+ this.validSubscription?.unsubscribe();
582
+ }
583
+ selectZaakType(zaakType) {
584
+ this.selectedZaakType$.next(zaakType);
585
+ }
586
+ openValidSubscription() {
587
+ this.validSubscription = combineLatest([this.selectedZaakType$])
588
+ .pipe(tap(([zaakType]) => {
589
+ if (zaakType) {
590
+ this.valid.emit(true);
591
+ }
592
+ else {
593
+ this.valid.emit(false);
594
+ }
595
+ }))
596
+ .subscribe();
597
+ }
598
+ }
599
+ CreateZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CreateZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
600
+ CreateZaakConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: CreateZaakConfigurationComponent, selector: "valtimo-create-zaak-configuration", inputs: { save$: "save$", disabled$: "disabled$", 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$ | async\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n", styles: [""], components: [{ type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: ["pluginId", "disabled"], outputs: ["zaakTypeSelected"] }], pipes: { "async": i2.AsyncPipe } });
601
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CreateZaakConfigurationComponent, decorators: [{
602
+ type: Component,
603
+ 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$ | async\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n", styles: [""] }]
604
+ }], propDecorators: { save$: [{
605
+ type: Input
606
+ }], disabled$: [{
607
+ type: Input
608
+ }], pluginId: [{
300
609
  type: Input
301
610
  }], valid: [{
302
611
  type: Output
@@ -313,26 +622,67 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
313
622
  *
314
623
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
315
624
  *
316
- * 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.
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.
317
630
  */
318
631
  class SetBesluitConfigurationComponent {
319
632
  constructor() {
320
633
  this.valid = new EventEmitter();
321
634
  this.configuration = new EventEmitter();
635
+ this.selectedBesluit$ = new BehaviorSubject('');
636
+ this.selectedZaakType$ = new BehaviorSubject(null);
637
+ this.BESLUITEN = ['test besluit', 'test besluit met document'];
638
+ this.besluitSelectItems = this.BESLUITEN.map(besluit => ({
639
+ id: besluit,
640
+ text: besluit,
641
+ }));
642
+ this.clearSubject$ = new Subject();
643
+ }
644
+ ngOnInit() {
645
+ this.openValidSubscription();
646
+ }
647
+ ngOnDestroy() {
648
+ this.validSubscription?.unsubscribe();
649
+ }
650
+ selectZaakType(zaakType) {
651
+ this.selectedZaakType$.next(zaakType);
652
+ if (!zaakType) {
653
+ this.clearBesluit();
654
+ }
655
+ }
656
+ clearBesluit() {
657
+ this.selectedBesluit$.next('');
658
+ this.clearSubject$.next(null);
659
+ }
660
+ selectBesluit(besluit) {
661
+ this.selectedBesluit$.next(besluit);
662
+ }
663
+ openValidSubscription() {
664
+ this.validSubscription = combineLatest([this.selectedBesluit$, this.selectedZaakType$])
665
+ .pipe(tap(([besluit, zaakType]) => {
666
+ if (besluit && zaakType) {
667
+ this.valid.emit(true);
668
+ }
669
+ else {
670
+ this.valid.emit(false);
671
+ }
672
+ }))
673
+ .subscribe();
322
674
  }
323
675
  }
324
- SetBesluitConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
325
- 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" }, 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-title>set-besluit function config works</v-title>\n", styles: [""], components: [{ type: i1$1.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }] });
326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, decorators: [{
676
+ SetBesluitConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetBesluitConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
677
+ SetBesluitConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SetBesluitConfigurationComponent, selector: "valtimo-set-besluit-configuration", inputs: { save$: "save$", disabled$: "disabled$", 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$ | async\"\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$ | async)\"\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: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
678
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetBesluitConfigurationComponent, decorators: [{
327
679
  type: Component,
328
- 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<v-title>set-besluit function config works</v-title>\n", styles: [""] }]
329
- }], propDecorators: { clear$: [{
330
- type: Input
331
- }], save$: [{
680
+ 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$ | async\"\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$ | async)\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectBesluit($event)\"\n></v-select>\n", styles: [""] }]
681
+ }], propDecorators: { save$: [{
332
682
  type: Input
333
- }], disabled: [{
683
+ }], disabled$: [{
334
684
  type: Input
335
- }], error: [{
685
+ }], pluginId: [{
336
686
  type: Input
337
687
  }], valid: [{
338
688
  type: Output
@@ -349,26 +699,77 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
349
699
  *
350
700
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
351
701
  *
352
- * 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.
702
+ * Unless required by applicable law or agreed to in writing, software
703
+ * distributed under the License is distributed on an "AS IS" basis,
704
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
705
+ * See the License for the specific language governing permissions and
706
+ * limitations under the License.
353
707
  */
354
708
  class SetResultaatConfigurationComponent {
355
709
  constructor() {
356
710
  this.valid = new EventEmitter();
357
711
  this.configuration = new EventEmitter();
712
+ this.selectedResultaat$ = new BehaviorSubject('');
713
+ this.selectedZaakType$ = new BehaviorSubject(null);
714
+ this.RESULTATEN = [
715
+ 'Ingetrokken',
716
+ 'Ongegrond met financ',
717
+ 'Gegrond met financië',
718
+ 'Informeel afgehandel',
719
+ 'Niet ontvankelijk ve',
720
+ 'Gegrond met invloed',
721
+ 'Ongegrond',
722
+ 'Afgebroken',
723
+ 'Gegrond',
724
+ ];
725
+ this.resultaatSelectItems = this.RESULTATEN.map(resultaat => ({
726
+ id: resultaat,
727
+ text: resultaat,
728
+ }));
729
+ this.clearSubject$ = new Subject();
730
+ }
731
+ ngOnInit() {
732
+ this.openValidSubscription();
733
+ }
734
+ ngOnDestroy() {
735
+ this.validSubscription?.unsubscribe();
736
+ }
737
+ selectZaakType(zaakType) {
738
+ this.selectedZaakType$.next(zaakType);
739
+ if (!zaakType) {
740
+ this.clearResultaat();
741
+ }
742
+ }
743
+ clearResultaat() {
744
+ this.selectedResultaat$.next('');
745
+ this.clearSubject$.next(null);
746
+ }
747
+ selectResultaat(resultaat) {
748
+ this.selectedResultaat$.next(resultaat);
749
+ }
750
+ openValidSubscription() {
751
+ this.validSubscription = combineLatest([this.selectedResultaat$, this.selectedZaakType$])
752
+ .pipe(tap(([resultaat, zaakType]) => {
753
+ if (resultaat && zaakType) {
754
+ this.valid.emit(true);
755
+ }
756
+ else {
757
+ this.valid.emit(false);
758
+ }
759
+ }))
760
+ .subscribe();
358
761
  }
359
762
  }
360
- SetResultaatConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetResultaatConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
361
- SetResultaatConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: SetResultaatConfigurationComponent, selector: "valtimo-set-resultaat-configuration", inputs: { clear$: "clear$", save$: "save$", disabled: "disabled", error: "error" }, 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-title>set-resultaat function config works</v-title>\n", styles: [""], components: [{ type: i1$1.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }] });
362
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetResultaatConfigurationComponent, decorators: [{
763
+ SetResultaatConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetResultaatConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
764
+ SetResultaatConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SetResultaatConfigurationComponent, selector: "valtimo-set-resultaat-configuration", inputs: { save$: "save$", disabled$: "disabled$", 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$ | async\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"resultaatSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'zaakResultaat' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || (disabled$ | async)\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectResultaat($event)\"\n></v-select>\n", styles: [""], components: [{ type: SelectZaakTypeComponent, selector: "valtimo-select-zaak-type", inputs: ["pluginId", "disabled"], outputs: ["zaakTypeSelected"] }, { type: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
765
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetResultaatConfigurationComponent, decorators: [{
363
766
  type: Component,
364
- args: [{ selector: 'valtimo-set-resultaat-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-title>set-resultaat function config works</v-title>\n", styles: [""] }]
365
- }], propDecorators: { clear$: [{
366
- type: Input
367
- }], save$: [{
767
+ args: [{ selector: 'valtimo-set-resultaat-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$ | async\"\n (zaakTypeSelected)=\"selectZaakType($event)\"\n></valtimo-select-zaak-type>\n<v-select\n [items]=\"resultaatSelectItems\"\n [margin]=\"true\"\n [widthInPx]=\"350\"\n [title]=\"'zaakResultaat' | pluginTranslate: pluginId | async\"\n [disabled]=\"(selectedZaakType$ | async) === null || (disabled$ | async)\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectResultaat($event)\"\n></v-select>\n", styles: [""] }]
768
+ }], propDecorators: { save$: [{
368
769
  type: Input
369
- }], disabled: [{
770
+ }], disabled$: [{
370
771
  type: Input
371
- }], error: [{
772
+ }], pluginId: [{
372
773
  type: Input
373
774
  }], valid: [{
374
775
  type: Output
@@ -385,26 +786,72 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
385
786
  *
386
787
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
387
788
  *
388
- * 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.
789
+ * Unless required by applicable law or agreed to in writing, software
790
+ * distributed under the License is distributed on an "AS IS" basis,
791
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
792
+ * See the License for the specific language governing permissions and
793
+ * limitations under the License.
389
794
  */
390
795
  class SetStatusConfigurationComponent {
391
796
  constructor() {
392
797
  this.valid = new EventEmitter();
393
798
  this.configuration = new EventEmitter();
799
+ this.selectedStatus = new BehaviorSubject('');
800
+ this.selectedZaakType$ = new BehaviorSubject(null);
801
+ this.STATUSES = [
802
+ 'Geregistreerd',
803
+ 'Geaccepteerd',
804
+ 'In behandeling genomen',
805
+ 'Afgehandeld',
806
+ ];
807
+ this.statusesSelectItems = this.STATUSES.map(status => ({
808
+ id: status,
809
+ text: status,
810
+ }));
811
+ this.clearSubject$ = new Subject();
812
+ }
813
+ ngOnInit() {
814
+ this.openValidSubscription();
815
+ }
816
+ ngOnDestroy() {
817
+ this.validSubscription?.unsubscribe();
818
+ }
819
+ selectZaakType(zaakType) {
820
+ this.selectedZaakType$.next(zaakType);
821
+ if (!zaakType) {
822
+ this.clearStatus();
823
+ }
824
+ }
825
+ clearStatus() {
826
+ this.selectedStatus.next('');
827
+ this.clearSubject$.next(null);
828
+ }
829
+ selectStatus(status) {
830
+ this.selectedStatus.next(status);
831
+ }
832
+ openValidSubscription() {
833
+ this.validSubscription = combineLatest([this.selectedStatus, this.selectedZaakType$])
834
+ .pipe(tap(([status, zaakType]) => {
835
+ if (status && zaakType) {
836
+ this.valid.emit(true);
837
+ }
838
+ else {
839
+ this.valid.emit(false);
840
+ }
841
+ }))
842
+ .subscribe();
394
843
  }
395
844
  }
396
- SetStatusConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
397
- 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" }, 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-title>set-status function config works</v-title>\n", styles: [""], components: [{ type: i1$1.TitleComponent, selector: "v-title", inputs: ["type", "margin"] }] });
398
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, decorators: [{
845
+ SetStatusConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetStatusConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
846
+ SetStatusConfigurationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SetStatusConfigurationComponent, selector: "valtimo-set-status-configuration", inputs: { save$: "save$", disabled$: "disabled$", 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$ | async\"\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$ | async)\"\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: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
847
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetStatusConfigurationComponent, decorators: [{
399
848
  type: Component,
400
- 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<v-title>set-status function config works</v-title>\n", styles: [""] }]
401
- }], propDecorators: { clear$: [{
402
- type: Input
403
- }], save$: [{
849
+ 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$ | async\"\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$ | async)\"\n [clearSelectionSubject$]=\"clearSubject$\"\n (selectedChange)=\"selectStatus($event)\"\n></v-select>\n", styles: [""] }]
850
+ }], propDecorators: { save$: [{
404
851
  type: Input
405
- }], disabled: [{
852
+ }], disabled$: [{
406
853
  type: Input
407
- }], error: [{
854
+ }], pluginId: [{
408
855
  type: Input
409
856
  }], valid: [{
410
857
  type: Output
@@ -429,18 +876,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
429
876
  */
430
877
  class OpenZaakPluginModule {
431
878
  }
432
- OpenZaakPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
433
- OpenZaakPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, declarations: [OpenZaakConfigurationComponent,
879
+ OpenZaakPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
880
+ OpenZaakPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, declarations: [OpenZaakConfigurationComponent,
434
881
  CreateZaakConfigurationComponent,
435
882
  SetBesluitConfigurationComponent,
436
883
  SetResultaatConfigurationComponent,
437
- SetStatusConfigurationComponent], imports: [CommonModule, TitleModule], exports: [OpenZaakConfigurationComponent,
884
+ SetStatusConfigurationComponent,
885
+ SelectZaakTypeComponent], imports: [CommonModule,
886
+ TitleModule,
887
+ FormModule,
888
+ InputModule,
889
+ PluginTranslatePipeModule,
890
+ SelectModule,
891
+ InputLabelModule,
892
+ ParagraphModule], exports: [OpenZaakConfigurationComponent,
438
893
  CreateZaakConfigurationComponent,
439
894
  SetBesluitConfigurationComponent,
440
895
  SetResultaatConfigurationComponent,
441
- SetStatusConfigurationComponent] });
442
- OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, imports: [[CommonModule, TitleModule]] });
443
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
896
+ SetStatusConfigurationComponent,
897
+ SelectZaakTypeComponent] });
898
+ OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, imports: [[
899
+ CommonModule,
900
+ TitleModule,
901
+ FormModule,
902
+ InputModule,
903
+ PluginTranslatePipeModule,
904
+ SelectModule,
905
+ InputLabelModule,
906
+ ParagraphModule,
907
+ ]] });
908
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
444
909
  type: NgModule,
445
910
  args: [{
446
911
  declarations: [
@@ -449,14 +914,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
449
914
  SetBesluitConfigurationComponent,
450
915
  SetResultaatConfigurationComponent,
451
916
  SetStatusConfigurationComponent,
917
+ SelectZaakTypeComponent,
918
+ ],
919
+ imports: [
920
+ CommonModule,
921
+ TitleModule,
922
+ FormModule,
923
+ InputModule,
924
+ PluginTranslatePipeModule,
925
+ SelectModule,
926
+ InputLabelModule,
927
+ ParagraphModule,
452
928
  ],
453
- imports: [CommonModule, TitleModule],
454
929
  exports: [
455
930
  OpenZaakConfigurationComponent,
456
931
  CreateZaakConfigurationComponent,
457
932
  SetBesluitConfigurationComponent,
458
933
  SetResultaatConfigurationComponent,
459
934
  SetStatusConfigurationComponent,
935
+ SelectZaakTypeComponent,
460
936
  ],
461
937
  }]
462
938
  }] });
@@ -470,7 +946,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
470
946
  *
471
947
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
472
948
  *
473
- * 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.
949
+ * Unless required by applicable law or agreed to in writing, software
950
+ * distributed under the License is distributed on an "AS IS" basis,
951
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
952
+ * See the License for the specific language governing permissions and
953
+ * limitations under the License.
474
954
  */
475
955
  const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAARtAAAEbQF9GpMFAAAAB3RJTUUH5gYKBB8NWNadBAAAAAZiS0dEAP8A/wD/oL2nkwAADG1JREFUaN7lm3tw1cUVx9O/2uqMnUEg1FZnOmOx8ih1ykwZcajaoVoEqmbkGR4+QEBQHI2iTpUZwSEhRJ6CgLwThhLCI2ocqChCpFJeLRhCeIcg3JsHSUhyb27u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0KGgoAAAANSUhE
483
963
  *
484
964
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
485
965
  *
486
- * 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.
966
+ * Unless required by applicable law or agreed to in writing, software
967
+ * distributed under the License is distributed on an "AS IS" basis,
968
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
969
+ * See the License for the specific language governing permissions and
970
+ * limitations under the License.
487
971
  */
488
972
 
489
973
  /*
@@ -495,7 +979,11 @@ const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhE
495
979
  *
496
980
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
497
981
  *
498
- * 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.
982
+ * Unless required by applicable law or agreed to in writing, software
983
+ * distributed under the License is distributed on an "AS IS" basis,
984
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
985
+ * See the License for the specific language governing permissions and
986
+ * limitations under the License.
499
987
  */
500
988
  const openZaakPluginSpecification = {
501
989
  pluginId: 'openzaak',
@@ -515,6 +1003,20 @@ const openZaakPluginSpecification = {
515
1003
  'set-status': 'Status instellen',
516
1004
  'set-resultaat': 'Resultaat instellen',
517
1005
  'set-besluit': 'Besluit instellen',
1006
+ configurationTitle: 'Configuratienaam',
1007
+ url: 'OpenZaak URL',
1008
+ clientId: 'Client ID',
1009
+ secret: 'Secret',
1010
+ rsin: 'Rsin',
1011
+ catalogusUrl: 'Catalogus URL',
1012
+ zaakType: 'Zaaktype',
1013
+ zaakStatus: 'Zaakstatus',
1014
+ zaakResultaat: 'Resultaat',
1015
+ besluit: 'Besluit',
1016
+ documentDefinition: 'Documentdefinitie',
1017
+ noZaakTypeSelected: 'Geen zaaktype geselecteerd',
1018
+ noZaakTypeLinksFound: "Geen gelinkte zaaktype's gevonden",
1019
+ noProcessDefinition: 'Er is geen procesdefinitie geselecteerd',
518
1020
  },
519
1021
  en: {
520
1022
  title: 'OpenZaak',
@@ -523,6 +1025,20 @@ const openZaakPluginSpecification = {
523
1025
  'set-status': 'Set status',
524
1026
  'set-resultaat': 'Set result',
525
1027
  'set-besluit': 'Set besluit',
1028
+ configurationTitle: 'Configuration name',
1029
+ url: 'OpenZaak URL',
1030
+ clientId: 'Client ID',
1031
+ secret: 'Secret',
1032
+ rsin: 'Rsin',
1033
+ catalogusUrl: 'Catalog URL',
1034
+ zaakType: 'Zaaktype',
1035
+ zaakStatus: 'Zaakstatus',
1036
+ zaakResultaat: 'Result',
1037
+ besluit: 'Besluit',
1038
+ documentDefinition: 'Document definition',
1039
+ noZaakTypeSelected: 'No zaaktype selected',
1040
+ noZaakTypeLinksFound: 'No linked zaaktypes found',
1041
+ noProcessDefinition: 'No process definition is selected',
526
1042
  },
527
1043
  de: {
528
1044
  title: 'OpenZaak',
@@ -531,6 +1047,20 @@ const openZaakPluginSpecification = {
531
1047
  'set-status': 'Status festlegen',
532
1048
  'set-resultaat': 'Ergebnis einstellen',
533
1049
  'set-besluit': 'Besluit setzen',
1050
+ configurationTitle: 'Konfigurationsname',
1051
+ url: 'OpenZaak URL',
1052
+ clientId: 'Client ID',
1053
+ secret: 'Secret',
1054
+ rsin: 'Rsin',
1055
+ catalogusUrl: 'Katalog URL',
1056
+ zaakType: 'Zaaktype',
1057
+ zaakStatus: 'Zaakstatus',
1058
+ zaakResultaat: 'Resultat',
1059
+ besluit: 'Besluit',
1060
+ documentDefinition: 'Dokumentendefinition',
1061
+ noZaakTypeSelected: 'Kein Zaaktype ausgewählt',
1062
+ noZaakTypeLinksFound: 'Keine verknüpften Zaaktypen gefunden',
1063
+ noProcessDefinition: 'Es ist keine Prozessdefinition ausgewählt',
534
1064
  },
535
1065
  },
536
1066
  };
@@ -544,12 +1074,613 @@ const openZaakPluginSpecification = {
544
1074
  *
545
1075
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
546
1076
  *
547
- * 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.
1077
+ * Unless required by applicable law or agreed to in writing, software
1078
+ * distributed under the License is distributed on an "AS IS" basis,
1079
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1080
+ * See the License for the specific language governing permissions and
1081
+ * limitations under the License.
1082
+ */
1083
+ class SmartDocumentsConfigurationComponent {
1084
+ constructor() {
1085
+ this.valid = new EventEmitter();
1086
+ this.configuration = new EventEmitter();
1087
+ this.formValue$ = new BehaviorSubject(null);
1088
+ this.valid$ = new BehaviorSubject(false);
1089
+ }
1090
+ ngOnInit() {
1091
+ this.openSaveSubscription();
1092
+ }
1093
+ ngOnDestroy() {
1094
+ this.saveSubscription?.unsubscribe();
1095
+ }
1096
+ formValueChange(formValue) {
1097
+ this.formValue$.next(formValue);
1098
+ this.handleValid(formValue);
1099
+ }
1100
+ handleValid(formValue) {
1101
+ const valid = !!(formValue.configurationTitle &&
1102
+ formValue.url &&
1103
+ formValue.password &&
1104
+ formValue.username);
1105
+ this.valid$.next(valid);
1106
+ this.valid.emit(valid);
1107
+ }
1108
+ openSaveSubscription() {
1109
+ this.saveSubscription = this.save$?.subscribe(save => {
1110
+ combineLatest([this.formValue$, this.valid$])
1111
+ .pipe(take(1))
1112
+ .subscribe(([formValue, valid]) => {
1113
+ if (valid) {
1114
+ this.configuration.emit(formValue);
1115
+ }
1116
+ });
1117
+ });
1118
+ }
1119
+ }
1120
+ SmartDocumentsConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1121
+ 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" }, 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\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 [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"username\"\n [title]=\"'username' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"password\"\n type=\"password\"\n [title]=\"'password' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i1$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required"], outputs: ["valueChange"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
1122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, decorators: [{
1123
+ type: Component,
1124
+ 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\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 [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"username\"\n [title]=\"'username' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n <v-input\n name=\"password\"\n type=\"password\"\n [title]=\"'password' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""] }]
1125
+ }], propDecorators: { save$: [{
1126
+ type: Input
1127
+ }], disabled$: [{
1128
+ type: Input
1129
+ }], pluginId: [{
1130
+ type: Input
1131
+ }], valid: [{
1132
+ type: Output
1133
+ }], configuration: [{
1134
+ type: Output
1135
+ }] } });
1136
+
1137
+ /*
1138
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1139
+ *
1140
+ * Licensed under EUPL, Version 1.2 (the "License");
1141
+ * you may not use this file except in compliance with the License.
1142
+ * You may obtain a copy of the License at
1143
+ *
1144
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1145
+ *
1146
+ * Unless required by applicable law or agreed to in writing, software
1147
+ * distributed under the License is distributed on an "AS IS" basis,
1148
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1149
+ * See the License for the specific language governing permissions and
1150
+ * limitations under the License.
1151
+ */
1152
+ class GenerateDocumentConfigurationComponent {
1153
+ constructor() {
1154
+ this.valid = new EventEmitter();
1155
+ this.configuration = new EventEmitter();
1156
+ this.FORMATS = ['DOCX', 'HTML', 'PDF', 'XML'];
1157
+ this.FORMAT_SELECT_ITEMS = this.FORMATS.map(format => ({
1158
+ id: format,
1159
+ text: format,
1160
+ }));
1161
+ this.formValue$ = new BehaviorSubject(null);
1162
+ this.valid$ = new BehaviorSubject(false);
1163
+ }
1164
+ ngOnInit() {
1165
+ this.openSaveSubscription();
1166
+ }
1167
+ ngOnDestroy() {
1168
+ this.saveSubscription?.unsubscribe();
1169
+ }
1170
+ formValueChange(formValue) {
1171
+ this.formValue$.next(formValue);
1172
+ this.handleValid(formValue);
1173
+ }
1174
+ handleValid(formValue) {
1175
+ const valid = !!(formValue.templateGroup &&
1176
+ formValue.templateName &&
1177
+ formValue.format &&
1178
+ formValue.resultingDocumentProcessVariableName &&
1179
+ formValue.templateData?.length > 0);
1180
+ this.valid$.next(valid);
1181
+ this.valid.emit(valid);
1182
+ }
1183
+ openSaveSubscription() {
1184
+ this.saveSubscription = this.save$?.subscribe(save => {
1185
+ combineLatest([this.formValue$, this.valid$])
1186
+ .pipe(take(1))
1187
+ .subscribe(([formValue, valid]) => {
1188
+ if (valid) {
1189
+ this.configuration.emit(formValue);
1190
+ }
1191
+ });
1192
+ });
1193
+ }
1194
+ }
1195
+ GenerateDocumentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GenerateDocumentConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1196
+ 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 ></v-multi-input>\n</v-form>\n", styles: [""], components: [{ type: i1$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic"] }, { type: i1$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required"], outputs: ["valueChange"] }, { type: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }, { type: i1$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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
1197
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: GenerateDocumentConfigurationComponent, decorators: [{
1198
+ type: Component,
1199
+ 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 ></v-multi-input>\n</v-form>\n", styles: [""] }]
1200
+ }], propDecorators: { save$: [{
1201
+ type: Input
1202
+ }], disabled$: [{
1203
+ type: Input
1204
+ }], pluginId: [{
1205
+ type: Input
1206
+ }], prefillConfiguration$: [{
1207
+ type: Input
1208
+ }], valid: [{
1209
+ type: Output
1210
+ }], configuration: [{
1211
+ type: Output
1212
+ }] } });
1213
+
1214
+ /*
1215
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1216
+ *
1217
+ * Licensed under EUPL, Version 1.2 (the "License");
1218
+ * you may not use this file except in compliance with the License.
1219
+ * You may obtain a copy of the License at
1220
+ *
1221
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1222
+ *
1223
+ * Unless required by applicable law or agreed to in writing, software
1224
+ * distributed under the License is distributed on an "AS IS" basis,
1225
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1226
+ * See the License for the specific language governing permissions and
1227
+ * limitations under the License.
1228
+ */
1229
+ class SmartDocumentsPluginModule {
1230
+ }
1231
+ SmartDocumentsPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1232
+ SmartDocumentsPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, declarations: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent], imports: [CommonModule,
1233
+ PluginTranslatePipeModule,
1234
+ FormModule,
1235
+ InputModule,
1236
+ SelectModule,
1237
+ MultiInputModule,
1238
+ ParagraphModule], exports: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent] });
1239
+ SmartDocumentsPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, imports: [[
1240
+ CommonModule,
1241
+ PluginTranslatePipeModule,
1242
+ FormModule,
1243
+ InputModule,
1244
+ SelectModule,
1245
+ MultiInputModule,
1246
+ ParagraphModule,
1247
+ ]] });
1248
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsPluginModule, decorators: [{
1249
+ type: NgModule,
1250
+ args: [{
1251
+ declarations: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent],
1252
+ imports: [
1253
+ CommonModule,
1254
+ PluginTranslatePipeModule,
1255
+ FormModule,
1256
+ InputModule,
1257
+ SelectModule,
1258
+ MultiInputModule,
1259
+ ParagraphModule,
1260
+ ],
1261
+ exports: [SmartDocumentsConfigurationComponent, GenerateDocumentConfigurationComponent],
1262
+ }]
1263
+ }] });
1264
+
1265
+ /*
1266
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1267
+ *
1268
+ * Licensed under EUPL, Version 1.2 (the "License");
1269
+ * you may not use this file except in compliance with the License.
1270
+ * You may obtain a copy of the License at
1271
+ *
1272
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1273
+ *
1274
+ * Unless required by applicable law or agreed to in writing, software
1275
+ * distributed under the License is distributed on an "AS IS" basis,
1276
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1277
+ * See the License for the specific language governing permissions and
1278
+ * limitations under the License.
1279
+ */
1280
+ 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+yK4Im4F9liEf0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i8+3HEEk/ng5O/1hGyB5wiVK2MIgdipFEM9zxM41/1A2ZwsV1cf7nBH70F8ANgPYyhiCyFe+Ucze9JL29OR7UgpKfl8lUdHIo4SjDHYhPEk8JBe3tJk+w/bX2JvQnrJC85ZXBWZteb9QRLDgc1mtgpJ6vqlCcMIG+KT52nu+ByVoVjBZfM6SDDMYFNN2r0oUME3l17aQHXKaM760RIfBg7HGJPUKzZgPGbwiM9r+/CBaTafMr7j+KlkzQeasVZZXz9ycAVvnlKS5Rva1gLjDFpTkT1nkPMiBLON0YjTMA5BNAMPSNzqnMnnYiztRiffsHEEIUv4NeDOlLO/eIh3jcJXJK6DCPe3f46u6SUdsYkQAvoBZb5lojuM+NkazLBYWCo4HPXmybvjToxdhwN/+QaRMza3exPQkpWaT9v1zzj2F8FzJMkKl8+98YXOyZPDb1oDgfmYM7wEm04Nc3snyr+qCOLq84SshQkEP1cT4YaXPxAU/ocpfDPYnvTkv3n8fzyzk0lh/r9IAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIyLTA2LTIzVDA2OjE3OjAyLTA0OjAwD/f+UwAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMi0wNi0yM1QwNjoxNzowMi0wNDowMH6qRu8AAAAASUVORK5CYII=';
1281
+
1282
+ /*
1283
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1284
+ *
1285
+ * Licensed under EUPL, Version 1.2 (the "License");
1286
+ * you may not use this file except in compliance with the License.
1287
+ * You may obtain a copy of the License at
1288
+ *
1289
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1290
+ *
1291
+ * Unless required by applicable law or agreed to in writing, software
1292
+ * distributed under the License is distributed on an "AS IS" basis,
1293
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1294
+ * See the License for the specific language governing permissions and
1295
+ * limitations under the License.
1296
+ */
1297
+
1298
+ /*
1299
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1300
+ *
1301
+ * Licensed under EUPL, Version 1.2 (the "License");
1302
+ * you may not use this file except in compliance with the License.
1303
+ * You may obtain a copy of the License at
1304
+ *
1305
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1306
+ *
1307
+ * Unless required by applicable law or agreed to in writing, software
1308
+ * distributed under the License is distributed on an "AS IS" basis,
1309
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1310
+ * See the License for the specific language governing permissions and
1311
+ * limitations under the License.
1312
+ */
1313
+ const smartDocumentsPluginSpecification = {
1314
+ pluginId: 'smartdocuments',
1315
+ pluginConfigurationComponent: SmartDocumentsConfigurationComponent,
1316
+ pluginLogoBase64: SMART_DOCUMENTS_PLUGIN_LOGO_BASE64,
1317
+ functionConfigurationComponents: {
1318
+ 'generate-document': GenerateDocumentConfigurationComponent,
1319
+ },
1320
+ pluginTranslations: {
1321
+ nl: {
1322
+ title: 'SmartDocuments',
1323
+ description: 'Automatiseer documenten met slimme templates.',
1324
+ configurationTitle: 'Configuratienaam',
1325
+ url: 'SmartDocuments URL',
1326
+ username: 'Gebruikersnaam',
1327
+ password: 'Wachtwoord',
1328
+ 'generate-document': 'Document genereren',
1329
+ templateGroup: 'Template-groep',
1330
+ templateName: 'Template-naam',
1331
+ format: 'Documentformaat',
1332
+ templateData: 'Template-data',
1333
+ resultingDocumentProcessVariableName: 'Naam procesvariabele voor opslag document',
1334
+ 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.',
1335
+ generateDocumentWarning: 'Deze actie genereert een tijdelijk bestand. Het verwerken hiervan moet door een andere actie worden gedaan.',
1336
+ },
1337
+ en: {
1338
+ title: 'SmartDocuments',
1339
+ description: 'Automate documents with smart templates.',
1340
+ configurationTitle: 'Configuration name',
1341
+ url: 'SmartDocuments URL',
1342
+ username: 'Username',
1343
+ password: 'Password',
1344
+ 'generate-document': 'Generate document',
1345
+ templateGroup: 'Template group',
1346
+ templateName: 'Template name',
1347
+ format: 'Document format',
1348
+ templateData: 'Template data',
1349
+ resultingDocumentProcessVariableName: 'Process variable name for storing document',
1350
+ 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.',
1351
+ generateDocumentWarning: 'This action generates a temporary file. It needs to be stored in a following task.',
1352
+ },
1353
+ de: {
1354
+ title: 'SmartDocuments',
1355
+ description: 'Automatisieren Sie Dokumente mit intelligenten Templates.',
1356
+ configurationTitle: 'Konfigurationsname',
1357
+ url: 'SmartDocuments URL',
1358
+ username: 'Nutzername',
1359
+ password: 'Passwort',
1360
+ 'generate-document': 'Dokument generieren',
1361
+ templateGroup: 'Templategruppe',
1362
+ templateName: 'Templatename',
1363
+ format: 'Dokumentformat',
1364
+ templateData: 'Templatedaten',
1365
+ resultingDocumentProcessVariableName: 'Prozessvariablenname zum Speichern des Dokuments',
1366
+ 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.',
1367
+ generateDocumentWarning: 'Diese Aktion erzeugt eine temporäre Datei. Die Verarbeitung muss durch eine andere Aktion erfolgen.',
1368
+ },
1369
+ },
1370
+ };
1371
+
1372
+ /*
1373
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1374
+ *
1375
+ * Licensed under EUPL, Version 1.2 (the "License");
1376
+ * you may not use this file except in compliance with the License.
1377
+ * You may obtain a copy of the License at
1378
+ *
1379
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1380
+ *
1381
+ * Unless required by applicable law or agreed to in writing, software
1382
+ * distributed under the License is distributed on an "AS IS" basis,
1383
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1384
+ * See the License for the specific language governing permissions and
1385
+ * limitations under the License.
1386
+ */
1387
+ class DocumentenApiConfigurationComponent {
1388
+ constructor() {
1389
+ this.valid = new EventEmitter();
1390
+ this.configuration = new EventEmitter();
1391
+ this.formValue$ = new BehaviorSubject(null);
1392
+ this.valid$ = new BehaviorSubject(false);
1393
+ }
1394
+ ngOnInit() {
1395
+ this.openSaveSubscription();
1396
+ }
1397
+ ngOnDestroy() {
1398
+ this.saveSubscription?.unsubscribe();
1399
+ }
1400
+ formValueChange(formValue) {
1401
+ this.formValue$.next(formValue);
1402
+ this.handleValid(formValue);
1403
+ }
1404
+ handleValid(formValue) {
1405
+ const valid = !!(formValue.configurationTitle && formValue.url);
1406
+ this.valid$.next(valid);
1407
+ this.valid.emit(valid);
1408
+ }
1409
+ openSaveSubscription() {
1410
+ this.saveSubscription = this.save$?.subscribe(save => {
1411
+ combineLatest([this.formValue$, this.valid$])
1412
+ .pipe(take(1))
1413
+ .subscribe(([formValue, valid]) => {
1414
+ if (valid) {
1415
+ this.configuration.emit(formValue);
1416
+ }
1417
+ });
1418
+ });
1419
+ }
1420
+ }
1421
+ DocumentenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1422
+ 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" }, 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\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 [required]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i1$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required"], outputs: ["valueChange"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
1423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, decorators: [{
1424
+ type: Component,
1425
+ 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 (valueChange)=\"formValueChange($event)\" *ngIf=\"{disabled: disabled$ | async} as obs\">\n <v-input\n name=\"configurationTitle\"\n [title]=\"'configurationTitle' | pluginTranslate: pluginId | async\"\n [fullWidth]=\"true\"\n [margin]=\"true\"\n [disabled]=\"obs.disabled\"\n [required]=\"true\"\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 [required]=\"true\"\n >\n </v-input>\n</v-form>\n", styles: [""] }]
1426
+ }], propDecorators: { save$: [{
1427
+ type: Input
1428
+ }], disabled$: [{
1429
+ type: Input
1430
+ }], pluginId: [{
1431
+ type: Input
1432
+ }], valid: [{
1433
+ type: Output
1434
+ }], configuration: [{
1435
+ type: Output
1436
+ }] } });
1437
+
1438
+ /*
1439
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1440
+ *
1441
+ * Licensed under EUPL, Version 1.2 (the "License");
1442
+ * you may not use this file except in compliance with the License.
1443
+ * You may obtain a copy of the License at
1444
+ *
1445
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1446
+ *
1447
+ * Unless required by applicable law or agreed to in writing, software
1448
+ * distributed under the License is distributed on an "AS IS" basis,
1449
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1450
+ * See the License for the specific language governing permissions and
1451
+ * limitations under the License.
1452
+ */
1453
+ class StoreTempDocumentConfigurationComponent {
1454
+ constructor(translateService, pluginTranslationService) {
1455
+ this.translateService = translateService;
1456
+ this.pluginTranslationService = pluginTranslationService;
1457
+ this.valid = new EventEmitter();
1458
+ this.configuration = new EventEmitter();
1459
+ this.LANGUAGE_ITEMS = ['nld'];
1460
+ this.languageSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.LANGUAGE_ITEMS.map(item => ({
1461
+ id: item,
1462
+ text: this.pluginTranslationService.instant(item, this.pluginId),
1463
+ }))));
1464
+ this.STATUS_ITEMS = [
1465
+ 'in_bewerking',
1466
+ 'ter_vaststelling',
1467
+ 'definitief',
1468
+ 'gearchiveerd',
1469
+ ];
1470
+ this.statusSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.STATUS_ITEMS.map(item => ({
1471
+ id: item,
1472
+ text: this.pluginTranslationService.instant(item, this.pluginId),
1473
+ }))));
1474
+ this.formValue$ = new BehaviorSubject(null);
1475
+ this.valid$ = new BehaviorSubject(false);
1476
+ }
1477
+ ngOnInit() {
1478
+ this.openSaveSubscription();
1479
+ }
1480
+ ngOnDestroy() {
1481
+ this.saveSubscription?.unsubscribe();
1482
+ }
1483
+ formValueChange(formValue) {
1484
+ this.formValue$.next(formValue);
1485
+ this.handleValid(formValue);
1486
+ }
1487
+ handleValid(formValue) {
1488
+ const valid = !!(formValue.localDocumentLocation &&
1489
+ formValue.taal &&
1490
+ formValue.status &&
1491
+ formValue.informatieobjecttype);
1492
+ this.valid$.next(valid);
1493
+ this.valid.emit(valid);
1494
+ }
1495
+ openSaveSubscription() {
1496
+ this.saveSubscription = this.save$?.subscribe(save => {
1497
+ combineLatest([this.formValue$, this.valid$])
1498
+ .pipe(take(1))
1499
+ .subscribe(([formValue, valid]) => {
1500
+ if (valid) {
1501
+ this.configuration.emit(formValue);
1502
+ }
1503
+ });
1504
+ });
1505
+ }
1506
+ }
1507
+ StoreTempDocumentConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StoreTempDocumentConfigurationComponent, deps: [{ token: i1.TranslateService }, { token: PluginTranslationService }], target: i0.ɵɵFactoryTarget.Component });
1508
+ 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 >\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 >\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 >\n </v-input>\n</v-form>\n", styles: [""], components: [{ type: i1$1.FormComponent, selector: "v-form", outputs: ["valueChange"] }, { type: i1$1.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "disabled", "step", "min", "maxLength", "tooltip", "required"], outputs: ["valueChange"] }, { type: i1$1.SelectComponent, selector: "v-select", inputs: ["items", "defaultSelection", "defaultSelectionId", "clearable", "disabled", "multiple", "margin", "widthInPx", "notFoundText", "clearAllText", "name", "title", "titleTranslationKey", "clearSelectionSubject$", "tooltip", "required"], outputs: ["selectedChange", "clear"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2.AsyncPipe, "pluginTranslate": PluginTranslatePipe } });
1509
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StoreTempDocumentConfigurationComponent, decorators: [{
1510
+ type: Component,
1511
+ 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 >\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 >\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 >\n </v-input>\n</v-form>\n", styles: [""] }]
1512
+ }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
1513
+ type: Input
1514
+ }], disabled$: [{
1515
+ type: Input
1516
+ }], pluginId: [{
1517
+ type: Input
1518
+ }], prefillConfiguration$: [{
1519
+ type: Input
1520
+ }], valid: [{
1521
+ type: Output
1522
+ }], configuration: [{
1523
+ type: Output
1524
+ }] } });
1525
+
1526
+ /*
1527
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1528
+ *
1529
+ * Licensed under EUPL, Version 1.2 (the "License");
1530
+ * you may not use this file except in compliance with the License.
1531
+ * You may obtain a copy of the License at
1532
+ *
1533
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1534
+ *
1535
+ * Unless required by applicable law or agreed to in writing, software
1536
+ * distributed under the License is distributed on an "AS IS" basis,
1537
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1538
+ * See the License for the specific language governing permissions and
1539
+ * limitations under the License.
1540
+ */
1541
+ class DocumentenApiPluginModule {
1542
+ }
1543
+ DocumentenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1544
+ 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] });
1545
+ DocumentenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, imports: [[CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule]] });
1546
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, decorators: [{
1547
+ type: NgModule,
1548
+ args: [{
1549
+ declarations: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
1550
+ imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule],
1551
+ exports: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
1552
+ }]
1553
+ }] });
1554
+
1555
+ /*
1556
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1557
+ *
1558
+ * Licensed under EUPL, Version 1.2 (the "License");
1559
+ * you may not use this file except in compliance with the License.
1560
+ * You may obtain a copy of the License at
1561
+ *
1562
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1563
+ *
1564
+ * Unless required by applicable law or agreed to in writing, software
1565
+ * distributed under the License is distributed on an "AS IS" basis,
1566
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1567
+ * See the License for the specific language governing permissions and
1568
+ * limitations under the License.
1569
+ */
1570
+ 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+kXDkO6ncnFw3u7TtBDx9HPTEJO7aDfoCyJ9QeQfRP4PuRZ2O5FzNNDoU4SmDoG83C6AqNEQmo05RINUiw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UF64HLiHccgtIGXApkPKh8VZEN2Zc55HlfxF5CO14hIpj0tuk1U3m/5OakDpMbDsDhxLULwGZgi3zHxj9I/7QMw6eV/7ZfGd+CPos6jQi/irKC9/OtIHMB7M/qkJdZBSuOxbXG0kXQ3HcHNQL0iv4qLudzvHrmS+93U9oXRZFk2cNnNNp4jgd+N4B/Kx9SOdOhg/bTmnA43fS4P8A/zvlqbh/D8sAAAAASUVORK5CYII=';
1571
+
1572
+ /*
1573
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1574
+ *
1575
+ * Licensed under EUPL, Version 1.2 (the "License");
1576
+ * you may not use this file except in compliance with the License.
1577
+ * You may obtain a copy of the License at
1578
+ *
1579
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1580
+ *
1581
+ * Unless required by applicable law or agreed to in writing, software
1582
+ * distributed under the License is distributed on an "AS IS" basis,
1583
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1584
+ * See the License for the specific language governing permissions and
1585
+ * limitations under the License.
1586
+ */
1587
+
1588
+ /*
1589
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1590
+ *
1591
+ * Licensed under EUPL, Version 1.2 (the "License");
1592
+ * you may not use this file except in compliance with the License.
1593
+ * You may obtain a copy of the License at
1594
+ *
1595
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1596
+ *
1597
+ * Unless required by applicable law or agreed to in writing, software
1598
+ * distributed under the License is distributed on an "AS IS" basis,
1599
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1600
+ * See the License for the specific language governing permissions and
1601
+ * limitations under the License.
1602
+ */
1603
+ const documentenApiPluginSpecification = {
1604
+ pluginId: 'documentenapi',
1605
+ pluginConfigurationComponent: DocumentenApiConfigurationComponent,
1606
+ pluginLogoBase64: DOCUMENTEN_API_PLUGIN_LOGO_BASE64,
1607
+ functionConfigurationComponents: {
1608
+ 'store-temp-document': StoreTempDocumentConfigurationComponent,
1609
+ },
1610
+ pluginTranslations: {
1611
+ nl: {
1612
+ title: 'Documenten API',
1613
+ description: 'API voor opslag en ontsluiting van documenten en daarbij behorende metadata.',
1614
+ 'store-temp-document': 'Document opslaan',
1615
+ configurationTitle: 'Configuratienaam',
1616
+ url: 'Documenten API URL',
1617
+ localDocumentLocation: 'Naam procesvariabele met document',
1618
+ storedDocumentUrl: 'Naam procesvariabele voor opslag document-URL',
1619
+ taal: 'Taal',
1620
+ status: 'Status',
1621
+ informatieobjecttype: 'Informatieobjecttype',
1622
+ nld: 'Nederlands',
1623
+ in_bewerking: 'In bewerking',
1624
+ ter_vaststelling: 'Ter vaststelling',
1625
+ definitief: 'Definitief',
1626
+ gearchiveerd: 'Gearchiveerd',
1627
+ },
1628
+ en: {
1629
+ title: 'Documenten API',
1630
+ description: 'API for storing and accessing documents and associated metadata.',
1631
+ 'store-temp-document': 'Save document',
1632
+ configurationTitle: 'Configuration name',
1633
+ url: 'Documenten API URL',
1634
+ localDocumentLocation: 'Name of process variable with document',
1635
+ storedDocumentUrl: 'Process variable name for storing document URL',
1636
+ taal: 'Language',
1637
+ status: 'Status',
1638
+ informatieobjecttype: 'Information object type',
1639
+ nld: 'Dutch',
1640
+ in_bewerking: 'Editing',
1641
+ ter_vaststelling: 'To be confirmed',
1642
+ definitief: 'Final',
1643
+ gearchiveerd: 'Archived',
1644
+ },
1645
+ de: {
1646
+ title: 'Documenten API',
1647
+ description: 'API zum Speichern und Zugreifen auf Dokumente und zugehörige Metadaten.',
1648
+ 'store-temp-document': 'Dokument speichern',
1649
+ configurationTitle: 'Konfigurationsname',
1650
+ url: 'Documenten API URL',
1651
+ localDocumentLocation: 'Name Prozessvariable mit Dokument',
1652
+ storedDocumentUrl: 'Name der Prozessvariablen zum Speichern der Dokument-URL',
1653
+ taal: 'Sprache',
1654
+ status: 'Status',
1655
+ informatieobjecttype: 'Informationsobjekttyp',
1656
+ nld: 'Niederländisch',
1657
+ in_bewerking: 'In Bearbeitung',
1658
+ ter_vaststelling: 'Zu bestimmen',
1659
+ definitief: 'Endgültig',
1660
+ gearchiveerd: 'Archiviert',
1661
+ },
1662
+ },
1663
+ };
1664
+
1665
+ /*
1666
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1667
+ *
1668
+ * Licensed under EUPL, Version 1.2 (the "License");
1669
+ * you may not use this file except in compliance with the License.
1670
+ * You may obtain a copy of the License at
1671
+ *
1672
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1673
+ *
1674
+ * Unless required by applicable law or agreed to in writing, software
1675
+ * distributed under the License is distributed on an "AS IS" basis,
1676
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1677
+ * See the License for the specific language governing permissions and
1678
+ * limitations under the License.
548
1679
  */
549
1680
 
550
1681
  /**
551
1682
  * Generated bundle index. Do not edit.
552
1683
  */
553
1684
 
554
- export { CreateZaakConfigurationComponent, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, SetBesluitConfigurationComponent, SetResultaatConfigurationComponent, SetStatusConfigurationComponent, openZaakPluginSpecification };
1685
+ export { CreateZaakConfigurationComponent, DocumentenApiConfigurationComponent, DocumentenApiPluginModule, GenerateDocumentConfigurationComponent, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginConfigurationContainerComponent, PluginConfigurationContainerModule, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, SelectZaakTypeComponent, SetBesluitConfigurationComponent, SetResultaatConfigurationComponent, SetStatusConfigurationComponent, SmartDocumentsConfigurationComponent, SmartDocumentsPluginModule, StoreTempDocumentConfigurationComponent, documentenApiPluginSpecification, openZaakPluginSpecification, smartDocumentsPluginSpecification };
555
1686
  //# sourceMappingURL=valtimo-plugin.mjs.map