@valtimo/dashboard 4.15.3-next-main.14 → 4.15.3-next-main.15
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-dashboard.umd.js +189 -189
- package/esm2015/lib/dashboard-routing.module.js +43 -43
- package/esm2015/lib/dashboard.component.js +95 -95
- package/esm2015/lib/dashboard.module.js +53 -53
- package/esm2015/public_api.js +20 -20
- package/esm2015/valtimo-dashboard.js +5 -5
- package/fesm2015/valtimo-dashboard.js +180 -180
- package/lib/dashboard-routing.module.d.ts +2 -2
- package/lib/dashboard.component.d.ts +26 -26
- package/lib/dashboard.module.d.ts +5 -5
- package/package.json +1 -1
- package/public_api.d.ts +2 -2
- package/valtimo-dashboard.d.ts +5 -5
|
@@ -4,203 +4,203 @@
|
|
|
4
4
|
(global = global || self, factory((global.valtimo = global.valtimo || {}, global.valtimo.dashboard = {}), global.ng.core, global.core$1, global.context, global.ng.router, global.task, global.moment, global.rxjs.operators, global.rxjs, global.ng.common, global.httpLoader, global.security, global.contract, global.components, global.ng.common.http));
|
|
5
5
|
}(this, (function (exports, core, core$1, context, router, task, moment_, operators, rxjs, common, httpLoader, security, contract, components, http) { 'use strict';
|
|
6
6
|
|
|
7
|
-
/*
|
|
8
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
-
*
|
|
10
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
-
* you may not use this file except in compliance with the License.
|
|
12
|
-
* You may obtain a copy of the License at
|
|
13
|
-
*
|
|
14
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
-
*
|
|
16
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
-
* See the License for the specific language governing permissions and
|
|
20
|
-
* limitations under the License.
|
|
21
|
-
*/
|
|
22
|
-
var moment = moment_;
|
|
23
|
-
moment.locale(localStorage.getItem('langKey') || '');
|
|
24
|
-
moment.defaultFormat = 'DD MMM YYYY HH:mm';
|
|
25
|
-
var DashboardComponent = /** @class */ (function () {
|
|
26
|
-
function DashboardComponent(router, contextService, taskService, route, translate) {
|
|
27
|
-
this.router = router;
|
|
28
|
-
this.contextService = contextService;
|
|
29
|
-
this.taskService = taskService;
|
|
30
|
-
this.route = route;
|
|
31
|
-
this.translate = translate;
|
|
32
|
-
this.openTaskFields = [
|
|
33
|
-
{
|
|
34
|
-
key: 'created',
|
|
35
|
-
label: 'Created'
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
key: 'name',
|
|
39
|
-
label: 'Name'
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
key: 'valtimoAssignee.fullName',
|
|
43
|
-
label: 'Assignee'
|
|
44
|
-
}
|
|
45
|
-
];
|
|
46
|
-
this.loading$ = new rxjs.BehaviorSubject(true);
|
|
47
|
-
}
|
|
48
|
-
DashboardComponent.prototype.ngOnInit = function () {
|
|
49
|
-
this.getOpenTasks();
|
|
50
|
-
};
|
|
51
|
-
DashboardComponent.prototype.getOpenTasks = function () {
|
|
52
|
-
var _this = this;
|
|
53
|
-
this.taskService.getTasks().subscribe(function (response) {
|
|
54
|
-
_this.openTasks = response;
|
|
55
|
-
_this.openTasks.map(function (task) {
|
|
56
|
-
task.created = moment(task.created).format('DD MMM YYYY HH:mm');
|
|
57
|
-
});
|
|
58
|
-
_this.checkRouteForTaskId(response);
|
|
59
|
-
_this.loading$.next(false);
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
DashboardComponent.prototype.rowOpenTaskClick = function (task) {
|
|
63
|
-
if (!task.endTime) {
|
|
64
|
-
this.taskDetail.openTaskDetails(task);
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
DashboardComponent.prototype.checkRouteForTaskId = function (tasks) {
|
|
68
|
-
var _this = this;
|
|
69
|
-
this.route.queryParams.pipe(operators.take(1))
|
|
70
|
-
.subscribe(function (params) {
|
|
71
|
-
var taskId = params === null || params === void 0 ? void 0 : params.taskId;
|
|
72
|
-
var findTaskFromId = tasks.find(function (task) { return task.id === taskId; });
|
|
73
|
-
if (findTaskFromId) {
|
|
74
|
-
_this.rowOpenTaskClick(findTaskFromId);
|
|
75
|
-
}
|
|
76
|
-
});
|
|
77
|
-
};
|
|
78
|
-
return DashboardComponent;
|
|
79
|
-
}());
|
|
80
|
-
DashboardComponent.decorators = [
|
|
81
|
-
{ type: core.Component, args: [{
|
|
82
|
-
selector: 'valtimo-dashboard',
|
|
83
|
-
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=\"px-3\">\n <div class=\"main-content container-fluid\" *ngIf=\"{loading: loading$ | async} as obs\">\n <h4 class=\"title\">\n {{ 'dashboard.openTasks.title' | translate }}\n <sup *ngIf=\"obs.loading === false\" class=\"ml-1 badge badge-pill badge-primary\">{{ openTasks?.length }}</sup>\n </h4>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"openTasks\"\n [fields]=\"openTaskFields\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n ></valtimo-list>\n </valtimo-widget>\n </ng-container>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getOpenTasks()\"\n (assignmentOfTaskChanged)=\"getOpenTasks()\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n",
|
|
84
|
-
styles: [""]
|
|
85
|
-
},] }
|
|
86
|
-
];
|
|
87
|
-
DashboardComponent.ctorParameters = function () { return [
|
|
88
|
-
{ type: router.Router },
|
|
89
|
-
{ type: context.ContextService },
|
|
90
|
-
{ type: task.TaskService },
|
|
91
|
-
{ type: router.ActivatedRoute },
|
|
92
|
-
{ type: core$1.TranslateService }
|
|
93
|
-
]; };
|
|
94
|
-
DashboardComponent.propDecorators = {
|
|
95
|
-
taskDetail: [{ type: core.ViewChild, args: ['taskDetail',] }]
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
9
|
+
*
|
|
10
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
11
|
+
* you may not use this file except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*/
|
|
22
|
+
var moment = moment_;
|
|
23
|
+
moment.locale(localStorage.getItem('langKey') || '');
|
|
24
|
+
moment.defaultFormat = 'DD MMM YYYY HH:mm';
|
|
25
|
+
var DashboardComponent = /** @class */ (function () {
|
|
26
|
+
function DashboardComponent(router, contextService, taskService, route, translate) {
|
|
27
|
+
this.router = router;
|
|
28
|
+
this.contextService = contextService;
|
|
29
|
+
this.taskService = taskService;
|
|
30
|
+
this.route = route;
|
|
31
|
+
this.translate = translate;
|
|
32
|
+
this.openTaskFields = [
|
|
33
|
+
{
|
|
34
|
+
key: 'created',
|
|
35
|
+
label: 'Created'
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
key: 'name',
|
|
39
|
+
label: 'Name'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: 'valtimoAssignee.fullName',
|
|
43
|
+
label: 'Assignee'
|
|
44
|
+
}
|
|
45
|
+
];
|
|
46
|
+
this.loading$ = new rxjs.BehaviorSubject(true);
|
|
47
|
+
}
|
|
48
|
+
DashboardComponent.prototype.ngOnInit = function () {
|
|
49
|
+
this.getOpenTasks();
|
|
50
|
+
};
|
|
51
|
+
DashboardComponent.prototype.getOpenTasks = function () {
|
|
52
|
+
var _this = this;
|
|
53
|
+
this.taskService.getTasks().subscribe(function (response) {
|
|
54
|
+
_this.openTasks = response;
|
|
55
|
+
_this.openTasks.map(function (task) {
|
|
56
|
+
task.created = moment(task.created).format('DD MMM YYYY HH:mm');
|
|
57
|
+
});
|
|
58
|
+
_this.checkRouteForTaskId(response);
|
|
59
|
+
_this.loading$.next(false);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
DashboardComponent.prototype.rowOpenTaskClick = function (task) {
|
|
63
|
+
if (!task.endTime) {
|
|
64
|
+
this.taskDetail.openTaskDetails(task);
|
|
65
|
+
}
|
|
66
|
+
};
|
|
67
|
+
DashboardComponent.prototype.checkRouteForTaskId = function (tasks) {
|
|
68
|
+
var _this = this;
|
|
69
|
+
this.route.queryParams.pipe(operators.take(1))
|
|
70
|
+
.subscribe(function (params) {
|
|
71
|
+
var taskId = params === null || params === void 0 ? void 0 : params.taskId;
|
|
72
|
+
var findTaskFromId = tasks.find(function (task) { return task.id === taskId; });
|
|
73
|
+
if (findTaskFromId) {
|
|
74
|
+
_this.rowOpenTaskClick(findTaskFromId);
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
};
|
|
78
|
+
return DashboardComponent;
|
|
79
|
+
}());
|
|
80
|
+
DashboardComponent.decorators = [
|
|
81
|
+
{ type: core.Component, args: [{
|
|
82
|
+
selector: 'valtimo-dashboard',
|
|
83
|
+
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=\"px-3\">\n <div class=\"main-content container-fluid\" *ngIf=\"{loading: loading$ | async} as obs\">\n <h4 class=\"title\">\n {{ 'dashboard.openTasks.title' | translate }}\n <sup *ngIf=\"obs.loading === false\" class=\"ml-1 badge badge-pill badge-primary\">{{ openTasks?.length }}</sup>\n </h4>\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <valtimo-widget>\n <valtimo-list\n [items]=\"openTasks\"\n [fields]=\"openTaskFields\"\n (rowClicked)=\"rowOpenTaskClick($event)\"\n ></valtimo-list>\n </valtimo-widget>\n </ng-container>\n <valtimo-task-detail-modal\n #taskDetail\n (formSubmit)=\"getOpenTasks()\"\n (assignmentOfTaskChanged)=\"getOpenTasks()\"\n ></valtimo-task-detail-modal>\n </div>\n</div>\n\n<ng-template #loading>\n <valtimo-spinner></valtimo-spinner>\n</ng-template>\n",
|
|
84
|
+
styles: [""]
|
|
85
|
+
},] }
|
|
86
|
+
];
|
|
87
|
+
DashboardComponent.ctorParameters = function () { return [
|
|
88
|
+
{ type: router.Router },
|
|
89
|
+
{ type: context.ContextService },
|
|
90
|
+
{ type: task.TaskService },
|
|
91
|
+
{ type: router.ActivatedRoute },
|
|
92
|
+
{ type: core$1.TranslateService }
|
|
93
|
+
]; };
|
|
94
|
+
DashboardComponent.propDecorators = {
|
|
95
|
+
taskDetail: [{ type: core.ViewChild, args: ['taskDetail',] }]
|
|
96
96
|
};
|
|
97
97
|
|
|
98
|
-
/*
|
|
99
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
100
|
-
*
|
|
101
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
102
|
-
* you may not use this file except in compliance with the License.
|
|
103
|
-
* You may obtain a copy of the License at
|
|
104
|
-
*
|
|
105
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
106
|
-
*
|
|
107
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
108
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
109
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
110
|
-
* See the License for the specific language governing permissions and
|
|
111
|
-
* limitations under the License.
|
|
112
|
-
*/
|
|
113
|
-
var ɵ0 = { title: 'Dashboard', roles: [contract.ROLE_USER] };
|
|
114
|
-
var routes = [
|
|
115
|
-
{
|
|
116
|
-
path: '',
|
|
117
|
-
component: DashboardComponent,
|
|
118
|
-
canActivate: [security.AuthGuardService],
|
|
119
|
-
data: ɵ0
|
|
120
|
-
}
|
|
121
|
-
];
|
|
122
|
-
var DashboardRoutingModule = /** @class */ (function () {
|
|
123
|
-
function DashboardRoutingModule() {
|
|
124
|
-
}
|
|
125
|
-
return DashboardRoutingModule;
|
|
126
|
-
}());
|
|
127
|
-
DashboardRoutingModule.decorators = [
|
|
128
|
-
{ type: core.NgModule, args: [{
|
|
129
|
-
declarations: [],
|
|
130
|
-
imports: [
|
|
131
|
-
common.CommonModule,
|
|
132
|
-
router.RouterModule.forChild(routes)
|
|
133
|
-
],
|
|
134
|
-
exports: [router.RouterModule]
|
|
135
|
-
},] }
|
|
98
|
+
/*
|
|
99
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
100
|
+
*
|
|
101
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
102
|
+
* you may not use this file except in compliance with the License.
|
|
103
|
+
* You may obtain a copy of the License at
|
|
104
|
+
*
|
|
105
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
106
|
+
*
|
|
107
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
108
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
109
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
110
|
+
* See the License for the specific language governing permissions and
|
|
111
|
+
* limitations under the License.
|
|
112
|
+
*/
|
|
113
|
+
var ɵ0 = { title: 'Dashboard', roles: [contract.ROLE_USER] };
|
|
114
|
+
var routes = [
|
|
115
|
+
{
|
|
116
|
+
path: '',
|
|
117
|
+
component: DashboardComponent,
|
|
118
|
+
canActivate: [security.AuthGuardService],
|
|
119
|
+
data: ɵ0
|
|
120
|
+
}
|
|
121
|
+
];
|
|
122
|
+
var DashboardRoutingModule = /** @class */ (function () {
|
|
123
|
+
function DashboardRoutingModule() {
|
|
124
|
+
}
|
|
125
|
+
return DashboardRoutingModule;
|
|
126
|
+
}());
|
|
127
|
+
DashboardRoutingModule.decorators = [
|
|
128
|
+
{ type: core.NgModule, args: [{
|
|
129
|
+
declarations: [],
|
|
130
|
+
imports: [
|
|
131
|
+
common.CommonModule,
|
|
132
|
+
router.RouterModule.forChild(routes)
|
|
133
|
+
],
|
|
134
|
+
exports: [router.RouterModule]
|
|
135
|
+
},] }
|
|
136
136
|
];
|
|
137
137
|
|
|
138
|
-
/*
|
|
139
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
140
|
-
*
|
|
141
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
142
|
-
* you may not use this file except in compliance with the License.
|
|
143
|
-
* You may obtain a copy of the License at
|
|
144
|
-
*
|
|
145
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
146
|
-
*
|
|
147
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
148
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
149
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
150
|
-
* See the License for the specific language governing permissions and
|
|
151
|
-
* limitations under the License.
|
|
152
|
-
*/
|
|
153
|
-
// AoT requires an exported function for factories
|
|
154
|
-
function HttpLoaderFactory(httpClient) {
|
|
155
|
-
return new httpLoader.TranslateHttpLoader(httpClient);
|
|
156
|
-
}
|
|
157
|
-
var DashboardModule = /** @class */ (function () {
|
|
158
|
-
function DashboardModule() {
|
|
159
|
-
}
|
|
160
|
-
return DashboardModule;
|
|
161
|
-
}());
|
|
162
|
-
DashboardModule.decorators = [
|
|
163
|
-
{ type: core.NgModule, args: [{
|
|
164
|
-
declarations: [DashboardComponent],
|
|
165
|
-
imports: [
|
|
166
|
-
common.CommonModule,
|
|
167
|
-
DashboardRoutingModule,
|
|
168
|
-
components.WidgetModule,
|
|
169
|
-
components.ListModule,
|
|
170
|
-
components.BpmnJsDiagramModule,
|
|
171
|
-
core$1.TranslateModule.forRoot({
|
|
172
|
-
loader: {
|
|
173
|
-
provide: core$1.TranslateLoader,
|
|
174
|
-
useFactory: HttpLoaderFactory,
|
|
175
|
-
deps: [http.HttpClient]
|
|
176
|
-
}
|
|
177
|
-
}),
|
|
178
|
-
components.AlertModule,
|
|
179
|
-
task.TaskModule,
|
|
180
|
-
components.SpinnerModule
|
|
181
|
-
],
|
|
182
|
-
exports: [DashboardComponent]
|
|
183
|
-
},] }
|
|
138
|
+
/*
|
|
139
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
140
|
+
*
|
|
141
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
142
|
+
* you may not use this file except in compliance with the License.
|
|
143
|
+
* You may obtain a copy of the License at
|
|
144
|
+
*
|
|
145
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
146
|
+
*
|
|
147
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
148
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
149
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
150
|
+
* See the License for the specific language governing permissions and
|
|
151
|
+
* limitations under the License.
|
|
152
|
+
*/
|
|
153
|
+
// AoT requires an exported function for factories
|
|
154
|
+
function HttpLoaderFactory(httpClient) {
|
|
155
|
+
return new httpLoader.TranslateHttpLoader(httpClient);
|
|
156
|
+
}
|
|
157
|
+
var DashboardModule = /** @class */ (function () {
|
|
158
|
+
function DashboardModule() {
|
|
159
|
+
}
|
|
160
|
+
return DashboardModule;
|
|
161
|
+
}());
|
|
162
|
+
DashboardModule.decorators = [
|
|
163
|
+
{ type: core.NgModule, args: [{
|
|
164
|
+
declarations: [DashboardComponent],
|
|
165
|
+
imports: [
|
|
166
|
+
common.CommonModule,
|
|
167
|
+
DashboardRoutingModule,
|
|
168
|
+
components.WidgetModule,
|
|
169
|
+
components.ListModule,
|
|
170
|
+
components.BpmnJsDiagramModule,
|
|
171
|
+
core$1.TranslateModule.forRoot({
|
|
172
|
+
loader: {
|
|
173
|
+
provide: core$1.TranslateLoader,
|
|
174
|
+
useFactory: HttpLoaderFactory,
|
|
175
|
+
deps: [http.HttpClient]
|
|
176
|
+
}
|
|
177
|
+
}),
|
|
178
|
+
components.AlertModule,
|
|
179
|
+
task.TaskModule,
|
|
180
|
+
components.SpinnerModule
|
|
181
|
+
],
|
|
182
|
+
exports: [DashboardComponent]
|
|
183
|
+
},] }
|
|
184
184
|
];
|
|
185
185
|
|
|
186
|
-
/*
|
|
187
|
-
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
188
|
-
*
|
|
189
|
-
* Licensed under EUPL, Version 1.2 (the "License");
|
|
190
|
-
* you may not use this file except in compliance with the License.
|
|
191
|
-
* You may obtain a copy of the License at
|
|
192
|
-
*
|
|
193
|
-
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
194
|
-
*
|
|
195
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
196
|
-
* distributed under the License is distributed on an "AS IS" basis,
|
|
197
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
198
|
-
* See the License for the specific language governing permissions and
|
|
199
|
-
* limitations under the License.
|
|
186
|
+
/*
|
|
187
|
+
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
188
|
+
*
|
|
189
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
190
|
+
* you may not use this file except in compliance with the License.
|
|
191
|
+
* You may obtain a copy of the License at
|
|
192
|
+
*
|
|
193
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
194
|
+
*
|
|
195
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
196
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
197
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
198
|
+
* See the License for the specific language governing permissions and
|
|
199
|
+
* limitations under the License.
|
|
200
200
|
*/
|
|
201
201
|
|
|
202
|
-
/**
|
|
203
|
-
* Generated bundle index. Do not edit.
|
|
202
|
+
/**
|
|
203
|
+
* Generated bundle index. Do not edit.
|
|
204
204
|
*/
|
|
205
205
|
|
|
206
206
|
exports.DashboardComponent = DashboardComponent;
|
|
@@ -1,44 +1,44 @@
|
|
|
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 { CommonModule } from '@angular/common';
|
|
19
|
-
import { AuthGuardService } from '@valtimo/security';
|
|
20
|
-
import { DashboardComponent } from './dashboard.component';
|
|
21
|
-
import { ROLE_USER } from '@valtimo/contract';
|
|
22
|
-
const ɵ0 = { title: 'Dashboard', roles: [ROLE_USER] };
|
|
23
|
-
const routes = [
|
|
24
|
-
{
|
|
25
|
-
path: '',
|
|
26
|
-
component: DashboardComponent,
|
|
27
|
-
canActivate: [AuthGuardService],
|
|
28
|
-
data: ɵ0
|
|
29
|
-
}
|
|
30
|
-
];
|
|
31
|
-
export class DashboardRoutingModule {
|
|
32
|
-
}
|
|
33
|
-
DashboardRoutingModule.decorators = [
|
|
34
|
-
{ type: NgModule, args: [{
|
|
35
|
-
declarations: [],
|
|
36
|
-
imports: [
|
|
37
|
-
CommonModule,
|
|
38
|
-
RouterModule.forChild(routes)
|
|
39
|
-
],
|
|
40
|
-
exports: [RouterModule]
|
|
41
|
-
},] }
|
|
42
|
-
];
|
|
43
|
-
export { ɵ0 };
|
|
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 { CommonModule } from '@angular/common';
|
|
19
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
20
|
+
import { DashboardComponent } from './dashboard.component';
|
|
21
|
+
import { ROLE_USER } from '@valtimo/contract';
|
|
22
|
+
const ɵ0 = { title: 'Dashboard', roles: [ROLE_USER] };
|
|
23
|
+
const routes = [
|
|
24
|
+
{
|
|
25
|
+
path: '',
|
|
26
|
+
component: DashboardComponent,
|
|
27
|
+
canActivate: [AuthGuardService],
|
|
28
|
+
data: ɵ0
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
export class DashboardRoutingModule {
|
|
32
|
+
}
|
|
33
|
+
DashboardRoutingModule.decorators = [
|
|
34
|
+
{ type: NgModule, args: [{
|
|
35
|
+
declarations: [],
|
|
36
|
+
imports: [
|
|
37
|
+
CommonModule,
|
|
38
|
+
RouterModule.forChild(routes)
|
|
39
|
+
],
|
|
40
|
+
exports: [RouterModule]
|
|
41
|
+
},] }
|
|
42
|
+
];
|
|
43
|
+
export { ɵ0 };
|
|
44
44
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLXJvdXRpbmcubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvdmFsdGltby9kYXNoYm9hcmQvc3JjL2xpYi9kYXNoYm9hcmQtcm91dGluZy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0dBY0c7QUFFSCxPQUFPLEVBQUMsUUFBUSxFQUFDLE1BQU0sZUFBZSxDQUFDO0FBQ3ZDLE9BQU8sRUFBQyxZQUFZLEVBQVMsTUFBTSxpQkFBaUIsQ0FBQztBQUNyRCxPQUFPLEVBQUMsWUFBWSxFQUFDLE1BQU0saUJBQWlCLENBQUM7QUFDN0MsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0sbUJBQW1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