@c8y/ngx-components 1022.4.4 → 1022.4.5

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.
@@ -21,9 +21,10 @@ import * as i19 from "ngx-bootstrap/popover";
21
21
  import * as i20 from "ngx-bootstrap/collapse";
22
22
  import * as i21 from "ngx-bootstrap/datepicker";
23
23
  import * as i22 from "@c8y/ngx-components/assets-navigator";
24
+ import * as i23 from "./template-parts/access-mapping/paginated-list-group.component";
24
25
  export declare class SsoConfigurationModule {
25
26
  static ɵfac: i0.ɵɵFactoryDeclaration<SsoConfigurationModule, never>;
26
- static ɵmod: i0.ɵɵNgModuleDeclaration<SsoConfigurationModule, [typeof i1.SsoConfigurationComponent, typeof i2.CustomTemplateComponent, typeof i3.KeyCloakTemplateComponent, typeof i4.AadTemplateComponent, typeof i5.BasicConfigurationComponent, typeof i6.RequestConfigurationComponent, typeof i7.UserIdConfigurationComponent, typeof i8.UserDataMappingComponent, typeof i9.AccessMappingComponent, typeof i10.DynamicAccessMappingComponent, typeof i11.SignatureConfigurationComponent, typeof i12.LogoutConfigurationComponent, typeof i13.ChildPredicatesComponent, typeof i14.InventoryRolesMappingComponent, typeof i15.InventoryRolesModalComponent, typeof i16.ExternalTokenConfigComponent], [typeof i17.CoreModule, typeof i18.TooltipModule, typeof i19.PopoverModule, typeof i20.CollapseModule, typeof i21.BsDatepickerModule, typeof i22.AssetSelectorModule], [typeof i1.SsoConfigurationComponent]>;
27
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SsoConfigurationModule, [typeof i1.SsoConfigurationComponent, typeof i2.CustomTemplateComponent, typeof i3.KeyCloakTemplateComponent, typeof i4.AadTemplateComponent, typeof i5.BasicConfigurationComponent, typeof i6.RequestConfigurationComponent, typeof i7.UserIdConfigurationComponent, typeof i8.UserDataMappingComponent, typeof i9.AccessMappingComponent, typeof i10.DynamicAccessMappingComponent, typeof i11.SignatureConfigurationComponent, typeof i12.LogoutConfigurationComponent, typeof i13.ChildPredicatesComponent, typeof i14.InventoryRolesMappingComponent, typeof i15.InventoryRolesModalComponent, typeof i16.ExternalTokenConfigComponent], [typeof i17.CoreModule, typeof i18.TooltipModule, typeof i19.PopoverModule, typeof i20.CollapseModule, typeof i21.BsDatepickerModule, typeof i22.AssetSelectorModule, typeof i23.PaginatedListGroupComponent], [typeof i1.SsoConfigurationComponent]>;
27
28
  static ɵinj: i0.ɵɵInjectorDeclaration<SsoConfigurationModule>;
28
29
  }
29
30
  //# sourceMappingURL=sso-configuration.module.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sso-configuration.module.d.ts","sourceRoot":"","sources":["../../../auth-configuration/sso-configuration/sso-configuration.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AA+BA,qBA0Ca,sBAAsB;yCAAtB,sBAAsB;0CAAtB,sBAAsB;0CAAtB,sBAAsB;CAAG"}
