@volo/abp.ng.identity 5.0.0-beta.3 → 5.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.
Files changed (42) hide show
  1. package/README.md +2 -2
  2. package/bundles/volo-abp.ng.identity-config.umd.js +1 -1
  3. package/bundles/volo-abp.ng.identity-proxy.umd.js +1 -1
  4. package/bundles/volo-abp.ng.identity.umd.js +2 -2
  5. package/config/components/my-link-users-modal.component.d.ts +7 -0
  6. package/config/handlers/link-login.handler.d.ts +3 -2
  7. package/esm2015/config/components/identity-settings.component.js +1 -1
  8. package/esm2015/config/components/my-link-users-modal.component.js +1 -1
  9. package/esm2015/config/handlers/link-login.handler.js +1 -1
  10. package/esm2015/config/identity-config.module.js +1 -1
  11. package/esm2015/config/services/identity-config.service.js +1 -1
  12. package/esm2015/config/services/identity-link-login.service.js +1 -1
  13. package/esm2015/lib/components/claim-modal/claim-modal.component.js +1 -1
  14. package/esm2015/lib/components/claims/claims.component.js +1 -1
  15. package/esm2015/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.js +1 -1
  16. package/esm2015/lib/components/organization-units/organization-members/organization-members-modal-body.component.js +1 -1
  17. package/esm2015/lib/components/organization-units/organization-members/organization-members.component.js +1 -1
  18. package/esm2015/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.js +1 -1
  19. package/esm2015/lib/components/organization-units/organization-roles/organization-roles.component.js +1 -1
  20. package/esm2015/lib/components/organization-units/organization-units.component.js +1 -1
  21. package/esm2015/lib/components/roles/roles.component.js +1 -1
  22. package/esm2015/lib/components/security-logs/security-logs.component.js +1 -1
  23. package/esm2015/lib/components/users/users.component.js +1 -1
  24. package/esm2015/lib/defaults/default-users-entity-actions.js +1 -1
  25. package/esm2015/lib/guards/extensions.guard.js +1 -1
  26. package/esm2015/lib/identity-routing.module.js +1 -1
  27. package/esm2015/lib/identity.module.js +1 -1
  28. package/esm2015/proxy/lib/proxy/identity/identity-claim-type.service.js +1 -1
  29. package/esm2015/proxy/lib/proxy/identity/identity-role.service.js +1 -1
  30. package/esm2015/proxy/lib/proxy/identity/identity-security-log.service.js +1 -1
  31. package/esm2015/proxy/lib/proxy/identity/identity-settings.service.js +1 -1
  32. package/esm2015/proxy/lib/proxy/identity/identity-user-lookup.service.js +1 -1
  33. package/esm2015/proxy/lib/proxy/identity/identity-user.service.js +1 -1
  34. package/esm2015/proxy/lib/proxy/identity/organization-unit.service.js +1 -1
  35. package/fesm2015/volo-abp.ng.identity-config.js +70 -29
  36. package/fesm2015/volo-abp.ng.identity-proxy.js +25 -25
  37. package/fesm2015/volo-abp.ng.identity.js +211 -189
  38. package/lib/components/users/users.component.d.ts +2 -10
  39. package/lib/identity.module.d.ts +2 -1
  40. package/package.json +7 -7
  41. package/proxy/lib/proxy/identity/identity-user.service.d.ts +1 -1
  42. package/proxy/lib/proxy/identity/models.d.ts +3 -0
