@cauca-911/management 21.3.8 → 22.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.
@@ -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, Input, NgModule } from '@angular/core';
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, CaucaCoreForChildModule } from '@cauca-911/core';
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';
@@ -33,19 +32,18 @@ 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 i1$4 from 'devextreme-angular/ui/check-box';
35
+ import * as i1$3 from '@cauca-911/devextreme';
36
+ import { CaucaDevextremeModule } from '@cauca-911/devextreme';
37
+ import * as i4$2 from 'devextreme-angular/ui/check-box';
37
38
  import { DxCheckBoxModule } from 'devextreme-angular/ui/check-box';
38
- import * as i3$2 from 'devextreme-angular/ui/list';
39
+ import * as i5$1 from 'devextreme-angular/ui/list';
39
40
  import { DxListModule } from 'devextreme-angular/ui/list';
40
- import * as i5$1 from 'devextreme-angular/ui/tag-box';
41
+ import * as i6$1 from 'devextreme-angular/ui/tag-box';
41
42
  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
43
  import { BreakpointObserver } from '@angular/cdk/layout';
45
44
  import { map } from 'rxjs/operators';
46
- import * as i2$1 from 'devextreme-angular/core';
47
- import * as i4$2 from 'devextreme-angular/ui/nested';
48
- import { CommonModule } from '@angular/common';
45
+ import * as i2$1 from 'devextreme-angular/ui/nested';
46
+ import * as i3$2 from 'devextreme-angular/core';
49
47
 
50
48
  const MANAGEMENT_URL_PREFIX = new InjectionToken('MANAGEMENT_URL_PREFIX');
51
49
  const MANAGEMENT_ROUTE_SEGMENT = new InjectionToken('MANAGEMENT_ROUTE_SEGMENT');
@@ -106,7 +104,8 @@ class GroupManagementService {
106
104
  const _c0$3 = () => ["name"];
107
105
  class GroupListGridComponent {
108
106
  constructor() {
109
- this.columns = computed(() => this.getColumns(), ...(ngDevMode ? [{ debugName: "columns" }] : []));
107
+ this.columns = computed(() => this.getColumns(), /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
110
109
  this.router = inject(Router);
111
110
  this.dialog = inject(DialogService);
112
111
  this.service = inject(GroupManagementService);
@@ -167,7 +166,7 @@ class GroupListGridComponent {
167
166
  i0.ɵɵproperty("label", i0.ɵɵpipeBind1(5, 14, "groups.assignableByAllUsersColumnLabel"));
168
167
  i0.ɵɵadvance(2);
169
168
  i0.ɵɵproperty("canDelete", true)("canEdit", true);
170
- } }, dependencies: [MatSort, OdataGridComponent, SortableDataGridColumnComponent, SortableDataGridCheckColumnComponent, DataGridCommandsColumnComponent, TranslatePipe], encapsulation: 2, changeDetection: 0 }); }
169
+ } }, dependencies: [MatSort, OdataGridComponent, SortableDataGridColumnComponent, SortableDataGridCheckColumnComponent, DataGridCommandsColumnComponent, TranslatePipe], encapsulation: 2 }); }
171
170
  }
172
171
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupListGridComponent, [{
173
172
  type: Component,
@@ -190,7 +189,7 @@ class GroupsPageComponent {
190
189
  i0.ɵɵelementEnd()();
191
190
  } if (rf & 2) {
192
191
  i0.ɵɵproperty("showBreadcrumb", true);
193
- } }, dependencies: [MatCardModule, i1.MatCard, i1.MatCardContent, PageTitleComponent, GroupListGridComponent], encapsulation: 2, changeDetection: 0 }); }
192
+ } }, dependencies: [MatCardModule, i1.MatCard, i1.MatCardContent, PageTitleComponent, GroupListGridComponent], encapsulation: 2 }); }
194
193
  }