1
+ {"version":3,"file":"sso-configuration.module.d.ts","sourceRoot":"","sources":["../../../auth-configuration/sso-configuration/sso-configuration.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAgCA,qBA2Ca,sBAAsB;yCAAtB,sBAAsB;0CAAtB,sBAAsB;0CAAtB,sBAAsB;CAAG"}
@@ -1,13 +1,18 @@
1
+ import { ChangeDetectorRef } from '@angular/core';
1
2
  import { IApplication, IIdentified, IUserGroup } from '@c8y/client';
2
3
  import { ControlContainer } from '@angular/forms';
3
4
  import { InventoryMapping, AccessMapping } from '../../sso-configuration.model';
5
+ import { PaginatedListGroupComponent } from './paginated-list-group.component';
4
6
  import * as i0 from "@angular/core";
5
7
  export declare class AccessMappingComponent {
6
8
  private controlContainer;
9
+ private cdr;
7
10
  apps: IApplication[];
8
11
  groups: IUserGroup[];
9
12
  inventoryRoles: IIdentified[];
10
13
  templateModel: any;
14
+ paginatedAccessMappings: PaginatedListGroupComponent<AccessMapping>;
15
+ paginatedInventoryMappings: PaginatedListGroupComponent<InventoryMapping>;
11
16
  USE_ACCESS_MAPPING_ON_USER_CREATION_TOOLTIP: "The access mapping will be executed only once during the first login, then the administrator can edit the user roles. During the next login, these mappings will not be executed.";
12
17
  USE_ACCESS_MAPPING_ON_USER_CREATION_OPTION: "Use dynamic access mapping only on user creation";
13
18
  UPDATE_ROLES_LISTED_IN_ACCESS_MAPPING_ON_EACH_LOG_IN_TOOLTIP: "The access mapping will be executed only once during the first login, then the administrator can edit the user roles. During the next login only the roles listed in the access mappings will be updated.";
@@ -16,7 +21,7 @@ export declare class AccessMappingComponent {
16
21
  CLEAR_AND_UPDATED_ROLES_ON_EACH_LOG_IN_OPTION: "Roles selected in the rules below will be reassigned to a user on each log in and other ones will be cleared";
17
22
  RETRIVE_FROM_ACCESS_TOKEN: "Retrieve from Access token";
18
23
  RETRIVE_FROM_ID_TOKEN: "Retrieve from ID token";
19
- constructor(controlContainer: ControlContainer);
24
+ constructor(controlContainer: ControlContainer, cdr: ChangeDetectorRef);
20
25
  ngOnChanges(): void;
21
26
  addAccessMapping(): void;
22
27
  addInventoryMapping(): void;
@@ -1 +1 @@
1
- {"version":3,"file":"access-mapping.component.d.ts","sourceRoot":"","sources":["../../../../../auth-configuration/sso-configuration/template-parts/access-mapping/access-mapping.component.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAU,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;;AAEhF,qBAMa,sBAAsB;IA8BrB,OAAO,CAAC,gBAAgB;IA7B3B,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,aAAa,MAAC;IAEvB,2CAA2C,sLAEzC;IACF,0CAA0C,qDAExC;IAEF,4DAA4D,8MAE1D;IACF,2DAA2D,mHAEzD;IAEF,8CAA8C,8MAE5C;IACF,6CAA6C,iHAE3C;IAEF,yBAAyB,+BAAyC;IAClE,qBAAqB,2BAAqC;gBAEtC,gBAAgB,EAAE,gBAAgB;IAEtD,WAAW,IAAI,IAAI;IAMnB,gBAAgB;IAYhB,mBAAmB;IAWnB,QAAQ,CAAC,aAAa,EAAE,aAAa;IAIrC,wBAAwB,CAAC,gBAAgB,EAAE,gBAAgB;IAI3D,8BAA8B,CAC5B,sBAAsB,EAAE,OAAO,EAC/B,gCAAgC,UAAQ;IAQ1C,IAAI,sBAAsB,QAEzB;IAED,IAAI,gCAAgC,QAEnC;IAED,IAAI,cAAc,QAEjB;IAED,iBAAiB,CAAC,cAAc,KAAA;IAKhC,OAAO,KAAK,2BAA2B,GAEtC;IAED,OAAO,CAAC,iBAAiB;yCApGd,sBAAsB;2CAAtB,sBAAsB;CAuHlC"}
1
+ {"version":3,"file":"access-mapping.component.d.ts","sourceRoot":"","sources":["../../../../../auth-configuration/sso-configuration/template-parts/access-mapping/access-mapping.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAA+B,MAAM,eAAe,CAAC;AAG/E,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAU,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;;AAE/E,qBAMa,sBAAsB;IAqC/B,OAAO,CAAC,gBAAgB;IACxB,OAAO,CAAC,GAAG;IArCJ,IAAI,EAAE,YAAY,EAAE,CAAC;IACrB,MAAM,EAAE,UAAU,EAAE,CAAC;IACrB,cAAc,EAAE,WAAW,EAAE,CAAC;IAC9B,aAAa,MAAC;IAGvB,uBAAuB,EAAE,2BAA2B,CAAC,aAAa,CAAC,CAAC;IAGpE,0BAA0B,EAAE,2BAA2B,CAAC,gBAAgB,CAAC,CAAC;IAE1E,2CAA2C,sLAEzC;IACF,0CAA0C,qDAExC;IAEF,4DAA4D,8MAE1D;IACF,2DAA2D,mHAEzD;IAEF,8CAA8C,8MAE5C;IACF,6CAA6C,iHAE3C;IAEF,yBAAyB,+BAAyC;IAClE,qBAAqB,2BAAqC;gBAGhD,gBAAgB,EAAE,gBAAgB,EAClC,GAAG,EAAE,iBAAiB;IAGhC,WAAW,IAAI,IAAI;IAMnB,gBAAgB;IAehB,mBAAmB;IAiBnB,QAAQ,CAAC,aAAa,EAAE,aAAa;IAOrC,wBAAwB,CAAC,gBAAgB,EAAE,gBAAgB;IAO3D,8BAA8B,CAC5B,sBAAsB,EAAE,OAAO,EAC/B,gCAAgC,UAAQ;IAQ1C,IAAI,sBAAsB,QAEzB;IAED,IAAI,gCAAgC,QAEnC;IAED,IAAI,cAAc,QAEjB;IAED,iBAAiB,CAAC,cAAc,KAAA;IAKhC,OAAO,KAAK,2BAA2B,GAEtC;IAED,OAAO,CAAC,iBAAiB;yCA5Hd,sBAAsB;2CAAtB,sBAAsB;CA+IlC"}
@@ -0,0 +1,23 @@
1
+ import { TemplateRef, AfterViewInit, OnInit, OnChanges } from '@angular/core';
2
+ import { PageChangedEvent } from 'ngx-bootstrap/pagination';
3
+ import * as i0 from "@angular/core";
4
+ export declare class PaginatedListGroupComponent<T> implements OnInit, OnChanges, AfterViewInit {
5
+ items: T[];
6
+ itemsPerPage: number;
7
+ itemTemplate: TemplateRef<any>;
8
+ currentPage: number;
9
+ currentPageItems: T[];
10
+ private cdr;
11
+ private host;
12
+ private renderer;
13
+ ngOnInit(): void;
14
+ ngOnChanges(): void;
15
+ ngAfterViewInit(): void;
16
+ pageChanged(event: PageChangedEvent): void;
17
+ updateCurrentPageItems(): void;
18
+ getItemIndex(item: T): number;
19
+ goToLastItem(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<PaginatedListGroupComponent<any>, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginatedListGroupComponent<any>, "c8y-paginated-list-group", never, { "items": { "alias": "items"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; }, {}, ["itemTemplate"], never, true, never>;
22
+ }
23
+ //# sourceMappingURL=paginated-list-group.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paginated-list-group.component.d.ts","sourceRoot":"","sources":["../../../../../auth-configuration/sso-configuration/template-parts/access-mapping/paginated-list-group.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,WAAW,EAEX,aAAa,EAIb,MAAM,EACN,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,gBAAgB,EAAoB,MAAM,0BAA0B,CAAC;;AAG9E,qBAMa,2BAA2B,CAAC,CAAC,CAAE,YAAW,MAAM,EAAE,SAAS,EAAE,aAAa;IAC5E,KAAK,EAAE,CAAC,EAAE,CAAM;IAChB,YAAY,SAAK;IACC,YAAY,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC;IAE1D,WAAW,SAAK;IAChB,gBAAgB,EAAE,CAAC,EAAE,CAAM;IAE3B,OAAO,CAAC,GAAG,CAA6B;IACxC,OAAO,CAAC,IAAI,CAAsB;IAClC,OAAO,CAAC,QAAQ,CAAqB;IAErC,QAAQ;IAIR,WAAW;IAIX,eAAe;IAOf,WAAW,CAAC,KAAK,EAAE,gBAAgB;IAanC,sBAAsB;IAOtB,YAAY,CAAC,IAAI,EAAE,CAAC,GAAG,MAAM;IAI7B,YAAY;yCAnDD,2BAA2B;2CAA3B,2BAA2B;CAoEvC"}