@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',
@@ -88,7 +98,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
88
98
  *
89
99
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
90
100
  *
91
- * Unless required by applicable law or agreed to in writing, software 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.
101
+ * Unless required by applicable law or agreed to in writing, software
102
+ * distributed under the License is distributed on an "AS IS" basis,
103
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
104
+ * See the License for the specific language governing permissions and
105
+ * limitations under the License.
92
106
  */
93
107
  class PluginTranslationService {
94
108
  constructor(translateService, pluginService) {
@@ -111,9 +125,9 @@ class PluginTranslationService {
111
125
  return translation || `${pluginDefinitionKey}.${translateKey}`;
112
126
  }
113
127
  }
114
- 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 });
115
- PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslationService, providedIn: 'root' });
116
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslationService, decorators: [{
128
+ 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 });
129
+ PluginTranslationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, providedIn: 'root' });
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslationService, decorators: [{
117
131
  type: Injectable,
118
132
  args: [{
119
133
  providedIn: 'root',
@@ -129,7 +143,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
129
143
  *
130
144
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
131
145
  *
132
- * 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.
146
+ * Unless required by applicable law or agreed to in writing, software
147
+ * distributed under the License is distributed on an "AS IS" basis,
148
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149
+ * See the License for the specific language governing permissions and
150
+ * limitations under the License.
133
151
  */
134
152
 
135
153
  /*
@@ -141,7 +159,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
141
159
  *
142
160
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
143
161
  *
144
- * 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.
162
+ * Unless required by applicable law or agreed to in writing, software
163
+ * distributed under the License is distributed on an "AS IS" basis,
164
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
165
+ * See the License for the specific language governing permissions and
166
+ * limitations under the License.
145
167
  */
146
168
 
147
169
  /*
@@ -153,7 +175,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
153
175
  *
154
176
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
155
177
  *
156
- * 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.
178
+ * Unless required by applicable law or agreed to in writing, software
179
+ * distributed under the License is distributed on an "AS IS" basis,
180
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
181
+ * See the License for the specific language governing permissions and
182
+ * limitations under the License.
157
183
  */
158
184
  class PluginTranslatePipe {
159
185
  constructor(pluginTranslationService, pluginService) {
@@ -164,9 +190,9 @@ class PluginTranslatePipe {
164
190
  return this.pluginTranslationService.translate(translateKey, pluginDefinitionKey);
165
191
  }
166
192
  }
167
- 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 });
168
- PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipe, name: "pluginTranslate" });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipe, decorators: [{
193
+ 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 });
194
+ PluginTranslatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, name: "pluginTranslate" });
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipe, decorators: [{
170
196
  type: Pipe,
171
197
  args: [{
172
198
  name: 'pluginTranslate',
@@ -182,14 +208,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
182
208
  *
183
209
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
184
210
  *
185
- * 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.
211
+ * Unless required by applicable law or agreed to in writing, software
212
+ * distributed under the License is distributed on an "AS IS" basis,
213
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
214
+ * See the License for the specific language governing permissions and
215
+ * limitations under the License.
186
216
  */
187
217
  class PluginTranslatePipeModule {
188
218
  }
189
- PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
190
- PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, declarations: [PluginTranslatePipe], imports: [TranslateModule], exports: [PluginTranslatePipe] });
191
- PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, imports: [[TranslateModule]] });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PluginTranslatePipeModule, decorators: [{
219
+ PluginTranslatePipeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
220
+ PluginTranslatePipeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, declarations: [PluginTranslatePipe], imports: [TranslateModule], exports: [PluginTranslatePipe] });
221
+ PluginTranslatePipeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, imports: [[TranslateModule]] });
222
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginTranslatePipeModule, decorators: [{
193
223
  type: NgModule,
194
224
  args: [{
195
225
  imports: [TranslateModule],
@@ -207,7 +237,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
207
237
  *
208
238
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
209
239
  *
210
- * 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.
240
+ * Unless required by applicable law or agreed to in writing, software
241
+ * distributed under the License is distributed on an "AS IS" basis,
242
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
243
+ * See the License for the specific language governing permissions and
244
+ * limitations under the License.
211
245
  */
212
246
 
213
247
  /*
@@ -219,7 +253,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
219
253
  *
220
254
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
221
255
  *
222
- * 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.
256
+ * Unless required by applicable law or agreed to in writing, software
257
+ * distributed under the License is distributed on an "AS IS" basis,
258
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
259
+ * See the License for the specific language governing permissions and
260
+ * limitations under the License.
223
261
  */
224
262
 
225
263
  /*
@@ -231,26 +269,116 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
231
269
  *
232
270
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
233
271
  *
234
- * 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.
272
+ * Unless required by applicable law or agreed to in writing, software
273
+ * distributed under the License is distributed on an "AS IS" basis,
274
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
275
+ * See the License for the specific language governing permissions and
276
+ * limitations under the License.
235
277
  */
236
- class OpenZaakConfigurationComponent {
237
- constructor() {
278
+ class PluginConfigurationContainerComponent {
279
+ constructor(pluginService) {
280
+ this.pluginService = pluginService;
238
281
  this.valid = new EventEmitter();
239
282
  this.configuration = new EventEmitter();
283
+ this.noConfigurationComponentAvailable$ = new BehaviorSubject(false);
284
+ this.componentRef$ = new BehaviorSubject(undefined);
285
+ this._componentType = new BehaviorSubject(null);
286
+ this._pluginDefinitionKey = new BehaviorSubject('');
287
+ this._functionKey = new BehaviorSubject('');
288
+ }
289
+ set type(type) {
290
+ this._componentType.next(type);
291
+ }
292
+ set pluginDefinitionKey(key) {
293
+ this._pluginDefinitionKey.next(key);
294
+ }
295
+ set functionKey(key) {
296
+ this._functionKey.next(key);
297
+ }
298
+ ngOnInit() {
299
+ this.openPluginSubscription();
300
+ this.openComponentInstanceSubscription();
301
+ }
302
+ ngOnDestroy() {
303
+ var _a, _b;
304
+ (_a = this.pluginSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
305
+ (_b = this.componentRefSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
306
+ }
307
+ openPluginSubscription() {
308
+ this.pluginSubscription = combineLatest([
309
+ this._pluginDefinitionKey,
310
+ this._functionKey,
311
+ this._componentType,
312
+ this.pluginService.pluginSpecifications$,
313
+ ])
314
+ .pipe(tap(([pluginDefinitionKey, functionKey, componentType, pluginSpecifications]) => {
315
+ var _a;
316
+ let configurationComponent;
317
+ this.dynamicContainer.clear();
318
+ if (componentType === 'configuration' && pluginDefinitionKey) {
319
+ configurationComponent = (_a = pluginSpecifications.find(specification => specification.pluginId === pluginDefinitionKey)) === null || _a === void 0 ? void 0 : _a.pluginConfigurationComponent;
320
+ }
321
+ else if (componentType === 'function' && pluginDefinitionKey && functionKey) {
322
+ const pluginSpecification = pluginSpecifications.find(specification => specification.pluginId === pluginDefinitionKey);
323
+ configurationComponent =
324
+ pluginSpecification === null || pluginSpecification === void 0 ? void 0 : pluginSpecification.functionConfigurationComponents[functionKey];
325
+ }
326
+ if (configurationComponent) {
327
+ const componentRef = this.dynamicContainer.createComponent(configurationComponent);
328
+ this.componentRef$.next(componentRef);
329
+ this.noConfigurationComponentAvailable$.next(false);
330
+ }
331
+ else {
332
+ this.noConfigurationComponentAvailable$.next(true);
333
+ }
334
+ }))
335
+ .subscribe();
336
+ }
337
+ openComponentInstanceSubscription() {
338
+ this.componentRefSubscription = combineLatest([
339
+ this.componentRef$,
340
+ this._pluginDefinitionKey,
341
+ ]).subscribe(([ref, pluginDefinitionKey]) => {
342
+ var _a, _b;
343
+ const instance = ref === null || ref === void 0 ? void 0 : ref.instance;
344
+ (_a = this.configurationSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
345
+ (_b = this.validSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
346
+ if (instance) {
347
+ instance.save$ = this.save$;
348
+ instance.disabled$ = this.disabled$;
349
+ instance.pluginId = pluginDefinitionKey;
350
+ if (this.prefillConfiguration$) {
351
+ instance.prefillConfiguration$ = this.prefillConfiguration$;
352
+ }
353
+ this.validSubscription = instance.valid.subscribe(valid => {
354
+ this.valid.emit(valid);
355
+ });
356
+ this.configurationSubscription = instance.configuration.subscribe(configuration => {
357
+ this.configuration.emit(configuration);
358
+ });
359
+ }
360
+ });
240
361
  }
241
362
  }
242
- OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
243
- 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"] }] });
244
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakConfigurationComponent, decorators: [{
363
+ PluginConfigurationContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, deps: [{ token: PluginService }], target: i0.ɵɵFactoryTarget.Component });
364
+ 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 } });
365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerComponent, decorators: [{
245
366
  type: Component,
246
- 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: [""] }]
247
- }], propDecorators: { clear$: [{
367
+ 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"] }]
368
+ }], ctorParameters: function () { return [{ type: PluginService }]; }, propDecorators: { dynamicContainer: [{
369
+ type: ViewChild,
370
+ args: ['pluginConfigurationComponent', { static: true, read: ViewContainerRef }]
371
+ }], type: [{
372
+ type: Input
373
+ }], pluginDefinitionKey: [{
374
+ type: Input
375
+ }], functionKey: [{
248
376
  type: Input
249
377
  }], save$: [{
250
378
  type: Input
251
- }], disabled: [{
379
+ }], disabled$: [{
252
380
  type: Input
253
- }], error: [{
381
+ }], prefillConfiguration$: [{
254
382
  type: Input
255
383
  }], valid: [{
256
384
  type: Output
@@ -267,26 +395,209 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
267
395
  *
268
396
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
269
397
  *
270
- * 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.
398
+ * Unless required by applicable law or agreed to in writing, software
399
+ * distributed under the License is distributed on an "AS IS" basis,
400
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
401
+ * See the License for the specific language governing permissions and
402
+ * limitations under the License.
271
403
  */
272
- class CreateZaakConfigurationComponent {
404
+ class PluginConfigurationContainerModule {
405
+ }
406
+ PluginConfigurationContainerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
407
+ PluginConfigurationContainerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, declarations: [PluginConfigurationContainerComponent], imports: [CommonModule, ParagraphModule, TranslateModule], exports: [PluginConfigurationContainerComponent] });
408
+ PluginConfigurationContainerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, imports: [[CommonModule, ParagraphModule, TranslateModule]] });
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: PluginConfigurationContainerModule, decorators: [{
410
+ type: NgModule,
411
+ args: [{
412
+ declarations: [PluginConfigurationContainerComponent],
413
+ imports: [CommonModule, ParagraphModule, TranslateModule],
414
+ exports: [PluginConfigurationContainerComponent],
415
+ }]
416
+ }] });
417
+
418
+ /*
419
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
420
+ *
421
+ * Licensed under EUPL, Version 1.2 (the "License");
422
+ * you may not use this file except in compliance with the License.
423
+ * You may obtain a copy of the License at
424
+ *
425
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
426
+ *
427
+ * Unless required by applicable law or agreed to in writing, software
428
+ * distributed under the License is distributed on an "AS IS" basis,
429
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
430
+ * See the License for the specific language governing permissions and
431
+ * limitations under the License.
432
+ */
433
+ class OpenZaakConfigurationComponent {
273
434
  constructor() {
274
435
  this.valid = new EventEmitter();
275
436
  this.configuration = new EventEmitter();
437
+ this.formValue$ = new BehaviorSubject(null);
438
+ this.valid$ = new BehaviorSubject(false);
439
+ }
440
+ ngOnInit() {
441
+ this.openSaveSubscription();
442
+ }
443
+ ngOnDestroy() {
444
+ var _a;
445
+ (_a = this.saveSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
446
+ }
447
+ formValueChange(formValue) {
448
+ this.formValue$.next(formValue);
449
+ this.handleValid(formValue);
450
+ }
451
+ handleValid(formValue) {
452
+ const valid = !!(formValue.configurationTitle &&
453
+ formValue.url &&
454
+ formValue.catalogusUrl &&
455
+ formValue.rsin &&
456
+ formValue.secret &&
457
+ formValue.clientId);
458
+ this.valid$.next(valid);
459
+ this.valid.emit(valid);
460
+ }
461
+ openSaveSubscription() {
462
+ var _a;
463
+ this.saveSubscription = (_a = this.save$) === null || _a === void 0 ? void 0 : _a.subscribe(save => {
464
+ combineLatest([this.formValue$, this.valid$])
465
+ .pipe(take(1))
466
+ .subscribe(([formValue, valid]) => {
467
+ if (valid) {
468
+ this.configuration.emit(formValue);
469
+ }
470
+ });
471
+ });
276
472
  }
277
473
  }
278
- CreateZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
279
- 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"] }] });
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: CreateZaakConfigurationComponent, decorators: [{
474
+ OpenZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
475
+ 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 } });
476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakConfigurationComponent, decorators: [{
281
477
  type: Component,
282
- 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: [""] }]
283
- }], propDecorators: { clear$: [{
478
+ 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"] }]
479
+ }], propDecorators: { save$: [{
284
480
  type: Input
285
- }], save$: [{
481
+ }], disabled$: [{
482
+ type: Input
483
+ }], pluginId: [{
484
+ type: Input
485
+ }], valid: [{
486
+ type: Output
487
+ }], configuration: [{
488
+ type: Output
489
+ }] } });
490
+
491
+ /*
492
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
493
+ *
494
+ * Licensed under EUPL, Version 1.2 (the "License");
495
+ * you may not use this file except in compliance with the License.
496
+ * You may obtain a copy of the License at
497
+ *
498
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
499
+ *
500
+ * Unless required by applicable law or agreed to in writing, software
501
+ * distributed under the License is distributed on an "AS IS" basis,
502
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
503
+ * See the License for the specific language governing permissions and
504
+ * limitations under the License.
505
+ */
506
+ class SelectZaakTypeComponent {
507
+ constructor(openZaakService, modalService, pluginTranslationService) {
508
+ this.openZaakService = openZaakService;
509
+ this.modalService = modalService;
510
+ this.pluginTranslationService = pluginTranslationService;
511
+ this.zaakTypeSelected = new EventEmitter();
512
+ this.zaakTypeLinks$ = this.modalService.modalData$.pipe(switchMap(modalData => {
513
+ if (modalData === null || modalData === void 0 ? void 0 : modalData.processDefinitionKey) {
514
+ return this.openZaakService.getZaakTypeLinkListByProcess(modalData === null || modalData === void 0 ? void 0 : modalData.processDefinitionKey);
515
+ }
516
+ else {
517
+ return of(null);
518
+ }
519
+ }));
520
+ this.zaakTypeLinkSelectItems$ = this.zaakTypeLinks$.pipe(map(zaakTypeLinks => zaakTypeLinks === null || zaakTypeLinks === void 0 ? void 0 : zaakTypeLinks.map(link => ({
521
+ id: link.zaakTypeUrl,
522
+ text: link.documentDefinitionName,
523
+ }))));
524
+ this.selectedZaakTypeUrl$ = new BehaviorSubject('');
525
+ this.selectedZaakType$ = combineLatest([
526
+ this.selectedZaakTypeUrl$,
527
+ this.openZaakService.getZaakTypes(),
528
+ ]).pipe(map(([selectedZaakTypeUrl, zaakTypes]) => zaakTypes.find(zaakType => zaakType.url === selectedZaakTypeUrl)), tap(selectedZaakType => this.zaakTypeSelected.emit(selectedZaakType)));
529
+ }
530
+ selectZaakTypeLink(zaakTypeUrl) {
531
+ this.selectedZaakTypeUrl$.next(zaakTypeUrl);
532
+ }
533
+ }
534
+ 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 });
535
+ 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 } });
536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SelectZaakTypeComponent, decorators: [{
537
+ type: Component,
538
+ 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"] }]
539
+ }], ctorParameters: function () { return [{ type: i1$2.OpenZaakService }, { type: i1$1.ModalService }, { type: PluginTranslationService }]; }, propDecorators: { pluginId: [{
286
540
  type: Input
287
541
  }], disabled: [{
288
542
  type: Input
289
- }], error: [{
543
+ }], zaakTypeSelected: [{
544
+ type: Output
545
+ }] } });
546
+
547
+ /*
548
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
549
+ *
550
+ * Licensed under EUPL, Version 1.2 (the "License");
551
+ * you may not use this file except in compliance with the License.
552
+ * You may obtain a copy of the License at
553
+ *
554
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
555
+ *
556
+ * Unless required by applicable law or agreed to in writing, software
557
+ * distributed under the License is distributed on an "AS IS" basis,
558
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
559
+ * See the License for the specific language governing permissions and
560
+ * limitations under the License.
561
+ */
562
+ class CreateZaakConfigurationComponent {
563
+ constructor() {
564
+ this.valid = new EventEmitter();
565
+ this.configuration = new EventEmitter();
566
+ this.selectedZaakType$ = new BehaviorSubject(null);
567
+ }
568
+ ngOnInit() {
569
+ this.openValidSubscription();
570
+ }
571
+ ngOnDestroy() {
572
+ var _a;
573
+ (_a = this.validSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
574
+ }
575
+ selectZaakType(zaakType) {
576
+ this.selectedZaakType$.next(zaakType);
577
+ }
578
+ openValidSubscription() {
579
+ this.validSubscription = combineLatest([this.selectedZaakType$])
580
+ .pipe(tap(([zaakType]) => {
581
+ if (zaakType) {
582
+ this.valid.emit(true);
583
+ }
584
+ else {
585
+ this.valid.emit(false);
586
+ }
587
+ }))
588
+ .subscribe();
589
+ }
590
+ }
591
+ CreateZaakConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CreateZaakConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
592
+ 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 } });
593
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: CreateZaakConfigurationComponent, decorators: [{
594
+ type: Component,
595
+ 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: [""] }]
596
+ }], propDecorators: { save$: [{
597
+ type: Input
598
+ }], disabled$: [{
599
+ type: Input
600
+ }], pluginId: [{
290
601
  type: Input
291
602
  }], valid: [{
292
603
  type: Output
@@ -303,26 +614,68 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
303
614
  *
304
615
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
305
616
  *
306
- * 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.
617
+ * Unless required by applicable law or agreed to in writing, software
618
+ * distributed under the License is distributed on an "AS IS" basis,
619
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
620
+ * See the License for the specific language governing permissions and
621
+ * limitations under the License.
307
622
  */
308
623
  class SetBesluitConfigurationComponent {
309
624
  constructor() {
310
625
  this.valid = new EventEmitter();
311
626
  this.configuration = new EventEmitter();
627
+ this.selectedBesluit$ = new BehaviorSubject('');
628
+ this.selectedZaakType$ = new BehaviorSubject(null);
629
+ this.BESLUITEN = ['test besluit', 'test besluit met document'];
630
+ this.besluitSelectItems = this.BESLUITEN.map(besluit => ({
631
+ id: besluit,
632
+ text: besluit,
633
+ }));
634
+ this.clearSubject$ = new Subject();
635
+ }
636
+ ngOnInit() {
637
+ this.openValidSubscription();
638
+ }
639
+ ngOnDestroy() {
640
+ var _a;
641
+ (_a = this.validSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
642
+ }
643
+ selectZaakType(zaakType) {
644
+ this.selectedZaakType$.next(zaakType);
645
+ if (!zaakType) {
646
+ this.clearBesluit();
647
+ }
648
+ }
649
+ clearBesluit() {
650
+ this.selectedBesluit$.next('');
651
+ this.clearSubject$.next(null);
652
+ }
653
+ selectBesluit(besluit) {
654
+ this.selectedBesluit$.next(besluit);
655
+ }
656
+ openValidSubscription() {
657
+ this.validSubscription = combineLatest([this.selectedBesluit$, this.selectedZaakType$])
658
+ .pipe(tap(([besluit, zaakType]) => {
659
+ if (besluit && zaakType) {
660
+ this.valid.emit(true);
661
+ }
662
+ else {
663
+ this.valid.emit(false);
664
+ }
665
+ }))
666
+ .subscribe();
312
667
  }
313
668
  }
314
- SetBesluitConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
315
- 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"] }] });
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetBesluitConfigurationComponent, decorators: [{
669
+ SetBesluitConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetBesluitConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
670
+ 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 } });
671
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetBesluitConfigurationComponent, decorators: [{
317
672
  type: Component,
318
- 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: [""] }]
319
- }], propDecorators: { clear$: [{
320
- type: Input
321
- }], save$: [{
673
+ 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: [""] }]
674
+ }], propDecorators: { save$: [{
322
675
  type: Input
323
- }], disabled: [{
676
+ }], disabled$: [{
324
677
  type: Input
325
- }], error: [{
678
+ }], pluginId: [{
326
679
  type: Input
327
680
  }], valid: [{
328
681
  type: Output
@@ -339,26 +692,78 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
339
692
  *
340
693
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
341
694
  *
342
- * 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.
695
+ * Unless required by applicable law or agreed to in writing, software
696
+ * distributed under the License is distributed on an "AS IS" basis,
697
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
698
+ * See the License for the specific language governing permissions and
699
+ * limitations under the License.
343
700
  */
344
701
  class SetResultaatConfigurationComponent {
345
702
  constructor() {
346
703
  this.valid = new EventEmitter();
347
704
  this.configuration = new EventEmitter();
705
+ this.selectedResultaat$ = new BehaviorSubject('');
706
+ this.selectedZaakType$ = new BehaviorSubject(null);
707
+ this.RESULTATEN = [
708
+ 'Ingetrokken',
709
+ 'Ongegrond met financ',
710
+ 'Gegrond met financië',
711
+ 'Informeel afgehandel',
712
+ 'Niet ontvankelijk ve',
713
+ 'Gegrond met invloed',
714
+ 'Ongegrond',
715
+ 'Afgebroken',
716
+ 'Gegrond',
717
+ ];
718
+ this.resultaatSelectItems = this.RESULTATEN.map(resultaat => ({
719
+ id: resultaat,
720
+ text: resultaat,
721
+ }));
722
+ this.clearSubject$ = new Subject();
723
+ }
724
+ ngOnInit() {
725
+ this.openValidSubscription();
726
+ }
727
+ ngOnDestroy() {
728
+ var _a;
729
+ (_a = this.validSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
730
+ }
731
+ selectZaakType(zaakType) {
732
+ this.selectedZaakType$.next(zaakType);
733
+ if (!zaakType) {
734
+ this.clearResultaat();
735
+ }
736
+ }
737
+ clearResultaat() {
738
+ this.selectedResultaat$.next('');
739
+ this.clearSubject$.next(null);
740
+ }
741
+ selectResultaat(resultaat) {
742
+ this.selectedResultaat$.next(resultaat);
743
+ }
744
+ openValidSubscription() {
745
+ this.validSubscription = combineLatest([this.selectedResultaat$, this.selectedZaakType$])
746
+ .pipe(tap(([resultaat, zaakType]) => {
747
+ if (resultaat && zaakType) {
748
+ this.valid.emit(true);
749
+ }
750
+ else {
751
+ this.valid.emit(false);
752
+ }
753
+ }))
754
+ .subscribe();
348
755
  }
349
756
  }
350
- SetResultaatConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetResultaatConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
351
- 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"] }] });
352
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetResultaatConfigurationComponent, decorators: [{
757
+ SetResultaatConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetResultaatConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
758
+ 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 } });
759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetResultaatConfigurationComponent, decorators: [{
353
760
  type: Component,
354
- 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: [""] }]
355
- }], propDecorators: { clear$: [{
761
+ 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: [""] }]
762
+ }], propDecorators: { save$: [{
356
763
  type: Input
357
- }], save$: [{
358
- type: Input
359
- }], disabled: [{
764
+ }], disabled$: [{
360
765
  type: Input
361
- }], error: [{
766
+ }], pluginId: [{
362
767
  type: Input
363
768
  }], valid: [{
364
769
  type: Output
@@ -375,26 +780,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
375
780
  *
376
781
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
377
782
  *
378
- * 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.
783
+ * Unless required by applicable law or agreed to in writing, software
784
+ * distributed under the License is distributed on an "AS IS" basis,
785
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
786
+ * See the License for the specific language governing permissions and
787
+ * limitations under the License.
379
788
  */
380
789
  class SetStatusConfigurationComponent {
381
790
  constructor() {
382
791
  this.valid = new EventEmitter();
383
792
  this.configuration = new EventEmitter();
793
+ this.selectedStatus = new BehaviorSubject('');
794
+ this.selectedZaakType$ = new BehaviorSubject(null);
795
+ this.STATUSES = [
796
+ 'Geregistreerd',
797
+ 'Geaccepteerd',
798
+ 'In behandeling genomen',
799
+ 'Afgehandeld',
800
+ ];
801
+ this.statusesSelectItems = this.STATUSES.map(status => ({
802
+ id: status,
803
+ text: status,
804
+ }));
805
+ this.clearSubject$ = new Subject();
806
+ }
807
+ ngOnInit() {
808
+ this.openValidSubscription();
809
+ }
810
+ ngOnDestroy() {
811
+ var _a;
812
+ (_a = this.validSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
813
+ }
814
+ selectZaakType(zaakType) {
815
+ this.selectedZaakType$.next(zaakType);
816
+ if (!zaakType) {
817
+ this.clearStatus();
818
+ }
819
+ }
820
+ clearStatus() {
821
+ this.selectedStatus.next('');
822
+ this.clearSubject$.next(null);
823
+ }
824
+ selectStatus(status) {
825
+ this.selectedStatus.next(status);
826
+ }
827
+ openValidSubscription() {
828
+ this.validSubscription = combineLatest([this.selectedStatus, this.selectedZaakType$])
829
+ .pipe(tap(([status, zaakType]) => {
830
+ if (status && zaakType) {
831
+ this.valid.emit(true);
832
+ }
833
+ else {
834
+ this.valid.emit(false);
835
+ }
836
+ }))
837
+ .subscribe();
384
838
  }
385
839
  }
386
- SetStatusConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
387
- 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"] }] });
388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: SetStatusConfigurationComponent, decorators: [{
840
+ SetStatusConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetStatusConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
841
+ 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 } });
842
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SetStatusConfigurationComponent, decorators: [{
389
843
  type: Component,
390
- 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: [""] }]
391
- }], propDecorators: { clear$: [{
392
- type: Input
393
- }], save$: [{
844
+ 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: [""] }]
845
+ }], propDecorators: { save$: [{
394
846
  type: Input
395
- }], disabled: [{
847
+ }], disabled$: [{
396
848
  type: Input
397
- }], error: [{
849
+ }], pluginId: [{
398
850
  type: Input
399
851
  }], valid: [{
400
852
  type: Output
@@ -419,18 +871,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
419
871
  */
420
872
  class OpenZaakPluginModule {
421
873
  }
422
- OpenZaakPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
423
- OpenZaakPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, declarations: [OpenZaakConfigurationComponent,
874
+ OpenZaakPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
875
+ OpenZaakPluginModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, declarations: [OpenZaakConfigurationComponent,
424
876
  CreateZaakConfigurationComponent,
425
877
  SetBesluitConfigurationComponent,
426
878
  SetResultaatConfigurationComponent,
427
- SetStatusConfigurationComponent], imports: [CommonModule, TitleModule], exports: [OpenZaakConfigurationComponent,
879
+ SetStatusConfigurationComponent,
880
+ SelectZaakTypeComponent], imports: [CommonModule,
881
+ TitleModule,
882
+ FormModule,
883
+ InputModule,
884
+ PluginTranslatePipeModule,
885
+ SelectModule,
886
+ InputLabelModule,
887
+ ParagraphModule], exports: [OpenZaakConfigurationComponent,
428
888
  CreateZaakConfigurationComponent,
429
889
  SetBesluitConfigurationComponent,
430
890
  SetResultaatConfigurationComponent,
431
- SetStatusConfigurationComponent] });
432
- OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, imports: [[CommonModule, TitleModule]] });
433
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
891
+ SetStatusConfigurationComponent,
892
+ SelectZaakTypeComponent] });
893
+ OpenZaakPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, imports: [[
894
+ CommonModule,
895
+ TitleModule,
896
+ FormModule,
897
+ InputModule,
898
+ PluginTranslatePipeModule,
899
+ SelectModule,
900
+ InputLabelModule,
901
+ ParagraphModule,
902
+ ]] });
903
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: OpenZaakPluginModule, decorators: [{
434
904
  type: NgModule,
435
905
  args: [{
436
906
  declarations: [
@@ -439,14 +909,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
439
909
  SetBesluitConfigurationComponent,
440
910
  SetResultaatConfigurationComponent,
441
911
  SetStatusConfigurationComponent,
912
+ SelectZaakTypeComponent,
913
+ ],
914
+ imports: [
915
+ CommonModule,
916
+ TitleModule,
917
+ FormModule,
918
+ InputModule,
919
+ PluginTranslatePipeModule,
920
+ SelectModule,
921
+ InputLabelModule,
922
+ ParagraphModule,
442
923
  ],
443
- imports: [CommonModule, TitleModule],
444
924
  exports: [
445
925
  OpenZaakConfigurationComponent,
446
926
  CreateZaakConfigurationComponent,
447
927
  SetBesluitConfigurationComponent,
448
928
  SetResultaatConfigurationComponent,
449
929
  SetStatusConfigurationComponent,
930
+ SelectZaakTypeComponent,
450
931
  ],
451
932
  }]
452
933
  }] });