195
194
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupsPageComponent, [{
196
195
  type: Component,
@@ -442,17 +441,23 @@ class GroupUserSelectionDialogComponent {
442
441
  this.MIN_SEARCH_LENGTH = 3;
443
442
  this.PAGE_SIZE = 10;
444
443
  this.data = inject(MAT_DIALOG_DATA);
445
- this.searchTerm = signal('', ...(ngDevMode ? [{ debugName: "searchTerm" }] : []));
446
- this.selectedUsers = signal([], ...(ngDevMode ? [{ debugName: "selectedUsers" }] : []));
447
- this.currentPage = signal(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
448
- this.paginator = viewChild('resultPaginator', ...(ngDevMode ? [{ debugName: "paginator" }] : []));
449
- this.selectedUserIds = computed(() => new Set(this.selectedUsers().map(u => u.id)), ...(ngDevMode ? [{ debugName: "selectedUserIds" }] : []));
444
+ this.searchTerm = signal('', /* @ts-ignore */
445
+ ...(ngDevMode ? [{ debugName: "searchTerm" }] : /* istanbul ignore next */ []));
446
+ this.selectedUsers = signal([], /* @ts-ignore */
447
+ ...(ngDevMode ? [{ debugName: "selectedUsers" }] : /* istanbul ignore next */ []));
448
+ this.currentPage = signal(1, /* @ts-ignore */
449
+ ...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
450
+ this.paginator = viewChild('resultPaginator', /* @ts-ignore */
451
+ ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
452
+ this.selectedUserIds = computed(() => new Set(this.selectedUsers().map(u => u.id)), /* @ts-ignore */
453
+ ...(ngDevMode ? [{ debugName: "selectedUserIds" }] : /* istanbul ignore next */ []));
450
454
  this.selectedUsersLabel = computed(() => [...this.selectedUsers()]
451
455
  .sort((a, b) => toLowerCaseAndWithoutDiacritics(a.fullName).localeCompare(toLowerCaseAndWithoutDiacritics(b.fullName)))
452
456
  .map(u => u.fullName)
453
- .join(', '), ...(ngDevMode ? [{ debugName: "selectedUsersLabel" }] : []));
457
+ .join(', '), /* @ts-ignore */
458
+ ...(ngDevMode ? [{ debugName: "selectedUsersLabel" }] : /* istanbul ignore next */ []));
454
459
  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() })),
460
+ this.searchResource = resource({ ...(ngDevMode ? { debugName: "searchResource" } : /* istanbul ignore next */ {}), params: computed(() => ({ query: this.debouncedSearch(), page: this.currentPage() })),
456
461
  loader: ({ params }) => {
457
462
  if (params.query.length < this.MIN_SEARCH_LENGTH) {
458
463
  return Promise.resolve({ items: [], totalCount: 0 });
@@ -460,9 +465,12 @@ class GroupUserSelectionDialogComponent {
460
465
  const skip = (params.page - 1) * this.PAGE_SIZE;
461
466
  return this.userSearchService.search(params.query, this.data.currentUserIds, skip, this.PAGE_SIZE);
462
467
  } });
463
- this.results = computed(() => this.lastResult().items, ...(ngDevMode ? [{ debugName: "results" }] : []));
464
- this.totalCount = computed(() => this.lastResult().totalCount, ...(ngDevMode ? [{ debugName: "totalCount" }] : []));
465
- this.lastResult = signal({ items: [], totalCount: 0 }, ...(ngDevMode ? [{ debugName: "lastResult" }] : []));
468
+ this.results = computed(() => this.lastResult().items, /* @ts-ignore */
469
+ ...(ngDevMode ? [{ debugName: "results" }] : /* istanbul ignore next */ []));
470
+ this.totalCount = computed(() => this.lastResult().totalCount, /* @ts-ignore */
471
+ ...(ngDevMode ? [{ debugName: "totalCount" }] : /* istanbul ignore next */ []));
472
+ this.lastResult = signal({ items: [], totalCount: 0 }, /* @ts-ignore */
473
+ ...(ngDevMode ? [{ debugName: "lastResult" }] : /* istanbul ignore next */ []));
466
474
  this.dialogRef = inject((MatDialogRef));
467
475
  this.userSearchService = inject(UserSearchService);
468
476
  this.compareUserById = (a, b) => a?.id === b?.id;
@@ -575,7 +583,7 @@ class GroupUserSelectionDialogComponent {
575
583
  RaisedButtonComponent,
576
584
  ListPaginatorComponent,
577
585
  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}"], changeDetection: 0 }); }
586
+ 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
587
  }
580
588
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupUserSelectionDialogComponent, [{
581
589
  type: Component,
@@ -667,20 +675,26 @@ function GroupUserEditionListComponent_Conditional_12_Template(rf, ctx) { if (rf
667
675
  class GroupUserEditionListComponent {
668
676
  constructor() {
669
677
  this.PAGE_SIZE = 10;
670
- this.currentPage = signal(1, ...(ngDevMode ? [{ debugName: "currentPage" }] : []));
671
- this.filterTerm = signal('', ...(ngDevMode ? [{ debugName: "filterTerm" }] : []));
672
- this.paginator = viewChild('paginator', ...(ngDevMode ? [{ debugName: "paginator" }] : []));
673
- this.sortedUsers = computed(() => [...this.state.users()].sort((a, b) => toLowerCaseAndWithoutDiacritics(a.fullName).localeCompare(toLowerCaseAndWithoutDiacritics(b.fullName))), ...(ngDevMode ? [{ debugName: "sortedUsers" }] : []));
678
+ this.currentPage = signal(1, /* @ts-ignore */
679
+ ...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
680
+ this.filterTerm = signal('', /* @ts-ignore */
681
+ ...(ngDevMode ? [{ debugName: "filterTerm" }] : /* istanbul ignore next */ []));
682
+ this.paginator = viewChild('paginator', /* @ts-ignore */
683
+ ...(ngDevMode ? [{ debugName: "paginator" }] : /* istanbul ignore next */ []));
684
+ this.sortedUsers = computed(() => [...this.state.users()].sort((a, b) => toLowerCaseAndWithoutDiacritics(a.fullName).localeCompare(toLowerCaseAndWithoutDiacritics(b.fullName))), /* @ts-ignore */
685
+ ...(ngDevMode ? [{ debugName: "sortedUsers" }] : /* istanbul ignore next */ []));
674
686
  this.filteredUsers = computed(() => {
675
687
  const term = toLowerCaseAndWithoutDiacritics(this.filterTerm());
676
688
  if (!term)
677
689
  return this.sortedUsers();
678
690
  return this.sortedUsers().filter(u => toLowerCaseAndWithoutDiacritics(u.fullName).includes(term));
679
- }, ...(ngDevMode ? [{ debugName: "filteredUsers" }] : []));
691
+ }, /* @ts-ignore */
692
+ ...(ngDevMode ? [{ debugName: "filteredUsers" }] : /* istanbul ignore next */ []));
680
693
  this.pagedUsers = computed(() => {
681
694
  const start = (this.currentPage() - 1) * this.PAGE_SIZE;
682
695
  return this.filteredUsers().slice(start, start + this.PAGE_SIZE);
683
- }, ...(ngDevMode ? [{ debugName: "pagedUsers" }] : []));
696
+ }, /* @ts-ignore */
697
+ ...(ngDevMode ? [{ debugName: "pagedUsers" }] : /* istanbul ignore next */ []));
684
698
  this.state = inject(GroupEditionStateService);
685
699
  this.dialogService = inject(DialogService);
686
700
  this.dialog = inject(MatDialog);
@@ -758,7 +772,7 @@ class GroupUserEditionListComponent {
758
772
  i0.ɵɵrepeater(ctx.pagedUsers());
759
773
  i0.ɵɵadvance(3);
760
774
  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}"], changeDetection: 0 }); }
775
+ } }, 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
776
  }
763
777
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupUserEditionListComponent, [{
764
778
  type: Component,
@@ -844,10 +858,13 @@ function GroupPermissionListComponent_ForEmpty_10_Template(rf, ctx) { if (rf & 1
844
858
  } }
845
859
  class GroupPermissionListComponent {
846
860
  constructor() {
847
- this.searchText = model('', ...(ngDevMode ? [{ debugName: "searchText" }] : []));
848
- this.currentPermissions = signal([], ...(ngDevMode ? [{ debugName: "currentPermissions" }] : []));
861
+ this.searchText = model('', /* @ts-ignore */
862
+ ...(ngDevMode ? [{ debugName: "searchText" }] : /* istanbul ignore next */ []));
863
+ this.currentPermissions = signal([], /* @ts-ignore */
864
+ ...(ngDevMode ? [{ debugName: "currentPermissions" }] : /* istanbul ignore next */ []));
849
865
  this.filteredPermissionsValues = computed(() => this.currentPermissions()?.filter((permission) => toLowerCaseAndWithoutDiacritics(permission.name)
850
- .includes(toLowerCaseAndWithoutDiacritics(this.searchText()))) || [], ...(ngDevMode ? [{ debugName: "filteredPermissionsValues" }] : []));
866
+ .includes(toLowerCaseAndWithoutDiacritics(this.searchText()))) || [], /* @ts-ignore */
867
+ ...(ngDevMode ? [{ debugName: "filteredPermissionsValues" }] : /* istanbul ignore next */ []));
851
868
  this.service = inject(PermissionManagementService);
852
869
  this.state = inject(GroupEditionStateService);
853
870
  }
@@ -893,6 +910,7 @@ class GroupPermissionListComponent {
893
910
  i0.ɵɵelementStart(4, "input", 1);
894
911
  i0.ɵɵtwoWayListener("ngModelChange", function GroupPermissionListComponent_Template_input_ngModelChange_4_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchText, $event) || (ctx.searchText = $event); return $event; });
895
912
  i0.ɵɵelementEnd();
913
+ i0.ɵɵcontrolCreate();
896
914
  i0.ɵɵelementStart(5, "mat-icon", 2);
897
915
  i0.ɵɵtext(6, "search");
898
916
  i0.ɵɵelementEnd()();
@@ -904,9 +922,10 @@ class GroupPermissionListComponent {
904
922
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 3, "dataGrid.keywordsLabel"));
905
923
  i0.ɵɵadvance(2);
906
924
  i0.ɵɵtwoWayProperty("ngModel", ctx.searchText);
925
+ i0.ɵɵcontrol();
907
926
  i0.ɵɵadvance(4);
908
927
  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}"], changeDetection: 0 }); }
928
+ } }, 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
929
  }