@@ -8,11 +8,11 @@ import { Confirmation, ConfirmationService, getPasswordValidators, ThemeSharedMo
8
8
  import * as i4 from '@angular/forms';
9
9
  import { FormControl, Validators } from '@angular/forms';
10
10
  import * as i1 from '@abp/ng.core';
11
- import { ListService, mapEnumToOptions, generatePassword, LocalizationService, ConfigStateService, getShortDateShortTimeFormat, DynamicLayoutComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
11
+ import { ListService, mapEnumToOptions, generatePassword, LocalizationService, ConfigStateService, getShortDateShortTimeFormat, RouterOutletComponent, AuthGuard, PermissionGuard, ReplaceableRouteContainerComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
12
12
  import * as i5 from '@angular/common';
13
13
  import { formatDate } from '@angular/common';
14
14
  import * as i6$1 from '@abp/ng.theme.shared/extensions';
15
- import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, FormProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.theme.shared/extensions';
15
+ import { FormPropData, generateFormFromProps, EXTENSIONS_IDENTIFIER, DateAdapter, EntityAction, EntityProp, FormProp, ToolbarAction, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, UiExtensionsModule } from '@abp/ng.theme.shared/extensions';
16
16
  import * as i4$1 from '@abp/ng.components/page';
17
17
  import { PageModule } from '@abp/ng.components/page';
18
18
  import * as i6 from '@volo/abp.commercial.ng.ui';
@@ -27,6 +27,7 @@ import { NgbDateAdapter, NgbNavModule, NgbDropdownModule, NgbDatepickerModule }
27
27
  import * as i7 from '@abp/ng.permission-management';
28
28
  import { PermissionManagementModule } from '@abp/ng.permission-management';
29
29
  import { of } from 'rxjs';
30
+ import { ImpersonationService } from '@volo/abp.commercial.ng.ui/config';
30
31
  import * as i1$1 from '@angular/router';
31
32
  import { RouterModule } from '@angular/router';
32
33
 
@@ -100,9 +101,9 @@ class ClaimModalComponent {
100
101
  .subscribe(() => (this.visible = false));
101
102
  }
102
103
  }
103
- ClaimModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ClaimModalComponent, deps: [{ token: i3.IdentityRoleService }, { token: i3.IdentityUserService }], target: i0.ɵɵFactoryTarget.Component });
104
- ClaimModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: { subject: "subject", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h5 class=\"modal-title\">{{ 'AbpIdentity::Claims' | abpLocalization }}</h5>\n </ng-template>\n <ng-template #abpBody>\n <form (ngSubmit)=\"addClaim()\">\n <div class=\"row\">\n <div class=\"col col-sm-6\">\n <div class=\"mb-3\">\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\n 'AbpIdentity::Type' | abpLocalization\n }}</label\n ><select\n autofocus\n id=\"claimTypeSelect\"\n class=\"form-select form-control\"\n [(ngModel)]=\"newClaimType\"\n [ngModelOptions]=\"{ standalone: true }\"\n >\n <option *ngFor=\"let type of claimTypes\" [ngValue]=\"type.name\">{{ type.name }}</option>\n </select>\n </div>\n </div>\n <div class=\"col col-sm-6\">\n <div class=\"mb-3\">\n <label class=\"form-label\" for=\"newClaimValue\">Value</label>\n <input\n required\n id=\"newClaimValue\"\n type=\"text\"\n class=\"form-control\"\n [(ngModel)]=\"newClaimValue\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </div>\n </div>\n <div class=\"col col-sm-12 align-self-center d-grid\">\n <button class=\"btn btn-success\" type=\"button\" (click)=\"addClaim()\">\n <i class=\"fa fa-plus\"></i>\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\n </button>\n </div>\n </div>\n </form>\n\n <div class=\"willBeHidden\" *ngIf=\"subjectClaims && subjectClaims.length\">\n <div class=\"input-group mb-3\" *ngFor=\"let claim of subjectClaims; let i = index\">\n <div class=\"input-group-prepend\">\n <label class=\"input-group-text mw-100 fs-9\">{{ claim.claimType }}</label>\n </div>\n <input\n type=\"text\"\n class=\"form-control\"\n [(ngModel)]=\"subjectClaims[i].claimValue\"\n required\n />\n <div class=\"input-group-append\">\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\n <i class=\"fa fa-trash\"></i>\n </button>\n </div>\n </div>\n </div>\n </ng-template>\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", components: [{ type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
105
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ClaimModalComponent, decorators: [{
104
+ ClaimModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ClaimModalComponent, deps: [{ token: i3.IdentityRoleService }, { token: i3.IdentityUserService }], target: i0.ɵɵFactoryTarget.Component });
105
+ ClaimModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: { subject: "subject", visible: "visible" }, outputs: { visibleChange: "visibleChange" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::Claims' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form (ngSubmit)=\"addClaim()\">\r\n <div class=\"row\">\r\n <div class=\"col col-sm-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"newClaimType\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n <option *ngFor=\"let type of claimTypes\" [ngValue]=\"type.name\">{{ type.name }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col col-sm-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">Value</label>\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"newClaimValue\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col col-sm-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"button\" (click)=\"addClaim()\">\r\n <i class=\"fa fa-plus\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n <div class=\"willBeHidden\" *ngIf=\"subjectClaims && subjectClaims.length\">\r\n <div class=\"input-group mb-3\" *ngFor=\"let claim of subjectClaims; let i = index\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n <input\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ClaimModalComponent, decorators: [{
106
107
  type: Component,
107
108
  args: [{
108
109
  selector: 'abp-claim-modal',
@@ -190,15 +191,15 @@ class ClaimsComponent {
190
191
  });
191
192
  }
192
193
  }
193
- ClaimsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ClaimsComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i0.Injector }, { token: i3.IdentityClaimTypeService }], target: i0.ɵɵFactoryTarget.Component });
194
- ClaimsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: ClaimsComponent, selector: "abp-claims", providers: [
194
+ ClaimsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ClaimsComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i0.Injector }, { token: i3.IdentityClaimTypeService }], target: i0.ɵɵFactoryTarget.Component });
195
+ ClaimsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: ClaimsComponent, selector: "abp-claims", providers: [
195
196
  ListService,
196
197
  {
197
198
  provide: EXTENSIONS_IDENTIFIER,
198
199
  useValue: "Identity.ClaimsComponent" /* Claims */,
199
200
  },
200
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\n <div id=\"identity-claim-types-wrapper\">\n <abp-advanced-entity-filters\n localizationSourceName=\"AbpIdentity\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n </div>\n</abp-page>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>\n {{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewClaimType') | abpLocalization }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <div class=\"mt-2 fade-in-top\">\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"form?.invalid\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
201
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: ClaimsComponent, decorators: [{
201
+ ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewClaimType') | abpLocalization }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"form?.invalid\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: ClaimsComponent, decorators: [{
202
203
  type: Component,
203
204
  args: [{
204
205
  selector: 'abp-claims',
@@ -276,9 +277,9 @@ class AbstractOrganizationUnitComponent {
276
277
  this.isModalVisible = true;
277
278
  }
278
279
  }
279
- AbstractOrganizationUnitComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
280
- AbstractOrganizationUnitComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: AbstractOrganizationUnitComponent, selector: "ng-component", inputs: { selectedOrganizationUnit: "selectedOrganizationUnit" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
281
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
280
+ AbstractOrganizationUnitComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
281
+ AbstractOrganizationUnitComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: AbstractOrganizationUnitComponent, selector: "ng-component", inputs: { selectedOrganizationUnit: "selectedOrganizationUnit" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true });
282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
282
283
  type: Component,
283
284
  args: [{
284
285
  template: '',
@@ -304,82 +305,82 @@ class OrganizationMembersModalBodyComponent {
304
305
  });
305
306
  }
306
307
  }
307
- OrganizationMembersModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3.IdentityUserService }], target: i0.ɵɵFactoryTarget.Component });
308
- OrganizationMembersModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
309
- <div id="data-tables-table-filter" class="data-tables-filter">
310
- <div class="input-group">
311
- <input
312
- type="search"
313
- class="form-control"
314
- [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
315
- [(ngModel)]="list.filter"
316
- />
317
- <div class="input-group-append">
318
- <button class="btn btn-sm btn-primary" (click)="list.get()">
319
- <i class="fas fa-search"></i>
320
- </button>
321
- </div>
322
- </div>
323
- </div>
324
-
325
- <div class="card">
326
- <abp-extensible-table
327
- actionsText=""
328
- [data]="allUnits.items"
329
- [recordsTotal]="allUnits.totalCount"
330
- [actionsColumnWidth]="38"
331
- [actionsTemplate]="customAction"
332
- [list]="list"
333
- ></abp-extensible-table>
334
- </div>
335
-
336
- <ng-template #customAction let-row>
337
- <input
338
- type="checkbox"
339
- [(ngModel)]="checkedUnits[row.id]"
340
- [disabled]="isCheckboxDisabled(row.id)"
341
- />
342
- </ng-template>
308
+ OrganizationMembersModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3.IdentityUserService }], target: i0.ɵɵFactoryTarget.Component });
309
+ OrganizationMembersModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
310
+ <div id="data-tables-table-filter" class="data-tables-filter">
311
+ <div class="input-group">
312
+ <input
313
+ type="search"
314
+ class="form-control"
315
+ [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
316
+ [(ngModel)]="list.filter"
317
+ />
318
+ <div class="input-group-append">
319
+ <button class="btn btn-sm btn-primary" (click)="list.get()">
320
+ <i class="fas fa-search"></i>
321
+ </button>
322
+ </div>
323
+ </div>
324
+ </div>
325
+
326
+ <div class="card">
327
+ <abp-extensible-table
328
+ actionsText=""
329
+ [data]="allUnits.items"
330
+ [recordsTotal]="allUnits.totalCount"
331
+ [actionsColumnWidth]="38"
332
+ [actionsTemplate]="customAction"
333
+ [list]="list"
334
+ ></abp-extensible-table>
335
+ </div>
336
+
337
+ <ng-template #customAction let-row>
338
+ <input
339
+ type="checkbox"
340
+ [(ngModel)]="checkedUnits[row.id]"
341
+ [disabled]="isCheckboxDisabled(row.id)"
342
+ />
343
+ </ng-template>
343
344
  `, isInline: true, components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], directives: [{ type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
344
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
345
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
345
346
  type: Component,
346
347
  args: [{
347
348
  selector: 'abp-organization-members-modal-body',
348
- template: `
349
- <div id="data-tables-table-filter" class="data-tables-filter">
350
- <div class="input-group">
351
- <input
352
- type="search"
353
- class="form-control"
354
- [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
355
- [(ngModel)]="list.filter"
356
- />
357
- <div class="input-group-append">
358
- <button class="btn btn-sm btn-primary" (click)="list.get()">
359
- <i class="fas fa-search"></i>
360
- </button>
361
- </div>
362
- </div>
363
- </div>
364
-
365
- <div class="card">
366
- <abp-extensible-table
367
- actionsText=""
368
- [data]="allUnits.items"
369
- [recordsTotal]="allUnits.totalCount"
370
- [actionsColumnWidth]="38"
371
- [actionsTemplate]="customAction"
372
- [list]="list"
373
- ></abp-extensible-table>
374
- </div>
375
-
376
- <ng-template #customAction let-row>
377
- <input
378
- type="checkbox"
379
- [(ngModel)]="checkedUnits[row.id]"
380
- [disabled]="isCheckboxDisabled(row.id)"
381
- />
382
- </ng-template>
349
+ template: `
350
+ <div id="data-tables-table-filter" class="data-tables-filter">
351
+ <div class="input-group">
352
+ <input
353
+ type="search"
354
+ class="form-control"
355
+ [placeholder]="'AbpUi::PagerSearch' | abpLocalization"
356
+ [(ngModel)]="list.filter"
357
+ />
358
+ <div class="input-group-append">
359
+ <button class="btn btn-sm btn-primary" (click)="list.get()">
360
+ <i class="fas fa-search"></i>
361
+ </button>
362
+ </div>
363
+ </div>
364
+ </div>
365
+
366
+ <div class="card">
367
+ <abp-extensible-table
368
+ actionsText=""
369
+ [data]="allUnits.items"
370
+ [recordsTotal]="allUnits.totalCount"
371
+ [actionsColumnWidth]="38"
372
+ [actionsTemplate]="customAction"
373
+ [list]="list"
374
+ ></abp-extensible-table>
375
+ </div>
376
+
377
+ <ng-template #customAction let-row>
378
+ <input
379
+ type="checkbox"
380
+ [(ngModel)]="checkedUnits[row.id]"
381
+ [disabled]="isCheckboxDisabled(row.id)"
382
+ />
383
+ </ng-template>
383
384
  `,
384
385
  providers: [ListService],
385
386
  }]
