@valtimo/zgw 13.35.0 → 13.36.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2022/valtimo-zgw.mjs
CHANGED
|
@@ -6,7 +6,7 @@ import * as i5 from '@ngx-translate/core';
|
|
|
6
6
|
import { TranslateModule } from '@ngx-translate/core';
|
|
7
7
|
import { CaseManagementDraftWarningComponent } from '@valtimo/case-management';
|
|
8
8
|
import * as i2 from '@valtimo/shared';
|
|
9
|
-
import { BaseApiService, InterceptorSkipHeader, getCaseManagementRouteParams, UploadProvider, ROLE_ADMIN, CASE_MANAGEMENT_TAB_TOKEN, ZGW_OBJECT_TYPE_COMPONENT_TOKEN, ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, CASE_CONFIGURATION_EXTENSIONS_TOKEN } from '@valtimo/shared';
|
|
9
|
+
import { BaseApiService, InterceptorSkipHeader, getCaseManagementRouteParams, UploadProvider, ROLE_ADMIN, zgwFeaturesGuard, ConfigService, CASE_MANAGEMENT_TAB_TOKEN, ZGW_OBJECT_TYPE_COMPONENT_TOKEN, ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, CASE_CONFIGURATION_EXTENSIONS_TOKEN } from '@valtimo/shared';
|
|
10
10
|
import * as i6 from 'carbon-components-angular';
|
|
11
11
|
import { ModalModule, InputModule, ButtonModule, DropdownModule, RadioModule, NotificationModule, LayerModule, TagModule, IconModule, DatePickerInputModule, DatePickerModule, ComboBoxModule, TooltipModule, ToggleModule, LoadingModule, ToggletipModule, CheckboxModule, TilesModule, SelectModule as SelectModule$1, TabsModule, AccordionModule, StructuredListModule } from 'carbon-components-angular';
|
|
12
12
|
import { catchError, of, BehaviorSubject, combineLatest, map, Subscription, switchMap, filter, tap, startWith, debounceTime, Subject, take as take$1, from, ReplaySubject, EMPTY, finalize, distinctUntilChanged, forkJoin } from 'rxjs';
|
|
@@ -2213,9 +2213,10 @@ class CaseManagementLinkProcessComponent {
|
|
|
2213
2213
|
});
|
|
2214
2214
|
}
|
|
2215
2215
|
setDocumentenApiUploaderProvider(config) {
|
|
2216
|
-
const
|
|
2217
|
-
|
|
2218
|
-
|
|
2216
|
+
const supportsUploadProcessLink = config.uploadProvider === UploadProvider.DOCUMENTEN_API ||
|
|
2217
|
+
config.uploadProvider === UploadProvider.S3;
|
|
2218
|
+
this.documentenApiUploadProviders$.next(supportsUploadProcessLink);
|
|
2219
|
+
if (supportsUploadProcessLink)
|
|
2219
2220
|
this.getDefaultSelection();
|
|
2220
2221
|
}
|
|
2221
2222
|
getDefaultSelection() {
|
|
@@ -5162,7 +5163,7 @@ const routes = [
|
|
|
5162
5163
|
{
|
|
5163
5164
|
path: 'notifications-api/notifications/failed',
|
|
5164
5165
|
component: FailedNotificationsPageComponent,
|
|
5165
|
-
canActivate: [AuthGuardService],
|
|
5166
|
+
canActivate: [AuthGuardService, zgwFeaturesGuard],
|
|
5166
5167
|
data: {
|
|
5167
5168
|
title: 'zgw.notifications.failed.pageTitle',
|
|
5168
5169
|
roles: [ROLE_ADMIN],
|
|
@@ -5620,12 +5621,14 @@ class ZgwModule {
|
|
|
5620
5621
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.20", ngImport: i0, type: ZgwModule, providers: [
|
|
5621
5622
|
{
|
|
5622
5623
|
provide: CASE_MANAGEMENT_TAB_TOKEN,
|
|
5623
|
-
|
|
5624
|
+
useFactory: (configService) => ({
|
|
5624
5625
|
translationKey: 'caseManagement.tabs.zgw',
|
|
5625
5626
|
component: CaseManagementZgwComponent,
|
|
5626
5627
|
tabRoute: 'zgw',
|
|
5627
5628
|
issueTypes: ['zaak-type-link', 'zaakdetail-sync'],
|
|
5628
|
-
|
|
5629
|
+
enabled$: configService.getFeatureToggleObservable('enableZgwFeatures', true),
|
|
5630
|
+
}),
|
|
5631
|
+
deps: [ConfigService],
|
|
5629
5632
|
multi: true,
|
|
5630
5633
|
},
|
|
5631
5634
|
{
|
|
@@ -5675,12 +5678,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.20", ngImpo
|
|
|
5675
5678
|
providers: [
|
|
5676
5679
|
{
|
|
5677
5680
|
provide: CASE_MANAGEMENT_TAB_TOKEN,
|
|
5678
|
-
|
|
5681
|
+
useFactory: (configService) => ({
|
|
5679
5682
|
translationKey: 'caseManagement.tabs.zgw',
|
|
5680
5683
|
component: CaseManagementZgwComponent,
|
|
5681
5684
|
tabRoute: 'zgw',
|
|
5682
5685
|
issueTypes: ['zaak-type-link', 'zaakdetail-sync'],
|
|
5683
|
-
|
|
5686
|
+
enabled$: configService.getFeatureToggleObservable('enableZgwFeatures', true),
|
|
5687
|
+
}),
|
|
5688
|
+
deps: [ConfigService],
|
|
5684
5689
|
multi: true,
|
|
5685
5690
|
},
|
|
5686
5691
|
{
|