911
930
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupPermissionListComponent, [{
912
931
  type: Component,
@@ -934,12 +953,15 @@ class GroupEditionFormComponent {
934
953
  i0.ɵɵpipe(5, "translate");
935
954
  i0.ɵɵelementEnd();
936
955
  i0.ɵɵelement(6, "input", 3);
956
+ i0.ɵɵcontrolCreate();
937
957
  i0.ɵɵconditionalCreate(7, GroupEditionFormComponent_Conditional_7_Template, 3, 3, "mat-error");
938
958
  i0.ɵɵelementEnd();
939
959
  i0.ɵɵelementStart(8, "mat-slide-toggle", 4);
940
960
  i0.ɵɵtext(9);
941
961
  i0.ɵɵpipe(10, "translate");
942
- i0.ɵɵelementEnd()();
962
+ i0.ɵɵelementEnd();
963
+ i0.ɵɵcontrolCreate();
964
+ i0.ɵɵelementEnd();
943
965
  i0.ɵɵelement(11, "mat-divider");
944
966
  i0.ɵɵelementStart(12, "cauca-group-container", 5);
945
967
  i0.ɵɵelement(13, "cauca-group-user-edition-list");
@@ -952,11 +974,15 @@ class GroupEditionFormComponent {
952
974
  i0.ɵɵproperty("formGroup", ctx.state.form);
953
975
  i0.ɵɵadvance(4);
954
976
  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
977
  i0.ɵɵadvance(2);
978
+ i0.ɵɵcontrol();
979
+ i0.ɵɵadvance();
980
+ i0.ɵɵconditional(ctx.state.form.get("name").hasError("required") ? 7 : -1);
981
+ i0.ɵɵadvance();
982
+ i0.ɵɵcontrol();
983
+ i0.ɵɵadvance();
958
984
  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}"], changeDetection: 0 }); }
985
+ } }, 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
986
  }
