@valtimo/dossier-management 4.15.3-next-main.16 → 4.17.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/bundles/valtimo-dossier-management.umd.js +572 -572
- package/bundles/valtimo-dossier-management.umd.js.map +1 -1
- package/bundles/valtimo-dossier-management.umd.min.js +1 -1
- package/bundles/valtimo-dossier-management.umd.min.js.map +1 -1
- package/esm2015/lib/dossier-management-connect-modal/dossier-management-connect-modal.component.js +92 -92
- package/esm2015/lib/dossier-management-detail/dossier-management-detail.component.js +97 -97
- package/esm2015/lib/dossier-management-list/dossier-management-list.component.js +78 -78
- package/esm2015/lib/dossier-management-remove-modal/dossier-management-remove-modal.component.js +63 -63
- package/esm2015/lib/dossier-management-routing.module.js +47 -47
- package/esm2015/lib/dossier-management-upload/dossier-management-upload.component.js +158 -159
- package/esm2015/lib/dossier-management.module.js +56 -56
- package/esm2015/public-api.js +21 -21
- package/esm2015/valtimo-dossier-management.js +10 -10
- package/fesm2015/valtimo-dossier-management.js +547 -548
- package/fesm2015/valtimo-dossier-management.js.map +1 -1
- package/lib/dossier-management-connect-modal/dossier-management-connect-modal.component.d.ts +24 -25
- package/lib/dossier-management-detail/dossier-management-detail.component.d.ts +24 -25
- package/lib/dossier-management-list/dossier-management-list.component.d.ts +26 -27
- package/lib/dossier-management-remove-modal/dossier-management-remove-modal.component.d.ts +18 -19
- package/lib/dossier-management-routing.module.d.ts +2 -2
- package/lib/dossier-management-upload/dossier-management-upload.component.d.ts +38 -38
- package/lib/dossier-management.module.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -2
- package/valtimo-dossier-management.d.ts +9 -9
- package/valtimo-dossier-management.metadata.json +1 -1
|
@@ -1,78 +1,78 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Component } from '@angular/core';
|
|
17
|
-
import { DocumentService } from '@valtimo/document';
|
|
18
|
-
import { Router } from '@angular/router';
|
|
19
|
-
import * as moment_ from 'moment';
|
|
20
|
-
import { BehaviorSubject } from 'rxjs';
|
|
21
|
-
const moment = moment_;
|
|
22
|
-
moment.locale(localStorage.getItem('langKey') || '');
|
|
23
|
-
export class DossierManagementListComponent {
|
|
24
|
-
constructor(documentService, router) {
|
|
25
|
-
this.documentService = documentService;
|
|
26
|
-
this.router = router;
|
|
27
|
-
this.dossiers = [];
|
|
28
|
-
this.pagination = {
|
|
29
|
-
collectionSize: 0,
|
|
30
|
-
page: 1,
|
|
31
|
-
size: 10,
|
|
32
|
-
maxPaginationItemSize: 5,
|
|
33
|
-
};
|
|
34
|
-
this.pageParam = 0;
|
|
35
|
-
this.dossierFields = [
|
|
36
|
-
{ key: 'schema.title', label: 'Title' },
|
|
37
|
-
{ key: 'createdOn', label: 'Created On' },
|
|
38
|
-
{ key: 'readOnly', label: 'Read-only' },
|
|
39
|
-
];
|
|
40
|
-
this.showModal$ = new BehaviorSubject(false);
|
|
41
|
-
}
|
|
42
|
-
paginationClicked(page) {
|
|
43
|
-
this.pageParam = page - 1;
|
|
44
|
-
this.getDocumentDefinitions();
|
|
45
|
-
}
|
|
46
|
-
paginationSet() {
|
|
47
|
-
this.getDocumentDefinitions();
|
|
48
|
-
}
|
|
49
|
-
redirectToDetails(documentDefinition) {
|
|
50
|
-
this.router.navigate(['/dossier-management/dossier', documentDefinition.id.name]);
|
|
51
|
-
}
|
|
52
|
-
getDocumentDefinitions() {
|
|
53
|
-
this.documentService
|
|
54
|
-
.queryDefinitions({ page: this.pageParam, size: this.pagination.size })
|
|
55
|
-
.subscribe((documentDefinitionPage) => {
|
|
56
|
-
this.pagination.collectionSize = documentDefinitionPage.totalElements;
|
|
57
|
-
this.dossiers = documentDefinitionPage.content;
|
|
58
|
-
this.dossiers.map((dossier) => {
|
|
59
|
-
dossier.createdOn = moment(dossier.createdOn).format('DD MMM YYYY HH:mm');
|
|
60
|
-
});
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
showModal() {
|
|
64
|
-
this.showModal$.next(true);
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
DossierManagementListComponent.decorators = [
|
|
68
|
-
{ type: Component, args: [{
|
|
69
|
-
selector: 'valtimo-dossier-management-list',
|
|
70
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <button class=\"btn btn-secondary btn-space mr-0\" (click)=\"showModal()\">\n <i class=\"icon mdi mdi-upload\"></i> \n {{ 'Upload document definition' | translate }}\n </button>\n </div>\n <div class=\"clearfix\"></div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"dossiers\"\n [fields]=\"dossierFields\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n [pagination]=\"pagination\"\n paginationIdentifier=\"dossierManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet()\"\n (rowClicked)=\"redirectToDetails($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Dossiers' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Dossiers' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n\n<valtimo-dossier-management-upload\n [show$]=\"showModal$\"\n (definitionUploaded)=\"paginationSet()\"\n></valtimo-dossier-management-upload>\n",
|
|
71
|
-
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
72
|
-
},] }
|
|
73
|
-
];
|
|
74
|
-
DossierManagementListComponent.ctorParameters = () => [
|
|
75
|
-
{ type: DocumentService },
|
|
76
|
-
{ type: Router }
|
|
77
|
-
];
|
|
78
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Component } from '@angular/core';
|
|
17
|
+
import { DocumentService } from '@valtimo/document';
|
|
18
|
+
import { Router } from '@angular/router';
|
|
19
|
+
import * as moment_ from 'moment';
|
|
20
|
+
import { BehaviorSubject } from 'rxjs';
|
|
21
|
+
const moment = moment_;
|
|
22
|
+
moment.locale(localStorage.getItem('langKey') || '');
|
|
23
|
+
export class DossierManagementListComponent {
|
|
24
|
+
constructor(documentService, router) {
|
|
25
|
+
this.documentService = documentService;
|
|
26
|
+
this.router = router;
|
|
27
|
+
this.dossiers = [];
|
|
28
|
+
this.pagination = {
|
|
29
|
+
collectionSize: 0,
|
|
30
|
+
page: 1,
|
|
31
|
+
size: 10,
|
|
32
|
+
maxPaginationItemSize: 5,
|
|
33
|
+
};
|
|
34
|
+
this.pageParam = 0;
|
|
35
|
+
this.dossierFields = [
|
|
36
|
+
{ key: 'schema.title', label: 'Title' },
|
|
37
|
+
{ key: 'createdOn', label: 'Created On' },
|
|
38
|
+
{ key: 'readOnly', label: 'Read-only' },
|
|
39
|
+
];
|
|
40
|
+
this.showModal$ = new BehaviorSubject(false);
|
|
41
|
+
}
|
|
42
|
+
paginationClicked(page) {
|
|
43
|
+
this.pageParam = page - 1;
|
|
44
|
+
this.getDocumentDefinitions();
|
|
45
|
+
}
|
|
46
|
+
paginationSet() {
|
|
47
|
+
this.getDocumentDefinitions();
|
|
48
|
+
}
|
|
49
|
+
redirectToDetails(documentDefinition) {
|
|
50
|
+
this.router.navigate(['/dossier-management/dossier', documentDefinition.id.name]);
|
|
51
|
+
}
|
|
52
|
+
getDocumentDefinitions() {
|
|
53
|
+
this.documentService
|
|
54
|
+
.queryDefinitions({ page: this.pageParam, size: this.pagination.size })
|
|
55
|
+
.subscribe((documentDefinitionPage) => {
|
|
56
|
+
this.pagination.collectionSize = documentDefinitionPage.totalElements;
|
|
57
|
+
this.dossiers = documentDefinitionPage.content;
|
|
58
|
+
this.dossiers.map((dossier) => {
|
|
59
|
+
dossier.createdOn = moment(dossier.createdOn).format('DD MMM YYYY HH:mm');
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
showModal() {
|
|
64
|
+
this.showModal$.next(true);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
DossierManagementListComponent.decorators = [
|
|
68
|
+
{ type: Component, args: [{
|
|
69
|
+
selector: 'valtimo-dossier-management-list',
|
|
70
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"btn-group mt-m3px mb-3 float-right\">\n <button class=\"btn btn-secondary btn-space mr-0\" (click)=\"showModal()\">\n <i class=\"icon mdi mdi-upload\"></i> \n {{ 'Upload document definition' | translate }}\n </button>\n </div>\n <div class=\"clearfix\"></div>\n <valtimo-widget>\n <valtimo-list\n [items]=\"dossiers\"\n [fields]=\"dossierFields\"\n [header]=\"true\"\n [viewMode]=\"true\"\n [isSearchable]=\"true\"\n [pagination]=\"pagination\"\n paginationIdentifier=\"dossierManagementList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet()\"\n (rowClicked)=\"redirectToDetails($event)\"\n >\n <div header>\n <h3 class=\"list-header-title\">{{ 'Dossiers' | translate }}</h3>\n <h5 class=\"list-header-description\">{{ 'Overview of all Dossiers' | translate }}</h5>\n </div>\n </valtimo-list>\n </valtimo-widget>\n </div>\n</div>\n\n<valtimo-dossier-management-upload\n [show$]=\"showModal$\"\n (definitionUploaded)=\"paginationSet()\"\n></valtimo-dossier-management-upload>\n",
|
|
71
|
+
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
72
|
+
},] }
|
|
73
|
+
];
|
|
74
|
+
DossierManagementListComponent.ctorParameters = () => [
|
|
75
|
+
{ type: DocumentService },
|
|
76
|
+
{ type: Router }
|
|
77
|
+
];
|
|
78
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9zc2llci1tYW5hZ2VtZW50LWxpc3QuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy0zZmYzYTE5YS93b3Jrc3BhY2Uvcm9udGVuZF9saWJyYXJpZXNfLV9yZWxlYXNlX21haW4vcHJvamVjdHMvdmFsdGltby9kb3NzaWVyLW1hbmFnZW1lbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2Rvc3NpZXItbWFuYWdlbWVudC1saXN0L2Rvc3NpZXItbWFuYWdlbWVudC1saXN0LmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDeEMsT0FBTyxFQUFDLGVBQWUsRUFBMkIsTUFBTSxtQkFBbUIsQ0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UGFnZS50b3RhbEVsZW1lbnRzO1xuICAgICAgICB0aGlzLmRvc3NpZXJzID0gZG9jdW1lbnREZWZpbml0aW9uUGFnZS5jb250ZW50O1xuICAgICAgICB0aGlzLmRvc3NpZXJzLm1hcCgoZG9zc2llcjogRG9jdW1lbnREZWZpbml0aW9uKSA9PiB7XG4gICAgICAgICAgZG9zc2llci5jcmVhdGVkT24gPSBtb21lbnQoZG9zc2llci5jcmVhdGVkT24pLmZvcm1hdCgnREQgTU1NIFlZWVkgSEg6bW0nKTtcbiAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgfVxuXG4gIHNob3dNb2RhbCgpIHtcbiAgICB0aGlzLnNob3dNb2RhbCQubmV4dCh0cnVlKTtcbiAgfVxufVxuIl19
|
package/esm2015/lib/dossier-management-remove-modal/dossier-management-remove-modal.component.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { Component, ViewChild } from '@angular/core';
|
|
17
|
-
import { DocumentService } from '@valtimo/document';
|
|
18
|
-
import { MenuService, ModalComponent } from '@valtimo/components';
|
|
19
|
-
import { ToastrService } from 'ngx-toastr';
|
|
20
|
-
import { Router } from '@angular/router';
|
|
21
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
22
|
-
export class DossierManagementRemoveModalComponent {
|
|
23
|
-
constructor(documentService, toasterService, router, translateService, menuService) {
|
|
24
|
-
this.documentService = documentService;
|
|
25
|
-
this.toasterService = toasterService;
|
|
26
|
-
this.router = router;
|
|
27
|
-
this.translateService = translateService;
|
|
28
|
-
this.menuService = menuService;
|
|
29
|
-
this.documentDefinition = null;
|
|
30
|
-
this.errors = [];
|
|
31
|
-
}
|
|
32
|
-
openModal(documentDefinition) {
|
|
33
|
-
this.documentDefinition = documentDefinition;
|
|
34
|
-
this.modal.show();
|
|
35
|
-
}
|
|
36
|
-
removeDocumentDefinition() {
|
|
37
|
-
this.documentService.removeDocumentDefinition(this.documentDefinition.id.name).subscribe(() => {
|
|
38
|
-
this.menuService.reload();
|
|
39
|
-
this.router.navigate(['/dossier-management']);
|
|
40
|
-
this.toasterService.success(this.translateService.instant('remove-document-definition-success'));
|
|
41
|
-
}, (result) => {
|
|
42
|
-
this.errors = result.errors;
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
DossierManagementRemoveModalComponent.decorators = [
|
|
47
|
-
{ type: Component, args: [{
|
|
48
|
-
selector: 'valtimo-dossier-management-remove-modal',
|
|
49
|
-
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #documentDefinitionRemoveModal\n elementId=\"documentDefinitionRemoveModal\"\n [title]=\"documentDefinition ? documentDefinition.schema.title : 'Document definition'\"\n subtitle=\"{{ 'Remove document definition' | translate }}\"\n showFooter=\"true\"\n>\n <div body *ngIf=\"documentDefinition\">\n <div class=\"alert alert-contrast alert-danger mt-2\" role=\"alert\">\n <div class=\"icon\"><span class=\"mdi mdi-alert-triangle\"></span></div>\n <div\n class=\"message\"\n [innerHTML]=\"'remove-document-definition-confirmation' | translate\"\n ></div>\n </div>\n <div *ngIf=\"errors.length > 0\" class=\"alert alert-danger pt-5 pb-5 mb-2\">\n <ol>\n <li *ngFor=\"let error of errors\">\n {{ error }}\n </li>\n </ol>\n </div>\n </div>\n <div footer>\n <button (click)=\"removeDocumentDefinition()\" class=\"btn btn-primary\" data-dismiss=\"modal\">\n {{ 'remove-document-definition-confirmation-button' | translate }}\n </button>\n </div>\n</valtimo-modal>\n",
|
|
50
|
-
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
51
|
-
},] }
|
|
52
|
-
];
|
|
53
|
-
DossierManagementRemoveModalComponent.ctorParameters = () => [
|
|
54
|
-
{ type: DocumentService },
|
|
55
|
-
{ type: ToastrService },
|
|
56
|
-
{ type: Router },
|
|
57
|
-
{ type: TranslateService },
|
|
58
|
-
{ type: MenuService }
|
|
59
|
-
];
|
|
60
|
-
DossierManagementRemoveModalComponent.propDecorators = {
|
|
61
|
-
modal: [{ type: ViewChild, args: ['documentDefinitionRemoveModal',] }]
|
|
62
|
-
};
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { Component, ViewChild } from '@angular/core';
|
|
17
|
+
import { DocumentService, } from '@valtimo/document';
|
|
18
|
+
import { MenuService, ModalComponent } from '@valtimo/components';
|
|
19
|
+
import { ToastrService } from 'ngx-toastr';
|
|
20
|
+
import { Router } from '@angular/router';
|
|
21
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
22
|
+
export class DossierManagementRemoveModalComponent {
|
|
23
|
+
constructor(documentService, toasterService, router, translateService, menuService) {
|
|
24
|
+
this.documentService = documentService;
|
|
25
|
+
this.toasterService = toasterService;
|
|
26
|
+
this.router = router;
|
|
27
|
+
this.translateService = translateService;
|
|
28
|
+
this.menuService = menuService;
|
|
29
|
+
this.documentDefinition = null;
|
|
30
|
+
this.errors = [];
|
|
31
|
+
}
|
|
32
|
+
openModal(documentDefinition) {
|
|
33
|
+
this.documentDefinition = documentDefinition;
|
|
34
|
+
this.modal.show();
|
|
35
|
+
}
|
|
36
|
+
removeDocumentDefinition() {
|
|
37
|
+
this.documentService.removeDocumentDefinition(this.documentDefinition.id.name).subscribe(() => {
|
|
38
|
+
this.menuService.reload();
|
|
39
|
+
this.router.navigate(['/dossier-management']);
|
|
40
|
+
this.toasterService.success(this.translateService.instant('remove-document-definition-success'));
|
|
41
|
+
}, (result) => {
|
|
42
|
+
this.errors = result.errors;
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
DossierManagementRemoveModalComponent.decorators = [
|
|
47
|
+
{ type: Component, args: [{
|
|
48
|
+
selector: 'valtimo-dossier-management-remove-modal',
|
|
49
|
+
template: "<!--\n ~ Copyright 2015-2020 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<valtimo-modal\n #documentDefinitionRemoveModal\n elementId=\"documentDefinitionRemoveModal\"\n [title]=\"documentDefinition ? documentDefinition.schema.title : 'Document definition'\"\n subtitle=\"{{ 'Remove document definition' | translate }}\"\n showFooter=\"true\"\n>\n <div body *ngIf=\"documentDefinition\">\n <div class=\"alert alert-contrast alert-danger mt-2\" role=\"alert\">\n <div class=\"icon\"><span class=\"mdi mdi-alert-triangle\"></span></div>\n <div\n class=\"message\"\n [innerHTML]=\"'remove-document-definition-confirmation' | translate\"\n ></div>\n </div>\n <div *ngIf=\"errors.length > 0\" class=\"alert alert-danger pt-5 pb-5 mb-2\">\n <ol>\n <li *ngFor=\"let error of errors\">\n {{ error }}\n </li>\n </ol>\n </div>\n </div>\n <div footer>\n <button (click)=\"removeDocumentDefinition()\" class=\"btn btn-primary\" data-dismiss=\"modal\">\n {{ 'remove-document-definition-confirmation-button' | translate }}\n </button>\n </div>\n</valtimo-modal>\n",
|
|
50
|
+
styles: ["/*!\n * Copyright 2015-2020 Ritense BV, the Netherlands.\n *\n * Licensed under EUPL, Version 1.2 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" basis,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */"]
|
|
51
|
+
},] }
|
|
52
|
+
];
|
|
53
|
+
DossierManagementRemoveModalComponent.ctorParameters = () => [
|
|
54
|
+
{ type: DocumentService },
|
|
55
|
+
{ type: ToastrService },
|
|
56
|
+
{ type: Router },
|
|
57
|
+
{ type: TranslateService },
|
|
58
|
+
{ type: MenuService }
|
|
59
|
+
];
|
|
60
|
+
DossierManagementRemoveModalComponent.propDecorators = {
|
|
61
|
+
modal: [{ type: ViewChild, args: ['documentDefinitionRemoveModal',] }]
|
|
62
|
+
};
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9zc2llci1tYW5hZ2VtZW50LXJlbW92ZS1tb2RhbC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTNmZjNhMTlhL3dvcmtzcGFjZS9yb250ZW5kX2xpYnJhcmllc18tX3JlbGVhc2VfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2Rvc3NpZXItbWFuYWdlbWVudC9zcmMvIiwic291cmNlcyI6WyJsaWIvZG9zc2llci1tYW5hZ2VtZW50LXJlbW92ZS1tb2RhbC9kb3NzaWVyLW1hbmFnZW1lbnQtcmVtb3ZlLW1vZGFsLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxTQUFTLEVBQUUsU0FBUyxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ25ELE9BQU8sRUFDTCxlQUFlLEdBR2hCLE1BQU0sbUJBQW1CLENBQUM7QUFDM0IsT0FBTyxFQUFDLFdBQVcsRUFBRSxjQUFjLEVBQUMsTUFBTSxxQkFBcUIsQ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IHRoaXMudG9hc3RlclNlcnZpY2Uuc3VjY2VzcyhcbiAgICAgICAgICB0aGlzLnRyYW5zbGF0ZVNlcnZpY2UuaW5zdGFudCgncmVtb3ZlLWRvY3VtZW50LWRlZmluaXRpb24tc3VjY2VzcycpXG4gICAgICAgICk7XG4gICAgICB9LFxuICAgICAgKHJlc3VsdDogVW5kZXBsb3lEb2N1bWVudERlZmluaXRpb25SZXN1bHQpID0+IHtcbiAgICAgICAgdGhpcy5lcnJvcnMgPSByZXN1bHQuZXJyb3JzO1xuICAgICAgfVxuICAgICk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { NgModule } from '@angular/core';
|
|
17
|
-
import { RouterModule } from '@angular/router';
|
|
18
|
-
import { AuthGuardService } from '@valtimo/security';
|
|
19
|
-
import { DossierManagementDetailComponent } from './dossier-management-detail/dossier-management-detail.component';
|
|
20
|
-
import { DossierManagementListComponent } from './dossier-management-list/dossier-management-list.component';
|
|
21
|
-
import { ROLE_ADMIN } from '@valtimo/
|
|
22
|
-
const ɵ0 = { title: 'Dossiers', roles: [ROLE_ADMIN] }, ɵ1 = { title: 'Dossier details', roles: [ROLE_ADMIN] };
|
|
23
|
-
const routes = [
|
|
24
|
-
{
|
|
25
|
-
path: 'dossier-management',
|
|
26
|
-
component: DossierManagementListComponent,
|
|
27
|
-
canActivate: [AuthGuardService],
|
|
28
|
-
data: ɵ0,
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
path: 'dossier-management/dossier/:name',
|
|
32
|
-
component: DossierManagementDetailComponent,
|
|
33
|
-
canActivate: [AuthGuardService],
|
|
34
|
-
data: ɵ1,
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
export class DossierManagementRoutingModule {
|
|
38
|
-
}
|
|
39
|
-
DossierManagementRoutingModule.decorators = [
|
|
40
|
-
{ type: NgModule, args: [{
|
|
41
|
-
imports: [RouterModule.forRoot(routes)],
|
|
42
|
-
exports: [RouterModule],
|
|
43
|
-
declarations: [],
|
|
44
|
-
},] }
|
|
45
|
-
];
|
|
46
|
-
export { ɵ0, ɵ1 };
|
|
47
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
3
|
+
*
|
|
4
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
5
|
+
* you may not use this file except in compliance with the License.
|
|
6
|
+
* You may obtain a copy of the License at
|
|
7
|
+
*
|
|
8
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
9
|
+
*
|
|
10
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
12
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
+
* See the License for the specific language governing permissions and
|
|
14
|
+
* limitations under the License.
|
|
15
|
+
*/
|
|
16
|
+
import { NgModule } from '@angular/core';
|
|
17
|
+
import { RouterModule } from '@angular/router';
|
|
18
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
19
|
+
import { DossierManagementDetailComponent } from './dossier-management-detail/dossier-management-detail.component';
|
|
20
|
+
import { DossierManagementListComponent } from './dossier-management-list/dossier-management-list.component';
|
|
21
|
+
import { ROLE_ADMIN } from '@valtimo/config';
|
|
22
|
+
const ɵ0 = { title: 'Dossiers', roles: [ROLE_ADMIN] }, ɵ1 = { title: 'Dossier details', roles: [ROLE_ADMIN] };
|
|
23
|
+
const routes = [
|
|
24
|
+
{
|
|
25
|
+
path: 'dossier-management',
|
|
26
|
+
component: DossierManagementListComponent,
|
|
27
|
+
canActivate: [AuthGuardService],
|
|
28
|
+
data: ɵ0,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
path: 'dossier-management/dossier/:name',
|
|
32
|
+
component: DossierManagementDetailComponent,
|
|
33
|
+
canActivate: [AuthGuardService],
|
|
34
|
+
data: ɵ1,
|
|
35
|
+
},
|
|
36
|
+
];
|
|
37
|
+
export class DossierManagementRoutingModule {
|
|
38
|
+
}
|
|
39
|
+
DossierManagementRoutingModule.decorators = [
|
|
40
|
+
{ type: NgModule, args: [{
|
|
41
|
+
imports: [RouterModule.forRoot(routes)],
|
|
42
|
+
exports: [RouterModule],
|
|
43
|
+
declarations: [],
|
|
44
|
+
},] }
|
|
45
|
+
];
|
|
46
|
+
export { ɵ0, ɵ1 };
|
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZG9zc2llci1tYW5hZ2VtZW50LXJvdXRpbmcubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy0zZmYzYTE5YS93b3Jrc3BhY2Uvcm9udGVuZF9saWJyYXJpZXNfLV9yZWxlYXNlX21haW4vcHJvamVjdHMvdmFsdGltby9kb3NzaWVyLW1hbmFnZW1lbnQvc3JjLyIsInNvdXJjZXMiOlsibGliL2Rvc3NpZXItbWFuYWdlbWVudC1yb3V0aW5nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFB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