@@ -391,8 +392,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
391
392
 
392
393
  class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
393
394
  }
394
- OrganizationMembersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
395
- OrganizationMembersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: OrganizationMembersComponent, selector: "abp-organization-members", providers: [
395
+ OrganizationMembersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
396
+ OrganizationMembersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: OrganizationMembersComponent, selector: "abp-organization-members", providers: [
396
397
  ListService,
397
398
  {
398
399
  provide: EXTENSIONS_IDENTIFIER,
@@ -408,8 +409,8 @@ OrganizationMembersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12
408
409
  deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
409
410
  },
410
411
  },
411
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"text-end\">\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddMember' | abpLocalization }}\n </button>\n</div>\n\n<abp-extensible-table\n [data]=\"currentOrganizationUnits.items\"\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\n [list]=\"list\"\n></abp-extensible-table>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpIdentity::SelectUsers' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <abp-organization-members-modal-body\n [checkedUnits]=\"checkedUnits\"\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\n ></abp-organization-members-modal-body>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
412
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
412
+ ], usesInheritance: true, ngImport: i0, template: "<div class=\"text-end\">\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectUsers' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
413
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
413
414
  type: Component,
414
415
  args: [{
415
416
  selector: 'abp-organization-members',
@@ -451,50 +452,50 @@ class OrganizationRolesModalBodyComponent {
451
452
  });
452
453
  }
453
454
  }
454
- OrganizationRolesModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3.IdentityRoleService }], target: i0.ɵɵFactoryTarget.Component });
455
- OrganizationRolesModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
456
- <div class="card">
457
- <abp-extensible-table
458
- actionsText=""
459
- [data]="allUnits.items"
460
- [recordsTotal]="allUnits.totalCount"
461
- [actionsColumnWidth]="38"
462
- [actionsTemplate]="customAction"
463
- [list]="list"
464
- ></abp-extensible-table>
465
- </div>
466
-
467
- <ng-template #customAction let-row>
468
- <input
469
- type="checkbox"
470
- [(ngModel)]="checkedUnits[row.id]"
471
- [disabled]="isCheckboxDisabled(row.id)"
472
- />
473
- </ng-template>
455
+ OrganizationRolesModalBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [{ token: i1.ListService }, { token: i3.IdentityRoleService }], target: i0.ɵɵFactoryTarget.Component });
456
+ OrganizationRolesModalBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
457
+ <div class="card">
458
+ <abp-extensible-table
459
+ actionsText=""
460
+ [data]="allUnits.items"
461
+ [recordsTotal]="allUnits.totalCount"
462
+ [actionsColumnWidth]="38"
463
+ [actionsTemplate]="customAction"
464
+ [list]="list"
465
+ ></abp-extensible-table>
466
+ </div>
467
+
468
+ <ng-template #customAction let-row>
469
+ <input
470
+ type="checkbox"
471
+ [(ngModel)]="checkedUnits[row.id]"
472
+ [disabled]="isCheckboxDisabled(row.id)"
473
+ />
474
+ </ng-template>
474
475
  `, isInline: true, components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], directives: [{ type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }] });
475
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
476
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
476
477
  type: Component,
477
478
  args: [{
478
479
  selector: 'abp-organization-roles-modal-body',
479
- template: `
480
- <div class="card">
481
- <abp-extensible-table
482
- actionsText=""
483
- [data]="allUnits.items"
484
- [recordsTotal]="allUnits.totalCount"
485
- [actionsColumnWidth]="38"
486
- [actionsTemplate]="customAction"
487
- [list]="list"
488
- ></abp-extensible-table>
489
- </div>
490
-
491
- <ng-template #customAction let-row>
492
- <input
493
- type="checkbox"
494
- [(ngModel)]="checkedUnits[row.id]"
495
- [disabled]="isCheckboxDisabled(row.id)"
496
- />
497
- </ng-template>
480
+ template: `
481
+ <div class="card">
482
+ <abp-extensible-table
483
+ actionsText=""
484
+ [data]="allUnits.items"
485
+ [recordsTotal]="allUnits.totalCount"
486
+ [actionsColumnWidth]="38"
487
+ [actionsTemplate]="customAction"
488
+ [list]="list"
489
+ ></abp-extensible-table>
490
+ </div>
491
+
492
+ <ng-template #customAction let-row>
493
+ <input
494
+ type="checkbox"
495
+ [(ngModel)]="checkedUnits[row.id]"
496
+ [disabled]="isCheckboxDisabled(row.id)"
497
+ />
498
+ </ng-template>
498
499
  `,
499
500
  providers: [ListService],
500
501
  }]
@@ -506,8 +507,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
506
507
 
507
508
  class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
508
509
  }