961
987
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupEditionFormComponent, [{
962
988
  type: Component,
@@ -976,12 +1002,18 @@ function GroupEditionPageComponent_Conditional_6_Template(rf, ctx) { if (rf & 1)
976
1002
  } }
977
1003
  class GroupEditionPageComponent {
978
1004
  constructor() {
979
- this.id = input.required(...(ngDevMode ? [{ debugName: "id" }] : []));
980
- this.isLoaded = signal(false, ...(ngDevMode ? [{ debugName: "isLoaded" }] : []));
981
- this.isSaving = signal(false, ...(ngDevMode ? [{ debugName: "isSaving" }] : []));
982
- this.showSavingError = signal(false, ...(ngDevMode ? [{ debugName: "showSavingError" }] : []));
983
- this.title = computed(() => 'groupEdition.' + (this.id() === 'new' ? 'newGroupTitle' : 'editGroupTitle'), ...(ngDevMode ? [{ debugName: "title" }] : []));
984
- this.currentLocation = computed(() => [{ link: this.groupsPath, title: 'menu.groups' }], ...(ngDevMode ? [{ debugName: "currentLocation" }] : []));
1005
+ this.id = input.required(/* @ts-ignore */
1006
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
1007
+ this.isLoaded = signal(false, /* @ts-ignore */
1008
+ ...(ngDevMode ? [{ debugName: "isLoaded" }] : /* istanbul ignore next */ []));
1009
+ this.isSaving = signal(false, /* @ts-ignore */
1010
+ ...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
1011
+ this.showSavingError = signal(false, /* @ts-ignore */
1012
+ ...(ngDevMode ? [{ debugName: "showSavingError" }] : /* istanbul ignore next */ []));
1013
+ this.title = computed(() => 'groupEdition.' + (this.id() === 'new' ? 'newGroupTitle' : 'editGroupTitle'), /* @ts-ignore */
1014
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
1015
+ this.currentLocation = computed(() => [{ link: this.groupsPath, title: 'menu.groups' }], /* @ts-ignore */
1016
+ ...(ngDevMode ? [{ debugName: "currentLocation" }] : /* istanbul ignore next */ []));
985
1017
  this.state = inject(GroupEditionStateService);
986
1018
  this.dialog = inject(DialogService);
987
1019
  this.router = inject(Router);
@@ -1102,7 +1134,7 @@ class GroupEditionPageComponent {
1102
1134
  i0.ɵɵproperty("isDisabled", ctx.isSaving());
1103
1135
  i0.ɵɵadvance();
1104
1136
  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}"], changeDetection: 0 }); }
1137
+ } }, 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
1138
  }
1107
1139
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GroupEditionPageComponent, [{
1108
1140
  type: Component,
@@ -1135,21 +1167,21 @@ class CaucaManagementService {
1135
1167
 
1136
1168
  class CaucaManagementComponent {
1137
1169
  static { this.ɵfac = function CaucaManagementComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementComponent)(); }; }
1138
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementComponent, selectors: [["cauca-management"]], standalone: false, decls: 3, vars: 3, template: function CaucaManagementComponent_Template(rf, ctx) { if (rf & 1) {
1139
- i0.ɵɵelementStart(0, "div");
1170
+ static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementComponent, selectors: [["cauca-management"]], decls: 3, vars: 3, template: function CaucaManagementComponent_Template(rf, ctx) { if (rf & 1) {
1171
+ i0.ɵɵdomElementStart(0, "div");
1140
1172
  i0.ɵɵtext(1);
1141
1173
  i0.ɵɵpipe(2, "translate");
1142
- i0.ɵɵelementEnd();
1174
+ i0.ɵɵdomElementEnd();
1143
1175
  } if (rf & 2) {
1144
1176
  i0.ɵɵadvance();
1145
1177
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "core.noGenericComponentOnThisLibrary"));
1146
- } }, dependencies: [i1$3.TranslatePipe], encapsulation: 2 }); }
1178
+ } }, dependencies: [TranslatePipe], encapsulation: 2 }); }
1147
1179
  }