@@ -460,7 +941,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImpor
460
941
  *
461
942
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
462
943
  *
463
- * 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.
944
+ * Unless required by applicable law or agreed to in writing, software
945
+ * distributed under the License is distributed on an "AS IS" basis,
946
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
947
+ * See the License for the specific language governing permissions and
948
+ * limitations under the License.
464
949
  */
465
950
  const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAYAAAA6/NlyAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAACXBIWXMAAARtAAAEbQF9GpMFAAAAB3RJTUUH5gYKBB8NWNadBAAAAAZiS0dEAP8A/wD/oL2nkwAADG1JREFUaN7lm3tw1cUVx9O/2uqMnUEg1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vefgAAAABJRU5ErkJggg==';
466
951
 
@@ -473,7 +958,11 @@ const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhE
473
958
  *
474
959
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
475
960
  *
476
- * 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.
961
+ * Unless required by applicable law or agreed to in writing, software
962
+ * distributed under the License is distributed on an "AS IS" basis,
963
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
964
+ * See the License for the specific language governing permissions and
965
+ * limitations under the License.
477
966
  */
478
967
 
479
968
  /*
@@ -485,7 +974,11 @@ const OPEN_ZAAK_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhE
485
974
  *
486
975
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
487
976
  *
488
- * 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.
977
+ * Unless required by applicable law or agreed to in writing, software
978
+ * distributed under the License is distributed on an "AS IS" basis,
979
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
980
+ * See the License for the specific language governing permissions and
981
+ * limitations under the License.
489
982
  */
