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