1148
1180
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementComponent, [{
1149
1181
  type: Component,
1150
- args: [{ selector: 'cauca-management', standalone: false, template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
1182
+ args: [{ selector: 'cauca-management', imports: [TranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div>{{'core.noGenericComponentOnThisLibrary' | translate}}</div>" }]
1151
1183
  }], null, null); })();
1152
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementComponent, { className: "CaucaManagementComponent", filePath: "lib/cauca-management.component.ts", lineNumber: 9 }); })();
1184
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementComponent, { className: "CaucaManagementComponent", filePath: "lib/cauca-management.component.ts", lineNumber: 11 }); })();
1153
1185
 
1154
1186
  /**
1155
1187
  * @deprecated This service is obsolete and should not be used.
@@ -1293,7 +1325,7 @@ function CaucaManagementGroupComponent_div_21_Template(rf, ctx) { if (rf & 1) {
1293
1325
  } if (rf & 2) {
1294
1326
  const ctx_r2 = i0.ɵɵnextContext();
1295
1327
  i0.ɵɵadvance();
1296
- i0.ɵɵproperty("dataSource", ctx_r2.permissions)("searchEnabled", true)("searchExpr", i0.ɵɵpureFunction0(5, _c0))("hoverStateEnabled", ctx_r2.hoverStatePermission);
1328
+ i0.ɵɵproperty("dataSource", ctx_r2.permissions)("searchEnabled", true)("searchExpr", i0.ɵɵpureFunction0(5, _c0))("hoverStateEnabled", ctx_r2.hoverStatePermission());
1297
1329
  i0.ɵɵadvance();
1298
1330
  i0.ɵɵproperty("dxTemplateOf", "rowTemplate");
1299
1331
  } }
@@ -1302,9 +1334,12 @@ function CaucaManagementGroupComponent_div_21_Template(rf, ctx) { if (rf & 1) {
1302
1334
  */
