@valtimo/dashboard 4.21.0 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,229 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewChild, NgModule } from '@angular/core';
3
+ import moment from 'moment';
4
+ import { take } from 'rxjs/operators';
5
+ import { BehaviorSubject } from 'rxjs';
6
+ import * as i1 from '@angular/router';
7
+ import { RouterModule } from '@angular/router';
8
+ import * as i2 from '@valtimo/context';
9
+ import * as i3 from '@valtimo/task';
10
+ import { TaskModule } from '@valtimo/task';
11
+ import * as i4 from '@ngx-translate/core';
12
+ import { TranslateModule, TranslateLoader } from '@ngx-translate/core';
13
+ import * as i5 from '@valtimo/components';
14
+ import { WidgetModule, ListModule, BpmnJsDiagramModule, AlertModule, SpinnerModule } from '@valtimo/components';
15
+ import * as i6 from '@angular/common';
16
+ import { CommonModule } from '@angular/common';
17
+ import { TranslateHttpLoader } from '@ngx-translate/http-loader';
18
+ import { AuthGuardService } from '@valtimo/security';
19
+ import { ROLE_USER } from '@valtimo/config';
20
+ import { HttpClient } from '@angular/common/http';
21
+
22
+ /*
23
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
24
+ *
25
+ * Licensed under EUPL, Version 1.2 (the "License");
26
+ * you may not use this file except in compliance with the License.
27
+ * You may obtain a copy of the License at
28
+ *
29
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
30
+ *
31
+ * Unless required by applicable law or agreed to in writing, software
32
+ * distributed under the License is distributed on an "AS IS" basis,
33
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
34
+ * See the License for the specific language governing permissions and
35
+ * limitations under the License.
36
+ */
37
+ moment.locale(localStorage.getItem('langKey') || '');
38
+ moment.defaultFormat = 'DD MMM YYYY HH:mm';
39
+ class DashboardComponent {
40
+ constructor(router, contextService, taskService, route, translate) {
41
+ this.router = router;
42
+ this.contextService = contextService;
43
+ this.taskService = taskService;
44
+ this.route = route;
45
+ this.translate = translate;
46
+ this.openTaskFields = [
47
+ {
48
+ key: 'created',
49
+ label: 'Created',
50
+ },
51
+ {
52
+ key: 'name',
53
+ label: 'Name',
54
+ },
55
+ {
56
+ key: 'valtimoAssignee.fullName',
57
+ label: 'Assignee',
58
+ },
59
+ ];
60
+ this.loading$ = new BehaviorSubject(true);
61
+ }
62
+ ngOnInit() {
63
+ this.getOpenTasks();
64
+ }
65
+ getOpenTasks() {
66
+ this.taskService.getTasks().subscribe(response => {
67
+ this.openTasks = response;
68
+ this.openTasks.map(task => {
69
+ task.created = moment(task.created).format('DD MMM YYYY HH:mm');
70
+ });
71
+ this.checkRouteForTaskId(response);
72
+ this.loading$.next(false);
73
+ });
74
+ }
75
+ rowOpenTaskClick(task) {
76
+ if (!task.endTime) {
77
+ this.taskDetail.openTaskDetails(task);
78
+ }
79
+ }
80
+ checkRouteForTaskId(tasks) {
81
+ this.route.queryParams.pipe(take(1)).subscribe(params => {
82
+ const taskId = params?.taskId;
83
+ const findTaskFromId = tasks.find(task => task.id === taskId);
84
+ if (findTaskFromId) {
85
+ this.rowOpenTaskClick(findTaskFromId);
86
+ }
87
+ });
88
+ }
89
+ }
90
+ DashboardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardComponent, deps: [{ token: i1.Router }, { token: i2.ContextService }, { token: i3.TaskService }, { token: i1.ActivatedRoute }, { token: i4.TranslateService }], target: i0.ɵɵFactoryTarget.Component });
91
+ DashboardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: DashboardComponent, selector: "valtimo-dashboard", viewQueries: [{ propertyName: "taskDetail", first: true, predicate: ["taskDetail"], descendants: true }], ngImport: i0, 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: [""], components: [{ type: i5.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { type: i5.ListComponent, selector: "valtimo-list", inputs: ["items", "fields", "pagination", "viewMode", "isSearchable", "header", "actions", "paginationIdentifier", "initialSortState"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged"] }, { type: i3.TaskDetailModalComponent, selector: "valtimo-task-detail-modal", outputs: ["formSubmit", "assignmentOfTaskChanged"] }, { type: i5.SpinnerComponent, selector: "valtimo-spinner", inputs: ["useBootstrapSpinner", "name", "type", "size", "color", "bdColor", "fullScreen", "noMarginTop"] }], directives: [{ type: i6.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i6.AsyncPipe, "translate": i4.TranslatePipe } });
92
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardComponent, decorators: [{
93
+ type: Component,
94
+ args: [{ 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: [""] }]
95
+ }], ctorParameters: function () { return [{ type: i1.Router }, { type: i2.ContextService }, { type: i3.TaskService }, { type: i1.ActivatedRoute }, { type: i4.TranslateService }]; }, propDecorators: { taskDetail: [{
96
+ type: ViewChild,
97
+ args: ['taskDetail']
98
+ }] } });
99
+
100
+ /*
101
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
102
+ *
103
+ * Licensed under EUPL, Version 1.2 (the "License");
104
+ * you may not use this file except in compliance with the License.
105
+ * You may obtain a copy of the License at
106
+ *
107
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
108
+ *
109
+ * Unless required by applicable law or agreed to in writing, software
110
+ * distributed under the License is distributed on an "AS IS" basis,
111
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
112
+ * See the License for the specific language governing permissions and
113
+ * limitations under the License.
114
+ */
115
+ const routes = [
116
+ {
117
+ path: '',
118
+ component: DashboardComponent,
119
+ canActivate: [AuthGuardService],
120
+ data: { title: 'Dashboard', roles: [ROLE_USER] },
121
+ },
122
+ ];
123
+ class DashboardRoutingModule {
124
+ }
125
+ DashboardRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
126
+ DashboardRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardRoutingModule, imports: [CommonModule, i1.RouterModule], exports: [RouterModule] });
127
+ DashboardRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardRoutingModule, imports: [[CommonModule, RouterModule.forChild(routes)], RouterModule] });
128
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardRoutingModule, decorators: [{
129
+ type: NgModule,
130
+ args: [{
131
+ declarations: [],
132
+ imports: [CommonModule, RouterModule.forChild(routes)],
133
+ exports: [RouterModule],
134
+ }]
135
+ }] });
136
+
137
+ /*
138
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
139
+ *
140
+ * Licensed under EUPL, Version 1.2 (the "License");
141
+ * you may not use this file except in compliance with the License.
142
+ * You may obtain a copy of the License at
143
+ *
144
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
145
+ *
146
+ * Unless required by applicable law or agreed to in writing, software
147
+ * distributed under the License is distributed on an "AS IS" basis,
148
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
149
+ * See the License for the specific language governing permissions and
150
+ * limitations under the License.
151
+ */
152
+ // AoT requires an exported function for factories
153
+ function HttpLoaderFactory(httpClient) {
154
+ return new TranslateHttpLoader(httpClient);
155
+ }
156
+ class DashboardModule {
157
+ }
158
+ DashboardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
159
+ DashboardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardModule, declarations: [DashboardComponent], imports: [CommonModule,
160
+ DashboardRoutingModule,
161
+ WidgetModule,
162
+ ListModule,
163
+ BpmnJsDiagramModule, i4.TranslateModule, AlertModule,
164
+ TaskModule,
165
+ SpinnerModule], exports: [DashboardComponent] });
166
+ DashboardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardModule, imports: [[
167
+ CommonModule,
168
+ DashboardRoutingModule,
169
+ WidgetModule,
170
+ ListModule,
171
+ BpmnJsDiagramModule,
172
+ TranslateModule.forRoot({
173
+ loader: {
174
+ provide: TranslateLoader,
175
+ useFactory: HttpLoaderFactory,
176
+ deps: [HttpClient],
177
+ },
178
+ }),
179
+ AlertModule,
180
+ TaskModule,
181
+ SpinnerModule,
182
+ ]] });
183
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: DashboardModule, decorators: [{
184
+ type: NgModule,
185
+ args: [{
186
+ declarations: [DashboardComponent],
187
+ imports: [
188
+ CommonModule,
189
+ DashboardRoutingModule,
190
+ WidgetModule,
191
+ ListModule,
192
+ BpmnJsDiagramModule,
193
+ TranslateModule.forRoot({
194
+ loader: {
195
+ provide: TranslateLoader,
196
+ useFactory: HttpLoaderFactory,
197
+ deps: [HttpClient],
198
+ },
199
+ }),
200
+ AlertModule,
201
+ TaskModule,
202
+ SpinnerModule,
203
+ ],
204
+ exports: [DashboardComponent],
205
+ }]
206
+ }] });
207
+
208
+ /*
209
+ * Copyright 2015-2020 Ritense BV, the Netherlands.
210
+ *
211
+ * Licensed under EUPL, Version 1.2 (the "License");
212
+ * you may not use this file except in compliance with the License.
213
+ * You may obtain a copy of the License at
214
+ *
215
+ * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
216
+ *
217
+ * Unless required by applicable law or agreed to in writing, software
218
+ * distributed under the License is distributed on an "AS IS" basis,
219
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
220
+ * See the License for the specific language governing permissions and
221
+ * limitations under the License.
222
+ */
223
+
224
+ /**
225
+ * Generated bundle index. Do not edit.
226
+ */
227
+
228
+ export { DashboardComponent, DashboardModule, HttpLoaderFactory };
229
+ //# sourceMappingURL=valtimo-dashboard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-dashboard.mjs","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts","../../../../projects/valtimo/dashboard/src/lib/dashboard.component.html","../../../../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 moment from 'moment';\nimport {take} from 'rxjs/operators';\nimport {Task} from '@valtimo/task';\nimport {BehaviorSubject} from 'rxjs';\nimport {NgxSpinnerService} from 'ngx-spinner';\n\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\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","/*\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"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;AAcG;AAaH,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,CAAC;AACrD,MAAM,CAAC,aAAa,GAAG,mBAAmB,CAAC;MAO9B,kBAAkB,CAAA;IAqB7B,WACU,CAAA,MAAc,EACd,cAA8B,EAC9B,WAAwB,EACf,KAAqB,EAC/B,SAA2B,EAAA;QAJ1B,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QACd,IAAc,CAAA,cAAA,GAAd,cAAc,CAAgB;QAC9B,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QACf,IAAK,CAAA,KAAA,GAAL,KAAK,CAAgB;QAC/B,IAAS,CAAA,SAAA,GAAT,SAAS,CAAkB;AAvB7B,QAAA,IAAA,CAAA,cAAc,GAAG;AACtB,YAAA;AACE,gBAAA,GAAG,EAAE,SAAS;AACd,gBAAA,KAAK,EAAE,SAAS;AACjB,aAAA;AACD,YAAA;AACE,gBAAA,GAAG,EAAE,MAAM;AACX,gBAAA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AAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,EAnBjB,OAAA,EAAA,CAAA;YACP,YAAY;YACZ,sBAAsB;YACtB,YAAY;YACZ,UAAU;YACV,mBAAmB;YACnB,eAAe,CAAC,OAAO,CAAC;AACtB,gBAAA,MAAM,EAAE;AACN,oBAAA,OAAO,EAAE,eAAe;AACxB,oBAAA,UAAU,EAAE,iBAAiB;oBAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;AACnB,iBAAA;aACF,CAAC;YACF,WAAW;YACX,UAAU;YACV,aAAa;AACd,SAAA,CAAA,EAAA,CAAA,CAAA;2FAGU,eAAe,EAAA,UAAA,EAAA,CAAA;kBArB3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,kBAAkB,CAAC;AAClC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,sBAAsB;wBACtB,YAAY;wBACZ,UAAU;wBACV,mBAAmB;wBACnB,eAAe,CAAC,OAAO,CAAC;AACtB,4BAAA,MAAM,EAAE;AACN,gCAAA,OAAO,EAAE,eAAe;AACxB,gCAAA,UAAU,EAAE,iBAAiB;gCAC7B,IAAI,EAAE,CAAC,UAAU,CAAC;AACnB,6BAAA;yBACF,CAAC;wBACF,WAAW;wBACX,UAAU;wBACV,aAAa;AACd,qBAAA;oBACD,OAAO,EAAE,CAAC,kBAAkB,CAAC;AAC9B,iBAAA,CAAA;;;ACzDD;;;;;;;;;;;;;;AAcG;;ACdH;;AAEG;;;;"}
@@ -1,2 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "@angular/common";
3
+ import * as i2 from "@angular/router";
1
4
  export declare class DashboardRoutingModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardRoutingModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardRoutingModule, never, [typeof i1.CommonModule, typeof i2.RouterModule], [typeof i2.RouterModule]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<DashboardRoutingModule>;
