@cauca-911/management 21.3.8 → 22.0.1
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/assets/i18n/cauca/en-management.json +6 -0
- package/assets/i18n/cauca/es-management.json +6 -0
- package/assets/i18n/cauca/fr-management.json +6 -0
- package/fesm2022/cauca-911-management.mjs +366 -106
- package/fesm2022/cauca-911-management.mjs.map +1 -1
- package/package.json +8 -7
- package/types/cauca-911-management.d.ts +52 -15
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, inject, Injectable, computed, ChangeDetectionStrategy, Component, ViewChild, signal, viewChild, resource, effect, untracked, model, input, HostListener,
|
|
2
|
+
import { InjectionToken, Injector, inject, Injectable, computed, ChangeDetectionStrategy, Component, ViewChild, signal, viewChild, resource, effect, untracked, model, input, HostListener, NgModule } from '@angular/core';
|
|
3
3
|
import { pendingChangesGuard, DialogService, PageTitleComponent, LoadingSpinnerIndicatorComponent, LoadingErrorComponent, StrokedButtonComponent, RaisedButtonComponent, ListPaginatorComponent, IconButtonComponent, LoadingStateService, GroupContainerComponent, ConfirmationResult, SavingErrorBoxComponent } from '@cauca-911/material';
|
|
4
4
|
import * as i1 from '@angular/material/card';
|
|
5
5
|
import { MatCardModule } from '@angular/material/card';
|
|
6
|
-
import * as i1$3 from '@ngx-translate/core';
|
|
7
6
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
8
7
|
import { MatSort } from '@angular/material/sort';
|
|
9
8
|
import { Router } from '@angular/router';
|
|
10
9
|
import ODataFilterBuilder from 'odata-filter-builder';
|
|
11
10
|
import { OdataGridComponent, SortableDataGridColumnComponent, SortableDataGridCheckColumnComponent, DataGridCommandsColumnComponent } from '@cauca-911/datagrid';
|
|
12
11
|
import { HttpClient } from '@angular/common/http';
|
|
13
|
-
import { CaucaCoreService, toLowerCaseAndWithoutDiacritics
|
|
12
|
+
import { CaucaCoreService, toLowerCaseAndWithoutDiacritics } from '@cauca-911/core';
|
|
14
13
|
import { firstValueFrom, startWith, debounceTime } from 'rxjs';
|
|
15
14
|
import * as i1$2 from '@angular/material/form-field';
|
|
16
15
|
import { MatFormFieldModule, MatFormField, MatLabel, MatSuffix } from '@angular/material/form-field';
|
|
@@ -25,7 +24,7 @@ import * as i1$1 from '@angular/material/dialog';
|
|
|
25
24
|
import { MAT_DIALOG_DATA, MatDialogRef, MatDialogModule, MatDialog } from '@angular/material/dialog';
|
|
26
25
|
import * as i4 from '@angular/material/icon';
|
|
27
26
|
import { MatIconModule, MatIcon } from '@angular/material/icon';
|
|
28
|
-
import { toSignal, toObservable } from '@angular/core/rxjs-interop';
|
|
27
|
+
import { toSignal, toObservable, rxResource } from '@angular/core/rxjs-interop';
|
|
29
28
|
import { v4 } from 'uuid';
|
|
30
29
|
import * as i4$1 from '@angular/material/list';
|
|
31
30
|
import { MatListModule } from '@angular/material/list';
|
|
@@ -33,19 +32,20 @@ import * as i6 from '@angular/material/tooltip';
|
|
|
33
32
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
34
33
|
import * as i3 from '@angular/material/checkbox';
|
|
35
34
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
36
|
-
import * as
|
|
35
|
+
import * as i2$1 from '@angular/material/menu';
|
|
36
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
37
|
+
import * as i1$3 from '@cauca-911/devextreme';
|
|
38
|
+
import { CaucaDevextremeModule } from '@cauca-911/devextreme';
|
|
39
|
+
import * as i4$2 from 'devextreme-angular/ui/check-box';
|
|
37
40
|
import { DxCheckBoxModule } from 'devextreme-angular/ui/check-box';
|
|
38
|
-
import * as
|
|
41
|
+
import * as i5$1 from 'devextreme-angular/ui/list';
|
|
39
42
|
import { DxListModule } from 'devextreme-angular/ui/list';
|
|
40
|
-
import * as
|
|
43
|
+
import * as i6$1 from 'devextreme-angular/ui/tag-box';
|
|
41
44
|
import { DxTagBoxModule } from 'devextreme-angular/ui/tag-box';
|
|
42
|
-
import * as i6$1 from '@cauca-911/devextreme';
|
|
43
|
-
import { CaucaDevextremeModule } from '@cauca-911/devextreme';
|
|
44
45
|
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
45
46
|
import { map } from 'rxjs/operators';
|
|
46
|
-
import * as i2$
|
|
47
|
-
import * as
|
|
48
|
-
import { CommonModule } from '@angular/common';
|
|
47
|
+
import * as i2$2 from 'devextreme-angular/ui/nested';
|
|
48
|
+
import * as i3$2 from 'devextreme-angular/core';
|
|
49
49
|
|
|
50
50
|
const MANAGEMENT_URL_PREFIX = new InjectionToken('MANAGEMENT_URL_PREFIX');
|
|
51
51
|
const MANAGEMENT_ROUTE_SEGMENT = new InjectionToken('MANAGEMENT_ROUTE_SEGMENT');
|
|
@@ -106,7 +106,8 @@ class GroupManagementService {
|
|
|
106
106
|
const _c0$3 = () => ["name"];
|
|
107
107
|
class GroupListGridComponent {
|
|
108
108
|
constructor() {
|
|
109
|
-
this.columns = computed(() => this.getColumns(),
|
|
109
|
+
this.columns = computed(() => this.getColumns(), /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
110
111
|
this.router = inject(Router);
|
|
111
112
|
this.dialog = inject(DialogService);
|
|
112
113
|
this.service = inject(GroupManagementService);
|
|
@@ -167,7 +168,7 @@ class GroupListGridComponent {
|
|
|
167
168
|
i0.ɵɵproperty("label", i0.ɵɵpipeBind1(5, 14, "groups.assignableByAllUsersColumnLabel"));
|
|
168
169
|
i0.ɵɵadvance(2);
|
|
169
170
|
i0.ɵɵproperty("canDelete", true)("canEdit", true);
|
|
170
|
-
} }, dependencies: [MatSort, OdataGridComponent, SortableDataGridColumnComponent, SortableDataGridCheckColumnComponent, DataGridCommandsColumnComponent, TranslatePipe], encapsulation: 2
|
|
171
|
+
} }, dependencies: [MatSort, OdataGridComponent, SortableDataGridColumnComponent, SortableDataGridCheckColumnComponent, DataGridCommandsColumnComponent, TranslatePipe], encapsulation: 2 }); }
|
|
171
172
|
}
|
|
172
173
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupListGridComponent, [{
|
|
173
174
|
type: Component,
|
|
@@ -190,7 +191,7 @@ class GroupsPageComponent {
|
|
|
190
191
|
i0.ɵɵelementEnd()();
|
|
191
192
|
} if (rf & 2) {
|
|
192
193
|
i0.ɵɵproperty("showBreadcrumb", true);
|
|
193
|
-
} }, dependencies: [MatCardModule, i1.MatCard, i1.MatCardContent, PageTitleComponent, GroupListGridComponent], encapsulation: 2
|
|
194
|
+
} }, dependencies: [MatCardModule, i1.MatCard, i1.MatCardContent, PageTitleComponent, GroupListGridComponent], encapsulation: 2 }); }
|
|
194
195
|
}
|
|
195
196
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupsPageComponent, [{
|
|
196
197
|
type: Component,
|
|
@@ -365,7 +366,7 @@ class UserSearchService {
|
|
|
365
366
|
}], null, null); })();
|
|
366
367
|
|
|
367
368
|
const _c0$2 = ["resultPaginator"];
|
|
368
|
-
const _forTrack0$
|
|
369
|
+
const _forTrack0$3 = ($index, $item) => $item.id;
|
|
369
370
|
function GroupUserSelectionDialogComponent_Conditional_13_Template(rf, ctx) { if (rf & 1) {
|
|
370
371
|
i0.ɵɵelementStart(0, "div", 8);
|
|
371
372
|
i0.ɵɵtext(1);
|
|
@@ -417,7 +418,7 @@ function GroupUserSelectionDialogComponent_Conditional_17_Template(rf, ctx) { if
|
|
|
417
418
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
418
419
|
i0.ɵɵelementStart(0, "mat-selection-list", 18);
|
|
419
420
|
i0.ɵɵlistener("selectionChange", function GroupUserSelectionDialogComponent_Conditional_17_Template_mat_selection_list_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
420
|
-
i0.ɵɵrepeaterCreate(1, GroupUserSelectionDialogComponent_Conditional_17_For_2_Template, 4, 6, "mat-list-option", 19, _forTrack0$
|
|
421
|
+
i0.ɵɵrepeaterCreate(1, GroupUserSelectionDialogComponent_Conditional_17_For_2_Template, 4, 6, "mat-list-option", 19, _forTrack0$3);
|
|
421
422
|
i0.ɵɵelementEnd();
|
|
422
423
|
i0.ɵɵconditionalCreate(3, GroupUserSelectionDialogComponent_Conditional_17_Conditional_3_Template, 2, 2, "cauca-list-paginator", 20);
|
|
423
424
|
} if (rf & 2) {
|
|
@@ -442,17 +443,23 @@ class GroupUserSelectionDialogComponent {
|
|
|
442
443
|
this.MIN_SEARCH_LENGTH = 3;
|
|
443
444
|
this.PAGE_SIZE = 10;
|
|
444
445
|
this.data = inject(MAT_DIALOG_DATA);
|
|
445
|
-
this.searchTerm = signal('',
|
|
446
|
-
|
|
447
|
-
this.
|
|
448
|
-
|
|
449
|
-
this.
|
|
446
|
+
this.searchTerm = signal('', /* @ts-ignore */
|
|
447
|
+
...(ngDevMode ? [{ debugName: "searchTerm" }] : /* istanbul ignore next */ []));
|
|
448
|
+
this.selectedUsers = signal([], /* @ts-ignore */
|
|
449
|
+
...(ngDevMode ? [{ debugName: "selectedUsers" }] : /* istanbul ignore next */ []));
|
|
450
|
+
this.currentPage = signal(1, /* @ts-ignore */
|
|
451
|
+
...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
|
|
452
|
+
this.paginator = viewChild('resultPaginator', /* @ts-ignore */
|
|
453
|
+
...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
454
|
+
this.selectedUserIds = computed(() => new Set(this.selectedUsers().map(u => u.id)), /* @ts-ignore */
|
|
455
|
+
...(ngDevMode ? [{ debugName: "selectedUserIds" }] : /* istanbul ignore next */ []));
|
|
450
456
|
this.selectedUsersLabel = computed(() => [...this.selectedUsers()]
|
|
451
457
|
.sort((a, b) => toLowerCaseAndWithoutDiacritics(a.fullName).localeCompare(toLowerCaseAndWithoutDiacritics(b.fullName)))
|
|
452
458
|
.map(u => u.fullName)
|
|
453
|
-
.join(', '),
|
|
459
|
+
.join(', '), /* @ts-ignore */
|
|
460
|
+
...(ngDevMode ? [{ debugName: "selectedUsersLabel" }] : /* istanbul ignore next */ []));
|
|
454
461
|
this.debouncedSearch = toSignal(toObservable(this.searchTerm).pipe(debounceTime(300)), { initialValue: '' });
|
|
455
|
-
this.searchResource = resource({ ...(ngDevMode ? { debugName: "searchResource" } : {}), params: computed(() => ({ query: this.debouncedSearch(), page: this.currentPage() })),
|
|
462
|
+
this.searchResource = resource({ ...(ngDevMode ? { debugName: "searchResource" } : /* istanbul ignore next */ {}), params: computed(() => ({ query: this.debouncedSearch(), page: this.currentPage() })),
|
|
456
463
|
loader: ({ params }) => {
|
|
457
464
|
if (params.query.length < this.MIN_SEARCH_LENGTH) {
|
|
458
465
|
return Promise.resolve({ items: [], totalCount: 0 });
|
|
@@ -460,9 +467,12 @@ class GroupUserSelectionDialogComponent {
|
|
|
460
467
|
const skip = (params.page - 1) * this.PAGE_SIZE;
|
|
461
468
|
return this.userSearchService.search(params.query, this.data.currentUserIds, skip, this.PAGE_SIZE);
|
|
462
469
|
} });
|
|
463
|
-
this.results = computed(() => this.lastResult().items,
|
|
464
|
-
|
|
465
|
-
this.
|
|
470
|
+
this.results = computed(() => this.lastResult().items, /* @ts-ignore */
|
|
471
|
+
...(ngDevMode ? [{ debugName: "results" }] : /* istanbul ignore next */ []));
|
|
472
|
+
this.totalCount = computed(() => this.lastResult().totalCount, /* @ts-ignore */
|
|
473
|
+
...(ngDevMode ? [{ debugName: "totalCount" }] : /* istanbul ignore next */ []));
|
|
474
|
+
this.lastResult = signal({ items: [], totalCount: 0 }, /* @ts-ignore */
|
|
475
|
+
...(ngDevMode ? [{ debugName: "lastResult" }] : /* istanbul ignore next */ []));
|
|
466
476
|
this.dialogRef = inject((MatDialogRef));
|
|
467
477
|
this.userSearchService = inject(UserSearchService);
|
|
468
478
|
this.compareUserById = (a, b) => a?.id === b?.id;
|
|
@@ -575,7 +585,7 @@ class GroupUserSelectionDialogComponent {
|
|
|
575
585
|
RaisedButtonComponent,
|
|
576
586
|
ListPaginatorComponent,
|
|
577
587
|
MatTooltipModule, i6.MatTooltip, IconButtonComponent,
|
|
578
|
-
TranslatePipe], styles: [".dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[mat-dialog-title][_ngcontent-%COMP%]{display:flex;align-items:center}[mat-dialog-title][_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{flex:1}.search-field[_ngcontent-%COMP%]{margin-top:16px;width:100%;margin-bottom:8px}.search-hint[_ngcontent-%COMP%], .no-results[_ngcontent-%COMP%]{padding:8px 0;color:#0000008a}.results-region[_ngcontent-%COMP%]{height:360px;overflow:hidden;display:flex;flex-direction:column}.results-list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0;max-height:400px;border:1px solid rgba(0,0,0,.23);border-radius:4px}.result-item[_ngcontent-%COMP%]{cursor:pointer}mat-list-option[_ngcontent-%COMP%]{margin-bottom:0}mat-list-option[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-option[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}.dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.selected-users-panel[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.selected-users-label[_ngcontent-%COMP%]{color:#0000008a;font-weight:500}.selected-users-names[_ngcontent-%COMP%]{color:#000000de;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]
|
|
588
|
+
TranslatePipe], styles: [".dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}[mat-dialog-title][_ngcontent-%COMP%]{display:flex;align-items:center}[mat-dialog-title][_ngcontent-%COMP%] div[_ngcontent-%COMP%]:first-child{flex:1}.search-field[_ngcontent-%COMP%]{margin-top:16px;width:100%;margin-bottom:8px}.search-hint[_ngcontent-%COMP%], .no-results[_ngcontent-%COMP%]{padding:8px 0;color:#0000008a}.results-region[_ngcontent-%COMP%]{height:360px;overflow:hidden;display:flex;flex-direction:column}.results-list[_ngcontent-%COMP%]{flex:1 1 auto;min-height:0;overflow-y:auto;padding:0;max-height:400px;border:1px solid rgba(0,0,0,.23);border-radius:4px}.result-item[_ngcontent-%COMP%]{cursor:pointer}mat-list-option[_ngcontent-%COMP%]{margin-bottom:0}mat-list-option[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-option[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}.dialog-actions[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:8px;flex-wrap:wrap}.selected-users-panel[_ngcontent-%COMP%]{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.selected-users-label[_ngcontent-%COMP%]{color:#0000008a;font-weight:500}.selected-users-names[_ngcontent-%COMP%]{color:#000000de;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"] }); }
|
|
579
589
|
}
|
|
580
590
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupUserSelectionDialogComponent, [{
|
|
581
591
|
type: Component,
|
|
@@ -599,7 +609,7 @@ class GroupUserSelectionDialogComponent {
|
|
|
599
609
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GroupUserSelectionDialogComponent, { className: "GroupUserSelectionDialogComponent", filePath: "lib/components/group-user-selection-dialog/group-user-selection-dialog.component.ts", lineNumber: 46 }); })();
|
|
600
610
|
|
|
601
611
|
const _c0$1 = ["paginator"];
|
|
602
|
-
const _forTrack0$
|
|
612
|
+
const _forTrack0$2 = ($index, $item) => $item.id;
|
|
603
613
|
function GroupUserEditionListComponent_For_10_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
604
614
|
i0.ɵɵelementStart(0, "div", 11);
|
|
605
615
|
i0.ɵɵtext(1);
|
|
@@ -667,20 +677,26 @@ function GroupUserEditionListComponent_Conditional_12_Template(rf, ctx) { if (rf
|
|
|
667
677
|
class GroupUserEditionListComponent {
|
|
668
678
|
constructor() {
|
|
669
679
|
this.PAGE_SIZE = 10;
|
|
670
|
-
this.currentPage = signal(1,
|
|
671
|
-
|
|
672
|
-
this.
|
|
673
|
-
|
|
680
|
+
this.currentPage = signal(1, /* @ts-ignore */
|
|
681
|
+
...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
|
|
682
|
+
this.filterTerm = signal('', /* @ts-ignore */
|
|
683
|
+
...(ngDevMode ? [{ debugName: "filterTerm" }] : /* istanbul ignore next */ []));
|
|
684
|
+
this.paginator = viewChild('paginator', /* @ts-ignore */
|
|
685
|
+
...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
|
|
686
|
+
this.sortedUsers = computed(() => [...this.state.users()].sort((a, b) => toLowerCaseAndWithoutDiacritics(a.fullName).localeCompare(toLowerCaseAndWithoutDiacritics(b.fullName))), /* @ts-ignore */
|
|
687
|
+
...(ngDevMode ? [{ debugName: "sortedUsers" }] : /* istanbul ignore next */ []));
|
|
674
688
|
this.filteredUsers = computed(() => {
|
|
675
689
|
const term = toLowerCaseAndWithoutDiacritics(this.filterTerm());
|
|
676
690
|
if (!term)
|
|
677
691
|
return this.sortedUsers();
|
|
678
692
|
return this.sortedUsers().filter(u => toLowerCaseAndWithoutDiacritics(u.fullName).includes(term));
|
|
679
|
-
},
|
|
693
|
+
}, /* @ts-ignore */
|
|
694
|
+
...(ngDevMode ? [{ debugName: "filteredUsers" }] : /* istanbul ignore next */ []));
|
|
680
695
|
this.pagedUsers = computed(() => {
|
|
681
696
|
const start = (this.currentPage() - 1) * this.PAGE_SIZE;
|
|
682
697
|
return this.filteredUsers().slice(start, start + this.PAGE_SIZE);
|
|
683
|
-
},
|
|
698
|
+
}, /* @ts-ignore */
|
|
699
|
+
...(ngDevMode ? [{ debugName: "pagedUsers" }] : /* istanbul ignore next */ []));
|
|
684
700
|
this.state = inject(GroupEditionStateService);
|
|
685
701
|
this.dialogService = inject(DialogService);
|
|
686
702
|
this.dialog = inject(MatDialog);
|
|
@@ -743,7 +759,7 @@ class GroupUserEditionListComponent {
|
|
|
743
759
|
i0.ɵɵtext(7, "search");
|
|
744
760
|
i0.ɵɵelementEnd()();
|
|
745
761
|
i0.ɵɵelementStart(8, "mat-list", 5);
|
|
746
|
-
i0.ɵɵrepeaterCreate(9, GroupUserEditionListComponent_For_10_Template, 8, 5, "mat-list-item", 6, _forTrack0$
|
|
762
|
+
i0.ɵɵrepeaterCreate(9, GroupUserEditionListComponent_For_10_Template, 8, 5, "mat-list-item", 6, _forTrack0$2, false, GroupUserEditionListComponent_ForEmpty_11_Template, 2, 1);
|
|
747
763
|
i0.ɵɵelementEnd();
|
|
748
764
|
i0.ɵɵconditionalCreate(12, GroupUserEditionListComponent_Conditional_12_Template, 2, 2, "cauca-list-paginator", 7);
|
|
749
765
|
i0.ɵɵelementStart(13, "cauca-raised-button", 8);
|
|
@@ -758,7 +774,7 @@ class GroupUserEditionListComponent {
|
|
|
758
774
|
i0.ɵɵrepeater(ctx.pagedUsers());
|
|
759
775
|
i0.ɵɵadvance(3);
|
|
760
776
|
i0.ɵɵconditional(ctx.filteredUsers().length > ctx.PAGE_SIZE ? 12 : -1);
|
|
761
|
-
} }, dependencies: [IconButtonComponent, RaisedButtonComponent, ListPaginatorComponent, MatFormFieldModule, i1$2.MatFormField, i1$2.MatLabel, i1$2.MatSuffix, MatInputModule, i2.MatInput, MatIconModule, i4.MatIcon, FormsModule, MatListModule, i4$1.MatList, i4$1.MatListItem, i4$1.MatListItemIcon, i4$1.MatListItemLine, i4$1.MatListItemTitle, i4$1.MatListItemMeta, TranslatePipe], styles: [".user-edition-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.add-users-button[_ngcontent-%COMP%]{align-self:flex-end}.users-list[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0;max-height:400px;overflow-y:auto}mat-list-item[_ngcontent-%COMP%]{margin-bottom:0}.filter-field[_ngcontent-%COMP%]{width:100%}.user-item[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.user-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:32px 16px;text-align:center;color:#0009}.empty-state[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px;opacity:.6}.empty-state[_ngcontent-%COMP%] .empty-message[_ngcontent-%COMP%]{margin:0;font-size:14px}.add-button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:16px}.no-users[_ngcontent-%COMP%]{padding:16px 0;color:#00000061;text-align:center}mat-list-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-item[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}"]
|
|
777
|
+
} }, dependencies: [IconButtonComponent, RaisedButtonComponent, ListPaginatorComponent, MatFormFieldModule, i1$2.MatFormField, i1$2.MatLabel, i1$2.MatSuffix, MatInputModule, i2.MatInput, MatIconModule, i4.MatIcon, FormsModule, MatListModule, i4$1.MatList, i4$1.MatListItem, i4$1.MatListItemIcon, i4$1.MatListItemLine, i4$1.MatListItemTitle, i4$1.MatListItemMeta, TranslatePipe], styles: [".user-edition-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.add-users-button[_ngcontent-%COMP%]{align-self:flex-end}.users-list[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0;max-height:400px;overflow-y:auto}mat-list-item[_ngcontent-%COMP%]{margin-bottom:0}.filter-field[_ngcontent-%COMP%]{width:100%}.user-item[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.user-item[_ngcontent-%COMP%]:last-child{border-bottom:none}.empty-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:32px 16px;text-align:center;color:#0009}.empty-state[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:16px;opacity:.6}.empty-state[_ngcontent-%COMP%] .empty-message[_ngcontent-%COMP%]{margin:0;font-size:14px}.add-button-container[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-top:16px}.no-users[_ngcontent-%COMP%]{padding:16px 0;color:#00000061;text-align:center}mat-list-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-item[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}"] }); }
|
|
762
778
|
}
|
|
763
779
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupUserEditionListComponent, [{
|
|
764
780
|
type: Component,
|
|
@@ -816,7 +832,7 @@ class PermissionManagementService {
|
|
|
816
832
|
}]
|
|
817
833
|
}], null, null); })();
|
|
818
834
|
|
|
819
|
-
const _forTrack0 = ($index, $item) => $item.id;
|
|
835
|
+
const _forTrack0$1 = ($index, $item) => $item.id;
|
|
820
836
|
function GroupPermissionListComponent_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
821
837
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
822
838
|
i0.ɵɵelementStart(0, "mat-list-item", 4)(1, "mat-checkbox", 6);
|
|
@@ -844,10 +860,13 @@ function GroupPermissionListComponent_ForEmpty_10_Template(rf, ctx) { if (rf & 1
|
|
|
844
860
|
} }
|
|
845
861
|
class GroupPermissionListComponent {
|
|
846
862
|
constructor() {
|
|
847
|
-
this.searchText = model('',
|
|
848
|
-
|
|
863
|
+
this.searchText = model('', /* @ts-ignore */
|
|
864
|
+
...(ngDevMode ? [{ debugName: "searchText" }] : /* istanbul ignore next */ []));
|
|
865
|
+
this.currentPermissions = signal([], /* @ts-ignore */
|
|
866
|
+
...(ngDevMode ? [{ debugName: "currentPermissions" }] : /* istanbul ignore next */ []));
|
|
849
867
|
this.filteredPermissionsValues = computed(() => this.currentPermissions()?.filter((permission) => toLowerCaseAndWithoutDiacritics(permission.name)
|
|
850
|
-
.includes(toLowerCaseAndWithoutDiacritics(this.searchText()))) || [],
|
|
868
|
+
.includes(toLowerCaseAndWithoutDiacritics(this.searchText()))) || [], /* @ts-ignore */
|
|
869
|
+
...(ngDevMode ? [{ debugName: "filteredPermissionsValues" }] : /* istanbul ignore next */ []));
|
|
851
870
|
this.service = inject(PermissionManagementService);
|
|
852
871
|
this.state = inject(GroupEditionStateService);
|
|
853
872
|
}
|
|
@@ -893,20 +912,22 @@ class GroupPermissionListComponent {
|
|
|
893
912
|
i0.ɵɵelementStart(4, "input", 1);
|
|
894
913
|
i0.ɵɵtwoWayListener("ngModelChange", function GroupPermissionListComponent_Template_input_ngModelChange_4_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchText, $event) || (ctx.searchText = $event); return $event; });
|
|
895
914
|
i0.ɵɵelementEnd();
|
|
915
|
+
i0.ɵɵcontrolCreate();
|
|
896
916
|
i0.ɵɵelementStart(5, "mat-icon", 2);
|
|
897
917
|
i0.ɵɵtext(6, "search");
|
|
898
918
|
i0.ɵɵelementEnd()();
|
|
899
919
|
i0.ɵɵelementStart(7, "mat-selection-list", 3);
|
|
900
|
-
i0.ɵɵrepeaterCreate(8, GroupPermissionListComponent_For_9_Template, 3, 4, "mat-list-item", 4, _forTrack0, false, GroupPermissionListComponent_ForEmpty_10_Template, 6, 3, "div", 5);
|
|
920
|
+
i0.ɵɵrepeaterCreate(8, GroupPermissionListComponent_For_9_Template, 3, 4, "mat-list-item", 4, _forTrack0$1, false, GroupPermissionListComponent_ForEmpty_10_Template, 6, 3, "div", 5);
|
|
901
921
|
i0.ɵɵelementEnd();
|
|
902
922
|
} if (rf & 2) {
|
|
903
923
|
i0.ɵɵadvance(2);
|
|
904
924
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "dataGrid.keywordsLabel"));
|
|
905
925
|
i0.ɵɵadvance(2);
|
|
906
926
|
i0.ɵɵtwoWayProperty("ngModel", ctx.searchText);
|
|
927
|
+
i0.ɵɵcontrol();
|
|
907
928
|
i0.ɵɵadvance(4);
|
|
908
929
|
i0.ɵɵrepeater(ctx.filteredPermissionsValues());
|
|
909
|
-
} }, dependencies: [MatListModule, i4$1.MatSelectionList, i4$1.MatListItem, MatFormField, MatLabel, MatInput, MatSuffix, FormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, MatIcon, MatCheckboxModule, i3.MatCheckbox, TranslatePipe], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:16px}#permission-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0}.permission-item[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.permission-item[_ngcontent-%COMP%]:last-child{border-bottom:none}mat-list-item[_ngcontent-%COMP%]{margin-bottom:0}.permission-checkbox[_ngcontent-%COMP%], .filter-field[_ngcontent-%COMP%]{width:100%}.no-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:24px 0;color:#00000061}.no-result-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:8px}.no-result-text[_ngcontent-%COMP%]{text-align:center}mat-list-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-item[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}"]
|
|
930
|
+
} }, dependencies: [MatListModule, i4$1.MatSelectionList, i4$1.MatListItem, MatFormField, MatLabel, MatInput, MatSuffix, FormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgModel, MatIcon, MatCheckboxModule, i3.MatCheckbox, TranslatePipe], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:16px}#permission-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0}.permission-item[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.permission-item[_ngcontent-%COMP%]:last-child{border-bottom:none}mat-list-item[_ngcontent-%COMP%]{margin-bottom:0}.permission-checkbox[_ngcontent-%COMP%], .filter-field[_ngcontent-%COMP%]{width:100%}.no-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:24px 0;color:#00000061}.no-result-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:8px}.no-result-text[_ngcontent-%COMP%]{text-align:center}mat-list-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-item[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}"] }); }
|
|
910
931
|
}
|
|
911
932
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupPermissionListComponent, [{
|
|
912
933
|
type: Component,
|
|
@@ -934,12 +955,15 @@ class GroupEditionFormComponent {
|
|
|
934
955
|
i0.ɵɵpipe(5, "translate");
|
|
935
956
|
i0.ɵɵelementEnd();
|
|
936
957
|
i0.ɵɵelement(6, "input", 3);
|
|
958
|
+
i0.ɵɵcontrolCreate();
|
|
937
959
|
i0.ɵɵconditionalCreate(7, GroupEditionFormComponent_Conditional_7_Template, 3, 3, "mat-error");
|
|
938
960
|
i0.ɵɵelementEnd();
|
|
939
961
|
i0.ɵɵelementStart(8, "mat-slide-toggle", 4);
|
|
940
962
|
i0.ɵɵtext(9);
|
|
941
963
|
i0.ɵɵpipe(10, "translate");
|
|
942
|
-
i0.ɵɵelementEnd()
|
|
964
|
+
i0.ɵɵelementEnd();
|
|
965
|
+
i0.ɵɵcontrolCreate();
|
|
966
|
+
i0.ɵɵelementEnd();
|
|
943
967
|
i0.ɵɵelement(11, "mat-divider");
|
|
944
968
|
i0.ɵɵelementStart(12, "cauca-group-container", 5);
|
|
945
969
|
i0.ɵɵelement(13, "cauca-group-user-edition-list");
|
|
@@ -952,11 +976,15 @@ class GroupEditionFormComponent {
|
|
|
952
976
|
i0.ɵɵproperty("formGroup", ctx.state.form);
|
|
953
977
|
i0.ɵɵadvance(4);
|
|
954
978
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, "groupEdition.nameFieldLabel"));
|
|
955
|
-
i0.ɵɵadvance(3);
|
|
956
|
-
i0.ɵɵconditional(ctx.state.form.get("name").hasError("required") ? 7 : -1);
|
|
957
979
|
i0.ɵɵadvance(2);
|
|
980
|
+
i0.ɵɵcontrol();
|
|
981
|
+
i0.ɵɵadvance();
|
|
982
|
+
i0.ɵɵconditional(ctx.state.form.get("name").hasError("required") ? 7 : -1);
|
|
983
|
+
i0.ɵɵadvance();
|
|
984
|
+
i0.ɵɵcontrol();
|
|
985
|
+
i0.ɵɵadvance();
|
|
958
986
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 6, "groupEdition.assignableByAllUsersLabel"));
|
|
959
|
-
} }, dependencies: [MatFormFieldModule, i1$2.MatFormField, i1$2.MatLabel, i1$2.MatError, MatInputModule, i2.MatInput, MatSlideToggleModule, i3$1.MatSlideToggle, MatDividerModule, i4$1.MatDivider, ReactiveFormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgControlStatusGroup, i5.RequiredValidator, i5.FormGroupDirective, i5.FormControlName, GroupContainerComponent, GroupUserEditionListComponent, GroupPermissionListComponent, TranslatePipe], styles: [".form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.row[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:16px}.row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}"]
|
|
987
|
+
} }, dependencies: [MatFormFieldModule, i1$2.MatFormField, i1$2.MatLabel, i1$2.MatError, MatInputModule, i2.MatInput, MatSlideToggleModule, i3$1.MatSlideToggle, MatDividerModule, i4$1.MatDivider, ReactiveFormsModule, i5.DefaultValueAccessor, i5.NgControlStatus, i5.NgControlStatusGroup, i5.RequiredValidator, i5.FormGroupDirective, i5.FormControlName, GroupContainerComponent, GroupUserEditionListComponent, GroupPermissionListComponent, TranslatePipe], styles: [".form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.row[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:16px}.row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex:1}"] }); }
|
|
960
988
|
}
|
|
961
989
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupEditionFormComponent, [{
|
|
962
990
|
type: Component,
|
|
@@ -976,12 +1004,18 @@ function GroupEditionPageComponent_Conditional_6_Template(rf, ctx) { if (rf & 1)
|
|
|
976
1004
|
} }
|
|
977
1005
|
class GroupEditionPageComponent {
|
|
978
1006
|
constructor() {
|
|
979
|
-
this.id = input.required(
|
|
980
|
-
|
|
981
|
-
this.
|
|
982
|
-
|
|
983
|
-
this.
|
|
984
|
-
|
|
1007
|
+
this.id = input.required(/* @ts-ignore */
|
|
1008
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
1009
|
+
this.isLoaded = signal(false, /* @ts-ignore */
|
|
1010
|
+
...(ngDevMode ? [{ debugName: "isLoaded" }] : /* istanbul ignore next */ []));
|
|
1011
|
+
this.isSaving = signal(false, /* @ts-ignore */
|
|
1012
|
+
...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
|
|
1013
|
+
this.showSavingError = signal(false, /* @ts-ignore */
|
|
1014
|
+
...(ngDevMode ? [{ debugName: "showSavingError" }] : /* istanbul ignore next */ []));
|
|
1015
|
+
this.title = computed(() => 'groupEdition.' + (this.id() === 'new' ? 'newGroupTitle' : 'editGroupTitle'), /* @ts-ignore */
|
|
1016
|
+
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
1017
|
+
this.currentLocation = computed(() => [{ link: this.groupsPath, title: 'menu.groups' }], /* @ts-ignore */
|
|
1018
|
+
...(ngDevMode ? [{ debugName: "currentLocation" }] : /* istanbul ignore next */ []));
|
|
985
1019
|
this.state = inject(GroupEditionStateService);
|
|
986
1020
|
this.dialog = inject(DialogService);
|
|
987
1021
|
this.router = inject(Router);
|
|
@@ -1102,7 +1136,7 @@ class GroupEditionPageComponent {
|
|
|
1102
1136
|
i0.ɵɵproperty("isDisabled", ctx.isSaving());
|
|
1103
1137
|
i0.ɵɵadvance();
|
|
1104
1138
|
i0.ɵɵproperty("isInProgress", ctx.isSaving());
|
|
1105
|
-
} }, dependencies: [PageTitleComponent, MatCardModule, i1.MatCard, i1.MatCardActions, i1.MatCardContent, LoadingSpinnerIndicatorComponent, LoadingErrorComponent, SavingErrorBoxComponent, StrokedButtonComponent, RaisedButtonComponent, GroupEditionFormComponent], styles: ["[_nghost-%COMP%]{width:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-actions[_ngcontent-%COMP%]{gap:8px}"]
|
|
1139
|
+
} }, dependencies: [PageTitleComponent, MatCardModule, i1.MatCard, i1.MatCardActions, i1.MatCardContent, LoadingSpinnerIndicatorComponent, LoadingErrorComponent, SavingErrorBoxComponent, StrokedButtonComponent, RaisedButtonComponent, GroupEditionFormComponent], styles: ["[_nghost-%COMP%]{width:100%}.spacer[_ngcontent-%COMP%]{flex:1 1 auto}mat-card-actions[_ngcontent-%COMP%]{gap:8px}"] }); }
|
|
1106
1140
|
}
|
|
1107
1141
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupEditionPageComponent, [{
|
|
1108
1142
|
type: Component,
|
|
@@ -1122,6 +1156,247 @@ var groupEditionPage_component = /*#__PURE__*/Object.freeze({
|
|
|
1122
1156
|
GroupEditionPageComponent: GroupEditionPageComponent
|
|
1123
1157
|
});
|
|
1124
1158
|
|
|
1159
|
+
class UserPermissionDetailService {
|
|
1160
|
+
constructor() {
|
|
1161
|
+
this.client = inject(HttpClient);
|
|
1162
|
+
this.loadingState = inject(LoadingStateService, { optional: true });
|
|
1163
|
+
this.baseUrl = this.buildBaseUrl(inject(CaucaCoreService).getConfig().apiUrl, inject(MANAGEMENT_URL_PREFIX, { optional: true }));
|
|
1164
|
+
}
|
|
1165
|
+
getForUser(userId) {
|
|
1166
|
+
const request$ = this.client.get(this.buildApiUrl(`UserPermissionDetails/user/${userId}`));
|
|
1167
|
+
return this.loadingState ? this.loadingState.withLoadingIndicator(request$) : request$;
|
|
1168
|
+
}
|
|
1169
|
+
buildBaseUrl(apiUrl, urlPrefix) {
|
|
1170
|
+
const normalizedApiUrl = apiUrl.replace(/\/+$/, '');
|
|
1171
|
+
const normalizedPrefix = urlPrefix?.trim().replace(/^\/+|\/+$/g, '');
|
|
1172
|
+
return normalizedPrefix
|
|
1173
|
+
? `${normalizedApiUrl}/${normalizedPrefix}`
|
|
1174
|
+
: normalizedApiUrl;
|
|
1175
|
+
}
|
|
1176
|
+
buildApiUrl(path) {
|
|
1177
|
+
const normalizedApiUrl = this.baseUrl.replace(/\/+$/, '');
|
|
1178
|
+
return `${normalizedApiUrl}/${path}`;
|
|
1179
|
+
}
|
|
1180
|
+
static { this.ɵfac = function UserPermissionDetailService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserPermissionDetailService)(); }; }
|
|
1181
|
+
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: UserPermissionDetailService, factory: UserPermissionDetailService.ɵfac, providedIn: 'root' }); }
|
|
1182
|
+
}
|
|
1183
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserPermissionDetailService, [{
|
|
1184
|
+
type: Injectable,
|
|
1185
|
+
args: [{
|
|
1186
|
+
providedIn: 'root'
|
|
1187
|
+
}]
|
|
1188
|
+
}], null, null); })();
|
|
1189
|
+
|
|
1190
|
+
var PermissionStatus;
|
|
1191
|
+
(function (PermissionStatus) {
|
|
1192
|
+
PermissionStatus[PermissionStatus["Undefined"] = 0] = "Undefined";
|
|
1193
|
+
PermissionStatus[PermissionStatus["Allowed"] = 1] = "Allowed";
|
|
1194
|
+
PermissionStatus[PermissionStatus["Denied"] = 2] = "Denied";
|
|
1195
|
+
})(PermissionStatus || (PermissionStatus = {}));
|
|
1196
|
+
var UserPermissionOriginKind;
|
|
1197
|
+
(function (UserPermissionOriginKind) {
|
|
1198
|
+
UserPermissionOriginKind[UserPermissionOriginKind["Group"] = 0] = "Group";
|
|
1199
|
+
UserPermissionOriginKind[UserPermissionOriginKind["UserOverride"] = 1] = "UserOverride";
|
|
1200
|
+
})(UserPermissionOriginKind || (UserPermissionOriginKind = {}));
|
|
1201
|
+
|
|
1202
|
+
const _forTrack0 = ($index, $item) => $item.idModulePermission;
|
|
1203
|
+
function UserPermissionListComponent_For_9_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1204
|
+
i0.ɵɵtext(0, " check ");
|
|
1205
|
+
} }
|
|
1206
|
+
function UserPermissionListComponent_For_9_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1207
|
+
i0.ɵɵtext(0, " block ");
|
|
1208
|
+
} }
|
|
1209
|
+
function UserPermissionListComponent_For_9_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
1210
|
+
i0.ɵɵtext(0, " help_outline ");
|
|
1211
|
+
} }
|
|
1212
|
+
function UserPermissionListComponent_For_9_For_15_Conditional_2_Template(rf, ctx) { if (rf & 1) {
|
|
1213
|
+
i0.ɵɵtext(0, " check ");
|
|
1214
|
+
} }
|
|
1215
|
+
function UserPermissionListComponent_For_9_For_15_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
1216
|
+
i0.ɵɵtext(0, " block ");
|
|
1217
|
+
} }
|
|
1218
|
+
function UserPermissionListComponent_For_9_For_15_Template(rf, ctx) { if (rf & 1) {
|
|
1219
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "mat-icon");
|
|
1220
|
+
i0.ɵɵconditionalCreate(2, UserPermissionListComponent_For_9_For_15_Conditional_2_Template, 1, 0)(3, UserPermissionListComponent_For_9_For_15_Conditional_3_Template, 1, 0);
|
|
1221
|
+
i0.ɵɵelementEnd();
|
|
1222
|
+
i0.ɵɵelementStart(4, "span", 13);
|
|
1223
|
+
i0.ɵɵtext(5);
|
|
1224
|
+
i0.ɵɵpipe(6, "translate");
|
|
1225
|
+
i0.ɵɵelementEnd()();
|
|
1226
|
+
} if (rf & 2) {
|
|
1227
|
+
const origin_r1 = ctx.$implicit;
|
|
1228
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1229
|
+
i0.ɵɵadvance();
|
|
1230
|
+
i0.ɵɵclassProp("allowed", origin_r1.isAllowed)("denied", !origin_r1.isAllowed);
|
|
1231
|
+
i0.ɵɵadvance();
|
|
1232
|
+
i0.ɵɵconditional(origin_r1.isAllowed ? 2 : 3);
|
|
1233
|
+
i0.ɵɵadvance(3);
|
|
1234
|
+
i0.ɵɵtextInterpolate1(" ", origin_r1.kind === ctx_r1.UserPermissionOriginKind.UserOverride ? i0.ɵɵpipeBind1(6, 6, "userPermissionDetails.userOverrideOrigin") : origin_r1.groupName, " ");
|
|
1235
|
+
} }
|
|
1236
|
+
function UserPermissionListComponent_For_9_ForEmpty_16_Template(rf, ctx) { if (rf & 1) {
|
|
1237
|
+
i0.ɵɵelementStart(0, "div", 12)(1, "span", 14);
|
|
1238
|
+
i0.ɵɵtext(2);
|
|
1239
|
+
i0.ɵɵpipe(3, "translate");
|
|
1240
|
+
i0.ɵɵelementEnd()();
|
|
1241
|
+
} if (rf & 2) {
|
|
1242
|
+
i0.ɵɵadvance(2);
|
|
1243
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "userPermissionDetails.noOrigins"));
|
|
1244
|
+
} }
|
|
1245
|
+
function UserPermissionListComponent_For_9_Template(rf, ctx) { if (rf & 1) {
|
|
1246
|
+
i0.ɵɵelementStart(0, "mat-list-item", 5)(1, "mat-icon", 7);
|
|
1247
|
+
i0.ɵɵconditionalCreate(2, UserPermissionListComponent_For_9_Conditional_2_Template, 1, 0)(3, UserPermissionListComponent_For_9_Conditional_3_Template, 1, 0)(4, UserPermissionListComponent_For_9_Conditional_4_Template, 1, 0);
|
|
1248
|
+
i0.ɵɵelementEnd();
|
|
1249
|
+
i0.ɵɵelementStart(5, "div", 8);
|
|
1250
|
+
i0.ɵɵtext(6);
|
|
1251
|
+
i0.ɵɵelementEnd();
|
|
1252
|
+
i0.ɵɵelement(7, "cauca-icon-button", 9);
|
|
1253
|
+
i0.ɵɵelementStart(8, "mat-menu", null, 0)(10, "div", 10);
|
|
1254
|
+
i0.ɵɵlistener("click", function UserPermissionListComponent_For_9_Template_div_click_10_listener($event) { return $event.stopPropagation(); });
|
|
1255
|
+
i0.ɵɵelementStart(11, "div", 11);
|
|
1256
|
+
i0.ɵɵtext(12);
|
|
1257
|
+
i0.ɵɵpipe(13, "translate");
|
|
1258
|
+
i0.ɵɵelementEnd();
|
|
1259
|
+
i0.ɵɵrepeaterCreate(14, UserPermissionListComponent_For_9_For_15_Template, 7, 8, "div", 12, i0.ɵɵrepeaterTrackByIndex, false, UserPermissionListComponent_For_9_ForEmpty_16_Template, 4, 3, "div", 12);
|
|
1260
|
+
i0.ɵɵelementEnd()()();
|
|
1261
|
+
} if (rf & 2) {
|
|
1262
|
+
const permission_r3 = ctx.$implicit;
|
|
1263
|
+
const originsMenu_r4 = i0.ɵɵreference(9);
|
|
1264
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
1265
|
+
i0.ɵɵadvance();
|
|
1266
|
+
i0.ɵɵclassProp("allowed", permission_r3.status === ctx_r1.PermissionStatus.Allowed)("denied", permission_r3.status === ctx_r1.PermissionStatus.Denied);
|
|
1267
|
+
i0.ɵɵadvance();
|
|
1268
|
+
i0.ɵɵconditional(permission_r3.status === ctx_r1.PermissionStatus.Allowed ? 2 : permission_r3.status === ctx_r1.PermissionStatus.Denied ? 3 : 4);
|
|
1269
|
+
i0.ɵɵadvance(4);
|
|
1270
|
+
i0.ɵɵtextInterpolate(permission_r3.name);
|
|
1271
|
+
i0.ɵɵadvance();
|
|
1272
|
+
i0.ɵɵproperty("matMenuTriggerFor", originsMenu_r4);
|
|
1273
|
+
i0.ɵɵadvance(5);
|
|
1274
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 9, "userPermissionDetails.originsLabel"));
|
|
1275
|
+
i0.ɵɵadvance(2);
|
|
1276
|
+
i0.ɵɵrepeater(permission_r3.origins);
|
|
1277
|
+
} }
|
|
1278
|
+
function UserPermissionListComponent_ForEmpty_10_Template(rf, ctx) { if (rf & 1) {
|
|
1279
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "mat-icon", 15);
|
|
1280
|
+
i0.ɵɵtext(2, "grid_off");
|
|
1281
|
+
i0.ɵɵelementEnd();
|
|
1282
|
+
i0.ɵɵelementStart(3, "div", 16);
|
|
1283
|
+
i0.ɵɵtext(4);
|
|
1284
|
+
i0.ɵɵpipe(5, "translate");
|
|
1285
|
+
i0.ɵɵelementEnd()();
|
|
1286
|
+
} if (rf & 2) {
|
|
1287
|
+
i0.ɵɵadvance(4);
|
|
1288
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 1, "noResult"));
|
|
1289
|
+
} }
|
|
1290
|
+
class UserPermissionListComponent {
|
|
1291
|
+
constructor() {
|
|
1292
|
+
this.permissions = input.required(/* @ts-ignore */
|
|
1293
|
+
...(ngDevMode ? [{ debugName: "permissions" }] : /* istanbul ignore next */ []));
|
|
1294
|
+
this.PermissionStatus = PermissionStatus;
|
|
1295
|
+
this.UserPermissionOriginKind = UserPermissionOriginKind;
|
|
1296
|
+
this.searchText = signal('', /* @ts-ignore */
|
|
1297
|
+
...(ngDevMode ? [{ debugName: "searchText" }] : /* istanbul ignore next */ []));
|
|
1298
|
+
this.filteredPermissions = computed(() => this.permissions().filter((permission) => toLowerCaseAndWithoutDiacritics(permission.name)
|
|
1299
|
+
.includes(toLowerCaseAndWithoutDiacritics(this.searchText()))), /* @ts-ignore */
|
|
1300
|
+
...(ngDevMode ? [{ debugName: "filteredPermissions" }] : /* istanbul ignore next */ []));
|
|
1301
|
+
}
|
|
1302
|
+
static { this.ɵfac = function UserPermissionListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserPermissionListComponent)(); }; }
|
|
1303
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserPermissionListComponent, selectors: [["cauca-user-permission-list"]], inputs: { permissions: [1, "permissions"] }, decls: 11, vars: 5, consts: [["originsMenu", "matMenu"], ["subscriptSizing", "dynamic", "appearance", "outline", 1, "search-field"], ["matInput", "", "type", "text", 3, "input", "value"], ["matSuffix", ""], ["id", "permission-list"], [1, "permission-item"], [1, "no-result"], ["matListItemIcon", ""], ["matListItemTitle", ""], ["matListItemMeta", "", "icon", "info", 3, "matMenuTriggerFor"], [1, "origins-menu-content", 3, "click"], [1, "origin-item", "body2"], [1, "origin-item"], [1, "origin-name", "body1"], [1, "no-origins"], [1, "no-result-icon"], [1, "no-result-text", "body2"]], template: function UserPermissionListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1304
|
+
i0.ɵɵelementStart(0, "mat-form-field", 1)(1, "mat-label");
|
|
1305
|
+
i0.ɵɵtext(2);
|
|
1306
|
+
i0.ɵɵpipe(3, "translate");
|
|
1307
|
+
i0.ɵɵelementEnd();
|
|
1308
|
+
i0.ɵɵelementStart(4, "input", 2);
|
|
1309
|
+
i0.ɵɵlistener("input", function UserPermissionListComponent_Template_input_input_4_listener($event) { return ctx.searchText.set($event.target.value); });
|
|
1310
|
+
i0.ɵɵelementEnd();
|
|
1311
|
+
i0.ɵɵelementStart(5, "mat-icon", 3);
|
|
1312
|
+
i0.ɵɵtext(6, "search");
|
|
1313
|
+
i0.ɵɵelementEnd()();
|
|
1314
|
+
i0.ɵɵelementStart(7, "mat-list", 4);
|
|
1315
|
+
i0.ɵɵrepeaterCreate(8, UserPermissionListComponent_For_9_Template, 17, 11, "mat-list-item", 5, _forTrack0, false, UserPermissionListComponent_ForEmpty_10_Template, 6, 3, "div", 6);
|
|
1316
|
+
i0.ɵɵelementEnd();
|
|
1317
|
+
} if (rf & 2) {
|
|
1318
|
+
i0.ɵɵadvance(2);
|
|
1319
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "dataGrid.keywordsLabel"));
|
|
1320
|
+
i0.ɵɵadvance(2);
|
|
1321
|
+
i0.ɵɵproperty("value", ctx.searchText());
|
|
1322
|
+
i0.ɵɵadvance(4);
|
|
1323
|
+
i0.ɵɵrepeater(ctx.filteredPermissions());
|
|
1324
|
+
} }, dependencies: [MatListModule, i4$1.MatList, i4$1.MatListItem, i4$1.MatListItemIcon, i4$1.MatListItemTitle, i4$1.MatListItemMeta, MatFormField, MatLabel, MatInput, MatSuffix, MatIcon, MatMenuModule, i2$1.MatMenu, i2$1.MatMenuTrigger, IconButtonComponent, TranslatePipe], styles: ["[_nghost-%COMP%]{display:flex;flex-direction:column;gap:16px}.search-field[_ngcontent-%COMP%]{width:100%}#permission-list[_ngcontent-%COMP%]{max-height:400px;overflow-y:auto;border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0}.permission-item[_ngcontent-%COMP%]{border-bottom:1px solid rgba(0,0,0,.12)}.permission-item[_ngcontent-%COMP%]:last-child{border-bottom:none}mat-list-item[_ngcontent-%COMP%]{margin-bottom:0}mat-list-item[_ngcontent-%COMP%]:nth-child(odd){background-color:#0000000d}mat-list-item[_ngcontent-%COMP%]:hover{transition:all ease-in-out .1s;background-color:#00000012}.mat-icon.allowed[_ngcontent-%COMP%]{color:var(--%NS%color-success, green)}.mat-icon.denied[_ngcontent-%COMP%]{color:var(--%NS%color-error, red)}.origins-menu-content[_ngcontent-%COMP%]{padding:8px}.origin-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;padding:8px}.no-result[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;padding:24px 0;color:#00000061}.no-result-icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;margin-bottom:8px}.no-result-text[_ngcontent-%COMP%]{text-align:center}"] }); }
|
|
1325
|
+
}
|
|
1326
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserPermissionListComponent, [{
|
|
1327
|
+
type: Component,
|
|
1328
|
+
args: [{ selector: 'cauca-user-permission-list', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatListModule, MatFormField, MatLabel, MatInput, MatSuffix, MatIcon, MatMenuModule, TranslatePipe, IconButtonComponent], template: "<mat-form-field subscriptSizing=\"dynamic\" appearance=\"outline\" class=\"search-field\">\n <mat-label>{{ 'dataGrid.keywordsLabel' | translate }}</mat-label>\n <input matInput type=\"text\" [value]=\"searchText()\" (input)=\"searchText.set($any($event.target).value)\">\n <mat-icon matSuffix>search</mat-icon>\n</mat-form-field>\n\n<mat-list id=\"permission-list\">\n @for (permission of filteredPermissions(); track permission.idModulePermission) {\n <mat-list-item class=\"permission-item\">\n\n <mat-icon matListItemIcon\n [class.allowed]=\"permission.status === PermissionStatus.Allowed\"\n [class.denied]=\"permission.status === PermissionStatus.Denied\">\n @if (permission.status === PermissionStatus.Allowed) {\n check\n } @else if (permission.status === PermissionStatus.Denied) {\n block\n } @else {\n help_outline\n }\n </mat-icon>\n\n <div matListItemTitle>{{ permission.name }}</div>\n\n <cauca-icon-button\n matListItemMeta\n icon=\"info\"\n [matMenuTriggerFor]=\"originsMenu\" />\n\n <mat-menu #originsMenu=\"matMenu\">\n <div class=\"origins-menu-content\" (click)=\"$event.stopPropagation()\">\n <div class=\"origin-item body2\">{{ 'userPermissionDetails.originsLabel' | translate }}</div>\n @for (origin of permission.origins; track $index) {\n <div class=\"origin-item\">\n <mat-icon [class.allowed]=\"origin.isAllowed\" [class.denied]=\"!origin.isAllowed\">\n @if (origin.isAllowed) {\n check\n } @else {\n block\n }\n </mat-icon>\n <span class=\"origin-name body1\">\n {{ origin.kind === UserPermissionOriginKind.UserOverride\n ? ('userPermissionDetails.userOverrideOrigin' | translate)\n : origin.groupName }}\n </span>\n </div>\n } @empty {\n <div class=\"origin-item\">\n <span class=\"no-origins\">{{ 'userPermissionDetails.noOrigins' | translate }}</span>\n </div>\n }\n </div>\n </mat-menu>\n\n </mat-list-item>\n } @empty {\n <div class=\"no-result\">\n <mat-icon class=\"no-result-icon\">grid_off</mat-icon>\n <div class=\"no-result-text body2\">{{ 'noResult' | translate }}</div>\n </div>\n }\n</mat-list>\n", styles: [":host{display:flex;flex-direction:column;gap:16px}.search-field{width:100%}#permission-list{max-height:400px;overflow-y:auto;border:1px solid rgba(0,0,0,.23);border-radius:4px;padding:0}.permission-item{border-bottom:1px solid rgba(0,0,0,.12)}.permission-item:last-child{border-bottom:none}mat-list-item{margin-bottom:0}mat-list-item:nth-child(odd){background-color:#0000000d}mat-list-item:hover{transition:all ease-in-out .1s;background-color:#00000012}.mat-icon.allowed{color:var(--color-success, green)}.mat-icon.denied{color:var(--color-error, red)}.origins-menu-content{padding:8px}.origin-item{display:flex;align-items:center;gap:8px;padding:8px}.no-result{display:flex;flex-direction:column;align-items:center;padding:24px 0;color:#00000061}.no-result-icon{font-size:48px;width:48px;height:48px;margin-bottom:8px}.no-result-text{text-align:center}\n"] }]
|
|
1329
|
+
}], null, { permissions: [{ type: i0.Input, args: [{ isSignal: true, alias: "permissions", required: true }] }] }); })();
|
|
1330
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserPermissionListComponent, { className: "UserPermissionListComponent", filePath: "lib/components/user-permission-list/user-permission-list.component.ts", lineNumber: 20 }); })();
|
|
1331
|
+
|
|
1332
|
+
function UserPermissionsDialogComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
1333
|
+
i0.ɵɵelementStart(0, "div", 3);
|
|
1334
|
+
i0.ɵɵtext(1);
|
|
1335
|
+
i0.ɵɵelementEnd();
|
|
1336
|
+
} if (rf & 2) {
|
|
1337
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1338
|
+
i0.ɵɵadvance();
|
|
1339
|
+
i0.ɵɵtextInterpolate(ctx_r0.data.userDisplayName);
|
|
1340
|
+
} }
|
|
1341
|
+
class UserPermissionsDialogComponent {
|
|
1342
|
+
constructor() {
|
|
1343
|
+
this.data = inject(MAT_DIALOG_DATA);
|
|
1344
|
+
this.permissionsResource = rxResource({
|
|
1345
|
+
params: () => this.data.userId,
|
|
1346
|
+
stream: ({ params: userId }) => this.service.getForUser(userId)
|
|
1347
|
+
});
|
|
1348
|
+
this.permissions = computed(() => this.permissionsResource.value() ?? [], /* @ts-ignore */
|
|
1349
|
+
...(ngDevMode ? [{ debugName: "permissions" }] : /* istanbul ignore next */ []));
|
|
1350
|
+
this.dialogRef = inject((MatDialogRef));
|
|
1351
|
+
this.service = inject(UserPermissionDetailService);
|
|
1352
|
+
}
|
|
1353
|
+
closeDialog() {
|
|
1354
|
+
this.dialogRef.close();
|
|
1355
|
+
}
|
|
1356
|
+
static { this.ɵfac = function UserPermissionsDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || UserPermissionsDialogComponent)(); }; }
|
|
1357
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserPermissionsDialogComponent, selectors: [["cauca-user-permissions-dialog"]], features: [i0.ɵɵProvidersFeature([LoadingStateService])], decls: 12, vars: 5, consts: [["mat-dialog-title", ""], [1, "title-block"], [1, "h6"], [1, "subtitle", "body2"], [1, "dialog-content"], [3, "retryRequest"], [3, "permissions"], ["align", "end"], ["color", "primary", "label", "close", 3, "buttonClick"]], template: function UserPermissionsDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1358
|
+
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1)(2, "div", 2);
|
|
1359
|
+
i0.ɵɵtext(3);
|
|
1360
|
+
i0.ɵɵpipe(4, "translate");
|
|
1361
|
+
i0.ɵɵelementEnd();
|
|
1362
|
+
i0.ɵɵconditionalCreate(5, UserPermissionsDialogComponent_Conditional_5_Template, 2, 1, "div", 3);
|
|
1363
|
+
i0.ɵɵelementEnd()();
|
|
1364
|
+
i0.ɵɵelementStart(6, "mat-dialog-content", 4);
|
|
1365
|
+
i0.ɵɵelement(7, "cauca-loading-spinner-indicator");
|
|
1366
|
+
i0.ɵɵelementStart(8, "cauca-loading-error", 5);
|
|
1367
|
+
i0.ɵɵlistener("retryRequest", function UserPermissionsDialogComponent_Template_cauca_loading_error_retryRequest_8_listener() { return ctx.permissionsResource.reload(); });
|
|
1368
|
+
i0.ɵɵelementEnd();
|
|
1369
|
+
i0.ɵɵelement(9, "cauca-user-permission-list", 6);
|
|
1370
|
+
i0.ɵɵelementEnd();
|
|
1371
|
+
i0.ɵɵelementStart(10, "mat-dialog-actions", 7)(11, "cauca-raised-button", 8);
|
|
1372
|
+
i0.ɵɵlistener("buttonClick", function UserPermissionsDialogComponent_Template_cauca_raised_button_buttonClick_11_listener() { return ctx.closeDialog(); });
|
|
1373
|
+
i0.ɵɵelementEnd()();
|
|
1374
|
+
} if (rf & 2) {
|
|
1375
|
+
i0.ɵɵadvance(3);
|
|
1376
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 3, "userPermissionDetails.title"));
|
|
1377
|
+
i0.ɵɵadvance(2);
|
|
1378
|
+
i0.ɵɵconditional(ctx.data.userDisplayName ? 5 : -1);
|
|
1379
|
+
i0.ɵɵadvance(4);
|
|
1380
|
+
i0.ɵɵproperty("permissions", ctx.permissions());
|
|
1381
|
+
} }, dependencies: [MatDialogModule, i1$1.MatDialogTitle, i1$1.MatDialogActions, i1$1.MatDialogContent, LoadingSpinnerIndicatorComponent,
|
|
1382
|
+
LoadingErrorComponent,
|
|
1383
|
+
RaisedButtonComponent,
|
|
1384
|
+
UserPermissionListComponent,
|
|
1385
|
+
TranslatePipe], styles: [".title-block[_ngcontent-%COMP%]{display:flex;flex-direction:column}.subtitle[_ngcontent-%COMP%]{color:#0000008a}.dialog-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px;min-width:480px}"] }); }
|
|
1386
|
+
}
|
|
1387
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserPermissionsDialogComponent, [{
|
|
1388
|
+
type: Component,
|
|
1389
|
+
args: [{ selector: 'cauca-user-permissions-dialog', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
1390
|
+
MatDialogModule,
|
|
1391
|
+
TranslatePipe,
|
|
1392
|
+
LoadingSpinnerIndicatorComponent,
|
|
1393
|
+
LoadingErrorComponent,
|
|
1394
|
+
RaisedButtonComponent,
|
|
1395
|
+
UserPermissionListComponent,
|
|
1396
|
+
], providers: [LoadingStateService], template: "<div mat-dialog-title>\n <div class=\"title-block\">\n <div class=\"h6\">{{ 'userPermissionDetails.title' | translate }}</div>\n @if (data.userDisplayName) {\n <div class=\"subtitle body2\">{{ data.userDisplayName }}</div>\n }\n </div>\n</div>\n\n<mat-dialog-content class=\"dialog-content\">\n <cauca-loading-spinner-indicator />\n <cauca-loading-error (retryRequest)=\"permissionsResource.reload()\" />\n\n <cauca-user-permission-list [permissions]=\"permissions()\" />\n</mat-dialog-content>\n\n<mat-dialog-actions align=\"end\">\n <cauca-raised-button color=\"primary\" label=\"close\" (buttonClick)=\"closeDialog()\" />\n</mat-dialog-actions>\n", styles: [".title-block{display:flex;flex-direction:column}.subtitle{color:#0000008a}.dialog-content{display:flex;flex-direction:column;gap:16px;min-width:480px}\n"] }]
|
|
1397
|
+
}], null, null); })();
|
|
1398
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserPermissionsDialogComponent, { className: "UserPermissionsDialogComponent", filePath: "lib/components/user-permissions-dialog/user-permissions-dialog.component.ts", lineNumber: 31 }); })();
|
|
1399
|
+
|
|
1125
1400
|
class CaucaManagementService {
|
|
1126
1401
|
static { this.ɵfac = function CaucaManagementService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementService)(); }; }
|
|
1127
1402
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CaucaManagementService, factory: CaucaManagementService.ɵfac, providedIn: 'root' }); }
|
|
@@ -1135,21 +1410,21 @@ class CaucaManagementService {
|
|
|
1135
1410
|
|
|
1136
1411
|
class CaucaManagementComponent {
|
|
1137
1412
|
static { this.ɵfac = function CaucaManagementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementComponent)(); }; }
|
|
1138
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementComponent, selectors: [["cauca-management"]],
|
|
1139
|
-
i0.ɵɵ
|
|
1413
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementComponent, selectors: [["cauca-management"]], decls: 3, vars: 3, template: function CaucaManagementComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1414
|
+
i0.ɵɵdomElementStart(0, "div");
|
|
1140
1415
|
i0.ɵɵtext(1);
|
|
1141
1416
|
i0.ɵɵpipe(2, "translate");
|
|
1142
|
-
i0.ɵɵ
|
|
1417
|
+
i0.ɵɵdomElementEnd();
|
|
1143
1418
|
} if (rf & 2) {
|
|
1144
1419
|
i0.ɵɵadvance();
|
|
1145
1420
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
|
|
1146
|
-
} }, dependencies: [
|
|
1421
|
+
} }, dependencies: [TranslatePipe], encapsulation: 2 }); }
|
|
1147
1422
|
}
|
|
1148
1423
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementComponent, [{
|
|
1149
1424
|
type: Component,
|
|
1150
|
-
args: [{ selector: 'cauca-management',
|
|
1425
|
+
args: [{ selector: 'cauca-management', imports: [TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
|
|
1151
1426
|
}], null, null); })();
|
|
1152
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementComponent, { className: "CaucaManagementComponent", filePath: "lib/cauca-management.component.ts", lineNumber:
|
|
1427
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementComponent, { className: "CaucaManagementComponent", filePath: "lib/cauca-management.component.ts", lineNumber: 11 }); })();
|
|
1153
1428
|
|
|
1154
1429
|
/**
|
|
1155
1430
|
* @deprecated This service is obsolete and should not be used.
|
|
@@ -1293,7 +1568,7 @@ function CaucaManagementGroupComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
1293
1568
|
} if (rf & 2) {
|
|
1294
1569
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
1295
1570
|
i0.ɵɵadvance();
|
|
1296
|
-
i0.ɵɵproperty("dataSource", ctx_r2.permissions)("searchEnabled", true)("searchExpr", i0.ɵɵpureFunction0(5, _c0))("hoverStateEnabled", ctx_r2.hoverStatePermission);
|
|
1571
|
+
i0.ɵɵproperty("dataSource", ctx_r2.permissions)("searchEnabled", true)("searchExpr", i0.ɵɵpureFunction0(5, _c0))("hoverStateEnabled", ctx_r2.hoverStatePermission());
|
|
1297
1572
|
i0.ɵɵadvance();
|
|
1298
1573
|
i0.ɵɵproperty("dxTemplateOf", "rowTemplate");
|
|
1299
1574
|
} }
|
|
@@ -1302,9 +1577,12 @@ function CaucaManagementGroupComponent_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
|
1302
1577
|
*/
|
|
1303
1578
|
class CaucaManagementGroupComponent {
|
|
1304
1579
|
constructor() {
|
|
1305
|
-
this.showPrintButton = true
|
|
1306
|
-
|
|
1307
|
-
this.
|
|
1580
|
+
this.showPrintButton = input(true, /* @ts-ignore */
|
|
1581
|
+
...(ngDevMode ? [{ debugName: "showPrintButton" }] : /* istanbul ignore next */ []));
|
|
1582
|
+
this.hoverStatePermission = input(true, /* @ts-ignore */
|
|
1583
|
+
...(ngDevMode ? [{ debugName: "hoverStatePermission" }] : /* istanbul ignore next */ []));
|
|
1584
|
+
this.showAssignableByAllUsers = input(true, /* @ts-ignore */
|
|
1585
|
+
...(ngDevMode ? [{ debugName: "showAssignableByAllUsers" }] : /* istanbul ignore next */ []));
|
|
1308
1586
|
this.groups = [];
|
|
1309
1587
|
this.users = [];
|
|
1310
1588
|
this.permissions = [];
|
|
@@ -1484,7 +1762,7 @@ class CaucaManagementGroupComponent {
|
|
|
1484
1762
|
this.managementGroupService.getAll().subscribe((data) => this.groups = data);
|
|
1485
1763
|
}
|
|
1486
1764
|
static { this.ɵfac = function CaucaManagementGroupComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementGroupComponent)(); }; }
|
|
1487
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementGroupComponent, selectors: [["cauca-management-group"]], inputs: { showPrintButton: "showPrintButton", hoverStatePermission: "hoverStatePermission", showAssignableByAllUsers: "showAssignableByAllUsers" },
|
|
1765
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementGroupComponent, selectors: [["cauca-management-group"]], inputs: { showPrintButton: [1, "showPrintButton"], hoverStatePermission: [1, "hoverStatePermission"], showAssignableByAllUsers: [1, "showAssignableByAllUsers"] }, decls: 22, vars: 36, consts: [["keyExpr", "id", 3, "onRowInserted", "onInitNewRow", "onRowUpdated", "onEditingStart", "onRowRemoved", "allowPrint", "dataSource"], ["dataField", "name", 3, "caption"], ["type", "async", 3, "message", "validationCallback"], ["dataField", "assignableByAllUsers", "dataType", "boolean", 3, "caption", "visible"], ["dataField", "users", "editCellTemplate", "usersEditTemplate", 3, "caption", "calculateCellValue"], ["dataField", "permissions", "editCellTemplate", "permissionsEditTemplate", 3, "caption", "visible"], [3, "enabled"], ["mode", "popup", 3, "allowAdding", "allowUpdating", "allowDeleting", "useIcons"], [3, "showTitle", "title", "fullScreen"], ["colCount", "1", 3, "labelLocation"], ["dataField", "name", 3, "isRequired"], ["dataField", "users"], ["dataField", "permissions"], ["dataField", "assignableByAllUsers", 3, "visible"], [4, "dxTemplate", "dxTemplateOf"], ["valueExpr", "id", 3, "onInitialized", "onValueChanged", "displayExpr", "dataSource", "searchEnabled", "searchExpr"], ["itemTemplate", "rowTemplate", 3, "dataSource", "searchEnabled", "searchExpr", "hoverStateEnabled"], [3, "onInitialized", "onValueChanged", "text"]], template: function CaucaManagementGroupComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1488
1766
|
i0.ɵɵelementStart(0, "cauca-dx-data-grid", 0);
|
|
1489
1767
|
i0.ɵɵlistener("onRowInserted", function CaucaManagementGroupComponent_Template_cauca_dx_data_grid_onRowInserted_0_listener($event) { return ctx.onRowInserted($event); })("onInitNewRow", function CaucaManagementGroupComponent_Template_cauca_dx_data_grid_onInitNewRow_0_listener() { return ctx.onInitNewRow(); })("onRowUpdated", function CaucaManagementGroupComponent_Template_cauca_dx_data_grid_onRowUpdated_0_listener($event) { return ctx.onRowUpdated($event); })("onEditingStart", function CaucaManagementGroupComponent_Template_cauca_dx_data_grid_onEditingStart_0_listener($event) { return ctx.onEditingStart($event); })("onRowRemoved", function CaucaManagementGroupComponent_Template_cauca_dx_data_grid_onRowRemoved_0_listener($event) { return ctx.onRowRemoved($event); });
|
|
1490
1768
|
i0.ɵɵelementStart(1, "dxi-column", 1);
|
|
@@ -1508,13 +1786,13 @@ class CaucaManagementGroupComponent {
|
|
|
1508
1786
|
i0.ɵɵtemplate(20, CaucaManagementGroupComponent_div_20_Template, 2, 4, "div", 14)(21, CaucaManagementGroupComponent_div_21_Template, 3, 6, "div", 14);
|
|
1509
1787
|
i0.ɵɵelementEnd();
|
|
1510
1788
|
} if (rf & 2) {
|
|
1511
|
-
i0.ɵɵproperty("allowPrint", ctx.showPrintButton)("dataSource", ctx.groups);
|
|
1789
|
+
i0.ɵɵproperty("allowPrint", ctx.showPrintButton())("dataSource", ctx.groups);
|
|
1512
1790
|
i0.ɵɵadvance();
|
|
1513
1791
|
i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(2, 24, "management.name"));
|
|
1514
1792
|
i0.ɵɵadvance(2);
|
|
1515
1793
|
i0.ɵɵproperty("message", i0.ɵɵpipeBind1(4, 26, "management.groupNameAlreadyUsed"))("validationCallback", ctx.groupNameAlreadyUsedValidation);
|
|
1516
1794
|
i0.ɵɵadvance(2);
|
|
1517
|
-
i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(6, 28, "management.assignableByAllUsers"))("visible", ctx.showAssignableByAllUsers);
|
|
1795
|
+
i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(6, 28, "management.assignableByAllUsers"))("visible", ctx.showAssignableByAllUsers());
|
|
1518
1796
|
i0.ɵɵadvance(2);
|
|
1519
1797
|
i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(8, 30, "management.users"))("calculateCellValue", ctx.calculateUsersCellValue);
|
|
1520
1798
|
i0.ɵɵadvance(2);
|
|
@@ -1530,24 +1808,18 @@ class CaucaManagementGroupComponent {
|
|
|
1530
1808
|
i0.ɵɵadvance();
|
|
1531
1809
|
i0.ɵɵproperty("isRequired", true);
|
|
1532
1810
|
i0.ɵɵadvance(3);
|
|
1533
|
-
i0.ɵɵproperty("visible", ctx.showAssignableByAllUsers);
|
|
1811
|
+
i0.ɵɵproperty("visible", ctx.showAssignableByAllUsers());
|
|
1534
1812
|
i0.ɵɵadvance();
|
|
1535
1813
|
i0.ɵɵproperty("dxTemplateOf", "usersEditTemplate");
|
|
1536
1814
|
i0.ɵɵadvance();
|
|
1537
1815
|
i0.ɵɵproperty("dxTemplateOf", "permissionsEditTemplate");
|
|
1538
|
-
} }, dependencies: [i1$
|
|
1816
|
+
} }, dependencies: [CaucaDevextremeModule, i1$3.CaucaDataGridComponent, i2$2.DxiColumnComponent, i2$2.DxiValidationRuleComponent, i2$2.DxoEditingComponent, i2$2.DxoFormComponent, i2$2.DxiItemComponent, i2$2.DxoPopupComponent, i2$2.DxoExportComponent, i3$2.DxTemplateDirective, DxCheckBoxModule, i4$2.DxCheckBoxComponent, DxListModule, i5$1.DxListComponent, DxTagBoxModule, i6$1.DxTagBoxComponent, TranslatePipe], encapsulation: 2 }); }
|
|
1539
1817
|
}
|
|
1540
1818
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementGroupComponent, [{
|
|
1541
1819
|
type: Component,
|
|
1542
|
-
args: [{ selector: 'cauca-management-group',
|
|
1543
|
-
}], () => [], { showPrintButton: [{
|
|
1544
|
-
|
|
1545
|
-
}], hoverStatePermission: [{
|
|
1546
|
-
type: Input
|
|
1547
|
-
}], showAssignableByAllUsers: [{
|
|
1548
|
-
type: Input
|
|
1549
|
-
}] }); })();
|
|
1550
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementGroupComponent, { className: "CaucaManagementGroupComponent", filePath: "lib/cauca-management-group/cauca-management-group.component.ts", lineNumber: 22 }); })();
|
|
1820
|
+
args: [{ selector: 'cauca-management-group', imports: [CaucaDevextremeModule, DxCheckBoxModule, DxListModule, DxTagBoxModule, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cauca-dx-data-grid [allowPrint]=\"showPrintButton()\" keyExpr=\"id\" [dataSource]=\"groups\"\n (onRowInserted)=\"onRowInserted($event)\" (onInitNewRow)=\"onInitNewRow()\" (onRowUpdated)=\"onRowUpdated($event)\"\n (onEditingStart)=\"onEditingStart($event)\" (onRowRemoved)=\"onRowRemoved($event)\">\n\n <dxi-column dataField=\"name\" [caption]=\"'management.name' | translate\">\n <dxi-validation-rule type=\"async\" [message]=\"'management.groupNameAlreadyUsed' | translate\"\n [validationCallback]=\"groupNameAlreadyUsedValidation\"></dxi-validation-rule>\n </dxi-column>\n <dxi-column dataField=\"assignableByAllUsers\" [caption]=\"'management.assignableByAllUsers' | translate\"\n dataType=\"boolean\" [visible]=\"showAssignableByAllUsers()\">\n </dxi-column>\n <dxi-column dataField=\"users\" [caption]=\"'management.users' | translate\" editCellTemplate=\"usersEditTemplate\"\n [calculateCellValue]=\"calculateUsersCellValue\">\n </dxi-column>\n <dxi-column dataField=\"permissions\" [caption]=\"'management.permissions' | translate\" [visible]=\"false\"\n editCellTemplate=\"permissionsEditTemplate\">\n </dxi-column>\n <dxo-export [enabled]=\"false\"></dxo-export>\n <dxo-editing mode=\"popup\" [allowAdding]=\"true\" [allowUpdating]=\"true\" [allowDeleting]=\"true\" [useIcons]=\"true\">\n <dxo-popup [showTitle]=\"true\" [title]=\"'management.group' | translate\" [fullScreen]=\"!showColumn\"></dxo-popup>\n <dxo-form colCount=\"1\" [labelLocation]=\"showColumnXS ? 'left' : 'top'\">\n <dxi-item dataField=\"name\" [isRequired]=\"true\"></dxi-item>\n <dxi-item dataField=\"users\"></dxi-item>\n <dxi-item dataField=\"permissions\"></dxi-item>\n <dxi-item dataField=\"assignableByAllUsers\" [visible]=\"showAssignableByAllUsers()\"></dxi-item>\n </dxo-form>\n </dxo-editing>\n\n <div *dxTemplate=\"let field of 'usersEditTemplate'\">\n <dx-tag-box valueExpr=\"id\" [displayExpr]=\"fullName\" [dataSource]=\"users\" [searchEnabled]=\"true\"\n [searchExpr]=\"fullName\" (onInitialized)=\"getGroupUser(field, $event)\"\n (onValueChanged)=\"setGroupUser(field, $event)\">\n </dx-tag-box>\n </div>\n <div *dxTemplate=\"let field of 'permissionsEditTemplate'\">\n <dx-list [dataSource]=\"permissions\" itemTemplate=\"rowTemplate\" [searchEnabled]=\"true\"\n [searchExpr]=\"['name', 'tag']\" [hoverStateEnabled]=\"hoverStatePermission()\">\n <div *dxTemplate=\"let permission of 'rowTemplate'\">\n <dx-check-box [text]=\"permission.name\" (onInitialized)=\"getPermissionStatus(field, permission, $event)\"\n (onValueChanged)=\"checkBoxToggled(field, permission, $event)\">\n </dx-check-box>\n </div>\n </dx-list>\n </div>\n</cauca-dx-data-grid>" }]
|
|
1821
|
+
}], () => [], { showPrintButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPrintButton", required: false }] }], hoverStatePermission: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoverStatePermission", required: false }] }], showAssignableByAllUsers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAssignableByAllUsers", required: false }] }] }); })();
|
|
1822
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementGroupComponent, { className: "CaucaManagementGroupComponent", filePath: "lib/cauca-management-group/cauca-management-group.component.ts", lineNumber: 28 }); })();
|
|
1551
1823
|
|
|
1552
1824
|
/**
|
|
1553
1825
|
* @deprecated This model is obsolete and should not be used.
|
|
@@ -1604,7 +1876,7 @@ class CaucaManagementUserComponent {
|
|
|
1604
1876
|
this.managementUserService.getAll().subscribe((data) => this.users = data);
|
|
1605
1877
|
}
|
|
1606
1878
|
static { this.ɵfac = function CaucaManagementUserComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementUserComponent)(); }; }
|
|
1607
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementUserComponent, selectors: [["cauca-management-user"]],
|
|
1879
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementUserComponent, selectors: [["cauca-management-user"]], decls: 22, vars: 31, consts: [["keyExpr", "id", 3, "onRowInserted", "onRowUpdated", "onRowRemoved", "dataSource"], ["dataField", "userName", 3, "caption"], ["type", "async", 3, "message", "validationCallback"], ["dataField", "isActive", 3, "caption", "visible"], ["dataField", "firstName", 3, "caption"], ["dataField", "lastName", 3, "caption"], ["dataField", "groups", 3, "caption"], ["mode", "popup", 3, "allowAdding", "allowUpdating", "allowDeleting", "useIcons"], [3, "showTitle", "title"], ["colCount", "2", 3, "labelLocation"], ["dataField", "userName", 3, "isRequired"], ["dataField", "isActive"], ["dataField", "firstName"], ["dataField", "lastName"], ["dataField", "group"]], template: function CaucaManagementUserComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1608
1880
|
i0.ɵɵelementStart(0, "cauca-dx-data-grid", 0);
|
|
1609
1881
|
i0.ɵɵlistener("onRowInserted", function CaucaManagementUserComponent_Template_cauca_dx_data_grid_onRowInserted_0_listener($event) { return ctx.onRowInserted($event); })("onRowUpdated", function CaucaManagementUserComponent_Template_cauca_dx_data_grid_onRowUpdated_0_listener($event) { return ctx.onRowUpdated($event); })("onRowRemoved", function CaucaManagementUserComponent_Template_cauca_dx_data_grid_onRowRemoved_0_listener($event) { return ctx.onRowRemoved($event); });
|
|
1610
1882
|
i0.ɵɵelementStart(1, "dxi-column", 1);
|
|
@@ -1648,39 +1920,32 @@ class CaucaManagementUserComponent {
|
|
|
1648
1920
|
i0.ɵɵproperty("labelLocation", ctx.showColumnXS ? "left" : "top");
|
|
1649
1921
|
i0.ɵɵadvance();
|
|
1650
1922
|
i0.ɵɵproperty("isRequired", true);
|
|
1651
|
-
} }, dependencies: [
|
|
1923
|
+
} }, dependencies: [CaucaDevextremeModule, i1$3.CaucaDataGridComponent, i2$2.DxiColumnComponent, i2$2.DxiValidationRuleComponent, i2$2.DxoEditingComponent, i2$2.DxoFormComponent, i2$2.DxiItemComponent, i2$2.DxoPopupComponent, TranslatePipe], encapsulation: 2 }); }
|
|
1652
1924
|
}
|
|
1653
1925
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementUserComponent, [{
|
|
1654
1926
|
type: Component,
|
|
1655
|
-
args: [{ selector: 'cauca-management-user',
|
|
1927
|
+
args: [{ selector: 'cauca-management-user', imports: [CaucaDevextremeModule, TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<cauca-dx-data-grid\n keyExpr=\"id\"\n [dataSource]=\"users\"\n (onRowInserted)=\"onRowInserted($event)\"\n (onRowUpdated)=\"onRowUpdated($event)\"\n (onRowRemoved)=\"onRowRemoved($event)\">\n\n <dxi-column dataField=\"userName\" [caption]=\"'management.userName' | translate\">\n <dxi-validation-rule type=\"async\" [message]=\"'management.userNameAlreadyUsed' | translate\" [validationCallback]=\"userNameAlreadyUsedValidation\"></dxi-validation-rule>\n </dxi-column>\n <dxi-column dataField=\"isActive\" [caption]=\"'management.isActive' | translate\" [visible]=\"false\"></dxi-column>\n <dxi-column dataField=\"firstName\" [caption]=\"'management.firstName' | translate\"></dxi-column>\n <dxi-column dataField=\"lastName\" [caption]=\"'management.lastName' | translate\"></dxi-column>\n <dxi-column dataField=\"groups\" [caption]=\"'management.group' | translate\"></dxi-column>\n\n <dxo-editing mode=\"popup\" [allowAdding]=\"true\" [allowUpdating]=\"true\" [allowDeleting]=\"true\" [useIcons]=\"true\">\n <dxo-popup [showTitle]=\"true\" [title]=\"'management.group' | translate\"></dxo-popup>\n <dxo-form colCount=\"2\" [labelLocation]=\"showColumnXS ? 'left' : 'top'\">\n <dxi-item dataField=\"userName\" [isRequired]=\"true\"></dxi-item>\n <dxi-item dataField=\"isActive\"></dxi-item>\n <dxi-item dataField=\"firstName\"></dxi-item>\n <dxi-item dataField=\"lastName\"></dxi-item>\n <dxi-item dataField=\"group\"></dxi-item>\n </dxo-form>\n </dxo-editing>\n</cauca-dx-data-grid>\n" }]
|
|
1656
1928
|
}], () => [], null); })();
|
|
1657
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementUserComponent, { className: "CaucaManagementUserComponent", filePath: "lib/cauca-management-user/cauca-management-user.component.ts", lineNumber:
|
|
1929
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementUserComponent, { className: "CaucaManagementUserComponent", filePath: "lib/cauca-management-user/cauca-management-user.component.ts", lineNumber: 20 }); })();
|
|
1658
1930
|
|
|
1931
|
+
/**
|
|
1932
|
+
* @deprecated Import CaucaManagementComponent, CaucaManagementUserComponent and
|
|
1933
|
+
* CaucaManagementGroupComponent directly in your standalone components. Kept as a re-export
|
|
1934
|
+
* so existing consumers keep compiling.
|
|
1935
|
+
*/
|
|
1659
1936
|
class CaucaManagementModule {
|
|
1660
1937
|
static { this.ɵfac = function CaucaManagementModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementModule)(); }; }
|
|
1661
1938
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaManagementModule }); }
|
|
1662
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [
|
|
1663
|
-
|
|
1664
|
-
DxListModule,
|
|
1665
|
-
DxTagBoxModule,
|
|
1666
|
-
CaucaCoreForChildModule,
|
|
1667
|
-
CaucaDevextremeModule] }); }
|
|
1939
|
+
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CaucaManagementGroupComponent,
|
|
1940
|
+
CaucaManagementUserComponent] }); }
|
|
1668
1941
|
}
|
|
1669
1942
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementModule, [{
|
|
1670
1943
|
type: NgModule,
|
|
1671
1944
|
args: [{
|
|
1672
|
-
|
|
1945
|
+
imports: [
|
|
1673
1946
|
CaucaManagementComponent,
|
|
1674
1947
|
CaucaManagementGroupComponent,
|
|
1675
|
-
CaucaManagementUserComponent
|
|
1676
|
-
],
|
|
1677
|
-
imports: [
|
|
1678
|
-
CommonModule,
|
|
1679
|
-
DxCheckBoxModule,
|
|
1680
|
-
DxListModule,
|
|
1681
|
-
DxTagBoxModule,
|
|
1682
|
-
CaucaCoreForChildModule,
|
|
1683
|
-
CaucaDevextremeModule,
|
|
1948
|
+
CaucaManagementUserComponent,
|
|
1684
1949
|
],
|
|
1685
1950
|
exports: [
|
|
1686
1951
|
CaucaManagementComponent,
|
|
@@ -1689,14 +1954,9 @@ class CaucaManagementModule {
|
|
|
1689
1954
|
]
|
|
1690
1955
|
}]
|
|
1691
1956
|
}], null, null); })();
|
|
1692
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaManagementModule, {
|
|
1957
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaManagementModule, { imports: [CaucaManagementComponent,
|
|
1693
1958
|
CaucaManagementGroupComponent,
|
|
1694
|
-
CaucaManagementUserComponent],
|
|
1695
|
-
DxCheckBoxModule,
|
|
1696
|
-
DxListModule,
|
|
1697
|
-
DxTagBoxModule,
|
|
1698
|
-
CaucaCoreForChildModule,
|
|
1699
|
-
CaucaDevextremeModule], exports: [CaucaManagementComponent,
|
|
1959
|
+
CaucaManagementUserComponent], exports: [CaucaManagementComponent,
|
|
1700
1960
|
CaucaManagementUserComponent,
|
|
1701
1961
|
CaucaManagementGroupComponent] }); })();
|
|
1702
1962
|
|
|
@@ -1754,5 +2014,5 @@ class GroupPermissionModel {
|
|
|
1754
2014
|
* Generated bundle index. Do not edit.
|
|
1755
2015
|
*/
|
|
1756
2016
|
|
|
1757
|
-
export { CaucaManagementComponent, CaucaManagementGroupComponent, CaucaManagementModule, CaucaManagementService, CaucaManagementUserComponent, GroupEditionPageComponent, GroupModel, GroupPermissionModel, GroupsPageComponent, MANAGEMENT_ROUTE_SEGMENT, MANAGEMENT_URL_PREFIX, ManagementGroupService, ManagementUserService, REFRESHABLE_PERMISSION_STATE_TOKEN, UserGroupModel, UserModel, UserPermissionModel, managementGroupRoutes, provideCaucaManagement };
|
|
2017
|
+
export { CaucaManagementComponent, CaucaManagementGroupComponent, CaucaManagementModule, CaucaManagementService, CaucaManagementUserComponent, GroupEditionPageComponent, GroupModel, GroupPermissionModel, GroupsPageComponent, MANAGEMENT_ROUTE_SEGMENT, MANAGEMENT_URL_PREFIX, ManagementGroupService, ManagementUserService, REFRESHABLE_PERMISSION_STATE_TOKEN, UserGroupModel, UserModel, UserPermissionModel, UserPermissionsDialogComponent, managementGroupRoutes, provideCaucaManagement };
|
|
1758
2018
|
//# sourceMappingURL=cauca-911-management.mjs.map
|