509
- OrganizationRolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
510
- OrganizationRolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: OrganizationRolesComponent, selector: "abp-organization-roles", providers: [
510
+ OrganizationRolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
511
+ OrganizationRolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: OrganizationRolesComponent, selector: "abp-organization-roles", providers: [
511
512
  ListService,
512
513
  {
513
514
  provide: EXTENSIONS_IDENTIFIER,
@@ -523,8 +524,8 @@ OrganizationRolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0
523
524
  deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
524
525
  },
525
526
  },
526
- ], usesInheritance: true, ngImport: i0, template: "<div class=\"text-end\">\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddRole' | abpLocalization }}\n </button>\n</div>\n\n<abp-extensible-table\n [data]=\"currentOrganizationUnits.items\"\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\n [list]=\"list\"\n></abp-extensible-table>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpIdentity::SelectRoles' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <abp-organization-roles-modal-body\n [checkedUnits]=\"checkedUnits\"\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\n ></abp-organization-roles-modal-body>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
527
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
527
+ ], usesInheritance: true, ngImport: i0, template: "<div class=\"text-end\">\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SelectRoles' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", components: [{ type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
528
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
528
529
  type: Component,
529
530
  args: [{
530
531
  selector: 'abp-organization-roles',
@@ -623,7 +624,15 @@ class OrganizationUnitsComponent {
623
624
  })
624
625
  .subscribe((status) => {
625
626
  if (status === Confirmation.Status.confirm) {
626
- this.service.delete(id).subscribe(() => this.get());
627
+ this.service
628
+ .delete(id)
629
+ .pipe(tap(_ => {
630
+ var _a;
631
+ if (id === ((_a = this.selectedUnit) === null || _a === void 0 ? void 0 : _a.id)) {
632
+ this.selectedUnit = null;
633
+ }
634
+ }))
635
+ .subscribe(() => this.get());
627
636
  }
628
637
  });
629
638
  }
@@ -646,14 +655,14 @@ class OrganizationUnitsComponent {
646
655
  this.service.move(id, { newParentId }).subscribe(this.get);
647
656
  }
648
657
  }
649
- OrganizationUnitsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationUnitsComponent, deps: [{ token: i0.Injector }, { token: i3.OrganizationUnitService }, { token: i4.FormBuilder }, { token: i2.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
650
- OrganizationUnitsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: OrganizationUnitsComponent, selector: "abp-organization-units", providers: [
658
+ OrganizationUnitsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationUnitsComponent, deps: [{ token: i0.Injector }, { token: i3.OrganizationUnitService }, { token: i4.FormBuilder }, { token: i2.ConfirmationService }], target: i0.ɵɵFactoryTarget.Component });
659
+ OrganizationUnitsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: OrganizationUnitsComponent, selector: "abp-organization-units", providers: [
651
660
  {
652
661
  provide: EXTENSIONS_IDENTIFIER,
653
662
  useValue: "Identity.OrganizationUnitsComponent" /* OrganizationUnits */,
654
663
  },
655
- ], ngImport: i0, template: "<abp-page\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\n [toolbar]=\"organizationUnits\"\n>\n <div class=\"row\">\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\n <div class=\"card\">\n <div class=\"card-header d-flex justify-content-between\">\n <h5>\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\n </h5>\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\n </button>\n </div>\n <div class=\"card-body\" [abpLoading]=\"loading\">\n <abp-tree\n [nodes]=\"nodes\"\n [(expandedKeys)]=\"expandedKeys\"\n [(selectedNode)]=\"selectedUnit\"\n [draggable]=\"true\"\n (dropOver)=\"onDrop($event)\"\n >\n <ng-template abpTreeNodeTemplate let-node>\n <i class=\"fas fa-folder fs-15px text-primary me-1\"></i>\n {{ node.title }}\n </ng-template>\n\n <ng-template #menu let-node>\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\n {{ 'AbpIdentity::Edit' | abpLocalization }}\n </li>\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\n </li>\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\n {{ 'AbpIdentity::Delete' | abpLocalization }}\n </li>\n </ng-template>\n </abp-tree>\n <p *ngIf=\"!loading && !nodes?.length\" class=\"text-muted\">\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\n </p>\n </div>\n </div>\n </div>\n\n <div\n *abpPermission=\"\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\n \"\n class=\"col-12 col-lg-6 col-xl-7\"\n >\n <div class=\"card\">\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\n <a ngbNavLink>{{ 'AbpIdentity::Members' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\n <abp-organization-members\n *abpReplaceableTemplate=\"{\n inputs: {\n selectedOrganizationUnit: { value: selectedUnit }\n },\n componentKey: organizationMembersKey\n }\"\n [selectedOrganizationUnit]=\"selectedUnit\"\n ></abp-organization-members>\n </ng-container>\n <ng-template #selectUnitMsg>\n <p class=\"text-muted\">\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\n </p>\n </ng-template>\n </ng-template>\n </li>\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\n <abp-organization-roles\n *abpReplaceableTemplate=\"{\n inputs: {\n selectedOrganizationUnit: { value: selectedUnit }\n },\n componentKey: organizationRolesKey\n }\"\n [selectedOrganizationUnit]=\"selectedUnit\"\n ></abp-organization-roles>\n </ng-container>\n <ng-template #selectUnitMsg>\n <p class=\"text-muted\">\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\n </p>\n </ng-template>\n </ng-template>\n </li>\n </ul>\n <div [ngbNavOutlet]=\"nav\"></div>\n </div>\n </div>\n </div>\n</abp-page>\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\n <ng-template #abpHeader>\n <h3>\n {{\n (nodeForm.get('id').value\n ? 'AbpIdentity::EditOrganizationUnit'\n : 'AbpIdentity::NewOrganizationUnit'\n ) | abpLocalization\n }}\n </h3>\n </ng-template>\n\n <ng-template #abpBody>\n <div class=\"mb-3\" *ngIf=\"nodeForm.get('parentId').value as parentId\">\n <strong>{{\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\n }}</strong>\n </div>\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", styles: ["\n .fs-15px {\n font-size: 15px;\n }\n "], components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver"] }, { type: OrganizationMembersComponent, selector: "abp-organization-members" }, { type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }, { type: i2.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { type: i5$1.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgbNav, selector: "[ngbNav]", inputs: ["destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "navChange"], exportAs: ["ngbNav"] }, { type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], exportAs: ["ngbNavItem"] }, { type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
656
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
664
+ ], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between\">\r\n <h5>\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\"></i> {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [(selectedNode)]=\"selectedUnit\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpIdentity::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n <p *ngIf=\"!loading && !nodes?.length\" class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7\"\r\n >\r\n <div class=\"card\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Members' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationMembersKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-members>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <ng-container *ngIf=\"selectedUnit; else selectUnitMsg\">\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit }\r\n },\r\n componentKey: organizationRolesKey\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n </ng-container>\r\n <ng-template #selectUnitMsg>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{\r\n (nodeForm.get('id').value\r\n ? 'AbpIdentity::EditOrganizationUnit'\r\n : 'AbpIdentity::NewOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mb-3\" *ngIf=\"nodeForm.get('parentId').value as parentId\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: ["\n .fs-15px {\n font-size: 15px;\n }\n "], components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i5$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver"] }, { type: OrganizationMembersComponent, selector: "abp-organization-members" }, { type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], directives: [{ type: i1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission"] }, { type: i2.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { type: i5$1.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { type: i8.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i8.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }], pipes: { "abpLocalization": i1.LocalizationPipe } });
665
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
657
666
  type: Component,
658
667
  args: [{
659
668
  selector: 'abp-organization-units',
@@ -665,10 +674,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
665
674
  },
666
675
  ],
667
676
  styles: [
668
- `
669
- .fs-15px {
670
- font-size: 15px;
671
- }
677
+ `
678
+ .fs-15px {
679
+ font-size: 15px;
680
+ }
672
681
  `,
673
682
  ],
674
683
  }]
@@ -755,15 +764,15 @@ class RolesComponent {
755
764
  }, 0);
756
765
  }
757
766
  }
758
- RolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: RolesComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3.IdentityRoleService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
759
- RolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: RolesComponent, selector: "abp-roles", providers: [
767
+ RolesComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RolesComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3.IdentityRoleService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
768
+ RolesComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: RolesComponent, selector: "abp-roles", providers: [
760
769
  ListService,
761
770
  {
762
771
  provide: EXTENSIONS_IDENTIFIER,
763
772
  useValue: "Identity.RolesComponent" /* Roles */,
764
773
  },
765
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\n <div id=\"identity-roles-wrapper\">\n <abp-advanced-entity-filters\n localizationSourceName=\"AbpIdentity\"\n [list]=\"list\"\n ></abp-advanced-entity-filters>\n\n <div class=\"card\">\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n </div>\n</abp-page>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n\n<abp-permission-management\n *abpReplaceableTemplate=\"{\n inputs: {\n providerName: { value: 'R' },\n providerKey: { value: providerKey },\n hideBadges: { value: true },\n visible: { value: visiblePermissions, twoWay: true }\n },\n outputs: { visibleChange: onVisiblePermissionChange },\n componentKey: 'PermissionManagement.PermissionManagementComponent'\n }\"\n [(visible)]=\"visiblePermissions\"\n [providerKey]=\"providerKey\"\n providerName=\"R\"\n [hideBadges]=\"true\"\n>\n</abp-permission-management>\n\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i7.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
766
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: RolesComponent, decorators: [{
774
+ ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters\r\n localizationSourceName=\"AbpIdentity\"\r\n [list]=\"list\"\r\n ></abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewRole') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" [disabled]=\"form?.invalid\" (click)=\"save()\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i7.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: RolesComponent, decorators: [{
767
776
  type: Component,
768
777
  args: [{
769
778
  selector: 'abp-roles',
@@ -797,16 +806,16 @@ class SecurityLogsComponent {
797
806
  .subscribe(res => (this.data = res));
798
807
  }
799
808
  }
800
- SecurityLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SecurityLogsComponent, deps: [{ token: i1.ListService }, { token: i3.IdentitySecurityLogService }], target: i0.ɵɵFactoryTarget.Component });
801
- SecurityLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: SecurityLogsComponent, selector: "abp-security-logs", providers: [
809
+ SecurityLogsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SecurityLogsComponent, deps: [{ token: i1.ListService }, { token: i3.IdentitySecurityLogService }], target: i0.ɵɵFactoryTarget.Component });
810
+ SecurityLogsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: SecurityLogsComponent, selector: "abp-security-logs", providers: [
802
811
  ListService,
803
812
  {
804
813
  provide: EXTENSIONS_IDENTIFIER,
805
814
  useValue: "Identity.SecurityLogs" /* SecurityLogs */,
806
815
  },
807
816
  { provide: NgbDateAdapter, useClass: DateAdapter },
808
- ], ngImport: i0, template: "<div id=\"wrapper\">\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\n <div class=\"card\">\n <div class=\"card-body pb-lg-3\">\n <div class=\"row\" (keyup.enter)=\"list.get()\">\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:StartTime' | abpLocalization }}</label>\n <input\n #startDate=\"ngbDatepicker\"\n class=\"form-control\"\n name=\"start-date\"\n readonly\n [(ngModel)]=\"filter.startTime\"\n [dayTemplate]=\"startDateTemplate\"\n ngbDatepicker\n (click)=\"startDate.toggle()\"\n />\n <ng-template\n #startDateTemplate\n let-date\n let-focused=\"focused\"\n let-selected=\"selected\"\n let-currentMonth=\"currentMonth\"\n >\n <div\n class=\"btn-light custom-day\"\n [class.bg-primary]=\"selected\"\n [class.text-white]=\"selected\"\n [class.text-muted]=\"currentMonth !== date.month\"\n [class.ng-range]=\"date.after(filter.startTime) && date.before(filter.endTime)\"\n [class.ng-range-end]=\"date.equals(filter.endTime)\"\n >\n {{ date.day }}\n </div>\n </ng-template>\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:EndTime' | abpLocalization }}</label>\n <input\n #endDate=\"ngbDatepicker\"\n class=\"form-control\"\n name=\"end-date\"\n readonly\n [(ngModel)]=\"filter.endTime\"\n [dayTemplate]=\"endDateTemplate\"\n ngbDatepicker\n (click)=\"endDate.toggle()\"\n />\n <ng-template\n #endDateTemplate\n let-date\n let-focused=\"focused\"\n let-selected=\"selected\"\n let-currentMonth=\"currentMonth\"\n >\n <div\n class=\"btn-light custom-day\"\n [class.bg-primary]=\"selected\"\n [class.text-white]=\"selected\"\n [class.text-muted]=\"currentMonth !== date.month\"\n [class.ng-range]=\"date.after(filter.startTime) && date.before(filter.endTime)\"\n [class.ng-range-end]=\"date.equals(filter.startTime)\"\n >\n {{ date.day }}\n </div>\n </ng-template>\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Application' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Identity' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:UserName' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Action' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Client' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\n </div>\n </div>\n\n <div class=\"col-md-6 col-lg-3\">\n <div class=\"mb-3\">\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization }}</label>\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\n </div>\n </div>\n </div>\n\n <div class=\"row\">\n <div class=\"col-md-6 col-lg-3 d-grid\">\n <button (click)=\"list.get()\" class=\"mt-md-2 mb-md-2 btn btn-primary\">\n <i class=\"fas fa-search\"></i>\n </button>\n </div>\n </div>\n </div>\n </div>\n <div class=\"card\">\n <div class=\"card-body p-0\">\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n </div>\n </abp-page>\n</div>\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], directives: [{ type: i8.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["disabled", "autoClose", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekdays", "showWeekNumbers", "startDate", "container", "positionTarget"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
809
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: SecurityLogsComponent, decorators: [{
817
+ ], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:StartTime' | abpLocalization }}</label>\r\n <input\r\n #startDate=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n name=\"start-date\"\r\n readonly\r\n [(ngModel)]=\"filter.startTime\"\r\n [dayTemplate]=\"startDateTemplate\"\r\n ngbDatepicker\r\n (click)=\"startDate.toggle()\"\r\n />\r\n <ng-template\r\n #startDateTemplate\r\n let-date\r\n let-focused=\"focused\"\r\n let-selected=\"selected\"\r\n let-currentMonth=\"currentMonth\"\r\n >\r\n <div\r\n class=\"btn-light custom-day\"\r\n [class.bg-primary]=\"selected\"\r\n [class.text-white]=\"selected\"\r\n [class.text-muted]=\"currentMonth !== date.month\"\r\n [class.ng-range]=\"date.after(filter.startTime) && date.before(filter.endTime)\"\r\n [class.ng-range-end]=\"date.equals(filter.endTime)\"\r\n >\r\n {{ date.day }}\r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:EndTime' | abpLocalization }}</label>\r\n <input\r\n #endDate=\"ngbDatepicker\"\r\n class=\"form-control\"\r\n name=\"end-date\"\r\n readonly\r\n [(ngModel)]=\"filter.endTime\"\r\n [dayTemplate]=\"endDateTemplate\"\r\n ngbDatepicker\r\n (click)=\"endDate.toggle()\"\r\n />\r\n <ng-template\r\n #endDateTemplate\r\n let-date\r\n let-focused=\"focused\"\r\n let-selected=\"selected\"\r\n let-currentMonth=\"currentMonth\"\r\n >\r\n <div\r\n class=\"btn-light custom-day\"\r\n [class.bg-primary]=\"selected\"\r\n [class.text-white]=\"selected\"\r\n [class.text-muted]=\"currentMonth !== date.month\"\r\n [class.ng-range]=\"date.after(filter.startTime) && date.before(filter.endTime)\"\r\n [class.ng-range-end]=\"date.equals(filter.startTime)\"\r\n >\r\n {{ date.day }}\r\n </div>\r\n </ng-template>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Application' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Identity' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:UserName' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Action' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:Client' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-lg-3 d-grid\">\r\n <button (click)=\"list.get()\" class=\"mt-md-2 mb-md-2 btn btn-primary\">\r\n <i class=\"fas fa-search\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n", components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }], directives: [{ type: i8.NgbInputDatepicker, selector: "input[ngbDatepicker]", inputs: ["disabled", "autoClose", "datepickerClass", "dayTemplate", "dayTemplateData", "displayMonths", "firstDayOfWeek", "footerTemplate", "markDisabled", "minDate", "maxDate", "navigation", "outsideDays", "placement", "restoreFocus", "showWeekNumbers", "startDate", "container", "positionTarget", "weekdays"], outputs: ["dateSelect", "navigate", "closed"], exportAs: ["ngbDatepicker"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: SecurityLogsComponent, decorators: [{
810
819
  type: Component,
811
820
  args: [{
812
821
  selector: 'abp-security-logs',
@@ -830,15 +839,6 @@ var eIdentityTwoFactorBehaviour;
830
839
  })(eIdentityTwoFactorBehaviour || (eIdentityTwoFactorBehaviour = {}));
831
840
  const identityTwoFactorBehaviourOptions = mapEnumToOptions(eIdentityTwoFactorBehaviour);
832
841
 
833
- var UserLockDurationType;
834
- (function (UserLockDurationType) {
835
- UserLockDurationType[UserLockDurationType["Second"] = 1] = "Second";
836
- UserLockDurationType[UserLockDurationType["Minute"] = 60] = "Minute";
837
- UserLockDurationType[UserLockDurationType["Hour"] = 3600] = "Hour";
838
- UserLockDurationType[UserLockDurationType["Day"] = 86400] = "Day";
839
- UserLockDurationType[UserLockDurationType["Month"] = 2592000] = "Month";
840
- UserLockDurationType[UserLockDurationType["Year"] = 31536000] = "Year";
841
- })(UserLockDurationType || (UserLockDurationType = {}));
842
842
  class UsersComponent {
843
843
  constructor(list, confirmationService, service, fb, toasterService, injector, configState, roleService, organizationUnitService) {
844
844
  this.list = list;
@@ -872,10 +872,16 @@ class UsersComponent {
872
872
  isOptional: false,
873
873
  };
874
874
  this.lockForm = this.fb.group({
875
- lockoutDuration: [0, [Validators.required]],
876
- lockDurationType: [UserLockDurationType.Second],
875
+ lockoutEnd: [new Date(), [Validators.required]],
877
876
  });
878
- this.lockDurationTypeOptions = mapEnumToOptions(UserLockDurationType);
877
+ this.dateTimePickerProps = {
878
+ defaultValue: new Date(),
879
+ displayName: 'AbpIdentity::DisplayName:LockoutEnd',
880
+ validators: () => [Validators.required],
881
+ name: 'lockoutEnd',
882
+ id: 'lockout-end',
883
+ type: "dateTime" /* DateTime */,
884
+ };
879
885
  this.trackByFn = (index, item) => Object.keys(item)[0] || index;
880
886
  this.onVisiblePermissionChange = (value) => {
881
887
  this.visiblePermissions = value;
@@ -1004,16 +1010,15 @@ class UsersComponent {
1004
1010
  this.setPasswordForm.get('newPassword').setValue(generatePassword());
1005
1011
  }
1006
1012
  lock() {
1007
- const { lockoutDuration, lockDurationType } = this.lockForm.value;
1013
+ const { lockoutEnd } = this.lockForm.value;
1008
1014
  this.modalBusy = true;
1009
1015
  this.service
1010
- .lock(this.selected.id, lockoutDuration * lockDurationType)
1016
+ .lock(this.selected.id, lockoutEnd)
1011
1017
  .pipe(finalize(() => (this.modalBusy = false)))
1012
1018
  .subscribe(() => {
1013
1019
  this.isLockModalVisible = false;
1014
1020
  this.lockForm.reset({
1015
- lockoutDuration: 0,
1016
- lockDurationType: UserLockDurationType.Second,
1021
+ lockoutEnd: new Date(),
1017
1022
  });
1018
1023
  this.list.get();
1019
1024
  });
@@ -1026,15 +1031,15 @@ class UsersComponent {
1026
1031
  .subscribe(() => (this.twoFactor.isModalVisible = false));
1027
1032
  }
1028
1033
  }
1029
- UsersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: UsersComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3.IdentityUserService }, { token: i4.FormBuilder }, { token: i2.ToasterService }, { token: i0.Injector }, { token: i1.ConfigStateService }, { token: i3.IdentityRoleService }, { token: i3.OrganizationUnitService }], target: i0.ɵɵFactoryTarget.Component });
1030
- UsersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.8", type: UsersComponent, selector: "abp-users", providers: [
1034
+ UsersComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UsersComponent, deps: [{ token: i1.ListService }, { token: i2.ConfirmationService }, { token: i3.IdentityUserService }, { token: i4.FormBuilder }, { token: i2.ToasterService }, { token: i0.Injector }, { token: i1.ConfigStateService }, { token: i3.IdentityRoleService }, { token: i3.OrganizationUnitService }], target: i0.ɵɵFactoryTarget.Component });
1035
+ UsersComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.0", type: UsersComponent, selector: "abp-users", providers: [
1031
1036
  ListService,
1032
1037
  {
1033
1038
  provide: EXTENSIONS_IDENTIFIER,
1034
1039
  useValue: "Identity.UsersComponent" /* Users */,
1035
1040
  },
1036
- ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\n <div id=\"identity-users-wrapper\">\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\n <abp-advanced-entity-filters-form>\n <form #filterForm (keyup.enter)=\"list.get()\">\n <div class=\"row\">\n <div class=\"col-12 col-sm-3\">\n <div class=\"mb-3\">\n <label for=\"roleIdFilter\" class=\"form-label\">\n {{ 'AbpIdentity::Role' | abpLocalization }}\n </label>\n <abp-lookup-select\n cid=\"roleIdFilter\"\n lookupNameProp=\"name\"\n [getFn]=\"roleService.getList\"\n [(ngModel)]=\"filters.roleId\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></abp-lookup-select>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-3\">\n <div class=\"mb-3\">\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\n </label>\n <abp-lookup-select\n cid=\"organizationUnitIdFilter\"\n [getFn]=\"organizationUnitService.getList\"\n [(ngModel)]=\"filters.organizationUnitId\"\n [ngModelOptions]=\"{ standalone: true }\"\n ></abp-lookup-select>\n </div>\n </div>\n\n <div class=\"col-12 col-sm-3\">\n <div class=\"form-group mb-3\">\n <label for=\"UserName\" class=\"form-label\">\n {{ 'AbpIdentity::UserName' | abpLocalization }}\n </label>\n <input\n type=\"text\"\n id=\"UserName\"\n class=\"form-control\"\n [(ngModel)]=\"filters.userName\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </div>\n </div>\n\n <div class=\"col-12 col-sm-3\">\n <div class=\"form-group mb-3\">\n <label for=\"PhoneNumber\" class=\"form-label\">\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\n </label>\n <input\n type=\"text\"\n id=\"PhoneNumber\"\n class=\"form-control\"\n [(ngModel)]=\"filters.phoneNumber\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </div>\n </div>\n\n <div class=\"col-12 col-sm-3\">\n <div class=\"form-group mb-3\">\n <label for=\"EmailAddress\" class=\"form-label\">\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\n </label>\n <input\n type=\"text\"\n id=\"EmailAddress\"\n class=\"form-control\"\n [(ngModel)]=\"filters.emailAddress\"\n [ngModelOptions]=\"{ standalone: true }\"\n />\n </div>\n </div>\n\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\n <div class=\"row\">\n <div class=\"col-6 col-sm-auto d-grid\">\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\n </button>\n </div>\n <div class=\"col-6 col-sm-auto d-grid\">\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\n </button>\n </div>\n </div>\n </div>\n </div>\n </form>\n </abp-advanced-entity-filters-form>\n </abp-advanced-entity-filters>\n\n <div class=\"card\">\n <abp-extensible-table\n [data]=\"data.items\"\n [recordsTotal]=\"data.totalCount\"\n [list]=\"list\"\n ></abp-extensible-table>\n </div>\n </div>\n</abp-page>\n\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\n <ng-template #abpHeader>\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\n <li id=\"user-informations\" ngbNavItem>\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\n <ng-template ngbNavContent\n ><abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form\n ></ng-template>\n </li>\n <li id=\"user-roles\" ngbNavItem>\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <div\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\n class=\"form-check mb-2\"\n >\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n [attr.id]=\"'roles-' + i\"\n [formControl]=\"roleGroup.controls[roles[i].name]\"\n />\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">{{ roles[i].name }}</label>\n </div></ng-template\n >\n </li>\n <li id=\"user-organization-units\" ngbNavItem>\n <a ngbNavLink>{{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}</a>\n <ng-template ngbNavContent>\n <abp-tree\n *ngIf=\"organization.nodes?.length; else noDataMessage\"\n [checkStrictly]=\"true\"\n [checkable]=\"true\"\n [nodes]=\"organization.nodes\"\n [isNodeSelected]=\"organization.selectFn\"\n [(checkedKeys)]=\"organization.checkedKeys\"\n [(expandedKeys)]=\"organization.expandedKeys\"\n ></abp-tree>\n\n <ng-template #noDataMessage>\n <p class=\"text-muted\">\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\n </p>\n </ng-template>\n </ng-template>\n </li>\n </ul>\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"form?.invalid\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n\n<abp-permission-management\n *abpReplaceableTemplate=\"{\n inputs: {\n providerName: { value: 'U' },\n providerKey: { value: providerKey },\n hideBadges: { value: true },\n visible: { value: visiblePermissions, twoWay: true }\n },\n outputs: { visibleChange: onVisiblePermissionChange },\n componentKey: 'PermissionManagement.PermissionManagementComponent'\n }\"\n [(visible)]=\"visiblePermissions\"\n [providerKey]=\"providerKey\"\n [hideBadges]=\"true\"\n providerName=\"U\"\n>\n</abp-permission-management>\n\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\n\n<abp-modal [(visible)]=\"isSetPasswordModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpIdentity::SetPassword' | abpLocalization }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"setPasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\n <div class=\"mt-2 fade-in-top\">\n <div class=\"mb-3\">\n <label class=\"form-label\" for=\"new-password\">{{\n 'AbpIdentity::Password' | abpLocalization\n }}</label>\n <div class=\"input-group\">\n <div class=\"col-10 p-0\">\n <input\n type=\"text\"\n id=\"new-password\"\n class=\"form-control\"\n formControlName=\"newPassword\"\n autofocus\n />\n </div>\n\n <button\n class=\"btn btn-secondary\"\n id=\"generate-random-password-button\"\n type=\"button\"\n (click)=\"generatePassword()\"\n >\n <i class=\"fa fa-refresh\"></i>\n </button>\n </div>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button\n iconClass=\"fa fa-check\"\n (click)=\"setPassword()\"\n [disabled]=\"setPasswordForm?.invalid\"\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\n >\n </ng-template>\n</abp-modal>\n\n<abp-modal [(visible)]=\"isLockModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <form [formGroup]=\"lockForm\" (ngSubmit)=\"lock()\" validateOnSubmit>\n <div class=\"mt-2 fade-in-top\">\n <div class=\"mb-3\" [formGroup]=\"lockForm\">\n <label class=\"form-label\">{{\n 'AbpIdentity::DisplayName:LockoutDuration' | abpLocalization\n }}</label>\n <input type=\"number\" class=\"form-control\" formControlName=\"lockoutDuration\" />\n </div>\n <div class=\"mb-3\">\n <label class=\"form-label\" for=\"httpMethod\">{{\n 'AbpIdentity::DisplayName:LockDurationType' | abpLocalization\n }}</label\n ><select class=\"form-select form-control\" formControlName=\"lockDurationType\">\n <option *ngFor=\"let option of lockDurationTypeOptions\" [ngValue]=\"option.value\">\n {{ 'AbpIdentity::Enum:LockDurationType.' + option.key | abpLocalization }}\n </option>\n </select>\n </div>\n </div>\n </form>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button\n iconClass=\"fa fa-check\"\n (click)=\"lock()\"\n [disabled]=\"lockForm?.invalid || modalBusy\"\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\n >\n </ng-template>\n</abp-modal>\n\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\n <ng-template #abpHeader>\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\n </ng-template>\n\n <ng-template #abpBody>\n <div class=\"mt-2 fade-in-top\">\n <div class=\"form-check mb-2\">\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n id=\"two-factor-enabled\"\n [(ngModel)]=\"twoFactor.checkboxValue\"\n />\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\n }}</label>\n </div>\n </div>\n </ng-template>\n\n <ng-template #abpFooter>\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\n </button>\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\n 'AbpIdentity::Save' | abpLocalization\n }}</abp-button>\n </ng-template>\n</abp-modal>\n", styles: ["\n .mh-35 {\n max-height: 35px;\n }\n "], components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { type: i6.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i5$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver"] }, { type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i7.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i8.NgbNav, selector: "[ngbNav]", inputs: ["destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "navChange"], exportAs: ["ngbNav"] }, { type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], exportAs: ["ngbNavItem"] }, { type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i13.ValidationDirective, selector: "[formControl],[formControlName]", inputs: ["blueprints", "errorTemplate", "invalidClasses", "mapErrorsFn", "skipValidation", "targetSelector", "validateOnSubmit"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { type: i4.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { type: i4.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { type: i4.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { type: i4.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
1037
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: UsersComponent, decorators: [{
1041
+ ], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"roleService.getList\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"organizationUnitService.getList\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n ></abp-lookup-select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"d-flex col-3\">\r\n <div class=\"align-self-center\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"is-locked-out\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"is-locked-out\">{{\r\n 'AbpIdentity::Lock' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n <div class=\"align-self-center ms-3\">\r\n <div class=\"form-check\">\r\n <input\r\n class=\"form-check-input\"\r\n type=\"checkbox\"\r\n id=\"not-active\"\r\n [(ngModel)]=\"filters.notActive\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n <label class=\"form-check-label\" for=\"not-active\">{{\r\n 'AbpIdentity::NotActive' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table\r\n [data]=\"data.items\"\r\n [recordsTotal]=\"data.totalCount\"\r\n [list]=\"list\"\r\n ></abp-extensible-table>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form *ngIf=\"form\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent\r\n ><abp-extensible-form [selectedRecord]=\"selected\"></abp-extensible-form\r\n ></ng-template>\r\n </li>\r\n <li id=\"user-roles\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div\r\n *ngFor=\"let roleGroup of roleGroups; let i = index; trackBy: trackByFn\"\r\n class=\"form-check mb-2\"\r\n >\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">{{ roles[i].name }}</label>\r\n </div></ng-template\r\n >\r\n </li>\r\n <li id=\"user-organization-units\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-tree\r\n *ngIf=\"organization.nodes?.length; else noDataMessage\"\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n\r\n <ng-template #noDataMessage>\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n </ng-template>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"form?.invalid\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true }\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent'\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n>\r\n</abp-permission-management>\r\n\r\n<abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\"></abp-claim-modal>\r\n\r\n<abp-modal [(visible)]=\"isSetPasswordModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::SetPassword' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"setPasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group\">\r\n <div class=\"col-10 p-0\">\r\n <input\r\n type=\"text\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n </div>\r\n\r\n <button\r\n class=\"btn btn-secondary\"\r\n id=\"generate-random-password-button\"\r\n type=\"button\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fa fa-refresh\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n (click)=\"setPassword()\"\r\n [disabled]=\"setPasswordForm?.invalid\"\r\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"isLockModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"lockForm\" (ngSubmit)=\"lock()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\" [formGroup]=\"lockForm\">\r\n <abp-date-time-picker [prop]=\"dateTimePickerProps\"></abp-date-time-picker>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n (click)=\"lock()\"\r\n [disabled]=\"lockForm?.invalid || modalBusy\"\r\n >{{ 'AbpIdentity::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", styles: ["\n .mh-35 {\n max-height: 35px;\n }\n "], components: [{ type: i4$1.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { type: i6.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { type: i6.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { type: i6.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount"] }, { type: i6$1.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], exportAs: ["abpExtensibleTable"] }, { type: i2.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { type: i6$1.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { type: i5$1.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver"] }, { type: i8.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { type: i7.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["subject", "visible"], outputs: ["visibleChange"] }, { type: i6$1.DateTimePickerComponent, selector: "abp-date-time-picker", inputs: ["prop", "meridian"], exportAs: ["abpDateTimePicker"] }], directives: [{ type: i4.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i4.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit"], outputs: ["ngSubmit"] }, { type: i4.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i13.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { type: i8.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i8.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i8.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i8.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i4.FormControlDirective, selector: "[formControl]", inputs: ["disabled", "formControl", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i13.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { type: i2.ModalCloseDirective, selector: "[abpClose]" }, { type: i1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { type: i4.FormControlName, selector: "[formControlName]", inputs: ["disabled", "formControlName", "ngModel"], outputs: ["ngModelChange"] }, { type: i1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }], pipes: { "abpLocalization": i1.LocalizationPipe } });
1042
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: UsersComponent, decorators: [{
1038
1043
  type: Component,
1039
1044
  args: [{
1040
1045
  selector: 'abp-users',
@@ -1047,10 +1052,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
1047
1052
  },
1048
1053
  ],
1049
1054
  styles: [
1050
- `
1051
- .mh-35 {
1052
- max-height: 35px;
1053
- }
1055
+ `
1056
+ .mh-35 {
1057
+ max-height: 35px;
1058
+ }
1054
1059
  `,
1055
1060
  ],
1056
1061
  }]