2
8
  }
9
+ //# sourceMappingURL=dashboard-routing.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard-routing.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard-routing.module.ts"],"names":[],"mappings":";;;AAgCA,qBAKa,sBAAsB;yCAAtB,sBAAsB;0CAAtB,sBAAsB;0CAAtB,sBAAsB;CAAG"}
@@ -4,6 +4,7 @@ import { ContextService } from '@valtimo/context';
4
4
  import { ActivatedRoute, Router } from '@angular/router';
5
5
  import { TaskDetailModalComponent, TaskService } from '@valtimo/task';
6
6
  import { BehaviorSubject } from 'rxjs';
7
+ import * as i0 from "@angular/core";
7
8
  export declare class DashboardComponent implements OnInit {
8
9
  private router;
9
10
  private contextService;
@@ -23,4 +24,7 @@ export declare class DashboardComponent implements OnInit {
23
24
  getOpenTasks(): void;
24
25
  rowOpenTaskClick(task: any): void;
25
26
  private checkRouteForTaskId;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardComponent, never>;
28
+ static ɵcmp: i0.ɵɵComponentDeclaration<DashboardComponent, "valtimo-dashboard", never, {}, {}, never, never>;
26
29
  }
30
+ //# sourceMappingURL=dashboard.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.component.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.component.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAY,MAAM,EAAY,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,gBAAgB,EAAC,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAC,cAAc,EAAC,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAC,cAAc,EAAE,MAAM,EAAC,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAC,wBAAwB,EAAE,WAAW,EAAC,MAAM,eAAe,CAAC;AAIpE,OAAO,EAAC,eAAe,EAAC,MAAM,MAAM,CAAC;;AAMrC,qBAKa,kBAAmB,YAAW,MAAM;IAsB7C,OAAO,CAAC,MAAM;IACd,OAAO,CAAC,cAAc;IACtB,OAAO,CAAC,WAAW;IACnB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACf,SAAS,EAAE,gBAAgB;IAzB7B,kBAAkB,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IAC/B,SAAS,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACtB,cAAc;;;QAanB;IACuB,UAAU,EAAE,wBAAwB,CAAC;IAE9D,QAAQ,2BAAsC;gBAGpC,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,cAAc,EAC9B,WAAW,EAAE,WAAW,EACf,KAAK,EAAE,cAAc,EAC/B,SAAS,EAAE,gBAAgB;IAGpC,QAAQ;IAID,YAAY;IAWZ,gBAAgB,CAAC,IAAI,KAAA;IAM5B,OAAO,CAAC,mBAAmB;yCAlDhB,kBAAkB;2CAAlB,kBAAkB;CA4D9B"}
@@ -1,5 +1,16 @@
1
1
  import { TranslateHttpLoader } from '@ngx-translate/http-loader';
2
2
  import { HttpClient } from '@angular/common/http';
3
+ import * as i0 from "@angular/core";
4
+ import * as i1 from "./dashboard.component";
5
+ import * as i2 from "@angular/common";
6
+ import * as i3 from "./dashboard-routing.module";
7
+ import * as i4 from "@valtimo/components";
8
+ import * as i5 from "@ngx-translate/core";
9
+ import * as i6 from "@valtimo/task";
3
10
  export declare function HttpLoaderFactory(httpClient: HttpClient): TranslateHttpLoader;
4
11
  export declare class DashboardModule {
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<DashboardModule, never>;
13
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DashboardModule, [typeof i1.DashboardComponent], [typeof i2.CommonModule, typeof i3.DashboardRoutingModule, typeof i4.WidgetModule, typeof i4.ListModule, typeof i4.BpmnJsDiagramModule, typeof i5.TranslateModule, typeof i4.AlertModule, typeof i6.TaskModule, typeof i4.SpinnerModule], [typeof i1.DashboardComponent]>;
14
+ static ɵinj: i0.ɵɵInjectorDeclaration<DashboardModule>;
5
15
  }
16
+ //# sourceMappingURL=dashboard.module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboard.module.d.ts","sourceRoot":"","sources":["../../../../projects/valtimo/dashboard/src/lib/dashboard.module.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAC,mBAAmB,EAAC,MAAM,4BAA4B,CAAC;AAU/D,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;;;;;;;;AAIhD,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,uBAEvD;AAED,qBAqBa,eAAe;yCAAf,eAAe;0CAAf,eAAe;0CAAf,eAAe;CAAG"}
package/package.json CHANGED
@@ -1,25 +1,37 @@
1
1
  {
2
2
  "name": "@valtimo/dashboard",
3
3
  "license": "EUPL-1.2",
4
- "version": "4.21.0",
4
+ "version": "5.0.0",
5
5
  "peerDependencies": {
6
- "@angular/common": "^10.0.11",
7
- "@angular/core": "^10.0.11"
6
+ "@angular/common": "^13.2.3",
7
+ "@angular/core": "^13.2.3"
8
8
  },
9
9
  "dependencies": {
10
- "moment": "2.24.0",
10
+ "moment": "2.29.1",
11
11
  "d3": "^5.9.2",
12
12
  "d3-shape": "^1.3.5",
13
13
  "@ngx-translate/core": "^13.0.0",
14
14
  "@ngx-translate/http-loader": "6.0.0",
15
15
  "tslib": "^2.0.0"
16
16
  },
17
- "main": "bundles/valtimo-dashboard.umd.js",
18
- "module": "fesm2015/valtimo-dashboard.js",
19
- "es2015": "fesm2015/valtimo-dashboard.js",
20
- "esm2015": "esm2015/valtimo-dashboard.js",
21
- "fesm2015": "fesm2015/valtimo-dashboard.js",
17
+ "module": "fesm2015/valtimo-dashboard.mjs",
18
+ "es2020": "fesm2020/valtimo-dashboard.mjs",
19
+ "esm2020": "esm2020/valtimo-dashboard.mjs",
20
+ "fesm2020": "fesm2020/valtimo-dashboard.mjs",
21
+ "fesm2015": "fesm2015/valtimo-dashboard.mjs",
22
22
  "typings": "valtimo-dashboard.d.ts",
23
- "metadata": "valtimo-dashboard.metadata.json",
23
+ "exports": {
24
+ "./package.json": {
25
+ "default": "./package.json"
26
+ },
27
+ ".": {
28
+ "types": "./valtimo-dashboard.d.ts",
29
+ "esm2020": "./esm2020/valtimo-dashboard.mjs",
30
+ "es2020": "./fesm2020/valtimo-dashboard.mjs",
31
+ "es2015": "./fesm2015/valtimo-dashboard.mjs",
32
+ "node": "./fesm2015/valtimo-dashboard.mjs",
33
+ "default": "./fesm2020/valtimo-dashboard.mjs"
34
+ }
35
+ },
24
36
  "sideEffects": false
25
- }
37
+ }
package/public_api.d.ts CHANGED
@@ -1,2 +1,3 @@
1
1
  export * from './lib/dashboard.component';
