@volo/abp.ng.identity 8.1.3 → 8.2.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts +6 -6
- package/config/components/identity-setting-tabs/identity-ldap-settings.component.d.ts +3 -4
- package/config/components/identity-setting-tabs/identity-sessions-settings/identity-sessions-settings.component.d.ts +18 -0
- package/config/components/identity-setting-tabs/identity-setting.component.d.ts +8 -7
- package/config/components/identity-settings.component.d.ts +1 -3
- package/config/components/my-link-users-modal.component.d.ts +10 -10
- package/config/identity-config.module.d.ts +2 -1
- package/esm2022/config/components/authority-delegation/authority-delegation.component.mjs +3 -3
- package/esm2022/config/components/authority-delegation/authority-delegation.module.mjs +4 -4
- package/esm2022/config/components/authority-delegation/create-user-delegate.component.mjs +3 -3
- package/esm2022/config/components/authority-delegation/list-authority-delegation.component.mjs +3 -3
- package/esm2022/config/components/authority-delegation/my-delegated-users.component.mjs +3 -3
- package/esm2022/config/components/identity-setting-tabs/identity-external-login-settings.component.mjs +17 -19
- package/esm2022/config/components/identity-setting-tabs/identity-ldap-settings.component.mjs +15 -17
- package/esm2022/config/components/identity-setting-tabs/identity-sessions-settings/identity-sessions-settings.component.mjs +35 -0
- package/esm2022/config/components/identity-setting-tabs/identity-setting.component.mjs +21 -21
- package/esm2022/config/components/identity-settings.component.mjs +16 -15
- package/esm2022/config/components/my-link-users-modal.component.mjs +28 -28
- package/esm2022/config/handlers/link-login.handler.mjs +3 -3
- package/esm2022/config/identity-config.module.mjs +11 -7
- package/esm2022/config/providers/route.provider.mjs +2 -2
- package/esm2022/config/services/authority-delegation.service.mjs +3 -3
- package/esm2022/config/services/identity-config.service.mjs +3 -3
- package/esm2022/config/services/identity-link-login.service.mjs +3 -3
- package/esm2022/lib/components/claim-modal/claim-modal.component.mjs +15 -12
- package/esm2022/lib/components/claims/claims.component.mjs +26 -22
- package/esm2022/lib/components/export-excel/export-data-dropdown.component.mjs +3 -3
- package/esm2022/lib/components/export-excel/upload-excel-file.component.mjs +7 -8
- package/esm2022/lib/components/external-login/external-login.component.mjs +6 -7
- package/esm2022/lib/components/external-login/user-dropdown-menu/user-dropdown-menu.component.mjs +3 -3
- package/esm2022/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.mjs +11 -6
- package/esm2022/lib/components/organization-units/delete-organization-unit/delete-organization-unit.component.mjs +7 -6
- package/esm2022/lib/components/organization-units/move-all-users-of-unit/move-all-users-of-unit.component.mjs +12 -11
- package/esm2022/lib/components/organization-units/organization-members/organization-members-modal-body.component.mjs +3 -3
- package/esm2022/lib/components/organization-units/organization-members/organization-members.component.mjs +3 -3
- package/esm2022/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.mjs +3 -3
- package/esm2022/lib/components/organization-units/organization-roles/organization-roles.component.mjs +3 -3
- package/esm2022/lib/components/organization-units/organization-units.component.mjs +22 -23
- package/esm2022/lib/components/organization-units/selected-organization-unit/selected-organization-unit.component.mjs +5 -5
- package/esm2022/lib/components/roles/delete-role/role-delete.component.mjs +8 -5
- package/esm2022/lib/components/roles/edit-new-modal/roles-modal.component.mjs +11 -8
- package/esm2022/lib/components/roles/move-all-users/move-all-users.component.mjs +12 -10
- package/esm2022/lib/components/roles/roles.component.mjs +21 -21
- package/esm2022/lib/components/security-logs/security-logs.component.mjs +17 -23
- package/esm2022/lib/components/users/set-password-modal/set-password-modal.component.mjs +3 -3
- package/esm2022/lib/components/users/user-lock-modal.component.mjs +7 -5
- package/esm2022/lib/components/users/user-lock.service.mjs +3 -3
- package/esm2022/lib/components/users/user-sessions-modal/session-detail-modal/user-session-detail.component.mjs +26 -0
- package/esm2022/lib/components/users/user-sessions-modal/user-sessions.component.mjs +69 -0
- package/esm2022/lib/components/users/user-view-details/user-view-details.component.mjs +5 -5
- package/esm2022/lib/components/users/users.component.mjs +38 -29
- package/esm2022/lib/defaults/users/default-users-entity-actions.mjs +10 -2
- package/esm2022/lib/guards/extensions.guard.mjs +3 -3
- package/esm2022/lib/identity-routing.module.mjs +4 -4
- package/esm2022/lib/identity.module.mjs +49 -36
- package/esm2022/lib/resolvers/extensions.resolver.mjs +1 -1
- package/esm2022/lib/services/delete-organization-unit-modal.service.mjs +3 -3
- package/esm2022/lib/services/excel.service.mjs +3 -3
- package/esm2022/lib/services/move-all-users-of-unit-modal.service.mjs +3 -3
- package/esm2022/lib/services/organization-units-state.service.mjs +3 -3
- package/esm2022/lib/services/user-view-detail.service.mjs +3 -3
- package/esm2022/proxy/lib/index.mjs +2 -1
- package/esm2022/proxy/lib/proxy/content/index.mjs +2 -0
- package/esm2022/proxy/lib/proxy/identity/identity-claim-type.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/identity-external-login.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/identity-role.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/identity-security-log.service.mjs +4 -26
- package/esm2022/proxy/lib/proxy/identity/identity-session.service.mjs +40 -0
- package/esm2022/proxy/lib/proxy/identity/identity-settings.service.mjs +13 -4
- package/esm2022/proxy/lib/proxy/identity/identity-user-lookup.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/identity-user.service.mjs +4 -4
- package/esm2022/proxy/lib/proxy/identity/index.mjs +4 -1
- package/esm2022/proxy/lib/proxy/identity/models.mjs +1 -1
- package/esm2022/proxy/lib/proxy/identity/organization-unit.service.mjs +3 -3
- package/esm2022/proxy/lib/proxy/identity/settings/identity-pro-prevent-concurrent-login-behaviour.enum.mjs +9 -0
- package/esm2022/proxy/lib/proxy/identity/settings/index.mjs +2 -0
- package/esm2022/proxy/lib/proxy/users/models.mjs +1 -1
- package/fesm2022/volo-abp.ng.identity-config.mjs +145 -112
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity-proxy.mjs +73 -36
- package/fesm2022/volo-abp.ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +311 -185
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/claim-modal/claim-modal.component.d.ts +2 -1
- package/lib/components/claims/claims.component.d.ts +7 -7
- package/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.d.ts +2 -1
- package/lib/components/organization-units/delete-organization-unit/delete-organization-unit.component.d.ts +2 -0
- package/lib/components/organization-units/move-all-users-of-unit/move-all-users-of-unit.component.d.ts +2 -0
- package/lib/components/organization-units/organization-units.component.d.ts +1 -1
- package/lib/components/roles/delete-role/role-delete.component.d.ts +2 -0
- package/lib/components/roles/edit-new-modal/roles-modal.component.d.ts +2 -0
- package/lib/components/roles/move-all-users/move-all-users.component.d.ts +2 -0
- package/lib/components/roles/roles.component.d.ts +5 -5
- package/lib/components/security-logs/security-logs.component.d.ts +3 -7
- package/lib/components/users/user-lock-modal.component.d.ts +2 -0
- package/lib/components/users/user-sessions-modal/session-detail-modal/user-session-detail.component.d.ts +15 -0
- package/lib/components/users/user-sessions-modal/user-sessions.component.d.ts +26 -0
- package/lib/components/users/users.component.d.ts +7 -5
- package/lib/identity.module.d.ts +18 -17
- package/package.json +7 -7
- package/proxy/lib/index.d.ts +1 -0
- package/proxy/lib/proxy/content/index.d.ts +1 -0
- package/proxy/lib/proxy/identity/identity-security-log.service.d.ts +0 -2
- package/proxy/lib/proxy/identity/identity-session.service.d.ts +14 -0
- package/proxy/lib/proxy/identity/identity-settings.service.d.ts +3 -1
- package/proxy/lib/proxy/identity/index.d.ts +3 -0
- package/proxy/lib/proxy/identity/models.d.ts +29 -0
- package/proxy/lib/proxy/identity/settings/identity-pro-prevent-concurrent-login-behaviour.enum.d.ts +6 -0
- package/proxy/lib/proxy/identity/settings/index.d.ts +1 -0
|
@@ -1,27 +1,54 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
1
|
+
import * as i2 from '@abp/ng.core';
|
|
2
|
+
import { LocalizationModule, SubscriptionService, ConfigStateService, ListService, AuthService, EnvironmentService, PIPE_TO_LOGIN_FN_KEY, CoreModule, RoutesService, ContentProjectionService, PROJECTION_STRATEGY, noop } from '@abp/ng.core';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
|
-
import {
|
|
4
|
+
import { inject, Component, ChangeDetectionStrategy, Injectable, Injector, EventEmitter, Output, NgModule, APP_INITIALIZER } from '@angular/core';
|
|
5
5
|
import { filter, finalize, map, switchMap, catchError, tap } from 'rxjs/operators';
|
|
6
|
-
import * as
|
|
7
|
-
import * as i3$2 from '@ng-bootstrap/ng-bootstrap';
|
|
6
|
+
import * as i1$1 from '@ng-bootstrap/ng-bootstrap';
|
|
8
7
|
import { NgbDateAdapter, NgbDropdownModule, NgbNavModule } from '@ng-bootstrap/ng-bootstrap';
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
11
|
-
import * as i3$1 from '@
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
8
|
+
import * as i1 from '@angular/forms';
|
|
9
|
+
import { FormBuilder, ReactiveFormsModule, Validators, UntypedFormBuilder } from '@angular/forms';
|
|
10
|
+
import * as i3$1 from '@abp/ng.theme.shared';
|
|
11
|
+
import { ToasterService, ConfirmationService, Confirmation, DateTimeAdapter, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
12
|
+
import { IdentitySettingsService, Settings } from '@volo/abp.ng.identity/proxy';
|
|
13
|
+
import * as i3 from '@ngx-validate/core';
|
|
14
14
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
15
|
-
import * as
|
|
16
|
-
import { IdentityLinkUserService, IdentityUserDelegationService } from '@volo/abp.ng.account/public/proxy';
|
|
15
|
+
import * as i6 from '@angular/common';
|
|
17
16
|
import { from, of, pipe, lastValueFrom, combineLatest, switchMap as switchMap$1 } from 'rxjs';
|
|
18
|
-
import
|
|
19
|
-
import * as
|
|
17
|
+
import { IdentityLinkUserService, IdentityUserDelegationService } from '@volo/abp.ng.account/public/proxy';
|
|
18
|
+
import * as i1$2 from '@angular/router';
|
|
19
|
+
import * as i2$1 from '@swimlane/ngx-datatable';
|
|
20
20
|
import * as i5 from '@volo/abp.commercial.ng.ui';
|
|
21
21
|
import { CommercialUiModule } from '@volo/abp.commercial.ng.ui';
|
|
22
22
|
import { OPEN_MY_LINK_USERS_MODAL, OPEN_AUTHORITY_DELEGATION_MODAL } from '@volo/abp.commercial.ng.ui/config';
|
|
23
23
|
import { SettingTabsService } from '@abp/ng.setting-management/config';
|
|
24
24
|
|
|
25
|
+
class IdentitySessionsSettingComponent {
|
|
26
|
+
buildForm() {
|
|
27
|
+
this.identitySettingService.getSession().subscribe(({ preventConcurrentLogin }) => {
|
|
28
|
+
this.form.setValue({ preventConcurrentLogin });
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
constructor() {
|
|
32
|
+
this.fb = inject(FormBuilder);
|
|
33
|
+
this.identitySettingService = inject(IdentitySettingsService);
|
|
34
|
+
this.toasterService = inject(ToasterService);
|
|
35
|
+
this.sessionSettings = Settings.identityProPreventConcurrentLoginBehaviourOptions;
|
|
36
|
+
this.form = this.fb.group({ preventConcurrentLogin: [] });
|
|
37
|
+
this.buildForm();
|
|
38
|
+
}
|
|
39
|
+
save() {
|
|
40
|
+
this.identitySettingService
|
|
41
|
+
.updateSession(this.form.value)
|
|
42
|
+
.subscribe(() => this.toasterService.success('AbpUi::SavedSuccessfully'));
|
|
43
|
+
}
|
|
44
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySessionsSettingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: IdentitySessionsSettingComponent, isStandalone: true, selector: "abp-identity-session-setting", ngImport: i0, template: "<h4>{{ 'AbpIdentity::Sessions' | abpLocalization }}</h4>\r\n\r\n<form [formGroup]=\"form\" class=\"abp-md-form\" (ngSubmit)=\"save()\">\r\n <div class=\"mb-3 form-group\">\r\n <label class=\"form-label\"\r\n >{{ 'AbpIdentity::DisplayName:Abp.Identity.PreventConcurrentLogin' | abpLocalization }}\r\n </label>\r\n <select class=\"form-select form-control\" formControlName=\"preventConcurrentLogin\">\r\n @for (setting of sessionSettings; track setting.value) {\r\n <option [ngValue]=\"setting.value\">\r\n {{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.' + setting.key\r\n | abpLocalization\r\n }}\r\n </option>\r\n }\r\n </select>\r\n <small class=\"form-text text-muted\">\r\n {{ 'AbpIdentity::Description:Abp.Identity.PreventConcurrentLogin' | abpLocalization }}\r\n </small>\r\n <hr class=\"my-4\" />\r\n <div class=\"d-flex flex-column gap-3\">\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.Disabled' | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.Disabled'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.LogoutFromSameTypeDevices'\r\n | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.LogoutFromSameTypeDevices'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.LogoutFromAllDevices'\r\n | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.LogoutFromAllDevices'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n\r\n <button class=\"btn btn-primary\">\r\n <i class=\"fa fa-save me-1\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n</form>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
46
|
+
}
|
|
47
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySessionsSettingComponent, decorators: [{
|
|
48
|
+
type: Component,
|
|
49
|
+
args: [{ standalone: true, selector: 'abp-identity-session-setting', imports: [ReactiveFormsModule, LocalizationModule], changeDetection: ChangeDetectionStrategy.OnPush, template: "<h4>{{ 'AbpIdentity::Sessions' | abpLocalization }}</h4>\r\n\r\n<form [formGroup]=\"form\" class=\"abp-md-form\" (ngSubmit)=\"save()\">\r\n <div class=\"mb-3 form-group\">\r\n <label class=\"form-label\"\r\n >{{ 'AbpIdentity::DisplayName:Abp.Identity.PreventConcurrentLogin' | abpLocalization }}\r\n </label>\r\n <select class=\"form-select form-control\" formControlName=\"preventConcurrentLogin\">\r\n @for (setting of sessionSettings; track setting.value) {\r\n <option [ngValue]=\"setting.value\">\r\n {{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.' + setting.key\r\n | abpLocalization\r\n }}\r\n </option>\r\n }\r\n </select>\r\n <small class=\"form-text text-muted\">\r\n {{ 'AbpIdentity::Description:Abp.Identity.PreventConcurrentLogin' | abpLocalization }}\r\n </small>\r\n <hr class=\"my-4\" />\r\n <div class=\"d-flex flex-column gap-3\">\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.Disabled' | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.Disabled'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.LogoutFromSameTypeDevices'\r\n | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.LogoutFromSameTypeDevices'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n <div class=\"d-flex flex-column\">\r\n <span class=\"fw-bold\">{{\r\n 'AbpIdentity::Enum:IdentityProPreventConcurrentLoginBehaviour.LogoutFromAllDevices'\r\n | abpLocalization\r\n }}</span>\r\n <small class=\"form-text text-muted\">\r\n {{\r\n 'AbpIdentity::Description:IdentityProPreventConcurrentLoginBehaviour.LogoutFromAllDevices'\r\n | abpLocalization\r\n }}\r\n </small>\r\n </div>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n\r\n <button class=\"btn btn-primary\">\r\n <i class=\"fa fa-save me-1\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n</form>\r\n" }]
|
|
50
|
+
}], ctorParameters: () => [] });
|
|
51
|
+
|
|
25
52
|
class IdentityConfigService {
|
|
26
53
|
constructor(restService) {
|
|
27
54
|
this.restService = restService;
|
|
@@ -40,24 +67,19 @@ class IdentityConfigService {
|
|
|
40
67
|
body,
|
|
41
68
|
}, { apiName: this.apiName });
|
|
42
69
|
}
|
|
43
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
44
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigService, deps: [{ token: i2.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
71
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigService, providedIn: 'root' }); }
|
|
45
72
|
}
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigService, decorators: [{
|
|
47
74
|
type: Injectable,
|
|
48
75
|
args: [{
|
|
49
76
|
providedIn: 'root',
|
|
50
77
|
}]
|
|
51
|
-
}], ctorParameters: () => [{ type:
|
|
78
|
+
}], ctorParameters: () => [{ type: i2.RestService }] });
|
|
52
79
|
|
|
53
80
|
const { required, max, min } = Validators;
|
|
54
81
|
class IdentitySettingComponent {
|
|
55
|
-
constructor(
|
|
56
|
-
this.identityConfigService = identityConfigService;
|
|
57
|
-
this.toaster = toaster;
|
|
58
|
-
this.fb = fb;
|
|
59
|
-
this.subscription = subscription;
|
|
60
|
-
this.configState = configState;
|
|
82
|
+
constructor() {
|
|
61
83
|
this.settings = {};
|
|
62
84
|
this.doNotRequireConfirmedPhoneNumber = () => {
|
|
63
85
|
this.form.get('signIn.requireConfirmedPhoneNumber').setValue(false);
|
|
@@ -65,7 +87,14 @@ class IdentitySettingComponent {
|
|
|
65
87
|
this.enablePhoneNumberConfirmation = () => {
|
|
66
88
|
this.form.get('signIn.enablePhoneNumberConfirmation').setValue(true);
|
|
67
89
|
};
|
|
68
|
-
identityConfigService
|
|
90
|
+
this.identityConfigService = inject(IdentityConfigService);
|
|
91
|
+
this.toaster = inject(ToasterService);
|
|
92
|
+
this.fb = inject(UntypedFormBuilder);
|
|
93
|
+
this.subscription = inject(SubscriptionService);
|
|
94
|
+
this.configState = inject(ConfigStateService);
|
|
95
|
+
}
|
|
96
|
+
ngOnInit() {
|
|
97
|
+
this.identityConfigService.getSettings().subscribe(settings => {
|
|
69
98
|
this.settings = settings;
|
|
70
99
|
this.buildForm();
|
|
71
100
|
this.syncConfirmationOptions();
|
|
@@ -123,23 +152,23 @@ class IdentitySettingComponent {
|
|
|
123
152
|
this.loading = false;
|
|
124
153
|
this.configState.refreshAppState().subscribe();
|
|
125
154
|
}))
|
|
126
|
-
.subscribe(() => this.toaster.success('
|
|
155
|
+
.subscribe(() => this.toaster.success('AbpUi::SavedSuccessfully', null));
|
|
127
156
|
}
|
|
128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
129
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.1.3", type: IdentitySettingComponent, selector: "abp-identity-setting", providers: [SubscriptionService], ngImport: i0, template: "\r\n<form\r\n class=\"py-2\"\r\n *ngIf=\"form\"\r\n id=\"IdentitySettingsForm\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"submit()\"\r\n validateOnSubmit\r\n>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div formGroupName=\"password\">\r\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredLength\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredLength\"\r\n name=\"Password.RequiredLength\"\r\n class=\"form-control\"\r\n formControlName=\"requiredLength\"\r\n min=\"2\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredUniqueChars\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredUniqueChars\"\r\n name=\"Password.RequiredUniqueChars\"\r\n class=\"form-control\"\r\n formControlName=\"requiredUniqueChars\"\r\n min=\"0\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireNonAlphanumeric\"\r\n name=\"Password.RequireNonAlphanumeric\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireNonAlphanumeric\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireNonAlphanumeric\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireLowercase\"\r\n name=\"Password.RequireLowercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireLowercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireLowercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireUppercase\"\r\n name=\"Password.RequireUppercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireUppercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireUppercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireDigit\"\r\n name=\"Password.RequireDigit\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireDigit\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireDigit\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <hr class=\"my-4\" />\r\n <h4>{{ 'AbpIdentity::PasswordRenewingSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_ForceUsersToPeriodicallyChangePassword\"\r\n name=\"Password.ForceUsersToPeriodicallyChangePassword\"\r\n class=\"form-check-input\"\r\n formControlName=\"forceUsersToPeriodicallyChangePassword\"\r\n />\r\n <label class=\"form-check-label\" for=\"Password_ForceUsersToPeriodicallyChangePassword\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</label>\r\n <br />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_PasswordChangePeriodDays\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_PasswordChangePeriodDays\"\r\n name=\"Password.PasswordChangePeriodDays\"\r\n class=\"form-control\"\r\n formControlName=\"passwordChangePeriodDays\"\r\n />\r\n <small\r\n class=\"form-text text-muted\"\r\n >{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</small\r\n >\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"lockout\">\r\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Lockout_AllowedForNewUsers\"\r\n name=\"Lockout.AllowedForNewUsers\"\r\n class=\"form-check-input\"\r\n formControlName=\"allowedForNewUsers\"\r\n /><label class=\"form-check-label\" for=\"Lockout_AllowedForNewUsers\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_LockoutDuration\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_LockoutDuration\"\r\n name=\"Lockout.LockoutDuration\"\r\n class=\"form-control\"\r\n formControlName=\"lockoutDuration\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_MaxFailedAccessAttempts\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_MaxFailedAccessAttempts\"\r\n name=\"Lockout.MaxFailedAccessAttempts\"\r\n class=\"form-control\"\r\n formControlName=\"maxFailedAccessAttempts\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"signIn\">\r\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedEmail\"\r\n name=\"SignIn.RequireConfirmedEmail\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedEmail\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedEmail\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_EnablePhoneNumberConfirmation\"\r\n name=\"SignIn.EnablePhoneNumberConfirmation\"\r\n class=\"form-check-input\"\r\n formControlName=\"enablePhoneNumberConfirmation\"\r\n /><label class=\"form-check-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedPhoneNumber\"\r\n name=\"SignIn.RequireConfirmedPhoneNumber\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedPhoneNumber\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"user\">\r\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsEmailUpdateEnabled\"\r\n name=\"User.IsEmailUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isEmailUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsEmailUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsUserNameUpdateEnabled\"\r\n name=\"User.IsUserNameUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isUserNameUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsUserNameUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-3\" />\r\n <div>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n [loading]=\"loading\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n", dependencies: [{ kind: "directive", type: i2$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i3$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i3$1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i3$1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i3$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i3$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i3$1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i3.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i6.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i6.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i2.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: i3.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySettingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: IdentitySettingComponent, selector: "abp-identity-setting", providers: [SubscriptionService], ngImport: i0, template: "@if (form) {\r\n <form id=\"IdentitySettingsForm\" [formGroup]=\"form\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div formGroupName=\"password\">\r\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredLength\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredLength\"\r\n name=\"Password.RequiredLength\"\r\n class=\"form-control\"\r\n formControlName=\"requiredLength\"\r\n min=\"2\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredUniqueChars\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredUniqueChars\"\r\n name=\"Password.RequiredUniqueChars\"\r\n class=\"form-control\"\r\n formControlName=\"requiredUniqueChars\"\r\n min=\"0\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireNonAlphanumeric\"\r\n name=\"Password.RequireNonAlphanumeric\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireNonAlphanumeric\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireNonAlphanumeric\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireLowercase\"\r\n name=\"Password.RequireLowercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireLowercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireLowercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireUppercase\"\r\n name=\"Password.RequireUppercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireUppercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireUppercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireDigit\"\r\n name=\"Password.RequireDigit\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireDigit\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireDigit\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <hr class=\"my-4\" />\r\n <h4>{{ 'AbpIdentity::PasswordRenewingSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_ForceUsersToPeriodicallyChangePassword\"\r\n name=\"Password.ForceUsersToPeriodicallyChangePassword\"\r\n class=\"form-check-input\"\r\n formControlName=\"forceUsersToPeriodicallyChangePassword\"\r\n />\r\n <label class=\"form-check-label\" for=\"Password_ForceUsersToPeriodicallyChangePassword\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</label>\r\n <br />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_PasswordChangePeriodDays\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_PasswordChangePeriodDays\"\r\n name=\"Password.PasswordChangePeriodDays\"\r\n class=\"form-control\"\r\n formControlName=\"passwordChangePeriodDays\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"lockout\">\r\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Lockout_AllowedForNewUsers\"\r\n name=\"Lockout.AllowedForNewUsers\"\r\n class=\"form-check-input\"\r\n formControlName=\"allowedForNewUsers\"\r\n /><label class=\"form-check-label\" for=\"Lockout_AllowedForNewUsers\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_LockoutDuration\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_LockoutDuration\"\r\n name=\"Lockout.LockoutDuration\"\r\n class=\"form-control\"\r\n formControlName=\"lockoutDuration\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_MaxFailedAccessAttempts\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_MaxFailedAccessAttempts\"\r\n name=\"Lockout.MaxFailedAccessAttempts\"\r\n class=\"form-control\"\r\n formControlName=\"maxFailedAccessAttempts\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"signIn\">\r\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedEmail\"\r\n name=\"SignIn.RequireConfirmedEmail\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedEmail\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedEmail\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_EnablePhoneNumberConfirmation\"\r\n name=\"SignIn.EnablePhoneNumberConfirmation\"\r\n class=\"form-check-input\"\r\n formControlName=\"enablePhoneNumberConfirmation\"\r\n /><label class=\"form-check-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedPhoneNumber\"\r\n name=\"SignIn.RequireConfirmedPhoneNumber\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedPhoneNumber\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"user\">\r\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsEmailUpdateEnabled\"\r\n name=\"User.IsEmailUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isEmailUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsEmailUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsUserNameUpdateEnabled\"\r\n name=\"User.IsUserNameUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isUserNameUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsUserNameUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-3\" />\r\n <div>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n [loading]=\"loading\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n}\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.MinValidator, selector: "input[type=number][min][formControlName],input[type=number][min][formControl],input[type=number][min][ngModel]", inputs: ["min"] }, { kind: "directive", type: i1.MaxValidator, selector: "input[type=number][max][formControlName],input[type=number][max][formControl],input[type=number][max][ngModel]", inputs: ["max"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i1.FormGroupName, selector: "[formGroupName]", inputs: ["formGroupName"] }, { kind: "directive", type: i2.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i3$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
130
159
|
}
|
|
131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySettingComponent, decorators: [{
|
|
132
161
|
type: Component,
|
|
133
|
-
args: [{ selector: 'abp-identity-setting', providers: [SubscriptionService], template: "\r\n<form\r\n class=\"py-2\"\r\n *ngIf=\"form\"\r\n id=\"IdentitySettingsForm\"\r\n [formGroup]=\"form\"\r\n (ngSubmit)=\"submit()\"\r\n validateOnSubmit\r\n>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div formGroupName=\"password\">\r\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredLength\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredLength\"\r\n name=\"Password.RequiredLength\"\r\n class=\"form-control\"\r\n formControlName=\"requiredLength\"\r\n min=\"2\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredUniqueChars\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredUniqueChars\"\r\n name=\"Password.RequiredUniqueChars\"\r\n class=\"form-control\"\r\n formControlName=\"requiredUniqueChars\"\r\n min=\"0\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireNonAlphanumeric\"\r\n name=\"Password.RequireNonAlphanumeric\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireNonAlphanumeric\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireNonAlphanumeric\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireLowercase\"\r\n name=\"Password.RequireLowercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireLowercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireLowercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireUppercase\"\r\n name=\"Password.RequireUppercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireUppercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireUppercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireDigit\"\r\n name=\"Password.RequireDigit\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireDigit\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireDigit\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <hr class=\"my-4\" />\r\n <h4>{{ 'AbpIdentity::PasswordRenewingSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_ForceUsersToPeriodicallyChangePassword\"\r\n name=\"Password.ForceUsersToPeriodicallyChangePassword\"\r\n class=\"form-check-input\"\r\n formControlName=\"forceUsersToPeriodicallyChangePassword\"\r\n />\r\n <label class=\"form-check-label\" for=\"Password_ForceUsersToPeriodicallyChangePassword\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</label>\r\n <br />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_PasswordChangePeriodDays\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_PasswordChangePeriodDays\"\r\n name=\"Password.PasswordChangePeriodDays\"\r\n class=\"form-control\"\r\n formControlName=\"passwordChangePeriodDays\"\r\n />\r\n <small\r\n class=\"form-text text-muted\"\r\n >{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</small\r\n >\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"lockout\">\r\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Lockout_AllowedForNewUsers\"\r\n name=\"Lockout.AllowedForNewUsers\"\r\n class=\"form-check-input\"\r\n formControlName=\"allowedForNewUsers\"\r\n /><label class=\"form-check-label\" for=\"Lockout_AllowedForNewUsers\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_LockoutDuration\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_LockoutDuration\"\r\n name=\"Lockout.LockoutDuration\"\r\n class=\"form-control\"\r\n formControlName=\"lockoutDuration\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_MaxFailedAccessAttempts\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_MaxFailedAccessAttempts\"\r\n name=\"Lockout.MaxFailedAccessAttempts\"\r\n class=\"form-control\"\r\n formControlName=\"maxFailedAccessAttempts\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"signIn\">\r\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedEmail\"\r\n name=\"SignIn.RequireConfirmedEmail\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedEmail\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedEmail\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_EnablePhoneNumberConfirmation\"\r\n name=\"SignIn.EnablePhoneNumberConfirmation\"\r\n class=\"form-check-input\"\r\n formControlName=\"enablePhoneNumberConfirmation\"\r\n /><label class=\"form-check-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedPhoneNumber\"\r\n name=\"SignIn.RequireConfirmedPhoneNumber\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedPhoneNumber\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"user\">\r\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsEmailUpdateEnabled\"\r\n name=\"User.IsEmailUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isEmailUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsEmailUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsUserNameUpdateEnabled\"\r\n name=\"User.IsUserNameUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isUserNameUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsUserNameUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-3\" />\r\n <div>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n [loading]=\"loading\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n</form>\r\n" }]
|
|
134
|
-
}]
|
|
162
|
+
args: [{ selector: 'abp-identity-setting', providers: [SubscriptionService], template: "@if (form) {\r\n <form id=\"IdentitySettingsForm\" [formGroup]=\"form\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div formGroupName=\"password\">\r\n <h4>{{ 'AbpIdentity::PasswordSettings' | abpLocalization }}</h4>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredLength\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredLength\"\r\n name=\"Password.RequiredLength\"\r\n class=\"form-control\"\r\n formControlName=\"requiredLength\"\r\n min=\"2\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredLength' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_RequiredUniqueChars\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_RequiredUniqueChars\"\r\n name=\"Password.RequiredUniqueChars\"\r\n class=\"form-control\"\r\n formControlName=\"requiredUniqueChars\"\r\n min=\"0\"\r\n max=\"32\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequiredUniqueChars' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireNonAlphanumeric\"\r\n name=\"Password.RequireNonAlphanumeric\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireNonAlphanumeric\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireNonAlphanumeric\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireNonAlphanumeric'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireLowercase\"\r\n name=\"Password.RequireLowercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireLowercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireLowercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireLowercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireUppercase\"\r\n name=\"Password.RequireUppercase\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireUppercase\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireUppercase\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireUppercase' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_RequireDigit\"\r\n name=\"Password.RequireDigit\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireDigit\"\r\n /><label class=\"form-check-label\" for=\"Password_RequireDigit\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.RequireDigit' | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <hr class=\"my-4\" />\r\n <h4>{{ 'AbpIdentity::PasswordRenewingSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Password_ForceUsersToPeriodicallyChangePassword\"\r\n name=\"Password.ForceUsersToPeriodicallyChangePassword\"\r\n class=\"form-check-input\"\r\n formControlName=\"forceUsersToPeriodicallyChangePassword\"\r\n />\r\n <label class=\"form-check-label\" for=\"Password_ForceUsersToPeriodicallyChangePassword\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</label>\r\n <br />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.ForceUsersToPeriodicallyChangePassword'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Password_PasswordChangePeriodDays\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Password_PasswordChangePeriodDays\"\r\n name=\"Password.PasswordChangePeriodDays\"\r\n class=\"form-control\"\r\n formControlName=\"passwordChangePeriodDays\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Password.PasswordChangePeriodDays'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"lockout\">\r\n <h4>{{ 'AbpIdentity::LockoutSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"Lockout_AllowedForNewUsers\"\r\n name=\"Lockout.AllowedForNewUsers\"\r\n class=\"form-check-input\"\r\n formControlName=\"allowedForNewUsers\"\r\n /><label class=\"form-check-label\" for=\"Lockout_AllowedForNewUsers\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.AllowedForNewUsers' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_LockoutDuration\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_LockoutDuration\"\r\n name=\"Lockout.LockoutDuration\"\r\n class=\"form-control\"\r\n formControlName=\"lockoutDuration\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.LockoutDuration' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"Lockout_MaxFailedAccessAttempts\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</label\r\n ><input\r\n type=\"number\"\r\n id=\"Lockout_MaxFailedAccessAttempts\"\r\n name=\"Lockout.MaxFailedAccessAttempts\"\r\n class=\"form-control\"\r\n formControlName=\"maxFailedAccessAttempts\"\r\n />\r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.Lockout.MaxFailedAccessAttempts'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"signIn\">\r\n <h4>{{ 'AbpIdentity::SignInSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedEmail\"\r\n name=\"SignIn.RequireConfirmedEmail\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedEmail\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedEmail\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedEmail' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_EnablePhoneNumberConfirmation\"\r\n name=\"SignIn.EnablePhoneNumberConfirmation\"\r\n class=\"form-check-input\"\r\n formControlName=\"enablePhoneNumberConfirmation\"\r\n /><label class=\"form-check-label\" for=\"SignIn_EnablePhoneNumberConfirmation\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"SignIn_RequireConfirmedPhoneNumber\"\r\n name=\"SignIn.RequireConfirmedPhoneNumber\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireConfirmedPhoneNumber\"\r\n /><label class=\"form-check-label\" for=\"SignIn_RequireConfirmedPhoneNumber\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber'\r\n | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-4\" />\r\n <div formGroupName=\"user\">\r\n <h4>{{ 'AbpIdentity::UserSettings' | abpLocalization }}</h4>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsEmailUpdateEnabled\"\r\n name=\"User.IsEmailUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isEmailUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsEmailUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsEmailUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"User_IsUserNameUpdateEnabled\"\r\n name=\"User.IsUserNameUpdateEnabled\"\r\n class=\"form-check-input\"\r\n formControlName=\"isUserNameUpdateEnabled\"\r\n /><label class=\"form-check-label\" for=\"User_IsUserNameUpdateEnabled\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</label>\r\n \r\n <small class=\"form-text text-muted\">{{\r\n 'AbpIdentity::Description:Abp.Identity.User.IsUserNameUpdateEnabled' | abpLocalization\r\n }}</small>\r\n </div>\r\n </div>\r\n <hr class=\"my-3\" />\r\n <div>\r\n <abp-button\r\n iconClass=\"fa fa-save\"\r\n [loading]=\"loading\"\r\n buttonType=\"submit\"\r\n [disabled]=\"form?.invalid\"\r\n >\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n}\r\n" }]
|
|
163
|
+
}] });
|
|
135
164
|
|
|
136
165
|
class IdentityExternalLoginSettingsComponent {
|
|
137
|
-
constructor(
|
|
138
|
-
this.service = service;
|
|
139
|
-
this.toaster = toaster;
|
|
140
|
-
this.configState = configState;
|
|
141
|
-
this.fb = fb;
|
|
166
|
+
constructor() {
|
|
142
167
|
this.loading = false;
|
|
168
|
+
this.service = inject(IdentitySettingsService);
|
|
169
|
+
this.toasterService = inject(ToasterService);
|
|
170
|
+
this.configState = inject(ConfigStateService);
|
|
171
|
+
this.fb = inject(UntypedFormBuilder);
|
|
143
172
|
}
|
|
144
173
|
ngOnInit() {
|
|
145
174
|
this.service.getOAuth().subscribe(settings => {
|
|
@@ -156,7 +185,7 @@ class IdentityExternalLoginSettingsComponent {
|
|
|
156
185
|
.updateOAuth(this.form.value)
|
|
157
186
|
.pipe(finalize(() => (this.loading = false)))
|
|
158
187
|
.subscribe(() => {
|
|
159
|
-
this.
|
|
188
|
+
this.toasterService.success('AbpUi::SavedSuccessfully', null);
|
|
160
189
|
this.configState.refreshAppState().subscribe();
|
|
161
190
|
});
|
|
162
191
|
}
|
|
@@ -172,20 +201,20 @@ class IdentityExternalLoginSettingsComponent {
|
|
|
172
201
|
validateEndpoints: [this.settings.validateEndpoints, []],
|
|
173
202
|
});
|
|
174
203
|
}
|
|
175
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
176
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
204
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityExternalLoginSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
205
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: IdentityExternalLoginSettingsComponent, selector: "abp-external-login-settings", ngImport: i0, template: "@if (settings) {\r\n <h4>{{ 'AbpIdentity::OAuthLoginSettings' | abpLocalization }}</h4>\r\n\r\n <form [formGroup]=\"form\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"enable-oauth-login\"\r\n class=\"form-check-input\"\r\n formControlName=\"enableOAuthLogin\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"enable-oauth-login\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.EnableOAuthLogin' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ClientId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"clientId\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ClientSecret' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"clientSecret\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Authority' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"authority\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Scope' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"scope\" />\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"require-https-metadata\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireHttpsMetadata\"\r\n /><label class=\"form-check-label\" for=\"require-https-metadata\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.RequireHttpsMetadata' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"validate-endpoints\"\r\n class=\"form-check-input\"\r\n formControlName=\"validateEndpoints\"\r\n /><label class=\"form-check-label\" for=\"validate-endpoints\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ValidateEndpoints' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"validate-issuer-name\"\r\n class=\"form-check-input\"\r\n formControlName=\"validateIssuerName\"\r\n /><label class=\"form-check-label\" for=\"validate-issuer-name\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ValidateIssuerName' | abpLocalization\r\n }}</label>\r\n </div>\r\n <hr class=\"my-3\" />\r\n\r\n <div>\r\n <abp-button buttonType=\"submit\" iconClass=\"fa fa-save\" [loading]=\"loading\">{{\r\n 'AbpAccount::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n </form>\r\n}\r\n", dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: i2.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: i2.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i3$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
177
206
|
}
|
|
178
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
207
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityExternalLoginSettingsComponent, decorators: [{
|
|
179
208
|
type: Component,
|
|
180
|
-
args: [{ selector: 'abp-external-login-settings', template: "
|
|
181
|
-
}]
|
|
209
|
+
args: [{ selector: 'abp-external-login-settings', template: "@if (settings) {\r\n <h4>{{ 'AbpIdentity::OAuthLoginSettings' | abpLocalization }}</h4>\r\n\r\n <form [formGroup]=\"form\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"enable-oauth-login\"\r\n class=\"form-check-input\"\r\n formControlName=\"enableOAuthLogin\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"enable-oauth-login\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.EnableOAuthLogin' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ClientId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"clientId\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ClientSecret' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"clientSecret\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Authority' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"authority\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.Scope' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" formControlName=\"scope\" />\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"require-https-metadata\"\r\n class=\"form-check-input\"\r\n formControlName=\"requireHttpsMetadata\"\r\n /><label class=\"form-check-label\" for=\"require-https-metadata\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.RequireHttpsMetadata' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"validate-endpoints\"\r\n class=\"form-check-input\"\r\n formControlName=\"validateEndpoints\"\r\n /><label class=\"form-check-label\" for=\"validate-endpoints\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ValidateEndpoints' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"validate-issuer-name\"\r\n class=\"form-check-input\"\r\n formControlName=\"validateIssuerName\"\r\n /><label class=\"form-check-label\" for=\"validate-issuer-name\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.ValidateIssuerName' | abpLocalization\r\n }}</label>\r\n </div>\r\n <hr class=\"my-3\" />\r\n\r\n <div>\r\n <abp-button buttonType=\"submit\" iconClass=\"fa fa-save\" [loading]=\"loading\">{{\r\n 'AbpAccount::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n </form>\r\n}\r\n" }]
|
|
210
|
+
}] });
|
|
182
211
|
|
|
183
212
|
class IdentityLdapSettingsComponent {
|
|
184
|
-
constructor(
|
|
185
|
-
this.service = service;
|
|
186
|
-
this.toaster = toaster;
|
|
187
|
-
this.configState = configState;
|
|
213
|
+
constructor() {
|
|
188
214
|
this.loading = false;
|
|
215
|
+
this.service = inject(IdentitySettingsService);
|
|
216
|
+
this.toasterService = inject(ToasterService);
|
|
217
|
+
this.configState = inject(ConfigStateService);
|
|
189
218
|
}
|
|
190
219
|
ngOnInit() {
|
|
191
220
|
this.service.getLdap().subscribe(settings => (this.settings = settings));
|
|
@@ -196,35 +225,35 @@ class IdentityLdapSettingsComponent {
|
|
|
196
225
|
.updateLdap(settings)
|
|
197
226
|
.pipe(finalize(() => (this.loading = false)))
|
|
198
227
|
.subscribe(() => {
|
|
199
|
-
this.
|
|
228
|
+
this.toasterService.success('AbpUi::SavedSuccessfully', null);
|
|
200
229
|
this.configState.refreshAppState().subscribe();
|
|
201
230
|
});
|
|
202
231
|
}
|
|
203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
232
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityLdapSettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
233
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: IdentityLdapSettingsComponent, selector: "abp-ldap-login-settings", ngImport: i0, template: "@if (settings) {\r\n <h4>{{ 'AbpIdentity::LdapLoginSettings' | abpLocalization }}</h4>\r\n <div id=\"ldap-login-settings\" (keyup.enter)=\"submit(settings)\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"enable-ldap-login\"\r\n class=\"form-check-input\"\r\n [(ngModel)]=\"settings.enableLdapLogin\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"enable-ldap-login\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.EnableLdapLogin' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"ldaps\"\r\n class=\"form-check-input\"\r\n [(ngModel)]=\"settings.ldaps\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"ldaps\">{{\r\n 'AbpIdentity::DisplayName:Abp.Ldap.Ldaps' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.ServerHost' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapServerHost\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.ServerPort' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapServerPort\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.BaseDc' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapBaseDc\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.Domain' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapDomain\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapUserName\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.Password' | abpLocalization\r\n }}</label>\r\n <input\r\n type=\"password\"\r\n class=\"form-control\"\r\n placeholder=\"{{ 'AbpIdentity::LdapPasswordPlaceholder' | abpLocalization }}\"\r\n [(ngModel)]=\"settings.ldapPassword\"\r\n autocomplete=\"new-password\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <hr class=\"my-3\" />\r\n\r\n <div>\r\n <abp-button (click)=\"submit(settings)\" iconClass=\"fa fa-save\" [loading]=\"loading\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n}\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i2.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "component", type: i3$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
205
234
|
}
|
|
206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityLdapSettingsComponent, decorators: [{
|
|
207
236
|
type: Component,
|
|
208
|
-
args: [{ selector: 'abp-ldap-login-settings', template: "
|
|
209
|
-
}]
|
|
237
|
+
args: [{ selector: 'abp-ldap-login-settings', template: "@if (settings) {\r\n <h4>{{ 'AbpIdentity::LdapLoginSettings' | abpLocalization }}</h4>\r\n <div id=\"ldap-login-settings\" (keyup.enter)=\"submit(settings)\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"enable-ldap-login\"\r\n class=\"form-check-input\"\r\n [(ngModel)]=\"settings.enableLdapLogin\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"enable-ldap-login\">{{\r\n 'AbpIdentity::DisplayName:Abp.Identity.EnableLdapLogin' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n id=\"ldaps\"\r\n class=\"form-check-input\"\r\n [(ngModel)]=\"settings.ldaps\"\r\n autofocus\r\n /><label class=\"form-check-label\" for=\"ldaps\">{{\r\n 'AbpIdentity::DisplayName:Abp.Ldap.Ldaps' | abpLocalization\r\n }}</label>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.ServerHost' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapServerHost\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.ServerPort' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapServerPort\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.BaseDc' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapBaseDc\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.Domain' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapDomain\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"settings.ldapUserName\" />\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpLdap::DisplayName:Abp.Ldap.Password' | abpLocalization\r\n }}</label>\r\n <input\r\n type=\"password\"\r\n class=\"form-control\"\r\n placeholder=\"{{ 'AbpIdentity::LdapPasswordPlaceholder' | abpLocalization }}\"\r\n [(ngModel)]=\"settings.ldapPassword\"\r\n autocomplete=\"new-password\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <hr class=\"my-3\" />\r\n\r\n <div>\r\n <abp-button (click)=\"submit(settings)\" iconClass=\"fa fa-save\" [loading]=\"loading\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </div>\r\n}\r\n" }]
|
|
238
|
+
}] });
|
|
210
239
|
|
|
211
240
|
class IdentitySettingsComponent {
|
|
212
|
-
constructor(
|
|
213
|
-
this.configState = configState;
|
|
241
|
+
constructor() {
|
|
214
242
|
this.externalLoginKey = 'Identity.EnableOAuthLogin';
|
|
215
243
|
this.ldapLoginKey = 'Account.EnableLdapLogin';
|
|
244
|
+
this.configState = inject(ConfigStateService);
|
|
216
245
|
this.features$ = this.configState
|
|
217
246
|
.getFeatures$([this.ldapLoginKey, this.externalLoginKey])
|
|
218
247
|
.pipe(map(val => Object.entries(val).reduce((acc, [key, value]) => (value === 'true' ? [...acc, key] : acc), [])));
|
|
219
248
|
}
|
|
220
249
|
submit() { }
|
|
221
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
222
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySettingsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
251
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: IdentitySettingsComponent, selector: "abp-identity-settings", providers: [SubscriptionService], ngImport: i0, template: "<div class=\"abp-md-form\">\r\n @if (features$ | async; as features) {\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::IdentitySettingsGeneral' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-identity-setting />\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::Sessions' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-identity-session-setting />\r\n </ng-template>\r\n </li>\r\n\r\n @for (feature of features; track $index) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{\r\n (feature === externalLoginKey\r\n ? 'AbpIdentity::IdentitySettingsOAuth'\r\n : 'AbpIdentity::IdentitySettingsLdap'\r\n ) | abpLocalization\r\n }}\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (feature === externalLoginKey) {\r\n <abp-external-login-settings />\r\n } @else {\r\n <abp-ldap-login-settings />\r\n }\r\n </ng-template>\r\n </li>\r\n }\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n } @else {\r\n <abp-identity-setting />\r\n }\r\n</div>\r\n", dependencies: [{ kind: "directive", type: i1$1.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "directive", type: i1$1.NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: i1$1.NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: i1$1.NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: i1$1.NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: i1$1.NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "component", type: i1$1.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "component", type: IdentitySessionsSettingComponent, selector: "abp-identity-session-setting" }, { kind: "component", type: IdentitySettingComponent, selector: "abp-identity-setting" }, { kind: "component", type: IdentityExternalLoginSettingsComponent, selector: "abp-external-login-settings" }, { kind: "component", type: IdentityLdapSettingsComponent, selector: "abp-ldap-login-settings" }, { kind: "pipe", type: i6.AsyncPipe, name: "async" }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
223
252
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentitySettingsComponent, decorators: [{
|
|
225
254
|
type: Component,
|
|
226
|
-
args: [{ selector: 'abp-identity-settings', providers: [SubscriptionService], template: "<div class=\"abp-md-form\">\r\n
|
|
227
|
-
}]
|
|
255
|
+
args: [{ selector: 'abp-identity-settings', providers: [SubscriptionService], template: "<div class=\"abp-md-form\">\r\n @if (features$ | async; as features) {\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::IdentitySettingsGeneral' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-identity-setting />\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::Sessions' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <abp-identity-session-setting />\r\n </ng-template>\r\n </li>\r\n\r\n @for (feature of features; track $index) {\r\n <li ngbNavItem>\r\n <a ngbNavLink>\r\n {{\r\n (feature === externalLoginKey\r\n ? 'AbpIdentity::IdentitySettingsOAuth'\r\n : 'AbpIdentity::IdentitySettingsLdap'\r\n ) | abpLocalization\r\n }}\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (feature === externalLoginKey) {\r\n <abp-external-login-settings />\r\n } @else {\r\n <abp-ldap-login-settings />\r\n }\r\n </ng-template>\r\n </li>\r\n }\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n } @else {\r\n <abp-identity-setting />\r\n }\r\n</div>\r\n" }]
|
|
256
|
+
}] });
|
|
228
257
|
|
|
229
258
|
class IdentityLinkLoginService {
|
|
230
259
|
constructor(authService) {
|
|
@@ -240,15 +269,15 @@ class IdentityLinkLoginService {
|
|
|
240
269
|
}
|
|
241
270
|
return from(this.authService.loginUsingGrant(grantType, params));
|
|
242
271
|
}
|
|
243
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
244
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
272
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityLinkLoginService, deps: [{ token: i2.AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
273
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityLinkLoginService, providedIn: 'root' }); }
|
|
245
274
|
}
|
|
246
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
275
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityLinkLoginService, decorators: [{
|
|
247
276
|
type: Injectable,
|
|
248
277
|
args: [{
|
|
249
278
|
providedIn: 'root',
|
|
250
279
|
}]
|
|
251
|
-
}], ctorParameters: () => [{ type:
|
|
280
|
+
}], ctorParameters: () => [{ type: i2.AuthService }] });
|
|
252
281
|
|
|
253
282
|
class LinkLoginHandler {
|
|
254
283
|
constructor(router, route, identityLinkLoginService, toaster) {
|
|
@@ -302,13 +331,13 @@ class LinkLoginHandler {
|
|
|
302
331
|
queryParamsHandling: 'merge',
|
|
303
332
|
}))), tap(() => location.reload()));
|
|
304
333
|
}
|
|
305
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
306
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LinkLoginHandler, deps: [{ token: i1$2.Router }, { token: i1$2.ActivatedRoute }, { token: IdentityLinkLoginService }, { token: i3$1.ToasterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
335
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LinkLoginHandler, providedIn: 'root' }); }
|
|
307
336
|
}
|
|
308
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: LinkLoginHandler, decorators: [{
|
|
309
338
|
type: Injectable,
|
|
310
339
|
args: [{ providedIn: 'root' }]
|
|
311
|
-
}], ctorParameters: () => [{ type: i1$
|
|
340
|
+
}], ctorParameters: () => [{ type: i1$2.Router }, { type: i1$2.ActivatedRoute }, { type: IdentityLinkLoginService }, { type: i3$1.ToasterService }] });
|
|
312
341
|
|
|
313
342
|
class MyLinkUsersModalComponent {
|
|
314
343
|
get isModalOpen() {
|
|
@@ -319,18 +348,6 @@ class MyLinkUsersModalComponent {
|
|
|
319
348
|
this.getAllList();
|
|
320
349
|
this._isModalOpen = value;
|
|
321
350
|
}
|
|
322
|
-
get currentUser() {
|
|
323
|
-
return this.configState.getAll().currentUser;
|
|
324
|
-
}
|
|
325
|
-
get currentTenant() {
|
|
326
|
-
return this.configState.getAll().currentTenant;
|
|
327
|
-
}
|
|
328
|
-
get pageStartIndex() {
|
|
329
|
-
return this.list.page * this.list.maxResultCount;
|
|
330
|
-
}
|
|
331
|
-
get pageEndIndex() {
|
|
332
|
-
return this.pageStartIndex + this.list.maxResultCount;
|
|
333
|
-
}
|
|
334
351
|
constructor(injector) {
|
|
335
352
|
this.injector = injector;
|
|
336
353
|
this._isModalOpen = true;
|
|
@@ -347,6 +364,22 @@ class MyLinkUsersModalComponent {
|
|
|
347
364
|
this.environment = injector.get(EnvironmentService);
|
|
348
365
|
this.linkLoginHandler = injector.get(LinkLoginHandler);
|
|
349
366
|
}
|
|
367
|
+
get currentUser() {
|
|
368
|
+
return this.configState.getAll().currentUser;
|
|
369
|
+
}
|
|
370
|
+
get currentTenant() {
|
|
371
|
+
return this.configState.getAll().currentTenant;
|
|
372
|
+
}
|
|
373
|
+
get pageStartIndex() {
|
|
374
|
+
return this.list.page * this.list.maxResultCount;
|
|
375
|
+
}
|
|
376
|
+
get pageEndIndex() {
|
|
377
|
+
return this.pageStartIndex + this.list.maxResultCount;
|
|
378
|
+
}
|
|
379
|
+
ngOnInit() {
|
|
380
|
+
this.list.maxResultCount = 5;
|
|
381
|
+
this.getAllList();
|
|
382
|
+
}
|
|
350
383
|
navigateToLogin() {
|
|
351
384
|
this.linkUserService.generateLinkToken().subscribe(token => {
|
|
352
385
|
if (this.authService.isInternalAuth) {
|
|
@@ -384,9 +417,6 @@ class MyLinkUsersModalComponent {
|
|
|
384
417
|
getPageData(start, end) {
|
|
385
418
|
return this.getFilteredData().slice(start, end);
|
|
386
419
|
}
|
|
387
|
-
ngOnInit() {
|
|
388
|
-
this.getAllList();
|
|
389
|
-
}
|
|
390
420
|
getAllList() {
|
|
391
421
|
this.linkUserService.getAllList().subscribe(res => {
|
|
392
422
|
this.data = res.items;
|
|
@@ -426,12 +456,12 @@ class MyLinkUsersModalComponent {
|
|
|
426
456
|
})
|
|
427
457
|
.subscribe(() => (this.isModalOpen = false));
|
|
428
458
|
}
|
|
429
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
430
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: MyLinkUsersModalComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
460
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.9", type: MyLinkUsersModalComponent, selector: "abp-my-link-users-modal", providers: [ListService], ngImport: i0, template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpAccount::LinkedAccounts' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <div class=\"text-end mb-3\">\r\n <button\r\n id=\"create-link-user\"\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"createNewLinkUser()\"\r\n >\r\n {{ 'AbpAccount::NewLinkAccount' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpAccount::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"MyLinkUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n <div class=\"mt-2\">\r\n <ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n ngbDropdownToggle\r\n >\r\n <i class=\"fa fa-cog me-1\" aria-hidden=\"true\"></i\r\n >{{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"LoginAsThisAccount(row)\">\r\n {{ 'AbpAccount::LoginAsThisAccount' | abpLocalization }}\r\n </button>\r\n @if (row.directlyLinked) {\r\n <button ngbDropdownItem (click)=\"delete(row)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::UserName' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <a href=\"javascript:void(0)\" class=\"text-body\" (click)=\"LoginAsThisAccount(row)\">\r\n {{ row.targetTenantName ? row.targetTenantName + '\\\\' : ''\r\n }}{{ row.targetUserName }}\r\n </a>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::DirectlyLinked' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <i class=\"fas fa-{{ row.directlyLinked ? 'check' : 'times' }}\" aria-hidden=\"true\"></i>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { kind: "directive", type: i2$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { kind: "directive", type: i2$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i3$1.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i3$1.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "component", type: i3$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i1$1.NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: i1$1.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: i1$1.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: i1$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i1$1.NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
431
461
|
}
|
|
432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: MyLinkUsersModalComponent, decorators: [{
|
|
433
463
|
type: Component,
|
|
434
|
-
args: [{ selector: 'abp-my-link-users-modal', providers: [ListService], template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpAccount::LinkedAccounts' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <div class=\"text-end mb-3\">\r\n <button\r\n id=\"create-link-user\"\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"createNewLinkUser()\"\r\n >\r\n {{ 'AbpAccount::NewLinkAccount' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpAccount::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"MyLinkUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n <div class=\"mt-2\">\r\n <ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n ngbDropdownToggle\r\n >\r\n <i class=\"fa fa-cog me-1\" aria-hidden=\"true\"></i>{{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"LoginAsThisAccount(row)\">\r\n {{ 'AbpAccount::LoginAsThisAccount' | abpLocalization }}\r\n </button>\r\n
|
|
464
|
+
args: [{ selector: 'abp-my-link-users-modal', providers: [ListService], template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpAccount::LinkedAccounts' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <div class=\"text-end mb-3\">\r\n <button\r\n id=\"create-link-user\"\r\n class=\"btn btn-primary\"\r\n type=\"button\"\r\n (click)=\"createNewLinkUser()\"\r\n >\r\n {{ 'AbpAccount::NewLinkAccount' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpAccount::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"MyLinkUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n <div class=\"mt-2\">\r\n <ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"150\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div ngbDropdown container=\"body\" class=\"d-inline-block\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\r\n ngbDropdownToggle\r\n >\r\n <i class=\"fa fa-cog me-1\" aria-hidden=\"true\"></i\r\n >{{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"LoginAsThisAccount(row)\">\r\n {{ 'AbpAccount::LoginAsThisAccount' | abpLocalization }}\r\n </button>\r\n @if (row.directlyLinked) {\r\n <button ngbDropdownItem (click)=\"delete(row)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::UserName' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <a href=\"javascript:void(0)\" class=\"text-body\" (click)=\"LoginAsThisAccount(row)\">\r\n {{ row.targetTenantName ? row.targetTenantName + '\\\\' : ''\r\n }}{{ row.targetUserName }}\r\n </a>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column [name]=\"'AbpAccount::DirectlyLinked' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <i class=\"fas fa-{{ row.directlyLinked ? 'check' : 'times' }}\" aria-hidden=\"true\"></i>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
435
465
|
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
436
466
|
|
|
437
467
|
class AbpAuthorityDelegationService {
|
|
@@ -486,10 +516,10 @@ class AbpAuthorityDelegationService {
|
|
|
486
516
|
return 'warning';
|
|
487
517
|
}
|
|
488
518
|
}
|
|
489
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
490
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.
|
|
519
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AbpAuthorityDelegationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
520
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AbpAuthorityDelegationService, providedIn: 'root' }); }
|
|
491
521
|
}
|
|
492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
522
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AbpAuthorityDelegationService, decorators: [{
|
|
493
523
|
type: Injectable,
|
|
494
524
|
args: [{
|
|
495
525
|
providedIn: 'root',
|
|
@@ -554,10 +584,10 @@ class CreateUserDelegateComponent {
|
|
|
554
584
|
this.save.emit();
|
|
555
585
|
this.visibleChange.emit(false);
|
|
556
586
|
}
|
|
557
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
558
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
587
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: CreateUserDelegateComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
588
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: CreateUserDelegateComponent, isStandalone: true, selector: "abp-create-user-delegate", outputs: { visibleChange: "visibleChange", save: "save" }, providers: [{ provide: NgbDateAdapter, useClass: DateTimeAdapter }], ngImport: i0, template: "<abp-modal [visible]=\"modalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::DelegateNewUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form id=\"DelegateNewUser\" name=\"DelegateNewUser\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\r\n <div class=\"mb-3\">\r\n <label for=\"delegate-new-user-id\">{{ 'AbpIdentity::UserName' | abpLocalization }}</label>\r\n <abp-lookup-typeahead\r\n cid=\"delegate-new-user-id\"\r\n displayNameProp=\"userName\"\r\n lookupNameProp=\"userName\"\r\n formControlName=\"userNameId\"\r\n [getFn]=\"getFn\"\r\n ></abp-lookup-typeahead>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label> {{ 'AbpIdentity::DelegationDateRange' | abpLocalization }} </label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n formControlName=\"times\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n\r\n <div class=\"d-flex justify-content-end align-items-center mb-2 gap-2\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"DelegateNewUser\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </form>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "directive", type: i2.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i3$1.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i3$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i3$1.ModalCloseDirective, selector: "[abpClose]" }, { kind: "ngmodule", type: CommercialUiModule }, { kind: "component", type: i5.LookupTypeaheadComponent, selector: "abp-lookup-typeahead", inputs: ["displayNameProp", "lookupFilterProp", "filter", "editingData"] }, { kind: "component", type: i5.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
559
589
|
}
|
|
560
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: CreateUserDelegateComponent, decorators: [{
|
|
561
591
|
type: Component,
|
|
562
592
|
args: [{ standalone: true, selector: 'abp-create-user-delegate', imports: [CoreModule, ThemeSharedModule, CommercialUiModule], providers: [{ provide: NgbDateAdapter, useClass: DateTimeAdapter }], changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [visible]=\"modalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::DelegateNewUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form id=\"DelegateNewUser\" name=\"DelegateNewUser\" [formGroup]=\"form\" (ngSubmit)=\"submit()\">\r\n <div class=\"mb-3\">\r\n <label for=\"delegate-new-user-id\">{{ 'AbpIdentity::UserName' | abpLocalization }}</label>\r\n <abp-lookup-typeahead\r\n cid=\"delegate-new-user-id\"\r\n displayNameProp=\"userName\"\r\n lookupNameProp=\"userName\"\r\n formControlName=\"userNameId\"\r\n [getFn]=\"getFn\"\r\n ></abp-lookup-typeahead>\r\n </div>\r\n\r\n <div class=\"mb-3\">\r\n <label> {{ 'AbpIdentity::DelegationDateRange' | abpLocalization }} </label>\r\n <abp-date-range-picker\r\n startDateProp=\"startTime\"\r\n endDateProp=\"endTime\"\r\n formControlName=\"times\"\r\n >\r\n </abp-date-range-picker>\r\n </div>\r\n\r\n <div class=\"d-flex justify-content-end align-items-center mb-2 gap-2\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"DelegateNewUser\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n </form>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
563
593
|
}], propDecorators: { visibleChange: [{
|
|
@@ -625,10 +655,10 @@ class ListAuthorityDelegationComponent {
|
|
|
625
655
|
userDelegationVisibleChange(visible = false) {
|
|
626
656
|
this.isNewUserDelegateModalOpen = visible;
|
|
627
657
|
}
|
|
628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
629
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
658
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: ListAuthorityDelegationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
659
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: ListAuthorityDelegationComponent, selector: "abp-list-authority-delegation", providers: [ListService], ngImport: i0, template: "<div class=\"text-end mb-2\">\r\n <button id=\"create-delegate-user\" class=\"btn btn-primary\" type=\"button\" (click)=\"create()\">\r\n {{ 'AbpIdentity::DelegateNewUser' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpUi::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"DelegatedUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n</div>\r\n\r\n<ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"100\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <button class=\"btn btn-danger btn-sm\" (click)=\"delete(row)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::Status' | abpLocalization\" [maxWidth]=\"125\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <span class=\"badge bg-{{ service.statusClass(row) }}\">\r\n {{ 'AbpIdentity::Status' + service.getStatus(row) | abpLocalization }}\r\n </span>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [sortable]=\"true\"\r\n [name]=\"'AbpIdentity::UserName' | abpLocalization\"\r\n prop=\"userName\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::StartTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.startTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::EndTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.endTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n</ngx-datatable>\r\n\r\n<abp-create-user-delegate\r\n *abpVisible=\"isNewUserDelegateModalOpen\"\r\n (visibleChange)=\"userDelegationVisibleChange($event)\"\r\n (save)=\"getAllList()\"\r\n/>\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { kind: "directive", type: i2$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { kind: "directive", type: i2$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i3$1.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "directive", type: i3$1.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i3$1.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "component", type: CreateUserDelegateComponent, selector: "abp-create-user-delegate", outputs: ["visibleChange", "save"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i2.ShortDateTimePipe, name: "shortDateTime" }] }); }
|
|
630
660
|
}
|
|
631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: ListAuthorityDelegationComponent, decorators: [{
|
|
632
662
|
type: Component,
|
|
633
663
|
args: [{ selector: 'abp-list-authority-delegation', providers: [ListService], template: "<div class=\"text-end mb-2\">\r\n <button id=\"create-delegate-user\" class=\"btn btn-primary\" type=\"button\" (click)=\"create()\">\r\n {{ 'AbpIdentity::DelegateNewUser' | abpLocalization }}\r\n </button>\r\n\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpUi::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"DelegatedUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n</div>\r\n\r\n<ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"100\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <button class=\"btn btn-danger btn-sm\" (click)=\"delete(row)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::Status' | abpLocalization\" [maxWidth]=\"125\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <span class=\"badge bg-{{ service.statusClass(row) }}\">\r\n {{ 'AbpIdentity::Status' + service.getStatus(row) | abpLocalization }}\r\n </span>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [sortable]=\"true\"\r\n [name]=\"'AbpIdentity::UserName' | abpLocalization\"\r\n prop=\"userName\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::StartTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.startTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::EndTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.endTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n</ngx-datatable>\r\n\r\n<abp-create-user-delegate\r\n *abpVisible=\"isNewUserDelegateModalOpen\"\r\n (visibleChange)=\"userDelegationVisibleChange($event)\"\r\n (save)=\"getAllList()\"\r\n/>\r\n" }]
|
|
634
664
|
}] });
|
|
@@ -677,10 +707,10 @@ class MyDelegatedUsersComponent {
|
|
|
677
707
|
this.service.modalRef.instance.isModalOpen = false;
|
|
678
708
|
});
|
|
679
709
|
}
|
|
680
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
681
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: MyDelegatedUsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
711
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: MyDelegatedUsersComponent, selector: "abp-my-delegated-users", providers: [ListService], ngImport: i0, template: "<div class=\"text-end mb-3\">\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpUi::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"DelegatedUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n</div>\r\n\r\n<ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"100\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-sm\"\r\n [class.disabled]=\"service.getStatus(row) !== 'Active'\"\r\n (click)=\"login(row)\"\r\n >\r\n <span>{{ 'AbpUi::Login' | abpLocalization }}</span>\r\n </button>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpUi::Status' | abpLocalization\" [maxWidth]=\"125\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <span class=\"badge bg-{{ service.statusClass(row) }}\">\r\n {{ 'AbpIdentity::Status' + service.getStatus(row) | abpLocalization }}\r\n </span>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [sortable]=\"true\"\r\n [name]=\"'AbpIdentity::UserName' | abpLocalization\"\r\n prop=\"userName\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::StartTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.startTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::EndTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.endTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n</ngx-datatable>\r\n", dependencies: [{ kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i2$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction"] }, { kind: "directive", type: i2$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate"] }, { kind: "directive", type: i2$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i3$1.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i3$1.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i2.ShortDateTimePipe, name: "shortDateTime" }] }); }
|
|
682
712
|
}
|
|
683
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: MyDelegatedUsersComponent, decorators: [{
|
|
684
714
|
type: Component,
|
|
685
715
|
args: [{ selector: 'abp-my-delegated-users', providers: [ListService], template: "<div class=\"text-end mb-3\">\r\n <div class=\"mt-2\">\r\n <label class=\"form-label d-inline-block\">\r\n {{ 'AbpUi::Search' | abpLocalization }}\r\n <input\r\n type=\"search\"\r\n class=\"form-control form-control-sm d-inline-block w-auto\"\r\n [(ngModel)]=\"filterText\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n (ngModelChange)=\"filterByText()\"\r\n aria-controls=\"DelegatedUsersTable\"\r\n />\r\n </label>\r\n </div>\r\n</div>\r\n\r\n<ngx-datatable [rows]=\"filteredData\" [count]=\"resultCount\" [list]=\"list\" default>\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [maxWidth]=\"100\"\r\n [sortable]=\"false\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <button\r\n type=\"button\"\r\n class=\"btn btn-primary btn-sm\"\r\n [class.disabled]=\"service.getStatus(row) !== 'Active'\"\r\n (click)=\"login(row)\"\r\n >\r\n <span>{{ 'AbpUi::Login' | abpLocalization }}</span>\r\n </button>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpUi::Status' | abpLocalization\" [maxWidth]=\"125\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <span class=\"badge bg-{{ service.statusClass(row) }}\">\r\n {{ 'AbpIdentity::Status' + service.getStatus(row) | abpLocalization }}\r\n </span>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [sortable]=\"true\"\r\n [name]=\"'AbpIdentity::UserName' | abpLocalization\"\r\n prop=\"userName\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::StartTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.startTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column [name]=\"'AbpIdentity::EndTime' | abpLocalization\">\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n {{ row.endTime | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n</ngx-datatable>\r\n" }]
|
|
686
716
|
}] });
|
|
@@ -702,10 +732,10 @@ class AuthorityDelegationComponent {
|
|
|
702
732
|
this.selected = this.tabs[0];
|
|
703
733
|
this.trackByFn = (_, item) => item.name;
|
|
704
734
|
}
|
|
705
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
706
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.
|
|
735
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
736
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.3.9", type: AuthorityDelegationComponent, selector: "abp-authority-delegation", ngImport: i0, template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\" [options]=\"option\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::AuthorityDelegation' | abpLocalization }}</h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul class=\"nav nav-tabs mb-0\">\r\n <li *abpFor=\"let tab of tabs; trackBy: trackByFn\" class=\"nav-item\">\r\n <a\r\n [id]=\"tab.name + '-tab'\"\r\n role=\"tab\"\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selected.name === tab.name\"\r\n (click)=\"selected = tab\"\r\n >\r\n {{ tab.name | abpLocalization }}\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n <div class=\"tab-content\">\r\n <div class=\"tab-pane active\">\r\n <div class=\"card mb-0\">\r\n <ng-container *ngComponentOutlet=\"selected.component\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: i6.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i2.ForDirective, selector: "[abpFor]", inputs: ["abpForOf", "abpForOrderBy", "abpForOrderDir", "abpForFilterBy", "abpForFilterVal", "abpForTrackBy", "abpForCompareBy", "abpForEmptyRef"] }, { kind: "component", type: i3$1.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "pipe", type: i2.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
707
737
|
}
|
|
708
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
738
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationComponent, decorators: [{
|
|
709
739
|
type: Component,
|
|
710
740
|
args: [{ selector: 'abp-authority-delegation', template: "<abp-modal [(visible)]=\"isModalOpen\" [suppressUnsavedChangesWarning]=\"true\" [options]=\"option\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::AuthorityDelegation' | abpLocalization }}</h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul class=\"nav nav-tabs mb-0\">\r\n <li *abpFor=\"let tab of tabs; trackBy: trackByFn\" class=\"nav-item\">\r\n <a\r\n [id]=\"tab.name + '-tab'\"\r\n role=\"tab\"\r\n class=\"nav-link pointer\"\r\n [class.active]=\"selected.name === tab.name\"\r\n (click)=\"selected = tab\"\r\n >\r\n {{ tab.name | abpLocalization }}\r\n </a>\r\n </li>\r\n </ul>\r\n\r\n <div class=\"tab-content\">\r\n <div class=\"tab-pane active\">\r\n <div class=\"card mb-0\">\r\n <ng-container *ngComponentOutlet=\"selected.component\"></ng-container>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
711
741
|
}] });
|
|
@@ -716,8 +746,8 @@ const declarationsWithExports$1 = [
|
|
|
716
746
|
MyDelegatedUsersComponent,
|
|
717
747
|
];
|
|
718
748
|
class AuthorityDelegationModule {
|
|
719
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
720
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
|
749
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
750
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationModule, declarations: [AuthorityDelegationComponent,
|
|
721
751
|
ListAuthorityDelegationComponent,
|
|
722
752
|
MyDelegatedUsersComponent], imports: [CoreModule,
|
|
723
753
|
ThemeSharedModule,
|
|
@@ -728,7 +758,7 @@ class AuthorityDelegationModule {
|
|
|
728
758
|
CreateUserDelegateComponent], exports: [AuthorityDelegationComponent,
|
|
729
759
|
ListAuthorityDelegationComponent,
|
|
730
760
|
MyDelegatedUsersComponent] }); }
|
|
731
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
|
761
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationModule, imports: [CoreModule,
|
|
732
762
|
ThemeSharedModule,
|
|
733
763
|
NgbDropdownModule,
|
|
734
764
|
NgbNavModule,
|
|
@@ -736,7 +766,7 @@ class AuthorityDelegationModule {
|
|
|
736
766
|
CommercialUiModule,
|
|
737
767
|
CreateUserDelegateComponent] }); }
|
|
738
768
|
}
|
|
739
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
769
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: AuthorityDelegationModule, decorators: [{
|
|
740
770
|
type: NgModule,
|
|
741
771
|
args: [{
|
|
742
772
|
declarations: [...declarationsWithExports$1],
|
|
@@ -763,7 +793,7 @@ function configureRoutes(routes) {
|
|
|
763
793
|
path: '/identity',
|
|
764
794
|
name: "AbpIdentity::Menu:IdentityManagement" /* eIdentityRouteNames.IdentityManagement */,
|
|
765
795
|
parentName: "AbpUiNavigation::Menu:Administration" /* eThemeSharedRouteNames.Administration */,
|
|
766
|
-
order:
|
|
796
|
+
order: 1,
|
|
767
797
|
layout: "application" /* eLayoutType.application */,
|
|
768
798
|
iconClass: 'fa fa-id-card-o',
|
|
769
799
|
requiredPolicy: "AbpIdentity.Roles || AbpIdentity.Users || AbpIdentity.ClaimTypes || AbpIdentity.OrganizationUnits" /* eIdentityPolicyNames.IdentityManagement */,
|
|
@@ -875,8 +905,8 @@ class IdentityConfigModule {
|
|
|
875
905
|
],
|
|
876
906
|
};
|
|
877
907
|
}
|
|
878
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.
|
|
879
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.
|
|
908
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
909
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigModule, declarations: [IdentitySettingsComponent,
|
|
880
910
|
IdentitySettingComponent,
|
|
881
911
|
IdentityExternalLoginSettingsComponent,
|
|
882
912
|
IdentityLdapSettingsComponent,
|
|
@@ -885,19 +915,21 @@ class IdentityConfigModule {
|
|
|
885
915
|
NgbDropdownModule,
|
|
886
916
|
NgbNavModule,
|
|
887
917
|
NgxValidateCoreModule,
|
|
888
|
-
AuthorityDelegationModule
|
|
918
|
+
AuthorityDelegationModule,
|
|
919
|
+
IdentitySessionsSettingComponent], exports: [IdentitySettingsComponent,
|
|
889
920
|
IdentitySettingComponent,
|
|
890
921
|
IdentityExternalLoginSettingsComponent,
|
|
891
922
|
IdentityLdapSettingsComponent,
|
|
892
923
|
MyLinkUsersModalComponent] }); }
|
|
893
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.
|
|
924
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigModule, imports: [CoreModule,
|
|
894
925
|
ThemeSharedModule,
|
|
895
926
|
NgbDropdownModule,
|
|
896
927
|
NgbNavModule,
|
|
897
928
|
NgxValidateCoreModule,
|
|
898
|
-
AuthorityDelegationModule
|
|
929
|
+
AuthorityDelegationModule,
|
|
930
|
+
IdentitySessionsSettingComponent] }); }
|
|
899
931
|
}
|
|
900
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.9", ngImport: i0, type: IdentityConfigModule, decorators: [{
|
|
901
933
|
type: NgModule,
|
|
902
934
|
args: [{
|
|
903
935
|
imports: [
|
|
@@ -907,6 +939,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.1.3", ngImpor
|
|
|
907
939
|
NgbNavModule,
|
|
908
940
|
NgxValidateCoreModule,
|
|
909
941
|
AuthorityDelegationModule,
|
|
942
|
+
IdentitySessionsSettingComponent,
|
|
910
943
|
],
|
|
911
944
|
declarations: [...declarationsWithExports],
|
|
912
945
|
exports: [...declarationsWithExports],
|