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