@valtimo/dashboard 4.15.3-next-main.14 → 4.16.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-dashboard.umd.js +19 -23
- package/bundles/valtimo-dashboard.umd.js.map +1 -1
- package/bundles/valtimo-dashboard.umd.min.js +1 -1
- package/bundles/valtimo-dashboard.umd.min.js.map +1 -1
- package/esm2015/lib/dashboard-routing.module.js +6 -9
- package/esm2015/lib/dashboard.component.js +10 -11
- package/esm2015/lib/dashboard.module.js +6 -6
- package/esm2015/public_api.js +1 -1
- package/esm2015/valtimo-dashboard.js +1 -1
- package/fesm2015/valtimo-dashboard.js +18 -22
- package/fesm2015/valtimo-dashboard.js.map +1 -1
- package/package.json +1 -1
- package/valtimo-dashboard.metadata.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-translate/core'), require('@valtimo/context'), require('@angular/router'), require('@valtimo/task'), require('moment'), require('rxjs/operators'), require('rxjs'), require('@angular/common'), require('@ngx-translate/http-loader'), require('@valtimo/security'), require('@valtimo/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@valtimo/dashboard', ['exports', '@angular/core', '@ngx-translate/core', '@valtimo/context', '@angular/router', '@valtimo/task', 'moment', 'rxjs/operators', 'rxjs', '@angular/common', '@ngx-translate/http-loader', '@valtimo/security', '@valtimo/
|
|
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.
|
|
5
|
-
}(this, (function (exports, core, core$1, context, router, task, moment_, operators, rxjs, common, httpLoader, security,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@ngx-translate/core'), require('@valtimo/context'), require('@angular/router'), require('@valtimo/task'), require('moment'), require('rxjs/operators'), require('rxjs'), require('@angular/common'), require('@ngx-translate/http-loader'), require('@valtimo/security'), require('@valtimo/config'), require('@valtimo/components'), require('@angular/common/http')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@valtimo/dashboard', ['exports', '@angular/core', '@ngx-translate/core', '@valtimo/context', '@angular/router', '@valtimo/task', 'moment', 'rxjs/operators', 'rxjs', '@angular/common', '@ngx-translate/http-loader', '@valtimo/security', '@valtimo/config', '@valtimo/components', '@angular/common/http'], factory) :
|
|
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.config, global.components, global.ng.common.http));
|
|
5
|
+
}(this, (function (exports, core, core$1, context, router, task, moment_, operators, rxjs, common, httpLoader, security, config, components, http) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*
|
|
8
8
|
* Copyright 2015-2020 Ritense BV, the Netherlands.
|
|
@@ -32,16 +32,16 @@
|
|
|
32
32
|
this.openTaskFields = [
|
|
33
33
|
{
|
|
34
34
|
key: 'created',
|
|
35
|
-
label: 'Created'
|
|
35
|
+
label: 'Created',
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
key: 'name',
|
|
39
|
-
label: 'Name'
|
|
39
|
+
label: 'Name',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
key: 'valtimoAssignee.fullName',
|
|
43
|
-
label: 'Assignee'
|
|
44
|
-
}
|
|
43
|
+
label: 'Assignee',
|
|
44
|
+
},
|
|
45
45
|
];
|
|
46
46
|
this.loading$ = new rxjs.BehaviorSubject(true);
|
|
47
47
|
}
|
|
@@ -66,8 +66,7 @@
|
|
|
66
66
|
};
|
|
67
67
|
DashboardComponent.prototype.checkRouteForTaskId = function (tasks) {
|
|
68
68
|
var _this = this;
|
|
69
|
-
this.route.queryParams.pipe(operators.take(1))
|
|
70
|
-
.subscribe(function (params) {
|
|
69
|
+
this.route.queryParams.pipe(operators.take(1)).subscribe(function (params) {
|
|
71
70
|
var taskId = params === null || params === void 0 ? void 0 : params.taskId;
|
|
72
71
|
var findTaskFromId = tasks.find(function (task) { return task.id === taskId; });
|
|
73
72
|
if (findTaskFromId) {
|
|
@@ -80,7 +79,7 @@
|
|
|
80
79
|
DashboardComponent.decorators = [
|
|
81
80
|
{ type: core.Component, args: [{
|
|
82
81
|
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\">{{
|
|
82
|
+
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\">{{\n openTasks?.length\n }}</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
83
|
styles: [""]
|
|
85
84
|
},] }
|
|
86
85
|
];
|
|
@@ -110,14 +109,14 @@
|
|
|
110
109
|
* See the License for the specific language governing permissions and
|
|
111
110
|
* limitations under the License.
|
|
112
111
|
*/
|
|
113
|
-
var ɵ0 = { title: 'Dashboard', roles: [
|
|
112
|
+
var ɵ0 = { title: 'Dashboard', roles: [config.ROLE_USER] };
|
|
114
113
|
var routes = [
|
|
115
114
|
{
|
|
116
115
|
path: '',
|
|
117
116
|
component: DashboardComponent,
|
|
118
117
|
canActivate: [security.AuthGuardService],
|
|
119
|
-
data: ɵ0
|
|
120
|
-
}
|
|
118
|
+
data: ɵ0,
|
|
119
|
+
},
|
|
121
120
|
];
|
|
122
121
|
var DashboardRoutingModule = /** @class */ (function () {
|
|
123
122
|
function DashboardRoutingModule() {
|
|
@@ -127,11 +126,8 @@
|
|
|
127
126
|
DashboardRoutingModule.decorators = [
|
|
128
127
|
{ type: core.NgModule, args: [{
|
|
129
128
|
declarations: [],
|
|
130
|
-
imports: [
|
|
131
|
-
|
|
132
|
-
router.RouterModule.forChild(routes)
|
|
133
|
-
],
|
|
134
|
-
exports: [router.RouterModule]
|
|
129
|
+
imports: [common.CommonModule, router.RouterModule.forChild(routes)],
|
|
130
|
+
exports: [router.RouterModule],
|
|
135
131
|
},] }
|
|
136
132
|
];
|
|
137
133
|
|
|
@@ -172,14 +168,14 @@
|
|
|
172
168
|
loader: {
|
|
173
169
|
provide: core$1.TranslateLoader,
|
|
174
170
|
useFactory: HttpLoaderFactory,
|
|
175
|
-
deps: [http.HttpClient]
|
|
176
|
-
}
|
|
171
|
+
deps: [http.HttpClient],
|
|
172
|
+
},
|
|
177
173
|
}),
|
|
178
174
|
components.AlertModule,
|
|
179
175
|
task.TaskModule,
|
|
180
|
-
components.SpinnerModule
|
|
176
|
+
components.SpinnerModule,
|
|
181
177
|
],
|
|
182
|
-
exports: [DashboardComponent]
|
|
178
|
+
exports: [DashboardComponent],
|
|
183
179
|
},] }
|
|
184
180
|
];
|
|
185
181
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-dashboard.umd.js","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts","../../../../projects/valtimo/dashboard/src/public_api.ts","../../../../projects/valtimo/dashboard/src/valtimo-dashboard.ts"],"sourcesContent":["/*\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\nimport {Component, OnInit, ViewChild} from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ContextService } from '@valtimo/context';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport { TaskDetailModalComponent, TaskService } from '@valtimo/task';\nimport * as moment_ from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/contract';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\nconst moment = moment_;\nmoment.locale(localStorage.getItem('langKey') || '');\nmoment.defaultFormat = 'DD MMM YYYY HH:mm';\n\n@Component({\n selector: 'valtimo-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.css']\n})\nexport class DashboardComponent implements OnInit {\n public processDefinitions: Array<any>;\n public openTasks: Array<any>;\n public openTaskFields = [\n {\n key: 'created',\n label: 'Created'\n },\n {\n key: 'name',\n label: 'Name'\n },\n {\n key: 'valtimoAssignee.fullName',\n label: 'Assignee'\n }\n ];\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n\n loading$ = new BehaviorSubject<boolean>(true);\n\n constructor(\n private router: Router,\n private contextService: ContextService,\n private taskService: TaskService,\n private readonly route: ActivatedRoute,\n public translate: TranslateService,\n ) {\n }\n\n ngOnInit() {\n this.getOpenTasks();\n }\n\n public getOpenTasks() {\n this.taskService.getTasks().subscribe((response) => {\n this.openTasks = response;\n this.openTasks.map((task) => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n });\n this.checkRouteForTaskId(response);\n this.loading$.next(false);\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n }\n }\n\n private checkRouteForTaskId(tasks: Array<Task>): void {\n this.route.queryParams.pipe(take(1))\n .subscribe((params) => {\n const taskId = params?.taskId;\n const findTaskFromId = tasks.find((task) => task.id === taskId);\n\n if (findTaskFromId) {\n this.rowOpenTaskClick(findTaskFromId);\n }\n });\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DashboardComponent} from './dashboard.component';\nimport {ROLE_USER} from '@valtimo/contract';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Dashboard', roles: [ROLE_USER]}\n }\n];\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule,\n RouterModule.forChild(routes)\n ],\n exports: [RouterModule]\n})\nexport class DashboardRoutingModule {\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {TranslateHttpLoader} from '@ngx-translate/http-loader';\nimport {DashboardComponent} from './dashboard.component';\nimport {DashboardRoutingModule} from './dashboard-routing.module';\nimport {AlertModule, BpmnJsDiagramModule, ListModule, SpinnerModule, WidgetModule} from '@valtimo/components';\nimport {HttpClient} from '@angular/common/http';\nimport {TaskModule} from '@valtimo/task';\n\n// AoT requires an exported function for factories\nexport function HttpLoaderFactory(httpClient: HttpClient) {\n return new TranslateHttpLoader(httpClient);\n}\n\n@NgModule({\n declarations: [DashboardComponent],\n imports: [\n CommonModule,\n DashboardRoutingModule,\n WidgetModule,\n ListModule,\n BpmnJsDiagramModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient]\n }\n }),\n AlertModule,\n TaskModule,\n SpinnerModule\n ],\n exports: [DashboardComponent]\n})\nexport class DashboardModule {\n}\n","/*\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/*\n * Public API Surface of dashboard\n */\n\nexport * from './lib/dashboard.component';\nexport * from './lib/dashboard.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {DashboardRoutingModule as ɵa} from './lib/dashboard-routing.module';"],"names":["BehaviorSubject","take","Component","Router","ContextService","TaskService","ActivatedRoute","TranslateService","ViewChild","ROLE_USER","AuthGuardService","NgModule","CommonModule","RouterModule","TranslateHttpLoader","WidgetModule","ListModule","BpmnJsDiagramModule","TranslateModule","TranslateLoader","HttpClient","AlertModule","TaskModule","SpinnerModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;IA2BA,IAAM,MAAM,GAAG,OAAO,CAAC;IACvB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,aAAa,GAAG,mBAAmB,CAAC;;QA4BzC,4BACU,MAAc,EACd,cAA8B,EAC9B,WAAwB,EACf,KAAqB,EAC/B,SAA2B;YAJ1B,WAAM,GAAN,MAAM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sB;wBACtBG,uBAAY;wBACZC,qBAAU;wBACVC,8BAAmB;wBACnBC,sBAAe,CAAC,OAAO,CAAC;4BACpB,MAAM,EAAE;gCACJ,OAAO,EAAEC,sBAAe;gCACxB,UAAU,EAAE,iBAAiB;gCAC7B,IAAI,EAAE,CAACC,eAAU,CAAC;6BACrB;yBACJ,CAAC;wBACFC,sBAAW;wBACXC,eAAU;wBACVC,wBAAa;qBAChB;oBACH,OAAO,EAAE,CAAC,kBAAkB,CAAC;iBAC9B;;;ICnDD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-dashboard.umd.js","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts","../../../../projects/valtimo/dashboard/src/public_api.ts","../../../../projects/valtimo/dashboard/src/valtimo-dashboard.ts"],"sourcesContent":["/*\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\nimport {Component, OnInit, ViewChild} from '@angular/core';\nimport {TranslateService} from '@ngx-translate/core';\nimport {ContextService} from '@valtimo/context';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {TaskDetailModalComponent, TaskService} from '@valtimo/task';\nimport * as moment_ from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/task';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\nconst moment = moment_;\nmoment.locale(localStorage.getItem('langKey') || '');\nmoment.defaultFormat = 'DD MMM YYYY HH:mm';\n\n@Component({\n selector: 'valtimo-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.css'],\n})\nexport class DashboardComponent implements OnInit {\n public processDefinitions: Array<any>;\n public openTasks: Array<any>;\n public openTaskFields = [\n {\n key: 'created',\n label: 'Created',\n },\n {\n key: 'name',\n label: 'Name',\n },\n {\n key: 'valtimoAssignee.fullName',\n label: 'Assignee',\n },\n ];\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n\n loading$ = new BehaviorSubject<boolean>(true);\n\n constructor(\n private router: Router,\n private contextService: ContextService,\n private taskService: TaskService,\n private readonly route: ActivatedRoute,\n public translate: TranslateService\n ) {}\n\n ngOnInit() {\n this.getOpenTasks();\n }\n\n public getOpenTasks() {\n this.taskService.getTasks().subscribe(response => {\n this.openTasks = response;\n this.openTasks.map(task => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n });\n this.checkRouteForTaskId(response);\n this.loading$.next(false);\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n }\n }\n\n private checkRouteForTaskId(tasks: Array<Task>): void {\n this.route.queryParams.pipe(take(1)).subscribe(params => {\n const taskId = params?.taskId;\n const findTaskFromId = tasks.find(task => task.id === taskId);\n\n if (findTaskFromId) {\n this.rowOpenTaskClick(findTaskFromId);\n }\n });\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DashboardComponent} from './dashboard.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Dashboard', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardRoutingModule {}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {TranslateHttpLoader} from '@ngx-translate/http-loader';\nimport {DashboardComponent} from './dashboard.component';\nimport {DashboardRoutingModule} from './dashboard-routing.module';\nimport {\n AlertModule,\n BpmnJsDiagramModule,\n ListModule,\n SpinnerModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {HttpClient} from '@angular/common/http';\nimport {TaskModule} from '@valtimo/task';\n\n// AoT requires an exported function for factories\nexport function HttpLoaderFactory(httpClient: HttpClient) {\n return new TranslateHttpLoader(httpClient);\n}\n\n@NgModule({\n declarations: [DashboardComponent],\n imports: [\n CommonModule,\n DashboardRoutingModule,\n WidgetModule,\n ListModule,\n BpmnJsDiagramModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient],\n },\n }),\n AlertModule,\n TaskModule,\n SpinnerModule,\n ],\n exports: [DashboardComponent],\n})\nexport class DashboardModule {}\n","/*\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/*\n * Public API Surface of dashboard\n */\n\nexport * from './lib/dashboard.component';\nexport * from './lib/dashboard.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {DashboardRoutingModule as ɵa} from './lib/dashboard-routing.module';"],"names":["BehaviorSubject","take","Component","Router","ContextService","TaskService","ActivatedRoute","TranslateService","ViewChild","ROLE_USER","AuthGuardService","NgModule","CommonModule","RouterModule","TranslateHttpLoader","WidgetModule","ListModule","BpmnJsDiagramModule","TranslateModule","TranslateLoader","HttpClient","AlertModule","TaskModule","SpinnerModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;;IA2BA,IAAM,MAAM,GAAG,OAAO,CAAC;IACvB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;IACrD,MAAM,CAAC,aAAa,GAAG,mBAAmB,CAAC;;QA4BzC,4BACU,MAAc,EACd,cAA8B,EAC9B,WAAwB,EACf,KAAqB,EAC/B,SAA2B;YAJ1B,WAAM,GAAN,MAAM,CAAQ;YACd,mBAAc,GAAd,cAAc,CAAgB;YAC9B,gBAAW,GAAX,WAAW,CAAa;YACf,UAAK,GAAL,KAAK,CAAgB;YAC/B,cAAS,GAAT,SAAS,CAAkB;YAvB7B,mBAAc,GAAG;gBACtB;oBACE,GAAG,EAAE,SAAS;oBACd,KAAK,EAAE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,CAAC;wBACFC,sBAAW;wBACXC,eAAU;wBACVC,wBAAa;qBACd;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;iBAC9B;;;ICzDD;;;;;;;;;;;;;;;;ICAA;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@ngx-translate/core"),require("@valtimo/context"),require("@angular/router"),require("@valtimo/task"),require("moment"),require("rxjs/operators"),require("rxjs"),require("@angular/common"),require("@ngx-translate/http-loader"),require("@valtimo/security"),require("@valtimo/
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@angular/core"),require("@ngx-translate/core"),require("@valtimo/context"),require("@angular/router"),require("@valtimo/task"),require("moment"),require("rxjs/operators"),require("rxjs"),require("@angular/common"),require("@ngx-translate/http-loader"),require("@valtimo/security"),require("@valtimo/config"),require("@valtimo/components"),require("@angular/common/http")):"function"==typeof define&&define.amd?define("@valtimo/dashboard",["exports","@angular/core","@ngx-translate/core","@valtimo/context","@angular/router","@valtimo/task","moment","rxjs/operators","rxjs","@angular/common","@ngx-translate/http-loader","@valtimo/security","@valtimo/config","@valtimo/components","@angular/common/http"],t):t(((e=e||self).valtimo=e.valtimo||{},e.valtimo.dashboard={}),e.ng.core,e.core$1,e.context,e.ng.router,e.task,e.moment,e.rxjs.operators,e.rxjs,e.ng.common,e.httpLoader,e.security,e.config,e.components,e.ng.common.http)}(this,(function(e,t,n,o,a,r,i,s,l,c,u,d,p,m,g){"use strict";var h=i;h.locale(localStorage.getItem("langKey")||""),h.defaultFormat="DD MMM YYYY HH:mm";var v=function(){function e(e,t,n,o,a){this.router=e,this.contextService=t,this.taskService=n,this.route=o,this.translate=a,this.openTaskFields=[{key:"created",label:"Created"},{key:"name",label:"Name"},{key:"valtimoAssignee.fullName",label:"Assignee"}],this.loading$=new l.BehaviorSubject(!0)}return e.prototype.ngOnInit=function(){this.getOpenTasks()},e.prototype.getOpenTasks=function(){var e=this;this.taskService.getTasks().subscribe((function(t){e.openTasks=t,e.openTasks.map((function(e){e.created=h(e.created).format("DD MMM YYYY HH:mm")})),e.checkRouteForTaskId(t),e.loading$.next(!1)}))},e.prototype.rowOpenTaskClick=function(e){e.endTime||this.taskDetail.openTaskDetails(e)},e.prototype.checkRouteForTaskId=function(e){var t=this;this.route.queryParams.pipe(s.take(1)).subscribe((function(n){var o=null==n?void 0:n.taskId,a=e.find((function(e){return e.id===o}));a&&t.rowOpenTaskClick(a)}))},e}();v.decorators=[{type:t.Component,args:[{selector:"valtimo-dashboard",template:'\x3c!--\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 --\x3e\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">{{\n openTasks?.length\n }}</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',styles:[""]}]}],v.ctorParameters=function(){return[{type:a.Router},{type:o.ContextService},{type:r.TaskService},{type:a.ActivatedRoute},{type:n.TranslateService}]},v.propDecorators={taskDetail:[{type:t.ViewChild,args:["taskDetail"]}]};var f={title:"Dashboard",roles:[p.ROLE_USER]},k=[{path:"",component:v,canActivate:[d.AuthGuardService],data:f}],y=function(){};function b(e){return new u.TranslateHttpLoader(e)}y.decorators=[{type:t.NgModule,args:[{declarations:[],imports:[c.CommonModule,a.RouterModule.forChild(k)],exports:[a.RouterModule]}]}];var T=function(){};T.decorators=[{type:t.NgModule,args:[{declarations:[v],imports:[c.CommonModule,y,m.WidgetModule,m.ListModule,m.BpmnJsDiagramModule,n.TranslateModule.forRoot({loader:{provide:n.TranslateLoader,useFactory:b,deps:[g.HttpClient]}}),m.AlertModule,r.TaskModule,m.SpinnerModule],exports:[v]}]}],e.DashboardComponent=v,e.DashboardModule=T,e.HttpLoaderFactory=b,e.ɵa=y,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
2
2
|
//# sourceMappingURL=valtimo-dashboard.umd.min.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts"],"names":["moment","moment_","locale","localStorage","getItem","defaultFormat","DashboardComponent","router","contextService","taskService","route","translate","this","openTaskFields","key","label","loading$","BehaviorSubject","prototype","ngOnInit","getOpenTasks","_this","getTasks","subscribe","response","openTasks","map","task","created","format","checkRouteForTaskId","next","rowOpenTaskClick","endTime","taskDetail","openTaskDetails","tasks","queryParams","pipe","take","params","taskId","findTaskFromId","find","id","Component","args","selector","template","Router","ContextService","TaskService","ActivatedRoute","TranslateService","ViewChild","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","
|
|
1
|
+
{"version":3,"sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts"],"names":["moment","moment_","locale","localStorage","getItem","defaultFormat","DashboardComponent","router","contextService","taskService","route","translate","this","openTaskFields","key","label","loading$","BehaviorSubject","prototype","ngOnInit","getOpenTasks","_this","getTasks","subscribe","response","openTasks","map","task","created","format","checkRouteForTaskId","next","rowOpenTaskClick","endTime","taskDetail","openTaskDetails","tasks","queryParams","pipe","take","params","taskId","findTaskFromId","find","id","Component","args","selector","template","Router","ContextService","TaskService","ActivatedRoute","TranslateService","ViewChild","title","roles","ROLE_USER","routes","path","component","canActivate","AuthGuardService","data","HttpLoaderFactory","httpClient","TranslateHttpLoader","NgModule","declarations","imports","CommonModule","RouterModule","forChild","exports","DashboardRoutingModule","WidgetModule","ListModule","BpmnJsDiagramModule","TranslateModule","forRoot","loader","provide","TranslateLoader","useFactory","deps","HttpClient","AlertModule","TaskModule","SpinnerModule"],"mappings":"gjCA2BA,IAAMA,EAASC,EACfD,EAAOE,OAAOC,aAAaC,QAAQ,YAAc,IACjDJ,EAAOK,cAAgB,qCA4BrB,SAAAC,EACUC,EACAC,EACAC,EACSC,EACVC,GAJCC,KAAAL,OAAAA,EACAK,KAAAJ,eAAAA,EACAI,KAAAH,YAAAA,EACSG,KAAAF,MAAAA,EACVE,KAAAD,UAAAA,EAvBFC,KAAAC,eAAiB,CACtB,CACEC,IAAK,UACLC,MAAO,WAET,CACED,IAAK,OACLC,MAAO,QAET,CACED,IAAK,2BACLC,MAAO,aAKXH,KAAAI,SAAW,IAAIC,EAAAA,iBAAyB,UAUxCX,EAAAY,UAAAC,SAAA,WACEP,KAAKQ,gBAGAd,EAAAY,UAAAE,aAAA,WAAA,IAAAC,EAAAT,KACLA,KAAKH,YAAYa,WAAWC,WAAU,SAAAC,GACpCH,EAAKI,UAAYD,EACjBH,EAAKI,UAAUC,KAAI,SAAAC,GACjBA,EAAKC,QAAU5B,EAAO2B,E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f,QAAS,CAACnE","sourcesContent":["/*\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\nimport {Component, OnInit, ViewChild} from '@angular/core';\nimport {TranslateService} from '@ngx-translate/core';\nimport {ContextService} from '@valtimo/context';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {TaskDetailModalComponent, TaskService} from '@valtimo/task';\nimport * as moment_ from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/task';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\nconst moment = moment_;\nmoment.locale(localStorage.getItem('langKey') || '');\nmoment.defaultFormat = 'DD MMM YYYY HH:mm';\n\n@Component({\n selector: 'valtimo-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.css'],\n})\nexport class DashboardComponent implements OnInit {\n public processDefinitions: Array<any>;\n public openTasks: Array<any>;\n public openTaskFields = [\n {\n key: 'created',\n label: 'Created',\n },\n {\n key: 'name',\n label: 'Name',\n },\n {\n key: 'valtimoAssignee.fullName',\n label: 'Assignee',\n },\n ];\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n\n loading$ = new BehaviorSubject<boolean>(true);\n\n constructor(\n private router: Router,\n private contextService: ContextService,\n private taskService: TaskService,\n private readonly route: ActivatedRoute,\n public translate: TranslateService\n ) {}\n\n ngOnInit() {\n this.getOpenTasks();\n }\n\n public getOpenTasks() {\n this.taskService.getTasks().subscribe(response => {\n this.openTasks = response;\n this.openTasks.map(task => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n });\n this.checkRouteForTaskId(response);\n this.loading$.next(false);\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n }\n }\n\n private checkRouteForTaskId(tasks: Array<Task>): void {\n this.route.queryParams.pipe(take(1)).subscribe(params => {\n const taskId = params?.taskId;\n const findTaskFromId = tasks.find(task => task.id === taskId);\n\n if (findTaskFromId) {\n this.rowOpenTaskClick(findTaskFromId);\n }\n });\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DashboardComponent} from './dashboard.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Dashboard', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardRoutingModule {}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {TranslateHttpLoader} from '@ngx-translate/http-loader';\nimport {DashboardComponent} from './dashboard.component';\nimport {DashboardRoutingModule} from './dashboard-routing.module';\nimport {\n AlertModule,\n BpmnJsDiagramModule,\n ListModule,\n SpinnerModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {HttpClient} from '@angular/common/http';\nimport {TaskModule} from '@valtimo/task';\n\n// AoT requires an exported function for factories\nexport function HttpLoaderFactory(httpClient: HttpClient) {\n return new TranslateHttpLoader(httpClient);\n}\n\n@NgModule({\n declarations: [DashboardComponent],\n imports: [\n CommonModule,\n DashboardRoutingModule,\n WidgetModule,\n ListModule,\n BpmnJsDiagramModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient],\n },\n }),\n AlertModule,\n TaskModule,\n SpinnerModule,\n ],\n exports: [DashboardComponent],\n})\nexport class DashboardModule {}\n"]}
|
|
@@ -18,27 +18,24 @@ import { RouterModule } from '@angular/router';
|
|
|
18
18
|
import { CommonModule } from '@angular/common';
|
|
19
19
|
import { AuthGuardService } from '@valtimo/security';
|
|
20
20
|
import { DashboardComponent } from './dashboard.component';
|
|
21
|
-
import { ROLE_USER } from '@valtimo/
|
|
21
|
+
import { ROLE_USER } from '@valtimo/config';
|
|
22
22
|
const ɵ0 = { title: 'Dashboard', roles: [ROLE_USER] };
|
|
23
23
|
const routes = [
|
|
24
24
|
{
|
|
25
25
|
path: '',
|
|
26
26
|
component: DashboardComponent,
|
|
27
27
|
canActivate: [AuthGuardService],
|
|
28
|
-
data: ɵ0
|
|
29
|
-
}
|
|
28
|
+
data: ɵ0,
|
|
29
|
+
},
|
|
30
30
|
];
|
|
31
31
|
export class DashboardRoutingModule {
|
|
32
32
|
}
|
|
33
33
|
DashboardRoutingModule.decorators = [
|
|
34
34
|
{ type: NgModule, args: [{
|
|
35
35
|
declarations: [],
|
|
36
|
-
imports: [
|
|
37
|
-
|
|
38
|
-
RouterModule.forChild(routes)
|
|
39
|
-
],
|
|
40
|
-
exports: [RouterModule]
|
|
36
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
37
|
+
exports: [RouterModule],
|
|
41
38
|
},] }
|
|
42
39
|
];
|
|
43
40
|
export { ɵ0 };
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLXJvdXRpbmcubW9kdWxlLmpzIiwic291cmNlUm9vdCI6Ii90bXAvamVua2lucy00YzNiYjc3MC93b3Jrc3BhY2UvVmFsdGltb18tX0FuZ3VsYXJfTGlicmFyaWVzX21haW4vcHJvamVjdHMvdmFsdGltby9kYXNoYm9hcmQvc3JjLyIsInNvdXJjZXMiOlsibGliL2Rhc2hib2FyZC1yb3V0aW5nLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7Ozs7Ozs7Ozs7Ozs7R0FjRztBQUVILE9BQU8sRUFBQyxRQUFRLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDdkMsT0FBTyxFQUFDLFlBQVksRUFBUyxNQUFNLGlCQUFpQixDQUFDO0FBQ3JELE9BQU8sRUFBQyxZQUFZLEVBQUMsTUFBTSxpQkFBaUIsQ0FBQztBQUM3QyxPQUFPLEVBQUMsZ0JBQWdCLEVBQUMsTUFBTSxtQkFBbUIsQ0FBQztBQUNuRCxPQUFPLEVBQUMsa0JBQWtCLEVBQUMsTUFBTSx1QkFBdUIsQ0FBQztBQUN6RCxPQUFPLEVBQUMsU0FBUyxFQUFDLE1BQU0saUJBQWlCLENBQUM7V0FPaEMsRUFBQyxLQUFLLEVBQUUsV0FBVyxFQUFFLEtBQUssRUFBRSxDQUFDLFNBQ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2hib2FyZFJvdXRpbmdNb2R1bGUge31cbiJdfQ==
|
|
@@ -34,16 +34,16 @@ export class DashboardComponent {
|
|
|
34
34
|
this.openTaskFields = [
|
|
35
35
|
{
|
|
36
36
|
key: 'created',
|
|
37
|
-
label: 'Created'
|
|
37
|
+
label: 'Created',
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: 'name',
|
|
41
|
-
label: 'Name'
|
|
41
|
+
label: 'Name',
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
key: 'valtimoAssignee.fullName',
|
|
45
|
-
label: 'Assignee'
|
|
46
|
-
}
|
|
45
|
+
label: 'Assignee',
|
|
46
|
+
},
|
|
47
47
|
];
|
|
48
48
|
this.loading$ = new BehaviorSubject(true);
|
|
49
49
|
}
|
|
@@ -51,9 +51,9 @@ export class DashboardComponent {
|
|
|
51
51
|
this.getOpenTasks();
|
|
52
52
|
}
|
|
53
53
|
getOpenTasks() {
|
|
54
|
-
this.taskService.getTasks().subscribe(
|
|
54
|
+
this.taskService.getTasks().subscribe(response => {
|
|
55
55
|
this.openTasks = response;
|
|
56
|
-
this.openTasks.map(
|
|
56
|
+
this.openTasks.map(task => {
|
|
57
57
|
task.created = moment(task.created).format('DD MMM YYYY HH:mm');
|
|
58
58
|
});
|
|
59
59
|
this.checkRouteForTaskId(response);
|
|
@@ -66,10 +66,9 @@ export class DashboardComponent {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
checkRouteForTaskId(tasks) {
|
|
69
|
-
this.route.queryParams.pipe(take(1))
|
|
70
|
-
.subscribe((params) => {
|
|
69
|
+
this.route.queryParams.pipe(take(1)).subscribe(params => {
|
|
71
70
|
const taskId = params === null || params === void 0 ? void 0 : params.taskId;
|
|
72
|
-
const findTaskFromId = tasks.find(
|
|
71
|
+
const findTaskFromId = tasks.find(task => task.id === taskId);
|
|
73
72
|
if (findTaskFromId) {
|
|
74
73
|
this.rowOpenTaskClick(findTaskFromId);
|
|
75
74
|
}
|
|
@@ -79,7 +78,7 @@ export class DashboardComponent {
|
|
|
79
78
|
DashboardComponent.decorators = [
|
|
80
79
|
{ type: Component, args: [{
|
|
81
80
|
selector: 'valtimo-dashboard',
|
|
82
|
-
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\">{{
|
|
81
|
+
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\">{{\n openTasks?.length\n }}</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",
|
|
83
82
|
styles: [""]
|
|
84
83
|
},] }
|
|
85
84
|
];
|
|
@@ -93,4 +92,4 @@ DashboardComponent.ctorParameters = () => [
|
|
|
93
92
|
DashboardComponent.propDecorators = {
|
|
94
93
|
taskDetail: [{ type: ViewChild, args: ['taskDetail',] }]
|
|
95
94
|
};
|
|
96
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
95
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZGFzaGJvYXJkL3NyYy8iLCJzb3VyY2VzIjpbImxpYi9kYXNoYm9hcmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztHQWNHO0FBRUgsT0FBTyxFQUFDLFNBQVMsRUFBVSxTQUFTLEVBQUMsTUFBTSxlQUFlLENBQUM7QUFDM0QsT0FBTyxFQUFDLGdCQUFnQixFQUFDLE1BQU0scUJBQXFCLENBQUM7QUFDckQsT0FBTyxFQUFDLGNBQWMsRUFBQyxNQUFNLGtCQUFrQixDQUFDO0FBQ2hELE9BQU8sRUFBQyxjQUFjLEVBQUUsTUFBTSxFQUFDLE1BQ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LnJvd09wZW5UYXNrQ2xpY2soZmluZFRhc2tGcm9tSWQpO1xuICAgICAgfVxuICAgIH0pO1xuICB9XG59XG4iXX0=
|
|
@@ -19,7 +19,7 @@ import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
|
|
19
19
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
20
20
|
import { DashboardComponent } from './dashboard.component';
|
|
21
21
|
import { DashboardRoutingModule } from './dashboard-routing.module';
|
|
22
|
-
import { AlertModule, BpmnJsDiagramModule, ListModule, SpinnerModule, WidgetModule } from '@valtimo/components';
|
|
22
|
+
import { AlertModule, BpmnJsDiagramModule, ListModule, SpinnerModule, WidgetModule, } from '@valtimo/components';
|
|
23
23
|
import { HttpClient } from '@angular/common/http';
|
|
24
24
|
import { TaskModule } from '@valtimo/task';
|
|
25
25
|
// AoT requires an exported function for factories
|
|
@@ -41,14 +41,14 @@ DashboardModule.decorators = [
|
|
|
41
41
|
loader: {
|
|
42
42
|
provide: TranslateLoader,
|
|
43
43
|
useFactory: HttpLoaderFactory,
|
|
44
|
-
deps: [HttpClient]
|
|
45
|
-
}
|
|
44
|
+
deps: [HttpClient],
|
|
45
|
+
},
|
|
46
46
|
}),
|
|
47
47
|
AlertModule,
|
|
48
48
|
TaskModule,
|
|
49
|
-
SpinnerModule
|
|
49
|
+
SpinnerModule,
|
|
50
50
|
],
|
|
51
|
-
exports: [DashboardComponent]
|
|
51
|
+
exports: [DashboardComponent],
|
|
52
52
|
},] }
|
|
53
53
|
];
|
|
54
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZGFzaGJvYXJkLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZGF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zbGF0ZUh0dHBMb2FkZXIoaHR0cENsaWVudCk7XG59XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Rhc2hib2FyZENvbXBvbmVudF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgRGFzaGJvYXJkUm91dGluZ01vZHVsZSxcbiAgICBXaWRnZXRNb2R1bGUsXG4gICAgTGlzdE1vZHVsZSxcbiAgICBCcG1uSnNEaWFncmFtTW9kdWxlLFxuICAgIFRyYW5zbGF0ZU1vZHVsZS5mb3JSb290KHtcbiAgICAgIGxvYWRlcjoge1xuICAgICAgICBwcm92aWRlOiBUcmFuc2xhdGVMb2FkZXIsXG4gICAgICAgIHVzZUZhY3Rvcnk6IEh0dHBMb2FkZXJGYWN0b3J5LFxuICAgICAgICBkZXBzOiBbSHR0cENsaWVudF0sXG4gICAgICB9LFxuICAgIH0pLFxuICAgIEFsZXJ0TW9kdWxlLFxuICAgIFRhc2tNb2R1bGUsXG4gICAgU3Bpbm5lck1vZHVsZSxcbiAgXSxcbiAgZXhwb3J0czogW0Rhc2hib2FyZENvbXBvbmVudF0sXG59KVxuZXhwb3J0IGNsYXNzIERhc2hib2FyZE1vZHVsZSB7fVxuIl19
|
package/esm2015/public_api.js
CHANGED
|
@@ -18,4 +18,4 @@
|
|
|
18
18
|
*/
|
|
19
19
|
export * from './lib/dashboard.component';
|
|
20
20
|
export * from './lib/dashboard.module';
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIvdG1wL2plbmtpbnMtNGMzYmI3NzAvd29ya3NwYWNlL1ZhbHRpbW9fLV9Bbmd1bGFyX0xpYnJhcmllc19tYWluL3Byb2plY3RzL3ZhbHRpbW8vZGFzaGJvYXJkL3NyYy8iLCJzb3VyY2VzIjpbInB1Ymx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1cmZhY2Ugb2YgZGFzaGJvYXJkXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvZGFzaGJvYXJkLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xpYi9kYXNoYm9hcmQubW9kdWxlJztcbiJdfQ==
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './public_api';
|
|
5
5
|
export { DashboardRoutingModule as ɵa } from './lib/dashboard-routing.module';
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
6
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmFsdGltby1kYXNoYm9hcmQuanMiLCJzb3VyY2VSb290IjoiL3RtcC9qZW5raW5zLTRjM2JiNzcwL3dvcmtzcGFjZS9WYWx0aW1vXy1fQW5ndWxhcl9MaWJyYXJpZXNfbWFpbi9wcm9qZWN0cy92YWx0aW1vL2Rhc2hib2FyZC9zcmMvIiwic291cmNlcyI6WyJ2YWx0aW1vLWRhc2hib2FyZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsY0FBYyxDQUFDO0FBRTdCLE9BQU8sRUFBQyxzQkFBc0IsSUFBSSxFQUFFLEVBQUMsTUFBTSxnQ0FBZ0MsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbIi8qKlxuICogR2VuZXJhdGVkIGJ1bmRsZSBpbmRleC4gRG8gbm90IGVkaXQuXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9wdWJsaWNfYXBpJztcblxuZXhwb3J0IHtEYXNoYm9hcmRSb3V0aW5nTW9kdWxlIGFzIMm1YX0gZnJvbSAnLi9saWIvZGFzaGJvYXJkLXJvdXRpbmcubW9kdWxlJzsiXX0=
|
|
@@ -9,7 +9,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
10
|
import { TranslateHttpLoader } from '@ngx-translate/http-loader';
|
|
11
11
|
import { AuthGuardService } from '@valtimo/security';
|
|
12
|
-
import { ROLE_USER } from '@valtimo/
|
|
12
|
+
import { ROLE_USER } from '@valtimo/config';
|
|
13
13
|
import { WidgetModule, ListModule, BpmnJsDiagramModule, AlertModule, SpinnerModule } from '@valtimo/components';
|
|
14
14
|
import { HttpClient } from '@angular/common/http';
|
|
15
15
|
|
|
@@ -41,16 +41,16 @@ class DashboardComponent {
|
|
|
41
41
|
this.openTaskFields = [
|
|
42
42
|
{
|
|
43
43
|
key: 'created',
|
|
44
|
-
label: 'Created'
|
|
44
|
+
label: 'Created',
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
key: 'name',
|
|
48
|
-
label: 'Name'
|
|
48
|
+
label: 'Name',
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
key: 'valtimoAssignee.fullName',
|
|
52
|
-
label: 'Assignee'
|
|
53
|
-
}
|
|
52
|
+
label: 'Assignee',
|
|
53
|
+
},
|
|
54
54
|
];
|
|
55
55
|
this.loading$ = new BehaviorSubject(true);
|
|
56
56
|
}
|
|
@@ -58,9 +58,9 @@ class DashboardComponent {
|
|
|
58
58
|
this.getOpenTasks();
|
|
59
59
|
}
|
|
60
60
|
getOpenTasks() {
|
|
61
|
-
this.taskService.getTasks().subscribe(
|
|
61
|
+
this.taskService.getTasks().subscribe(response => {
|
|
62
62
|
this.openTasks = response;
|
|
63
|
-
this.openTasks.map(
|
|
63
|
+
this.openTasks.map(task => {
|
|
64
64
|
task.created = moment(task.created).format('DD MMM YYYY HH:mm');
|
|
65
65
|
});
|
|
66
66
|
this.checkRouteForTaskId(response);
|
|
@@ -73,10 +73,9 @@ class DashboardComponent {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
checkRouteForTaskId(tasks) {
|
|
76
|
-
this.route.queryParams.pipe(take(1))
|
|
77
|
-
.subscribe((params) => {
|
|
76
|
+
this.route.queryParams.pipe(take(1)).subscribe(params => {
|
|
78
77
|
const taskId = params === null || params === void 0 ? void 0 : params.taskId;
|
|
79
|
-
const findTaskFromId = tasks.find(
|
|
78
|
+
const findTaskFromId = tasks.find(task => task.id === taskId);
|
|
80
79
|
if (findTaskFromId) {
|
|
81
80
|
this.rowOpenTaskClick(findTaskFromId);
|
|
82
81
|
}
|
|
@@ -86,7 +85,7 @@ class DashboardComponent {
|
|
|
86
85
|
DashboardComponent.decorators = [
|
|
87
86
|
{ type: Component, args: [{
|
|
88
87
|
selector: 'valtimo-dashboard',
|
|
89
|
-
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\">{{
|
|
88
|
+
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\">{{\n openTasks?.length\n }}</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",
|
|
90
89
|
styles: [""]
|
|
91
90
|
},] }
|
|
92
91
|
];
|
|
@@ -122,19 +121,16 @@ const routes = [
|
|
|
122
121
|
path: '',
|
|
123
122
|
component: DashboardComponent,
|
|
124
123
|
canActivate: [AuthGuardService],
|
|
125
|
-
data: ɵ0
|
|
126
|
-
}
|
|
124
|
+
data: ɵ0,
|
|
125
|
+
},
|
|
127
126
|
];
|
|
128
127
|
class DashboardRoutingModule {
|
|
129
128
|
}
|
|
130
129
|
DashboardRoutingModule.decorators = [
|
|
131
130
|
{ type: NgModule, args: [{
|
|
132
131
|
declarations: [],
|
|
133
|
-
imports: [
|
|
134
|
-
|
|
135
|
-
RouterModule.forChild(routes)
|
|
136
|
-
],
|
|
137
|
-
exports: [RouterModule]
|
|
132
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
133
|
+
exports: [RouterModule],
|
|
138
134
|
},] }
|
|
139
135
|
];
|
|
140
136
|
|
|
@@ -172,14 +168,14 @@ DashboardModule.decorators = [
|
|
|
172
168
|
loader: {
|
|
173
169
|
provide: TranslateLoader,
|
|
174
170
|
useFactory: HttpLoaderFactory,
|
|
175
|
-
deps: [HttpClient]
|
|
176
|
-
}
|
|
171
|
+
deps: [HttpClient],
|
|
172
|
+
},
|
|
177
173
|
}),
|
|
178
174
|
AlertModule,
|
|
179
175
|
TaskModule,
|
|
180
|
-
SpinnerModule
|
|
176
|
+
SpinnerModule,
|
|
181
177
|
],
|
|
182
|
-
exports: [DashboardComponent]
|
|
178
|
+
exports: [DashboardComponent],
|
|
183
179
|
},] }
|
|
184
180
|
];
|
|
185
181
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"valtimo-dashboard.js","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts","../../../../projects/valtimo/dashboard/src/public_api.ts","../../../../projects/valtimo/dashboard/src/valtimo-dashboard.ts"],"sourcesContent":["/*\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\nimport {Component, OnInit, ViewChild} from '@angular/core';\nimport { TranslateService } from '@ngx-translate/core';\nimport { ContextService } from '@valtimo/context';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport { TaskDetailModalComponent, TaskService } from '@valtimo/task';\nimport * as moment_ from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/contract';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\nconst moment = moment_;\nmoment.locale(localStorage.getItem('langKey') || '');\nmoment.defaultFormat = 'DD MMM YYYY HH:mm';\n\n@Component({\n selector: 'valtimo-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.css']\n})\nexport class DashboardComponent implements OnInit {\n public processDefinitions: Array<any>;\n public openTasks: Array<any>;\n public openTaskFields = [\n {\n key: 'created',\n label: 'Created'\n },\n {\n key: 'name',\n label: 'Name'\n },\n {\n key: 'valtimoAssignee.fullName',\n label: 'Assignee'\n }\n ];\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n\n loading$ = new BehaviorSubject<boolean>(true);\n\n constructor(\n private router: Router,\n private contextService: ContextService,\n private taskService: TaskService,\n private readonly route: ActivatedRoute,\n public translate: TranslateService,\n ) {\n }\n\n ngOnInit() {\n this.getOpenTasks();\n }\n\n public getOpenTasks() {\n this.taskService.getTasks().subscribe((response) => {\n this.openTasks = response;\n this.openTasks.map((task) => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n });\n this.checkRouteForTaskId(response);\n this.loading$.next(false);\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n }\n }\n\n private checkRouteForTaskId(tasks: Array<Task>): void {\n this.route.queryParams.pipe(take(1))\n .subscribe((params) => {\n const taskId = params?.taskId;\n const findTaskFromId = tasks.find((task) => task.id === taskId);\n\n if (findTaskFromId) {\n this.rowOpenTaskClick(findTaskFromId);\n }\n });\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DashboardComponent} from './dashboard.component';\nimport {ROLE_USER} from '@valtimo/contract';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Dashboard', roles: [ROLE_USER]}\n }\n];\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule,\n RouterModule.forChild(routes)\n ],\n exports: [RouterModule]\n})\nexport class DashboardRoutingModule {\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {TranslateHttpLoader} from '@ngx-translate/http-loader';\nimport {DashboardComponent} from './dashboard.component';\nimport {DashboardRoutingModule} from './dashboard-routing.module';\nimport {AlertModule, BpmnJsDiagramModule, ListModule, SpinnerModule, WidgetModule} from '@valtimo/components';\nimport {HttpClient} from '@angular/common/http';\nimport {TaskModule} from '@valtimo/task';\n\n// AoT requires an exported function for factories\nexport function HttpLoaderFactory(httpClient: HttpClient) {\n return new TranslateHttpLoader(httpClient);\n}\n\n@NgModule({\n declarations: [DashboardComponent],\n imports: [\n CommonModule,\n DashboardRoutingModule,\n WidgetModule,\n ListModule,\n BpmnJsDiagramModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient]\n }\n }),\n AlertModule,\n TaskModule,\n SpinnerModule\n ],\n exports: [DashboardComponent]\n})\nexport class DashboardModule {\n}\n","/*\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/*\n * Public API Surface of dashboard\n */\n\nexport * from './lib/dashboard.component';\nexport * from './lib/dashboard.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {DashboardRoutingModule as ɵa} from './lib/dashboard-routing.module';"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AA2BA,MAAM,MAAM,GAAG,OAAO,CAAC;AACvB,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;AACrD,MAAM,CAAC,aAAa,GAAG,mBAAmB,CAAC;MAO9B,kBAAkB;IAqB7B,YACU,MAAc,EACd,cAA8B,EAC9B,WAAwB,EACf,KAAqB,EAC/B,SAA2B;QAJ1B,WAAM,GAAN,MAAM,CAAQ;QACd,mBAAc,GAAd,cAAc,CAAgB;QAC9B,gBAAW,GAAX,WAAW,CAAa;QACf,UAAK,GAAL,KAAK,CAAgB;QAC/B,cAAS,GAAT,SAAS,CAAkB;QAvB7B,mBAAc,GAAG;YACtB;gBACE,GAAG,EAAE,SAAS;gBACd,KAAK,EAAE,SAAS;aACjB;YACD;gBACE,GAAG,EAAE,MAAM;gBACX,KAAK,EAAE,MAAM;aACd;YACD;gBACE,GAAG,EAAE,0BAA0B;gBAC/B,KAAK,EAAE,UAAU;aAClB;SACF,CAAC;QAGF,aAAQ,GAAG,IAAI,eAAe,CAAU,IAAI,CAAC,CAAC;KAS7C;IAED,QAAQ;QACN,IAAI,CAAC,YAAY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;;;;;;;;WA4BU,EAAC,KAAK,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,SAAS,CAAC,EAAC;AALlD,MAAM,MAAM,GAAW;IACrB;QACE,IAAI,EAAE,EAAE;QACR,SAAS,EAAE,kBAAkB;QAC7B,WAAW,EAAE,CAAC,gBAAgB,CAAC;QAC/B,IAAI,IAA0C;KAC/C;CACF,CAAC;MAUW,sBAAsB;;;YARlC,QAAQ,SAAC;gBACR,YAAY,EAAE,EAAE;gBAChB,OAAO,EAAE;oBACP,YAAY;oBACZ,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC;iBAC9B;gBACD,OAAO,EAAE,CAAC,YAAY,CAAC;aACxB;;;ACvCD;;;;;;;;;;;;;;;AA0BA;SACgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,IAAI,mBAAmB,CAAC,UAAU,CAAC,CAAC;AAC7C,CAAC;MAuBY,eAAe;;;YArB3B,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;gBAChC,OAAO,EAAE;oBACL,YAAY;oBACZ,sBAAsB;oBACtB,YAAY;oBACZ,UAAU;oBACV,mBAAmB;oBACnB,eAAe,CAAC,OAAO,CAAC;wBACpB,MAAM,EAAE;4BACJ,OAAO,EAAE,eAAe;4BACxB,UAAU,EAAE,iBAAiB;4BAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;yBACrB;qBACJ,CAAC;oBACF,WAAW;oBACX,UAAU;oBACV,aAAa;iBAChB;gBACH,OAAO,EAAE,CAAC,kBAAkB,CAAC;aAC9B;;;ACnDD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
|
1
|
+
{"version":3,"file":"valtimo-dashboard.js","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts","../../../../projects/valtimo/dashboard/src/public_api.ts","../../../../projects/valtimo/dashboard/src/valtimo-dashboard.ts"],"sourcesContent":["/*\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\nimport {Component, OnInit, ViewChild} from '@angular/core';\nimport {TranslateService} from '@ngx-translate/core';\nimport {ContextService} from '@valtimo/context';\nimport {ActivatedRoute, Router} from '@angular/router';\nimport {TaskDetailModalComponent, TaskService} from '@valtimo/task';\nimport * as moment_ from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/task';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\nconst moment = moment_;\nmoment.locale(localStorage.getItem('langKey') || '');\nmoment.defaultFormat = 'DD MMM YYYY HH:mm';\n\n@Component({\n selector: 'valtimo-dashboard',\n templateUrl: './dashboard.component.html',\n styleUrls: ['./dashboard.component.css'],\n})\nexport class DashboardComponent implements OnInit {\n public processDefinitions: Array<any>;\n public openTasks: Array<any>;\n public openTaskFields = [\n {\n key: 'created',\n label: 'Created',\n },\n {\n key: 'name',\n label: 'Name',\n },\n {\n key: 'valtimoAssignee.fullName',\n label: 'Assignee',\n },\n ];\n @ViewChild('taskDetail') taskDetail: TaskDetailModalComponent;\n\n loading$ = new BehaviorSubject<boolean>(true);\n\n constructor(\n private router: Router,\n private contextService: ContextService,\n private taskService: TaskService,\n private readonly route: ActivatedRoute,\n public translate: TranslateService\n ) {}\n\n ngOnInit() {\n this.getOpenTasks();\n }\n\n public getOpenTasks() {\n this.taskService.getTasks().subscribe(response => {\n this.openTasks = response;\n this.openTasks.map(task => {\n task.created = moment(task.created).format('DD MMM YYYY HH:mm');\n });\n this.checkRouteForTaskId(response);\n this.loading$.next(false);\n });\n }\n\n public rowOpenTaskClick(task) {\n if (!task.endTime) {\n this.taskDetail.openTaskDetails(task);\n }\n }\n\n private checkRouteForTaskId(tasks: Array<Task>): void {\n this.route.queryParams.pipe(take(1)).subscribe(params => {\n const taskId = params?.taskId;\n const findTaskFromId = tasks.find(task => task.id === taskId);\n\n if (findTaskFromId) {\n this.rowOpenTaskClick(findTaskFromId);\n }\n });\n }\n}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {RouterModule, Routes} from '@angular/router';\nimport {CommonModule} from '@angular/common';\nimport {AuthGuardService} from '@valtimo/security';\nimport {DashboardComponent} from './dashboard.component';\nimport {ROLE_USER} from '@valtimo/config';\n\nconst routes: Routes = [\n {\n path: '',\n component: DashboardComponent,\n canActivate: [AuthGuardService],\n data: {title: 'Dashboard', roles: [ROLE_USER]},\n },\n];\n\n@NgModule({\n declarations: [],\n imports: [CommonModule, RouterModule.forChild(routes)],\n exports: [RouterModule],\n})\nexport class DashboardRoutingModule {}\n","/*\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\nimport {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {TranslateLoader, TranslateModule} from '@ngx-translate/core';\nimport {TranslateHttpLoader} from '@ngx-translate/http-loader';\nimport {DashboardComponent} from './dashboard.component';\nimport {DashboardRoutingModule} from './dashboard-routing.module';\nimport {\n AlertModule,\n BpmnJsDiagramModule,\n ListModule,\n SpinnerModule,\n WidgetModule,\n} from '@valtimo/components';\nimport {HttpClient} from '@angular/common/http';\nimport {TaskModule} from '@valtimo/task';\n\n// AoT requires an exported function for factories\nexport function HttpLoaderFactory(httpClient: HttpClient) {\n return new TranslateHttpLoader(httpClient);\n}\n\n@NgModule({\n declarations: [DashboardComponent],\n imports: [\n CommonModule,\n DashboardRoutingModule,\n WidgetModule,\n ListModule,\n BpmnJsDiagramModule,\n TranslateModule.forRoot({\n loader: {\n provide: TranslateLoader,\n useFactory: HttpLoaderFactory,\n deps: [HttpClient],\n },\n }),\n AlertModule,\n TaskModule,\n SpinnerModule,\n ],\n exports: [DashboardComponent],\n})\nexport class DashboardModule {}\n","/*\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/*\n * Public API Surface of dashboard\n */\n\nexport * from './lib/dashboard.component';\nexport * from './lib/dashboard.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n\nexport {DashboardRoutingModule as ɵa} from './lib/dashboard-routing.module';"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;;AA2BA,MAAM,MAAM,G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AAC;MAuBY,eAAe;;;YArB3B,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;gBAClC,OAAO,EAAE;oBACP,YAAY;oBACZ,sBAAsB;oBACtB,YAAY;oBACZ,UAAU;oBACV,mBAAmB;oBACnB,eAAe,CAAC,OAAO,CAAC;wBACtB,MAAM,EAAE;4BACN,OAAO,EAAE,eAAe;4BACxB,UAAU,EAAE,iBAAiB;4BAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;yBACnB;qBACF,CAAC;oBACF,WAAW;oBACX,UAAU;oBACV,aAAa;iBACd;gBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;aAC9B;;;ACzDD;;;;;;;;;;;;;;;;ACAA;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"DashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"valtimo-dashboard","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\">{{
|
|
1
|
+
{"__symbolic":"module","version":4,"metadata":{"DashboardComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":31,"character":1},"arguments":[{"selector":"valtimo-dashboard","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\">{{\n openTasks?.length\n }}</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","styles":[""]}]}],"members":{"taskDetail":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":53,"character":3},"arguments":["taskDetail"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/router","name":"Router","line":58,"character":20},{"__symbolic":"reference","module":"@valtimo/context","name":"ContextService","line":59,"character":28},{"__symbolic":"reference","module":"@valtimo/task","name":"TaskService","line":60,"character":25},{"__symbolic":"reference","module":"@angular/router","name":"ActivatedRoute","line":61,"character":28},{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService","line":62,"character":22}]}],"ngOnInit":[{"__symbolic":"method"}],"getOpenTasks":[{"__symbolic":"method"}],"rowOpenTaskClick":[{"__symbolic":"method"}],"checkRouteForTaskId":[{"__symbolic":"method"}]}},"HttpLoaderFactory":{"__symbolic":"function","parameters":["httpClient"],"value":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@ngx-translate/http-loader","name":"TranslateHttpLoader","line":34,"character":13},"arguments":[{"__symbolic":"reference","name":"httpClient"}]}},"DashboardModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":37,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"DashboardComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":40,"character":4},{"__symbolic":"reference","name":"ɵa"},{"__symbolic":"reference","module":"@valtimo/components","name":"WidgetModule","line":42,"character":4},{"__symbolic":"reference","module":"@valtimo/components","name":"ListModule","line":43,"character":4},{"__symbolic":"reference","module":"@valtimo/components","name":"BpmnJsDiagramModule","line":44,"character":4},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateModule","line":45,"character":4},"member":"forRoot"},"arguments":[{"loader":{"provide":{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateLoader","line":47,"character":17},"useFactory":{"__symbolic":"reference","name":"HttpLoaderFactory"},"deps":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":49,"character":15}]}}]},{"__symbolic":"reference","module":"@valtimo/components","name":"AlertModule","line":52,"character":4},{"__symbolic":"reference","module":"@valtimo/task","name":"TaskModule","line":53,"character":4},{"__symbolic":"reference","module":"@valtimo/components","name":"SpinnerModule","line":54,"character":4}],"exports":[{"__symbolic":"reference","name":"DashboardComponent"}]}]}],"members":{}},"ɵa":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":32,"character":1},"arguments":[{"declarations":[],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":34,"character":12},{"__symbolic":"call","expression":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":34,"character":26},"member":"forChild"},"arguments":[[{"path":"","component":{"__symbolic":"reference","name":"DashboardComponent"},"canActivate":[{"__symbolic":"reference","module":"@valtimo/security","name":"AuthGuardService","line":27,"character":18}],"data":{"title":"Dashboard","roles":[{"__symbolic":"reference","module":"@valtimo/config","name":"ROLE_USER","line":28,"character":39}]}}]]}],"exports":[{"__symbolic":"reference","module":"@angular/router","name":"RouterModule","line":35,"character":12}]}]}],"members":{}}},"origins":{"DashboardComponent":"./lib/dashboard.component","HttpLoaderFactory":"./lib/dashboard.module","DashboardModule":"./lib/dashboard.module","ɵa":"./lib/dashboard-routing.module"},"importAs":"@valtimo/dashboard"}
|