490
983
  const openZaakPluginSpecification = {
491
984
  pluginId: 'openzaak',
@@ -505,6 +998,20 @@ const openZaakPluginSpecification = {
505
998
  'set-status': 'Status instellen',
506
999
  'set-resultaat': 'Resultaat instellen',
507
1000
  'set-besluit': 'Besluit instellen',
1001
+ configurationTitle: 'Configuratienaam',
1002
+ url: 'OpenZaak URL',
1003
+ clientId: 'Client ID',
1004
+ secret: 'Secret',
1005
+ rsin: 'Rsin',
1006
+ catalogusUrl: 'Catalogus URL',
1007
+ zaakType: 'Zaaktype',
1008
+ zaakStatus: 'Zaakstatus',
1009
+ zaakResultaat: 'Resultaat',
1010
+ besluit: 'Besluit',
1011
+ documentDefinition: 'Documentdefinitie',
1012
+ noZaakTypeSelected: 'Geen zaaktype geselecteerd',
1013
+ noZaakTypeLinksFound: "Geen gelinkte zaaktype's gevonden",
1014
+ noProcessDefinition: 'Er is geen procesdefinitie geselecteerd',
508
1015
  },
509
1016
  en: {
510
1017
  title: 'OpenZaak',
@@ -513,6 +1020,20 @@ const openZaakPluginSpecification = {
513
1020
  'set-status': 'Set status',
514
1021
  'set-resultaat': 'Set result',
515
1022
  'set-besluit': 'Set besluit',
1023
+ configurationTitle: 'Configuration name',
1024
+ url: 'OpenZaak URL',
1025
+ clientId: 'Client ID',
1026
+ secret: 'Secret',
1027
+ rsin: 'Rsin',
1028
+ catalogusUrl: 'Catalog URL',
1029
+ zaakType: 'Zaaktype',
1030
+ zaakStatus: 'Zaakstatus',
1031
+ zaakResultaat: 'Result',
1032
+ besluit: 'Besluit',
1033
+ documentDefinition: 'Document definition',
1034
+ noZaakTypeSelected: 'No zaaktype selected',
1035
+ noZaakTypeLinksFound: 'No linked zaaktypes found',
1036
+ noProcessDefinition: 'No process definition is selected',
516
1037
  },
517
1038
  de: {
518
1039
  title: 'OpenZaak',
@@ -521,6 +1042,20 @@ const openZaakPluginSpecification = {
521
1042
  'set-status': 'Status festlegen',
522
1043
  'set-resultaat': 'Ergebnis einstellen',
523
1044
  'set-besluit': 'Besluit setzen',
1045
+ configurationTitle: 'Konfigurationsname',
1046
+ url: 'OpenZaak URL',
1047
+ clientId: 'Client ID',
1048
+ secret: 'Secret',
1049
+ rsin: 'Rsin',
1050
+ catalogusUrl: 'Katalog URL',
1051
+ zaakType: 'Zaaktype',
1052
+ zaakStatus: 'Zaakstatus',
1053
+ zaakResultaat: 'Resultat',
1054
+ besluit: 'Besluit',
1055
+ documentDefinition: 'Dokumentendefinition',
1056
+ noZaakTypeSelected: 'Kein Zaaktype ausgewählt',
1057
+ noZaakTypeLinksFound: 'Keine verknüpften Zaaktypen gefunden',
1058
+ noProcessDefinition: 'Es ist keine Prozessdefinition ausgewählt',
524
1059
  },
525
1060
  },
526
1061
  };
@@ -534,12 +1069,622 @@ const openZaakPluginSpecification = {
534
1069
  *
535
1070
  * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
536
1071
  *
537
- * 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.
1072
+ * Unless required by applicable law or agreed to in writing, software
1073
+ * distributed under the License is distributed on an "AS IS" basis,
1074
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1075
+ * See the License for the specific language governing permissions and
1076
+ * limitations under the License.
1077
+ */
1078
+ class SmartDocumentsConfigurationComponent {
1079
+ constructor() {
1080
+ this.valid = new EventEmitter();
1081
+ this.configuration = new EventEmitter();
1082
+ this.formValue$ = new BehaviorSubject(null);
1083
+ this.valid$ = new BehaviorSubject(false);
1084
+ }
1085
+ ngOnInit() {
1086
+ this.openSaveSubscription();
1087
+ }
1088
+ ngOnDestroy() {
1089
+ var _a;
1090
+ (_a = this.saveSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1091
+ }
1092
+ formValueChange(formValue) {
1093
+ this.formValue$.next(formValue);
1094
+ this.handleValid(formValue);
1095
+ }
1096
+ handleValid(formValue) {
1097
+ const valid = !!(formValue.configurationTitle &&
1098
+ formValue.url &&
1099
+ formValue.password &&
1100
+ formValue.username);
1101
+ this.valid$.next(valid);
1102
+ this.valid.emit(valid);
1103
+ }
1104
+ openSaveSubscription() {
1105
+ var _a;
1106
+ this.saveSubscription = (_a = this.save$) === null || _a === void 0 ? void 0 : _a.subscribe(save => {
1107
+ combineLatest([this.formValue$, this.valid$])
1108
+ .pipe(take(1))
1109
+ .subscribe(([formValue, valid]) => {
1110
+ if (valid) {
1111
+ this.configuration.emit(formValue);
1112
+ }
1113
+ });
1114
+ });
1115
+ }
1116
+ }
1117
+ SmartDocumentsConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1118
+ 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 } });
1119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SmartDocumentsConfigurationComponent, decorators: [{
1120
+ type: Component,
1121
+ 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: [""] }]
1122
+ }], propDecorators: { save$: [{
1123
+ type: Input
1124
+ }], disabled$: [{
1125
+ type: Input
1126
+ }], pluginId: [{
1127
+ type: Input
1128
+ }], valid: [{
1129
+ type: Output
1130
+ }], configuration: [{
1131
+ type: Output
1132
+ }] } });
1133
+
1134
+ /*
1135
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1136
+ *
1137
+ * Licensed under EUPL, Version 1.2 (the "License");
1138
+ * you may not use this file except in compliance with the License.
1139
+ * You may obtain a copy of the License at
1140
+ *
1141
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1142
+ *
1143
+ * Unless required by applicable law or agreed to in writing, software
1144
+ * distributed under the License is distributed on an "AS IS" basis,
1145
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1146
+ * See the License for the specific language governing permissions and
1147
+ * limitations under the License.
1148
+ */
1149
+ class GenerateDocumentConfigurationComponent {
1150
+ constructor() {
1151
+ this.valid = new EventEmitter();
1152
+ this.configuration = new EventEmitter();
1153
+ this.FORMATS = ['DOCX', 'HTML', 'PDF', 'XML'];
1154
+ this.FORMAT_SELECT_ITEMS = this.FORMATS.map(format => ({
1155
+ id: format,
1156
+ text: format,
1157
+ }));
1158
+ this.formValue$ = new BehaviorSubject(null);
1159
+ this.valid$ = new BehaviorSubject(false);
1160
+ }
1161
+ ngOnInit() {
1162
+ this.openSaveSubscription();
1163
+ }
1164
+ ngOnDestroy() {
1165
+ var _a;
1166
+ (_a = this.saveSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1167
+ }
1168
+ formValueChange(formValue) {
1169
+ this.formValue$.next(formValue);
1170
+ this.handleValid(formValue);
1171
+ }
1172
+ handleValid(formValue) {
1173
+ var _a;
1174
+ const valid = !!(formValue.templateGroup &&
1175
+ formValue.templateName &&
1176
+ formValue.format &&
1177
+ formValue.resultingDocumentProcessVariableName &&
1178
+ ((_a = formValue.templateData) === null || _a === void 0 ? void 0 : _a.length) > 0);
1179
+ this.valid$.next(valid);
1180
+ this.valid.emit(valid);
1181
+ }
1182
+ openSaveSubscription() {
1183
+ var _a;
1184
+ this.saveSubscription = (_a = this.save$) === null || _a === void 0 ? void 0 : _a.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/gXZm1O7SqezBOwv3Dox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gyfjPwqBlXRWa/E+TjMycx4MbVtGbjbWb8P8S2JMg8hqLJ3g7cY8blwFnJFUhtJPcSOEygQuFAWw8klk/Wq41yVnLipQe1FPpSUg7pz5oEdQ25yOwHXlqjUFF+MF2v0mwlBMIXDq6MHmrNenJnTuqYrtRGMHbaSDt68CIUEjtbCs8TmREZm7KxViRZG5OSnxhH5Fv8ahvgzpO4nBAHfXeH/t40Y2Ha2e0WLWkYHHsdRDjlZcx7ZMYWg43ObIuCd7V72i8+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
+ var _a;
1399
+ (_a = this.saveSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1400
+ }
1401
+ formValueChange(formValue) {
1402
+ this.formValue$.next(formValue);
1403
+ this.handleValid(formValue);
1404
+ }
1405
+ handleValid(formValue) {
1406
+ const valid = !!(formValue.configurationTitle && formValue.url);
1407
+ this.valid$.next(valid);
1408
+ this.valid.emit(valid);
1409
+ }
1410
+ openSaveSubscription() {
1411
+ var _a;
1412
+ this.saveSubscription = (_a = this.save$) === null || _a === void 0 ? void 0 : _a.subscribe(save => {
1413
+ combineLatest([this.formValue$, this.valid$])
1414
+ .pipe(take(1))
1415
+ .subscribe(([formValue, valid]) => {
1416
+ if (valid) {
1417
+ this.configuration.emit(formValue);
1418
+ }
1419
+ });
1420
+ });
1421
+ }
1422
+ }
1423
+ DocumentenApiConfigurationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1424
+ 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 } });
1425
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiConfigurationComponent, decorators: [{
1426
+ type: Component,
1427
+ 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: [""] }]
1428
+ }], propDecorators: { save$: [{
1429
+ type: Input
1430
+ }], disabled$: [{
1431
+ type: Input
1432
+ }], pluginId: [{
1433
+ type: Input
1434
+ }], valid: [{
1435
+ type: Output
1436
+ }], configuration: [{
1437
+ type: Output
1438
+ }] } });
1439
+
1440
+ /*
1441
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1442
+ *
1443
+ * Licensed under EUPL, Version 1.2 (the "License");
1444
+ * you may not use this file except in compliance with the License.
1445
+ * You may obtain a copy of the License at
1446
+ *
1447
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1448
+ *
1449
+ * Unless required by applicable law or agreed to in writing, software
1450
+ * distributed under the License is distributed on an "AS IS" basis,
1451
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1452
+ * See the License for the specific language governing permissions and
1453
+ * limitations under the License.
1454
+ */
1455
+ class StoreTempDocumentConfigurationComponent {
1456
+ constructor(translateService, pluginTranslationService) {
1457
+ this.translateService = translateService;
1458
+ this.pluginTranslationService = pluginTranslationService;
1459
+ this.valid = new EventEmitter();
1460
+ this.configuration = new EventEmitter();
1461
+ this.LANGUAGE_ITEMS = ['nld'];
1462
+ this.languageSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.LANGUAGE_ITEMS.map(item => ({
1463
+ id: item,
1464
+ text: this.pluginTranslationService.instant(item, this.pluginId),
1465
+ }))));
1466
+ this.STATUS_ITEMS = [
1467
+ 'in_bewerking',
1468
+ 'ter_vaststelling',
1469
+ 'definitief',
1470
+ 'gearchiveerd',
1471
+ ];
1472
+ this.statusSelectItems$ = this.translateService.stream('key').pipe(map$1(() => this.STATUS_ITEMS.map(item => ({
1473
+ id: item,
1474
+ text: this.pluginTranslationService.instant(item, this.pluginId),
1475
+ }))));
1476
+ this.formValue$ = new BehaviorSubject(null);
1477
+ this.valid$ = new BehaviorSubject(false);
1478
+ }
1479
+ ngOnInit() {
1480
+ this.openSaveSubscription();
1481
+ }
1482
+ ngOnDestroy() {
1483
+ var _a;
1484
+ (_a = this.saveSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
1485
+ }
1486
+ formValueChange(formValue) {
1487
+ this.formValue$.next(formValue);
1488
+ this.handleValid(formValue);
1489
+ }
1490
+ handleValid(formValue) {
1491
+ const valid = !!(formValue.localDocumentLocation &&
1492
+ formValue.taal &&
1493
+ formValue.status &&
1494
+ formValue.informatieobjecttype);
1495
+ this.valid$.next(valid);
1496
+ this.valid.emit(valid);
1497
+ }
1498
+ openSaveSubscription() {
1499
+ var _a;
1500
+ this.saveSubscription = (_a = this.save$) === null || _a === void 0 ? void 0 : _a.subscribe(save => {
1501
+ combineLatest([this.formValue$, this.valid$])
1502
+ .pipe(take(1))
1503
+ .subscribe(([formValue, valid]) => {
1504
+ if (valid) {
1505
+ this.configuration.emit(formValue);
1506
+ }
1507
+ });
1508
+ });
1509
+ }
1510
+ }
1511
+ 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 });
1512
+ 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 } });
1513
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: StoreTempDocumentConfigurationComponent, decorators: [{
1514
+ type: Component,
1515
+ 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: [""] }]
1516
+ }], ctorParameters: function () { return [{ type: i1.TranslateService }, { type: PluginTranslationService }]; }, propDecorators: { save$: [{
1517
+ type: Input
1518
+ }], disabled$: [{
1519
+ type: Input
1520
+ }], pluginId: [{
1521
+ type: Input
1522
+ }], prefillConfiguration$: [{
1523
+ type: Input
1524
+ }], valid: [{
1525
+ type: Output
1526
+ }], configuration: [{
1527
+ type: Output
1528
+ }] } });
1529
+
1530
+ /*
1531
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1532
+ *
1533
+ * Licensed under EUPL, Version 1.2 (the "License");
1534
+ * you may not use this file except in compliance with the License.
1535
+ * You may obtain a copy of the License at
1536
+ *
1537
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1538
+ *
1539
+ * Unless required by applicable law or agreed to in writing, software
1540
+ * distributed under the License is distributed on an "AS IS" basis,
1541
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1542
+ * See the License for the specific language governing permissions and
1543
+ * limitations under the License.
1544
+ */
1545
+ class DocumentenApiPluginModule {
1546
+ }
1547
+ DocumentenApiPluginModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1548
+ 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] });
1549
+ DocumentenApiPluginModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, imports: [[CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule]] });
1550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: DocumentenApiPluginModule, decorators: [{
1551
+ type: NgModule,
1552
+ args: [{
1553
+ declarations: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
1554
+ imports: [CommonModule, PluginTranslatePipeModule, FormModule, InputModule, SelectModule],
1555
+ exports: [DocumentenApiConfigurationComponent, StoreTempDocumentConfigurationComponent],
1556
+ }]
1557
+ }] });
1558
+
1559
+ /*
1560
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1561
+ *
1562
+ * Licensed under EUPL, Version 1.2 (the "License");
1563
+ * you may not use this file except in compliance with the License.
1564
+ * You may obtain a copy of the License at
1565
+ *
1566
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1567
+ *
1568
+ * Unless required by applicable law or agreed to in writing, software
1569
+ * distributed under the License is distributed on an "AS IS" basis,
1570
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1571
+ * See the License for the specific language governing permissions and
1572
+ * limitations under the License.
1573
+ */
1574
+ const DOCUMENTEN_API_PLUGIN_LOGO_BASE64 = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHMAAAA8CAYAAABVTYVfAAAACXBIWXMAABG3AAARtwGaY1MrAAAAGXRFWHRTb2Z0d2FyZQB3d3cuaW5rc2NhcGUub3Jnm+48GgAADuxJREFUeJztnX10VdWVwH/73pBAAmUoiEASgpWOWsdx1MGRQQYxKeo4OpZK6rQVk6BSrcupVUjiV9/qdAzRjp3iaEVNXkQdK0rtGluQj4RYrTpq/Si1Bb/4yEukoIgCAZLcu+ePlxCSd857930E1MlvrbcWufvcvXey3z33nH32OQgDSWhdFkUnHoPXMZEsmQiMRskD8hB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Q+ROGrYem1Dv/1dUhXDbdMItv8ThtTibtnpoxM+Zdeh2dxvBK/AeaCvC8Vcixv2T/VHgeZTlKE1U5P8+o2ch1O0YgXPAVPD1POUF5iNvjiThTUNxhkzFpwS4hKDn84o+Su4nZZSeGOgE0OTKKe/ePpzczntBv5XUfdHC3Y3AW8AOVPcgJM4kqePh8Ba5u57u8wvZg7kFNLkq+IFAZCQqwxEdj3Ic0flisF3SUToQXcBlBXcl8xCkVhtb31qO6I+xH8WWaV4mT2ccHDXbg/l5YD348yif+HKyN6Z2rHdFfhh1jwcexFyGmGmm0E68M+U++wh7EG6gY9tpqQQS0jmjvWL8DsoLykBPBh4D0tlDmRh1Pp9HiAt7UFmMdn6ZsoL/YP7fprzlIZljps2UF64HLiHccgtIGXApkPKh8VZEN2Zc55HlfxF5CO14hIpj0tuk1U3m/5OakDpMbDsDhxLULwGZgi3zHxj9I/7QMw6eV/7ZfGd+CPos6jQi/irKC9/OtIHMB7M/qkJdZBSuOxbXG0kXQ3HcHNQL0iv4qLudzvHrmS+93U9oXRZFk2cNnNNp4jgd+N4B/Kx9SOdOhg/bTmnA43fS4P8A/zvlqbh/D8sAAAAASUVORK5CYII=';
1575
+
1576
+ /*
1577
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1578
+ *
1579
+ * Licensed under EUPL, Version 1.2 (the "License");
1580
+ * you may not use this file except in compliance with the License.
1581
+ * You may obtain a copy of the License at
1582
+ *
1583
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1584
+ *
1585
+ * Unless required by applicable law or agreed to in writing, software
1586
+ * distributed under the License is distributed on an "AS IS" basis,
1587
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1588
+ * See the License for the specific language governing permissions and
1589
+ * limitations under the License.
1590
+ */
1591
+
1592
+ /*
1593
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1594
+ *
1595
+ * Licensed under EUPL, Version 1.2 (the "License");
1596
+ * you may not use this file except in compliance with the License.
1597
+ * You may obtain a copy of the License at
1598
+ *
1599
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1600
+ *
1601
+ * Unless required by applicable law or agreed to in writing, software
1602
+ * distributed under the License is distributed on an "AS IS" basis,
1603
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1604
+ * See the License for the specific language governing permissions and
1605
+ * limitations under the License.
1606
+ */
1607
+ const documentenApiPluginSpecification = {
1608
+ pluginId: 'documentenapi',
1609
+ pluginConfigurationComponent: DocumentenApiConfigurationComponent,
1610
+ pluginLogoBase64: DOCUMENTEN_API_PLUGIN_LOGO_BASE64,
1611
+ functionConfigurationComponents: {
1612
+ 'store-temp-document': StoreTempDocumentConfigurationComponent,
1613
+ },
1614
+ pluginTranslations: {
1615
+ nl: {
1616
+ title: 'Documenten API',
1617
+ description: 'API voor opslag en ontsluiting van documenten en daarbij behorende metadata.',
1618
+ 'store-temp-document': 'Document opslaan',
1619
+ configurationTitle: 'Configuratienaam',
1620
+ url: 'Documenten API URL',
1621
+ localDocumentLocation: 'Naam procesvariabele met document',
1622
+ storedDocumentUrl: 'Naam procesvariabele voor opslag document-URL',
1623
+ taal: 'Taal',
1624
+ status: 'Status',
1625
+ informatieobjecttype: 'Informatieobjecttype',
1626
+ nld: 'Nederlands',
1627
+ in_bewerking: 'In bewerking',
1628
+ ter_vaststelling: 'Ter vaststelling',
1629
+ definitief: 'Definitief',
1630
+ gearchiveerd: 'Gearchiveerd',
1631
+ },
1632
+ en: {
1633
+ title: 'Documenten API',
1634
+ description: 'API for storing and accessing documents and associated metadata.',
1635
+ 'store-temp-document': 'Save document',
1636
+ configurationTitle: 'Configuration name',
1637
+ url: 'Documenten API URL',
1638
+ localDocumentLocation: 'Name of process variable with document',
1639
+ storedDocumentUrl: 'Process variable name for storing document URL',
1640
+ taal: 'Language',
1641
+ status: 'Status',
1642
+ informatieobjecttype: 'Information object type',
1643
+ nld: 'Dutch',
1644
+ in_bewerking: 'Editing',
1645
+ ter_vaststelling: 'To be confirmed',
1646
+ definitief: 'Final',
1647
+ gearchiveerd: 'Archived',
1648
+ },
1649
+ de: {
1650
+ title: 'Documenten API',
1651
+ description: 'API zum Speichern und Zugreifen auf Dokumente und zugehörige Metadaten.',
1652
+ 'store-temp-document': 'Dokument speichern',
1653
+ configurationTitle: 'Konfigurationsname',
1654
+ url: 'Documenten API URL',
1655
+ localDocumentLocation: 'Name Prozessvariable mit Dokument',
1656
+ storedDocumentUrl: 'Name der Prozessvariablen zum Speichern der Dokument-URL',
1657
+ taal: 'Sprache',
1658
+ status: 'Status',
1659
+ informatieobjecttype: 'Informationsobjekttyp',
1660
+ nld: 'Niederländisch',
1661
+ in_bewerking: 'In Bearbeitung',
1662
+ ter_vaststelling: 'Zu bestimmen',
1663
+ definitief: 'Endgültig',
1664
+ gearchiveerd: 'Archiviert',
1665
+ },
1666
+ },
1667
+ };
1668
+
1669
+ /*
1670
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
1671
+ *
1672
+ * Licensed under EUPL, Version 1.2 (the "License");
1673
+ * you may not use this file except in compliance with the License.
1674
+ * You may obtain a copy of the License at
1675
+ *
1676
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
1677
+ *
1678
+ * Unless required by applicable law or agreed to in writing, software
1679
+ * distributed under the License is distributed on an "AS IS" basis,
1680
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1681
+ * See the License for the specific language governing permissions and
1682
+ * limitations under the License.
538
1683
  */
539
1684
 
540
1685
  /**
541
1686
  * Generated bundle index. Do not edit.
542
1687
  */
543
1688
 
544
- export { CreateZaakConfigurationComponent, OpenZaakConfigurationComponent, OpenZaakPluginModule, PLUGINS_TOKEN, PluginService, PluginTranslatePipe, PluginTranslatePipeModule, PluginTranslationService, SetBesluitConfigurationComponent, SetResultaatConfigurationComponent, SetStatusConfigurationComponent, openZaakPluginSpecification };
1689
+ 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 };
545
1690
  //# sourceMappingURL=valtimo-plugin.mjs.map