2
2
  export * from './lib/dashboard.module';
3
+ //# sourceMappingURL=public_api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public_api.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dashboard/src/public_api.ts"],"names":[],"mappings":"AAoBA,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC"}
@@ -1,5 +1,6 @@
1
1
  /**
2
2
  * Generated bundle index. Do not edit.
3
3
  */
4
+ /// <amd-module name="@valtimo/dashboard" />
4
5
  export * from './public_api';
5
- export { DashboardRoutingModule as ɵa } from './lib/dashboard-routing.module';
6
+ //# sourceMappingURL=valtimo-dashboard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valtimo-dashboard.d.ts","sourceRoot":"","sources":["../../../projects/valtimo/dashboard/src/valtimo-dashboard.ts"],"names":[],"mappings":"AAAA;;GAEG;;AAEH,cAAc,cAAc,CAAC"}
@@ -1,210 +0,0 @@
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/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
-
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)).subscribe(function (params) {
70
- var taskId = params === null || params === void 0 ? void 0 : params.taskId;
71
- var findTaskFromId = tasks.find(function (task) { return task.id === taskId; });
72
- if (findTaskFromId) {
73
- _this.rowOpenTaskClick(findTaskFromId);
74
- }
75
- });
76
- };
77
- return DashboardComponent;
78
- }());
79
- DashboardComponent.decorators = [
80
- { type: core.Component, args: [{
81
- 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\">{{\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
- styles: [""]
84
- },] }
85
- ];
86
- DashboardComponent.ctorParameters = function () { return [
87
- { type: router.Router },
88
- { type: context.ContextService },
89
- { type: task.TaskService },
90
- { type: router.ActivatedRoute },
91
- { type: core$1.TranslateService }
92
- ]; };
93
- DashboardComponent.propDecorators = {
94
- taskDetail: [{ type: core.ViewChild, args: ['taskDetail',] }]
95
- };
96
-
97
- /*
98
- * Copyright 2015-2020 Ritense BV, the Netherlands.
99
- *
100
- * Licensed under EUPL, Version 1.2 (the "License");
101
- * you may not use this file except in compliance with the License.
102
- * You may obtain a copy of the License at
103
- *
104
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
105
- *
106
- * Unless required by applicable law or agreed to in writing, software
107
- * distributed under the License is distributed on an "AS IS" basis,
108
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
109
- * See the License for the specific language governing permissions and
110
- * limitations under the License.
111
- */
112
- var ɵ0 = { title: 'Dashboard', roles: [config.ROLE_USER] };
113
- var routes = [
114
- {
115
- path: '',
116
- component: DashboardComponent,
117
- canActivate: [security.AuthGuardService],
118
- data: ɵ0,
119
- },
120
- ];
121
- var DashboardRoutingModule = /** @class */ (function () {
122
- function DashboardRoutingModule() {
123
- }
124
- return DashboardRoutingModule;
125
- }());
126
- DashboardRoutingModule.decorators = [
127
- { type: core.NgModule, args: [{
128
- declarations: [],
129
- imports: [common.CommonModule, router.RouterModule.forChild(routes)],
130
- exports: [router.RouterModule],
131
- },] }
132
- ];
133
-
134
- /*
135
- * Copyright 2015-2020 Ritense BV, the Netherlands.
136
- *
137
- * Licensed under EUPL, Version 1.2 (the "License");
138
- * you may not use this file except in compliance with the License.
139
- * You may obtain a copy of the License at
140
- *
141
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
142
- *
143
- * Unless required by applicable law or agreed to in writing, software
144
- * distributed under the License is distributed on an "AS IS" basis,
145
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
146
- * See the License for the specific language governing permissions and
147
- * limitations under the License.
148
- */
149
- // AoT requires an exported function for factories
150
- function HttpLoaderFactory(httpClient) {
151
- return new httpLoader.TranslateHttpLoader(httpClient);
152
- }
153
- var DashboardModule = /** @class */ (function () {
154
- function DashboardModule() {
155
- }
156
- return DashboardModule;
157
- }());
158
- DashboardModule.decorators = [
159
- { type: core.NgModule, args: [{
160
- declarations: [DashboardComponent],
161
- imports: [
162
- common.CommonModule,
163
- DashboardRoutingModule,
164
- components.WidgetModule,
165
- components.ListModule,
166
- components.BpmnJsDiagramModule,
167
- core$1.TranslateModule.forRoot({
168
- loader: {
169
- provide: core$1.TranslateLoader,
170
- useFactory: HttpLoaderFactory,
171
- deps: [http.HttpClient],
172
- },
173
- }),
174
- components.AlertModule,
175
- task.TaskModule,
176
- components.SpinnerModule,
177
- ],
178
- exports: [DashboardComponent],
179
- },] }
180
- ];
181
-
182
- /*
183
- * Copyright 2015-2020 Ritense BV, the Netherlands.
184
- *
185
- * Licensed under EUPL, Version 1.2 (the "License");
186
- * you may not use this file except in compliance with the License.
187
- * You may obtain a copy of the License at
188
- *
189
- * https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
190
- *
191
- * Unless required by applicable law or agreed to in writing, software
192
- * distributed under the License is distributed on an "AS IS" basis,
193
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
194
- * See the License for the specific language governing permissions and
195
- * limitations under the License.
196
- */
197
-
198
- /**
199
- * Generated bundle index. Do not edit.
200
- */
201
-
202
- exports.DashboardComponent = DashboardComponent;
203
- exports.DashboardModule = DashboardModule;
204
- exports.HttpLoaderFactory = HttpLoaderFactory;
205
- exports.ɵa = DashboardRoutingModule;
206
-
207
- Object.defineProperty(exports, '__esModule', { value: true });
208
-
209
- })));
210
- //# sourceMappingURL=valtimo-dashboard.umd.js.map
@@ -1 +0,0 @@
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,SAAS;iBACjB;gBACD;oBACE,GAAG,EAAE,MAAM;oBACX,KAAK,EAAE,MAAM;iBACd;gBACD;oBACE,GAAG,EAAE,0BAA0B;oBAC/B,KAA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