1303
1335
  class CaucaManagementGroupComponent {
1304
1336
  constructor() {
1305
- this.showPrintButton = true;
1306
- this.hoverStatePermission = true;
1307
- this.showAssignableByAllUsers = true;
1337
+ this.showPrintButton = input(true, /* @ts-ignore */
1338
+ ...(ngDevMode ? [{ debugName: "showPrintButton" }] : /* istanbul ignore next */ []));
1339
+ this.hoverStatePermission = input(true, /* @ts-ignore */
1340
+ ...(ngDevMode ? [{ debugName: "hoverStatePermission" }] : /* istanbul ignore next */ []));
1341
+ this.showAssignableByAllUsers = input(true, /* @ts-ignore */
1342
+ ...(ngDevMode ? [{ debugName: "showAssignableByAllUsers" }] : /* istanbul ignore next */ []));
1308
1343
  this.groups = [];
1309
1344
  this.users = [];
1310
1345
  this.permissions = [];
@@ -1484,7 +1519,7 @@ class CaucaManagementGroupComponent {
1484
1519
  this.managementGroupService.getAll().subscribe((data) => this.groups = data);
1485
1520
  }
1486
1521
  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" }, standalone: false, 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) {
1522
+ 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
1523
  i0.ɵɵelementStart(0, "cauca-dx-data-grid", 0);
1489
1524
  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
1525
  i0.ɵɵelementStart(1, "dxi-column", 1);
@@ -1508,13 +1543,13 @@ class CaucaManagementGroupComponent {
1508
1543
  i0.ɵɵtemplate(20, CaucaManagementGroupComponent_div_20_Template, 2, 4, "div", 14)(21, CaucaManagementGroupComponent_div_21_Template, 3, 6, "div", 14);
1509
1544
  i0.ɵɵelementEnd();
1510
1545
  } if (rf & 2) {
1511
- i0.ɵɵproperty("allowPrint", ctx.showPrintButton)("dataSource", ctx.groups);
1546
+ i0.ɵɵproperty("allowPrint", ctx.showPrintButton())("dataSource", ctx.groups);
1512
1547
  i0.ɵɵadvance();
1513
1548
  i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(2, 24, "management.name"));
1514
1549
  i0.ɵɵadvance(2);
1515
1550
  i0.ɵɵproperty("message", i0.ɵɵpipeBind1(4, 26, "management.groupNameAlreadyUsed"))("validationCallback", ctx.groupNameAlreadyUsedValidation);
1516
1551
  i0.ɵɵadvance(2);
1517
- i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(6, 28, "management.assignableByAllUsers"))("visible", ctx.showAssignableByAllUsers);
1552
+ i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(6, 28, "management.assignableByAllUsers"))("visible", ctx.showAssignableByAllUsers());
1518
1553
  i0.ɵɵadvance(2);
