@valtimo/object 0.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.
- package/README.md +31 -0
- package/fesm2022/valtimo-object.mjs +973 -0
- package/fesm2022/valtimo-object.mjs.map +1 -0
- package/index.d.ts +5 -0
- package/lib/components/object-detail-container/object-detail-container.component.d.ts +28 -0
- package/lib/components/object-detail-container/tabs/object-detail/object-detail.component.d.ts +49 -0
- package/lib/components/object-list/object-list.component.d.ts +57 -0
- package/lib/models/object.model.d.ts +20 -0
- package/lib/object-routing.module.d.ts +8 -0
- package/lib/object.module.d.ts +22 -0
- package/lib/services/index.d.ts +5 -0
- package/lib/services/object-column.service.d.ts +14 -0
- package/lib/services/object-menu.service.d.ts +13 -0
- package/lib/services/object-state.service.d.ts +19 -0
- package/lib/services/object.service.d.ts +30 -0
- package/lib/services/tab.enum.d.ts +3 -0
- package/lib/services/tab.service.d.ts +10 -0
- package/package.json +24 -0
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,973 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common/http';
|
|
4
|
+
import * as i2 from '@valtimo/shared';
|
|
5
|
+
import { ROLE_USER } from '@valtimo/shared';
|
|
6
|
+
import * as i6 from '@angular/router';
|
|
7
|
+
import { RouterModule } from '@angular/router';
|
|
8
|
+
import * as i8 from '@angular/common';
|
|
9
|
+
import { CommonModule, AsyncPipe } from '@angular/common';
|
|
10
|
+
import { AuthGuardService } from '@valtimo/security';
|
|
11
|
+
import { map, BehaviorSubject, combineLatest, distinctUntilChanged, of, startWith, filter, throwError, Subject } from 'rxjs';
|
|
12
|
+
import { take, tap, switchMap, catchError, finalize, map as map$1 } from 'rxjs/operators';
|
|
13
|
+
import * as i3 from '@valtimo/object-management';
|
|
14
|
+
import * as i1$1 from '@valtimo/components';
|
|
15
|
+
import { WidgetModule, SpinnerModule, FormIoModule, TooltipIconModule, ConfirmationModalModule, SearchFieldsModule, ValtimoCdsModalDirective, CarbonListModule } from '@valtimo/components';
|
|
16
|
+
import * as i7 from '@ngx-translate/core';
|
|
17
|
+
import { TranslateModule } from '@ngx-translate/core';
|
|
18
|
+
import * as i8$1 from 'carbon-components-angular';
|
|
19
|
+
import { ButtonModule, IconModule, LoadingModule, ModalModule, InputModule } from 'carbon-components-angular';
|
|
20
|
+
import { ReactiveFormsModule } from '@angular/forms';
|
|
21
|
+
|
|
22
|
+
/*
|
|
23
|
+
* Copyright 2015-2025 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
|
+
class ObjectService {
|
|
38
|
+
constructor(http, configService) {
|
|
39
|
+
this.http = http;
|
|
40
|
+
this.valtimoEndpointUri = configService.config.valtimoApi.endpointUri;
|
|
41
|
+
}
|
|
42
|
+
getObjectsByObjectManagementId(objectManagementId, params) {
|
|
43
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/object/management/configuration/${objectManagementId}/object`, { params });
|
|
44
|
+
}
|
|
45
|
+
postObjectsByObjectManagementId(objectManagementId, params, payload) {
|
|
46
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/object/management/configuration/${objectManagementId}/object`, payload, { params });
|
|
47
|
+
}
|
|
48
|
+
createObject(params, payload) {
|
|
49
|
+
return this.http.post(`${this.valtimoEndpointUri}v1/object`, payload, { params });
|
|
50
|
+
}
|
|
51
|
+
updateObject(params, payload) {
|
|
52
|
+
return this.http.patch(`${this.valtimoEndpointUri}v1/object`, payload, { params });
|
|
53
|
+
}
|
|
54
|
+
deleteObject(params) {
|
|
55
|
+
return this.http.delete(`${this.valtimoEndpointUri}v1/object`, { params });
|
|
56
|
+
}
|
|
57
|
+
getPrefilledObjectFromObjectUrl(params) {
|
|
58
|
+
return this.http.get(`${this.valtimoEndpointUri}v1/object/form`, { params });
|
|
59
|
+
}
|
|
60
|
+
removeEmptyStringValuesFromSubmission(submission) {
|
|
61
|
+
return Object.fromEntries(Object.entries(submission).filter(([_, value]) => value !== ''));
|
|
62
|
+
}
|
|
63
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
64
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectService, providedIn: 'root' }); }
|
|
65
|
+
}
|
|
66
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectService, decorators: [{
|
|
67
|
+
type: Injectable,
|
|
68
|
+
args: [{
|
|
69
|
+
providedIn: 'root',
|
|
70
|
+
}]
|
|
71
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
|
|
72
|
+
|
|
73
|
+
/*
|
|
74
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
75
|
+
*
|
|
76
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
77
|
+
* you may not use this file except in compliance with the License.
|
|
78
|
+
* You may obtain a copy of the License at
|
|
79
|
+
*
|
|
80
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
81
|
+
*
|
|
82
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
83
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
84
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
85
|
+
* See the License for the specific language governing permissions and
|
|
86
|
+
* limitations under the License.
|
|
87
|
+
*/
|
|
88
|
+
var FormType;
|
|
89
|
+
(function (FormType) {
|
|
90
|
+
FormType["SUMMARY"] = "SUMMARY";
|
|
91
|
+
FormType["EDITFORM"] = "EDITFORM";
|
|
92
|
+
})(FormType || (FormType = {}));
|
|
93
|
+
var ColumnType;
|
|
94
|
+
(function (ColumnType) {
|
|
95
|
+
ColumnType["DEFAULT"] = "DEFAULT";
|
|
96
|
+
ColumnType["CUSTOM"] = "CUSTOM";
|
|
97
|
+
})(ColumnType || (ColumnType = {}));
|
|
98
|
+
|
|
99
|
+
/*
|
|
100
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
101
|
+
*
|
|
102
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
103
|
+
* you may not use this file except in compliance with the License.
|
|
104
|
+
* You may obtain a copy of the License at
|
|
105
|
+
*
|
|
106
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
107
|
+
*
|
|
108
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
109
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
110
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
111
|
+
* See the License for the specific language governing permissions and
|
|
112
|
+
* limitations under the License.
|
|
113
|
+
*/
|
|
114
|
+
class ObjectColumnService {
|
|
115
|
+
constructor(configService, objectManagementService) {
|
|
116
|
+
this.configService = configService;
|
|
117
|
+
this.objectManagementService = objectManagementService;
|
|
118
|
+
}
|
|
119
|
+
getObjectColumns(configurationId) {
|
|
120
|
+
return this.objectManagementService
|
|
121
|
+
.getSearchList(configurationId)
|
|
122
|
+
.pipe(map(objectListColumns => objectListColumns &&
|
|
123
|
+
Array.isArray(objectListColumns) &&
|
|
124
|
+
objectListColumns.length > 0 &&
|
|
125
|
+
this.mapObjectListColumnsToSearchColumns(objectListColumns)));
|
|
126
|
+
}
|
|
127
|
+
mapObjectListColumnsToSearchColumns(searchListColumns) {
|
|
128
|
+
return searchListColumns.map(searchListColumn => ({
|
|
129
|
+
translationKey: searchListColumn.key,
|
|
130
|
+
sortable: searchListColumn.sortable,
|
|
131
|
+
defaultSort: searchListColumn.defaultSort,
|
|
132
|
+
viewType: this.getDisplayType(searchListColumn.displayType.type),
|
|
133
|
+
propertyName: searchListColumn.path,
|
|
134
|
+
...(searchListColumn.title && { title: searchListColumn.title }),
|
|
135
|
+
...(searchListColumn?.displayType?.displayTypeParameters?.enum && {
|
|
136
|
+
enum: searchListColumn.displayType.displayTypeParameters.enum,
|
|
137
|
+
}),
|
|
138
|
+
...(searchListColumn.displayType?.displayTypeParameters?.dateFormat && {
|
|
139
|
+
format: searchListColumn.displayType?.displayTypeParameters?.dateFormat,
|
|
140
|
+
}),
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
getDisplayType(searchListColumnDisplayType) {
|
|
144
|
+
switch (searchListColumnDisplayType) {
|
|
145
|
+
default:
|
|
146
|
+
return searchListColumnDisplayType;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectColumnService, deps: [{ token: i2.ConfigService }, { token: i3.ObjectManagementService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
150
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectColumnService, providedIn: 'root' }); }
|
|
151
|
+
}
|
|
152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectColumnService, decorators: [{
|
|
153
|
+
type: Injectable,
|
|
154
|
+
args: [{
|
|
155
|
+
providedIn: 'root',
|
|
156
|
+
}]
|
|
157
|
+
}], ctorParameters: () => [{ type: i2.ConfigService }, { type: i3.ObjectManagementService }] });
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
161
|
+
*
|
|
162
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
163
|
+
* you may not use this file except in compliance with the License.
|
|
164
|
+
* You may obtain a copy of the License at
|
|
165
|
+
*
|
|
166
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
167
|
+
*
|
|
168
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
169
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
170
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
171
|
+
* See the License for the specific language governing permissions and
|
|
172
|
+
* limitations under the License.
|
|
173
|
+
*/
|
|
174
|
+
class ObjectListComponent {
|
|
175
|
+
paginationClicked(newPageNumber) {
|
|
176
|
+
this.currentPageAndSize$.pipe(take(1)).subscribe(currentPage => {
|
|
177
|
+
this.currentPageAndSize$.next({ ...currentPage, page: newPageNumber - 1 });
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
paginationSet(newPageSize) {
|
|
181
|
+
if (newPageSize) {
|
|
182
|
+
this.currentPageAndSize$.pipe(take(1)).subscribe(currentPage => {
|
|
183
|
+
this.currentPageAndSize$.next({ ...currentPage, size: newPageSize });
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
constructor(globalNotificationService, objectColumnService, objectManagementService, objectService, pageTitleService, route, router, translate, translateService) {
|
|
188
|
+
this.globalNotificationService = globalNotificationService;
|
|
189
|
+
this.objectColumnService = objectColumnService;
|
|
190
|
+
this.objectManagementService = objectManagementService;
|
|
191
|
+
this.objectService = objectService;
|
|
192
|
+
this.pageTitleService = pageTitleService;
|
|
193
|
+
this.route = route;
|
|
194
|
+
this.router = router;
|
|
195
|
+
this.translate = translate;
|
|
196
|
+
this.translateService = translateService;
|
|
197
|
+
this.loading$ = new BehaviorSubject(true);
|
|
198
|
+
this.submission$ = new BehaviorSubject({});
|
|
199
|
+
this.formValid$ = new BehaviorSubject(false);
|
|
200
|
+
this.showModal$ = new BehaviorSubject(false);
|
|
201
|
+
this.disableInput$ = new BehaviorSubject(false);
|
|
202
|
+
this.clearForm$ = new BehaviorSubject(false);
|
|
203
|
+
this.columnType$ = new BehaviorSubject(ColumnType.DEFAULT);
|
|
204
|
+
this.objectManagementId$ = this.route.params.pipe(map(params => params.objectManagementId), tap(objectManagementId => {
|
|
205
|
+
if (objectManagementId) {
|
|
206
|
+
this.objectManagementService.getObjectById(objectManagementId).subscribe(objectType => {
|
|
207
|
+
if (objectType.title) {
|
|
208
|
+
this.pageTitleService.setCustomPageTitle(objectType.title);
|
|
209
|
+
}
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
}));
|
|
213
|
+
this.refreshObjectList$ = new BehaviorSubject(null);
|
|
214
|
+
this.currentPageAndSize$ = new BehaviorSubject({
|
|
215
|
+
page: 0,
|
|
216
|
+
size: 10,
|
|
217
|
+
});
|
|
218
|
+
this.pageSizes$ = new BehaviorSubject({
|
|
219
|
+
collectionSize: 0,
|
|
220
|
+
});
|
|
221
|
+
this.pagination$ = combineLatest([
|
|
222
|
+
this.currentPageAndSize$,
|
|
223
|
+
this.pageSizes$,
|
|
224
|
+
]).pipe(map(([currentPage, sizes]) => ({ ...currentPage, ...sizes, page: currentPage.page + 1 })));
|
|
225
|
+
this.searchFieldValues$ = new BehaviorSubject({});
|
|
226
|
+
this.objectSearchFields$ = this.objectManagementId$.pipe(distinctUntilChanged(), switchMap(objectManagementId => this.objectManagementService.getSearchField(objectManagementId)), map(searchFields => searchFields.map(searchField => {
|
|
227
|
+
// @ts-ignore
|
|
228
|
+
searchField.dataType = searchField.dataType.toLowerCase();
|
|
229
|
+
// @ts-ignore
|
|
230
|
+
searchField.fieldType = searchField.fieldType.toLowerCase();
|
|
231
|
+
return searchField;
|
|
232
|
+
})));
|
|
233
|
+
this.objectConfiguration$ = combineLatest([
|
|
234
|
+
this.objectManagementId$,
|
|
235
|
+
this.currentPageAndSize$,
|
|
236
|
+
this.columnType$,
|
|
237
|
+
this.searchFieldValues$,
|
|
238
|
+
this.translateService.stream('key'),
|
|
239
|
+
this.refreshObjectList$,
|
|
240
|
+
]).pipe(switchMap(([objectManagementId, currentPage, columnType, searchFieldValues]) => {
|
|
241
|
+
const handleError = () => {
|
|
242
|
+
this.disableInput();
|
|
243
|
+
return of(null);
|
|
244
|
+
};
|
|
245
|
+
if (columnType === ColumnType.CUSTOM) {
|
|
246
|
+
return this.objectService
|
|
247
|
+
.postObjectsByObjectManagementId(objectManagementId, {
|
|
248
|
+
page: currentPage.page,
|
|
249
|
+
size: currentPage.size,
|
|
250
|
+
}, Object.keys(searchFieldValues).length > 0
|
|
251
|
+
? { otherFilters: this.mapSearchValuesToFilters(searchFieldValues) }
|
|
252
|
+
: {})
|
|
253
|
+
.pipe(catchError(() => handleError()));
|
|
254
|
+
}
|
|
255
|
+
return this.objectService
|
|
256
|
+
.getObjectsByObjectManagementId(objectManagementId, {
|
|
257
|
+
page: currentPage.page,
|
|
258
|
+
size: currentPage.size,
|
|
259
|
+
})
|
|
260
|
+
.pipe(catchError(() => handleError()));
|
|
261
|
+
}), tap(instanceRes => {
|
|
262
|
+
if (instanceRes != null) {
|
|
263
|
+
this.pageSizes$.pipe(take(1)).subscribe(sizes => {
|
|
264
|
+
// @ts-ignore
|
|
265
|
+
this.pageSizes$.next({ ...sizes, collectionSize: instanceRes.totalElements });
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
}), map(res => res?.content?.map(record => record?.items?.reduce((obj, item) => Object.assign(obj, { objectId: record.id }, { [item.key]: item.value }), {}))), tap(() => this.loading$.next(false)));
|
|
269
|
+
this.formDefinition$ = combineLatest([
|
|
270
|
+
this.objectManagementId$,
|
|
271
|
+
this.clearForm$,
|
|
272
|
+
]).pipe(switchMap(([objectManagementId]) => this.objectService
|
|
273
|
+
.getPrefilledObjectFromObjectUrl({ objectManagementId, formType: FormType.EDITFORM })
|
|
274
|
+
.pipe(catchError(error => {
|
|
275
|
+
this.handleRetrievingFormError(error);
|
|
276
|
+
this.disableInput();
|
|
277
|
+
return of(null).pipe(startWith(null));
|
|
278
|
+
}))), map(res => {
|
|
279
|
+
if (res != null) {
|
|
280
|
+
this.enableInput();
|
|
281
|
+
}
|
|
282
|
+
return res?.formDefinition;
|
|
283
|
+
}), startWith(null), finalize(() => this.loading$.next(false)));
|
|
284
|
+
this.columns$ = this.objectManagementId$.pipe(switchMap(objectManagementId => this.objectColumnService.getObjectColumns(objectManagementId)), map(res => res));
|
|
285
|
+
this.fields$ = combineLatest([
|
|
286
|
+
this.columns$,
|
|
287
|
+
this.translateService.stream('key'),
|
|
288
|
+
]).pipe(map(([columns]) => {
|
|
289
|
+
if (columns?.length > 0) {
|
|
290
|
+
this.columnType$.next(ColumnType.CUSTOM);
|
|
291
|
+
return [
|
|
292
|
+
...columns.map(column => {
|
|
293
|
+
const translationKey = `fieldLabels.${column.translationKey}`;
|
|
294
|
+
const translation = this.translateService.instant(translationKey);
|
|
295
|
+
const validTranslation = translation !== translationKey && translation;
|
|
296
|
+
return {
|
|
297
|
+
key: column.translationKey,
|
|
298
|
+
label: column.title || validTranslation || column.translationKey,
|
|
299
|
+
sortable: column.sortable,
|
|
300
|
+
...(column.viewType && { viewType: column.viewType || '' }),
|
|
301
|
+
...(column.enum && { enum: column.enum }),
|
|
302
|
+
...(column.format && { format: column.format }),
|
|
303
|
+
};
|
|
304
|
+
}),
|
|
305
|
+
];
|
|
306
|
+
}
|
|
307
|
+
this.columnType$.next(ColumnType.DEFAULT);
|
|
308
|
+
return this.setDefaultFields();
|
|
309
|
+
}));
|
|
310
|
+
}
|
|
311
|
+
openModal() {
|
|
312
|
+
this.showModal$.next(true);
|
|
313
|
+
}
|
|
314
|
+
closeModal() {
|
|
315
|
+
this.showModal$.next(false);
|
|
316
|
+
this.clearForm$.next(true);
|
|
317
|
+
}
|
|
318
|
+
onFormioChange(formio) {
|
|
319
|
+
if (formio.data != null) {
|
|
320
|
+
this.submission$.next(formio.data);
|
|
321
|
+
this.formValid$.next(formio.isValid);
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
addObject() {
|
|
325
|
+
this.disableInput();
|
|
326
|
+
combineLatest([this.objectManagementId$, this.submission$, this.formValid$])
|
|
327
|
+
.pipe(take(1), filter(([objectManagementId, submission, formValid]) => formValid), switchMap(([objectManagementId, submission]) => this.objectService
|
|
328
|
+
.createObject({ objectManagementId }, { ...this.objectService.removeEmptyStringValuesFromSubmission(submission) })
|
|
329
|
+
.pipe(take(1), catchError((error) => {
|
|
330
|
+
this.handleCreateObjectError(error);
|
|
331
|
+
return throwError(error);
|
|
332
|
+
}))), finalize(() => {
|
|
333
|
+
this.enableInput();
|
|
334
|
+
}))
|
|
335
|
+
.subscribe({
|
|
336
|
+
next: () => {
|
|
337
|
+
this.closeModal();
|
|
338
|
+
this.refreshObjectList();
|
|
339
|
+
this.clearForm$.next(true);
|
|
340
|
+
this.globalNotificationService.showToast({
|
|
341
|
+
title: this.translate.instant('object.messages.objectCreated'),
|
|
342
|
+
type: 'success',
|
|
343
|
+
});
|
|
344
|
+
},
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
redirectToDetails(record) {
|
|
348
|
+
const objectId = record.objectUrl ? record.objectUrl.split('/').pop() : record.objectId;
|
|
349
|
+
this.objectManagementId$.pipe(take(1)).subscribe(configurationId => {
|
|
350
|
+
this.router.navigate([`/objects/${configurationId}/${objectId}`]);
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
search(searchFieldValues) {
|
|
354
|
+
this.searchFieldValues$.next(searchFieldValues || {});
|
|
355
|
+
}
|
|
356
|
+
refreshObjectList() {
|
|
357
|
+
this.refreshObjectList$.next(null);
|
|
358
|
+
}
|
|
359
|
+
disableInput() {
|
|
360
|
+
this.disableInput$.next(true);
|
|
361
|
+
}
|
|
362
|
+
enableInput() {
|
|
363
|
+
this.disableInput$.next(false);
|
|
364
|
+
}
|
|
365
|
+
setDefaultFields() {
|
|
366
|
+
const keys = ['recordIndex', 'objectUrl'];
|
|
367
|
+
return keys.map(key => ({
|
|
368
|
+
label: `${this.translateService.instant(`object.labels.${key}`)}`,
|
|
369
|
+
key,
|
|
370
|
+
sortable: false,
|
|
371
|
+
type: 'string',
|
|
372
|
+
}));
|
|
373
|
+
}
|
|
374
|
+
handleRetrievingFormError(error) {
|
|
375
|
+
this.globalNotificationService.showToast({
|
|
376
|
+
title: this.translate.instant('object.messages.objectRetrievingFormError'),
|
|
377
|
+
type: 'error',
|
|
378
|
+
});
|
|
379
|
+
return throwError(error);
|
|
380
|
+
}
|
|
381
|
+
handleCreateObjectError(error) {
|
|
382
|
+
this.globalNotificationService.showToast({
|
|
383
|
+
title: this.translate.instant('object.messages.objectCreationError'),
|
|
384
|
+
type: 'error',
|
|
385
|
+
});
|
|
386
|
+
return throwError(error);
|
|
387
|
+
}
|
|
388
|
+
mapSearchValuesToFilters(values) {
|
|
389
|
+
const filters = [];
|
|
390
|
+
Object.keys(values).forEach(valueKey => {
|
|
391
|
+
const searchValue = values[valueKey];
|
|
392
|
+
if (searchValue.start) {
|
|
393
|
+
filters.push({ key: valueKey, rangeFrom: searchValue.start, rangeTo: searchValue.end });
|
|
394
|
+
}
|
|
395
|
+
else if (Array.isArray(searchValue)) {
|
|
396
|
+
filters.push({ key: valueKey, values: searchValue });
|
|
397
|
+
}
|
|
398
|
+
else {
|
|
399
|
+
// @ts-ignore
|
|
400
|
+
filters.push({ key: valueKey, values: [searchValue] });
|
|
401
|
+
}
|
|
402
|
+
});
|
|
403
|
+
return filters;
|
|
404
|
+
}
|
|
405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectListComponent, deps: [{ token: i2.GlobalNotificationService }, { token: ObjectColumnService }, { token: i3.ObjectManagementService }, { token: ObjectService }, { token: i1$1.PageTitleService }, { token: i6.ActivatedRoute }, { token: i6.Router }, { token: i7.TranslateService }, { token: i7.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
406
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ObjectListComponent, isStandalone: false, selector: "valtimo-object-list", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 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<ng-container\n *ngIf=\"{\n loading: loading$ | async,\n pagination: pagination$ | async,\n disableInput: disableInput$ | async,\n fields: fields$ | async,\n objectConfiguration: objectConfiguration$ | async,\n } as obs\"\n>\n <div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngTemplateOutlet=\"searchFields; context: {obs: obs}\"></ng-container>\n <ng-container *ngTemplateOutlet=\"list; context: {obs: obs}\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"createNewModal\"></ng-container>\n</ng-container>\n\n<ng-template #buttons let-obs=\"obs\">\n <button\n (click)=\"openModal()\"\n cdsButton=\"primary\"\n size=\"md\"\n class=\"ml-3\"\n [disabled]=\"obs.disableInput || obs.loading\"\n >\n {{ 'object.createObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-template #searchFields let-obs=\"obs\">\n <div class=\"mb-3\">\n <valtimo-search-fields\n [loading]=\"obs.loading\"\n [searchFields]=\"objectSearchFields$ | async\"\n (doSearch)=\"search($event)\"\n [objectManagementId]=\"objectManagementId$ | async\"\n [setValuesSubject$]=\"null\"\n ></valtimo-search-fields>\n </div>\n</ng-template>\n\n<ng-template #list let-obs=\"obs\">\n <valtimo-carbon-list\n [items]=\"obs.objectConfiguration\"\n [fields]=\"obs.fields\"\n [header]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"objectConfigurationList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"redirectToDetails($event)\"\n >\n <ng-container carbonToolbarContent>\n <button cdsButton=\"primary\" (click)=\"openModal()\">\n {{ 'object.createObject' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n </ng-container>\n </valtimo-carbon-list>\n</ng-template>\n\n<ng-template #createNewModal>\n <cds-modal\n valtimoCdsModal\n *ngIf=\"{\n show: showModal$ | async,\n formValid: formValid$ | async,\n formDefinition: formDefinition$ | async,\n disableInput: disableInput$ | async,\n } as modalObs\"\n [open]=\"modalObs.show\"\n (close)=\"closeModal()\"\n >\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>\n {{ 'object.createObject' | translate }}\n </h3>\n </cds-modal-header>\n <section cdsModalContent>\n <ng-container *ngTemplateOutlet=\"modalContent; context: {modalObs: modalObs}\"></ng-container>\n </section>\n <ng-container *ngTemplateOutlet=\"modalFooter; context: {modalObs: modalObs}\"></ng-container>\n </cds-modal>\n</ng-template>\n\n<ng-template #modalContent let-modalObs=\"modalObs\">\n <valtimo-form-io\n [form]=\"modalObs.formDefinition\"\n (change)=\"onFormioChange($event)\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #modalFooter let-modalObs=\"modalObs\">\n <cds-modal-footer>\n <ng-container>\n <button\n cdsButton=\"secondary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"closeModal()\"\n [disabled]=\"modalObs.disableInput\"\n >\n {{ 'object.close' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"addObject()\"\n [disabled]=\"modalObs.disableInput || modalObs.formValid === false\"\n >\n {{ 'object.save' | translate }}\n </button>\n </ng-container>\n </cds-modal-footer>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-carbon-list [loading]=\"true\"> </valtimo-carbon-list>\n</ng-template>\n", styles: [".loading-icon{display:flex;justify-content:center}\n/*!\n * Copyright 2015-2025 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"], dependencies: [{ kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i8$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i8$1.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i1$1.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change", "event"] }, { kind: "component", type: i8$1.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i8$1.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i8$1.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i8$1.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i8$1.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "component", type: i1$1.SearchFieldsComponent, selector: "valtimo-search-fields", inputs: ["loading", "searchFields", "caseDefinitionKey", "setValuesSubject$", "clearValuesSubject$", "defaultValues", "disableSaveSearch", "inputDisabled", "externalSearchField", "canSaveSearch"], outputs: ["doSearch", "saveSearchEvent", "clearEvent"] }, { kind: "directive", type: i1$1.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "component", type: i1$1.CarbonListComponent, selector: "valtimo-carbon-list", inputs: ["items", "fields", "tableTranslations", "paginatorConfig", "pagination", "loading", "actions", "actionItems", "showActionItems", "header", "hideColumnHeader", "initialSortState", "sortState", "isSearchable", "enableSingleSelection", "lastColumnTemplate", "paginationIdentifier", "showSelectionColumn", "striped", "hideToolbar", "lockedTooltipTranslationKey", "movingRowsEnabled", "dragAndDrop", "dragAndDropDisabled"], outputs: ["rowClicked", "paginationClicked", "paginationSet", "search", "sortChanged", "moveRow", "itemsReordered"] }, { kind: "pipe", type: i8.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
|
|
407
|
+
}
|
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectListComponent, decorators: [{
|
|
409
|
+
type: Component,
|
|
410
|
+
args: [{ standalone: false, selector: 'valtimo-object-list', template: "<!--\n ~ Copyright 2015-2025 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<ng-container\n *ngIf=\"{\n loading: loading$ | async,\n pagination: pagination$ | async,\n disableInput: disableInput$ | async,\n fields: fields$ | async,\n objectConfiguration: objectConfiguration$ | async,\n } as obs\"\n>\n <div class=\"main-content pt-0\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <ng-container *ngIf=\"obs.loading === false; else loading\">\n <ng-container *ngTemplateOutlet=\"searchFields; context: {obs: obs}\"></ng-container>\n <ng-container *ngTemplateOutlet=\"list; context: {obs: obs}\"></ng-container>\n </ng-container>\n </div>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"createNewModal\"></ng-container>\n</ng-container>\n\n<ng-template #buttons let-obs=\"obs\">\n <button\n (click)=\"openModal()\"\n cdsButton=\"primary\"\n size=\"md\"\n class=\"ml-3\"\n [disabled]=\"obs.disableInput || obs.loading\"\n >\n {{ 'object.createObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-template #searchFields let-obs=\"obs\">\n <div class=\"mb-3\">\n <valtimo-search-fields\n [loading]=\"obs.loading\"\n [searchFields]=\"objectSearchFields$ | async\"\n (doSearch)=\"search($event)\"\n [objectManagementId]=\"objectManagementId$ | async\"\n [setValuesSubject$]=\"null\"\n ></valtimo-search-fields>\n </div>\n</ng-template>\n\n<ng-template #list let-obs=\"obs\">\n <valtimo-carbon-list\n [items]=\"obs.objectConfiguration\"\n [fields]=\"obs.fields\"\n [header]=\"false\"\n [pagination]=\"obs.pagination\"\n paginationIdentifier=\"objectConfigurationList\"\n (paginationClicked)=\"paginationClicked($event)\"\n (paginationSet)=\"paginationSet($event)\"\n (rowClicked)=\"redirectToDetails($event)\"\n >\n <ng-container carbonToolbarContent>\n <button cdsButton=\"primary\" (click)=\"openModal()\">\n {{ 'object.createObject' | translate }}\n\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n </ng-container>\n </valtimo-carbon-list>\n</ng-template>\n\n<ng-template #createNewModal>\n <cds-modal\n valtimoCdsModal\n *ngIf=\"{\n show: showModal$ | async,\n formValid: formValid$ | async,\n formDefinition: formDefinition$ | async,\n disableInput: disableInput$ | async,\n } as modalObs\"\n [open]=\"modalObs.show\"\n (close)=\"closeModal()\"\n >\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>\n {{ 'object.createObject' | translate }}\n </h3>\n </cds-modal-header>\n <section cdsModalContent>\n <ng-container *ngTemplateOutlet=\"modalContent; context: {modalObs: modalObs}\"></ng-container>\n </section>\n <ng-container *ngTemplateOutlet=\"modalFooter; context: {modalObs: modalObs}\"></ng-container>\n </cds-modal>\n</ng-template>\n\n<ng-template #modalContent let-modalObs=\"modalObs\">\n <valtimo-form-io\n [form]=\"modalObs.formDefinition\"\n (change)=\"onFormioChange($event)\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #modalFooter let-modalObs=\"modalObs\">\n <cds-modal-footer>\n <ng-container>\n <button\n cdsButton=\"secondary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"closeModal()\"\n [disabled]=\"modalObs.disableInput\"\n >\n {{ 'object.close' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"addObject()\"\n [disabled]=\"modalObs.disableInput || modalObs.formValid === false\"\n >\n {{ 'object.save' | translate }}\n </button>\n </ng-container>\n </cds-modal-footer>\n</ng-template>\n\n<ng-template #loading>\n <valtimo-carbon-list [loading]=\"true\"> </valtimo-carbon-list>\n</ng-template>\n", styles: [".loading-icon{display:flex;justify-content:center}\n/*!\n * Copyright 2015-2025 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"] }]
|
|
411
|
+
}], ctorParameters: () => [{ type: i2.GlobalNotificationService }, { type: ObjectColumnService }, { type: i3.ObjectManagementService }, { type: ObjectService }, { type: i1$1.PageTitleService }, { type: i6.ActivatedRoute }, { type: i6.Router }, { type: i7.TranslateService }, { type: i7.TranslateService }] });
|
|
412
|
+
|
|
413
|
+
/*
|
|
414
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
415
|
+
*
|
|
416
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
417
|
+
* you may not use this file except in compliance with the License.
|
|
418
|
+
* You may obtain a copy of the License at
|
|
419
|
+
*
|
|
420
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
421
|
+
*
|
|
422
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
423
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
424
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
425
|
+
* See the License for the specific language governing permissions and
|
|
426
|
+
* limitations under the License.
|
|
427
|
+
*/
|
|
428
|
+
var TabEnum;
|
|
429
|
+
(function (TabEnum) {
|
|
430
|
+
TabEnum["GENERAL"] = "general";
|
|
431
|
+
})(TabEnum || (TabEnum = {}));
|
|
432
|
+
|
|
433
|
+
/*
|
|
434
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
435
|
+
*
|
|
436
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
437
|
+
* you may not use this file except in compliance with the License.
|
|
438
|
+
* You may obtain a copy of the License at
|
|
439
|
+
*
|
|
440
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
441
|
+
*
|
|
442
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
443
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
444
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
445
|
+
* See the License for the specific language governing permissions and
|
|
446
|
+
* limitations under the License.
|
|
447
|
+
*/
|
|
448
|
+
class ObjectStateService {
|
|
449
|
+
constructor() {
|
|
450
|
+
this._showModal$ = new Subject();
|
|
451
|
+
this._hideModal$ = new Subject();
|
|
452
|
+
this._refresh$ = new BehaviorSubject(null);
|
|
453
|
+
this._modalType$ = new BehaviorSubject('add');
|
|
454
|
+
}
|
|
455
|
+
get showModal$() {
|
|
456
|
+
return this._showModal$.asObservable();
|
|
457
|
+
}
|
|
458
|
+
get hideModal$() {
|
|
459
|
+
return this._hideModal$.asObservable();
|
|
460
|
+
}
|
|
461
|
+
get refresh$() {
|
|
462
|
+
return this._refresh$.asObservable();
|
|
463
|
+
}
|
|
464
|
+
get modalType$() {
|
|
465
|
+
return this._modalType$.asObservable();
|
|
466
|
+
}
|
|
467
|
+
showModal() {
|
|
468
|
+
this._showModal$.next(null);
|
|
469
|
+
}
|
|
470
|
+
hideModal() {
|
|
471
|
+
this._hideModal$.next(null);
|
|
472
|
+
}
|
|
473
|
+
refresh() {
|
|
474
|
+
this._refresh$.next(null);
|
|
475
|
+
}
|
|
476
|
+
setModalType(type) {
|
|
477
|
+
this._modalType$.next(type);
|
|
478
|
+
}
|
|
479
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
480
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectStateService, providedIn: 'root' }); }
|
|
481
|
+
}
|
|
482
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectStateService, decorators: [{
|
|
483
|
+
type: Injectable,
|
|
484
|
+
args: [{
|
|
485
|
+
providedIn: 'root',
|
|
486
|
+
}]
|
|
487
|
+
}], ctorParameters: () => [] });
|
|
488
|
+
|
|
489
|
+
/*
|
|
490
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
491
|
+
*
|
|
492
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
493
|
+
* you may not use this file except in compliance with the License.
|
|
494
|
+
* You may obtain a copy of the License at
|
|
495
|
+
*
|
|
496
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
497
|
+
*
|
|
498
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
499
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
500
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
501
|
+
* See the License for the specific language governing permissions and
|
|
502
|
+
* limitations under the License.
|
|
503
|
+
*/
|
|
504
|
+
class TabService {
|
|
505
|
+
constructor() {
|
|
506
|
+
this._currentTab$ = new BehaviorSubject(TabEnum.GENERAL);
|
|
507
|
+
}
|
|
508
|
+
get currentTab$() {
|
|
509
|
+
return this._currentTab$.asObservable();
|
|
510
|
+
}
|
|
511
|
+
set currentTab(tab) {
|
|
512
|
+
this._currentTab$.next(tab);
|
|
513
|
+
}
|
|
514
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TabService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
515
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TabService, providedIn: 'root' }); }
|
|
516
|
+
}
|
|
517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TabService, decorators: [{
|
|
518
|
+
type: Injectable,
|
|
519
|
+
args: [{
|
|
520
|
+
providedIn: 'root',
|
|
521
|
+
}]
|
|
522
|
+
}] });
|
|
523
|
+
|
|
524
|
+
/*
|
|
525
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
526
|
+
*
|
|
527
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
528
|
+
* you may not use this file except in compliance with the License.
|
|
529
|
+
* You may obtain a copy of the License at
|
|
530
|
+
*
|
|
531
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
532
|
+
*
|
|
533
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
534
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
535
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
536
|
+
* See the License for the specific language governing permissions and
|
|
537
|
+
* limitations under the License.
|
|
538
|
+
*/
|
|
539
|
+
class ObjectDetailComponent {
|
|
540
|
+
constructor(breadcrumbService, globalNotificationService, objectManagementService, objectService, route, router, translate) {
|
|
541
|
+
this.breadcrumbService = breadcrumbService;
|
|
542
|
+
this.globalNotificationService = globalNotificationService;
|
|
543
|
+
this.objectManagementService = objectManagementService;
|
|
544
|
+
this.objectService = objectService;
|
|
545
|
+
this.route = route;
|
|
546
|
+
this.router = router;
|
|
547
|
+
this.translate = translate;
|
|
548
|
+
this.loading$ = new BehaviorSubject(true);
|
|
549
|
+
this.submission$ = new BehaviorSubject({});
|
|
550
|
+
this.formValid$ = new BehaviorSubject(false);
|
|
551
|
+
this.showModal$ = new BehaviorSubject(false);
|
|
552
|
+
this.disableInput$ = new BehaviorSubject(false);
|
|
553
|
+
this.showDeleteModal$ = new Subject();
|
|
554
|
+
this.deleteObjectUrl$ = new BehaviorSubject('');
|
|
555
|
+
this.refreshObject$ = new BehaviorSubject(null);
|
|
556
|
+
this.objectManagementId$ = this.route.params.pipe(map(params => params.objectManagementId), tap(objectManagementId => {
|
|
557
|
+
if (!this._settingBreadcrumb && objectManagementId) {
|
|
558
|
+
this._settingBreadcrumb = true;
|
|
559
|
+
this.objectManagementService.getObjectById(objectManagementId).subscribe(objectType => {
|
|
560
|
+
if (objectType.id && objectType.title) {
|
|
561
|
+
this.setBreadcrumb(objectType.id, objectType.title);
|
|
562
|
+
}
|
|
563
|
+
});
|
|
564
|
+
}
|
|
565
|
+
}));
|
|
566
|
+
this.objectId$ = this.route.params.pipe(map(params => params.objectId));
|
|
567
|
+
this.formioFormSummary$ = combineLatest([
|
|
568
|
+
this.objectManagementId$,
|
|
569
|
+
this.objectId$,
|
|
570
|
+
this.refreshObject$,
|
|
571
|
+
]).pipe(switchMap(([objectManagementId, objectId]) => this.objectService
|
|
572
|
+
.getPrefilledObjectFromObjectUrl({ objectManagementId, objectId, formType: FormType.SUMMARY })
|
|
573
|
+
.pipe(catchError(() => this.handleRetrievingFormError()))), map(res => res?.formDefinition), tap(() => this.loading$.next(false)));
|
|
574
|
+
this.formioFormEdit$ = combineLatest([
|
|
575
|
+
this.objectManagementId$,
|
|
576
|
+
this.objectId$,
|
|
577
|
+
this.refreshObject$,
|
|
578
|
+
]).pipe(switchMap(([objectManagementId, objectId]) => this.objectService
|
|
579
|
+
.getPrefilledObjectFromObjectUrl({
|
|
580
|
+
objectManagementId,
|
|
581
|
+
objectId,
|
|
582
|
+
formType: FormType.EDITFORM,
|
|
583
|
+
})
|
|
584
|
+
.pipe(catchError(() => {
|
|
585
|
+
this.disableInput();
|
|
586
|
+
return this.handleRetrievingFormError();
|
|
587
|
+
}))), map(res => res?.formDefinition), tap(() => this.loading$.next(false)));
|
|
588
|
+
this._settingBreadcrumb = false;
|
|
589
|
+
}
|
|
590
|
+
ngOnDestroy() {
|
|
591
|
+
this.breadcrumbService.clearSecondBreadcrumb();
|
|
592
|
+
}
|
|
593
|
+
saveObject() {
|
|
594
|
+
this.disableInput();
|
|
595
|
+
this.updateObject();
|
|
596
|
+
}
|
|
597
|
+
deleteObject() {
|
|
598
|
+
this.showDeleteModal$.next(true);
|
|
599
|
+
}
|
|
600
|
+
deleteObjectConfirmation() {
|
|
601
|
+
this.disableInput();
|
|
602
|
+
combineLatest([this.objectManagementId$, this.objectId$])
|
|
603
|
+
.pipe(take(1))
|
|
604
|
+
.subscribe(([objectManagementId, objectId]) => {
|
|
605
|
+
this.objectService
|
|
606
|
+
.deleteObject({ objectManagementId, objectId })
|
|
607
|
+
.pipe(take(1), catchError((error) => this.handleDeleteObjectError(error)), finalize(() => {
|
|
608
|
+
this.enableInput();
|
|
609
|
+
}))
|
|
610
|
+
.subscribe(() => {
|
|
611
|
+
this.closeModal();
|
|
612
|
+
this.globalNotificationService.showToast({
|
|
613
|
+
title: this.translate.instant('object.messages.objectDeleted'),
|
|
614
|
+
type: 'success',
|
|
615
|
+
});
|
|
616
|
+
this.router.navigate([`/objects/${objectManagementId}`]);
|
|
617
|
+
});
|
|
618
|
+
});
|
|
619
|
+
}
|
|
620
|
+
openModal() {
|
|
621
|
+
this.showModal$.next(true);
|
|
622
|
+
this.enableInput();
|
|
623
|
+
}
|
|
624
|
+
onFormioChange(formio) {
|
|
625
|
+
if (formio.data != null) {
|
|
626
|
+
this.submission$.next(formio.data);
|
|
627
|
+
this.formValid$.next(formio.isValid);
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
closeModal() {
|
|
631
|
+
this.showModal$.next(false);
|
|
632
|
+
}
|
|
633
|
+
updateObject() {
|
|
634
|
+
this.disableInput();
|
|
635
|
+
combineLatest([this.objectManagementId$, this.objectId$, this.submission$, this.formValid$])
|
|
636
|
+
.pipe(take(1))
|
|
637
|
+
.subscribe(([objectManagementId, objectId, submission, formValid]) => {
|
|
638
|
+
if (formValid) {
|
|
639
|
+
submission = this.objectService.removeEmptyStringValuesFromSubmission(submission);
|
|
640
|
+
this.objectService
|
|
641
|
+
.updateObject({ objectManagementId, objectId }, { ...submission })
|
|
642
|
+
.pipe(take(1), catchError((error) => this.handleUpdateObjectError(error)), finalize(() => {
|
|
643
|
+
this.enableInput();
|
|
644
|
+
}))
|
|
645
|
+
.subscribe(() => {
|
|
646
|
+
this.closeModal();
|
|
647
|
+
this.refreshObject();
|
|
648
|
+
this.globalNotificationService.showToast({
|
|
649
|
+
title: this.translate.instant('object.messages.objectUpdated'),
|
|
650
|
+
type: 'success',
|
|
651
|
+
});
|
|
652
|
+
});
|
|
653
|
+
}
|
|
654
|
+
});
|
|
655
|
+
}
|
|
656
|
+
refreshObject() {
|
|
657
|
+
this.refreshObject$.next(null);
|
|
658
|
+
}
|
|
659
|
+
disableInput() {
|
|
660
|
+
this.disableInput$.next(true);
|
|
661
|
+
}
|
|
662
|
+
enableInput() {
|
|
663
|
+
this.disableInput$.next(false);
|
|
664
|
+
}
|
|
665
|
+
handleRetrievingFormError() {
|
|
666
|
+
this.globalNotificationService.showToast({
|
|
667
|
+
title: this.translate.instant('object.messages.objectRetrievingFormError'),
|
|
668
|
+
type: 'error',
|
|
669
|
+
});
|
|
670
|
+
this.loading$.next(false);
|
|
671
|
+
return of(null);
|
|
672
|
+
}
|
|
673
|
+
handleUpdateObjectError(error) {
|
|
674
|
+
this.closeModal();
|
|
675
|
+
this.globalNotificationService.showToast({
|
|
676
|
+
title: this.translate.instant('object.messages.objectUpdateError'),
|
|
677
|
+
type: 'error',
|
|
678
|
+
});
|
|
679
|
+
return throwError(error);
|
|
680
|
+
}
|
|
681
|
+
handleDeleteObjectError(error) {
|
|
682
|
+
this.closeModal();
|
|
683
|
+
this.globalNotificationService.showToast({
|
|
684
|
+
title: this.translate.instant('object.messages.objectDeleteError'),
|
|
685
|
+
type: 'error',
|
|
686
|
+
});
|
|
687
|
+
return throwError(error);
|
|
688
|
+
}
|
|
689
|
+
setBreadcrumb(objectTypeId, title) {
|
|
690
|
+
this.breadcrumbService.setSecondBreadcrumb({
|
|
691
|
+
route: [`/objects/${objectTypeId}`],
|
|
692
|
+
content: title,
|
|
693
|
+
href: `/objects/${objectTypeId}`,
|
|
694
|
+
});
|
|
695
|
+
}
|
|
696
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectDetailComponent, deps: [{ token: i1$1.BreadcrumbService }, { token: i2.GlobalNotificationService }, { token: i3.ObjectManagementService }, { token: ObjectService }, { token: i6.ActivatedRoute }, { token: i6.Router }, { token: i7.TranslateService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
697
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ObjectDetailComponent, isStandalone: false, selector: "valtimo-object-detail", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 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<ng-container\n *ngIf=\"{\n formioFormSummary: formioFormSummary$ | async,\n disableInput: disableInput$ | async,\n } as obs\"\n>\n <div class=\"container-fluid pr-0 pl-0\">\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"text-right\">\n <div class=\"btn-group mb-1\">\n <ng-container *ngTemplateOutlet=\"buttons; context: {obs: obs}\"></ng-container>\n </div>\n </div>\n </div>\n <div class=\"col-12\">\n <ng-container *ngTemplateOutlet=\"widget; context: {obs: obs}\"></ng-container>\n </div>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"createEditModal\"></ng-container>\n <ng-container *ngTemplateOutlet=\"deleteModal\"></ng-container>\n</ng-container>\n\n<ng-template #buttons let-obs=\"obs\">\n <button [disabled]=\"obs.disableInput\" (click)=\"openModal()\" cdsButton=\"primary\" size=\"md\">\n {{ 'object.editObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n\n <button (click)=\"deleteObject()\" cdsButton=\"danger\" size=\"md\" class=\"ml-3\">\n {{ 'object.deleteObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-template #widget let-obs=\"obs\">\n <valtimo-form-io\n *ngIf=\"obs.formioFormSummary\"\n [form]=\"obs.formioFormSummary\"\n [readOnly]=\"true\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #createEditModal>\n <cds-modal\n valtimoCdsModal\n *ngIf=\"{\n show: showModal$ | async,\n formValid: formValid$ | async,\n disableInput: disableInput$ | async,\n formioFormEdit: formioFormEdit$ | async,\n } as modalObs\"\n [open]=\"modalObs.show\"\n (close)=\"closeModal()\"\n >\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>\n {{ 'object.editObject' | translate }}\n </h3>\n </cds-modal-header>\n <section cdsModalContent>\n <ng-container *ngTemplateOutlet=\"modalContent; context: {modalObs: modalObs}\"></ng-container>\n </section>\n <ng-container *ngTemplateOutlet=\"modalFooter; context: {modalObs: modalObs}\"></ng-container>\n </cds-modal>\n</ng-template>\n\n<ng-template #modalContent let-modalObs=\"modalObs\">\n <valtimo-form-io\n [form]=\"modalObs.formioFormEdit\"\n (change)=\"onFormioChange($event)\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #modalFooter let-modalObs=\"modalObs\">\n <cds-modal-footer>\n <ng-container>\n <button\n cdsButton=\"secondary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"closeModal()\"\n [disabled]=\"modalObs.disableInput\"\n >\n {{ 'object.close' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"saveObject()\"\n [disabled]=\"modalObs.disableInput || modalObs.formValid === false\"\n >\n {{ 'object.save' | translate }}\n </button>\n </ng-container>\n </cds-modal-footer>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-icon\"><cds-loading></cds-loading></div>\n</ng-template>\n\n<ng-template #deleteModal>\n <valtimo-confirmation-modal\n [showModalSubject$]=\"showDeleteModal$\"\n [outputOnConfirm]=\"deleteObjectUrl$ | async\"\n (confirmEvent)=\"deleteObjectConfirmation()\"\n confirmButtonTextTranslationKey=\"object.deleteObject\"\n titleTranslationKey=\"object.deleteObject\"\n contentTranslationKey=\"object.deleteObjectConfirmation\"\n ></valtimo-confirmation-modal>\n</ng-template>\n", styles: [".row{margin:0}.object-schema{resize:none}valtimo-widget::ng-deep .card-border.card-full-default{border:none}\n/*!\n * Copyright 2015-2025 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"], dependencies: [{ kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i8$1.Button, selector: "[cdsButton], [ibmButton]", inputs: ["ibmButton", "cdsButton", "size", "skeleton", "iconOnly", "isExpressive"] }, { kind: "directive", type: i8$1.IconDirective, selector: "[cdsIcon], [ibmIcon]", inputs: ["ibmIcon", "cdsIcon", "size", "title", "ariaLabel", "ariaLabelledBy", "ariaHidden", "isFocusable"] }, { kind: "component", type: i8$1.Loading, selector: "cds-loading, ibm-loading", inputs: ["title", "isActive", "size", "overlay"] }, { kind: "component", type: i1$1.FormioComponent, selector: "valtimo-form-io", inputs: ["options", "submission", "form", "readOnly", "formRefresh$"], outputs: ["submit", "change", "event"] }, { kind: "component", type: i8$1.Modal, selector: "cds-modal, ibm-modal", inputs: ["size", "theme", "ariaLabel", "open", "trigger", "hasScrollingContent"], outputs: ["overlaySelected", "close"] }, { kind: "component", type: i8$1.ModalHeader, selector: "cds-modal-header, ibm-modal-header", inputs: ["theme", "closeLabel", "showCloseButton"], outputs: ["closeSelect"] }, { kind: "component", type: i8$1.ModalFooter, selector: "cds-modal-footer, ibm-modal-footer" }, { kind: "directive", type: i8$1.ModalContent, selector: "[cdsModalContent], [ibmModalContent]", inputs: ["hasForm"] }, { kind: "directive", type: i8$1.ModalHeaderHeading, selector: "[cdsModalHeaderHeading], [ibmModalHeaderHeading]" }, { kind: "component", type: i1$1.ConfirmationModalComponent, selector: "valtimo-confirmation-modal", inputs: ["titleTranslationKey", "title", "content", "contentTranslationKey", "confirmButtonText", "confirmButtonTextTranslationKey", "confirmButtonType", "showOptionalButton", "optionalButtonText", "optionalButtonTextTranslationKey", "optionalButtonType", "cancelButtonText", "cancelButtonTextTranslationKey", "cancelButtonType", "showModalSubject$", "outputOnConfirm", "outputOnOptional", "spacerAfterCancelButton"], outputs: ["confirmEvent", "optionalEvent", "cancelEvent"] }, { kind: "directive", type: i1$1.ValtimoCdsModalDirective, selector: "[valtimoCdsModal]", inputs: ["minContentHeight"] }, { kind: "pipe", type: i8.AsyncPipe, name: "async" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
|
|
698
|
+
}
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectDetailComponent, decorators: [{
|
|
700
|
+
type: Component,
|
|
701
|
+
args: [{ standalone: false, selector: 'valtimo-object-detail', template: "<!--\n ~ Copyright 2015-2025 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<ng-container\n *ngIf=\"{\n formioFormSummary: formioFormSummary$ | async,\n disableInput: disableInput$ | async,\n } as obs\"\n>\n <div class=\"container-fluid pr-0 pl-0\">\n <div class=\"row\">\n <div class=\"col-12\">\n <div class=\"text-right\">\n <div class=\"btn-group mb-1\">\n <ng-container *ngTemplateOutlet=\"buttons; context: {obs: obs}\"></ng-container>\n </div>\n </div>\n </div>\n <div class=\"col-12\">\n <ng-container *ngTemplateOutlet=\"widget; context: {obs: obs}\"></ng-container>\n </div>\n </div>\n </div>\n <ng-container *ngTemplateOutlet=\"createEditModal\"></ng-container>\n <ng-container *ngTemplateOutlet=\"deleteModal\"></ng-container>\n</ng-container>\n\n<ng-template #buttons let-obs=\"obs\">\n <button [disabled]=\"obs.disableInput\" (click)=\"openModal()\" cdsButton=\"primary\" size=\"md\">\n {{ 'object.editObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"add\" size=\"16\"></svg>\n </button>\n\n <button (click)=\"deleteObject()\" cdsButton=\"danger\" size=\"md\" class=\"ml-3\">\n {{ 'object.deleteObject' | translate }}\n <svg class=\"cds--btn__icon\" cdsIcon=\"trash-can\" size=\"16\"></svg>\n </button>\n</ng-template>\n\n<ng-template #widget let-obs=\"obs\">\n <valtimo-form-io\n *ngIf=\"obs.formioFormSummary\"\n [form]=\"obs.formioFormSummary\"\n [readOnly]=\"true\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #createEditModal>\n <cds-modal\n valtimoCdsModal\n *ngIf=\"{\n show: showModal$ | async,\n formValid: formValid$ | async,\n disableInput: disableInput$ | async,\n formioFormEdit: formioFormEdit$ | async,\n } as modalObs\"\n [open]=\"modalObs.show\"\n (close)=\"closeModal()\"\n >\n <cds-modal-header [showCloseButton]=\"true\" (closeSelect)=\"closeModal()\">\n <h3 cdsModalHeaderHeading>\n {{ 'object.editObject' | translate }}\n </h3>\n </cds-modal-header>\n <section cdsModalContent>\n <ng-container *ngTemplateOutlet=\"modalContent; context: {modalObs: modalObs}\"></ng-container>\n </section>\n <ng-container *ngTemplateOutlet=\"modalFooter; context: {modalObs: modalObs}\"></ng-container>\n </cds-modal>\n</ng-template>\n\n<ng-template #modalContent let-modalObs=\"modalObs\">\n <valtimo-form-io\n [form]=\"modalObs.formioFormEdit\"\n (change)=\"onFormioChange($event)\"\n ></valtimo-form-io>\n</ng-template>\n\n<ng-template #modalFooter let-modalObs=\"modalObs\">\n <cds-modal-footer>\n <ng-container>\n <button\n cdsButton=\"secondary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"closeModal()\"\n [disabled]=\"modalObs.disableInput\"\n >\n {{ 'object.close' | translate }}\n </button>\n <button\n cdsButton=\"primary\"\n [attr.modal-primary-focus]=\"true\"\n (click)=\"saveObject()\"\n [disabled]=\"modalObs.disableInput || modalObs.formValid === false\"\n >\n {{ 'object.save' | translate }}\n </button>\n </ng-container>\n </cds-modal-footer>\n</ng-template>\n\n<ng-template #loading>\n <div class=\"loading-icon\"><cds-loading></cds-loading></div>\n</ng-template>\n\n<ng-template #deleteModal>\n <valtimo-confirmation-modal\n [showModalSubject$]=\"showDeleteModal$\"\n [outputOnConfirm]=\"deleteObjectUrl$ | async\"\n (confirmEvent)=\"deleteObjectConfirmation()\"\n confirmButtonTextTranslationKey=\"object.deleteObject\"\n titleTranslationKey=\"object.deleteObject\"\n contentTranslationKey=\"object.deleteObjectConfirmation\"\n ></valtimo-confirmation-modal>\n</ng-template>\n", styles: [".row{margin:0}.object-schema{resize:none}valtimo-widget::ng-deep .card-border.card-full-default{border:none}\n/*!\n * Copyright 2015-2025 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"] }]
|
|
702
|
+
}], ctorParameters: () => [{ type: i1$1.BreadcrumbService }, { type: i2.GlobalNotificationService }, { type: i3.ObjectManagementService }, { type: ObjectService }, { type: i6.ActivatedRoute }, { type: i6.Router }, { type: i7.TranslateService }] });
|
|
703
|
+
|
|
704
|
+
/*
|
|
705
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
706
|
+
*
|
|
707
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
708
|
+
* you may not use this file except in compliance with the License.
|
|
709
|
+
* You may obtain a copy of the License at
|
|
710
|
+
*
|
|
711
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
712
|
+
*
|
|
713
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
714
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
715
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
716
|
+
* See the License for the specific language governing permissions and
|
|
717
|
+
* limitations under the License.
|
|
718
|
+
*/
|
|
719
|
+
class ObjectDetailContainerComponent {
|
|
720
|
+
constructor(objectState, objectService, route, configService, tabService) {
|
|
721
|
+
this.objectState = objectState;
|
|
722
|
+
this.objectService = objectService;
|
|
723
|
+
this.route = route;
|
|
724
|
+
this.configService = configService;
|
|
725
|
+
this.tabService = tabService;
|
|
726
|
+
this.TabEnum = TabEnum;
|
|
727
|
+
this.objectManagementId$ = this.route.params.pipe(map(params => params.objectManagementId));
|
|
728
|
+
this.caseListColumn = this.configService.config.featureToggles?.caseListColumn ?? true;
|
|
729
|
+
}
|
|
730
|
+
ngOnInit() {
|
|
731
|
+
this.openCurrentTabSubscription();
|
|
732
|
+
}
|
|
733
|
+
displayBodyComponent(tab) {
|
|
734
|
+
this.tabService.currentTab = tab;
|
|
735
|
+
}
|
|
736
|
+
openCurrentTabSubscription() {
|
|
737
|
+
this.tabSubscription = this.tabService.currentTab$.subscribe(value => (this.currentTab = value));
|
|
738
|
+
}
|
|
739
|
+
ngOnDestroy() {
|
|
740
|
+
this.tabService.currentTab = TabEnum.GENERAL;
|
|
741
|
+
this.tabSubscription?.unsubscribe();
|
|
742
|
+
}
|
|
743
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectDetailContainerComponent, deps: [{ token: ObjectStateService }, { token: ObjectService }, { token: i6.ActivatedRoute }, { token: i2.ConfigService }, { token: TabService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
744
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: ObjectDetailContainerComponent, isStandalone: false, selector: "valtimo-object-detail-container", ngImport: i0, template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <ng-container *ngTemplateOutlet=\"title\"></ng-container>\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n <ng-container *ngTemplateOutlet=\"tabContent\"></ng-container>\n </valtimo-widget>\n </div>\n </div>\n</div>\n\n<ng-template #title>\n <div class=\"bg-light dossier-header\">\n <h3 class=\"dossier-title\">\n {{ 'object.header' | translate }}\n </h3>\n </div>\n</ng-template>\n\n<ng-template #tabs>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\">\n <a\n id=\"general-tab\"\n class=\"nav-link clickable active\"\n data-toggle=\"tab\"\n (click)=\"displayBodyComponent(TabEnum.GENERAL)\"\n >\n {{ 'object.tabs.general' | translate }}\n </a>\n </li>\n </ul>\n</ng-template>\n\n<ng-template #tabContent>\n <div class=\"pl-1 pr-1 pt-3 bg-white position-relative tab-container\">\n <div *ngIf=\"currentTab && currentTab === TabEnum.GENERAL\">\n <valtimo-object-detail></valtimo-object-detail>\n </div>\n </div>\n</ng-template>\n", styles: [".tab-container{min-height:300px}.dossier-header{height:80px;padding-top:21px;padding-left:18px;padding-right:18px;border-bottom:1px solid rgba(0,0,0,.125)}.dossier-title{margin-top:0;margin-bottom:7px}\n/*!\n * Copyright 2015-2025 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"], dependencies: [{ kind: "directive", type: i8.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i1$1.WidgetComponent, selector: "valtimo-widget", inputs: ["type", "name", "icon", "contrast", "divider", "title", "subtitle", "collapseAble", "collapse", "additionalClasses"] }, { kind: "component", type: ObjectDetailComponent, selector: "valtimo-object-detail" }, { kind: "pipe", type: i7.TranslatePipe, name: "translate" }] }); }
|
|
745
|
+
}
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectDetailContainerComponent, decorators: [{
|
|
747
|
+
type: Component,
|
|
748
|
+
args: [{ standalone: false, selector: 'valtimo-object-detail-container', template: "<!--\n ~ Copyright 2015-2025 Ritense BV, the Netherlands.\n ~\n ~ Licensed under EUPL, Version 1.2 (the \"License\");\n ~ you may not use this file except in compliance with the License.\n ~ You may obtain a copy of the License at\n ~\n ~ https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12\n ~\n ~ Unless required by applicable law or agreed to in writing, software\n ~ distributed under the License is distributed on an \"AS IS\" basis,\n ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n ~ See the License for the specific language governing permissions and\n ~ limitations under the License.\n -->\n\n<div class=\"main-content\">\n <div class=\"container-fluid\">\n <div class=\"col-12 px-0 mb-5\">\n <valtimo-widget>\n <ng-container *ngTemplateOutlet=\"title\"></ng-container>\n <ng-container *ngTemplateOutlet=\"tabs\"></ng-container>\n <ng-container *ngTemplateOutlet=\"tabContent\"></ng-container>\n </valtimo-widget>\n </div>\n </div>\n</div>\n\n<ng-template #title>\n <div class=\"bg-light dossier-header\">\n <h3 class=\"dossier-title\">\n {{ 'object.header' | translate }}\n </h3>\n </div>\n</ng-template>\n\n<ng-template #tabs>\n <ul class=\"nav nav-tabs\">\n <li class=\"nav-item\">\n <a\n id=\"general-tab\"\n class=\"nav-link clickable active\"\n data-toggle=\"tab\"\n (click)=\"displayBodyComponent(TabEnum.GENERAL)\"\n >\n {{ 'object.tabs.general' | translate }}\n </a>\n </li>\n </ul>\n</ng-template>\n\n<ng-template #tabContent>\n <div class=\"pl-1 pr-1 pt-3 bg-white position-relative tab-container\">\n <div *ngIf=\"currentTab && currentTab === TabEnum.GENERAL\">\n <valtimo-object-detail></valtimo-object-detail>\n </div>\n </div>\n</ng-template>\n", styles: [".tab-container{min-height:300px}.dossier-header{height:80px;padding-top:21px;padding-left:18px;padding-right:18px;border-bottom:1px solid rgba(0,0,0,.125)}.dossier-title{margin-top:0;margin-bottom:7px}\n/*!\n * Copyright 2015-2025 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"] }]
|
|
749
|
+
}], ctorParameters: () => [{ type: ObjectStateService }, { type: ObjectService }, { type: i6.ActivatedRoute }, { type: i2.ConfigService }, { type: TabService }] });
|
|
750
|
+
|
|
751
|
+
/*
|
|
752
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
753
|
+
*
|
|
754
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
755
|
+
* you may not use this file except in compliance with the License.
|
|
756
|
+
* You may obtain a copy of the License at
|
|
757
|
+
*
|
|
758
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
759
|
+
*
|
|
760
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
761
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
762
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
763
|
+
* See the License for the specific language governing permissions and
|
|
764
|
+
* limitations under the License.
|
|
765
|
+
*/
|
|
766
|
+
const routes = [
|
|
767
|
+
{
|
|
768
|
+
path: 'objects/:objectManagementId',
|
|
769
|
+
canActivate: [AuthGuardService],
|
|
770
|
+
component: ObjectListComponent,
|
|
771
|
+
data: { title: 'Objects', roles: [ROLE_USER], customPageTitle: true },
|
|
772
|
+
},
|
|
773
|
+
{
|
|
774
|
+
path: 'objects/:objectManagementId/:objectId',
|
|
775
|
+
canActivate: [AuthGuardService],
|
|
776
|
+
component: ObjectDetailContainerComponent,
|
|
777
|
+
data: { title: 'object.header', roles: [ROLE_USER] },
|
|
778
|
+
},
|
|
779
|
+
];
|
|
780
|
+
class ObjectRoutingModule {
|
|
781
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
782
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: ObjectRoutingModule, imports: [CommonModule, i6.RouterModule], exports: [RouterModule] }); }
|
|
783
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectRoutingModule, imports: [CommonModule, RouterModule.forChild(routes), RouterModule] }); }
|
|
784
|
+
}
|
|
785
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectRoutingModule, decorators: [{
|
|
786
|
+
type: NgModule,
|
|
787
|
+
args: [{
|
|
788
|
+
imports: [CommonModule, RouterModule.forChild(routes)],
|
|
789
|
+
exports: [RouterModule],
|
|
790
|
+
declarations: [],
|
|
791
|
+
}]
|
|
792
|
+
}] });
|
|
793
|
+
|
|
794
|
+
/*
|
|
795
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
796
|
+
*
|
|
797
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
798
|
+
* you may not use this file except in compliance with the License.
|
|
799
|
+
* You may obtain a copy of the License at
|
|
800
|
+
*
|
|
801
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
802
|
+
*
|
|
803
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
804
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
805
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
806
|
+
* See the License for the specific language governing permissions and
|
|
807
|
+
* limitations under the License.
|
|
808
|
+
*/
|
|
809
|
+
class ObjectMenuService {
|
|
810
|
+
constructor(http, configService) {
|
|
811
|
+
this.http = http;
|
|
812
|
+
this.configService = configService;
|
|
813
|
+
this.appendObjectMenuItems = (menuItems) => {
|
|
814
|
+
const apiBaseUrl = this.configService.config.valtimoApi.endpointUri;
|
|
815
|
+
return this.getObjects(apiBaseUrl).pipe(map$1(objects => {
|
|
816
|
+
const visibleObjects = objects.filter(obj => obj?.showInDataMenu !== false);
|
|
817
|
+
const objectItems = visibleObjects.map((obj, index) => ({
|
|
818
|
+
link: ['/objects/' + obj.id],
|
|
819
|
+
title: obj.title,
|
|
820
|
+
iconClass: 'icon mdi mdi-dot-circle',
|
|
821
|
+
sequence: index,
|
|
822
|
+
show: true,
|
|
823
|
+
}));
|
|
824
|
+
const index = menuItems.findIndex(item => item.title === 'Objects');
|
|
825
|
+
if (index >= 0) {
|
|
826
|
+
menuItems[index].children = objectItems;
|
|
827
|
+
}
|
|
828
|
+
return menuItems;
|
|
829
|
+
}));
|
|
830
|
+
};
|
|
831
|
+
}
|
|
832
|
+
getObjects(apiBaseUrl) {
|
|
833
|
+
const url = `${apiBaseUrl}v1/object/management/configuration`;
|
|
834
|
+
return this.http.get(url);
|
|
835
|
+
}
|
|
836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectMenuService, deps: [{ token: i1.HttpClient }, { token: i2.ConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
837
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectMenuService, providedIn: 'root' }); }
|
|
838
|
+
}
|
|
839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectMenuService, decorators: [{
|
|
840
|
+
type: Injectable,
|
|
841
|
+
args: [{ providedIn: 'root' }]
|
|
842
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.ConfigService }] });
|
|
843
|
+
|
|
844
|
+
/*
|
|
845
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
846
|
+
*
|
|
847
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
848
|
+
* you may not use this file except in compliance with the License.
|
|
849
|
+
* You may obtain a copy of the License at
|
|
850
|
+
*
|
|
851
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
852
|
+
*
|
|
853
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
854
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
855
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
856
|
+
* See the License for the specific language governing permissions and
|
|
857
|
+
* limitations under the License.
|
|
858
|
+
*/
|
|
859
|
+
|
|
860
|
+
/*
|
|
861
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
862
|
+
*
|
|
863
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
864
|
+
* you may not use this file except in compliance with the License.
|
|
865
|
+
* You may obtain a copy of the License at
|
|
866
|
+
*
|
|
867
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
868
|
+
*
|
|
869
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
870
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
871
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
872
|
+
* See the License for the specific language governing permissions and
|
|
873
|
+
* limitations under the License.
|
|
874
|
+
*/
|
|
875
|
+
class ObjectModule {
|
|
876
|
+
constructor(menuService, configService, objectMenuService) {
|
|
877
|
+
this.menuService = menuService;
|
|
878
|
+
this.configService = configService;
|
|
879
|
+
this.objectMenuService = objectMenuService;
|
|
880
|
+
const enabled = this.configService.config?.featureToggles?.enableObjectManagement;
|
|
881
|
+
if (!enabled)
|
|
882
|
+
return;
|
|
883
|
+
this.menuService.registerAppendMenuItemsFunction(this.objectMenuService.appendObjectMenuItems);
|
|
884
|
+
}
|
|
885
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectModule, deps: [{ token: i1$1.MenuService }, { token: i2.ConfigService }, { token: ObjectMenuService }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
886
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: ObjectModule, declarations: [ObjectListComponent, ObjectDetailContainerComponent, ObjectDetailComponent], imports: [CommonModule,
|
|
887
|
+
ObjectRoutingModule,
|
|
888
|
+
TranslateModule,
|
|
889
|
+
AsyncPipe,
|
|
890
|
+
WidgetModule,
|
|
891
|
+
ButtonModule,
|
|
892
|
+
IconModule,
|
|
893
|
+
SpinnerModule,
|
|
894
|
+
LoadingModule,
|
|
895
|
+
FormIoModule,
|
|
896
|
+
ModalModule,
|
|
897
|
+
ReactiveFormsModule,
|
|
898
|
+
InputModule,
|
|
899
|
+
TooltipIconModule,
|
|
900
|
+
ConfirmationModalModule,
|
|
901
|
+
SearchFieldsModule,
|
|
902
|
+
ValtimoCdsModalDirective,
|
|
903
|
+
CarbonListModule] }); }
|
|
904
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectModule, imports: [CommonModule,
|
|
905
|
+
ObjectRoutingModule,
|
|
906
|
+
TranslateModule,
|
|
907
|
+
WidgetModule,
|
|
908
|
+
ButtonModule,
|
|
909
|
+
IconModule,
|
|
910
|
+
SpinnerModule,
|
|
911
|
+
LoadingModule,
|
|
912
|
+
FormIoModule,
|
|
913
|
+
ModalModule,
|
|
914
|
+
ReactiveFormsModule,
|
|
915
|
+
InputModule,
|
|
916
|
+
TooltipIconModule,
|
|
917
|
+
ConfirmationModalModule,
|
|
918
|
+
SearchFieldsModule,
|
|
919
|
+
CarbonListModule] }); }
|
|
920
|
+
}
|
|
921
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ObjectModule, decorators: [{
|
|
922
|
+
type: NgModule,
|
|
923
|
+
args: [{
|
|
924
|
+
declarations: [ObjectListComponent, ObjectDetailContainerComponent, ObjectDetailComponent],
|
|
925
|
+
imports: [
|
|
926
|
+
CommonModule,
|
|
927
|
+
ObjectRoutingModule,
|
|
928
|
+
TranslateModule,
|
|
929
|
+
AsyncPipe,
|
|
930
|
+
WidgetModule,
|
|
931
|
+
ButtonModule,
|
|
932
|
+
IconModule,
|
|
933
|
+
SpinnerModule,
|
|
934
|
+
LoadingModule,
|
|
935
|
+
FormIoModule,
|
|
936
|
+
ModalModule,
|
|
937
|
+
ReactiveFormsModule,
|
|
938
|
+
InputModule,
|
|
939
|
+
TooltipIconModule,
|
|
940
|
+
ConfirmationModalModule,
|
|
941
|
+
SearchFieldsModule,
|
|
942
|
+
ValtimoCdsModalDirective,
|
|
943
|
+
CarbonListModule,
|
|
944
|
+
],
|
|
945
|
+
exports: [],
|
|
946
|
+
}]
|
|
947
|
+
}], ctorParameters: () => [{ type: i1$1.MenuService }, { type: i2.ConfigService }, { type: ObjectMenuService }] });
|
|
948
|
+
|
|
949
|
+
/*
|
|
950
|
+
* Copyright 2015-2025 Ritense BV, the Netherlands.
|
|
951
|
+
*
|
|
952
|
+
* Licensed under EUPL, Version 1.2 (the "License");
|
|
953
|
+
* you may not use this file except in compliance with the License.
|
|
954
|
+
* You may obtain a copy of the License at
|
|
955
|
+
*
|
|
956
|
+
* https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12
|
|
957
|
+
*
|
|
958
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
959
|
+
* distributed under the License is distributed on an "AS IS" basis,
|
|
960
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
961
|
+
* See the License for the specific language governing permissions and
|
|
962
|
+
* limitations under the License.
|
|
963
|
+
*/
|
|
964
|
+
/*
|
|
965
|
+
* Public API Surface of object
|
|
966
|
+
*/
|
|
967
|
+
|
|
968
|
+
/**
|
|
969
|
+
* Generated bundle index. Do not edit.
|
|
970
|
+
*/
|
|
971
|
+
|
|
972
|
+
export { ObjectModule, ObjectService };
|
|
973
|
+
//# sourceMappingURL=valtimo-object.mjs.map
|