@@ -1561,6 +1566,20 @@ const DEFAULT_USERS_ENTITY_ACTIONS = EntityAction.createMany([
1561
1566
  permission: 'AbpIdentity.Users.Update',
1562
1567
  visible: data => data.getInjected(UsersComponent).twoFactor.isOptional,
1563
1568
  },
1569
+ {
1570
+ text: 'AbpIdentity::LoginWithThisUser',
1571
+ permission: 'AbpIdentity.Users.Impersonation',
1572
+ action: data => {
1573
+ const impersonation = data.getInjected(ImpersonationService);
1574
+ impersonation.impersonateUser(data.record.id).subscribe();
1575
+ },
1576
+ visible: data => {
1577
+ const configState = data.getInjected(ConfigStateService);
1578
+ const currentUserId = configState.getDeep('currentUser.id');
1579
+ const currentImpersonatorUserId = configState.getDeep('currentUser.impersonatorUserId');
1580
+ return data.record.id !== currentUserId && currentImpersonatorUserId === null;
1581
+ },
1582
+ },
1564
1583
  {
1565
1584
  text: 'AbpIdentity::Delete',
1566
1585
  action: data => {
@@ -1583,9 +1602,9 @@ const DEFAULT_USERS_ENTITY_PROPS = EntityProp.createMany([
1583
1602
  const t = l10n.instant.bind(l10n);
1584
1603
  const lockOutIcon = `<i title="${t('AbpIdentity::ThisUserIsLockedOutMessage')}" class="fas fa-lock text-danger me-1"></i>`;
1585
1604
  const inactiveIcon = `<i title="${t('AbpIdentity::ThisUserIsNotActiveMessage')}" class="fas fa-ban text-danger me-1"></i>`;
1586
- return of(`
1587
- ${data.record.isLockedOut ? lockOutIcon : ''}
1588
- ${!data.record.isActive ? inactiveIcon : ''}
1605
+ return of(`
1606
+ ${data.record.isLockedOut ? lockOutIcon : ''}
1607
+ ${!data.record.isActive ? inactiveIcon : ''}
1589
1608
  <span class="${data.record.isLockedOut || !data.record.isActive ? 'opc-65' : ''}">${data.record.userName}</span>`);
1590
1609
  },
1591
1610
  },
@@ -1761,9 +1780,9 @@ class IdentityExtensionsGuard {
1761
1780
  }), mapTo(true));
1762
1781
  }
1763
1782
  }
1764
- IdentityExtensionsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1765
- IdentityExtensionsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityExtensionsGuard });
1766
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
1783
+ IdentityExtensionsGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityExtensionsGuard, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1784
+ IdentityExtensionsGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityExtensionsGuard });
1785
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
1767
1786
  type: Injectable
1768
1787
  }], ctorParameters: function () { return [{ type: i0.Injector }]; } });
1769
1788
 
@@ -1771,7 +1790,7 @@ const routes = [
1771
1790
  { path: '', redirectTo: 'roles', pathMatch: 'full' },
1772
1791
  {
1773
1792
  path: '',
1774
- component: DynamicLayoutComponent,
1793
+ component: RouterOutletComponent,
1775
1794
  canActivate: [AuthGuard, PermissionGuard, IdentityExtensionsGuard],
1776
1795
  children: [
1777
1796
  {
@@ -1834,10 +1853,10 @@ const routes = [
1834
1853
  ];
1835
1854
  class IdentityRoutingModule {
1836
1855
  }
1837
- IdentityRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1838
- IdentityRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1839
- IdentityRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
1840
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityRoutingModule, decorators: [{
1856
+ IdentityRoutingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1857
+ IdentityRoutingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoutingModule, imports: [i1$1.RouterModule], exports: [RouterModule] });
1858
+ IdentityRoutingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoutingModule, imports: [[RouterModule.forChild(routes)], RouterModule] });
1859
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityRoutingModule, decorators: [{
1841
1860
  type: NgModule,
1842
1861
  args: [{
1843
1862
  imports: [RouterModule.forChild(routes)],
@@ -1879,8 +1898,8 @@ class IdentityModule {
1879
1898
  return new LazyModuleFactory(IdentityModule.forChild(options));
1880
1899
  }
1881
1900
  }
1882
- IdentityModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1883
- IdentityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityModule, declarations: [RolesComponent,
1901
+ IdentityModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1902
+ IdentityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityModule, declarations: [RolesComponent,
1884
1903
  UsersComponent,
1885
1904
  ClaimModalComponent,
1886
1905
  ClaimsComponent,
@@ -1901,7 +1920,8 @@ IdentityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
1901
1920
  NgxValidateCoreModule,
1902
1921
  TreeModule,
1903
1922
  PageModule,
1904
- AdvancedEntityFiltersModule], exports: [RolesComponent,
1923
+ AdvancedEntityFiltersModule,
1924
+ UiExtensionsModule], exports: [RolesComponent,
1905
1925
  UsersComponent,
1906
1926
  ClaimModalComponent,
1907
1927
  ClaimsComponent,
@@ -1912,7 +1932,7 @@ IdentityModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version:
1912
1932
  OrganizationRolesModalBodyComponent,
1913
1933
  AbstractOrganizationUnitComponent,
1914
1934
  SecurityLogsComponent] });
1915
- IdentityModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityModule, imports: [[
1935
+ IdentityModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityModule, imports: [[
1916
1936
  CoreModule,
1917
1937
  CommercialUiModule,
1918
1938
  IdentityRoutingModule,
@@ -1925,8 +1945,9 @@ IdentityModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version:
1925
1945
  TreeModule,
1926
1946
  PageModule,
1927
1947
  AdvancedEntityFiltersModule,
1948
+ UiExtensionsModule,
1928
1949
  ]] });
1929
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImport: i0, type: IdentityModule, decorators: [{
1950
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.0", ngImport: i0, type: IdentityModule, decorators: [{
1930
1951
  type: NgModule,
1931
1952
  args: [{
1932
1953
  declarations: [
@@ -1968,6 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.8", ngImpor
1968
1989
  TreeModule,
1969
1990
  PageModule,
1970
1991
  AdvancedEntityFiltersModule,
1992
+ UiExtensionsModule,
1971
1993
  ],
1972
1994
  entryComponents: [],
1973
1995
  }]