1519
1554
  i0.ɵɵproperty("caption", i0.ɵɵpipeBind1(8, 30, "management.users"))("calculateCellValue", ctx.calculateUsersCellValue);
1520
1555
  i0.ɵɵadvance(2);
@@ -1530,24 +1565,18 @@ class CaucaManagementGroupComponent {
1530
1565
  i0.ɵɵadvance();
1531
1566
  i0.ɵɵproperty("isRequired", true);
1532
1567
  i0.ɵɵadvance(3);
1533
- i0.ɵɵproperty("visible", ctx.showAssignableByAllUsers);
1568
+ i0.ɵɵproperty("visible", ctx.showAssignableByAllUsers());
1534
1569
  i0.ɵɵadvance();
1535
1570
  i0.ɵɵproperty("dxTemplateOf", "usersEditTemplate");
1536
1571
  i0.ɵɵadvance();
1537
1572
  i0.ɵɵproperty("dxTemplateOf", "permissionsEditTemplate");
1538
- } }, dependencies: [i1$4.DxCheckBoxComponent, i2$1.DxTemplateDirective, i3$2.DxListComponent, i4$2.DxiItemComponent, i5$1.DxTagBoxComponent, i6$1.CaucaDataGridComponent, i4$2.DxiColumnComponent, i4$2.DxiValidationRuleComponent, i4$2.DxoEditingComponent, i4$2.DxoFormComponent, i4$2.DxoPopupComponent, i4$2.DxoExportComponent, i1$3.TranslatePipe], encapsulation: 2 }); }
1573
+ } }, dependencies: [CaucaDevextremeModule, i1$3.CaucaDataGridComponent, i2$1.DxiColumnComponent, i2$1.DxiValidationRuleComponent, i2$1.DxoEditingComponent, i2$1.DxoFormComponent, i2$1.DxiItemComponent, i2$1.DxoPopupComponent, i2$1.DxoExportComponent, i3$2.DxTemplateDirective, DxCheckBoxModule, i4$2.DxCheckBoxComponent, DxListModule, i5$1.DxListComponent, DxTagBoxModule, i6$1.DxTagBoxComponent, TranslatePipe], encapsulation: 2 }); }
1539
1574
  }
1540
1575
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementGroupComponent, [{
1541
1576
  type: Component,
1542
- args: [{ selector: 'cauca-management-group', standalone: false, 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>" }]
1543
- }], () => [], { showPrintButton: [{
1544
- type: Input
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 }); })();
1577
+ 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>" }]
1578
+ }], () => [], { 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 }] }] }); })();
1579
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementGroupComponent, { className: "CaucaManagementGroupComponent", filePath: "lib/cauca-management-group/cauca-management-group.component.ts", lineNumber: 28 }); })();
1551
1580
 
