@valtimo/dossier 11.3.1 → 12.0.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/esm2022/lib/components/dossier-assign-user/dossier-assign-user.component.mjs +7 -7
- package/esm2022/lib/components/dossier-bulk-assign-modal/dossier-bulk-assign-modal.component.mjs +7 -7
- package/esm2022/lib/components/dossier-detail/dossier-detail.component.mjs +47 -12
- package/esm2022/lib/components/dossier-detail/tab/audit/audit.component.mjs +7 -7
- package/esm2022/lib/components/dossier-detail/tab/documents/documents.component.mjs +52 -16
- package/esm2022/lib/components/dossier-detail/tab/formio/formio.component.mjs +7 -7
- package/esm2022/lib/components/dossier-detail/tab/not-found/not-found.component.mjs +28 -0
- package/esm2022/lib/components/dossier-detail/tab/notes/notes.component.mjs +14 -9
- package/esm2022/lib/components/dossier-detail/tab/progress/progress.component.mjs +8 -12
- package/esm2022/lib/components/dossier-detail/tab/s3-documents/s3-documents.component.mjs +8 -9
- package/esm2022/lib/components/dossier-detail/tab/summary/summary.component.mjs +7 -7
- package/esm2022/lib/components/dossier-list/dossier-list.component.mjs +78 -53
- package/esm2022/lib/components/dossier-list-actions/dossier-list-actions.component.mjs +7 -7
- package/esm2022/lib/components/dossier-process-start-modal/dossier-process-start-modal.component.mjs +18 -16
- package/esm2022/lib/components/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.mjs +9 -9
- package/esm2022/lib/components/dossier-update/dossier-update.component.mjs +7 -7
- package/esm2022/lib/components/note-modal/note-modal.component.mjs +7 -7
- package/esm2022/lib/constants/case-status.constants.mjs +26 -0
- package/esm2022/lib/constants/case-tab-token.mjs +2 -2
- package/esm2022/lib/constants/dossier-list.constants.mjs +39 -0
- package/esm2022/lib/constants/index.mjs +18 -1
- package/esm2022/lib/constants/tab.mjs +2 -6
- package/esm2022/lib/dossier-routing.module.mjs +6 -6
- package/esm2022/lib/dossier.module.mjs +32 -29
- package/esm2022/lib/models/candidate-user.model.mjs +2 -2
- package/esm2022/lib/models/dossier-detail-tab.model.mjs +2 -4
- package/esm2022/lib/models/dossier-parameters.model.mjs +2 -2
- package/esm2022/lib/models/index.mjs +2 -3
- package/esm2022/lib/models/notes.model.mjs +2 -2
- package/esm2022/lib/models/search.model.mjs +2 -2
- package/esm2022/lib/models/tab-api.model.mjs +2 -2
- package/esm2022/lib/models/tabs.model.mjs +2 -2
- package/esm2022/lib/permissions/dossier-detail.permissions.mjs +2 -2
- package/esm2022/lib/permissions/index.mjs +2 -2
- package/esm2022/lib/pipes/index.mjs +2 -2
- package/esm2022/lib/pipes/tab-translate/index.mjs +2 -2
- package/esm2022/lib/pipes/tab-translate/tab-translate-pipe.module.mjs +6 -6
- package/esm2022/lib/pipes/tab-translate/tab-translate.pipe.mjs +6 -6
- package/esm2022/lib/services/dossier-bulk-assign.service.mjs +5 -5
- package/esm2022/lib/services/dossier-column.service.mjs +7 -7
- package/esm2022/lib/services/dossier-list-assignee.service.mjs +6 -6
- package/esm2022/lib/services/dossier-list-pagination.service.mjs +6 -6
- package/esm2022/lib/services/dossier-list-search.service.mjs +6 -6
- package/esm2022/lib/services/dossier-list-status.service.mjs +62 -0
- package/esm2022/lib/services/dossier-list.service.mjs +6 -6
- package/esm2022/lib/services/dossier-parameter.service.mjs +44 -18
- package/esm2022/lib/services/dossier-tab-api.service.mjs +20 -5
- package/esm2022/lib/services/dossier-tab.service.mjs +19 -11
- package/esm2022/lib/services/dossier.service.mjs +6 -6
- package/esm2022/lib/services/index.mjs +4 -3
- package/esm2022/lib/services/notes.service.mjs +6 -6
- package/esm2022/lib/services/start-modal.service.mjs +23 -8
- package/esm2022/public_api.mjs +2 -4
- package/fesm2022/valtimo-dossier.mjs +604 -799
- package/fesm2022/valtimo-dossier.mjs.map +1 -1
- package/lib/components/dossier-detail/dossier-detail.component.d.ts +13 -3
- package/lib/components/dossier-detail/dossier-detail.component.d.ts.map +1 -1
- package/lib/components/dossier-detail/tab/documents/documents.component.d.ts +16 -6
- package/lib/components/dossier-detail/tab/documents/documents.component.d.ts.map +1 -1
- package/lib/components/dossier-detail/tab/not-found/not-found.component.d.ts +6 -0
- package/lib/components/dossier-detail/tab/not-found/not-found.component.d.ts.map +1 -0
- package/lib/components/dossier-detail/tab/notes/notes.component.d.ts +2 -1
- package/lib/components/dossier-detail/tab/notes/notes.component.d.ts.map +1 -1
- package/lib/components/dossier-detail/tab/progress/progress.component.d.ts.map +1 -1
- package/lib/components/dossier-detail/tab/s3-documents/s3-documents.component.d.ts +1 -2
- package/lib/components/dossier-detail/tab/s3-documents/s3-documents.component.d.ts.map +1 -1
- package/lib/components/dossier-list/dossier-list.component.d.ts +14 -15
- package/lib/components/dossier-list/dossier-list.component.d.ts.map +1 -1
- package/lib/components/dossier-process-start-modal/dossier-process-start-modal.component.d.ts +2 -3
- package/lib/components/dossier-process-start-modal/dossier-process-start-modal.component.d.ts.map +1 -1
- package/lib/components/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts +1 -1
- package/lib/components/dossier-supporting-process-start-modal/dossier-supporting-process-start-modal.component.d.ts.map +1 -1
- package/lib/constants/case-status.constants.d.ts +5 -0
- package/lib/constants/case-status.constants.d.ts.map +1 -0
- package/lib/constants/dossier-list.constants.d.ts +7 -0
- package/lib/constants/dossier-list.constants.d.ts.map +1 -0
- package/lib/constants/index.d.ts +2 -0
- package/lib/constants/index.d.ts.map +1 -1
- package/lib/constants/tab.d.ts.map +1 -1
- package/lib/dossier.module.d.ts +23 -26
- package/lib/dossier.module.d.ts.map +1 -1
- package/lib/models/dossier-detail-tab.model.d.ts +0 -2
- package/lib/models/dossier-detail-tab.model.d.ts.map +1 -1
- package/lib/models/dossier-parameters.model.d.ts +1 -0
- package/lib/models/dossier-parameters.model.d.ts.map +1 -1
- package/lib/models/index.d.ts +0 -1
- package/lib/models/index.d.ts.map +1 -1
- package/lib/services/dossier-list-status.service.d.ts +21 -0
- package/lib/services/dossier-list-status.service.d.ts.map +1 -0
- package/lib/services/dossier-list.service.d.ts +1 -1
- package/lib/services/dossier-list.service.d.ts.map +1 -1
- package/lib/services/dossier-parameter.service.d.ts +4 -2
- package/lib/services/dossier-parameter.service.d.ts.map +1 -1
- package/lib/services/dossier-tab-api.service.d.ts.map +1 -1
- package/lib/services/dossier-tab.service.d.ts +4 -3
- package/lib/services/dossier-tab.service.d.ts.map +1 -1
- package/lib/services/index.d.ts +2 -1
- package/lib/services/index.d.ts.map +1 -1
- package/lib/services/start-modal.service.d.ts.map +1 -1
- package/package.json +5 -5
- package/public_api.d.ts +0 -2
- package/public_api.d.ts.map +1 -1
- package/esm2022/lib/components/dossier-detail/tab/contact-moments/contact-moments.component.mjs +0 -86
- package/esm2022/lib/components/dossier-detail/tab/documenten-api-documents/documenten-api-documents.component.mjs +0 -146
- package/esm2022/lib/components/dossier-detail/tab/object-type/object-type.component.mjs +0 -121
- package/esm2022/lib/components/dossier-detail/tab/zaakobjecten/zaakobjecten.component.mjs +0 -112
- package/esm2022/lib/models/zaakobjecten.model.mjs +0 -17
- package/esm2022/lib/services/file-sort.service.mjs +0 -39
- package/esm2022/lib/services/zaakobjecten.service.mjs +0 -44
- package/lib/components/dossier-detail/tab/contact-moments/contact-moments.component.d.ts +0 -30
- package/lib/components/dossier-detail/tab/contact-moments/contact-moments.component.d.ts.map +0 -1
- package/lib/components/dossier-detail/tab/documenten-api-documents/documenten-api-documents.component.d.ts +0 -57
- package/lib/components/dossier-detail/tab/documenten-api-documents/documenten-api-documents.component.d.ts.map +0 -1
- package/lib/components/dossier-detail/tab/object-type/object-type.component.d.ts +0 -32
- package/lib/components/dossier-detail/tab/object-type/object-type.component.d.ts.map +0 -1
- package/lib/components/dossier-detail/tab/zaakobjecten/zaakobjecten.component.d.ts +0 -32
- package/lib/components/dossier-detail/tab/zaakobjecten/zaakobjecten.component.d.ts.map +0 -1
- package/lib/models/zaakobjecten.model.d.ts +0 -26
- package/lib/models/zaakobjecten.model.d.ts.map +0 -1
- package/lib/services/file-sort.service.d.ts +0 -11
- package/lib/services/file-sort.service.d.ts.map +0 -1
- package/lib/services/zaakobjecten.service.d.ts +0 -17
- package/lib/services/zaakobjecten.service.d.ts.map +0 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, ViewEncapsulation, ViewChild, EventEmitter, Output,
|
|
3
|
-
import * as i2$
|
|
2
|
+
import { Injectable, Component, ViewEncapsulation, ViewChild, EventEmitter, Output, ViewContainerRef, Optional, Inject, HostBinding, Input, InjectionToken, ChangeDetectionStrategy, Pipe, NgModule } from '@angular/core';
|
|
3
|
+
import * as i2$4 from '@angular/forms';
|
|
4
4
|
import { Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
5
|
-
import { BehaviorSubject, take, map, distinctUntilChanged, combineLatest, Subject, switchMap, tap, filter, Subscription, of, startWith,
|
|
5
|
+
import { BehaviorSubject, take, map, distinctUntilChanged, combineLatest, Subject, switchMap, tap, filter, Subscription, of, startWith, forkJoin, defaultIfEmpty } from 'rxjs';
|
|
6
6
|
import * as i1 from '@valtimo/config';
|
|
7
|
-
import { UploadProvider, DossierListTab, ROLE_USER, ConfigModule, HttpLoaderFactory } from '@valtimo/config';
|
|
7
|
+
import { UploadProvider, ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, DossierListTab, ZGW_OBJECT_TYPE_COMPONENT_TOKEN, ROLE_USER, ConfigModule, HttpLoaderFactory } from '@valtimo/config';
|
|
8
8
|
import * as i2 from '@angular/common/http';
|
|
9
9
|
import { HttpClient } from '@angular/common/http';
|
|
10
10
|
import * as i2$1 from '@valtimo/document';
|
|
11
|
-
import { AdvancedDocumentSearchRequestImpl } from '@valtimo/document';
|
|
11
|
+
import { InternalCaseStatusColor, InternalCaseStatusUtils, AdvancedDocumentSearchRequestImpl } from '@valtimo/document';
|
|
12
12
|
import * as i6 from '@ngx-translate/core';
|
|
13
13
|
import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
|
|
14
14
|
import * as i1$1 from '@angular/router';
|
|
@@ -16,8 +16,9 @@ import { RouterModule } from '@angular/router';
|
|
|
16
16
|
import * as i1$2 from 'ngx-logger';
|
|
17
17
|
import * as i3 from '@valtimo/task';
|
|
18
18
|
import { CAN_VIEW_TASK_PERMISSION, TASK_DETAIL_PERMISSION_RESOURCE, TaskModule } from '@valtimo/task';
|
|
19
|
-
import * as
|
|
20
|
-
import { FormioOptionsImpl, TimelineItemImpl,
|
|
19
|
+
import * as i2$3 from '@valtimo/components';
|
|
20
|
+
import { FormioOptionsImpl, TimelineItemImpl, CASES_WITHOUT_STATUS_KEY, ViewType, CarbonListComponent, ListModule, WidgetModule, BpmnJsDiagramModule, TimelineModule, CamundaFormModule, FilterSidebarModule, DataListModule, FormIoModule, ModalModule, SpinnerModule, UploaderModule, DropzoneModule, SelectModule, InputLabelModule, ParagraphModule, TableModule, VModalModule, TitleModule, ButtonModule, SearchableDropdownSelectModule, SearchFieldsModule, PageModule, InputModule, FormModule as FormModule$1, ConfirmationModalModule, CarbonListModule, IsArrayPipe, StatusSelectorComponent, RenderInPageHeaderDirectiveModule, ValtimoCdsOverflowButtonDirectiveModule } from '@valtimo/components';
|
|
21
|
+
export { CASES_WITHOUT_STATUS_KEY } from '@valtimo/components';
|
|
21
22
|
import moment from 'moment';
|
|
22
23
|
import * as i2$2 from '@valtimo/process';
|
|
23
24
|
import { ProcessModule } from '@valtimo/process';
|
|
@@ -30,16 +31,16 @@ import * as i5$1 from '@angular/common';
|
|
|
30
31
|
import { CommonModule } from '@angular/common';
|
|
31
32
|
import * as i10 from '@ng-bootstrap/ng-bootstrap';
|
|
32
33
|
import { NgbButtonsModule, NgbTooltipModule, NgbPaginationModule, NgbModule } from '@ng-bootstrap/ng-bootstrap';
|
|
33
|
-
import * as
|
|
34
|
-
import { Tabs, LoadingModule, ButtonModule as ButtonModule$1, IconModule, ModalModule as ModalModule$1, SelectModule as SelectModule$1, DropdownModule, TabsModule, ComboBoxModule, SkeletonModule } from 'carbon-components-angular';
|
|
35
|
-
import * as i3$
|
|
36
|
-
import { switchMap as switchMap$1, map as map$1,
|
|
37
|
-
import * as i3$
|
|
38
|
-
import * as i4
|
|
39
|
-
import
|
|
40
|
-
import * as i4$
|
|
41
|
-
import * as i4$
|
|
42
|
-
import {
|
|
34
|
+
import * as i10$1 from 'carbon-components-angular';
|
|
35
|
+
import { Tabs, LoadingModule, ButtonModule as ButtonModule$1, IconModule, ModalModule as ModalModule$1, SelectModule as SelectModule$1, DropdownModule, TabsModule, ComboBoxModule, SkeletonModule, TagModule, DialogModule } from 'carbon-components-angular';
|
|
36
|
+
import * as i3$1 from 'ngx-spinner';
|
|
37
|
+
import { switchMap as switchMap$1, map as map$1, take as take$1, tap as tap$1, catchError } from 'rxjs/operators';
|
|
38
|
+
import * as i3$2 from 'ngx-toastr';
|
|
39
|
+
import * as i4 from '@valtimo/resource';
|
|
40
|
+
import { ChevronDown16 } from '@carbon/icons';
|
|
41
|
+
import * as i4$2 from 'keycloak-angular';
|
|
42
|
+
import * as i4$1 from '@valtimo/process-link';
|
|
43
|
+
import { ProcessLinkModule } from '@valtimo/process-link';
|
|
43
44
|
import { isEqual } from 'lodash';
|
|
44
45
|
|
|
45
46
|
class DossierBulkAssignService {
|
|
@@ -65,15 +66,15 @@ class DossierBulkAssignService {
|
|
|
65
66
|
},
|
|
66
67
|
});
|
|
67
68
|
}
|
|
68
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
69
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierBulkAssignService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
70
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierBulkAssignService }); }
|
|
70
71
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
72
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierBulkAssignService, decorators: [{
|
|
72
73
|
type: Injectable
|
|
73
|
-
}], ctorParameters:
|
|
74
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
|
|
74
75
|
|
|
75
76
|
/*
|
|
76
|
-
* Copyright 2015-
|
|
77
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
77
78
|
*
|
|
78
79
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
79
80
|
* you may not use this file except in compliance with the License.
|
|
@@ -98,7 +99,7 @@ class DossierColumnService {
|
|
|
98
99
|
const customDefinitionTable = config.customDefinitionTables[documentDefinitionName];
|
|
99
100
|
const defaultDefinitionTable = config.defaultDefinitionTable;
|
|
100
101
|
return this.documentService.getCaseList(documentDefinitionName).pipe(map(caseListColumns => {
|
|
101
|
-
const apiCaseListColumns = config
|
|
102
|
+
const apiCaseListColumns = (config.featureToggles?.caseListColumn ?? true) &&
|
|
102
103
|
caseListColumns &&
|
|
103
104
|
Array.isArray(caseListColumns) &&
|
|
104
105
|
caseListColumns.length > 0 &&
|
|
@@ -157,55 +158,15 @@ class DossierColumnService {
|
|
|
157
158
|
getPropertyName(caseListColumnPath) {
|
|
158
159
|
return caseListColumnPath.replace('doc:', '$.').replace('case:', '');
|
|
159
160
|
}
|
|
160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
161
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
161
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierColumnService, deps: [{ token: i1.ConfigService }, { token: i2$1.DocumentService }, { token: i6.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
162
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierColumnService }); }
|
|
162
163
|
}
|
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierColumnService, decorators: [{
|
|
164
165
|
type: Injectable
|
|
165
|
-
}], ctorParameters:
|
|
166
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2$1.DocumentService }, { type: i6.TranslateService }] });
|
|
166
167
|
|
|
167
168
|
/*
|
|
168
|
-
* Copyright 2015-
|
|
169
|
-
*
|
|
170
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
171
|
-
* you may not use this file except in compliance with the License.
|
|
172
|
-
* You may obtain a copy of the License at
|
|
173
|
-
*
|
|
174
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
175
|
-
*
|
|
176
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
177
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
178
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
179
|
-
* See the License for the specific language governing permissions and
|
|
180
|
-
* limitations under the License.
|
|
181
|
-
*/
|
|
182
|
-
class ZaakobjectenService {
|
|
183
|
-
constructor(configService, http) {
|
|
184
|
-
this.configService = configService;
|
|
185
|
-
this.http = http;
|
|
186
|
-
this.VALTIMO_API_ENDPOINT_URI = this.configService.config.valtimoApi.endpointUri;
|
|
187
|
-
}
|
|
188
|
-
getDocumentObjectTypes(documentId) {
|
|
189
|
-
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/document/${documentId}/zaak/objecttype`);
|
|
190
|
-
}
|
|
191
|
-
getDocumentObjectsOfType(documentId, typeUrl) {
|
|
192
|
-
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/document/${documentId}/zaak/object?typeUrl=${typeUrl}`);
|
|
193
|
-
}
|
|
194
|
-
getObjectTypeForm(documentId, objectUrl) {
|
|
195
|
-
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/document/${documentId}/zaak/object/form?objectUrl=${objectUrl}`);
|
|
196
|
-
}
|
|
197
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZaakobjectenService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
198
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZaakobjectenService, providedIn: 'root' }); }
|
|
199
|
-
}
|
|
200
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ZaakobjectenService, decorators: [{
|
|
201
|
-
type: Injectable,
|
|
202
|
-
args: [{
|
|
203
|
-
providedIn: 'root',
|
|
204
|
-
}]
|
|
205
|
-
}], ctorParameters: function () { return [{ type: i1.ConfigService }, { type: i2.HttpClient }]; } });
|
|
206
|
-
|
|
207
|
-
/*
|
|
208
|
-
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
169
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
209
170
|
*
|
|
210
171
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
211
172
|
* you may not use this file except in compliance with the License.
|
|
@@ -237,9 +198,6 @@ class DossierParameterService {
|
|
|
237
198
|
get queryPaginationParams$() {
|
|
238
199
|
return this.route.queryParams.pipe(map(params => {
|
|
239
200
|
const paramsCopy = { ...params };
|
|
240
|
-
if (paramsCopy.search) {
|
|
241
|
-
delete paramsCopy.search;
|
|
242
|
-
}
|
|
243
201
|
return paramsCopy.collectionSize
|
|
244
202
|
? {
|
|
245
203
|
collectionSize: Number(paramsCopy.collectionSize),
|
|
@@ -266,6 +224,14 @@ class DossierParameterService {
|
|
|
266
224
|
return '';
|
|
267
225
|
}), distinctUntilChanged((prevParams, currParams) => prevParams === currParams));
|
|
268
226
|
}
|
|
227
|
+
get queryStatusParams$() {
|
|
228
|
+
return this.route.queryParams.pipe(map(params => {
|
|
229
|
+
if (params?.status) {
|
|
230
|
+
return JSON.parse(atob(params.status));
|
|
231
|
+
}
|
|
232
|
+
return null;
|
|
233
|
+
}), distinctUntilChanged((prevParams, currParams) => JSON.stringify(prevParams) === JSON.stringify(currParams)));
|
|
234
|
+
}
|
|
269
235
|
constructor(router, route) {
|
|
270
236
|
this.router = router;
|
|
271
237
|
this.route = route;
|
|
@@ -274,7 +240,7 @@ class DossierParameterService {
|
|
|
274
240
|
this.setDossierParameters();
|
|
275
241
|
}
|
|
276
242
|
ngOnDestroy() {
|
|
277
|
-
this.
|
|
243
|
+
this._dossierParametersSubscription?.unsubscribe();
|
|
278
244
|
}
|
|
279
245
|
setSearchFieldValues(searchFieldValues) {
|
|
280
246
|
this._searchFieldValues$.next(searchFieldValues);
|
|
@@ -320,6 +286,22 @@ class DossierParameterService {
|
|
|
320
286
|
});
|
|
321
287
|
});
|
|
322
288
|
}
|
|
289
|
+
setStatusParameter(statusKeyParameters) {
|
|
290
|
+
this._dossierParameters$.pipe(take(1)).subscribe(dossierParameters => {
|
|
291
|
+
if ((statusKeyParameters || []).length > 0) {
|
|
292
|
+
this._dossierParameters$.next({
|
|
293
|
+
...dossierParameters,
|
|
294
|
+
status: this.objectToBase64(statusKeyParameters),
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
else {
|
|
298
|
+
if (dossierParameters?.status) {
|
|
299
|
+
delete dossierParameters.status;
|
|
300
|
+
}
|
|
301
|
+
this._dossierParameters$.next(dossierParameters);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
323
305
|
clearSearchFieldValues() {
|
|
324
306
|
this._searchFieldValues$.next({});
|
|
325
307
|
}
|
|
@@ -328,7 +310,7 @@ class DossierParameterService {
|
|
|
328
310
|
this.router.navigate([this.getUrlWithoutParams()]);
|
|
329
311
|
}
|
|
330
312
|
openDossierParametersSubscription() {
|
|
331
|
-
this.
|
|
313
|
+
this._dossierParametersSubscription = this.dossierParameters$.subscribe(dossierParams => {
|
|
332
314
|
this.router.navigate([this.getUrlWithoutParams()], { queryParams: dossierParams });
|
|
333
315
|
});
|
|
334
316
|
}
|
|
@@ -342,31 +324,36 @@ class DossierParameterService {
|
|
|
342
324
|
return urlTree.toString();
|
|
343
325
|
}
|
|
344
326
|
setDossierParameters() {
|
|
345
|
-
combineLatest([
|
|
327
|
+
combineLatest([
|
|
328
|
+
this.queryPaginationParams$,
|
|
329
|
+
this.querySearchParams$,
|
|
330
|
+
this.queryAssigneeParam$,
|
|
331
|
+
this.queryStatusParams$,
|
|
332
|
+
])
|
|
346
333
|
.pipe(take(1))
|
|
347
|
-
.subscribe(([paginationParams, searchParams, assigneeParams]) => {
|
|
348
|
-
if (paginationParams)
|
|
334
|
+
.subscribe(([paginationParams, searchParams, assigneeParams, statusParams]) => {
|
|
335
|
+
if (paginationParams)
|
|
349
336
|
this.setPaginationParameters(paginationParams);
|
|
350
|
-
|
|
337
|
+
if (assigneeParams)
|
|
338
|
+
this.setAssigneeParameter(assigneeParams);
|
|
339
|
+
if (statusParams)
|
|
340
|
+
this.setStatusParameter(statusParams);
|
|
351
341
|
if (searchParams) {
|
|
352
342
|
this.setSearchParameters(searchParams);
|
|
353
343
|
this.setSearchFieldValues(searchParams);
|
|
354
344
|
}
|
|
355
|
-
if (assigneeParams) {
|
|
356
|
-
this.setAssigneeParameter(assigneeParams);
|
|
357
|
-
}
|
|
358
345
|
this.openDossierParametersSubscription();
|
|
359
346
|
});
|
|
360
347
|
}
|
|
361
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
362
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierParameterService, deps: [{ token: i1$1.Router }, { token: i1$1.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
349
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierParameterService }); }
|
|
363
350
|
}
|
|
364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierParameterService, decorators: [{
|
|
365
352
|
type: Injectable
|
|
366
|
-
}], ctorParameters:
|
|
353
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i1$1.ActivatedRoute }] });
|
|
367
354
|
|
|
368
355
|
/*
|
|
369
|
-
* Copyright 2015-
|
|
356
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
370
357
|
*
|
|
371
358
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
372
359
|
* you may not use this file except in compliance with the License.
|
|
@@ -428,15 +415,15 @@ class DossierListService {
|
|
|
428
415
|
this._checkRefresh$.next(!checkRefresh);
|
|
429
416
|
});
|
|
430
417
|
}
|
|
431
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
432
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListService, deps: [{ token: DossierColumnService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
419
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListService }); }
|
|
433
420
|
}
|
|
434
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListService, decorators: [{
|
|
435
422
|
type: Injectable
|
|
436
|
-
}], ctorParameters:
|
|
423
|
+
}], ctorParameters: () => [{ type: DossierColumnService }] });
|
|
437
424
|
|
|
438
425
|
/*
|
|
439
|
-
* Copyright 2015-
|
|
426
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
440
427
|
*
|
|
441
428
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
442
429
|
* you may not use this file except in compliance with the License.
|
|
@@ -509,15 +496,15 @@ class DossierListAssigneeService {
|
|
|
509
496
|
: []),
|
|
510
497
|
];
|
|
511
498
|
}
|
|
512
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
513
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListAssigneeService, deps: [{ token: i1.ConfigService }, { token: DossierListService }, { token: i2$1.DocumentService }, { token: i6.TranslateService }, { token: DossierParameterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
500
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListAssigneeService }); }
|
|
514
501
|
}
|
|
515
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
502
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListAssigneeService, decorators: [{
|
|
516
503
|
type: Injectable
|
|
517
|
-
}], ctorParameters:
|
|
504
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: DossierListService }, { type: i2$1.DocumentService }, { type: i6.TranslateService }, { type: DossierParameterService }] });
|
|
518
505
|
|
|
519
506
|
/*
|
|
520
|
-
* Copyright 2015-
|
|
507
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
521
508
|
*
|
|
522
509
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
523
510
|
* you may not use this file except in compliance with the License.
|
|
@@ -560,18 +547,18 @@ class DossierService {
|
|
|
560
547
|
refresh() {
|
|
561
548
|
this._refreshDocument$.next(null);
|
|
562
549
|
}
|
|
563
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
564
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
550
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierService, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
551
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierService, providedIn: 'root' }); }
|
|
565
552
|
}
|
|
566
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierService, decorators: [{
|
|
567
554
|
type: Injectable,
|
|
568
555
|
args: [{
|
|
569
556
|
providedIn: 'root',
|
|
570
557
|
}]
|
|
571
|
-
}], ctorParameters:
|
|
558
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }] });
|
|
572
559
|
|
|
573
560
|
/*
|
|
574
|
-
* Copyright 2015-
|
|
561
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
575
562
|
*
|
|
576
563
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
577
564
|
* you may not use this file except in compliance with the License.
|
|
@@ -676,15 +663,15 @@ class DossierListPaginationService {
|
|
|
676
663
|
sort: defaultSortState,
|
|
677
664
|
};
|
|
678
665
|
}
|
|
679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
680
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
666
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListPaginationService, deps: [{ token: i1$2.NGXLogger }, { token: DossierParameterService }, { token: DossierService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
667
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListPaginationService }); }
|
|
681
668
|
}
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
669
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListPaginationService, decorators: [{
|
|
683
670
|
type: Injectable
|
|
684
|
-
}], ctorParameters:
|
|
671
|
+
}], ctorParameters: () => [{ type: i1$2.NGXLogger }, { type: DossierParameterService }, { type: DossierService }] });
|
|
685
672
|
|
|
686
673
|
/*
|
|
687
|
-
* Copyright 2015-
|
|
674
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
688
675
|
*
|
|
689
676
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
690
677
|
* you may not use this file except in compliance with the License.
|
|
@@ -729,15 +716,15 @@ class DossierListSearchService {
|
|
|
729
716
|
});
|
|
730
717
|
return filters;
|
|
731
718
|
}
|
|
732
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
733
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
719
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListSearchService, deps: [{ token: DossierListService }, { token: i2$1.DocumentService }, { token: DossierParameterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
720
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListSearchService }); }
|
|
734
721
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListSearchService, decorators: [{
|
|
736
723
|
type: Injectable
|
|
737
|
-
}], ctorParameters:
|
|
724
|
+
}], ctorParameters: () => [{ type: DossierListService }, { type: i2$1.DocumentService }, { type: DossierParameterService }] });
|
|
738
725
|
|
|
739
726
|
/*
|
|
740
|
-
* Copyright 2015-
|
|
727
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
741
728
|
*
|
|
742
729
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
743
730
|
* you may not use this file except in compliance with the License.
|
|
@@ -753,7 +740,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
753
740
|
*/
|
|
754
741
|
|
|
755
742
|
/*
|
|
756
|
-
* Copyright 2015-
|
|
743
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
757
744
|
*
|
|
758
745
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
759
746
|
* you may not use this file except in compliance with the License.
|
|
@@ -769,7 +756,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
769
756
|
*/
|
|
770
757
|
|
|
771
758
|
/*
|
|
772
|
-
* Copyright 2015-
|
|
759
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
773
760
|
*
|
|
774
761
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
775
762
|
* you may not use this file except in compliance with the License.
|
|
@@ -785,7 +772,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
785
772
|
*/
|
|
786
773
|
|
|
787
774
|
/*
|
|
788
|
-
* Copyright 2015-
|
|
775
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
789
776
|
*
|
|
790
777
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
791
778
|
* you may not use this file except in compliance with the License.
|
|
@@ -900,23 +887,7 @@ class TabImpl {
|
|
|
900
887
|
}
|
|
901
888
|
|
|
902
889
|
/*
|
|
903
|
-
* Copyright 2015-
|
|
904
|
-
*
|
|
905
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
906
|
-
* you may not use this file except in compliance with the License.
|
|
907
|
-
* You may obtain a copy of the License at
|
|
908
|
-
*
|
|
909
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
910
|
-
*
|
|
911
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
912
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
913
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
914
|
-
* See the License for the specific language governing permissions and
|
|
915
|
-
* limitations under the License.
|
|
916
|
-
*/
|
|
917
|
-
|
|
918
|
-
/*
|
|
919
|
-
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
890
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
920
891
|
*
|
|
921
892
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
922
893
|
* you may not use this file except in compliance with the License.
|
|
@@ -936,13 +907,11 @@ var DefaultTabs;
|
|
|
936
907
|
DefaultTabs["progress"] = "progress";
|
|
937
908
|
DefaultTabs["audit"] = "audit";
|
|
938
909
|
DefaultTabs["documents"] = "documents";
|
|
939
|
-
DefaultTabs["contactMoments"] = "contact-moments";
|
|
940
|
-
DefaultTabs["zaakobjecten"] = "zaakobjecten";
|
|
941
910
|
DefaultTabs["notes"] = "notes";
|
|
942
911
|
})(DefaultTabs || (DefaultTabs = {}));
|
|
943
912
|
|
|
944
913
|
/*
|
|
945
|
-
* Copyright 2015-
|
|
914
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
946
915
|
*
|
|
947
916
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
948
917
|
* you may not use this file except in compliance with the License.
|
|
@@ -964,7 +933,7 @@ var ApiTabType;
|
|
|
964
933
|
})(ApiTabType || (ApiTabType = {}));
|
|
965
934
|
|
|
966
935
|
/*
|
|
967
|
-
* Copyright 2015-
|
|
936
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
968
937
|
*
|
|
969
938
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
970
939
|
* you may not use this file except in compliance with the License.
|
|
@@ -980,7 +949,7 @@ var ApiTabType;
|
|
|
980
949
|
*/
|
|
981
950
|
|
|
982
951
|
/*
|
|
983
|
-
* Copyright 2015-
|
|
952
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
984
953
|
*
|
|
985
954
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
986
955
|
* you may not use this file except in compliance with the License.
|
|
@@ -1080,19 +1049,19 @@ class DossierDetailTabSummaryComponent {
|
|
|
1080
1049
|
this.loadingTasks$.next(false);
|
|
1081
1050
|
}));
|
|
1082
1051
|
}
|
|
1083
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1084
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1052
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabSummaryComponent, deps: [{ token: i1$1.Router }, { token: i2$1.DocumentService }, { token: i3.TaskService }, { token: i2$2.ProcessService }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i1$1.ActivatedRoute }, { token: i5.FormService }, { token: i6$1.UserProviderService }, { token: i7.PermissionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1053
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabSummaryComponent, selector: "valtimo-dossier-detail-tab-summary", viewQueries: [{ propertyName: "taskDetail", first: true, predicate: ["taskDetail"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div class=\"container-fluid\" *ngIf=\"{loadingTasks: loadingTasks$ | async} as obs\">\n <div class=\"row py-4\">\n <div class=\"col-sm-12 col-md-8 col-xl-9\">\n <div *ngIf=\"document\">\n <div *ngIf=\"formDefinition\" class=\"summaryForm\">\n <div class=\"mb-4\">\n <valtimo-form-io [form]=\"formDefinition\" [options]=\"options\"></valtimo-form-io>\n </div>\n </div>\n </div>\n </div>\n\n <!--Current user tasks right side-->\n <div class=\"col-sm-12 col-md-4 col-xl-3\">\n <h4 class=\"user-tasks-title\">{{ 'summary.userTasks' | translate }}</h4>\n <ng-container *ngIf=\"!obs.loadingTasks; else loadingTasksTemplate\">\n <ng-container *ngIf=\"!tasks.length\">\n <valtimo-widget>\n <div class=\"p-3\">\n <img class=\"float-left\" src=\"assets/audit-2.png\" height=\"25\" />\n <span class=\"float-right\">{{ 'summary.userTasksDoneState' | translate }}</span>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </ng-container>\n\n <ng-container *ngFor=\"let task of tasks\">\n <valtimo-widget>\n <div\n *ngIf=\"!task.isLocked\"\n class=\"p-3 clickable hoverable\"\n (click)=\"rowTaskClick(task)\"\n >\n <span class=\"float-right badge badge-pill badge-primary\">{{\n 'summary.taskOpen' | translate\n }}</span>\n <strong>{{ task.name }}</strong>\n <div class=\"mt-1\">{{ 'summary.taskCreated' | translate }} {{ task.created }}</div>\n </div>\n <div class=\"p-3 hoverable\" *ngIf=\"task.isLocked\">\n <span\n class=\"float-right badge badge-pill badge-secondary bg-grey\"\n ngbTooltip=\"{{ 'summary.taskLocked' | translate }}\"\n >\n <i class=\"icon mdi mdi-lock\"></i>\n </span>\n <strong>{{ task.name }}</strong>\n <div>{{ 'summary.taskCreated' | translate }} {{ task.created }}</div>\n </div>\n </valtimo-widget>\n </ng-container>\n </ng-container>\n\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"init()\"\n (assignmentOfTaskChanged)=\"init()\"\n ></valtimo-task-detail-modal>\n </div>\n </div>\n</div>\n\n<ng-template #loadingTasksTemplate>\n <div class=\"loading-container\">\n <cds-loading size=\"sm\"></cds-loading>\n </div>\n</ng-template>\n", styles: [".hoverable:hover{background-color:#eee}.summaryForm .formio-component{margin-bottom:0!important}.summaryForm .formio-component div[ref=element] .form-control{height:24px!important;background-color:#fff;border:0px;margin:0;padding:0!important;font-size:13px}.summaryForm .formio-field div[ref=element] .form-control{font-weight:400}.summaryForm .formio-value div[ref=element] .form-control{font-weight:700}.user-tasks-title{margin-top:0;margin-bottom:12px;font-weight:400;color:#000;height:20px}.loading-container{display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "component", type: i2$3.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i3.TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: ["formSubmit", "assignmentOfTaskChanged"] }, { kind: "directive", type: i10.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: i10$1.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
1085
1054
|
}
|
|
1086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1055
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabSummaryComponent, decorators: [{
|
|
1087
1056
|
type: Component,
|
|
1088
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-summary', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-
|
|
1089
|
-
}], ctorParameters:
|
|
1057
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-summary', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2024 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<div class=\"container-fluid\" *ngIf=\"{loadingTasks: loadingTasks$ | async} as obs\">\n <div class=\"row py-4\">\n <div class=\"col-sm-12 col-md-8 col-xl-9\">\n <div *ngIf=\"document\">\n <div *ngIf=\"formDefinition\" class=\"summaryForm\">\n <div class=\"mb-4\">\n <valtimo-form-io [form]=\"formDefinition\" [options]=\"options\"></valtimo-form-io>\n </div>\n </div>\n </div>\n </div>\n\n <!--Current user tasks right side-->\n <div class=\"col-sm-12 col-md-4 col-xl-3\">\n <h4 class=\"user-tasks-title\">{{ 'summary.userTasks' | translate }}</h4>\n <ng-container *ngIf=\"!obs.loadingTasks; else loadingTasksTemplate\">\n <ng-container *ngIf=\"!tasks.length\">\n <valtimo-widget>\n <div class=\"p-3\">\n <img class=\"float-left\" src=\"assets/audit-2.png\" height=\"25\" />\n <span class=\"float-right\">{{ 'summary.userTasksDoneState' | translate }}</span>\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </ng-container>\n\n <ng-container *ngFor=\"let task of tasks\">\n <valtimo-widget>\n <div\n *ngIf=\"!task.isLocked\"\n class=\"p-3 clickable hoverable\"\n (click)=\"rowTaskClick(task)\"\n >\n <span class=\"float-right badge badge-pill badge-primary\">{{\n 'summary.taskOpen' | translate\n }}</span>\n <strong>{{ task.name }}</strong>\n <div class=\"mt-1\">{{ 'summary.taskCreated' | translate }} {{ task.created }}</div>\n </div>\n <div class=\"p-3 hoverable\" *ngIf=\"task.isLocked\">\n <span\n class=\"float-right badge badge-pill badge-secondary bg-grey\"\n ngbTooltip=\"{{ 'summary.taskLocked' | translate }}\"\n >\n <i class=\"icon mdi mdi-lock\"></i>\n </span>\n <strong>{{ task.name }}</strong>\n <div>{{ 'summary.taskCreated' | translate }} {{ task.created }}</div>\n </div>\n </valtimo-widget>\n </ng-container>\n </ng-container>\n\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"init()\"\n (assignmentOfTaskChanged)=\"init()\"\n ></valtimo-task-detail-modal>\n </div>\n </div>\n</div>\n\n<ng-template #loadingTasksTemplate>\n <div class=\"loading-container\">\n <cds-loading size=\"sm\"></cds-loading>\n </div>\n</ng-template>\n", styles: [".hoverable:hover{background-color:#eee}.summaryForm .formio-component{margin-bottom:0!important}.summaryForm .formio-component div[ref=element] .form-control{height:24px!important;background-color:#fff;border:0px;margin:0;padding:0!important;font-size:13px}.summaryForm .formio-field div[ref=element] .form-control{font-weight:400}.summaryForm .formio-value div[ref=element] .form-control{font-weight:700}.user-tasks-title{margin-top:0;margin-bottom:12px;font-weight:400;color:#000;height:20px}.loading-container{display:flex;width:100%;justify-content:center}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
1058
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i2$1.DocumentService }, { type: i3.TaskService }, { type: i2$2.ProcessService }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i1$1.ActivatedRoute }, { type: i5.FormService }, { type: i6$1.UserProviderService }, { type: i7.PermissionService }], propDecorators: { taskDetail: [{
|
|
1090
1059
|
type: ViewChild,
|
|
1091
1060
|
args: ['taskDetail']
|
|
1092
1061
|
}] } });
|
|
1093
1062
|
|
|
1094
1063
|
/*
|
|
1095
|
-
* Copyright 2015-
|
|
1064
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1096
1065
|
*
|
|
1097
1066
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1098
1067
|
* you may not use this file except in compliance with the License.
|
|
@@ -1113,11 +1082,7 @@ class DossierDetailTabProgressComponent {
|
|
|
1113
1082
|
this.processDocumentInstances$ = this.route.paramMap.pipe(switchMap((params) => this.documentService.findProcessDocumentInstances(params.get('documentId'))), map(processDocumentInstances => processDocumentInstances.map(processDocumentInstance => ({
|
|
1114
1083
|
...processDocumentInstance,
|
|
1115
1084
|
startedOn: new Date(processDocumentInstance.startedOn),
|
|
1116
|
-
}))), map(processDocumentInstances => processDocumentInstances.sort((a, b) => a.active === b.active
|
|
1117
|
-
? b.startedOn.getTime() - a.startedOn.getTime()
|
|
1118
|
-
: a.active
|
|
1119
|
-
? -1
|
|
1120
|
-
: 1)), tap(processDocumentInstances => {
|
|
1085
|
+
}))), map(processDocumentInstances => processDocumentInstances.sort((a, b) => a.active === b.active ? b.startedOn.getTime() - a.startedOn.getTime() : a.active ? -1 : 1)), tap(processDocumentInstances => {
|
|
1121
1086
|
if (processDocumentInstances.length > 0) {
|
|
1122
1087
|
this.selectedProcessInstanceId$.next(processDocumentInstances[0].id.processInstanceId);
|
|
1123
1088
|
}
|
|
@@ -1141,16 +1106,16 @@ class DossierDetailTabProgressComponent {
|
|
|
1141
1106
|
this.selectedProcessInstanceId$.next(processInstanceId);
|
|
1142
1107
|
}
|
|
1143
1108
|
}
|
|
1144
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1145
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1109
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabProgressComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i2$1.DocumentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1110
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabProgressComponent, selector: "valtimo-dossier-detail-tab-progress", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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 class=\"full-height-tab-content\"\n *ngIf=\"{\n processInstanceItems: processInstanceItems$ | async,\n selectedProcessInstance: selectedProcessInstance$ | async\n } as obs\"\n>\n <span *ngIf=\"!obs.processInstanceItems.isLoading && !obs.processInstanceItems.value\">{{\n 'progress.noProcessDocumentInstances' | translate\n }}</span>\n <div class=\"process-info-row\">\n <cds-dropdown\n [dropUp]=\"false\"\n [label]=\"'progress.process' | translate\"\n [skeleton]=\"obs.processInstanceItems.isLoading\"\n [style.width.px]=\"350\"\n (selected)=\"loadProcessInstance($event.item.processInstanceId)\"\n >\n <cds-dropdown-list [items]=\"obs.processInstanceItems.value || []\"></cds-dropdown-list>\n </cds-dropdown>\n <div>\n <v-input-label [title]=\"'progress.version' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"30\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.version }} ({{ 'progress.of' | translate }}\n {{ obs.selectedProcessInstance.value.latestVersion }})\n </span>\n </div>\n <div>\n <v-input-label [title]=\"'progress.startedBy' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"50\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.startedBy || ('progress.system' | translate) }}\n </span>\n </div>\n <div>\n <v-input-label [title]=\"'progress.startedOn' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"50\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.startedOn.toLocaleDateString() }}\n </span>\n </div>\n </div>\n <div>\n <valtimo-process-diagram\n *ngIf=\"!obs.selectedProcessInstance.isLoading\"\n [processInstanceId]=\"obs.selectedProcessInstance.value.id.processInstanceId\"\n ></valtimo-process-diagram>\n </div>\n</ng-container>\n", styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}.process-info-row{display:flex;gap:24px}.process-info-text{color:var(--v-color-black);font-size:var(--v-font-size-default)}.process-info-text{display:flex;height:40px;align-items:center}\n"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$2.ProcessDiagramComponent, selector: "valtimo-process-diagram", inputs: ["processDefinitionKey", "processInstanceId"], outputs: ["importDone"] }, { kind: "component", type: i2$3.InputLabelComponent, selector: "v-input-label", inputs: ["name", "tooltip", "largeMargin", "small", "title", "titleTranslationKey", "required", "disabled", "carbonTheme"] }, { kind: "component", type: i10$1.Dropdown, selector: "cds-dropdown, ibm-dropdown", inputs: ["id", "label", "helperText", "placeholder", "displayValue", "clearText", "size", "type", "theme", "disabled", "skeleton", "inline", "disableArrowKeys", "invalid", "invalidText", "warn", "warnText", "appendInline", "scrollableContainer", "itemValueKey", "selectionFeedback", "menuButtonLabel", "selectedLabel", "dropUp"], outputs: ["selected", "onClose", "close"] }, { kind: "component", type: i10$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i10$1.SkeletonText, selector: "cds-skeleton-text, ibm-skeleton-text", inputs: ["lines", "minLineWidth", "maxLineWidth"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1146
1111
|
}
|
|
1147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1112
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabProgressComponent, decorators: [{
|
|
1148
1113
|
type: Component,
|
|
1149
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-progress', template: "<!--\n ~ Copyright 2015-
|
|
1150
|
-
}], ctorParameters:
|
|
1114
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-progress', template: "<!--\n ~ Copyright 2015-2024 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 class=\"full-height-tab-content\"\n *ngIf=\"{\n processInstanceItems: processInstanceItems$ | async,\n selectedProcessInstance: selectedProcessInstance$ | async\n } as obs\"\n>\n <span *ngIf=\"!obs.processInstanceItems.isLoading && !obs.processInstanceItems.value\">{{\n 'progress.noProcessDocumentInstances' | translate\n }}</span>\n <div class=\"process-info-row\">\n <cds-dropdown\n [dropUp]=\"false\"\n [label]=\"'progress.process' | translate\"\n [skeleton]=\"obs.processInstanceItems.isLoading\"\n [style.width.px]=\"350\"\n (selected)=\"loadProcessInstance($event.item.processInstanceId)\"\n >\n <cds-dropdown-list [items]=\"obs.processInstanceItems.value || []\"></cds-dropdown-list>\n </cds-dropdown>\n <div>\n <v-input-label [title]=\"'progress.version' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"30\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.version }} ({{ 'progress.of' | translate }}\n {{ obs.selectedProcessInstance.value.latestVersion }})\n </span>\n </div>\n <div>\n <v-input-label [title]=\"'progress.startedBy' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"50\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.startedBy || ('progress.system' | translate) }}\n </span>\n </div>\n <div>\n <v-input-label [title]=\"'progress.startedOn' | translate\"></v-input-label>\n <cds-skeleton-text\n *ngIf=\"obs.selectedProcessInstance.isLoading\"\n [lines]=\"1\"\n [maxLineWidth]=\"50\"\n ></cds-skeleton-text>\n <span *ngIf=\"!obs.selectedProcessInstance.isLoading\" class=\"process-info-text\">\n {{ obs.selectedProcessInstance.value.startedOn.toLocaleDateString() }}\n </span>\n </div>\n </div>\n <div>\n <valtimo-process-diagram\n *ngIf=\"!obs.selectedProcessInstance.isLoading\"\n [processInstanceId]=\"obs.selectedProcessInstance.value.id.processInstanceId\"\n ></valtimo-process-diagram>\n </div>\n</ng-container>\n", styles: [".full-height-tab-content{height:calc(100vh - 380px);width:100%}.process-info-row{display:flex;gap:24px}.process-info-text{color:var(--v-color-black);font-size:var(--v-font-size-default)}.process-info-text{display:flex;height:40px;align-items:center}\n"] }]
|
|
1115
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i2$1.DocumentService }] });
|
|
1151
1116
|
|
|
1152
1117
|
/*
|
|
1153
|
-
* Copyright 2015-
|
|
1118
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1154
1119
|
*
|
|
1155
1120
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1156
1121
|
* you may not use this file except in compliance with the License.
|
|
@@ -1204,18 +1169,18 @@ class DossierDetailTabAuditComponent {
|
|
|
1204
1169
|
this.currentAuditPage = page - 1;
|
|
1205
1170
|
this.loadAuditPage(this.currentAuditPage);
|
|
1206
1171
|
}
|
|
1207
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1208
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1172
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabAuditComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i2$1.DocumentService }, { token: i3$1.NgxSpinnerService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1173
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabAuditComponent, selector: "valtimo-dossier-detail-tab-audit", outputs: { paginationClicked: "paginationClicked" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n class=\"pagination-holder audit-pagination bg-light px-4 pt-4 pb-2 overflow-auto row mr-0 ml-0\"\n *ngIf=\"pagination && pagination.totalElements > pagination.size\"\n>\n <div class=\"float-left page-count col-4\">\n <strong>{{\n 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages}\n }}</strong>\n <br />\n {{\n pagination.totalElements === 1\n ? ('list.showingResult' | translate: {number: pagination.content.length})\n : ('list.showingResults'\n | translate: {number: pagination.content.length, total: pagination.totalElements})\n }}\n </div>\n <div class=\"col-8\">\n <ngb-pagination\n *ngIf=\"pagination.totalElements > pagination.size\"\n class=\"float-right\"\n [collectionSize]=\"pagination.totalElements\"\n [(page)]=\"pagination.number\"\n [pageSize]=\"pagination.size\"\n [maxSize]=\"pagination.size\"\n [rotate]=\"true\"\n (pageChange)=\"onChangePagination(pagination.number)\"\n ></ngb-pagination>\n </div>\n</div>\n", styles: [".audit-pagination{margin:0 -1.923rem -1.923rem!important;border-top:1px solid #dee2e6}\n"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.TimelineComponent, selector: "valtimo-timeline", inputs: ["items", "actions"] }, { kind: "component", type: i2$3.SpinnerComponent, selector: "valtimo-spinner", inputs: ["useBootstrapSpinner", "name", "type", "size", "color", "bdColor", "fullScreen", "noMarginTop"] }, { kind: "component", type: i10.NgbPagination, selector: "ngb-pagination", inputs: ["disabled", "boundaryLinks", "directionLinks", "ellipses", "rotate", "collectionSize", "maxSize", "page", "pageSize", "size"], outputs: ["pageChange"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1209
1174
|
}
|
|
1210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1175
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabAuditComponent, decorators: [{
|
|
1211
1176
|
type: Component,
|
|
1212
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-audit', template: "<!--\n ~ Copyright 2015-
|
|
1213
|
-
}], ctorParameters:
|
|
1177
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-audit', template: "<!--\n ~ Copyright 2015-2024 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<div *ngIf=\"timelineItems\">\n <valtimo-timeline [items]=\"timelineItems\"></valtimo-timeline>\n</div>\n<valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n>\n</valtimo-spinner>\n<div\n class=\"pagination-holder audit-pagination bg-light px-4 pt-4 pb-2 overflow-auto row mr-0 ml-0\"\n *ngIf=\"pagination && pagination.totalElements > pagination.size\"\n>\n <div class=\"float-left page-count col-4\">\n <strong>{{\n 'list.currentPage' | translate: {current: pagination.number, total: pagination.totalPages}\n }}</strong>\n <br />\n {{\n pagination.totalElements === 1\n ? ('list.showingResult' | translate: {number: pagination.content.length})\n : ('list.showingResults'\n | translate: {number: pagination.content.length, total: pagination.totalElements})\n }}\n </div>\n <div class=\"col-8\">\n <ngb-pagination\n *ngIf=\"pagination.totalElements > pagination.size\"\n class=\"float-right\"\n [collectionSize]=\"pagination.totalElements\"\n [(page)]=\"pagination.number\"\n [pageSize]=\"pagination.size\"\n [maxSize]=\"pagination.size\"\n [rotate]=\"true\"\n (pageChange)=\"onChangePagination(pagination.number)\"\n ></ngb-pagination>\n </div>\n</div>\n", styles: [".audit-pagination{margin:0 -1.923rem -1.923rem!important;border-top:1px solid #dee2e6}\n"] }]
|
|
1178
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i2$1.DocumentService }, { type: i3$1.NgxSpinnerService }], propDecorators: { paginationClicked: [{
|
|
1214
1179
|
type: Output
|
|
1215
1180
|
}] } });
|
|
1216
1181
|
|
|
1217
1182
|
/*
|
|
1218
|
-
* Copyright 2015-
|
|
1183
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1219
1184
|
*
|
|
1220
1185
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1221
1186
|
* you may not use this file except in compliance with the License.
|
|
@@ -1229,159 +1194,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1229
1194
|
* See the License for the specific language governing permissions and
|
|
1230
1195
|
* limitations under the License.
|
|
1231
1196
|
*/
|
|
1232
|
-
class
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
}
|
|
1236
|
-
sortRelatedFilesByDateDescending(relatedFiles) {
|
|
1237
|
-
const sortByDate = this.configService.config?.featureToggles?.sortFilesByDate;
|
|
1238
|
-
if (sortByDate) {
|
|
1239
|
-
return relatedFiles.sort((a, b) => new Date(b.createdOn).getTime() - new Date(a.createdOn).getTime());
|
|
1240
|
-
}
|
|
1241
|
-
return relatedFiles;
|
|
1242
|
-
}
|
|
1243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSortService, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1244
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSortService, providedIn: 'root' }); }
|
|
1245
|
-
}
|
|
1246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FileSortService, decorators: [{
|
|
1247
|
-
type: Injectable,
|
|
1248
|
-
args: [{
|
|
1249
|
-
providedIn: 'root',
|
|
1250
|
-
}]
|
|
1251
|
-
}], ctorParameters: function () { return [{ type: i1.ConfigService }]; } });
|
|
1252
|
-
|
|
1253
|
-
/*
|
|
1254
|
-
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
1255
|
-
*
|
|
1256
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1257
|
-
* you may not use this file except in compliance with the License.
|
|
1258
|
-
* You may obtain a copy of the License at
|
|
1259
|
-
*
|
|
1260
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1261
|
-
*
|
|
1262
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1263
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1264
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1265
|
-
* See the License for the specific language governing permissions and
|
|
1266
|
-
* limitations under the License.
|
|
1267
|
-
*/
|
|
1268
|
-
class DossierDetailTabDocumentenApiDocumentsComponent {
|
|
1269
|
-
constructor(route, documentService, toastrService, uploadProviderService, downloadService, promptService, translateService, configService, userProviderService, fileSortService) {
|
|
1270
|
-
this.route = route;
|
|
1271
|
-
this.documentService = documentService;
|
|
1272
|
-
this.toastrService = toastrService;
|
|
1273
|
-
this.uploadProviderService = uploadProviderService;
|
|
1274
|
-
this.downloadService = downloadService;
|
|
1275
|
-
this.promptService = promptService;
|
|
1276
|
-
this.translateService = translateService;
|
|
1277
|
-
this.configService = configService;
|
|
1278
|
-
this.userProviderService = userProviderService;
|
|
1279
|
-
this.fileSortService = fileSortService;
|
|
1280
|
-
this.maxFileSize = this.configService?.config?.caseFileSizeUploadLimitMB || 5;
|
|
1281
|
-
this.acceptedFiles = this.configService?.config?.caseFileUploadAcceptedFiles || null;
|
|
1282
|
-
this.fields = [
|
|
1283
|
-
{ key: 'fileName', label: 'File name' },
|
|
1284
|
-
{ key: 'sizeInBytes', label: 'Size in bytes' },
|
|
1285
|
-
{ key: 'createdOn', label: 'Created on' },
|
|
1286
|
-
{ key: 'createdBy', label: 'Created by' },
|
|
1287
|
-
];
|
|
1288
|
-
this.uploadProcessLinkedSet = false;
|
|
1289
|
-
this.uploading$ = new BehaviorSubject(false);
|
|
1290
|
-
this.showModal$ = new Subject();
|
|
1291
|
-
this.hideModal$ = new Subject();
|
|
1292
|
-
this.modalDisabled$ = new BehaviorSubject(false);
|
|
1293
|
-
this.fileToBeUploaded$ = new BehaviorSubject(null);
|
|
1294
|
-
this.loading$ = new BehaviorSubject(true);
|
|
1295
|
-
this.refetch$ = new BehaviorSubject(null);
|
|
1296
|
-
this.relatedFiles$ = this.refetch$.pipe(switchMap$1(() => combineLatest([
|
|
1297
|
-
this.documentService.getZakenApiDocuments(this.documentId),
|
|
1298
|
-
this.translateService.stream('key'),
|
|
1299
|
-
])), map$1(([relatedFiles]) => {
|
|
1300
|
-
const translatedFiles = relatedFiles?.map(file => ({
|
|
1301
|
-
...file,
|
|
1302
|
-
createdBy: file.createdBy || this.translateService.instant('list.automaticallyGenerated'),
|
|
1303
|
-
}));
|
|
1304
|
-
return translatedFiles || [];
|
|
1305
|
-
}), map$1(relatedFiles => this.fileSortService.sortRelatedFilesByDateDescending(relatedFiles)), map$1(relatedFiles => {
|
|
1306
|
-
moment.locale(this.translateService.currentLang);
|
|
1307
|
-
return relatedFiles.map(file => ({
|
|
1308
|
-
...file,
|
|
1309
|
-
createdOn: moment(new Date(file.createdOn)).format('L'),
|
|
1310
|
-
}));
|
|
1311
|
-
}), tap$1(() => this.loading$.next(false)), catchError(() => {
|
|
1312
|
-
this.showZaakLinkWarning = true;
|
|
1313
|
-
return of([]);
|
|
1314
|
-
}));
|
|
1315
|
-
this.downloadingFileIndexes$ = new BehaviorSubject([]);
|
|
1316
|
-
const snapshot = this.route.snapshot.paramMap;
|
|
1317
|
-
this.documentId = snapshot.get('documentId') || '';
|
|
1318
|
-
this.documentDefinitionName = snapshot.get('documentDefinitionName') || '';
|
|
1319
|
-
}
|
|
1320
|
-
ngOnInit() {
|
|
1321
|
-
this.refetchDocuments();
|
|
1322
|
-
this.setUploadProcessLinked();
|
|
1323
|
-
this.isUserAdmin();
|
|
1324
|
-
}
|
|
1325
|
-
fileSelected(file) {
|
|
1326
|
-
this.fileToBeUploaded$.next(file);
|
|
1327
|
-
this.showModal$.next(null);
|
|
1328
|
-
}
|
|
1329
|
-
downloadDocument(relatedFile, index) {
|
|
1330
|
-
this.downloadingFileIndexes$.pipe(take$1(1)).subscribe(indexes => {
|
|
1331
|
-
this.downloadingFileIndexes$.next([...indexes, index]);
|
|
1332
|
-
const finished$ = this.downloadService.downloadFile(`/api/v1/documenten-api/${relatedFile.pluginConfigurationId}/files/${relatedFile.fileId}/download`, relatedFile.fileName);
|
|
1333
|
-
finished$.pipe(take$1(1)).subscribe(() => {
|
|
1334
|
-
this.downloadingFileIndexes$.next(this.downloadingFileIndexes$.getValue().filter(downloadIndex => downloadIndex !== index));
|
|
1335
|
-
});
|
|
1336
|
-
});
|
|
1337
|
-
}
|
|
1338
|
-
metadataSet(metadata) {
|
|
1339
|
-
this.uploading$.next(true);
|
|
1340
|
-
this.hideModal$.next(null);
|
|
1341
|
-
this.fileToBeUploaded$
|
|
1342
|
-
.pipe(take$1(1))
|
|
1343
|
-
.pipe(tap$1(file => {
|
|
1344
|
-
this.uploadProviderService
|
|
1345
|
-
.uploadFileWithMetadata(file, this.documentId, metadata)
|
|
1346
|
-
.subscribe(res => {
|
|
1347
|
-
this.refetchDocuments();
|
|
1348
|
-
this.uploading$.next(false);
|
|
1349
|
-
this.fileToBeUploaded$.next(null);
|
|
1350
|
-
});
|
|
1351
|
-
}))
|
|
1352
|
-
.subscribe();
|
|
1353
|
-
}
|
|
1354
|
-
indexesIncludeIndex(indexes, index) {
|
|
1355
|
-
return indexes.includes(index);
|
|
1356
|
-
}
|
|
1357
|
-
isUserAdmin() {
|
|
1358
|
-
this.userProviderService.getUserSubject().subscribe(userIdentity => {
|
|
1359
|
-
this.isAdmin = userIdentity.roles.includes('ROLE_ADMIN');
|
|
1360
|
-
}, error => {
|
|
1361
|
-
this.isAdmin = false;
|
|
1362
|
-
});
|
|
1363
|
-
}
|
|
1364
|
-
refetchDocuments() {
|
|
1365
|
-
this.refetch$.next(null);
|
|
1366
|
-
}
|
|
1367
|
-
setUploadProcessLinked() {
|
|
1368
|
-
this.uploadProviderService.checkUploadProcessLink(this.documentDefinitionName).subscribe(linked => {
|
|
1369
|
-
this.uploadProcessLinked = linked;
|
|
1370
|
-
this.uploadProcessLinkedSet = true;
|
|
1371
|
-
}, () => {
|
|
1372
|
-
this.uploadProcessLinkedSet = true;
|
|
1373
|
-
});
|
|
1374
|
-
}
|
|
1375
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabDocumentenApiDocumentsComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i2$1.DocumentService }, { token: i3$3.ToastrService }, { token: i4$1.UploadProviderService }, { token: i4$1.DownloadService }, { token: i3$1.PromptService }, { token: i6.TranslateService }, { token: i1.ConfigService }, { token: i6$1.UserProviderService }, { token: FileSortService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1376
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DossierDetailTabDocumentenApiDocumentsComponent, selector: "valtimo-dossier-detail-tab-documenten-api-documents", ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 *ngIf=\"{loading: loading$ | async} as obs\">\n <div *ngIf=\"uploadProcessLinkedSet && !uploadProcessLinked\">\n <div\n *ngIf=\"isAdmin\"\n [translate]=\"'dossier.documenten.noProcessLinked.adminRole'\"\n class=\"bg-warning text-black mb-2 p-3 text-center\"\n ></div>\n <div\n *ngIf=\"!isAdmin\"\n [translate]=\"'dossier.documenten.noProcessLinked.regularUser'\"\n class=\"bg-warning text-black mb-2 p-3 text-center\"\n ></div>\n </div>\n <div *ngIf=\"showZaakLinkWarning\">\n <div\n [translate]=\"'dossier.documenten.noZaakFound'\"\n class=\"bg-warning text-black mb-2 p-3 text-center\"\n ></div>\n </div>\n\n <valtimo-dropzone\n *ngIf=\"!obs.loading\"\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"acceptedFiles\"\n [camera]=\"false\"\n [disabled]=\"\n !uploadProcessLinkedSet || !uploadProcessLinked || obs.loading || showZaakLinkWarning\n \"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"maxFileSize\"\n [maxFiles]=\"1\"\n [showMaxFileSize]=\"true\"\n [uploading]=\"uploading$ | async\"\n ></valtimo-dropzone>\n\n <valtimo-widget>\n <valtimo-list\n [ngClass]=\"{hidden: obs.loading}\"\n [fields]=\"fields\"\n [header]=\"true\"\n [isSearchable]=\"true\"\n [items]=\"relatedFiles$ | async\"\n [viewMode]=\"true\"\n [lastColumnTemplate]=\"downloadButton\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Related documents' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all documents in this dossier' | translate }}\n </h5>\n </div>\n </valtimo-list>\n <ng-container *ngTemplateOutlet=\"loading; context: {loading: obs.loading}\"></ng-container>\n </valtimo-widget>\n</ng-container>\n\n<valtimo-documenten-api-metadata-modal\n (metadata)=\"metadataSet($event)\"\n [disabled$]=\"modalDisabled$\"\n [file$]=\"fileToBeUploaded$\"\n [hide$]=\"hideModal$\"\n [show$]=\"showModal$\"\n></valtimo-documenten-api-metadata-modal>\n\n<ng-template #loading let-loading=\"loading\">\n <div *ngIf=\"loading\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n</ng-template>\n\n<ng-template #downloadButton let-index=\"index\" let-item=\"item\">\n <div\n class=\"download-button-container\"\n *ngIf=\"{isDownloading: indexesIncludeIndex(downloadingFileIndexes$ | async, index)} as vars\"\n >\n <button\n *ngIf=\"!vars.isDownloading\"\n cdsButton=\"primary\"\n size=\"sm\"\n (click)=\"downloadDocument(item, index)\"\n >\n {{ 'interface.download' | translate\n }}<svg class=\"cds--btn__icon\" cdsIcon=\"download\" size=\"16\"></svg>\n </button>\n <cds-loading size=\"sm\" *ngIf=\"vars.isDownloading\"></cds-loading>\n </div>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.hidden{display:none}.loading-container{padding:var(--cds-grid-margin);display:flex;align-items:center;justify-content:center}.download-button-container{display:flex;width:100%;flex-direction:row;justify-content:flex-end;align-items:center;min-height:32px}\n"], dependencies: [{ kind: "directive", type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.ListComponent, selector: "valtimo-list", inputs: ["items", "fields", "pagination", "viewMode", "isSearchable", "header", "actions", "paginationIdentifier", "initialSortState", "lastColumnTemplate"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged"] }, { kind: "component", type: i3$1.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "directive", type: i6.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: i3$1.DropzoneComponent, selector: "valtimo-dropzone", inputs: ["title", "hideTitle", "subtitle", "externalError$", "maxFileSize", "showMaxFileSize", "acceptedFiles", "clear$", "disabled", "hideFilePreview", "uploading", "camera", "maxFiles"], outputs: ["fileSelected"] }, { kind: "component", type: i3$1.DocumentenApiMetadataModalComponent, selector: "valtimo-documenten-api-metadata-modal", inputs: ["show$", "hide$", "disabled$", "file$", "documentTitle", "disableDocumentTitle", "filename", "disableFilename", "author", "disableAuthor", "status", "disableStatus", "language", "disableLanguage", "documentType", "disableDocumentType", "description", "disableDescription", "confidentialityLevel", "disableConfidentialityLevel"], outputs: ["metadata"] }, { kind: "component", type: i4.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i4.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i4.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1197
|
+
class DossierDetailTabNotFoundComponent {
|
|
1198
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabNotFoundComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1199
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabNotFoundComponent, selector: "valtimo-dossier-detail-not-found", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-no-results\n [title]=\"'dossier.tabs.componentNotFound' | translate\"\n [description]=\"'dossier.tabs.componentNotFoundMessage' | translate\"\n illustration=\"valtimo-layout/img/emptystate-error.svg\"\n></valtimo-no-results>\n", styles: ["/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "component", type: i2$3.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1377
1200
|
}
|
|
1378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabNotFoundComponent, decorators: [{
|
|
1379
1202
|
type: Component,
|
|
1380
|
-
args: [{ selector: 'valtimo-dossier-detail-
|
|
1381
|
-
}]
|
|
1203
|
+
args: [{ selector: 'valtimo-dossier-detail-not-found', template: "<!--\n ~ Copyright 2015-2024 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-no-results\n [title]=\"'dossier.tabs.componentNotFound' | translate\"\n [description]=\"'dossier.tabs.componentNotFoundMessage' | translate\"\n illustration=\"valtimo-layout/img/emptystate-error.svg\"\n></valtimo-no-results>\n", styles: ["/*!\n * Copyright 2015-2024 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"] }]
|
|
1204
|
+
}] });
|
|
1382
1205
|
|
|
1383
1206
|
/*
|
|
1384
|
-
* Copyright 2015-
|
|
1207
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1385
1208
|
*
|
|
1386
1209
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1387
1210
|
* you may not use this file except in compliance with the License.
|
|
@@ -1495,16 +1318,16 @@ class DossierDetailTabS3DocumentsComponent {
|
|
|
1495
1318
|
refetchDocuments() {
|
|
1496
1319
|
this.refetch$.next(null);
|
|
1497
1320
|
}
|
|
1498
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1499
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1321
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabS3DocumentsComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i2$1.DocumentService }, { token: i3$2.ToastrService }, { token: i4.UploadProviderService }, { token: i4.DownloadService }, { token: i2$3.PromptService }, { token: i6.TranslateService }, { token: i1.ConfigService }, { token: i2$1.FileSortService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1322
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabS3DocumentsComponent, selector: "valtimo-dossier-detail-tab-s3-documents", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-dropzone\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"acceptedFiles\"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"maxFileSize\"\n [showMaxFileSize]=\"true\"\n [camera]=\"false\"\n [uploading]=\"uploading$ | async\"\n></valtimo-dropzone>\n\n<valtimo-widget>\n <valtimo-list\n [fields]=\"fields\"\n [items]=\"relatedFiles$ | async\"\n [header]=\"true\"\n [isSearchable]=\"true\"\n [viewMode]=\"true\"\n [actions]=\"actions\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Related documents' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all documents in this dossier' | translate }}\n </h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n", styles: ["/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "component", type: i2$3.ListComponent, selector: "valtimo-list", inputs: ["items", "fields", "pagination", "viewMode", "isSearchable", "header", "actions", "paginationIdentifier", "initialSortState", "lastColumnTemplate"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged"] }, { kind: "component", type: i2$3.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "component", type: i2$3.DropzoneComponent, selector: "valtimo-dropzone", inputs: ["title", "hideTitle", "subtitle", "externalError$", "maxFileSize", "showMaxFileSize", "acceptedFiles", "clear$", "disabled", "hideFilePreview", "uploading", "camera", "maxFiles"], outputs: ["fileSelected"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1500
1323
|
}
|
|
1501
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1324
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabS3DocumentsComponent, decorators: [{
|
|
1502
1325
|
type: Component,
|
|
1503
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-s3-documents', template: "<!--\n ~ Copyright 2015-
|
|
1504
|
-
}], ctorParameters:
|
|
1326
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-s3-documents', template: "<!--\n ~ Copyright 2015-2024 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-dropzone\n (fileSelected)=\"fileSelected($event)\"\n [acceptedFiles]=\"acceptedFiles\"\n [hideFilePreview]=\"true\"\n [hideTitle]=\"true\"\n [maxFileSize]=\"maxFileSize\"\n [showMaxFileSize]=\"true\"\n [camera]=\"false\"\n [uploading]=\"uploading$ | async\"\n></valtimo-dropzone>\n\n<valtimo-widget>\n <valtimo-list\n [fields]=\"fields\"\n [items]=\"relatedFiles$ | async\"\n [header]=\"true\"\n [isSearchable]=\"true\"\n [viewMode]=\"true\"\n [actions]=\"actions\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Related documents' | translate }}</h3>\n <h5 class=\"list-header-description\">\n {{ 'Overview of all documents in this dossier' | translate }}\n </h5>\n </div>\n </valtimo-list>\n</valtimo-widget>\n", styles: ["/*!\n * Copyright 2015-2024 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"] }]
|
|
1327
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i2$1.DocumentService }, { type: i3$2.ToastrService }, { type: i4.UploadProviderService }, { type: i4.DownloadService }, { type: i2$3.PromptService }, { type: i6.TranslateService }, { type: i1.ConfigService }, { type: i2$1.FileSortService }] });
|
|
1505
1328
|
|
|
1506
1329
|
/*
|
|
1507
|
-
* Copyright 2015-
|
|
1330
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1508
1331
|
*
|
|
1509
1332
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1510
1333
|
* you may not use this file except in compliance with the License.
|
|
@@ -1519,204 +1342,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1519
1342
|
* limitations under the License.
|
|
1520
1343
|
*/
|
|
1521
1344
|
class DossierDetailTabDocumentsComponent {
|
|
1522
|
-
constructor(configService) {
|
|
1345
|
+
constructor(configService, zgwDocumentenApiDocumentsComponent) {
|
|
1523
1346
|
this.configService = configService;
|
|
1524
|
-
this.
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
this.
|
|
1529
|
-
this.documentenApiUploadProvider =
|
|
1530
|
-
this.
|
|
1531
|
-
}
|
|
1532
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabDocumentsComponent, deps: [{ token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1533
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DossierDetailTabDocumentsComponent, selector: "valtimo-dossier-detail-tab-documents", ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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-dossier-detail-tab-s3-documents\n *ngIf=\"s3UploadProvider || openZaakUploadProvider\"\n></valtimo-dossier-detail-tab-s3-documents>\n<valtimo-dossier-detail-tab-documenten-api-documents *ngIf=\"documentenApiUploadProvider\">\n</valtimo-dossier-detail-tab-documenten-api-documents>\n", styles: [""], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DossierDetailTabDocumentenApiDocumentsComponent, selector: "valtimo-dossier-detail-tab-documenten-api-documents" }, { kind: "component", type: DossierDetailTabS3DocumentsComponent, selector: "valtimo-dossier-detail-tab-s3-documents" }] }); }
|
|
1534
|
-
}
|
|
1535
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabDocumentsComponent, decorators: [{
|
|
1536
|
-
type: Component,
|
|
1537
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-documents', template: "<!--\n ~ Copyright 2015-2023 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-dossier-detail-tab-s3-documents\n *ngIf=\"s3UploadProvider || openZaakUploadProvider\"\n></valtimo-dossier-detail-tab-s3-documents>\n<valtimo-dossier-detail-tab-documenten-api-documents *ngIf=\"documentenApiUploadProvider\">\n</valtimo-dossier-detail-tab-documenten-api-documents>\n" }]
|
|
1538
|
-
}], ctorParameters: function () { return [{ type: i1.ConfigService }]; } });
|
|
1539
|
-
|
|
1540
|
-
/*
|
|
1541
|
-
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
1542
|
-
*
|
|
1543
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1544
|
-
* you may not use this file except in compliance with the License.
|
|
1545
|
-
* You may obtain a copy of the License at
|
|
1546
|
-
*
|
|
1547
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1548
|
-
*
|
|
1549
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1550
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1551
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1552
|
-
* See the License for the specific language governing permissions and
|
|
1553
|
-
* limitations under the License.
|
|
1554
|
-
*/
|
|
1555
|
-
moment.locale(localStorage.getItem('langKey') || '');
|
|
1556
|
-
class DossierDetailTabContactMomentsComponent {
|
|
1557
|
-
constructor(contactMomentService, alertService, translateService) {
|
|
1558
|
-
this.contactMomentService = contactMomentService;
|
|
1559
|
-
this.alertService = alertService;
|
|
1560
|
-
this.translateService = translateService;
|
|
1561
|
-
this.refetchContactMoments$ = new BehaviorSubject('');
|
|
1562
|
-
this.contactMoments$ = this.refetchContactMoments$.pipe(switchMap$1(() => this.contactMomentService.getContactMoments()), map$1(contactMoments => contactMoments.map(contactMoment => {
|
|
1563
|
-
const registratieDatum = moment(contactMoment.registratiedatum);
|
|
1564
|
-
return new TimelineItemImpl(registratieDatum.format('DD MMM YYYY'), registratieDatum.format('HH:mm'), contactMoment.medewerkerIdentificatie.achternaam, contactMoment.kanaal, contactMoment.tekst, null);
|
|
1565
|
-
})));
|
|
1566
|
-
this.text$ = new BehaviorSubject('');
|
|
1567
|
-
this.channel$ = new BehaviorSubject('MAIL');
|
|
1568
|
-
this.requestData$ = combineLatest([this.text$, this.channel$]);
|
|
1569
|
-
this.valid$ = this.requestData$.pipe(map$1(([text, channel]) => !!(text && channel)));
|
|
1570
|
-
this.disabled$ = new BehaviorSubject(false);
|
|
1571
|
-
}
|
|
1572
|
-
textChange(text) {
|
|
1573
|
-
this.text$.next(text);
|
|
1574
|
-
}
|
|
1575
|
-
buttonClick() {
|
|
1576
|
-
this.modal.show();
|
|
1577
|
-
}
|
|
1578
|
-
saveNote() {
|
|
1579
|
-
this.disable();
|
|
1580
|
-
this.requestData$.pipe(take$1(1)).subscribe(([text, channel]) => {
|
|
1581
|
-
this.contactMomentService.saveContactMoment({ kanaal: channel, tekst: text }).subscribe(() => {
|
|
1582
|
-
this.alertService.success(this.translateService.instant('dossier.contactMoments.saveSuccess'));
|
|
1583
|
-
this.enable();
|
|
1584
|
-
this.clear();
|
|
1585
|
-
this.modal.hide();
|
|
1586
|
-
this.refetchContactMoments();
|
|
1587
|
-
}, () => {
|
|
1588
|
-
this.enable();
|
|
1589
|
-
});
|
|
1590
|
-
});
|
|
1591
|
-
}
|
|
1592
|
-
disable() {
|
|
1593
|
-
this.disabled$.next(true);
|
|
1594
|
-
}
|
|
1595
|
-
enable() {
|
|
1596
|
-
this.disabled$.next(false);
|
|
1597
|
-
}
|
|
1598
|
-
clear() {
|
|
1599
|
-
this.text$.next('');
|
|
1600
|
-
}
|
|
1601
|
-
refetchContactMoments() {
|
|
1602
|
-
this.refetchContactMoments$.next('');
|
|
1603
|
-
}
|
|
1604
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabContactMomentsComponent, deps: [{ token: i1$3.ContactMomentService }, { token: i3$1.AlertService }, { token: i6.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1605
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DossierDetailTabContactMomentsComponent, selector: "valtimo-dossier-detail-tab-contact-moments", viewQueries: [{ propertyName: "modal", first: true, predicate: ["contactMomentsNoteModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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<div class=\"contact-moments-container\">\n <ng-container *ngTemplateOutlet=\"buttons\"></ng-container>\n <ng-container *ngTemplateOutlet=\"moments\"></ng-container>\n</div>\n\n<valtimo-modal\n #contactMomentsNoteModal\n [title]=\"'dossier.contactMoments.popupTitle' | translate\"\n [showFooter]=\"true\"\n [elementId]=\"'contact-moments-modal'\"\n>\n <div class=\"mt-2\" body>\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div footer>\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</valtimo-modal>\n\n<ng-template #body>\n <form>\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"body\">\n {{ 'dossier.contactMoments.noteText' | translate }}\n </label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <textarea\n [disabled]=\"disabled$ | async\"\n class=\"form-control\"\n id=\"body\"\n name=\"body\"\n [ngModel]=\"text$ | async\"\n (ngModelChange)=\"textChange($event)\"\n ></textarea>\n </div>\n </div>\n </form>\n</ng-template>\n\n<ng-template #footer>\n <button\n *ngIf=\"(disabled$ | async) === false; else loading\"\n class=\"btn btn-primary\"\n [disabled]=\"(valid$ | async) === false || (disabled$ | async)\"\n (click)=\"saveNote()\"\n >\n {{ 'dossier.contactMoments.saveButtonText' | translate }}\n </button>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner [noMarginTop]=\"true\"></valtimo-spinner>\n</ng-template>\n\n<ng-template #buttons>\n <div class=\"btn-group mt-m3px mb-3 button-container\">\n <button class=\"btn btn-primary btn-space\" (click)=\"buttonClick()\">\n <i class=\"icon mdi mdi-note-plus\"></i>\n {{ 'dossier.contactMoments.makeNoteButton' | translate }}\n </button>\n </div>\n</ng-template>\n\n<ng-template #moments>\n <div *ngIf=\"contactMoments$ | async as contactMoments; else loading\">\n <valtimo-timeline [items]=\"contactMoments\"></valtimo-timeline>\n </div>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.contact-moments-container{display:flex;flex-direction:column}.button-container{display:inline;align-self:flex-end}\n"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.TimelineComponent, selector: "valtimo-timeline", inputs: ["items", "actions"] }, { kind: "directive", type: i2$3.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$3.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2$3.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i3$1.ModalComponent, selector: "valtimo-modal", inputs: ["elementId", "title", "subtitle", "templateBelowSubtitle", "showFooter"] }, { kind: "component", type: i3$1.SpinnerComponent, selector: "valtimo-spinner", inputs: ["useBootstrapSpinner", "name", "type", "size", "color", "bdColor", "fullScreen", "noMarginTop"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1606
|
-
}
|
|
1607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabContactMomentsComponent, decorators: [{
|
|
1608
|
-
type: Component,
|
|
1609
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-contact-moments', template: "<!--\n ~ Copyright 2015-2023 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<div class=\"contact-moments-container\">\n <ng-container *ngTemplateOutlet=\"buttons\"></ng-container>\n <ng-container *ngTemplateOutlet=\"moments\"></ng-container>\n</div>\n\n<valtimo-modal\n #contactMomentsNoteModal\n [title]=\"'dossier.contactMoments.popupTitle' | translate\"\n [showFooter]=\"true\"\n [elementId]=\"'contact-moments-modal'\"\n>\n <div class=\"mt-2\" body>\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </div>\n <div footer>\n <ng-container *ngTemplateOutlet=\"footer\"></ng-container>\n </div>\n</valtimo-modal>\n\n<ng-template #body>\n <form>\n <div class=\"form-group row\">\n <label class=\"col-12 col-sm-3 col-form-label text-sm-right\" for=\"body\">\n {{ 'dossier.contactMoments.noteText' | translate }}\n </label>\n <div class=\"col-12 col-sm-8 col-lg-6\">\n <textarea\n [disabled]=\"disabled$ | async\"\n class=\"form-control\"\n id=\"body\"\n name=\"body\"\n [ngModel]=\"text$ | async\"\n (ngModelChange)=\"textChange($event)\"\n ></textarea>\n </div>\n </div>\n </form>\n</ng-template>\n\n<ng-template #footer>\n <button\n *ngIf=\"(disabled$ | async) === false; else loading\"\n class=\"btn btn-primary\"\n [disabled]=\"(valid$ | async) === false || (disabled$ | async)\"\n (click)=\"saveNote()\"\n >\n {{ 'dossier.contactMoments.saveButtonText' | translate }}\n </button>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-spinner [noMarginTop]=\"true\"></valtimo-spinner>\n</ng-template>\n\n<ng-template #buttons>\n <div class=\"btn-group mt-m3px mb-3 button-container\">\n <button class=\"btn btn-primary btn-space\" (click)=\"buttonClick()\">\n <i class=\"icon mdi mdi-note-plus\"></i>\n {{ 'dossier.contactMoments.makeNoteButton' | translate }}\n </button>\n </div>\n</ng-template>\n\n<ng-template #moments>\n <div *ngIf=\"contactMoments$ | async as contactMoments; else loading\">\n <valtimo-timeline [items]=\"contactMoments\"></valtimo-timeline>\n </div>\n</ng-template>\n", styles: ["/*!\n * Copyright 2015-2023 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 */.contact-moments-container{display:flex;flex-direction:column}.button-container{display:inline;align-self:flex-end}\n"] }]
|
|
1610
|
-
}], ctorParameters: function () { return [{ type: i1$3.ContactMomentService }, { type: i3$1.AlertService }, { type: i6.TranslateService }]; }, propDecorators: { modal: [{
|
|
1611
|
-
type: ViewChild,
|
|
1612
|
-
args: ['contactMomentsNoteModal']
|
|
1613
|
-
}] } });
|
|
1614
|
-
|
|
1615
|
-
/*
|
|
1616
|
-
* Copyright 2015-2023 Ritense BV, the Netherlands.
|
|
1617
|
-
*
|
|
1618
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1619
|
-
* you may not use this file except in compliance with the License.
|
|
1620
|
-
* You may obtain a copy of the License at
|
|
1621
|
-
*
|
|
1622
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1623
|
-
*
|
|
1624
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
1625
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
1626
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1627
|
-
* See the License for the specific language governing permissions and
|
|
1628
|
-
* limitations under the License.
|
|
1629
|
-
*/
|
|
1630
|
-
class DossierDetailTabZaakobjectenComponent {
|
|
1631
|
-
constructor(route, zaakobjectenService, modalService) {
|
|
1632
|
-
this.route = route;
|
|
1633
|
-
this.zaakobjectenService = zaakobjectenService;
|
|
1634
|
-
this.modalService = modalService;
|
|
1635
|
-
this.documentId$ = this.route.params.pipe(map(params => params.documentId));
|
|
1636
|
-
this.objecttypes$ = this.documentId$.pipe(switchMap(documentId => this.zaakobjectenService.getDocumentObjectTypes(documentId)));
|
|
1637
|
-
this.objecttypeSelectItems$ = this.objecttypes$.pipe(map(objecttypes => objecttypes.map(type => ({ id: type.url, text: type.name || '-' }))));
|
|
1638
|
-
this.selectedObjecttypeUrl$ = new BehaviorSubject(null);
|
|
1639
|
-
this.objects$ = combineLatest([
|
|
1640
|
-
this.documentId$,
|
|
1641
|
-
this.selectedObjecttypeUrl$,
|
|
1642
|
-
]).pipe(switchMap(([documentId, selectedObjecttypeUrl]) => documentId && selectedObjecttypeUrl
|
|
1643
|
-
? this.zaakobjectenService
|
|
1644
|
-
.getDocumentObjectsOfType(documentId, selectedObjecttypeUrl)
|
|
1645
|
-
.pipe(map(objects => objects.map(object => ({ ...object, title: object.title || '-' }))))
|
|
1646
|
-
: of(null)));
|
|
1647
|
-
this.columns$ = new BehaviorSubject([
|
|
1648
|
-
{
|
|
1649
|
-
labelTranslationKey: 'dossier.zaakobjecten.index',
|
|
1650
|
-
dataKey: 'index',
|
|
1651
|
-
},
|
|
1652
|
-
{
|
|
1653
|
-
labelTranslationKey: 'dossier.zaakobjecten.registrationAt',
|
|
1654
|
-
dataKey: 'registrationAt',
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
labelTranslationKey: 'dossier.zaakobjecten.title',
|
|
1658
|
-
dataKey: 'title',
|
|
1659
|
-
},
|
|
1660
|
-
]);
|
|
1661
|
-
this.objectForm$ = new BehaviorSubject(null);
|
|
1662
|
-
this.objectName$ = new BehaviorSubject('');
|
|
1663
|
-
this.noFormDefinitionComponent$ = new BehaviorSubject(false);
|
|
1664
|
-
}
|
|
1665
|
-
selectObjectType(objectTypeUrl) {
|
|
1666
|
-
this.selectedObjecttypeUrl$.next(objectTypeUrl);
|
|
1667
|
-
}
|
|
1668
|
-
rowClicked(object, objectTypeSelectItems) {
|
|
1669
|
-
this.documentId$.pipe(take$1(1)).subscribe(documentId => {
|
|
1670
|
-
this.zaakobjectenService.getObjectTypeForm(documentId, object.url).subscribe(res => {
|
|
1671
|
-
const definition = res.formDefinition;
|
|
1672
|
-
definition.components = definition.components.map(component => ({
|
|
1673
|
-
...component,
|
|
1674
|
-
disabled: true,
|
|
1675
|
-
}));
|
|
1676
|
-
this.setModalData(objectTypeSelectItems, definition);
|
|
1677
|
-
}, () => {
|
|
1678
|
-
this.setModalData(objectTypeSelectItems);
|
|
1679
|
-
});
|
|
1680
|
-
});
|
|
1347
|
+
this.zgwDocumentenApiDocumentsComponent = zgwDocumentenApiDocumentsComponent;
|
|
1348
|
+
this.noMargin = false;
|
|
1349
|
+
this.noMinHeight = false;
|
|
1350
|
+
this.openZaakUploadProvider$ = new BehaviorSubject(false);
|
|
1351
|
+
this.s3UploadProvider$ = new BehaviorSubject(false);
|
|
1352
|
+
this.documentenApiUploadProvider$ = new BehaviorSubject(false);
|
|
1353
|
+
this._subscriptions = new Subscription();
|
|
1681
1354
|
}
|
|
1682
|
-
|
|
1683
|
-
this.
|
|
1684
|
-
this.objectName$.next('');
|
|
1685
|
-
this.objectForm$.next(null);
|
|
1686
|
-
});
|
|
1355
|
+
ngOnInit() {
|
|
1356
|
+
this.setConfig(this.configService.config);
|
|
1687
1357
|
}
|
|
1688
|
-
|
|
1689
|
-
this.
|
|
1358
|
+
ngAfterViewInit() {
|
|
1359
|
+
this._subscriptions.add(this.documentenApiUploadProvider$.subscribe(uploadProviderIsDocumentenApi => {
|
|
1360
|
+
this.noMargin = uploadProviderIsDocumentenApi;
|
|
1361
|
+
this.noMinHeight = uploadProviderIsDocumentenApi;
|
|
1362
|
+
if (!uploadProviderIsDocumentenApi)
|
|
1363
|
+
return;
|
|
1364
|
+
this._externalDocumentsTab.createComponent(this.zgwDocumentenApiDocumentsComponent || DossierDetailTabNotFoundComponent);
|
|
1365
|
+
}));
|
|
1690
1366
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
const currentTypeSelectItem = objectTypeSelectItems.find(selectItem => selectItem.id === selectedObjectTypeUrl);
|
|
1694
|
-
return currentTypeSelectItem.text;
|
|
1367
|
+
ngOnDestroy() {
|
|
1368
|
+
this._subscriptions.unsubscribe();
|
|
1695
1369
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
else {
|
|
1702
|
-
this.noFormDefinitionComponent$.next(true);
|
|
1703
|
-
}
|
|
1704
|
-
this.objectName$.next(this.getObjectTypeName(objectTypeSelectItems));
|
|
1705
|
-
this.show();
|
|
1370
|
+
setConfig(config) {
|
|
1371
|
+
const uploadProvider = config.uploadProvider;
|
|
1372
|
+
this.openZaakUploadProvider$.next(uploadProvider === UploadProvider.OPEN_ZAAK);
|
|
1373
|
+
this.s3UploadProvider$.next(config.uploadProvider === UploadProvider.S3);
|
|
1374
|
+
this.documentenApiUploadProvider$.next(uploadProvider === UploadProvider.DOCUMENTEN_API);
|
|
1706
1375
|
}
|
|
1707
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1708
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1376
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabDocumentsComponent, deps: [{ token: i1.ConfigService }, { token: ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1377
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabDocumentsComponent, selector: "valtimo-dossier-detail-tab-documents", host: { properties: { "class.tab--no-margin": "this.noMargin", "class.tab--no-min-height": "this.noMinHeight" } }, viewQueries: [{ propertyName: "_externalDocumentsTab", first: true, predicate: ["externalDocumentsTab"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-dossier-detail-tab-s3-documents\n *ngIf=\"(s3UploadProvider$ | async) || (openZaakUploadProvider$ | async)\"\n></valtimo-dossier-detail-tab-s3-documents>\n\n<ng-template #externalDocumentsTab></ng-template>\n", dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DossierDetailTabS3DocumentsComponent, selector: "valtimo-dossier-detail-tab-s3-documents" }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }] }); }
|
|
1709
1378
|
}
|
|
1710
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1379
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabDocumentsComponent, decorators: [{
|
|
1711
1380
|
type: Component,
|
|
1712
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-
|
|
1713
|
-
}], ctorParameters:
|
|
1381
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-documents', template: "<!--\n ~ Copyright 2015-2024 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-dossier-detail-tab-s3-documents\n *ngIf=\"(s3UploadProvider$ | async) || (openZaakUploadProvider$ | async)\"\n></valtimo-dossier-detail-tab-s3-documents>\n\n<ng-template #externalDocumentsTab></ng-template>\n" }]
|
|
1382
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i0.Type, decorators: [{
|
|
1383
|
+
type: Optional
|
|
1384
|
+
}, {
|
|
1385
|
+
type: Inject,
|
|
1386
|
+
args: [ZGW_DOCUMENTEN_API_DOCUMENTS_COMPONENT_TOKEN]
|
|
1387
|
+
}] }], propDecorators: { noMargin: [{
|
|
1388
|
+
type: HostBinding,
|
|
1389
|
+
args: ['class.tab--no-margin']
|
|
1390
|
+
}], noMinHeight: [{
|
|
1391
|
+
type: HostBinding,
|
|
1392
|
+
args: ['class.tab--no-min-height']
|
|
1393
|
+
}], _externalDocumentsTab: [{
|
|
1714
1394
|
type: ViewChild,
|
|
1715
|
-
args: ['
|
|
1395
|
+
args: ['externalDocumentsTab', { read: ViewContainerRef }]
|
|
1716
1396
|
}] } });
|
|
1717
1397
|
|
|
1718
1398
|
/*
|
|
1719
|
-
* Copyright 2015-
|
|
1399
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1720
1400
|
*
|
|
1721
1401
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1722
1402
|
* you may not use this file except in compliance with the License.
|
|
@@ -1775,7 +1455,7 @@ const CAN_CREATE_CASE_PERMISSION = {
|
|
|
1775
1455
|
};
|
|
1776
1456
|
|
|
1777
1457
|
/*
|
|
1778
|
-
* Copyright 2015-
|
|
1458
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1779
1459
|
*
|
|
1780
1460
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1781
1461
|
* you may not use this file except in compliance with the License.
|
|
@@ -1791,7 +1471,7 @@ const CAN_CREATE_CASE_PERMISSION = {
|
|
|
1791
1471
|
*/
|
|
1792
1472
|
|
|
1793
1473
|
/*
|
|
1794
|
-
* Copyright 2015-
|
|
1474
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1795
1475
|
*
|
|
1796
1476
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1797
1477
|
* you may not use this file except in compliance with the License.
|
|
@@ -1851,18 +1531,18 @@ class NotesService {
|
|
|
1851
1531
|
setModalType(type) {
|
|
1852
1532
|
this._modalType$.next(type);
|
|
1853
1533
|
}
|
|
1854
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1855
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1534
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NotesService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1535
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NotesService, providedIn: 'root' }); }
|
|
1856
1536
|
}
|
|
1857
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NotesService, decorators: [{
|
|
1858
1538
|
type: Injectable,
|
|
1859
1539
|
args: [{
|
|
1860
1540
|
providedIn: 'root',
|
|
1861
1541
|
}]
|
|
1862
|
-
}], ctorParameters:
|
|
1542
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
|
|
1863
1543
|
|
|
1864
1544
|
/*
|
|
1865
|
-
* Copyright 2015-
|
|
1545
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1866
1546
|
*
|
|
1867
1547
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1868
1548
|
* you may not use this file except in compliance with the License.
|
|
@@ -1949,13 +1629,13 @@ class NoteModalComponent {
|
|
|
1949
1629
|
setValid(data) {
|
|
1950
1630
|
this.valid$.next(!!data.content);
|
|
1951
1631
|
}
|
|
1952
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1953
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1632
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NoteModalComponent, deps: [{ token: NotesService }, { token: i2$3.ModalService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1633
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: NoteModalComponent, selector: "valtimo-note-modal", inputs: { customData: "customData" }, outputs: { createNoteEvent: "createNoteEvent", editNoteEvent: "editNoteEvent" }, viewQueries: [{ propertyName: "noteModal", first: true, predicate: ["noteModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-modal\n #noteModal\n *ngIf=\"{disabled: disabled$ | async, valid: valid$ | async, modalType: modalType$ | async} as obs\"\n>\n <div role=\"header\">\n <div class=\"add-note-title\">\n <v-title [margin]=\"false\">{{\n (obs.modalType === 'add' ? 'dossier.notes.addNote' : 'dossier.notes.modifyNote') | translate\n }}</v-title>\n </div>\n </div>\n <div role=\"content\">\n <ng-container *ngTemplateOutlet=\"form\"></ng-container>\n </div>\n <div role=\"footer\">\n <div class=\"buttons\">\n <v-button (clickEvent)=\"cancel()\" [disabled]=\"obs.disabled\" type=\"secondary\">\n {{ 'document.cancel' | translate }}\n </v-button>\n <ng-container\n *ngTemplateOutlet=\"\n obs.modalType === 'add' ? addNoteButton : editNoteButton;\n context: {obs: obs}\n \"\n ></ng-container>\n </div>\n </div>\n</v-modal>\n\n<ng-template #addNoteButton let-obs=\"obs\">\n <v-button\n (clickEvent)=\"emitNoteData()\"\n [disabled]=\"obs.disabled || !obs.valid\"\n mdiIcon=\"plus\"\n type=\"success\"\n >\n {{ 'dossier.notes.addNote' | translate }}\n </v-button>\n</ng-template>\n<ng-template #editNoteButton let-obs=\"obs\">\n <v-button\n [disabled]=\"obs.disabled || !obs.valid\"\n (clickEvent)=\"emitNoteData()\"\n mdiIcon=\"pencil\"\n type=\"success\"\n >\n {{ 'dossier.notes.modifyNote' | translate }}\n </v-button>\n</ng-template>\n\n<ng-template #form>\n <ng-container *ngIf=\"showForm$ | async\">\n <v-form (valueChange)=\"formValueChange($event)\">\n <v-input\n type=\"textarea\"\n [margin]=\"true\"\n [required]=\"true\"\n [title]=\"'dossier.notes.input.content' | translate\"\n name=\"content\"\n [fullWidth]=\"true\"\n [rows]=\"10\"\n [defaultValue]=\"customData?.summaryTranslationKey || ''\"\n >\n </v-input>\n </v-form>\n </ng-container>\n</ng-template>\n", styles: [".buttons,.add-note-title{width:100%;display:flex;flex-direction:row;justify-content:space-between}.add-note-title{justify-content:center}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$3.VModalComponent, selector: "v-modal", inputs: ["appearingDelayMs", "maxWidthPx", "hideFooter"], outputs: ["closeEvent"] }, { kind: "component", type: i2$3.TitleComponent, selector: "v-title", inputs: ["type", "margin", "fullWidth", "center"] }, { kind: "component", type: i2$3.ButtonComponent, selector: "v-button", inputs: ["type", "mdiIcon", "disabled", "title", "titleTranslationKey"], outputs: ["clickEvent"] }, { kind: "component", type: i2$3.InputComponent, selector: "v-input", inputs: ["name", "type", "title", "titleTranslationKey", "defaultValue", "widthPx", "fullWidth", "margin", "smallMargin", "disabled", "step", "min", "maxLength", "tooltip", "required", "hideNumberSpinBox", "smallLabel", "rows", "clear$", "carbonTheme", "placeholder"], outputs: ["valueChange"] }, { kind: "component", type: i2$3.FormComponent, selector: "v-form", inputs: ["className"], outputs: ["valueChange"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
1954
1634
|
}
|
|
1955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: NoteModalComponent, decorators: [{
|
|
1956
1636
|
type: Component,
|
|
1957
|
-
args: [{ selector: 'valtimo-note-modal', template: "<!--\n ~ Copyright 2015-
|
|
1958
|
-
}], ctorParameters:
|
|
1637
|
+
args: [{ selector: 'valtimo-note-modal', template: "<!--\n ~ Copyright 2015-2024 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-modal\n #noteModal\n *ngIf=\"{disabled: disabled$ | async, valid: valid$ | async, modalType: modalType$ | async} as obs\"\n>\n <div role=\"header\">\n <div class=\"add-note-title\">\n <v-title [margin]=\"false\">{{\n (obs.modalType === 'add' ? 'dossier.notes.addNote' : 'dossier.notes.modifyNote') | translate\n }}</v-title>\n </div>\n </div>\n <div role=\"content\">\n <ng-container *ngTemplateOutlet=\"form\"></ng-container>\n </div>\n <div role=\"footer\">\n <div class=\"buttons\">\n <v-button (clickEvent)=\"cancel()\" [disabled]=\"obs.disabled\" type=\"secondary\">\n {{ 'document.cancel' | translate }}\n </v-button>\n <ng-container\n *ngTemplateOutlet=\"\n obs.modalType === 'add' ? addNoteButton : editNoteButton;\n context: {obs: obs}\n \"\n ></ng-container>\n </div>\n </div>\n</v-modal>\n\n<ng-template #addNoteButton let-obs=\"obs\">\n <v-button\n (clickEvent)=\"emitNoteData()\"\n [disabled]=\"obs.disabled || !obs.valid\"\n mdiIcon=\"plus\"\n type=\"success\"\n >\n {{ 'dossier.notes.addNote' | translate }}\n </v-button>\n</ng-template>\n<ng-template #editNoteButton let-obs=\"obs\">\n <v-button\n [disabled]=\"obs.disabled || !obs.valid\"\n (clickEvent)=\"emitNoteData()\"\n mdiIcon=\"pencil\"\n type=\"success\"\n >\n {{ 'dossier.notes.modifyNote' | translate }}\n </v-button>\n</ng-template>\n\n<ng-template #form>\n <ng-container *ngIf=\"showForm$ | async\">\n <v-form (valueChange)=\"formValueChange($event)\">\n <v-input\n type=\"textarea\"\n [margin]=\"true\"\n [required]=\"true\"\n [title]=\"'dossier.notes.input.content' | translate\"\n name=\"content\"\n [fullWidth]=\"true\"\n [rows]=\"10\"\n [defaultValue]=\"customData?.summaryTranslationKey || ''\"\n >\n </v-input>\n </v-form>\n </ng-container>\n</ng-template>\n", styles: [".buttons,.add-note-title{width:100%;display:flex;flex-direction:row;justify-content:space-between}.add-note-title{justify-content:center}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
1638
|
+
}], ctorParameters: () => [{ type: NotesService }, { type: i2$3.ModalService }], propDecorators: { noteModal: [{
|
|
1959
1639
|
type: ViewChild,
|
|
1960
1640
|
args: ['noteModal']
|
|
1961
1641
|
}], customData: [{
|
|
@@ -1967,7 +1647,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1967
1647
|
}] } });
|
|
1968
1648
|
|
|
1969
1649
|
/*
|
|
1970
|
-
* Copyright 2015-
|
|
1650
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1971
1651
|
*
|
|
1972
1652
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1973
1653
|
* you may not use this file except in compliance with the License.
|
|
@@ -1989,6 +1669,7 @@ class DossierDetailTabNotesComponent {
|
|
|
1989
1669
|
this.route = route;
|
|
1990
1670
|
this.toastrService = toastrService;
|
|
1991
1671
|
this.translateService = translateService;
|
|
1672
|
+
this.noMargin = true;
|
|
1992
1673
|
this.timelineItems = [];
|
|
1993
1674
|
this.loading$ = new BehaviorSubject(true);
|
|
1994
1675
|
this.fields$ = new BehaviorSubject([]);
|
|
@@ -2108,16 +1789,19 @@ class DossierDetailTabNotesComponent {
|
|
|
2108
1789
|
},
|
|
2109
1790
|
});
|
|
2110
1791
|
}
|
|
2111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2112
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabNotesComponent, deps: [{ token: NotesService }, { token: i7.PermissionService }, { token: i2$3.PromptService }, { token: i1$1.ActivatedRoute }, { token: i3$2.ToastrService }, { token: i6.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1793
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabNotesComponent, selector: "valtimo-dossier-detail-tab-notes", host: { properties: { "class.tab--no-margin": "this.noMargin" } }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<ng-container\n *ngIf=\"{\n canAdd: canAdd$ | async,\n notes: notes$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <div class=\"cds--toolbar-content\">\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.canAdd\"\n [disabled]=\"obs.loading\"\n (click)=\"showAddModal()\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\"\n >\n {{ 'dossier.notes.addNote' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n </div>\n\n <div *ngIf=\"timelineItems\">\n <valtimo-timeline\n *ngIf=\"timelineItems.length > 0\"\n [actions]=\"actions\"\n [items]=\"timelineItems\"\n ></valtimo-timeline>\n <valtimo-no-results\n *ngIf=\"timelineItems.length === 0\"\n [description]=\"'dossier.notes.noResults.description' | translate\"\n [title]=\"'dossier.notes.noResults.title' | translate\"\n illustration=\"valtimo-layout/img/emptystate-no-result.svg\"\n ></valtimo-no-results>\n </div>\n\n <valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n >\n </valtimo-spinner>\n\n <div *ngIf=\"obs.pagination\" class=\"d-flex justify-content-end row mr-0 ml-0\">\n <ngb-pagination\n *ngIf=\"obs.pagination.collectionSize > obs.pagination.size\"\n [collectionSize]=\"obs.pagination.collectionSize\"\n [maxSize]=\"obs.pagination.size\"\n [pageSize]=\"obs.pagination.size\"\n [rotate]=\"true\"\n [(page)]=\"obs.pagination.page\"\n (pageChange)=\"paginationClicked($event)\"\n ></ngb-pagination>\n </div>\n</ng-container>\n\n<valtimo-note-modal\n [customData]=\"customData$ | async\"\n (createNoteEvent)=\"createNewNote($event)\"\n (editNoteEvent)=\"editNoteEvent($event)\"\n></valtimo-note-modal>\n", styles: [":host{display:flex;flex-direction:column}.add-note{align-self:flex-end}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.TimelineComponent, selector: "valtimo-timeline", inputs: ["items", "actions"] }, { kind: "component", type: i2$3.SpinnerComponent, selector: "valtimo-spinner", inputs: ["useBootstrapSpinner", "name", "type", "size", "color", "bdColor", "fullScreen", "noMarginTop"] }, { kind: "component", type: i10.NgbPagination, selector: "ngb-pagination", inputs: ["disabled", "boundaryLinks", "directionLinks", "ellipses", "rotate", "collectionSize", "maxSize", "page", "pageSize", "size"], outputs: ["pageChange"] }, { kind: "directive", type: i10$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i10$1.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i2$3.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "component", type: NoteModalComponent, selector: "valtimo-note-modal", inputs: ["customData"], outputs: ["createNoteEvent", "editNoteEvent"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
2113
1794
|
}
|
|
2114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabNotesComponent, decorators: [{
|
|
2115
1796
|
type: Component,
|
|
2116
|
-
args: [{ selector: 'valtimo-dossier-detail-tab-notes', template: "<!--\n ~ Copyright 2015-
|
|
2117
|
-
}], ctorParameters:
|
|
1797
|
+
args: [{ selector: 'valtimo-dossier-detail-tab-notes', template: "<!--\n ~ Copyright 2015-2024 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<ng-container\n *ngIf=\"{\n canAdd: canAdd$ | async,\n notes: notes$ | async,\n pagination: pagination$ | async,\n loading: loading$ | async\n } as obs\"\n>\n <div class=\"cds--toolbar-content\">\n <button\n cdsButton=\"primary\"\n *ngIf=\"obs.canAdd\"\n [disabled]=\"obs.loading\"\n (click)=\"showAddModal()\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\"\n >\n {{ 'dossier.notes.addNote' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n </div>\n\n <div *ngIf=\"timelineItems\">\n <valtimo-timeline\n *ngIf=\"timelineItems.length > 0\"\n [actions]=\"actions\"\n [items]=\"timelineItems\"\n ></valtimo-timeline>\n <valtimo-no-results\n *ngIf=\"timelineItems.length === 0\"\n [description]=\"'dossier.notes.noResults.description' | translate\"\n [title]=\"'dossier.notes.noResults.title' | translate\"\n illustration=\"valtimo-layout/img/emptystate-no-result.svg\"\n ></valtimo-no-results>\n </div>\n\n <valtimo-spinner\n [useBootstrapSpinner]=\"false\"\n name=\"auditSpinner\"\n bdColor=\"rgba(125, 125, 125, 0.35)\"\n color=\"#264251\"\n type=\"square-jelly-box\"\n >\n </valtimo-spinner>\n\n <div *ngIf=\"obs.pagination\" class=\"d-flex justify-content-end row mr-0 ml-0\">\n <ngb-pagination\n *ngIf=\"obs.pagination.collectionSize > obs.pagination.size\"\n [collectionSize]=\"obs.pagination.collectionSize\"\n [maxSize]=\"obs.pagination.size\"\n [pageSize]=\"obs.pagination.size\"\n [rotate]=\"true\"\n [(page)]=\"obs.pagination.page\"\n (pageChange)=\"paginationClicked($event)\"\n ></ngb-pagination>\n </div>\n</ng-container>\n\n<valtimo-note-modal\n [customData]=\"customData$ | async\"\n (createNoteEvent)=\"createNewNote($event)\"\n (editNoteEvent)=\"editNoteEvent($event)\"\n></valtimo-note-modal>\n", styles: [":host{display:flex;flex-direction:column}.add-note{align-self:flex-end}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
1798
|
+
}], ctorParameters: () => [{ type: NotesService }, { type: i7.PermissionService }, { type: i2$3.PromptService }, { type: i1$1.ActivatedRoute }, { type: i3$2.ToastrService }, { type: i6.TranslateService }], propDecorators: { noMargin: [{
|
|
1799
|
+
type: HostBinding,
|
|
1800
|
+
args: ['class.tab--no-margin']
|
|
1801
|
+
}] } });
|
|
2118
1802
|
|
|
2119
1803
|
/*
|
|
2120
|
-
* Copyright 2015-
|
|
1804
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2121
1805
|
*
|
|
2122
1806
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2123
1807
|
* you may not use this file except in compliance with the License.
|
|
@@ -2143,13 +1827,11 @@ const DEFAULT_TAB_COMPONENTS = {
|
|
|
2143
1827
|
[DefaultTabs.progress]: DossierDetailTabProgressComponent,
|
|
2144
1828
|
[DefaultTabs.audit]: DossierDetailTabAuditComponent,
|
|
2145
1829
|
[DefaultTabs.documents]: DossierDetailTabDocumentsComponent,
|
|
2146
|
-
[DefaultTabs.contactMoments]: DossierDetailTabContactMomentsComponent,
|
|
2147
|
-
[DefaultTabs.zaakobjecten]: DossierDetailTabZaakobjectenComponent,
|
|
2148
1830
|
[DefaultTabs.notes]: DossierDetailTabNotesComponent,
|
|
2149
1831
|
};
|
|
2150
1832
|
|
|
2151
1833
|
/*
|
|
2152
|
-
* Copyright 2015-
|
|
1834
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2153
1835
|
*
|
|
2154
1836
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2155
1837
|
* you may not use this file except in compliance with the License.
|
|
@@ -2166,7 +1848,7 @@ const DEFAULT_TAB_COMPONENTS = {
|
|
|
2166
1848
|
const CASE_TAB_TOKEN = new InjectionToken('Specify a component to display per configured tab key.');
|
|
2167
1849
|
|
|
2168
1850
|
/*
|
|
2169
|
-
* Copyright 2015-
|
|
1851
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2170
1852
|
*
|
|
2171
1853
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2172
1854
|
* you may not use this file except in compliance with the License.
|
|
@@ -2180,105 +1862,69 @@ const CASE_TAB_TOKEN = new InjectionToken('Specify a component to display per co
|
|
|
2180
1862
|
* See the License for the specific language governing permissions and
|
|
2181
1863
|
* limitations under the License.
|
|
2182
1864
|
*/
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
dataKey: 'registrationAt',
|
|
2228
|
-
},
|
|
2229
|
-
{
|
|
2230
|
-
labelTranslationKey: 'dossier.zaakobjecten.title',
|
|
2231
|
-
dataKey: 'title',
|
|
2232
|
-
},
|
|
2233
|
-
]);
|
|
2234
|
-
this.objectForm$ = new BehaviorSubject(null);
|
|
2235
|
-
this.noFormDefinitionComponent$ = new BehaviorSubject(false);
|
|
2236
|
-
}
|
|
2237
|
-
rowClicked(object) {
|
|
2238
|
-
this.documentId$.pipe(take$1(1)).subscribe(documentId => {
|
|
2239
|
-
this.zaakobjectenService.getObjectTypeForm(documentId, object.url).subscribe(res => {
|
|
2240
|
-
const definition = res.formDefinition;
|
|
2241
|
-
definition.components = definition.components.map(component => ({
|
|
2242
|
-
...component,
|
|
2243
|
-
disabled: true,
|
|
2244
|
-
}));
|
|
2245
|
-
this.setModalData(definition);
|
|
2246
|
-
}, () => {
|
|
2247
|
-
this.setModalData();
|
|
2248
|
-
});
|
|
2249
|
-
});
|
|
2250
|
-
}
|
|
2251
|
-
hide() {
|
|
2252
|
-
this.modalService.closeModal(() => {
|
|
2253
|
-
this.objectForm$.next(null);
|
|
2254
|
-
});
|
|
2255
|
-
}
|
|
2256
|
-
show() {
|
|
2257
|
-
this.modalService.openModal(this.viewObjectModal);
|
|
2258
|
-
}
|
|
2259
|
-
setModalData(definition) {
|
|
2260
|
-
if (definition) {
|
|
2261
|
-
this.objectForm$.next(definition);
|
|
2262
|
-
this.noFormDefinitionComponent$.next(false);
|
|
2263
|
-
}
|
|
2264
|
-
else {
|
|
2265
|
-
this.noFormDefinitionComponent$.next(true);
|
|
2266
|
-
}
|
|
2267
|
-
this.show();
|
|
2268
|
-
}
|
|
2269
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabObjectTypeComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ZaakobjectenService }, { token: i3$1.ModalService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2270
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DossierDetailTabObjectTypeComponent, selector: "valtimo-object-type", viewQueries: [{ propertyName: "viewObjectModal", first: true, predicate: ["viewObjectModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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 objects: objects$ | async,\n columns: columns$ | async,\n loading: loading$ | async,\n hasData: hasData$ | async\n } as obs\"\n>\n <v-table\n *ngIf=\"obs.hasData || obs.loading\"\n [loading]=\"obs.loading\"\n [items]=\"obs.objects\"\n [columns]=\"obs.columns\"\n [showEditButtons]=\"true\"\n editButtonTranslationKey=\"dossier.zaakobjecten.objectType.viewObject\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n (editButtonClicked)=\"rowClicked($event)\"\n ></v-table>\n\n <v-paragraph *ngIf=\"!obs.hasData && !obs.loading\" [center]=\"true\">{{\n 'dossier.zaakobjecten.noObjectType' | translate\n }}</v-paragraph>\n</ng-container>\n\n<v-modal #viewObjectModal (closeEvent)=\"hide()\" [hideFooter]=\"true\" [maxWidthPx]=\"750\">\n <div role=\"header\">\n <v-title [margin]=\"false\" type=\"h2\" [fullWidth]=\"true\" [center]=\"true\">{{\n objectName$ | async\n }}</v-title>\n </div>\n\n <div role=\"content\">\n <valtimo-form-io\n *ngIf=\"(noFormDefinitionComponent$ | async) === false\"\n [form]=\"objectForm$ | async\"\n ></valtimo-form-io>\n <v-paragraph *ngIf=\"noFormDefinitionComponent$ | async\" [center]=\"true\">{{\n 'dossier.zaakobjecten.noFormDefinitionComponent' | translate\n }}</v-paragraph>\n </div>\n</v-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i3$1.ParagraphComponent, selector: "v-paragraph", inputs: ["center", "fullWidth", "margin", "italic", "loading"] }, { kind: "component", type: i3$1.TableComponent, selector: "v-table", inputs: ["items", "columns", "loading", "showEditButtons", "showPagination", "editButtonTranslationKey", "itemsTranslationKey", "noResultsTranslationKey", "mobileBreakpointPx", "amountOfLoadingRows", "collectionSize", "page", "size"], outputs: ["editButtonClicked", "paginationSizeSet", "paginationPageSet"] }, { kind: "component", type: i3$1.VModalComponent, selector: "v-modal", inputs: ["appearingDelayMs", "maxWidthPx", "hideFooter"], outputs: ["closeEvent"] }, { kind: "component", type: i3$1.TitleComponent, selector: "v-title", inputs: ["type", "margin", "fullWidth", "center"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
2271
|
-
}
|
|
2272
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DossierDetailTabObjectTypeComponent, decorators: [{
|
|
2273
|
-
type: Component,
|
|
2274
|
-
args: [{ selector: 'valtimo-object-type', template: "<!--\n ~ Copyright 2015-2023 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 objects: objects$ | async,\n columns: columns$ | async,\n loading: loading$ | async,\n hasData: hasData$ | async\n } as obs\"\n>\n <v-table\n *ngIf=\"obs.hasData || obs.loading\"\n [loading]=\"obs.loading\"\n [items]=\"obs.objects\"\n [columns]=\"obs.columns\"\n [showEditButtons]=\"true\"\n editButtonTranslationKey=\"dossier.zaakobjecten.objectType.viewObject\"\n [amountOfLoadingRows]=\"2\"\n [itemsTranslationKey]=\"'pluginManagement.tableItemsText'\"\n [showPagination]=\"false\"\n (editButtonClicked)=\"rowClicked($event)\"\n ></v-table>\n\n <v-paragraph *ngIf=\"!obs.hasData && !obs.loading\" [center]=\"true\">{{\n 'dossier.zaakobjecten.noObjectType' | translate\n }}</v-paragraph>\n</ng-container>\n\n<v-modal #viewObjectModal (closeEvent)=\"hide()\" [hideFooter]=\"true\" [maxWidthPx]=\"750\">\n <div role=\"header\">\n <v-title [margin]=\"false\" type=\"h2\" [fullWidth]=\"true\" [center]=\"true\">{{\n objectName$ | async\n }}</v-title>\n </div>\n\n <div role=\"content\">\n <valtimo-form-io\n *ngIf=\"(noFormDefinitionComponent$ | async) === false\"\n [form]=\"objectForm$ | async\"\n ></valtimo-form-io>\n <v-paragraph *ngIf=\"noFormDefinitionComponent$ | async\" [center]=\"true\">{{\n 'dossier.zaakobjecten.noFormDefinitionComponent' | translate\n }}</v-paragraph>\n </div>\n</v-modal>\n", styles: ["/*!\n * Copyright 2015-2023 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"] }]
|
|
2275
|
-
}], ctorParameters: function () { return [{ type: i1$1.ActivatedRoute }, { type: ZaakobjectenService }, { type: i3$1.ModalService }]; }, propDecorators: { viewObjectModal: [{
|
|
2276
|
-
type: ViewChild,
|
|
2277
|
-
args: ['viewObjectModal']
|
|
2278
|
-
}] } });
|
|
1865
|
+
const DEFAULT_DOSSIER_LIST_TABS = [
|
|
1866
|
+
DossierListTab.ALL,
|
|
1867
|
+
DossierListTab.MINE,
|
|
1868
|
+
DossierListTab.OPEN,
|
|
1869
|
+
];
|
|
1870
|
+
const DOSSIER_LIST_TABLE_TRANSLATIONS = {
|
|
1871
|
+
select: {
|
|
1872
|
+
single: 'dossier.select.single',
|
|
1873
|
+
multiple: 'dossier.select.multiple',
|
|
1874
|
+
},
|
|
1875
|
+
pagination: {
|
|
1876
|
+
itemsPerPage: 'dossier.pagination.itemsPerPage',
|
|
1877
|
+
totalItem: 'dossier.pagination.totalItem',
|
|
1878
|
+
totalItems: 'dossier.pagination.totalItems',
|
|
1879
|
+
},
|
|
1880
|
+
};
|
|
1881
|
+
const DOSSIER_LIST_NO_RESULTS_MESSAGE = {
|
|
1882
|
+
description: 'dossier.noResults.ALL.description',
|
|
1883
|
+
isSearchResult: false,
|
|
1884
|
+
title: 'dossier.noResults.ALL.title',
|
|
1885
|
+
};
|
|
1886
|
+
|
|
1887
|
+
/*
|
|
1888
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1889
|
+
*
|
|
1890
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1891
|
+
* you may not use this file except in compliance with the License.
|
|
1892
|
+
* You may obtain a copy of the License at
|
|
1893
|
+
*
|
|
1894
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1895
|
+
*
|
|
1896
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1897
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1898
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1899
|
+
* See the License for the specific language governing permissions and
|
|
1900
|
+
* limitations under the License.
|
|
1901
|
+
*/
|
|
1902
|
+
const CASE_WITHOUT_STATUS_STATUS = {
|
|
1903
|
+
key: CASES_WITHOUT_STATUS_KEY,
|
|
1904
|
+
documentDefinitionName: '',
|
|
1905
|
+
title: '',
|
|
1906
|
+
color: InternalCaseStatusColor.Gray,
|
|
1907
|
+
visibleInCaseListByDefault: false,
|
|
1908
|
+
};
|
|
2279
1909
|
|
|
2280
1910
|
/*
|
|
2281
|
-
* Copyright 2015-
|
|
1911
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1912
|
+
*
|
|
1913
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1914
|
+
* you may not use this file except in compliance with the License.
|
|
1915
|
+
* You may obtain a copy of the License at
|
|
1916
|
+
*
|
|
1917
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1918
|
+
*
|
|
1919
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1920
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1921
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1922
|
+
* See the License for the specific language governing permissions and
|
|
1923
|
+
* limitations under the License.
|
|
1924
|
+
*/
|
|
1925
|
+
|
|
1926
|
+
/*
|
|
1927
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2282
1928
|
*
|
|
2283
1929
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2284
1930
|
* you may not use this file except in compliance with the License.
|
|
@@ -2319,14 +1965,29 @@ class DossierDetailTabFormioComponent {
|
|
|
2319
1965
|
return of(null);
|
|
2320
1966
|
}));
|
|
2321
1967
|
}
|
|
2322
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2323
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1968
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabFormioComponent, deps: [{ token: DossierTabService }, { token: i1$1.ActivatedRoute }, { token: i5.FormService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1969
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierDetailTabFormioComponent, selector: "ng-component", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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 prefilledForm: prefilledForm$ | async,\n loading: loading$ | async,\n formNotFound: formNotFound$ | async,\n noFormSpecified: noFormSpecified$ | async\n } as obs\"\n>\n <div *ngIf=\"obs.loading\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n\n <p *ngIf=\"obs.formNotFound\" class=\"error-message\">\n {{ 'dossier.formio.formNotFound' | translate: {formDefinitionName: obs.formNotFound} }}\n </p>\n\n <p *ngIf=\"obs.noFormSpecified\" class=\"error-message\">\n {{ 'dossier.formio.noFormSpecified' | translate }}\n </p>\n\n <valtimo-form-io *ngIf=\"obs.prefilledForm\" [form]=\"obs.prefilledForm\"> </valtimo-form-io>\n</ng-container>\n", styles: [".loading-container{display:flex;width:100%;flex-direction:row;justify-content:center}.error-message{text-align:center}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i10$1.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2324
1970
|
}
|
|
2325
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1971
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailTabFormioComponent, decorators: [{
|
|
2326
1972
|
type: Component,
|
|
2327
|
-
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-
|
|
2328
|
-
}], ctorParameters:
|
|
1973
|
+
args: [{ changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 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 prefilledForm: prefilledForm$ | async,\n loading: loading$ | async,\n formNotFound: formNotFound$ | async,\n noFormSpecified: noFormSpecified$ | async\n } as obs\"\n>\n <div *ngIf=\"obs.loading\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n\n <p *ngIf=\"obs.formNotFound\" class=\"error-message\">\n {{ 'dossier.formio.formNotFound' | translate: {formDefinitionName: obs.formNotFound} }}\n </p>\n\n <p *ngIf=\"obs.noFormSpecified\" class=\"error-message\">\n {{ 'dossier.formio.noFormSpecified' | translate }}\n </p>\n\n <valtimo-form-io *ngIf=\"obs.prefilledForm\" [form]=\"obs.prefilledForm\"> </valtimo-form-io>\n</ng-container>\n", styles: [".loading-container{display:flex;width:100%;flex-direction:row;justify-content:center}.error-message{text-align:center}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
1974
|
+
}], ctorParameters: () => [{ type: DossierTabService }, { type: i1$1.ActivatedRoute }, { type: i5.FormService }] });
|
|
2329
1975
|
|
|
1976
|
+
/*
|
|
1977
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
1978
|
+
*
|
|
1979
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
1980
|
+
* you may not use this file except in compliance with the License.
|
|
1981
|
+
* You may obtain a copy of the License at
|
|
1982
|
+
*
|
|
1983
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
1984
|
+
*
|
|
1985
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
1986
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
1987
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
1988
|
+
* See the License for the specific language governing permissions and
|
|
1989
|
+
* limitations under the License.
|
|
1990
|
+
*/
|
|
2330
1991
|
class DossierTabApiService {
|
|
2331
1992
|
constructor(configService, http) {
|
|
2332
1993
|
this.configService = configService;
|
|
@@ -2336,18 +1997,18 @@ class DossierTabApiService {
|
|
|
2336
1997
|
getDossierTabs(documentDefinitionName) {
|
|
2337
1998
|
return this.http.get(`${this.VALTIMO_API_ENDPOINT_URI}v1/case-definition/${documentDefinitionName}/tab`);
|
|
2338
1999
|
}
|
|
2339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2340
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2000
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabApiService, deps: [{ token: i1.ConfigService }, { token: i2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2001
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabApiService, providedIn: 'root' }); }
|
|
2341
2002
|
}
|
|
2342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabApiService, decorators: [{
|
|
2343
2004
|
type: Injectable,
|
|
2344
2005
|
args: [{
|
|
2345
2006
|
providedIn: 'root',
|
|
2346
2007
|
}]
|
|
2347
|
-
}], ctorParameters:
|
|
2008
|
+
}], ctorParameters: () => [{ type: i1.ConfigService }, { type: i2.HttpClient }] });
|
|
2348
2009
|
|
|
2349
2010
|
/*
|
|
2350
|
-
* Copyright 2015-
|
|
2011
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2351
2012
|
*
|
|
2352
2013
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2353
2014
|
* you may not use this file except in compliance with the License.
|
|
@@ -2365,16 +2026,18 @@ class DossierTabService {
|
|
|
2365
2026
|
get tabs$() {
|
|
2366
2027
|
return this._tabs$.pipe(filter(tabs => !!tabs));
|
|
2367
2028
|
}
|
|
2368
|
-
constructor(tabMap = DEFAULT_TABS, caseTabConfig, configService, route, dossierTabApiService) {
|
|
2029
|
+
constructor(tabMap = DEFAULT_TABS, caseTabConfig, zgwObjectTypeComponent, configService, route, dossierTabApiService) {
|
|
2369
2030
|
this.tabMap = tabMap;
|
|
2370
2031
|
this.caseTabConfig = caseTabConfig;
|
|
2032
|
+
this.zgwObjectTypeComponent = zgwObjectTypeComponent;
|
|
2371
2033
|
this.configService = configService;
|
|
2372
2034
|
this.route = route;
|
|
2373
2035
|
this.dossierTabApiService = dossierTabApiService;
|
|
2374
2036
|
this._documentDefinitionName$ = this.route.params.pipe(map(params => params?.documentDefinitionName), filter(documentDefinitionName => !!documentDefinitionName));
|
|
2375
2037
|
this._tabs$ = new BehaviorSubject(null);
|
|
2376
2038
|
this._subscriptions = new Subscription();
|
|
2377
|
-
this._tabManagementEnabled =
|
|
2039
|
+
this._tabManagementEnabled =
|
|
2040
|
+
this.configService.config.featureToggles?.enableTabManagement ?? true;
|
|
2378
2041
|
this.openDocumentDefinitionNameSubscription();
|
|
2379
2042
|
}
|
|
2380
2043
|
ngOnDestroy() {
|
|
@@ -2385,7 +2048,7 @@ class DossierTabService {
|
|
|
2385
2048
|
if (this.configService?.config?.caseObjectTypes) {
|
|
2386
2049
|
const allNamesObjects = this.configService?.config?.caseObjectTypes[documentDefinitionName];
|
|
2387
2050
|
allNamesObjects?.forEach(name => {
|
|
2388
|
-
tabMap.set(name,
|
|
2051
|
+
tabMap.set(name, this.zgwObjectTypeComponent || DossierDetailTabNotFoundComponent);
|
|
2389
2052
|
});
|
|
2390
2053
|
}
|
|
2391
2054
|
return tabMap;
|
|
@@ -2451,12 +2114,12 @@ class DossierTabService {
|
|
|
2451
2114
|
return null;
|
|
2452
2115
|
}
|
|
2453
2116
|
}
|
|
2454
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2455
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabService, deps: [{ token: TAB_MAP }, { token: CASE_TAB_TOKEN, optional: true }, { token: ZGW_OBJECT_TYPE_COMPONENT_TOKEN, optional: true }, { token: i1.ConfigService }, { token: i1$1.ActivatedRoute }, { token: DossierTabApiService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2118
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabService }); }
|
|
2456
2119
|
}
|
|
2457
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierTabService, decorators: [{
|
|
2458
2121
|
type: Injectable
|
|
2459
|
-
}], ctorParameters:
|
|
2122
|
+
}], ctorParameters: () => [{ type: Map, decorators: [{
|
|
2460
2123
|
type: Inject,
|
|
2461
2124
|
args: [TAB_MAP]
|
|
2462
2125
|
}] }, { type: undefined, decorators: [{
|
|
@@ -2464,10 +2127,70 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2464
2127
|
}, {
|
|
2465
2128
|
type: Inject,
|
|
2466
2129
|
args: [CASE_TAB_TOKEN]
|
|
2467
|
-
}] }, { type:
|
|
2130
|
+
}] }, { type: i0.Type, decorators: [{
|
|
2131
|
+
type: Optional
|
|
2132
|
+
}, {
|
|
2133
|
+
type: Inject,
|
|
2134
|
+
args: [ZGW_OBJECT_TYPE_COMPONENT_TOKEN]
|
|
2135
|
+
}] }, { type: i1.ConfigService }, { type: i1$1.ActivatedRoute }, { type: DossierTabApiService }] });
|
|
2136
|
+
|
|
2137
|
+
/*
|
|
2138
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2139
|
+
*
|
|
2140
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2141
|
+
* you may not use this file except in compliance with the License.
|
|
2142
|
+
* You may obtain a copy of the License at
|
|
2143
|
+
*
|
|
2144
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2145
|
+
*
|
|
2146
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2147
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2148
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2149
|
+
* See the License for the specific language governing permissions and
|
|
2150
|
+
* limitations under the License.
|
|
2151
|
+
*/
|
|
2152
|
+
class DossierListStatusService {
|
|
2153
|
+
get caseStatuses$() {
|
|
2154
|
+
return this._caseStatuses$;
|
|
2155
|
+
}
|
|
2156
|
+
get showStatusSelector$() {
|
|
2157
|
+
return this._showStatusSelector$.asObservable();
|
|
2158
|
+
}
|
|
2159
|
+
get selectedCaseStatuses$() {
|
|
2160
|
+
return this._selectedCaseStatuses$;
|
|
2161
|
+
}
|
|
2162
|
+
constructor(dossierListService, caseStatusService, dossierParameterService) {
|
|
2163
|
+
this.dossierListService = dossierListService;
|
|
2164
|
+
this.caseStatusService = caseStatusService;
|
|
2165
|
+
this.dossierParameterService = dossierParameterService;
|
|
2166
|
+
this._selectedCaseStatuses$ = new BehaviorSubject([]);
|
|
2167
|
+
this._showStatusSelector$ = new BehaviorSubject(false);
|
|
2168
|
+
this._caseStatuses$ = this.dossierListService.documentDefinitionName$.pipe(switchMap(documentDefinitionName => combineLatest([
|
|
2169
|
+
this.caseStatusService.getInternalCaseStatuses(documentDefinitionName),
|
|
2170
|
+
this.dossierParameterService.queryStatusParams$,
|
|
2171
|
+
]).pipe(take(1))), switchMap(([statuses, queryStatuses]) => combineLatest([of([CASE_WITHOUT_STATUS_STATUS, ...statuses]), of(queryStatuses)])), tap(([statuses, queryStatuses]) => {
|
|
2172
|
+
const selectedStatuses = queryStatuses
|
|
2173
|
+
? statuses.filter(status => queryStatuses.includes(status.key))
|
|
2174
|
+
: [
|
|
2175
|
+
...statuses.filter(status => status.visibleInCaseListByDefault),
|
|
2176
|
+
CASE_WITHOUT_STATUS_STATUS,
|
|
2177
|
+
];
|
|
2178
|
+
this.setSelectedStatuses(selectedStatuses);
|
|
2179
|
+
}), map(([statuses]) => statuses), tap(statuses => this._showStatusSelector$.next((statuses || []).length > 1)));
|
|
2180
|
+
}
|
|
2181
|
+
setSelectedStatuses(statuses) {
|
|
2182
|
+
this._selectedCaseStatuses$.next(statuses);
|
|
2183
|
+
this.dossierParameterService.setStatusParameter(statuses.map(status => status.key));
|
|
2184
|
+
}
|
|
2185
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListStatusService, deps: [{ token: DossierListService }, { token: i2$1.CaseStatusService }, { token: DossierParameterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2186
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListStatusService }); }
|
|
2187
|
+
}
|
|
2188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListStatusService, decorators: [{
|
|
2189
|
+
type: Injectable
|
|
2190
|
+
}], ctorParameters: () => [{ type: DossierListService }, { type: i2$1.CaseStatusService }, { type: DossierParameterService }] });
|
|
2468
2191
|
|
|
2469
2192
|
/*
|
|
2470
|
-
* Copyright 2015-
|
|
2193
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2471
2194
|
*
|
|
2472
2195
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2473
2196
|
* you may not use this file except in compliance with the License.
|
|
@@ -2481,9 +2204,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2481
2204
|
* See the License for the specific language governing permissions and
|
|
2482
2205
|
* limitations under the License.
|
|
2483
2206
|
*/
|
|
2207
|
+
class StartModalService {
|
|
2208
|
+
getStandardStartEventTitle(bpmnXml) {
|
|
2209
|
+
const parser = new DOMParser();
|
|
2210
|
+
const xmlDoc = parser.parseFromString(bpmnXml, 'application/xml');
|
|
2211
|
+
if (xmlDoc.getElementsByTagName('parsererror').length) {
|
|
2212
|
+
console.error('Error parsing XML');
|
|
2213
|
+
return null;
|
|
2214
|
+
}
|
|
2215
|
+
const startEvents = xmlDoc.getElementsByTagName('bpmn:startEvent');
|
|
2216
|
+
if (!startEvents) {
|
|
2217
|
+
return null;
|
|
2218
|
+
}
|
|
2219
|
+
const standardStartEvent = Array.from(startEvents).find(event => !event.getElementsByTagName('bpmn:messageEventDefinition').length &&
|
|
2220
|
+
!event.getElementsByTagName('bpmn:timerEventDefinition').length);
|
|
2221
|
+
return standardStartEvent ? standardStartEvent.getAttribute('name') : null;
|
|
2222
|
+
}
|
|
2223
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StartModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2224
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StartModalService, providedIn: 'root' }); }
|
|
2225
|
+
}
|
|
2226
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: StartModalService, decorators: [{
|
|
2227
|
+
type: Injectable,
|
|
2228
|
+
args: [{
|
|
2229
|
+
providedIn: 'root',
|
|
2230
|
+
}]
|
|
2231
|
+
}] });
|
|
2484
2232
|
|
|
2485
2233
|
/*
|
|
2486
|
-
* Copyright 2015-
|
|
2234
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2235
|
+
*
|
|
2236
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2237
|
+
* you may not use this file except in compliance with the License.
|
|
2238
|
+
* You may obtain a copy of the License at
|
|
2239
|
+
*
|
|
2240
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
2241
|
+
*
|
|
2242
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
2243
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
2244
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
2245
|
+
* See the License for the specific language governing permissions and
|
|
2246
|
+
* limitations under the License.
|
|
2247
|
+
*/
|
|
2248
|
+
|
|
2249
|
+
/*
|
|
2250
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2487
2251
|
*
|
|
2488
2252
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2489
2253
|
* you may not use this file except in compliance with the License.
|
|
@@ -2531,13 +2295,13 @@ class DossierBulkAssignModalComponent {
|
|
|
2531
2295
|
trackByIndex(index) {
|
|
2532
2296
|
return index;
|
|
2533
2297
|
}
|
|
2534
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2535
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2298
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierBulkAssignModalComponent, deps: [{ token: DossierBulkAssignService }, { token: i2$4.FormBuilder }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2299
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierBulkAssignModalComponent, selector: "valtimo-dossier-bulk-assign-modal", inputs: { documentIds: "documentIds", open: "open" }, outputs: { closeEvent: "closeEvent" }, host: { properties: { "class": "this.modalClass" } }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<cds-modal valtimoCdsModal [open]=\"open\" (close)=\"closeModal()\" showFooter=\"true\">\n <cds-modal-header showCloseButton=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>{{ 'dossier.bulkAssign.modal.title' | translate }}</h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form *ngIf=\"candidateUsers$ | async as candidateUsers\" [formGroup]=\"formGroup\">\n <cds-combo-box\n formControlName=\"assignee\"\n [dropUp]=\"false\"\n [items]=\"candidateUsers\"\n [label]=\"'dossier.bulkAssign.modal.selectLabel' | translate\"\n [placeholder]=\"'dossier.bulkAssign.modal.selectPlaceholder' | translate\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"closeModal()\">{{ 'interface.cancel' | translate }}</button>\n\n <button cdsButton=\"primary\" [disabled]=\"formGroup.invalid\" (click)=\"closeModal(true)\">\n {{ 'dossier.bulkAssign.modal.confirm' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: ["::ng-deep .valtimo-dossier-bulk-assign-modal .cds--list-box__field{background-color:#fff}::ng-deep .valtimo-dossier-bulk-assign-modal .cds--modal-container,::ng-deep .valtimo-dossier-bulk-assign-modal .cds--modal-content{overflow:unset}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i2$4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$4.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i10$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "component", type: i10$1.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i10$1.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i10$1.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i10$1.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i10$1.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "component", type: i10$1.DropdownList, selector: "cds-dropdown-list, ibm-dropdown-list", inputs: ["ariaLabel", "items", "listTpl", "type", "showTitles"], outputs: ["select", "scroll", "blurIntent"] }, { kind: "component", type: i10$1.ComboBox, selector: "cds-combo-box, ibm-combo-box", inputs: ["placeholder", "openMenuAria", "closeMenuAria", "clearSelectionsTitle", "clearSelectionsAria", "clearSelectionTitle", "clearSelectionAria", "id", "items", "type", "size", "itemValueKey", "label", "helperText", "appendInline", "invalid", "invalidText", "warn", "warnText", "maxLength", "theme", "selectionFeedback", "autocomplete", "dropUp", "disabled"], outputs: ["selected", "submit", "close", "search", "clear"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
2536
2300
|
}
|
|
2537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierBulkAssignModalComponent, decorators: [{
|
|
2538
2302
|
type: Component,
|
|
2539
|
-
args: [{ selector: 'valtimo-dossier-bulk-assign-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-
|
|
2540
|
-
}], ctorParameters:
|
|
2303
|
+
args: [{ selector: 'valtimo-dossier-bulk-assign-modal', changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n ~ Copyright 2015-2024 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<cds-modal valtimoCdsModal [open]=\"open\" (close)=\"closeModal()\" showFooter=\"true\">\n <cds-modal-header showCloseButton=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>{{ 'dossier.bulkAssign.modal.title' | translate }}</h3>\n </cds-modal-header>\n\n <section cdsModalContent>\n <form *ngIf=\"candidateUsers$ | async as candidateUsers\" [formGroup]=\"formGroup\">\n <cds-combo-box\n formControlName=\"assignee\"\n [dropUp]=\"false\"\n [items]=\"candidateUsers\"\n [label]=\"'dossier.bulkAssign.modal.selectLabel' | translate\"\n [placeholder]=\"'dossier.bulkAssign.modal.selectPlaceholder' | translate\"\n >\n <cds-dropdown-list></cds-dropdown-list>\n </cds-combo-box>\n </form>\n </section>\n\n <cds-modal-footer>\n <button cdsButton=\"ghost\" (click)=\"closeModal()\">{{ 'interface.cancel' | translate }}</button>\n\n <button cdsButton=\"primary\" [disabled]=\"formGroup.invalid\" (click)=\"closeModal(true)\">\n {{ 'dossier.bulkAssign.modal.confirm' | translate }}\n </button>\n </cds-modal-footer>\n</cds-modal>\n", styles: ["::ng-deep .valtimo-dossier-bulk-assign-modal .cds--list-box__field{background-color:#fff}::ng-deep .valtimo-dossier-bulk-assign-modal .cds--modal-container,::ng-deep .valtimo-dossier-bulk-assign-modal .cds--modal-content{overflow:unset}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
2304
|
+
}], ctorParameters: () => [{ type: DossierBulkAssignService }, { type: i2$4.FormBuilder }], propDecorators: { modalClass: [{
|
|
2541
2305
|
type: HostBinding,
|
|
2542
2306
|
args: ['class']
|
|
2543
2307
|
}], documentIds: [{
|
|
@@ -2549,7 +2313,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2549
2313
|
}] } });
|
|
2550
2314
|
|
|
2551
2315
|
/*
|
|
2552
|
-
* Copyright 2015-
|
|
2316
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2553
2317
|
*
|
|
2554
2318
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2555
2319
|
* you may not use this file except in compliance with the License.
|
|
@@ -2639,17 +2403,17 @@ class DossierSupportingProcessStartModalComponent {
|
|
|
2639
2403
|
}
|
|
2640
2404
|
gotoFormLinkScreen() {
|
|
2641
2405
|
this.modal.hide();
|
|
2642
|
-
this.router.navigate(['
|
|
2406
|
+
this.router.navigate(['process-links'], {
|
|
2643
2407
|
queryParams: { process: this.processDefinitionKey$.getValue() },
|
|
2644
2408
|
});
|
|
2645
2409
|
}
|
|
2646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2647
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2410
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierSupportingProcessStartModalComponent, deps: [{ token: i1$1.Router }, { token: i2$2.ProcessService }, { token: i4$1.ProcessLinkService }, { token: i6$1.UserProviderService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2411
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierSupportingProcessStartModalComponent, selector: "valtimo-dossier-supporting-process-start-modal", outputs: { formSubmit: "formSubmit" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "modal", first: true, predicate: ["supportingProcessStartModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-modal\n *ngIf=\"{\n processDefinitionKey: processDefinitionKey$ | async,\n processName: processName$ | async\n } as vars\"\n #supportingProcessStartModal\n elementId=\"supportingProcessStartModal\"\n [title]=\"\n (vars.processDefinitionKey | translate) !== vars.processDefinitionKey\n ? (vars.processDefinitionKey | translate)\n : vars.processName\n \"\n>\n <div body *ngIf=\"formDefinition$ | async as formDefinition\">\n <valtimo-form-io\n #form\n [submission]=\"submission$ | async\"\n [form]=\"formDefinition\"\n [options]=\"options$ | async\"\n (submit)=\"onSubmit($event)\"\n >\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"formFlowInstanceId$ | async as formFlowInstanceId\">\n <valtimo-form-flow\n #formFlow\n [formFlowInstanceId]=\"formFlowInstanceId\"\n (formFlowComplete)=\"formSubmitted()\"\n ></valtimo-form-flow>\n </div>\n\n <ng-container\n *ngIf=\"{\n formDefinition: formDefinition$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async\n } as obs\"\n >\n <div body *ngIf=\"!obs.formDefinition && !obs.formFlowInstanceId\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoProcessLinksButton' | translate }}\n </button>\n </div>\n </div>\n </ng-container>\n</valtimo-modal>\n", styles: ["#supportingProcessStartModal .formio-component-submit{text-align:right}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i2$3.ModalComponent, selector: "valtimo-modal", inputs: ["elementId", "title", "subtitle", "templateBelowSubtitle", "showFooter"] }, { kind: "component", type: i4$1.FormFlowComponent, selector: "valtimo-form-flow", inputs: ["formIoFormData", "formFlowInstanceId"], outputs: ["formFlowComplete"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
2648
2412
|
}
|
|
2649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierSupportingProcessStartModalComponent, decorators: [{
|
|
2650
2414
|
type: Component,
|
|
2651
|
-
args: [{ selector: 'valtimo-dossier-supporting-process-start-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-
|
|
2652
|
-
}], ctorParameters:
|
|
2415
|
+
args: [{ selector: 'valtimo-dossier-supporting-process-start-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2024 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-modal\n *ngIf=\"{\n processDefinitionKey: processDefinitionKey$ | async,\n processName: processName$ | async\n } as vars\"\n #supportingProcessStartModal\n elementId=\"supportingProcessStartModal\"\n [title]=\"\n (vars.processDefinitionKey | translate) !== vars.processDefinitionKey\n ? (vars.processDefinitionKey | translate)\n : vars.processName\n \"\n>\n <div body *ngIf=\"formDefinition$ | async as formDefinition\">\n <valtimo-form-io\n #form\n [submission]=\"submission$ | async\"\n [form]=\"formDefinition\"\n [options]=\"options$ | async\"\n (submit)=\"onSubmit($event)\"\n >\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"formFlowInstanceId$ | async as formFlowInstanceId\">\n <valtimo-form-flow\n #formFlow\n [formFlowInstanceId]=\"formFlowInstanceId\"\n (formFlowComplete)=\"formSubmitted()\"\n ></valtimo-form-flow>\n </div>\n\n <ng-container\n *ngIf=\"{\n formDefinition: formDefinition$ | async,\n formFlowInstanceId: formFlowInstanceId$ | async\n } as obs\"\n >\n <div body *ngIf=\"!obs.formDefinition && !obs.formFlowInstanceId\">\n <div class=\"bg-warning text-black mb-0 p-3 text-center\">\n {{\n (isAdmin$ | async)\n ? ('formManagement.noFormDefinitionFoundAdmin' | translate)\n : ('formManagement.noFormDefinitionFoundUser' | translate)\n }}\n </div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button\n class=\"btn btn-secondary btn-space\"\n type=\"button\"\n (click)=\"gotoFormLinkScreen()\"\n id=\"form-link-button\"\n >\n {{ 'formManagement.gotoProcessLinksButton' | translate }}\n </button>\n </div>\n </div>\n </ng-container>\n</valtimo-modal>\n", styles: ["#supportingProcessStartModal .formio-component-submit{text-align:right}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
2416
|
+
}], ctorParameters: () => [{ type: i1$1.Router }, { type: i2$2.ProcessService }, { type: i4$1.ProcessLinkService }, { type: i6$1.UserProviderService }], propDecorators: { form: [{
|
|
2653
2417
|
type: ViewChild,
|
|
2654
2418
|
args: ['form', { static: false }]
|
|
2655
2419
|
}], modal: [{
|
|
@@ -2660,7 +2424,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2660
2424
|
}] } });
|
|
2661
2425
|
|
|
2662
2426
|
/*
|
|
2663
|
-
* Copyright 2015-
|
|
2427
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2664
2428
|
*
|
|
2665
2429
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2666
2430
|
* you may not use this file except in compliance with the License.
|
|
@@ -2731,13 +2495,13 @@ class DossierAssignUserComponent {
|
|
|
2731
2495
|
disable() {
|
|
2732
2496
|
this.disabled$.next(true);
|
|
2733
2497
|
}
|
|
2734
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2735
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2498
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierAssignUserComponent, deps: [{ token: i2$1.DocumentService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2499
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierAssignUserComponent, selector: "valtimo-dossier-assign-user", inputs: { documentId: "documentId", assigneeId: "assigneeId", assigneeFullName: "assigneeFullName", hasPermission: "hasPermission" }, outputs: { assignmentOfDocumentChanged: "assignmentOfDocumentChanged" }, ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngTemplateOutlet=\"content\"> </ng-container>\n </div>\n </div>\n</div>\n\n<ng-template #content>\n <ng-container\n *ngIf=\"{\n disabled: disabled$ | async,\n assigneeFullName: assigneeFullName$ | async,\n assigneeId: assigneeId$ | async\n } as obs\"\n >\n <ng-container *ngIf=\"!hasPermission && obs.assigneeFullName\">\n <ng-container *ngTemplateOutlet=\"fullName; context: {obs: obs}\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"hasPermission\">\n <ng-container *ngTemplateOutlet=\"selectUser; context: {obs: obs}\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n\n<ng-template #fullName let-obs=\"obs\">\n <valtimo-searchable-dropdown-select\n [buttonText]=\"'assignDocument.header' | translate\"\n [clearSelectionButtonTitle]=\"'assignDocument.remove' | translate\"\n [hasPermission]=\"false\"\n [hasSelection]=\"true\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [selectedTextValue]=\"obs.assigneeFullName\"\n [selectedText]=\"'assignDocument.assignedTo' | translate\"\n [style]=\"'underlinedText'\"\n [width]=\"250\"\n class=\"dossier-candidates-dropdown\"\n >\n </valtimo-searchable-dropdown-select>\n</ng-template>\n\n<ng-template #selectUser let-obs=\"obs\">\n <ng-container *ngIf=\"userItems$ | async as userItems; else loadingUsers\">\n <valtimo-searchable-dropdown-select\n [buttonText]=\"'assignDocument.header' | translate\"\n [clearSelectionButtonTitle]=\"'assignDocument.remove' | translate\"\n [disabled]=\"obs.disabled\"\n [hasPermission]=\"hasPermission\"\n [showClearSelection]=\"false\"\n [hasSelection]=\"obs.assigneeId\"\n [items]=\"userItems\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [selectedTextValue]=\"obs.assigneeFullName\"\n [selectedText]=\"'assignDocument.assignedTo' | translate\"\n [style]=\"'underlinedText'\"\n [width]=\"250\"\n (clearSelection)=\"unassignDocument()\"\n (itemSelected)=\"assignDocument($event)\"\n class=\"dossier-candidates-dropdown\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n</ng-template>\n\n<ng-template #loadingUsers>\n <h5>\n <b>{{ 'assignDocument.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n", styles: [".container-fluid{color:#959595}valtimo-searchable-dropdown-select{color:var(--cds-text-helper)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important;line-height:18px!important}h5{font-size:14px!important}:host .dossier-candidates-dropdown h5{margin-block:0}\n"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$3.SearchableDropdownSelectComponent, selector: "valtimo-searchable-dropdown-select", inputs: ["style", "items", "buttonText", "searchText", "noResultsText", "disabled", "selectedText", "selectedTextValue", "clearSelectionButtonTitle", "hasSelection", "width", "hasPermission", "showClearSelection"], outputs: ["itemSelected", "clearSelection"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
2736
2500
|
}
|
|
2737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2501
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierAssignUserComponent, decorators: [{
|
|
2738
2502
|
type: Component,
|
|
2739
|
-
args: [{ selector: 'valtimo-dossier-assign-user', template: "<!--\n ~ Copyright 2015-
|
|
2740
|
-
}], ctorParameters:
|
|
2503
|
+
args: [{ selector: 'valtimo-dossier-assign-user', template: "<!--\n ~ Copyright 2015-2024 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<div class=\"container-fluid\">\n <div class=\"row\">\n <div class=\"col-12 pl-0 d-flex flex-row align-items-center\">\n <ng-container *ngTemplateOutlet=\"content\"> </ng-container>\n </div>\n </div>\n</div>\n\n<ng-template #content>\n <ng-container\n *ngIf=\"{\n disabled: disabled$ | async,\n assigneeFullName: assigneeFullName$ | async,\n assigneeId: assigneeId$ | async\n } as obs\"\n >\n <ng-container *ngIf=\"!hasPermission && obs.assigneeFullName\">\n <ng-container *ngTemplateOutlet=\"fullName; context: {obs: obs}\"></ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"hasPermission\">\n <ng-container *ngTemplateOutlet=\"selectUser; context: {obs: obs}\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n\n<ng-template #fullName let-obs=\"obs\">\n <valtimo-searchable-dropdown-select\n [buttonText]=\"'assignDocument.header' | translate\"\n [clearSelectionButtonTitle]=\"'assignDocument.remove' | translate\"\n [hasPermission]=\"false\"\n [hasSelection]=\"true\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [selectedTextValue]=\"obs.assigneeFullName\"\n [selectedText]=\"'assignDocument.assignedTo' | translate\"\n [style]=\"'underlinedText'\"\n [width]=\"250\"\n class=\"dossier-candidates-dropdown\"\n >\n </valtimo-searchable-dropdown-select>\n</ng-template>\n\n<ng-template #selectUser let-obs=\"obs\">\n <ng-container *ngIf=\"userItems$ | async as userItems; else loadingUsers\">\n <valtimo-searchable-dropdown-select\n [buttonText]=\"'assignDocument.header' | translate\"\n [clearSelectionButtonTitle]=\"'assignDocument.remove' | translate\"\n [disabled]=\"obs.disabled\"\n [hasPermission]=\"hasPermission\"\n [showClearSelection]=\"false\"\n [hasSelection]=\"obs.assigneeId\"\n [items]=\"userItems\"\n [noResultsText]=\"'interface.noSearchResults' | translate\"\n [searchText]=\"'interface.typeToSearch' | translate\"\n [selectedTextValue]=\"obs.assigneeFullName\"\n [selectedText]=\"'assignDocument.assignedTo' | translate\"\n [style]=\"'underlinedText'\"\n [width]=\"250\"\n (clearSelection)=\"unassignDocument()\"\n (itemSelected)=\"assignDocument($event)\"\n class=\"dossier-candidates-dropdown\"\n >\n </valtimo-searchable-dropdown-select>\n </ng-container>\n</ng-template>\n\n<ng-template #loadingUsers>\n <h5>\n <b>{{ 'assignDocument.fetchingUsers' | translate }}</b>\n </h5>\n</ng-template>\n", styles: [".container-fluid{color:#959595}valtimo-searchable-dropdown-select{color:var(--cds-text-helper)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px!important;line-height:18px!important}h5{font-size:14px!important}:host .dossier-candidates-dropdown h5{margin-block:0}\n"] }]
|
|
2504
|
+
}], ctorParameters: () => [{ type: i2$1.DocumentService }], propDecorators: { documentId: [{
|
|
2741
2505
|
type: Input
|
|
2742
2506
|
}], assigneeId: [{
|
|
2743
2507
|
type: Input
|
|
@@ -2750,7 +2514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2750
2514
|
}] } });
|
|
2751
2515
|
|
|
2752
2516
|
/*
|
|
2753
|
-
* Copyright 2015-
|
|
2517
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2754
2518
|
*
|
|
2755
2519
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2756
2520
|
* you may not use this file except in compliance with the License.
|
|
@@ -2776,18 +2540,18 @@ class TabTranslatePipe {
|
|
|
2776
2540
|
.stream(translationId)
|
|
2777
2541
|
.pipe(map(translation => (translationId !== translation ? translation : tab.name)));
|
|
2778
2542
|
}
|
|
2779
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2780
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2543
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipe, deps: [{ token: i6.TranslateService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2544
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipe, name: "tabTranslate" }); }
|
|
2781
2545
|
}
|
|
2782
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2546
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipe, decorators: [{
|
|
2783
2547
|
type: Pipe,
|
|
2784
2548
|
args: [{
|
|
2785
2549
|
name: 'tabTranslate',
|
|
2786
2550
|
}]
|
|
2787
|
-
}], ctorParameters:
|
|
2551
|
+
}], ctorParameters: () => [{ type: i6.TranslateService }] });
|
|
2788
2552
|
|
|
2789
2553
|
class DossierDetailComponent {
|
|
2790
|
-
constructor(breadcrumbService, componentFactoryResolver, configService, documentService, keyCloakService, location, logger, permissionService, route, router, dossierTabService, dossierService) {
|
|
2554
|
+
constructor(breadcrumbService, componentFactoryResolver, configService, documentService, keyCloakService, location, logger, permissionService, route, router, dossierTabService, dossierService, caseStatusService, pageTitleService, iconService, pageHeaderService) {
|
|
2791
2555
|
this.breadcrumbService = breadcrumbService;
|
|
2792
2556
|
this.componentFactoryResolver = componentFactoryResolver;
|
|
2793
2557
|
this.configService = configService;
|
|
@@ -2800,16 +2564,23 @@ class DossierDetailComponent {
|
|
|
2800
2564
|
this.router = router;
|
|
2801
2565
|
this.dossierTabService = dossierTabService;
|
|
2802
2566
|
this.dossierService = dossierService;
|
|
2567
|
+
this.caseStatusService = caseStatusService;
|
|
2568
|
+
this.pageTitleService = pageTitleService;
|
|
2569
|
+
this.iconService = iconService;
|
|
2570
|
+
this.pageHeaderService = pageHeaderService;
|
|
2803
2571
|
this.customDossierHeaderItems = [];
|
|
2804
2572
|
this.document = null;
|
|
2805
2573
|
this.processDefinitionListFields = [];
|
|
2806
2574
|
this.processDocumentDefinitions = [];
|
|
2807
2575
|
this.tabLoader = null;
|
|
2808
2576
|
this.assigneeId$ = new BehaviorSubject('');
|
|
2577
|
+
this._caseStatusKey$ = new BehaviorSubject(null);
|
|
2578
|
+
this.caseStatusKey$ = this._caseStatusKey$.pipe(filter(key => !!key));
|
|
2809
2579
|
this.document$ = this.dossierService.refreshDocument$.pipe(switchMap(() => this.route.params), map((params) => params?.documentId), switchMap((documentId) => documentId ? this.documentService.getDocument(this.documentId) : of(null)), tap((document) => {
|
|
2810
2580
|
if (document) {
|
|
2811
2581
|
this.assigneeId$.next(document.assigneeId);
|
|
2812
2582
|
this.document = document;
|
|
2583
|
+
this._caseStatusKey$.next(document?.internalStatus || 'NOT_AVAILABLE');
|
|
2813
2584
|
if (this.configService.config.customDossierHeader?.hasOwnProperty(this.documentDefinitionName.toLowerCase()) &&
|
|
2814
2585
|
this.customDossierHeaderItems.length === 0) {
|
|
2815
2586
|
this.configService.config.customDossierHeader[this.documentDefinitionName.toLowerCase()]?.forEach(item => this.getCustomDossierHeaderItem(item));
|
|
@@ -2817,7 +2588,14 @@ class DossierDetailComponent {
|
|
|
2817
2588
|
}
|
|
2818
2589
|
}));
|
|
2819
2590
|
this.documentDefinitionName$ = this.route.params.pipe(map(params => params.documentDefinitionName || ''));
|
|
2820
|
-
this.
|
|
2591
|
+
this.caseStatus$ = this.documentDefinitionName$.pipe(filter(documentDefinitionName => !!documentDefinitionName), switchMap(documentDefinitionName => combineLatest([
|
|
2592
|
+
this.caseStatusService.getInternalCaseStatuses(documentDefinitionName),
|
|
2593
|
+
this.caseStatusKey$,
|
|
2594
|
+
])), map(([statuses, key]) => key !== 'NOT_AVAILABLE' && statuses.find(status => status?.key === key)), map(status => status && {
|
|
2595
|
+
...status,
|
|
2596
|
+
tagType: InternalCaseStatusUtils.getTagTypeFromInternalCaseStatusColor(status.color),
|
|
2597
|
+
}));
|
|
2598
|
+
this.userId$ = of(this.keyCloakService.isLoggedIn()).pipe(switchMap(() => this.keyCloakService.loadUserProfile()), map(profile => profile?.id));
|
|
2821
2599
|
this.isAssigning$ = new BehaviorSubject(false);
|
|
2822
2600
|
this.isAssignedToCurrentUser$ = combineLatest([
|
|
2823
2601
|
this.assigneeId$,
|
|
@@ -2837,6 +2615,7 @@ class DossierDetailComponent {
|
|
|
2837
2615
|
})));
|
|
2838
2616
|
this.loadingTabs$ = new BehaviorSubject(true);
|
|
2839
2617
|
this.noTabsConfigured$ = new BehaviorSubject(false);
|
|
2618
|
+
this.compactMode$ = this.pageHeaderService.compactMode$;
|
|
2840
2619
|
this._snapshot = this.route.snapshot.paramMap;
|
|
2841
2620
|
this.documentDefinitionName = this._snapshot.get('documentDefinitionName') || '';
|
|
2842
2621
|
this.documentId = this._snapshot.get('documentId') || '';
|
|
@@ -2845,9 +2624,12 @@ class DossierDetailComponent {
|
|
|
2845
2624
|
this.initTabLoader();
|
|
2846
2625
|
this.initBreadcrumb();
|
|
2847
2626
|
this.getAllAssociatedProcessDefinitions();
|
|
2627
|
+
this.pageTitleService.disableReset();
|
|
2628
|
+
this.iconService.registerAll([ChevronDown16]);
|
|
2848
2629
|
}
|
|
2849
2630
|
ngOnDestroy() {
|
|
2850
2631
|
this.breadcrumbService.clearSecondBreadcrumb();
|
|
2632
|
+
this.pageTitleService.enableReset();
|
|
2851
2633
|
}
|
|
2852
2634
|
getAllAssociatedProcessDefinitions() {
|
|
2853
2635
|
this.documentService
|
|
@@ -2880,6 +2662,21 @@ class DossierDetailComponent {
|
|
|
2880
2662
|
},
|
|
2881
2663
|
});
|
|
2882
2664
|
}
|
|
2665
|
+
unassignAssignee() {
|
|
2666
|
+
this.isAssigning$.next(true);
|
|
2667
|
+
this.userId$
|
|
2668
|
+
.pipe(take(1), switchMap((userId) => this.documentService.unassignHandlerFromDocument(this.documentId)))
|
|
2669
|
+
.subscribe({
|
|
2670
|
+
next: () => {
|
|
2671
|
+
this.isAssigning$.next(false);
|
|
2672
|
+
this.dossierService.refresh();
|
|
2673
|
+
},
|
|
2674
|
+
error: () => {
|
|
2675
|
+
this.isAssigning$.next(false);
|
|
2676
|
+
this.logger.debug('Something went wrong while unassigning user from case');
|
|
2677
|
+
},
|
|
2678
|
+
});
|
|
2679
|
+
}
|
|
2883
2680
|
initBreadcrumb() {
|
|
2884
2681
|
this.documentService
|
|
2885
2682
|
.getDocumentDefinition(this.documentDefinitionName)
|
|
@@ -2935,7 +2732,7 @@ class DossierDetailComponent {
|
|
|
2935
2732
|
return prefix + string;
|
|
2936
2733
|
}
|
|
2937
2734
|
getNestedProperty(obj, path, defaultValue) {
|
|
2938
|
-
return path.split('.').reduce((currentObject, key) => currentObject?.[key], obj) || defaultValue;
|
|
2735
|
+
return (path.split('.').reduce((currentObject, key) => currentObject?.[key], obj) || defaultValue);
|
|
2939
2736
|
}
|
|
2940
2737
|
setBreadcrumb() {
|
|
2941
2738
|
this.breadcrumbService.setSecondBreadcrumb({
|
|
@@ -2944,13 +2741,13 @@ class DossierDetailComponent {
|
|
|
2944
2741
|
href: `/dossiers/${this.documentDefinitionName}`,
|
|
2945
2742
|
});
|
|
2946
2743
|
}
|
|
2947
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2948
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DossierDetailComponent, selector: "valtimo-dossier-detail", providers: [DossierTabService], viewQueries: [{ propertyName: "supportingProcessStart", first: true, predicate: ["supportingProcessStartModal"], descendants: true }, { propertyName: "viewContainerRef", first: true, predicate: ["tabContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2023 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<div\n *ngIf=\"{\n canAssign: canAssign$ | async,\n canClaim: canClaim$ | async,\n canHaveAssignee: canHaveAssignee$ | async,\n document: document$ | async\n } as obs\"\n class=\"main-content\"\n>\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <div class=\"card-header bg-light card-header-divider pb-2\">\n <div class=\"row\">\n <div class=\"col\">\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailHeader;\n context: {\n canHaveAssignee: obs.canHaveAssignee,\n document: obs.document,\n canAssign: obs.canAssign\n }\n \"\n ></ng-container>\n </div>\n\n <div class=\"btn-group mt-m3px mb-3 col-auto\">\n <valtimo-extension\n module=\"dossier\"\n page=\"dossier-detail\"\n section=\"card-header\"\n ></valtimo-extension>\n\n <ng-container\n *ngTemplateOutlet=\"\n claimButton;\n context: {canClaim: obs.canClaim, canHaveAssignee: obs.canHaveAssignee}\n \"\n ></ng-container>\n\n <div class=\"dropdown\">\n <button\n [disabled]=\"processDocumentDefinitions.length === 0\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\"\n class=\"btn btn-primary dropdown-toggle\"\n data-toggle=\"dropdown\"\n id=\"startProcessDropdown\"\n placement=\"bottom\"\n type=\"button\"\n >\n <span>{{ 'dossier.startSubProcess' | translate }}</span>\n\n <i class=\"ml-1 mdi mdi-chevron-down\"></i>\n </button>\n\n <div\n aria-labelledby=\"startProcessDropdown\"\n class=\"dropdown-menu dropdown-menu-right\"\n >\n <button\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n (click)=\"startProcess(processDocumentDefinition)\"\n class=\"dropdown-item p\"\n href=\"#\"\n >\n {{\n (processDocumentDefinition?.id?.processDefinitionKey | translate) !==\n processDocumentDefinition?.id?.processDefinitionKey\n ? (processDocumentDefinition.id.processDefinitionKey | translate)\n : processDocumentDefinition.processName\n }}\n </button>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <ul *ngIf=\"tabLoader\" class=\"nav nav-tabs\">\n <li class=\"nav-item\" *ngFor=\"let tab of tabLoader.tabs\">\n <a\n [ngClass]=\"{active: tab.isActive()}\"\n (click)=\"tabLoader.load(tab)\"\n class=\"nav-link clickable\"\n data-toggle=\"tab\"\n id=\"{{ tab.name }}-tab\"\n >\n {{ tab | tabTranslate | async }}\n </a>\n </li>\n </ul>\n\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <div *ngIf=\"loadingTabs$ | async\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n\n <valtimo-no-results\n *ngIf=\"noTabsConfigured$ | async\"\n [description]=\"'dossier.tabs.noResultsDescription' | translate\"\n [title]=\"'dossier.tabs.noResults' | translate\"\n ></valtimo-no-results>\n\n <ng-template #tabContainer></ng-template>\n\n <div class=\"clearfix\"></div>\n </div>\n </valtimo-widget>\n </div>\n\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n\n<ng-template\n #caseDetailHeader\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div class=\"row\" *ngIf=\"customDossierHeaderItems.length > 0; else defaultTitle\">\n <span\n *ngFor=\"let item of customDossierHeaderItems\"\n [ngClass]=\"{\n h1: item.textSize === 'xl',\n h2: item.textSize === 'lg',\n h3: item.textSize === 'md',\n h4: item.textSize === 'sm',\n h5: item.textSize === 'xs'\n }\"\n class=\"mb-0 mt-0 pb-2 align-self-end col-xl-{{ item.columnSize }} col-lg-{{\n item.columnSize * 2\n }} {{ item.customClass }}\"\n >\n <span *ngIf=\"item.label\">{{ item.label | translate }}</span>\n\n <span *ngIf=\"item.label && item.value\">: </span>\n\n <strong>{{ item.value }}</strong>\n </span>\n </div>\n\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailAssignee;\n context: {canHaveAssignee: canHaveAssignee, document: document, canAssign: canAssign}\n \"\n ></ng-container>\n</ng-template>\n\n<ng-template #defaultTitle>\n <div class=\"row ml-0 mr-0\">{{ documentDefinitionNameTitle?.trim() }}</div>\n</ng-template>\n\n<ng-template\n #caseDetailAssignee\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div class=\"row ml-0 mr-0 mt-1 mb-1\" *ngIf=\"canHaveAssignee && document\">\n <valtimo-dossier-assign-user\n *ngIf=\"canAssignLoaded$ | async\"\n [assigneeFullName]=\"document?.assigneeFullName\"\n [assigneeId]=\"document.assigneeId\"\n [documentId]=\"document.id\"\n [hasPermission]=\"canAssign\"\n (assignmentOfDocumentChanged)=\"assignmentOfDocumentChanged()\"\n ></valtimo-dossier-assign-user>\n </div>\n</ng-template>\n\n<ng-template #claimButton let-canClaim=\"canClaim\" let-canHaveAssignee=\"canHaveAssignee\">\n <div class=\"user-full-name\" *ngIf=\"canClaim && canHaveAssignee\">\n <button\n [disabled]=\"(isAssigning$ | async) || (isAssignedToCurrentUser$ | async)\"\n (click)=\"claimAssignee()\"\n aria-expanded=\"false\"\n aria-haspopup=\"true\"\n class=\"btn btn-space btn-primary mr-1\"\n placement=\"bottom\"\n type=\"button\"\n >\n <span>{{ 'dossier.claimAssigneeCase' | translate }}</span>\n </button>\n </div>\n</ng-template>\n", styles: [".tab-container{min-height:300px}.loading-container{display:flex;justify-content:center;flex-direction:row}\n"], dependencies: [{ kind: "directive", type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i3$1.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "directive", type: i10.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: i1.ExtensionComponent, selector: "valtimo-extension", inputs: ["module", "page", "section"] }, { kind: "component", type: i4.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i3$1.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "component", type: DossierSupportingProcessStartModalComponent, selector: "valtimo-dossier-supporting-process-start-modal", outputs: ["formSubmit"] }, { kind: "component", type: DossierAssignUserComponent, selector: "valtimo-dossier-assign-user", inputs: ["documentId", "assigneeId", "assigneeFullName", "hasPermission"], outputs: ["assignmentOfDocumentChanged"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }, { kind: "pipe", type: TabTranslatePipe, name: "tabTranslate" }] }); }
|
|
2744
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailComponent, deps: [{ token: i2$3.BreadcrumbService }, { token: i0.ComponentFactoryResolver }, { token: i1.ConfigService }, { token: i2$1.DocumentService }, { token: i4$2.KeycloakService }, { token: i5$1.Location }, { token: i1$2.NGXLogger }, { token: i7.PermissionService }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: DossierTabService }, { token: DossierService }, { token: i2$1.CaseStatusService }, { token: i2$3.PageTitleService }, { token: i10$1.IconService }, { token: i2$3.PageHeaderService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2745
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.3", type: DossierDetailComponent, selector: "valtimo-dossier-detail", providers: [DossierTabService], viewQueries: [{ propertyName: "supportingProcessStart", first: true, predicate: ["supportingProcessStartModal"], descendants: true }, { propertyName: "viewContainerRef", first: true, predicate: ["tabContainer"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n <ng-template #tabs>\n <ng-container *ngIf=\"tabLoader\">\n <cds-tabs type=\"contained\" class=\"case-detail-tabs\">\n <cds-tab\n *ngFor=\"let tab of tabLoader.tabs\"\n [active]=\"tab.isActive()\"\n heading=\"{{ tab | tabTranslate | async }}\"\n [id]=\"\"\n (selected)=\"tabLoader.load(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n </ng-template>\n\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <div *ngIf=\"loadingTabs$ | async\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n\n <valtimo-no-results\n *ngIf=\"noTabsConfigured$ | async\"\n [description]=\"'dossier.tabs.noResultsDescription' | translate\"\n [title]=\"'dossier.tabs.noResults' | translate\"\n ></valtimo-no-results>\n\n <ng-template #tabContainer></ng-template>\n\n <div class=\"clearfix\"></div>\n </div>\n </div>\n\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n\n<ng-template\n #caseDetailHeader\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div class=\"row\" *ngIf=\"(customDossierHeaderItems || []).length > 0\">\n <span\n *ngFor=\"let item of customDossierHeaderItems\"\n [ngClass]=\"{\n h1: item.textSize === 'xl',\n h2: item.textSize === 'lg',\n h3: item.textSize === 'md',\n h4: item.textSize === 'sm',\n h5: item.textSize === 'xs'\n }\"\n class=\"mb-0 mt-0 align-self-end col-xl-{{ item.columnSize }} col-lg-{{\n item.columnSize * 2\n }} {{ item.customClass }}\"\n >\n <span *ngIf=\"item.label\">{{ item.label | translate }}</span>\n\n <span *ngIf=\"item.label && item.value\">: </span>\n\n <strong>{{ item.value }}</strong>\n </span>\n </div>\n\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailAssignee;\n context: {canHaveAssignee: canHaveAssignee, document: document, canAssign: canAssign}\n \"\n ></ng-container>\n</ng-template>\n\n<ng-template\n #caseDetailAssignee\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div *ngIf=\"canHaveAssignee && document\">\n <valtimo-dossier-assign-user\n *ngIf=\"canAssignLoaded$ | async\"\n [assigneeFullName]=\"document?.assigneeFullName\"\n [assigneeId]=\"document.assigneeId\"\n [documentId]=\"document.id\"\n [hasPermission]=\"canAssign\"\n (assignmentOfDocumentChanged)=\"assignmentOfDocumentChanged()\"\n ></valtimo-dossier-assign-user>\n </div>\n</ng-template>\n\n<ng-template #claimButton let-canClaim=\"canClaim\" let-canHaveAssignee=\"canHaveAssignee\">\n <cds-overflow-menu-option\n *ngIf=\"canClaim && canHaveAssignee\"\n [disabled]=\"(isAssigning$ | async) || (isAssignedToCurrentUser$ | async)\"\n (click)=\"claimAssignee()\"\n >\n <span>{{ 'dossier.claimAssigneeCase' | translate }}</span>\n </cds-overflow-menu-option>\n</ng-template>\n\n<ng-template #customStartTrigger>\n <button\n [size]=\"(compactMode$ | async) ? 'sm' : 'lg'\"\n cdsButton=\"primary\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n >\n {{ 'dossier.startSubProcess' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"chevron--down\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-container renderInPageHeader [fullWidth]=\"true\">\n <ng-template>\n <div\n class=\"dossier-actions\"\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n *ngIf=\"{\n assigneeId: assigneeId$ | async,\n canAssign: canAssign$ | async,\n canClaim: canClaim$ | async,\n canHaveAssignee: canHaveAssignee$ | async,\n document: document$ | async,\n caseStatus: caseStatus$ | async\n } as obs\"\n >\n <div\n class=\"dossier-status-assign-custom-title\"\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n >\n @if (obs.caseStatus) {\n <cds-tag size=\"sm\" [type]=\"obs.caseStatus.tagType\">{{ obs.caseStatus.title }}</cds-tag>\n }\n\n <div class=\"dossier-assign-user\" [ngClass]=\"{'--compact': compactMode$ | async}\">\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailAssignee;\n context: {\n canHaveAssignee: obs.canHaveAssignee,\n document: obs.document,\n canAssign: obs.canAssign\n }\n \"\n ></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"caseDetailHeader\"></ng-container>\n </div>\n\n <div class=\"buttons-container\">\n <cds-overflow-menu\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n *ngIf=\"obs.canHaveAssignee\"\n flip=\"true\"\n [offset]=\"(compactMode$ | async) ? {y: 48, x: -4} : {y: 48, x: 4}\"\n class=\"overflow-button assign-overflow\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n claimButton;\n context: {canClaim: obs.canClaim, canHaveAssignee: obs.canHaveAssignee}\n \"\n >\n </ng-container>\n <cds-overflow-menu-option (selected)=\"unassignAssignee()\" [disabled]=\"!obs.assigneeId\">\n {{ 'assignDocument.remove' | translate }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n\n <cds-overflow-menu\n valtimoCdsOverflowButton\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n [width]=\"250\"\n [customTrigger]=\"customStartTrigger\"\n [offset]=\"{y: 48, x: 35}\"\n class=\"overflow-button case-detail-overflow\"\n >\n <cds-overflow-menu-option\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n (click)=\"startProcess(processDocumentDefinition)\"\n >\n {{\n (processDocumentDefinition?.id?.processDefinitionKey | translate) !==\n processDocumentDefinition?.id?.processDefinitionKey\n ? (processDocumentDefinition.id.processDefinitionKey | translate)\n : processDocumentDefinition.processName\n }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n </div>\n </div>\n </ng-template>\n</ng-container>\n", styles: [".tab-container{min-height:300px}.tab-container:has(>.tab--no-margin){padding:0!important}.tab-container:has(>.tab--no-min-height){min-height:unset}.loading-container{display:flex;justify-content:center;flex-direction:row}.dossier-detail-page-header{display:flex;width:100%;justify-content:flex-start;padding-bottom:5px}.dossier-detail-page-header ::ng-deep .cds--tag{margin:0}.case-detail-tabs cds-tab{display:none!important}.cds--overflow-menu-options{margin-top:32px}.assign-overflow{margin-right:8px}.buttons-container{display:flex;flex-direction:row}.dossier-actions{display:flex;width:100%;justify-content:space-between;align-items:flex-end;padding-bottom:4px}.dossier-actions.--compact{padding-bottom:0;align-items:flex-start}.dossier-actions ::ng-deep .version-selection{width:160px}.dossier-actions ::ng-deep .version-selection .cds--list-box__selection{display:none}.dossier-status-assign-custom-title{display:flex;gap:16px;align-items:flex-end}.dossier-status-assign-custom-title .cds--tag{margin:0;height:var(--cds-layout-size-height-md)}.dossier-status-assign-custom-title.--compact{align-items:center}\n"], dependencies: [{ kind: "directive", type: i5$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i10.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: i10$1.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "directive", type: i10$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i10$1.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i10$1.Tabs, selector: "cds-tabs, ibm-tabs", inputs: ["position", "cacheActive", "followFocus", "isNavigation", "ariaLabel", "ariaLabelledby", "type", "theme", "skeleton"] }, { kind: "component", type: i10$1.Tab, selector: "cds-tab, ibm-tab", inputs: ["heading", "title", "context", "active", "disabled", "tabIndex", "id", "cacheActive"], outputs: ["selected"] }, { kind: "component", type: i2$3.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "directive", type: i2$3.RenderInPageHeaderDirective, selector: "[renderInPageHeader]", inputs: ["fullWidth"] }, { kind: "component", type: i10$1.Tag, selector: "cds-tag, ibm-tag", inputs: ["type", "size", "class"] }, { kind: "component", type: i10$1.OverflowMenu, selector: "cds-overflow-menu, ibm-overflow-menu", inputs: ["buttonLabel", "flip", "placement", "open", "customTrigger", "offset", "wrapperClass", "triggerClass"], outputs: ["openChange"] }, { kind: "component", type: i10$1.OverflowMenuOption, selector: "cds-overflow-menu-option, ibm-overflow-menu-option", inputs: ["divider", "type", "disabled", "href", "target", "innerClass"], outputs: ["selected"] }, { kind: "directive", type: i2$3.ValtimoCdsOverflowButtonDirective, selector: "[valtimoCdsOverflowButton]", inputs: ["width"] }, { kind: "component", type: DossierSupportingProcessStartModalComponent, selector: "valtimo-dossier-supporting-process-start-modal", outputs: ["formSubmit"] }, { kind: "component", type: DossierAssignUserComponent, selector: "valtimo-dossier-assign-user", inputs: ["documentId", "assigneeId", "assigneeFullName", "hasPermission"], outputs: ["assignmentOfDocumentChanged"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }, { kind: "pipe", type: TabTranslatePipe, name: "tabTranslate" }] }); }
|
|
2949
2746
|
}
|
|
2950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2747
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierDetailComponent, decorators: [{
|
|
2951
2748
|
type: Component,
|
|
2952
|
-
args: [{ selector: 'valtimo-dossier-detail', providers: [DossierTabService], template: "<!--\n ~ Copyright 2015-
|
|
2953
|
-
}], ctorParameters:
|
|
2749
|
+
args: [{ selector: 'valtimo-dossier-detail', providers: [DossierTabService], template: "<!--\n ~ Copyright 2015-2024 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<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n <ng-template #tabs>\n <ng-container *ngIf=\"tabLoader\">\n <cds-tabs type=\"contained\" class=\"case-detail-tabs\">\n <cds-tab\n *ngFor=\"let tab of tabLoader.tabs\"\n [active]=\"tab.isActive()\"\n heading=\"{{ tab | tabTranslate | async }}\"\n [id]=\"\"\n (selected)=\"tabLoader.load(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n </ng-template>\n\n <div class=\"card-body bg-white p-5 position-relative tab-container\">\n <div *ngIf=\"loadingTabs$ | async\" class=\"loading-container\">\n <cds-loading></cds-loading>\n </div>\n\n <valtimo-no-results\n *ngIf=\"noTabsConfigured$ | async\"\n [description]=\"'dossier.tabs.noResultsDescription' | translate\"\n [title]=\"'dossier.tabs.noResults' | translate\"\n ></valtimo-no-results>\n\n <ng-template #tabContainer></ng-template>\n\n <div class=\"clearfix\"></div>\n </div>\n </div>\n\n <valtimo-dossier-supporting-process-start-modal\n (formSubmit)=\"tabLoader.refreshView()\"\n #supportingProcessStartModal\n ></valtimo-dossier-supporting-process-start-modal>\n </div>\n</div>\n\n<ng-template\n #caseDetailHeader\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div class=\"row\" *ngIf=\"(customDossierHeaderItems || []).length > 0\">\n <span\n *ngFor=\"let item of customDossierHeaderItems\"\n [ngClass]=\"{\n h1: item.textSize === 'xl',\n h2: item.textSize === 'lg',\n h3: item.textSize === 'md',\n h4: item.textSize === 'sm',\n h5: item.textSize === 'xs'\n }\"\n class=\"mb-0 mt-0 align-self-end col-xl-{{ item.columnSize }} col-lg-{{\n item.columnSize * 2\n }} {{ item.customClass }}\"\n >\n <span *ngIf=\"item.label\">{{ item.label | translate }}</span>\n\n <span *ngIf=\"item.label && item.value\">: </span>\n\n <strong>{{ item.value }}</strong>\n </span>\n </div>\n\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailAssignee;\n context: {canHaveAssignee: canHaveAssignee, document: document, canAssign: canAssign}\n \"\n ></ng-container>\n</ng-template>\n\n<ng-template\n #caseDetailAssignee\n let-canHaveAssignee=\"canHaveAssignee\"\n let-document=\"document\"\n let-canAssign=\"canAssign\"\n>\n <div *ngIf=\"canHaveAssignee && document\">\n <valtimo-dossier-assign-user\n *ngIf=\"canAssignLoaded$ | async\"\n [assigneeFullName]=\"document?.assigneeFullName\"\n [assigneeId]=\"document.assigneeId\"\n [documentId]=\"document.id\"\n [hasPermission]=\"canAssign\"\n (assignmentOfDocumentChanged)=\"assignmentOfDocumentChanged()\"\n ></valtimo-dossier-assign-user>\n </div>\n</ng-template>\n\n<ng-template #claimButton let-canClaim=\"canClaim\" let-canHaveAssignee=\"canHaveAssignee\">\n <cds-overflow-menu-option\n *ngIf=\"canClaim && canHaveAssignee\"\n [disabled]=\"(isAssigning$ | async) || (isAssignedToCurrentUser$ | async)\"\n (click)=\"claimAssignee()\"\n >\n <span>{{ 'dossier.claimAssigneeCase' | translate }}</span>\n </cds-overflow-menu-option>\n</ng-template>\n\n<ng-template #customStartTrigger>\n <button\n [size]=\"(compactMode$ | async) ? 'sm' : 'lg'\"\n cdsButton=\"primary\"\n [disabled]=\"processDocumentDefinitions.length === 0\"\n [ngbTooltip]=\"processDocumentDefinitions.length === 0 ? 'No action' : null\"\n >\n {{ 'dossier.startSubProcess' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"chevron--down\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-container renderInPageHeader [fullWidth]=\"true\">\n <ng-template>\n <div\n class=\"dossier-actions\"\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n *ngIf=\"{\n assigneeId: assigneeId$ | async,\n canAssign: canAssign$ | async,\n canClaim: canClaim$ | async,\n canHaveAssignee: canHaveAssignee$ | async,\n document: document$ | async,\n caseStatus: caseStatus$ | async\n } as obs\"\n >\n <div\n class=\"dossier-status-assign-custom-title\"\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n >\n @if (obs.caseStatus) {\n <cds-tag size=\"sm\" [type]=\"obs.caseStatus.tagType\">{{ obs.caseStatus.title }}</cds-tag>\n }\n\n <div class=\"dossier-assign-user\" [ngClass]=\"{'--compact': compactMode$ | async}\">\n <ng-container\n *ngTemplateOutlet=\"\n caseDetailAssignee;\n context: {\n canHaveAssignee: obs.canHaveAssignee,\n document: obs.document,\n canAssign: obs.canAssign\n }\n \"\n ></ng-container>\n </div>\n\n <ng-container *ngTemplateOutlet=\"caseDetailHeader\"></ng-container>\n </div>\n\n <div class=\"buttons-container\">\n <cds-overflow-menu\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n *ngIf=\"obs.canHaveAssignee\"\n flip=\"true\"\n [offset]=\"(compactMode$ | async) ? {y: 48, x: -4} : {y: 48, x: 4}\"\n class=\"overflow-button assign-overflow\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n claimButton;\n context: {canClaim: obs.canClaim, canHaveAssignee: obs.canHaveAssignee}\n \"\n >\n </ng-container>\n <cds-overflow-menu-option (selected)=\"unassignAssignee()\" [disabled]=\"!obs.assigneeId\">\n {{ 'assignDocument.remove' | translate }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n\n <cds-overflow-menu\n valtimoCdsOverflowButton\n [ngClass]=\"{'--compact': compactMode$ | async}\"\n [width]=\"250\"\n [customTrigger]=\"customStartTrigger\"\n [offset]=\"{y: 48, x: 35}\"\n class=\"overflow-button case-detail-overflow\"\n >\n <cds-overflow-menu-option\n *ngFor=\"let processDocumentDefinition of processDocumentDefinitions\"\n (click)=\"startProcess(processDocumentDefinition)\"\n >\n {{\n (processDocumentDefinition?.id?.processDefinitionKey | translate) !==\n processDocumentDefinition?.id?.processDefinitionKey\n ? (processDocumentDefinition.id.processDefinitionKey | translate)\n : processDocumentDefinition.processName\n }}\n </cds-overflow-menu-option>\n </cds-overflow-menu>\n </div>\n </div>\n </ng-template>\n</ng-container>\n", styles: [".tab-container{min-height:300px}.tab-container:has(>.tab--no-margin){padding:0!important}.tab-container:has(>.tab--no-min-height){min-height:unset}.loading-container{display:flex;justify-content:center;flex-direction:row}.dossier-detail-page-header{display:flex;width:100%;justify-content:flex-start;padding-bottom:5px}.dossier-detail-page-header ::ng-deep .cds--tag{margin:0}.case-detail-tabs cds-tab{display:none!important}.cds--overflow-menu-options{margin-top:32px}.assign-overflow{margin-right:8px}.buttons-container{display:flex;flex-direction:row}.dossier-actions{display:flex;width:100%;justify-content:space-between;align-items:flex-end;padding-bottom:4px}.dossier-actions.--compact{padding-bottom:0;align-items:flex-start}.dossier-actions ::ng-deep .version-selection{width:160px}.dossier-actions ::ng-deep .version-selection .cds--list-box__selection{display:none}.dossier-status-assign-custom-title{display:flex;gap:16px;align-items:flex-end}.dossier-status-assign-custom-title .cds--tag{margin:0;height:var(--cds-layout-size-height-md)}.dossier-status-assign-custom-title.--compact{align-items:center}\n"] }]
|
|
2750
|
+
}], ctorParameters: () => [{ type: i2$3.BreadcrumbService }, { type: i0.ComponentFactoryResolver }, { type: i1.ConfigService }, { type: i2$1.DocumentService }, { type: i4$2.KeycloakService }, { type: i5$1.Location }, { type: i1$2.NGXLogger }, { type: i7.PermissionService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: DossierTabService }, { type: DossierService }, { type: i2$1.CaseStatusService }, { type: i2$3.PageTitleService }, { type: i10$1.IconService }, { type: i2$3.PageHeaderService }], propDecorators: { supportingProcessStart: [{
|
|
2954
2751
|
type: ViewChild,
|
|
2955
2752
|
args: ['supportingProcessStartModal']
|
|
2956
2753
|
}], viewContainerRef: [{
|
|
@@ -2958,34 +2755,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2958
2755
|
args: ['tabContainer', { read: ViewContainerRef }]
|
|
2959
2756
|
}] } });
|
|
2960
2757
|
|
|
2961
|
-
class StartModalService {
|
|
2962
|
-
getStandardStartEventTitle(bpmnXml) {
|
|
2963
|
-
const parser = new DOMParser();
|
|
2964
|
-
const xmlDoc = parser.parseFromString(bpmnXml, "application/xml");
|
|
2965
|
-
if (xmlDoc.getElementsByTagName("parsererror").length) {
|
|
2966
|
-
console.error("Error parsing XML");
|
|
2967
|
-
return null;
|
|
2968
|
-
}
|
|
2969
|
-
const startEvents = xmlDoc.getElementsByTagName('bpmn:startEvent');
|
|
2970
|
-
if (!startEvents) {
|
|
2971
|
-
return null;
|
|
2972
|
-
}
|
|
2973
|
-
const standardStartEvent = Array.from(startEvents).find(event => !event.getElementsByTagName('bpmn:messageEventDefinition').length &&
|
|
2974
|
-
!event.getElementsByTagName('bpmn:timerEventDefinition').length);
|
|
2975
|
-
return standardStartEvent ? standardStartEvent.getAttribute('name') : null;
|
|
2976
|
-
}
|
|
2977
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StartModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2978
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StartModalService, providedIn: 'root' }); }
|
|
2979
|
-
}
|
|
2980
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StartModalService, decorators: [{
|
|
2981
|
-
type: Injectable,
|
|
2982
|
-
args: [{
|
|
2983
|
-
providedIn: 'root'
|
|
2984
|
-
}]
|
|
2985
|
-
}] });
|
|
2986
|
-
|
|
2987
2758
|
/*
|
|
2988
|
-
* Copyright 2015-
|
|
2759
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
2989
2760
|
*
|
|
2990
2761
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
2991
2762
|
* you may not use this file except in compliance with the License.
|
|
@@ -3013,7 +2784,8 @@ class DossierProcessStartModalComponent {
|
|
|
3013
2784
|
this.startModalService = startModalService;
|
|
3014
2785
|
this.configService = configService;
|
|
3015
2786
|
this.formFlowComplete = new EventEmitter();
|
|
3016
|
-
this._useStartEventNameAsStartFormTitle =
|
|
2787
|
+
this._useStartEventNameAsStartFormTitle =
|
|
2788
|
+
this.configService.config.featureToggles?.useStartEventNameAsStartFormTitle;
|
|
3017
2789
|
}
|
|
3018
2790
|
ngOnInit() {
|
|
3019
2791
|
this.isUserAdmin();
|
|
@@ -3023,7 +2795,7 @@ class DossierProcessStartModalComponent {
|
|
|
3023
2795
|
this.formDefinition = null;
|
|
3024
2796
|
this.formFlowInstanceId = null;
|
|
3025
2797
|
if (this._useStartEventNameAsStartFormTitle) {
|
|
3026
|
-
this.processService.getProcessDefinitionXml(this.processDefinitionId).subscribe(
|
|
2798
|
+
this.processService.getProcessDefinitionXml(this.processDefinitionId).subscribe(result => {
|
|
3027
2799
|
this._startEventName = this.startModalService.getStandardStartEventTitle(result.bpmn20Xml);
|
|
3028
2800
|
});
|
|
3029
2801
|
}
|
|
@@ -3051,7 +2823,9 @@ class DossierProcessStartModalComponent {
|
|
|
3051
2823
|
}
|
|
3052
2824
|
get modalTitle() {
|
|
3053
2825
|
const fallbackTitle = `Start - ${this.processName}`;
|
|
3054
|
-
return this._useStartEventNameAsStartFormTitle
|
|
2826
|
+
return this._useStartEventNameAsStartFormTitle
|
|
2827
|
+
? this._startEventName || fallbackTitle
|
|
2828
|
+
: fallbackTitle;
|
|
3055
2829
|
}
|
|
3056
2830
|
openModal(processDocumentDefinition) {
|
|
3057
2831
|
this.processDefinitionKey = processDocumentDefinition.id.processDefinitionKey;
|
|
@@ -3109,13 +2883,13 @@ class DossierProcessStartModalComponent {
|
|
|
3109
2883
|
}
|
|
3110
2884
|
});
|
|
3111
2885
|
}
|
|
3112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3113
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2886
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierProcessStartModalComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: i2$2.ProcessService }, { token: i2$1.DocumentService }, { token: i4$1.ProcessLinkService }, { token: i4$1.FormFlowService }, { token: i6$1.UserProviderService }, { token: i7.PermissionService }, { token: DossierListService }, { token: StartModalService }, { token: i1.ConfigService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2887
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierProcessStartModalComponent, selector: "valtimo-dossier-process-start-modal", outputs: { formFlowComplete: "formFlowComplete" }, viewQueries: [{ propertyName: "form", first: true, predicate: ["form"], descendants: true }, { propertyName: "modal", first: true, predicate: ["processStartModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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-modal #processStartModal elementId=\"processStartModal\" [title]=\"modalTitle\">\n <div body *ngIf=\"formDefinition\">\n <valtimo-form-io #form [form]=\"formDefinition\" [options]=\"options\" (submit)=\"onSubmit($event)\">\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"formFlowInstanceId\">\n <valtimo-form-flow\n [formFlowInstanceId]=\"formFlowInstanceId\"\n (formFlowComplete)=\"formFlowSubmitted()\"\n ></valtimo-form-flow>\n </div>\n <div body *ngIf=\"!formFlowInstanceId && !formDefinition && isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundAdmin'\"\n ></div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button\n (click)=\"gotoProcessLinkScreen()\"\n class=\"btn btn-secondary btn-space\"\n id=\"process-link-button\"\n type=\"button\"\n >\n {{ 'formManagement.gotoProcessLinksButton' | translate }}\n </button>\n </div>\n </div>\n <div body *ngIf=\"!formFlowInstanceId && !formDefinition && !isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundUser'\"\n ></div>\n </div>\n</valtimo-modal>\n", styles: ["#processStartModal .formio-component-submit{text-align:right}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change"] }, { kind: "component", type: i2$3.ModalComponent, selector: "valtimo-modal", inputs: ["elementId", "title", "subtitle", "templateBelowSubtitle", "showFooter"] }, { kind: "directive", type: i6.TranslateDirective, selector: "[translate],[ngx-translate]", inputs: ["translate", "translateParams"] }, { kind: "component", type: i4$1.FormFlowComponent, selector: "valtimo-form-flow", inputs: ["formIoFormData", "formFlowInstanceId"], outputs: ["formFlowComplete"] }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
|
|
3114
2888
|
}
|
|
3115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2889
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierProcessStartModalComponent, decorators: [{
|
|
3116
2890
|
type: Component,
|
|
3117
|
-
args: [{ selector: 'valtimo-dossier-process-start-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-
|
|
3118
|
-
}], ctorParameters:
|
|
2891
|
+
args: [{ selector: 'valtimo-dossier-process-start-modal', encapsulation: ViewEncapsulation.None, template: "<!--\n ~ Copyright 2015-2024 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-modal #processStartModal elementId=\"processStartModal\" [title]=\"modalTitle\">\n <div body *ngIf=\"formDefinition\">\n <valtimo-form-io #form [form]=\"formDefinition\" [options]=\"options\" (submit)=\"onSubmit($event)\">\n </valtimo-form-io>\n </div>\n <div body *ngIf=\"formFlowInstanceId\">\n <valtimo-form-flow\n [formFlowInstanceId]=\"formFlowInstanceId\"\n (formFlowComplete)=\"formFlowSubmitted()\"\n ></valtimo-form-flow>\n </div>\n <div body *ngIf=\"!formFlowInstanceId && !formDefinition && isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundAdmin'\"\n ></div>\n <div class=\"mb-0 mt-4 p-3 text-center\">\n <button\n (click)=\"gotoProcessLinkScreen()\"\n class=\"btn btn-secondary btn-space\"\n id=\"process-link-button\"\n type=\"button\"\n >\n {{ 'formManagement.gotoProcessLinksButton' | translate }}\n </button>\n </div>\n </div>\n <div body *ngIf=\"!formFlowInstanceId && !formDefinition && !isAdmin\">\n <div\n class=\"bg-warning text-black mb-0 p-3 text-center\"\n [translate]=\"'formManagement.noFormDefinitionFoundUser'\"\n ></div>\n </div>\n</valtimo-modal>\n", styles: ["#processStartModal .formio-component-submit{text-align:right}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
2892
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: i2$2.ProcessService }, { type: i2$1.DocumentService }, { type: i4$1.ProcessLinkService }, { type: i4$1.FormFlowService }, { type: i6$1.UserProviderService }, { type: i7.PermissionService }, { type: DossierListService }, { type: StartModalService }, { type: i1.ConfigService }], propDecorators: { form: [{
|
|
3119
2893
|
type: ViewChild,
|
|
3120
2894
|
args: ['form', { static: false }]
|
|
3121
2895
|
}], modal: [{
|
|
@@ -3126,7 +2900,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3126
2900
|
}] } });
|
|
3127
2901
|
|
|
3128
2902
|
/*
|
|
3129
|
-
* Copyright 2015-
|
|
2903
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3130
2904
|
*
|
|
3131
2905
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3132
2906
|
* you may not use this file except in compliance with the License.
|
|
@@ -3186,13 +2960,13 @@ class DossierListActionsComponent {
|
|
|
3186
2960
|
this.selectedProcessDocumentDefinition = null;
|
|
3187
2961
|
}
|
|
3188
2962
|
}
|
|
3189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2963
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListActionsComponent, deps: [{ token: i2$1.DocumentService }, { token: DossierListService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2964
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierListActionsComponent, selector: "valtimo-dossier-list-actions", inputs: { loading: "loading" }, outputs: { formFlowComplete: "formFlowComplete" }, viewQueries: [{ propertyName: "processStart", first: true, predicate: ["processStartModal"], descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div *ngIf=\"associatedProcessDocumentDefinitions$ | async as associatedProcessDocumentDefinitions\">\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\">\n {{ 'dashboard.startProcess.title' | translate }}\n </h3>\n\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"table-responsive\">\n <table class=\"table m-0\">\n <tr\n *ngFor=\"let processDocumentDefinition of associatedProcessDocumentDefinitions\"\n (click)=\"selectProcess(processDocumentDefinition)\"\n style=\"cursor: pointer\"\n >\n <td>{{ processDocumentDefinition.processName }}</td>\n </tr>\n </table>\n </div>\n </div>\n\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">\n {{ 'cta.close' | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<valtimo-dossier-process-start-modal\n #processStartModal\n (formFlowComplete)=\"onFormFlowComplete()\"\n></valtimo-dossier-process-start-modal>\n", styles: ["/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: DossierProcessStartModalComponent, selector: "valtimo-dossier-process-start-modal", outputs: ["formFlowComplete"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
3191
2965
|
}
|
|
3192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2966
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListActionsComponent, decorators: [{
|
|
3193
2967
|
type: Component,
|
|
3194
|
-
args: [{ selector: 'valtimo-dossier-list-actions', template: "<!--\n ~ Copyright 2015-
|
|
3195
|
-
}], ctorParameters:
|
|
2968
|
+
args: [{ selector: 'valtimo-dossier-list-actions', template: "<!--\n ~ Copyright 2015-2024 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<div *ngIf=\"associatedProcessDocumentDefinitions$ | async as associatedProcessDocumentDefinitions\">\n <div\n class=\"modal fade\"\n id=\"startProcess\"\n tabindex=\"-1\"\n role=\"dialog\"\n aria-labelledby=\"startProcessLabel\"\n aria-hidden=\"true\"\n >\n <div class=\"modal-dialog modal-dialog-centered\" role=\"document\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h3 class=\"modal-title\" id=\"startProcessLabel\">\n {{ 'dashboard.startProcess.title' | translate }}\n </h3>\n\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <div class=\"table-responsive\">\n <table class=\"table m-0\">\n <tr\n *ngFor=\"let processDocumentDefinition of associatedProcessDocumentDefinitions\"\n (click)=\"selectProcess(processDocumentDefinition)\"\n style=\"cursor: pointer\"\n >\n <td>{{ processDocumentDefinition.processName }}</td>\n </tr>\n </table>\n </div>\n </div>\n\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">\n {{ 'cta.close' | translate }}\n </button>\n </div>\n </div>\n </div>\n </div>\n</div>\n\n<valtimo-dossier-process-start-modal\n #processStartModal\n (formFlowComplete)=\"onFormFlowComplete()\"\n></valtimo-dossier-process-start-modal>\n", styles: ["/*!\n * Copyright 2015-2024 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"] }]
|
|
2969
|
+
}], ctorParameters: () => [{ type: i2$1.DocumentService }, { type: DossierListService }], propDecorators: { processStart: [{
|
|
3196
2970
|
type: ViewChild,
|
|
3197
2971
|
args: ['processStartModal']
|
|
3198
2972
|
}], loading: [{
|
|
@@ -3202,7 +2976,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3202
2976
|
}] } });
|
|
3203
2977
|
|
|
3204
2978
|
/*
|
|
3205
|
-
* Copyright 2015-
|
|
2979
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3206
2980
|
*
|
|
3207
2981
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3208
2982
|
* you may not use this file except in compliance with the License.
|
|
@@ -3217,7 +2991,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3217
2991
|
* limitations under the License.
|
|
3218
2992
|
*/
|
|
3219
2993
|
class DossierListComponent {
|
|
3220
|
-
constructor(assigneeService, breadcrumbService, bulkAssignService, columnService, configService, documentService, listService, pageTitleService, paginationService, parameterService, route, router, searchService, translateService, permissionService) {
|
|
2994
|
+
constructor(assigneeService, breadcrumbService, bulkAssignService, columnService, configService, documentService, listService, pageTitleService, paginationService, parameterService, route, router, searchService, translateService, permissionService, statusService) {
|
|
3221
2995
|
this.assigneeService = assigneeService;
|
|
3222
2996
|
this.breadcrumbService = breadcrumbService;
|
|
3223
2997
|
this.bulkAssignService = bulkAssignService;
|
|
@@ -3233,51 +3007,35 @@ class DossierListComponent {
|
|
|
3233
3007
|
this.searchService = searchService;
|
|
3234
3008
|
this.translateService = translateService;
|
|
3235
3009
|
this.permissionService = permissionService;
|
|
3010
|
+
this.statusService = statusService;
|
|
3236
3011
|
this.activeTab = null;
|
|
3237
3012
|
this.loadingFields = true;
|
|
3238
3013
|
this.loadingPagination = true;
|
|
3239
3014
|
this.loadingSearchFields = true;
|
|
3240
3015
|
this.loadingAssigneeFilter = true;
|
|
3241
3016
|
this.loadingDocumentItems = true;
|
|
3017
|
+
this.loadingStatuses = true;
|
|
3242
3018
|
this.visibleDossierTabs = null;
|
|
3243
|
-
this.defaultTabs =
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
DossierListTab.OPEN,
|
|
3247
|
-
];
|
|
3248
|
-
this.tableTranslations = {
|
|
3249
|
-
select: {
|
|
3250
|
-
single: 'dossier.select.single',
|
|
3251
|
-
multiple: 'dossier.select.multiple',
|
|
3252
|
-
},
|
|
3253
|
-
pagination: {
|
|
3254
|
-
itemsPerPage: 'dossier.pagination.itemsPerPage',
|
|
3255
|
-
totalItem: 'dossier.pagination.totalItem',
|
|
3256
|
-
totalItems: 'dossier.pagination.totalItems',
|
|
3257
|
-
},
|
|
3258
|
-
};
|
|
3259
|
-
this.noResultsMessage$ = new BehaviorSubject({
|
|
3260
|
-
description: 'dossier.noResults.ALL.description',
|
|
3261
|
-
isSearchResult: false,
|
|
3262
|
-
title: 'dossier.noResults.ALL.title',
|
|
3263
|
-
});
|
|
3019
|
+
this.defaultTabs = DEFAULT_DOSSIER_LIST_TABS;
|
|
3020
|
+
this.tableTranslations = DOSSIER_LIST_TABLE_TRANSLATIONS;
|
|
3021
|
+
this.noResultsMessage$ = new BehaviorSubject(DOSSIER_LIST_NO_RESULTS_MESSAGE);
|
|
3264
3022
|
this.showAssignModal$ = new BehaviorSubject(false);
|
|
3265
3023
|
this.showChangePageModal$ = new BehaviorSubject(false);
|
|
3266
3024
|
this.showChangeTabModal$ = new BehaviorSubject(false);
|
|
3267
|
-
this.searchFields$ = this.searchService.documentSearchFields$.pipe(tap(() =>
|
|
3268
|
-
|
|
3269
|
-
|
|
3025
|
+
this.searchFields$ = this.searchService.documentSearchFields$.pipe(tap(() => (this.loadingSearchFields = false)));
|
|
3026
|
+
this.statuses$ = this.statusService.caseStatuses$.pipe(tap(() => (this.loadingStatuses = false)));
|
|
3027
|
+
this.selectedStatuses$ = this.statusService.selectedCaseStatuses$;
|
|
3270
3028
|
this.documentDefinitionName$ = this.listService.documentDefinitionName$;
|
|
3271
|
-
this.canCreateDocument$ = this.documentDefinitionName$.pipe(switchMap(documentDefinitionName => this.permissionService.requestPermission(CAN_CREATE_CASE_PERMISSION, {
|
|
3272
|
-
resource: DOSSIER_DETAIL_PERMISSION_RESOURCE.jsonSchemaDocumentDefinition,
|
|
3273
|
-
identifier: documentDefinitionName,
|
|
3274
|
-
})));
|
|
3275
3029
|
this.selectedDocumentIds$ = new BehaviorSubject([]);
|
|
3276
3030
|
this.schema$ = this.listService.documentDefinitionName$.pipe(switchMap(documentDefinitionName => this.documentService.getDocumentDefinition(documentDefinitionName)), map(documentDefinition => documentDefinition?.schema), tap(schema => {
|
|
3277
3031
|
if (schema?.title) {
|
|
3278
3032
|
this.pageTitleService.setCustomPageTitle(schema?.title, true);
|
|
3279
3033
|
}
|
|
3280
3034
|
}));
|
|
3035
|
+
this.canCreateDocument$ = this.documentDefinitionName$.pipe(switchMap(documentDefinitionName => this.permissionService.requestPermission(CAN_CREATE_CASE_PERMISSION, {
|
|
3036
|
+
resource: DOSSIER_DETAIL_PERMISSION_RESOURCE.jsonSchemaDocumentDefinition,
|
|
3037
|
+
identifier: documentDefinitionName,
|
|
3038
|
+
})));
|
|
3281
3039
|
this.searchFieldValues$ = this.parameterService.searchFieldValues$;
|
|
3282
3040
|
this.assigneeFilter$ = this.assigneeService.assigneeFilter$.pipe(tap(assigneeFilter => (this.activeTab = assigneeFilter)));
|
|
3283
3041
|
this.paginationChange$ = new BehaviorSubject(null);
|
|
@@ -3297,20 +3055,29 @@ class DossierListComponent {
|
|
|
3297
3055
|
this.paginationService.setPagination(columns);
|
|
3298
3056
|
});
|
|
3299
3057
|
}));
|
|
3300
|
-
this.
|
|
3058
|
+
this.showStatusSelector$ = this.statusService.showStatusSelector$;
|
|
3059
|
+
this._statusField = {
|
|
3060
|
+
label: 'document.status',
|
|
3061
|
+
key: 'internalStatus',
|
|
3062
|
+
viewType: ViewType.TAGS,
|
|
3063
|
+
sortable: true,
|
|
3064
|
+
};
|
|
3301
3065
|
this.fields$ = combineLatest([
|
|
3302
3066
|
this._canHaveAssignee$,
|
|
3303
3067
|
this._columns$,
|
|
3304
3068
|
this._hasEnvColumnConfig$,
|
|
3305
3069
|
this._hasApiColumnConfig$,
|
|
3070
|
+
this.statuses$,
|
|
3306
3071
|
this.translateService.stream('key'),
|
|
3307
3072
|
]).pipe(tap(([canHaveAssignee]) => {
|
|
3308
3073
|
this.canHaveAssignee = canHaveAssignee;
|
|
3309
|
-
}), map(([canHaveAssignee, columns, hasEnvConfig, hasApiConfig]) => {
|
|
3074
|
+
}), map(([canHaveAssignee, columns, hasEnvConfig, hasApiConfig, statuses]) => {
|
|
3310
3075
|
const filteredAssigneeColumns = this.assigneeService.filterAssigneeColumns(columns, canHaveAssignee);
|
|
3311
3076
|
const listFields = this.columnService.mapDefinitionColumnsToListFields(filteredAssigneeColumns, hasEnvConfig, hasApiConfig);
|
|
3312
3077
|
const fieldsToReturn = this.assigneeService.addAssigneeListField(columns, listFields, canHaveAssignee);
|
|
3313
|
-
return
|
|
3078
|
+
return statuses.some((status) => status.key !== CASES_WITHOUT_STATUS_KEY) && !hasApiConfig
|
|
3079
|
+
? [...fieldsToReturn, this._statusField]
|
|
3080
|
+
: fieldsToReturn;
|
|
3314
3081
|
}), tap(listFields => {
|
|
3315
3082
|
const defaultListField = listFields.find(field => field.default);
|
|
3316
3083
|
// set default sort state if no pagination query parameters for sorting are available
|
|
@@ -3336,39 +3103,45 @@ class DossierListComponent {
|
|
|
3336
3103
|
this._documentSearchRequest$,
|
|
3337
3104
|
this.assigneeFilter$,
|
|
3338
3105
|
this.searchFieldValues$,
|
|
3106
|
+
this.statusService.selectedCaseStatuses$,
|
|
3339
3107
|
this.listService.forceRefresh$,
|
|
3340
3108
|
this._hasEnvColumnConfig$,
|
|
3341
3109
|
this._hasApiColumnConfig$,
|
|
3342
|
-
])), distinctUntilChanged(([prevSearchRequest, prevAssigneeFilter, prevSearchFieldValues, prevForceRefresh], [currSearchRequest, currAssigneeFilter, currSearchFieldValues, currForceRefresh]) => isEqual({
|
|
3110
|
+
])), distinctUntilChanged(([prevSearchRequest, prevAssigneeFilter, prevSearchFieldValues, prevSelectedStatuses, prevForceRefresh,], [currSearchRequest, currAssigneeFilter, currSearchFieldValues, currSelectedStatuses, currForceRefresh,]) => isEqual({
|
|
3343
3111
|
...prevSearchRequest,
|
|
3344
3112
|
assignee: prevAssigneeFilter,
|
|
3345
3113
|
...prevSearchFieldValues,
|
|
3114
|
+
...prevSelectedStatuses.map((status) => status.key),
|
|
3346
3115
|
forceRefresh: prevForceRefresh,
|
|
3347
3116
|
}, {
|
|
3348
3117
|
...currSearchRequest,
|
|
3349
3118
|
assignee: currAssigneeFilter,
|
|
3350
3119
|
...currSearchFieldValues,
|
|
3120
|
+
...currSelectedStatuses.map((status) => status.key),
|
|
3351
3121
|
forceRefresh: currForceRefresh,
|
|
3352
|
-
})), switchMap(([documentSearchRequest, assigneeFilter, searchValues, _, hasEnvColumnConfig, hasApiColumnConfig,]) => {
|
|
3122
|
+
})), switchMap(([documentSearchRequest, assigneeFilter, searchValues, selectedStatuses, _, hasEnvColumnConfig, hasApiColumnConfig,]) => {
|
|
3353
3123
|
const obsEnv = of(hasEnvColumnConfig);
|
|
3354
3124
|
const obsApi = of(hasApiColumnConfig);
|
|
3125
|
+
const statusKeys = selectedStatuses.map((status) => status.key === CASES_WITHOUT_STATUS_KEY ? null : status.key);
|
|
3355
3126
|
if ((Object.keys(searchValues) || []).length > 0) {
|
|
3356
3127
|
return forkJoin({
|
|
3357
3128
|
documents: hasEnvColumnConfig || !hasApiColumnConfig
|
|
3358
|
-
? this.documentService.getDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, this.searchService.mapSearchValuesToFilters(searchValues))
|
|
3359
|
-
: this.documentService.getSpecifiedDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, this.searchService.mapSearchValuesToFilters(searchValues)),
|
|
3129
|
+
? this.documentService.getDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, this.searchService.mapSearchValuesToFilters(searchValues), statusKeys)
|
|
3130
|
+
: this.documentService.getSpecifiedDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, this.searchService.mapSearchValuesToFilters(searchValues), statusKeys),
|
|
3360
3131
|
hasEnvColumnConfig: obsEnv,
|
|
3361
3132
|
hasApiColumnConfig: obsApi,
|
|
3362
3133
|
isSearchResult: of(true),
|
|
3134
|
+
selectedStatuses: of(selectedStatuses),
|
|
3363
3135
|
});
|
|
3364
3136
|
}
|
|
3365
3137
|
return forkJoin({
|
|
3366
3138
|
documents: hasEnvColumnConfig || !hasApiColumnConfig
|
|
3367
|
-
? this.documentService.getDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter)
|
|
3368
|
-
: this.documentService.getSpecifiedDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter),
|
|
3139
|
+
? this.documentService.getDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, undefined, statusKeys)
|
|
3140
|
+
: this.documentService.getSpecifiedDocumentsSearch(documentSearchRequest, 'AND', assigneeFilter, undefined, statusKeys),
|
|
3369
3141
|
hasEnvColumnConfig: obsEnv,
|
|
3370
3142
|
hasApiColumnConfig: obsApi,
|
|
3371
3143
|
isSearchResult: of(false),
|
|
3144
|
+
selectedStatuses: of(selectedStatuses),
|
|
3372
3145
|
});
|
|
3373
3146
|
}), switchMap(res => combineLatest([
|
|
3374
3147
|
of(res),
|
|
@@ -3391,7 +3164,27 @@ class DossierListComponent {
|
|
|
3391
3164
|
this.paginationService.setCollectionSize(res.documents);
|
|
3392
3165
|
this.paginationService.checkPage(res.documents);
|
|
3393
3166
|
this.updateNoResultsMessage(res.isSearchResult);
|
|
3394
|
-
return
|
|
3167
|
+
return {
|
|
3168
|
+
data: this.listService.mapDocuments(res.documents, res.hasEnvColumnConfig, res.hasApiColumnConfig),
|
|
3169
|
+
statuses: res.selectedStatuses,
|
|
3170
|
+
};
|
|
3171
|
+
}), map(res => {
|
|
3172
|
+
if (!Array.isArray(res.data))
|
|
3173
|
+
return res.data;
|
|
3174
|
+
return res.data.map(item => {
|
|
3175
|
+
const status = res.statuses.find((status) => status.key === item.internalStatus || status.key === item.status);
|
|
3176
|
+
if (!status)
|
|
3177
|
+
return item;
|
|
3178
|
+
return {
|
|
3179
|
+
...item,
|
|
3180
|
+
tags: [
|
|
3181
|
+
{
|
|
3182
|
+
content: status.title,
|
|
3183
|
+
type: InternalCaseStatusUtils.getTagTypeFromInternalCaseStatusColor(status.color),
|
|
3184
|
+
},
|
|
3185
|
+
],
|
|
3186
|
+
};
|
|
3187
|
+
});
|
|
3395
3188
|
}), tap(() => {
|
|
3396
3189
|
this.loadingAssigneeFilter = false;
|
|
3397
3190
|
this.loadingDocumentItems = false;
|
|
@@ -3496,6 +3289,9 @@ class DossierListComponent {
|
|
|
3496
3289
|
forceRefresh() {
|
|
3497
3290
|
this.listService.forceRefresh();
|
|
3498
3291
|
}
|
|
3292
|
+
onSelectedStatusesChange(statuses) {
|
|
3293
|
+
this.statusService.setSelectedStatuses(statuses);
|
|
3294
|
+
}
|
|
3499
3295
|
openDocumentDefinitionNameSubscription() {
|
|
3500
3296
|
this._documentDefinitionNameSubscription = this.route.params
|
|
3501
3297
|
.pipe(map((params) => params?.documentDefinitionName), filter(docDefName => !!docDefName), distinctUntilChanged())
|
|
@@ -3505,10 +3301,10 @@ class DossierListComponent {
|
|
|
3505
3301
|
this.parameterService.clearSearchFieldValues();
|
|
3506
3302
|
}
|
|
3507
3303
|
this._previousDocumentDefinitionName = documentDefinitonName;
|
|
3508
|
-
this.setLoading();
|
|
3509
3304
|
this.paginationService.clearPagination();
|
|
3510
3305
|
this.assigneeService.resetAssigneeFilter();
|
|
3511
3306
|
this.listService.setDocumentDefinitionName(documentDefinitonName);
|
|
3307
|
+
this.setLoading();
|
|
3512
3308
|
});
|
|
3513
3309
|
}
|
|
3514
3310
|
setLoading() {
|
|
@@ -3517,6 +3313,7 @@ class DossierListComponent {
|
|
|
3517
3313
|
this.loadingSearchFields = true;
|
|
3518
3314
|
this.loadingAssigneeFilter = true;
|
|
3519
3315
|
this.loadingDocumentItems = true;
|
|
3316
|
+
this.loadingStatuses = true;
|
|
3520
3317
|
}
|
|
3521
3318
|
setVisibleTabs() {
|
|
3522
3319
|
this.visibleDossierTabs = this.configService.config?.visibleDossierListTabs || null;
|
|
@@ -3534,17 +3331,18 @@ class DossierListComponent {
|
|
|
3534
3331
|
title: `dossier.noResults.${this.activeTab ?? 'ALL'}.title`,
|
|
3535
3332
|
});
|
|
3536
3333
|
}
|
|
3537
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3538
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListComponent, deps: [{ token: DossierListAssigneeService }, { token: i2$3.BreadcrumbService }, { token: DossierBulkAssignService }, { token: DossierColumnService }, { token: i1.ConfigService }, { token: i2$1.DocumentService }, { token: DossierListService }, { token: i2$3.PageTitleService }, { token: DossierListPaginationService }, { token: DossierParameterService }, { token: i1$1.ActivatedRoute }, { token: i1$1.Router }, { token: DossierListSearchService }, { token: i6.TranslateService }, { token: i7.PermissionService }, { token: DossierListStatusService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3335
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierListComponent, selector: "valtimo-dossier-list", providers: [
|
|
3539
3336
|
DossierListService,
|
|
3540
3337
|
DossierColumnService,
|
|
3541
3338
|
DossierListAssigneeService,
|
|
3542
3339
|
DossierParameterService,
|
|
3543
3340
|
DossierListPaginationService,
|
|
3544
3341
|
DossierListSearchService,
|
|
3545
|
-
|
|
3342
|
+
DossierListStatusService,
|
|
3343
|
+
], viewQueries: [{ propertyName: "carbonList", first: true, predicate: CarbonListComponent, descendants: true }, { propertyName: "listActionsComponent", first: true, predicate: DossierListActionsComponent, descendants: true }, { propertyName: "tabsComponent", first: true, predicate: Tabs, descendants: true }], ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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 fields: fields$ | async,\n documentItems: documentItems$ | async,\n noResultsMessage: noResultsMessage$ | async,\n searchFields: searchFields$ | async,\n schema: schema$ | async,\n showAssignModal: showAssignModal$ | async,\n selectedDocumentIds: selectedDocumentIds$ | async,\n statuses: statuses$ | async,\n selectedStatuses: selectedStatuses$ | async,\n showStatusSelector: showStatusSelector$ | async,\n loaded:\n !loadingFields &&\n !loadingPagination &&\n !loadingSearchFields &&\n !loadingAssigneeFilter &&\n !loadingDocumentItems\n } as obs\"\n>\n <div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-dossier-list-actions\n [loading]=\"!obs.loaded\"\n (formFlowComplete)=\"forceRefresh()\"\n ></valtimo-dossier-list-actions>\n <ng-container *ngTemplateOutlet=\"searchFields; context: {obs: obs}\"></ng-container>\n\n <ng-container *ngIf=\"obs.loaded; else loading\">\n <ng-container *ngTemplateOutlet=\"list; context: {obs: obs}\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n\n <ng-container *ngTemplateOutlet=\"bulkAssignModal; context: {obs: obs}\"></ng-container>\n\n <ng-container *ngTemplateOutlet=\"changePageModal\"></ng-container>\n\n <ng-container *ngTemplateOutlet=\"changeTabModal\"></ng-container>\n</ng-container>\n\n<ng-template #searchFields let-obs=\"obs\">\n <div class=\"mb-3\">\n <valtimo-search-fields\n [searchFields]=\"obs.searchFields\"\n (doSearch)=\"search($event)\"\n [documentDefinitionName]=\"documentDefinitionName$ | async\"\n [defaultValues]=\"searchFieldValues$ | async\"\n [inputDisabled]=\"!obs.loaded\"\n [externalSearchField]=\"obs.showStatusSelector\"\n >\n <valtimo-status-selector\n *ngIf=\"obs.showStatusSelector\"\n [statuses]=\"obs.statuses\"\n [selectedStatuses]=\"obs.selectedStatuses\"\n [disabled]=\"!obs.loaded\"\n (selectedStatusesChangeEvent)=\"onSelectedStatusesChange($event)\"\n ></valtimo-status-selector>\n </valtimo-search-fields>\n </div>\n</ng-template>\n\n<ng-template #list let-obs=\"obs\">\n <valtimo-carbon-list\n [fields]=\"obs.fields\"\n [header]=\"false\"\n [initialSortState]=\"pagination.sort\"\n [items]=\"obs.documentItems\"\n [pagination]=\"pagination\"\n paginationIdentifier=\"dossierList\"\n lockedTooltipTranslationKey=\"dossier.rowLocked\"\n [showSelectionColumn]=\"canHaveAssignee\"\n [tableTranslations]=\"tableTranslations\"\n (paginationClicked)=\"pageChange($event)\"\n (paginationSet)=\"pageSizeChange($event)\"\n (rowClicked)=\"rowClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <ng-container carbonToolbarActions>\n <button cdsButton=\"primary\" (click)=\"showAssignModal()\">\n {{ 'dossier.bulkAssign.assign' | translate }}\n </button>\n </ng-container>\n\n <div carbonToolbarContent>\n <ng-container *ngTemplateOutlet=\"dossierListActions\"></ng-container>\n </div>\n\n <valtimo-no-results\n [action]=\"obs.noResultsMessage.isSearchResult ? null : dossierListActions\"\n [description]=\"obs.noResultsMessage.description | translate\"\n [title]=\"obs.noResultsMessage.title | translate\"\n ></valtimo-no-results>\n\n <div tabs *ngIf=\"canHaveAssignee\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n </div>\n </valtimo-carbon-list>\n</ng-template>\n\n<ng-template #tabs>\n <ng-container *ngIf=\"assigneeFilter$ | async as assigneeFilter\">\n <cds-tabs\n *ngIf=\"!visibleDossierTabs; else configuredTabs\"\n type=\"contained\"\n class=\"dossier-list-tabs\"\n >\n <cds-tab\n *ngFor=\"let tab of defaultTabs; trackBy: trackByIndex\"\n [active]=\"assigneeFilter === tab\"\n heading=\"{{ 'dossier.tabs.' + tab | translate }}\"\n [id]=\"tab\"\n (selected)=\"tabChange(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n</ng-template>\n\n<ng-template #configuredTabs>\n <ng-container *ngIf=\"assigneeFilter$ | async as assigneeFilter\">\n <cds-tabs type=\"contained\" class=\"dossier-list-tabs\">\n <cds-tab\n *ngFor=\"let tab of visibleDossierTabs; trackBy: trackByIndex\"\n [active]=\"assigneeFilter === tab\"\n heading=\"{{ 'dossier.tabs.' + tab | translate }}\"\n [id]=\"tab\"\n (selected)=\"tabChange(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n</ng-template>\n\n<ng-template #loading\n ><valtimo-carbon-list [loading]=\"true\">\n <div tabs *ngIf=\"canHaveAssignee\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n </div> </valtimo-carbon-list\n></ng-template>\n\n<ng-template #bulkAssignModal let-obs=\"obs\">\n <valtimo-dossier-bulk-assign-modal\n [documentIds]=\"obs.selectedDocumentIds\"\n [open]=\"obs.showAssignModal\"\n (closeEvent)=\"onCloseEvent($event, obs.selectedDocumentIds)\"\n ></valtimo-dossier-bulk-assign-modal>\n</ng-template>\n\n<ng-template #changePageModal>\n <valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"dossier.changePageModal.confirm\"\n contentTranslationKey=\"dossier.changePageModal.content\"\n [outputOnConfirm]=\"paginationChange$ | async\"\n [showModalSubject$]=\"showChangePageModal$\"\n titleTranslationKey=\"dossier.changePageModal.title\"\n (confirmEvent)=\"onChangePageConfirm($event)\"\n ></valtimo-confirmation-modal>\n</ng-template>\n\n<ng-template #changeTabModal>\n <valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"dossier.changeTabModal.confirm\"\n contentTranslationKey=\"dossier.changeTabModal.content\"\n [outputOnConfirm]=\"tabChange$ | async\"\n [showModalSubject$]=\"showChangeTabModal$\"\n titleTranslationKey=\"dossier.changeTabModal.title\"\n (cancelEvent)=\"onChangeTabCancel()\"\n (confirmEvent)=\"onChangeTabConfirm($event)\"\n ></valtimo-confirmation-modal>\n</ng-template>\n\n<ng-template #dossierListActions>\n <button\n *ngIf=\"canCreateDocument$ | async\"\n cdsButton=\"primary\"\n [disabled]=\"listActionsComponent?.disableStartDossierButton$ | async\"\n (click)=\"startDossier()\"\n >\n {{ 'Start Dossier' | translate }}\n\n <svg cdsIcon=\"add\" size=\"16\" class=\"cds--btn__icon\"></svg>\n </button>\n</ng-template>\n", styles: [".dossier-list-tabs cds-tab{display:none}\n/*!\n * Copyright 2015-2024 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"], dependencies: [{ kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i2$3.SearchFieldsComponent, selector: "valtimo-search-fields", inputs: ["loading", "searchFields", "documentDefinitionName", "setValuesSubject$", "defaultValues", "inputDisabled", "externalSearchField"], outputs: ["doSearch"] }, { kind: "directive", type: i10$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i10$1.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i2$3.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }, { kind: "component", type: i10$1.Tabs, selector: "cds-tabs, ibm-tabs", inputs: ["position", "cacheActive", "followFocus", "isNavigation", "ariaLabel", "ariaLabelledby", "type", "theme", "skeleton"] }, { kind: "component", type: i10$1.Tab, selector: "cds-tab, ibm-tab", inputs: ["heading", "title", "context", "active", "disabled", "tabIndex", "id", "cacheActive"], outputs: ["selected"] }, { kind: "component", type: i2$3.CarbonListComponent, selector: "valtimo-carbon-list", inputs: ["items", "fields", "tableTranslations", "paginatorConfig", "pagination", "loading", "actions", "actionItems", "header", "hideColumnHeader", "initialSortState", "isSearchable", "enableSingleSelection", "lastColumnTemplate", "paginationIdentifier", "showSelectionColumn", "striped", "hideToolbar", "lockedTooltipTranslationKey", "movingRowsEnabled"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged", "moveRow", "itemsReordered"] }, { kind: "component", type: i2$3.CarbonNoResultsComponent, selector: "valtimo-no-results", inputs: ["action", "description", "illustration", "title"] }, { kind: "component", type: i2$3.StatusSelectorComponent, selector: "valtimo-status-selector", inputs: ["statuses", "selectedStatuses", "carbonTheme", "disabled"], outputs: ["selectedStatusesChangeEvent"] }, { kind: "component", type: DossierBulkAssignModalComponent, selector: "valtimo-dossier-bulk-assign-modal", inputs: ["documentIds", "open"], outputs: ["closeEvent"] }, { kind: "component", type: DossierListActionsComponent, selector: "valtimo-dossier-list-actions", inputs: ["loading"], outputs: ["formFlowComplete"] }, { kind: "pipe", type: i5$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.TranslatePipe, name: "translate" }] }); }
|
|
3546
3344
|
}
|
|
3547
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierListComponent, decorators: [{
|
|
3548
3346
|
type: Component,
|
|
3549
3347
|
args: [{ selector: 'valtimo-dossier-list', providers: [
|
|
3550
3348
|
DossierListService,
|
|
@@ -3553,8 +3351,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3553
3351
|
DossierParameterService,
|
|
3554
3352
|
DossierListPaginationService,
|
|
3555
3353
|
DossierListSearchService,
|
|
3556
|
-
|
|
3557
|
-
|
|
3354
|
+
DossierListStatusService,
|
|
3355
|
+
], template: "<!--\n ~ Copyright 2015-2024 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 fields: fields$ | async,\n documentItems: documentItems$ | async,\n noResultsMessage: noResultsMessage$ | async,\n searchFields: searchFields$ | async,\n schema: schema$ | async,\n showAssignModal: showAssignModal$ | async,\n selectedDocumentIds: selectedDocumentIds$ | async,\n statuses: statuses$ | async,\n selectedStatuses: selectedStatuses$ | async,\n showStatusSelector: showStatusSelector$ | async,\n loaded:\n !loadingFields &&\n !loadingPagination &&\n !loadingSearchFields &&\n !loadingAssigneeFilter &&\n !loadingDocumentItems\n } as obs\"\n>\n <div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-dossier-list-actions\n [loading]=\"!obs.loaded\"\n (formFlowComplete)=\"forceRefresh()\"\n ></valtimo-dossier-list-actions>\n <ng-container *ngTemplateOutlet=\"searchFields; context: {obs: obs}\"></ng-container>\n\n <ng-container *ngIf=\"obs.loaded; else loading\">\n <ng-container *ngTemplateOutlet=\"list; context: {obs: obs}\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n\n <ng-container *ngTemplateOutlet=\"bulkAssignModal; context: {obs: obs}\"></ng-container>\n\n <ng-container *ngTemplateOutlet=\"changePageModal\"></ng-container>\n\n <ng-container *ngTemplateOutlet=\"changeTabModal\"></ng-container>\n</ng-container>\n\n<ng-template #searchFields let-obs=\"obs\">\n <div class=\"mb-3\">\n <valtimo-search-fields\n [searchFields]=\"obs.searchFields\"\n (doSearch)=\"search($event)\"\n [documentDefinitionName]=\"documentDefinitionName$ | async\"\n [defaultValues]=\"searchFieldValues$ | async\"\n [inputDisabled]=\"!obs.loaded\"\n [externalSearchField]=\"obs.showStatusSelector\"\n >\n <valtimo-status-selector\n *ngIf=\"obs.showStatusSelector\"\n [statuses]=\"obs.statuses\"\n [selectedStatuses]=\"obs.selectedStatuses\"\n [disabled]=\"!obs.loaded\"\n (selectedStatusesChangeEvent)=\"onSelectedStatusesChange($event)\"\n ></valtimo-status-selector>\n </valtimo-search-fields>\n </div>\n</ng-template>\n\n<ng-template #list let-obs=\"obs\">\n <valtimo-carbon-list\n [fields]=\"obs.fields\"\n [header]=\"false\"\n [initialSortState]=\"pagination.sort\"\n [items]=\"obs.documentItems\"\n [pagination]=\"pagination\"\n paginationIdentifier=\"dossierList\"\n lockedTooltipTranslationKey=\"dossier.rowLocked\"\n [showSelectionColumn]=\"canHaveAssignee\"\n [tableTranslations]=\"tableTranslations\"\n (paginationClicked)=\"pageChange($event)\"\n (paginationSet)=\"pageSizeChange($event)\"\n (rowClicked)=\"rowClick($event)\"\n (sortChanged)=\"sortChanged($event)\"\n >\n <ng-container carbonToolbarActions>\n <button cdsButton=\"primary\" (click)=\"showAssignModal()\">\n {{ 'dossier.bulkAssign.assign' | translate }}\n </button>\n </ng-container>\n\n <div carbonToolbarContent>\n <ng-container *ngTemplateOutlet=\"dossierListActions\"></ng-container>\n </div>\n\n <valtimo-no-results\n [action]=\"obs.noResultsMessage.isSearchResult ? null : dossierListActions\"\n [description]=\"obs.noResultsMessage.description | translate\"\n [title]=\"obs.noResultsMessage.title | translate\"\n ></valtimo-no-results>\n\n <div tabs *ngIf=\"canHaveAssignee\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n </div>\n </valtimo-carbon-list>\n</ng-template>\n\n<ng-template #tabs>\n <ng-container *ngIf=\"assigneeFilter$ | async as assigneeFilter\">\n <cds-tabs\n *ngIf=\"!visibleDossierTabs; else configuredTabs\"\n type=\"contained\"\n class=\"dossier-list-tabs\"\n >\n <cds-tab\n *ngFor=\"let tab of defaultTabs; trackBy: trackByIndex\"\n [active]=\"assigneeFilter === tab\"\n heading=\"{{ 'dossier.tabs.' + tab | translate }}\"\n [id]=\"tab\"\n (selected)=\"tabChange(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n</ng-template>\n\n<ng-template #configuredTabs>\n <ng-container *ngIf=\"assigneeFilter$ | async as assigneeFilter\">\n <cds-tabs type=\"contained\" class=\"dossier-list-tabs\">\n <cds-tab\n *ngFor=\"let tab of visibleDossierTabs; trackBy: trackByIndex\"\n [active]=\"assigneeFilter === tab\"\n heading=\"{{ 'dossier.tabs.' + tab | translate }}\"\n [id]=\"tab\"\n (selected)=\"tabChange(tab)\"\n ></cds-tab>\n </cds-tabs>\n </ng-container>\n</ng-template>\n\n<ng-template #loading\n ><valtimo-carbon-list [loading]=\"true\">\n <div tabs *ngIf=\"canHaveAssignee\">\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n </div> </valtimo-carbon-list\n></ng-template>\n\n<ng-template #bulkAssignModal let-obs=\"obs\">\n <valtimo-dossier-bulk-assign-modal\n [documentIds]=\"obs.selectedDocumentIds\"\n [open]=\"obs.showAssignModal\"\n (closeEvent)=\"onCloseEvent($event, obs.selectedDocumentIds)\"\n ></valtimo-dossier-bulk-assign-modal>\n</ng-template>\n\n<ng-template #changePageModal>\n <valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"dossier.changePageModal.confirm\"\n contentTranslationKey=\"dossier.changePageModal.content\"\n [outputOnConfirm]=\"paginationChange$ | async\"\n [showModalSubject$]=\"showChangePageModal$\"\n titleTranslationKey=\"dossier.changePageModal.title\"\n (confirmEvent)=\"onChangePageConfirm($event)\"\n ></valtimo-confirmation-modal>\n</ng-template>\n\n<ng-template #changeTabModal>\n <valtimo-confirmation-modal\n confirmButtonTextTranslationKey=\"dossier.changeTabModal.confirm\"\n contentTranslationKey=\"dossier.changeTabModal.content\"\n [outputOnConfirm]=\"tabChange$ | async\"\n [showModalSubject$]=\"showChangeTabModal$\"\n titleTranslationKey=\"dossier.changeTabModal.title\"\n (cancelEvent)=\"onChangeTabCancel()\"\n (confirmEvent)=\"onChangeTabConfirm($event)\"\n ></valtimo-confirmation-modal>\n</ng-template>\n\n<ng-template #dossierListActions>\n <button\n *ngIf=\"canCreateDocument$ | async\"\n cdsButton=\"primary\"\n [disabled]=\"listActionsComponent?.disableStartDossierButton$ | async\"\n (click)=\"startDossier()\"\n >\n {{ 'Start Dossier' | translate }}\n\n <svg cdsIcon=\"add\" size=\"16\" class=\"cds--btn__icon\"></svg>\n </button>\n</ng-template>\n", styles: [".dossier-list-tabs cds-tab{display:none}\n/*!\n * Copyright 2015-2024 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"] }]
|
|
3356
|
+
}], ctorParameters: () => [{ type: DossierListAssigneeService }, { type: i2$3.BreadcrumbService }, { type: DossierBulkAssignService }, { type: DossierColumnService }, { type: i1.ConfigService }, { type: i2$1.DocumentService }, { type: DossierListService }, { type: i2$3.PageTitleService }, { type: DossierListPaginationService }, { type: DossierParameterService }, { type: i1$1.ActivatedRoute }, { type: i1$1.Router }, { type: DossierListSearchService }, { type: i6.TranslateService }, { type: i7.PermissionService }, { type: DossierListStatusService }], propDecorators: { carbonList: [{
|
|
3558
3357
|
type: ViewChild,
|
|
3559
3358
|
args: [CarbonListComponent]
|
|
3560
3359
|
}], listActionsComponent: [{
|
|
@@ -3566,7 +3365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3566
3365
|
}] } });
|
|
3567
3366
|
|
|
3568
3367
|
/*
|
|
3569
|
-
* Copyright 2015-
|
|
3368
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3570
3369
|
*
|
|
3571
3370
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3572
3371
|
* you may not use this file except in compliance with the License.
|
|
@@ -3660,16 +3459,16 @@ class DossierUpdateComponent {
|
|
|
3660
3459
|
returnZero() {
|
|
3661
3460
|
return 0;
|
|
3662
3461
|
}
|
|
3663
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3664
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierUpdateComponent, deps: [{ token: i3.TaskService }, { token: i2$1.DocumentService }, { token: i1$1.ActivatedRoute }, { token: i3$2.ToastrService }, { token: i5$1.Location }, { token: DossierService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3463
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.3", type: DossierUpdateComponent, selector: "valtimo-dossier-update", ngImport: i0, template: "<!--\n ~ Copyright 2015-2024 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<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget [title]=\"page?.title\" [subtitle]=\"page?.subtitle\" [divider]=\"true\">\n <div class=\"card-body\">\n <!--view with custom definitions-->\n <div *ngIf=\"this.customDefinitions\">\n <div\n class=\"mb-4\"\n *ngFor=\"let definition of this.customDefinitions | keyvalue: returnZero\"\n ></div>\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-sm-12\">\n <div class=\"text-right\">\n <button\n class=\"btn btn-space btn-default float-left\"\n type=\"button\"\n (click)=\"back()\"\n id=\"back-button\"\n >\n Back\n </button>\n <button\n class=\"btn btn-space btn-secondary\"\n type=\"button\"\n (click)=\"reset()\"\n id=\"reset-button\"\n >\n Reset\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"button\"\n (click)=\"save()\"\n id=\"save-button\"\n >\n Save\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"submit\"\n (click)=\"submit({})\"\n id=\"submit-button\"\n >\n Submit\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <valtimo-camunda-form\n *ngIf=\"task?.formFields && !this.customDefinitions\"\n (submitted)=\"submit($event)\"\n [formFields]=\"task.formFields\"\n [componentName]=\"task.formLocation\"\n ></valtimo-camunda-form>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: i5$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2$3.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "component", type: i2$3.CamundaFormComponent, selector: "valtimo-camunda-form", inputs: ["componentName", "formFields"], outputs: ["submitted"] }, { kind: "pipe", type: i5$1.KeyValuePipe, name: "keyvalue" }] }); }
|
|
3665
3464
|
}
|
|
3666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierUpdateComponent, decorators: [{
|
|
3667
3466
|
type: Component,
|
|
3668
|
-
args: [{ selector: 'valtimo-dossier-update', template: "<!--\n ~ Copyright 2015-
|
|
3669
|
-
}], ctorParameters:
|
|
3467
|
+
args: [{ selector: 'valtimo-dossier-update', template: "<!--\n ~ Copyright 2015-2024 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<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget [title]=\"page?.title\" [subtitle]=\"page?.subtitle\" [divider]=\"true\">\n <div class=\"card-body\">\n <!--view with custom definitions-->\n <div *ngIf=\"this.customDefinitions\">\n <div\n class=\"mb-4\"\n *ngFor=\"let definition of this.customDefinitions | keyvalue: returnZero\"\n ></div>\n <div class=\"row pt-3 mt-1\">\n <div class=\"col-sm-12\">\n <div class=\"text-right\">\n <button\n class=\"btn btn-space btn-default float-left\"\n type=\"button\"\n (click)=\"back()\"\n id=\"back-button\"\n >\n Back\n </button>\n <button\n class=\"btn btn-space btn-secondary\"\n type=\"button\"\n (click)=\"reset()\"\n id=\"reset-button\"\n >\n Reset\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"button\"\n (click)=\"save()\"\n id=\"save-button\"\n >\n Save\n </button>\n <button\n class=\"btn btn-space btn-primary\"\n type=\"submit\"\n (click)=\"submit({})\"\n id=\"submit-button\"\n >\n Submit\n </button>\n </div>\n </div>\n </div>\n </div>\n\n <valtimo-camunda-form\n *ngIf=\"task?.formFields && !this.customDefinitions\"\n (submitted)=\"submit($event)\"\n [formFields]=\"task.formFields\"\n [componentName]=\"task.formLocation\"\n ></valtimo-camunda-form>\n </div>\n </valtimo-widget>\n </div>\n </div>\n</div>\n" }]
|
|
3468
|
+
}], ctorParameters: () => [{ type: i3.TaskService }, { type: i2$1.DocumentService }, { type: i1$1.ActivatedRoute }, { type: i3$2.ToastrService }, { type: i5$1.Location }, { type: DossierService }] });
|
|
3670
3469
|
|
|
3671
3470
|
/*
|
|
3672
|
-
* Copyright 2015-
|
|
3471
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3673
3472
|
*
|
|
3674
3473
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3675
3474
|
* you may not use this file except in compliance with the License.
|
|
@@ -3722,11 +3521,11 @@ const routes = [
|
|
|
3722
3521
|
},
|
|
3723
3522
|
];
|
|
3724
3523
|
class DossierRoutingModule {
|
|
3725
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3726
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3727
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3524
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3525
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: DossierRoutingModule, imports: [CommonModule, i1$1.RouterModule], exports: [RouterModule] }); }
|
|
3526
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
|
|
3728
3527
|
}
|
|
3729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierRoutingModule, decorators: [{
|
|
3730
3529
|
type: NgModule,
|
|
3731
3530
|
args: [{
|
|
3732
3531
|
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
@@ -3735,7 +3534,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3735
3534
|
}] });
|
|
3736
3535
|
|
|
3737
3536
|
/*
|
|
3738
|
-
* Copyright 2015-
|
|
3537
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3739
3538
|
*
|
|
3740
3539
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3741
3540
|
* you may not use this file except in compliance with the License.
|
|
@@ -3750,11 +3549,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3750
3549
|
* limitations under the License.
|
|
3751
3550
|
*/
|
|
3752
3551
|
class TabTranslatePipeModule {
|
|
3753
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3754
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3755
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3552
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3553
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipeModule, declarations: [TabTranslatePipe], imports: [TranslateModule], exports: [TabTranslatePipe] }); }
|
|
3554
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipeModule, imports: [TranslateModule] }); }
|
|
3756
3555
|
}
|
|
3757
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TabTranslatePipeModule, decorators: [{
|
|
3758
3557
|
type: NgModule,
|
|
3759
3558
|
args: [{
|
|
3760
3559
|
imports: [TranslateModule],
|
|
@@ -3764,7 +3563,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3764
3563
|
}] });
|
|
3765
3564
|
|
|
3766
3565
|
/*
|
|
3767
|
-
* Copyright 2015-
|
|
3566
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3768
3567
|
*
|
|
3769
3568
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3770
3569
|
* you may not use this file except in compliance with the License.
|
|
@@ -3780,7 +3579,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3780
3579
|
*/
|
|
3781
3580
|
|
|
3782
3581
|
/*
|
|
3783
|
-
* Copyright 2015-
|
|
3582
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3784
3583
|
*
|
|
3785
3584
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3786
3585
|
* you may not use this file except in compliance with the License.
|
|
@@ -3796,7 +3595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3796
3595
|
*/
|
|
3797
3596
|
|
|
3798
3597
|
/*
|
|
3799
|
-
* Copyright 2015-
|
|
3598
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
3800
3599
|
*
|
|
3801
3600
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
3802
3601
|
* you may not use this file except in compliance with the License.
|
|
@@ -3824,8 +3623,8 @@ class DossierModule {
|
|
|
3824
3623
|
],
|
|
3825
3624
|
};
|
|
3826
3625
|
}
|
|
3827
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3828
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3626
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3627
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: DossierModule, declarations: [DossierBulkAssignModalComponent,
|
|
3829
3628
|
DossierListComponent,
|
|
3830
3629
|
DossierListActionsComponent,
|
|
3831
3630
|
DossierDetailComponent,
|
|
@@ -3833,15 +3632,12 @@ class DossierModule {
|
|
|
3833
3632
|
DossierDetailTabProgressComponent,
|
|
3834
3633
|
DossierDetailTabAuditComponent,
|
|
3835
3634
|
DossierDetailTabDocumentsComponent,
|
|
3836
|
-
DossierDetailTabContactMomentsComponent,
|
|
3837
|
-
DossierDetailTabZaakobjectenComponent,
|
|
3838
3635
|
DossierDetailTabNotesComponent,
|
|
3839
3636
|
DossierUpdateComponent,
|
|
3840
3637
|
DossierProcessStartModalComponent,
|
|
3841
3638
|
DossierSupportingProcessStartModalComponent,
|
|
3842
|
-
DossierDetailTabObjectTypeComponent,
|
|
3843
|
-
DossierDetailTabDocumentenApiDocumentsComponent,
|
|
3844
3639
|
DossierDetailTabS3DocumentsComponent,
|
|
3640
|
+
DossierDetailTabNotFoundComponent,
|
|
3845
3641
|
DossierAssignUserComponent,
|
|
3846
3642
|
NoteModalComponent,
|
|
3847
3643
|
DossierDetailTabFormioComponent], imports: [CommonModule,
|
|
@@ -3874,7 +3670,6 @@ class DossierModule {
|
|
|
3874
3670
|
VModalModule,
|
|
3875
3671
|
TitleModule,
|
|
3876
3672
|
ButtonModule,
|
|
3877
|
-
DocumentenApiMetadataModalModule,
|
|
3878
3673
|
SearchableDropdownSelectModule,
|
|
3879
3674
|
SearchFieldsModule,
|
|
3880
3675
|
PageModule,
|
|
@@ -3885,7 +3680,7 @@ class DossierModule {
|
|
|
3885
3680
|
LoadingModule,
|
|
3886
3681
|
ButtonModule$1,
|
|
3887
3682
|
IconModule,
|
|
3888
|
-
|
|
3683
|
+
ProcessLinkModule,
|
|
3889
3684
|
ModalModule$1,
|
|
3890
3685
|
SelectModule$1,
|
|
3891
3686
|
ConfirmationModalModule,
|
|
@@ -3895,8 +3690,13 @@ class DossierModule {
|
|
|
3895
3690
|
TabTranslatePipeModule,
|
|
3896
3691
|
CarbonListModule,
|
|
3897
3692
|
IsArrayPipe,
|
|
3898
|
-
SkeletonModule
|
|
3899
|
-
|
|
3693
|
+
SkeletonModule,
|
|
3694
|
+
StatusSelectorComponent,
|
|
3695
|
+
RenderInPageHeaderDirectiveModule,
|
|
3696
|
+
TagModule,
|
|
3697
|
+
DialogModule,
|
|
3698
|
+
ValtimoCdsOverflowButtonDirectiveModule], exports: [DossierListComponent, DossierDetailComponent] }); }
|
|
3699
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierModule, imports: [CommonModule,
|
|
3900
3700
|
DossierRoutingModule,
|
|
3901
3701
|
ListModule,
|
|
3902
3702
|
WidgetModule,
|
|
@@ -3934,7 +3734,6 @@ class DossierModule {
|
|
|
3934
3734
|
VModalModule,
|
|
3935
3735
|
TitleModule,
|
|
3936
3736
|
ButtonModule,
|
|
3937
|
-
DocumentenApiMetadataModalModule,
|
|
3938
3737
|
SearchableDropdownSelectModule,
|
|
3939
3738
|
SearchFieldsModule,
|
|
3940
3739
|
PageModule,
|
|
@@ -3945,7 +3744,7 @@ class DossierModule {
|
|
|
3945
3744
|
LoadingModule,
|
|
3946
3745
|
ButtonModule$1,
|
|
3947
3746
|
IconModule,
|
|
3948
|
-
|
|
3747
|
+
ProcessLinkModule,
|
|
3949
3748
|
ModalModule$1,
|
|
3950
3749
|
SelectModule$1,
|
|
3951
3750
|
ConfirmationModalModule,
|
|
@@ -3954,9 +3753,14 @@ class DossierModule {
|
|
|
3954
3753
|
ComboBoxModule,
|
|
3955
3754
|
TabTranslatePipeModule,
|
|
3956
3755
|
CarbonListModule,
|
|
3957
|
-
SkeletonModule
|
|
3756
|
+
SkeletonModule,
|
|
3757
|
+
StatusSelectorComponent,
|
|
3758
|
+
RenderInPageHeaderDirectiveModule,
|
|
3759
|
+
TagModule,
|
|
3760
|
+
DialogModule,
|
|
3761
|
+
ValtimoCdsOverflowButtonDirectiveModule] }); }
|
|
3958
3762
|
}
|
|
3959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3763
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DossierModule, decorators: [{
|
|
3960
3764
|
type: NgModule,
|
|
3961
3765
|
args: [{
|
|
3962
3766
|
declarations: [
|
|
@@ -3968,15 +3772,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3968
3772
|
DossierDetailTabProgressComponent,
|
|
3969
3773
|
DossierDetailTabAuditComponent,
|
|
3970
3774
|
DossierDetailTabDocumentsComponent,
|
|
3971
|
-
DossierDetailTabContactMomentsComponent,
|
|
3972
|
-
DossierDetailTabZaakobjectenComponent,
|
|
3973
3775
|
DossierDetailTabNotesComponent,
|
|
3974
3776
|
DossierUpdateComponent,
|
|
3975
3777
|
DossierProcessStartModalComponent,
|
|
3976
3778
|
DossierSupportingProcessStartModalComponent,
|
|
3977
|
-
DossierDetailTabObjectTypeComponent,
|
|
3978
|
-
DossierDetailTabDocumentenApiDocumentsComponent,
|
|
3979
3779
|
DossierDetailTabS3DocumentsComponent,
|
|
3780
|
+
DossierDetailTabNotFoundComponent,
|
|
3980
3781
|
DossierAssignUserComponent,
|
|
3981
3782
|
NoteModalComponent,
|
|
3982
3783
|
DossierDetailTabFormioComponent,
|
|
@@ -4020,7 +3821,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4020
3821
|
VModalModule,
|
|
4021
3822
|
TitleModule,
|
|
4022
3823
|
ButtonModule,
|
|
4023
|
-
DocumentenApiMetadataModalModule,
|
|
4024
3824
|
SearchableDropdownSelectModule,
|
|
4025
3825
|
SearchFieldsModule,
|
|
4026
3826
|
PageModule,
|
|
@@ -4031,7 +3831,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4031
3831
|
LoadingModule,
|
|
4032
3832
|
ButtonModule$1,
|
|
4033
3833
|
IconModule,
|
|
4034
|
-
|
|
3834
|
+
ProcessLinkModule,
|
|
4035
3835
|
ModalModule$1,
|
|
4036
3836
|
SelectModule$1,
|
|
4037
3837
|
ConfirmationModalModule,
|
|
@@ -4042,13 +3842,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4042
3842
|
CarbonListModule,
|
|
4043
3843
|
IsArrayPipe,
|
|
4044
3844
|
SkeletonModule,
|
|
3845
|
+
StatusSelectorComponent,
|
|
3846
|
+
RenderInPageHeaderDirectiveModule,
|
|
3847
|
+
TagModule,
|
|
3848
|
+
DialogModule,
|
|
3849
|
+
ValtimoCdsOverflowButtonDirectiveModule,
|
|
4045
3850
|
],
|
|
4046
3851
|
exports: [DossierListComponent, DossierDetailComponent],
|
|
4047
3852
|
}]
|
|
4048
3853
|
}] });
|
|
4049
3854
|
|
|
4050
3855
|
/*
|
|
4051
|
-
* Copyright 2015-
|
|
3856
|
+
* Copyright 2015-2024 Ritense BV, the Netherlands.
|
|
4052
3857
|
*
|
|
4053
3858
|
* Licensed under EUPL, Version 1.2 (the "License");
|
|
4054
3859
|
* you may not use this file except in compliance with the License.
|
|
@@ -4070,5 +3875,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4070
3875
|
* Generated bundle index. Do not edit.
|
|
4071
3876
|
*/
|
|
4072
3877
|
|
|
4073
|
-
export { ApiTabType, CASE_TAB_TOKEN, DEFAULT_TABS, DEFAULT_TAB_COMPONENTS, DefaultTabs, DossierBulkAssignModalComponent, DossierBulkAssignService, DossierColumnService, DossierDetailComponent, DossierDetailTabAuditComponent,
|
|
3878
|
+
export { ApiTabType, CASE_TAB_TOKEN, CASE_WITHOUT_STATUS_STATUS, DEFAULT_DOSSIER_LIST_TABS, DEFAULT_TABS, DEFAULT_TAB_COMPONENTS, DOSSIER_LIST_NO_RESULTS_MESSAGE, DOSSIER_LIST_TABLE_TRANSLATIONS, DefaultTabs, DossierBulkAssignModalComponent, DossierBulkAssignService, DossierColumnService, DossierDetailComponent, DossierDetailTabAuditComponent, DossierDetailTabDocumentsComponent, DossierDetailTabNotesComponent, DossierDetailTabProgressComponent, DossierDetailTabSummaryComponent, DossierListAssigneeService, DossierListComponent, DossierListPaginationService, DossierListSearchService, DossierListService, DossierListStatusService, DossierModule, DossierParameterService, DossierService, DossierTabApiService, DossierTabService, StartModalService, TAB_MAP, TabImpl, TabLoaderImpl };
|
|
4074
3879
|
//# sourceMappingURL=valtimo-dossier.mjs.map
|