1552
1581
  /**
1553
1582
  * @deprecated This model is obsolete and should not be used.
@@ -1604,7 +1633,7 @@ class CaucaManagementUserComponent {
1604
1633
  this.managementUserService.getAll().subscribe((data) => this.users = data);
1605
1634
  }
1606
1635
  static { this.ɵfac = function CaucaManagementUserComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementUserComponent)(); }; }
1607
- static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CaucaManagementUserComponent, selectors: [["cauca-management-user"]], standalone: false, 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) {
1636
+ 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
1637
  i0.ɵɵelementStart(0, "cauca-dx-data-grid", 0);
1609
1638
  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
1639
  i0.ɵɵelementStart(1, "dxi-column", 1);
@@ -1648,39 +1677,32 @@ class CaucaManagementUserComponent {
1648
1677
  i0.ɵɵproperty("labelLocation", ctx.showColumnXS ? "left" : "top");
1649
1678
  i0.ɵɵadvance();
1650
1679
  i0.ɵɵproperty("isRequired", true);
1651
- } }, dependencies: [i4$2.DxiItemComponent, i6$1.CaucaDataGridComponent, i4$2.DxiColumnComponent, i4$2.DxiValidationRuleComponent, i4$2.DxoEditingComponent, i4$2.DxoFormComponent, i4$2.DxoPopupComponent, i1$3.TranslatePipe], encapsulation: 2 }); }
1680
+ } }, dependencies: [CaucaDevextremeModule, i1$3.CaucaDataGridComponent, i2$1.DxiColumnComponent, i2$1.DxiValidationRuleComponent, i2$1.DxoEditingComponent, i2$1.DxoFormComponent, i2$1.DxiItemComponent, i2$1.DxoPopupComponent, TranslatePipe], encapsulation: 2 }); }
1652
1681
  }
1653
1682
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementUserComponent, [{
1654
1683
  type: Component,
1655
- args: [{ selector: 'cauca-management-user', standalone: false, 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" }]
1684
+ 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
1685
  }], () => [], null); })();
1657
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementUserComponent, { className: "CaucaManagementUserComponent", filePath: "lib/cauca-management-user/cauca-management-user.component.ts", lineNumber: 17 }); })();
1686
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CaucaManagementUserComponent, { className: "CaucaManagementUserComponent", filePath: "lib/cauca-management-user/cauca-management-user.component.ts", lineNumber: 20 }); })();
1658
1687
 
1688
+ /**
1689
+ * @deprecated Import CaucaManagementComponent, CaucaManagementUserComponent and
1690
+ * CaucaManagementGroupComponent directly in your standalone components. Kept as a re-export
1691
+ * so existing consumers keep compiling.
1692
+ */
1659
1693
  class CaucaManagementModule {
1660
1694
  static { this.ɵfac = function CaucaManagementModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || CaucaManagementModule)(); }; }
1661
1695
  static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: CaucaManagementModule }); }
1662
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
1663
- DxCheckBoxModule,
1664
- DxListModule,
1665
- DxTagBoxModule,
1666
- CaucaCoreForChildModule,
1667
- CaucaDevextremeModule] }); }
1696
+ static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CaucaManagementGroupComponent,
1697
+ CaucaManagementUserComponent] }); }
1668
1698
  }
1669
1699
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CaucaManagementModule, [{
1670
1700
  type: NgModule,
1671
1701
  args: [{
1672
- declarations: [
1702
+ imports: [
1673
1703
  CaucaManagementComponent,
1674
1704
  CaucaManagementGroupComponent,
1675
- CaucaManagementUserComponent
1676
- ],
1677
- imports: [
1678
- CommonModule,
1679
- DxCheckBoxModule,
1680
- DxListModule,
1681
- DxTagBoxModule,
1682
- CaucaCoreForChildModule,
1683
- CaucaDevextremeModule,
1705
+ CaucaManagementUserComponent,
1684
1706
  ],
1685
1707
  exports: [
1686
1708
  CaucaManagementComponent,
@@ -1689,14 +1711,9 @@ class CaucaManagementModule {
1689
1711
  ]
1690
1712
  }]
1691
1713
  }], null, null); })();
1692
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaManagementModule, { declarations: [CaucaManagementComponent,
1714
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CaucaManagementModule, { imports: [CaucaManagementComponent,
1693
1715
  CaucaManagementGroupComponent,
1694
- CaucaManagementUserComponent], imports: [CommonModule,
1695
- DxCheckBoxModule,
1696
- DxListModule,
1697
- DxTagBoxModule,
1698
- CaucaCoreForChildModule,
1699
- CaucaDevextremeModule], exports: [CaucaManagementComponent,
1716
+ CaucaManagementUserComponent], exports: [CaucaManagementComponent,
1700
1717
  CaucaManagementUserComponent,
1701
1718
  CaucaManagementGroupComponent] }); })();
1702
1719