@volo/abp.ng.identity 9.2.1 → 9.3.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/authority-delegation/authority-delegation.component.d.ts +1 -1
- package/config/components/authority-delegation/authority-delegation.module.d.ts +10 -10
- package/config/components/authority-delegation/list-authority-delegation.component.d.ts +1 -1
- package/config/components/authority-delegation/my-delegated-users.component.d.ts +2 -2
- package/config/components/identity-setting-tabs/identity-external-login-settings.component.d.ts +3 -3
- package/config/components/identity-setting-tabs/identity-ldap-settings.component.d.ts +3 -3
- package/config/components/identity-setting-tabs/identity-lockout/identity-lockout.component.d.ts +2 -2
- package/config/components/identity-setting-tabs/identity-password-policy/identity-password.policy.component.d.ts +1 -1
- package/config/components/identity-setting-tabs/identity-user-profile/identity-user-profile.component.d.ts +1 -1
- package/config/components/identity-setting-tabs/identity-verification/identity-verification.component.d.ts +1 -1
- package/config/components/identity-settings.component.d.ts +1 -1
- package/config/components/my-link-users-modal.component.d.ts +4 -4
- package/config/identity-config.module.d.ts +15 -15
- package/fesm2022/volo-abp.ng.identity-config.mjs +201 -114
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +904 -603
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/lib/components/claim-modal/claim-modal.component.d.ts +2 -2
- package/lib/components/claims/claims.component.d.ts +3 -3
- package/lib/components/export-excel/export-data-dropdown.component.d.ts +3 -4
- package/lib/components/external-login/external-login.component.d.ts +2 -3
- package/lib/components/external-login/user-dropdown-menu/user-dropdown-menu.component.d.ts +3 -4
- package/lib/components/organization-units/abstract-organization-unit/abstract-organization-unit.component.d.ts +1 -1
- package/lib/components/organization-units/organization-members/organization-members-modal-body.component.d.ts +4 -5
- package/lib/components/organization-units/organization-members/organization-members.component.d.ts +2 -2
- package/lib/components/organization-units/organization-roles/organization-roles-modal-body.component.d.ts +4 -5
- package/lib/components/organization-units/organization-roles/organization-roles.component.d.ts +1 -1
- package/lib/components/organization-units/organization-units.component.d.ts +3 -3
- package/lib/components/organization-units/selected-organization-unit/selected-organization-unit.component.d.ts +1 -2
- package/lib/components/roles/delete-role/role-delete.component.d.ts +4 -4
- package/lib/components/roles/move-all-users/move-all-users.component.d.ts +4 -4
- package/lib/components/roles/roles.component.d.ts +1 -1
- package/lib/components/security-logs/security-logs.component.d.ts +3 -3
- package/lib/components/users/users.component.d.ts +1 -1
- package/lib/identity.module.d.ts +39 -36
- package/lib/identity.routes.d.ts +3 -0
- package/package.json +7 -7
- package/public-api.d.ts +1 -0
|
@@ -1,38 +1,43 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Component,
|
|
3
|
-
import * as i3$3 from '@abp/ng.components/extensible';
|
|
4
|
-
import { FormPropData, generateFormFromProps, FormProp, ExtensibleDateTimePickerComponent, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, ExtensibleModule, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps } from '@abp/ng.components/extensible';
|
|
2
|
+
import { inject, Injector, EventEmitter, Output, Input, Component, Injectable, DestroyRef, input, ChangeDetectionStrategy, ViewChild, signal, computed, model, InjectionToken, output, LOCALE_ID, NgModule } from '@angular/core';
|
|
5
3
|
import * as i1 from '@angular/forms';
|
|
6
|
-
import { FormBuilder, Validators, ReactiveFormsModule,
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import
|
|
10
|
-
import { ConfirmationService,
|
|
11
|
-
import {
|
|
12
|
-
import * as i2$1 from '@abp/ng.core';
|
|
13
|
-
import { mapEnumToOptions, AbpWindowService, InternalStore, CoreModule, LocalizationModule, generatePassword, ListService, AuthService, ConfigStateService, LocalizationService, SubscriptionService, TrackByService, escapeHtmlChars, getShortDateShortTimeFormat, EnvironmentService, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LazyModuleFactory } from '@abp/ng.core';
|
|
14
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
15
|
-
import * as i7 from '@abp/ng.components/tree';
|
|
16
|
-
import { TreeAdapter, TreeModule } from '@abp/ng.components/tree';
|
|
17
|
-
import { map, switchMap, of, combineLatest, take as take$1, filter, finalize as finalize$1, tap, firstValueFrom } from 'rxjs';
|
|
18
|
-
import * as i3$2 from '@volo/abp.commercial.ng.ui';
|
|
19
|
-
import { SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule, DatetimePickerComponent } from '@volo/abp.commercial.ng.ui';
|
|
4
|
+
import { UntypedFormBuilder, FormsModule, FormBuilder, Validators, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
|
|
5
|
+
import { finalize, take, switchMap as switchMap$1, tap as tap$1, map as map$1, filter as filter$1 } from 'rxjs/operators';
|
|
6
|
+
import { AutofocusDirective, LocalizationPipe, mapEnumToOptions, AbpWindowService, LocalizationService, SubscriptionService, InternalStore, ShortDateTimePipe, ListService, AuthService, ConfigStateService, generatePassword, PermissionDirective, ReplaceableTemplateDirective, TrackByService, escapeHtmlChars, getShortDateShortTimeFormat, EnvironmentService, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
|
|
7
|
+
import { FormPropData, generateFormFromProps, FormProp, ExtensibleDateTimePickerComponent, ExtensibleTableComponent, ExtensibleFormComponent, EXTENSIONS_IDENTIFIER, EXTENSIONS_ACTION_DATA, EntityAction, EntityProp, ToolbarAction, ToolbarComponent, ExtensionsService, getObjectExtensionEntitiesFromStore, mapEntitiesToContributors, mergeWithDefaultActions, mergeWithDefaultProps, ExtensibleModule } from '@abp/ng.components/extensible';
|
|
8
|
+
import { ConfirmationService, ModalCloseDirective, ModalComponent, ButtonComponent, ToasterService, Confirmation, NgxDatatableDefaultDirective, NgxDatatableListDirective, getPasswordValidators, DisabledDirective, AbpVisibleDirective, LoadingDirective, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
|
+
import { IdentityUserService, ImportUsersFromFileType, IdentityRoleService, OrganizationUnitService, IdentitySessionService, IdentityClaimTypeService, IdentitySecurityLogService } from '@volo/abp.ng.identity/proxy';
|
|
20
10
|
import * as i1$1 from '@ng-bootstrap/ng-bootstrap';
|
|
21
|
-
import { NgbNavModule, NgbDropdownModule, NgbTooltip, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
22
|
-
import
|
|
11
|
+
import { NgbNavModule, NgbDropdownModule, NgbTooltip, NgbNav, NgbNavItem, NgbNavItemRole, NgbNavLink, NgbNavLinkBase, NgbNavContent, NgbNavOutlet, NgbDropdown, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownButtonItem, NgbDropdownItem, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
12
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
|
+
import * as i2 from '@ngx-validate/core';
|
|
23
14
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
24
|
-
import
|
|
25
|
-
import {
|
|
26
|
-
import
|
|
27
|
-
import {
|
|
28
|
-
import
|
|
29
|
-
import { CommonModule, formatDate } from '@angular/common';
|
|
30
|
-
import * as
|
|
31
|
-
import
|
|
15
|
+
import { TreeAdapter, TreeComponent, TreeModule } from '@abp/ng.components/tree';
|
|
16
|
+
import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
17
|
+
import { PermissionManagementComponent, PermissionManagementModule } from '@abp/ng.permission-management';
|
|
18
|
+
import { AdvancedEntityFiltersComponent, AdvancedEntityFiltersFormComponent, LookupSelectComponent, DateRangePickerComponent, DatetimePickerComponent, SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
19
|
+
import { map, switchMap, take as take$1, filter, of, finalize as finalize$1, tap, combineLatest, firstValueFrom } from 'rxjs';
|
|
20
|
+
import { AsyncPipe, CommonModule, NgClass, formatDate } from '@angular/common';
|
|
21
|
+
import * as i2$1 from '@swimlane/ngx-datatable';
|
|
22
|
+
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
23
|
+
import * as i1$2 from '@angular/router';
|
|
32
24
|
import { ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
33
25
|
import { ImpersonationService } from '@volo/abp.commercial.ng.ui/config';
|
|
34
26
|
|
|
35
27
|
class ExternalLoginComponent {
|
|
28
|
+
constructor() {
|
|
29
|
+
this.injector = inject(Injector);
|
|
30
|
+
this.fb = inject(UntypedFormBuilder);
|
|
31
|
+
this.service = inject(IdentityUserService);
|
|
32
|
+
this.confirmationService = inject(ConfirmationService);
|
|
33
|
+
this.modalBusy = false;
|
|
34
|
+
this.dataSave = new EventEmitter();
|
|
35
|
+
this.options = {
|
|
36
|
+
hideCancelBtn: true,
|
|
37
|
+
yesText: 'Ok',
|
|
38
|
+
};
|
|
39
|
+
this.visibleChange = new EventEmitter();
|
|
40
|
+
}
|
|
36
41
|
get visible() {
|
|
37
42
|
return this._visible;
|
|
38
43
|
}
|
|
@@ -42,19 +47,6 @@ class ExternalLoginComponent {
|
|
|
42
47
|
this._visible = value;
|
|
43
48
|
this.visibleChange.emit(value);
|
|
44
49
|
}
|
|
45
|
-
constructor(injector, fb, service, confirmationService) {
|
|
46
|
-
this.injector = injector;
|
|
47
|
-
this.fb = fb;
|
|
48
|
-
this.service = service;
|
|
49
|
-
this.confirmationService = confirmationService;
|
|
50
|
-
this.modalBusy = false;
|
|
51
|
-
this.dataSave = new EventEmitter();
|
|
52
|
-
this.options = {
|
|
53
|
-
hideCancelBtn: true,
|
|
54
|
-
yesText: 'Ok',
|
|
55
|
-
};
|
|
56
|
-
this.visibleChange = new EventEmitter();
|
|
57
|
-
}
|
|
58
50
|
ngOnChanges() {
|
|
59
51
|
if (this._visible) {
|
|
60
52
|
this.buildForm();
|
|
@@ -91,13 +83,20 @@ class ExternalLoginComponent {
|
|
|
91
83
|
this.visible = false;
|
|
92
84
|
});
|
|
93
85
|
}
|
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExternalLoginComponent, deps: [
|
|
95
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ExternalLoginComponent, isStandalone:
|
|
86
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExternalLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
87
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ExternalLoginComponent, isStandalone: true, selector: "abp-external-login", inputs: { visible: "visible" }, outputs: { dataSave: "dataSave", visibleChange: "visibleChange" }, usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::ExternalUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-6\">\r\n <label class=\"form-label\" for=\"providerTypeSelect\">\r\n <span>{{ 'AbpIdentity::Provider' | abpLocalization }}</span> </label\r\n ><select\r\n autofocus\r\n id=\"providerTypeSelect\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"selectedExternalLoginProvider\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n @for (type of externalLoginProviders; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::UserNameOrEmailAddress' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"newUserName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"userNameOrEmailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::Password' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"password\"\r\n type=\"password\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"password\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\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\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.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.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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
96
88
|
}
|
|
97
89
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExternalLoginComponent, decorators: [{
|
|
98
90
|
type: Component,
|
|
99
|
-
args: [{
|
|
100
|
-
|
|
91
|
+
args: [{ selector: 'abp-external-login', imports: [
|
|
92
|
+
FormsModule,
|
|
93
|
+
AutofocusDirective,
|
|
94
|
+
ModalCloseDirective,
|
|
95
|
+
LocalizationPipe,
|
|
96
|
+
ModalComponent,
|
|
97
|
+
ButtonComponent,
|
|
98
|
+
], template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">{{ 'AbpIdentity::ExternalUser' | abpLocalization }}</h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-6\">\r\n <label class=\"form-label\" for=\"providerTypeSelect\">\r\n <span>{{ 'AbpIdentity::Provider' | abpLocalization }}</span> </label\r\n ><select\r\n autofocus\r\n id=\"providerTypeSelect\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"selectedExternalLoginProvider\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n >\r\n @for (type of externalLoginProviders; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col col-sm-12\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::UserNameOrEmailAddress' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"newUserName\"\r\n type=\"text\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"userNameOrEmailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newUserName\">\r\n <span>{{ 'AbpIdentity::Password' | abpLocalization }}</span>\r\n </label>\r\n <input\r\n required\r\n id=\"password\"\r\n type=\"password\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"password\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\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\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
99
|
+
}], propDecorators: { dataSave: [{
|
|
101
100
|
type: Output
|
|
102
101
|
}], visible: [{
|
|
103
102
|
type: Input
|
|
@@ -182,213 +181,208 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
182
181
|
type: Injectable
|
|
183
182
|
}] });
|
|
184
183
|
|
|
185
|
-
|
|
184
|
+
function regexValidator(regexPattern, regexDescription, injector) {
|
|
185
|
+
const localizationService = injector.get(LocalizationService);
|
|
186
|
+
return (control) => {
|
|
187
|
+
const regexObject = new RegExp(regexPattern);
|
|
188
|
+
const isPassed = regexObject.test(control.value);
|
|
189
|
+
if (!regexPattern) {
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
if (!isPassed && !regexDescription) {
|
|
193
|
+
return { invalid: true };
|
|
194
|
+
}
|
|
195
|
+
if (!isPassed) {
|
|
196
|
+
return {
|
|
197
|
+
customMessage: {
|
|
198
|
+
customMessage: localizationService.instant({
|
|
199
|
+
key: regexDescription,
|
|
200
|
+
defaultValue: regexDescription
|
|
201
|
+
})
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
return null;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
class ClaimModalComponent {
|
|
186
210
|
constructor() {
|
|
187
|
-
this
|
|
188
|
-
this.
|
|
211
|
+
this.#destroyRef = inject(DestroyRef);
|
|
212
|
+
this.roleService = inject(IdentityRoleService);
|
|
213
|
+
this.userService = inject(IdentityUserService);
|
|
214
|
+
this.subscription = inject(SubscriptionService);
|
|
215
|
+
this.injector = inject(Injector);
|
|
216
|
+
this.fb = inject(FormBuilder);
|
|
217
|
+
this.confirmationService = inject(ConfirmationService);
|
|
218
|
+
this.toasterService = inject(ToasterService);
|
|
219
|
+
this.subject = input();
|
|
220
|
+
this.visibleChange = new EventEmitter();
|
|
221
|
+
this.modalBusy = false;
|
|
222
|
+
this.inputType = 'String';
|
|
189
223
|
}
|
|
190
|
-
|
|
191
|
-
|
|
224
|
+
#destroyRef;
|
|
225
|
+
get visible() {
|
|
226
|
+
return this._visible;
|
|
192
227
|
}
|
|
193
|
-
|
|
194
|
-
|
|
228
|
+
set visible(value) {
|
|
229
|
+
if (this._visible === value) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
this._visible = value;
|
|
233
|
+
this.visibleChange.emit(value);
|
|
195
234
|
}
|
|
196
|
-
|
|
197
|
-
|
|
235
|
+
ngOnChanges({ visible, subject }) {
|
|
236
|
+
if (subject && subject.currentValue) {
|
|
237
|
+
this.service = subject.currentValue.type === 'roles' ? this.roleService : this.userService;
|
|
238
|
+
}
|
|
239
|
+
if (!visible) {
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
if (visible.currentValue) {
|
|
243
|
+
this.initModal();
|
|
244
|
+
return;
|
|
245
|
+
}
|
|
246
|
+
this.subjectClaims = null;
|
|
198
247
|
}
|
|
199
|
-
|
|
200
|
-
this.
|
|
248
|
+
initModal() {
|
|
249
|
+
this.buildForm();
|
|
250
|
+
this.getClaimTypeNames();
|
|
251
|
+
this.getSubjectClaims(this.subject());
|
|
201
252
|
}
|
|
202
|
-
|
|
203
|
-
this.
|
|
253
|
+
get claimType() {
|
|
254
|
+
return this.form.controls.claimType;
|
|
204
255
|
}
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
}
|
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsStateService, decorators: [{
|
|
209
|
-
type: Injectable,
|
|
210
|
-
args: [{
|
|
211
|
-
providedIn: 'root',
|
|
212
|
-
}]
|
|
213
|
-
}] });
|
|
214
|
-
|
|
215
|
-
class DeleteOrganizationUnitService {
|
|
216
|
-
constructor() {
|
|
217
|
-
this.serviceProxy = inject(OrganizationUnitService);
|
|
218
|
-
this.#organizationUnits = signal([]);
|
|
219
|
-
this.visible = signal(false);
|
|
220
|
-
this.loading = signal(false);
|
|
221
|
-
this.selected = signal(undefined);
|
|
222
|
-
this.name = computed(() => this.selected()?.displayName || '');
|
|
223
|
-
this.otherOrganizationUnits = computed(() => {
|
|
224
|
-
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
225
|
-
return [];
|
|
226
|
-
}
|
|
227
|
-
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
228
|
-
});
|
|
229
|
-
this.count = computed(() => {
|
|
230
|
-
if (!this.selected()) {
|
|
231
|
-
return 0;
|
|
232
|
-
}
|
|
233
|
-
return this.selected().userCount || 0;
|
|
234
|
-
});
|
|
235
|
-
this.hasMemberOrRole = computed(() => this.count() > 0);
|
|
236
|
-
this.countText = computed(() => this.count().toString());
|
|
237
|
-
this.hasOtherUnits = computed(() => !!this.otherOrganizationUnits().length);
|
|
256
|
+
get claimValue() {
|
|
257
|
+
return this.form.controls.claimValue;
|
|
238
258
|
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
this.selected.set(v);
|
|
242
|
-
this.visible.set(true);
|
|
243
|
-
this.loadOrganizationUnits();
|
|
259
|
+
findClaim(claimName) {
|
|
260
|
+
return this.claimTypes?.find(claim => claimName === claim.name);
|
|
244
261
|
}
|
|
245
|
-
|
|
246
|
-
this.
|
|
247
|
-
|
|
262
|
+
onKeyDown(event) {
|
|
263
|
+
if (this.inputType === 'Number' && (event.key === 'e' || event.key === 'E')) {
|
|
264
|
+
event.preventDefault();
|
|
265
|
+
}
|
|
248
266
|
}
|
|
249
|
-
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
.
|
|
253
|
-
.
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
});
|
|
267
|
+
resetClaimValidations() {
|
|
268
|
+
this.claimValue.clearValidators();
|
|
269
|
+
this.claimValue.addValidators([
|
|
270
|
+
Validators.required,
|
|
271
|
+
regexValidator(this.regex, this.regexDescription, this.injector),
|
|
272
|
+
]);
|
|
273
|
+
this.claimValue.updateValueAndValidity();
|
|
257
274
|
}
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
const
|
|
261
|
-
const
|
|
262
|
-
|
|
275
|
+
claimTypeChange() {
|
|
276
|
+
let subjectInputType;
|
|
277
|
+
const claim = this.findClaim(this.claimType.value);
|
|
278
|
+
const inputType = claim.valueTypeAsString;
|
|
279
|
+
this.regex = claim.regex;
|
|
280
|
+
this.regexDescription = claim.regexDescription;
|
|
281
|
+
switch (inputType) {
|
|
282
|
+
case 'Int':
|
|
283
|
+
this.inputType = 'Number';
|
|
284
|
+
subjectInputType = 'Number';
|
|
285
|
+
break;
|
|
286
|
+
case 'Boolean':
|
|
287
|
+
this.inputType = 'Boolean';
|
|
288
|
+
subjectInputType = 'Boolean';
|
|
289
|
+
break;
|
|
290
|
+
case 'String':
|
|
291
|
+
this.inputType = 'String';
|
|
292
|
+
subjectInputType = 'String';
|
|
293
|
+
break;
|
|
294
|
+
case 'DateTime':
|
|
295
|
+
this.inputType = 'datetime-local';
|
|
296
|
+
subjectInputType = 'datetime-local';
|
|
297
|
+
break;
|
|
298
|
+
}
|
|
299
|
+
this.resetClaimValidations();
|
|
300
|
+
return subjectInputType;
|
|
263
301
|
}
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitService, decorators: [{
|
|
268
|
-
type: Injectable
|
|
269
|
-
}] });
|
|
270
|
-
|
|
271
|
-
class MoveAllUsersOfUnitModalService {
|
|
272
|
-
constructor() {
|
|
273
|
-
this.organizationUnitService = inject(OrganizationUnitService);
|
|
274
|
-
this.confirmationService = inject(ConfirmationService);
|
|
275
|
-
this.#organizationUnits = signal([]);
|
|
276
|
-
this.visible = signal(false);
|
|
277
|
-
this.loading = signal(false);
|
|
278
|
-
this.selected = signal(undefined);
|
|
279
|
-
this.name = computed(() => this.selected()?.displayName || '');
|
|
280
|
-
this.otherOrganizationUnits = computed(() => {
|
|
281
|
-
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
282
|
-
return [];
|
|
283
|
-
}
|
|
284
|
-
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
302
|
+
getClaimTypeNames() {
|
|
303
|
+
this.subscription.addOne(this.service.getAllClaimTypes(), claimTypes => {
|
|
304
|
+
this.claimTypes = claimTypes;
|
|
285
305
|
});
|
|
286
306
|
}
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
})
|
|
294
|
-
.pipe(take(1))
|
|
295
|
-
.subscribe();
|
|
307
|
+
getSubjectClaims(subject) {
|
|
308
|
+
this.subscription.addOne(this.service.getClaims(subject.id).pipe(take(1)), claims => {
|
|
309
|
+
this.subjectClaims = claims.map(item => ({
|
|
310
|
+
...item,
|
|
311
|
+
inputType: this.findClaim(item.claimType)?.valueTypeAsString,
|
|
312
|
+
}));
|
|
313
|
+
});
|
|
296
314
|
}
|
|
297
|
-
|
|
298
|
-
if (
|
|
299
|
-
this.showWarning();
|
|
315
|
+
addClaim(ngForm) {
|
|
316
|
+
if (this.form.invalid) {
|
|
300
317
|
return;
|
|
301
318
|
}
|
|
302
|
-
this.
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
this.
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
this.organizationUnitService
|
|
313
|
-
.getListAll()
|
|
314
|
-
.pipe(finalize(() => this.loading.set(false)))
|
|
315
|
-
.subscribe(x => {
|
|
316
|
-
this.#organizationUnits.set(x.items);
|
|
317
|
-
});
|
|
318
|
-
}
|
|
319
|
-
moveTheUnit(newParentId) {
|
|
320
|
-
this.loading.set(true);
|
|
321
|
-
const id = this.selected().id;
|
|
322
|
-
return this.organizationUnitService
|
|
323
|
-
.moveAllUsers(id, newParentId)
|
|
324
|
-
.pipe(finalize(() => this.loading.set(false)));
|
|
325
|
-
}
|
|
326
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
327
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService }); }
|
|
328
|
-
}
|
|
329
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, decorators: [{
|
|
330
|
-
type: Injectable
|
|
331
|
-
}] });
|
|
332
|
-
|
|
333
|
-
class UserViewDetailService {
|
|
334
|
-
constructor() {
|
|
335
|
-
this.identityService = inject(IdentityUserService);
|
|
336
|
-
}
|
|
337
|
-
getUserById(id) {
|
|
338
|
-
if (!id) {
|
|
339
|
-
return;
|
|
319
|
+
const key = this.subject().type === 'roles' ? 'roleId' : 'userId';
|
|
320
|
+
const claim = {
|
|
321
|
+
[key]: this.subject().id,
|
|
322
|
+
...this.form.value,
|
|
323
|
+
inputType: this.inputType,
|
|
324
|
+
};
|
|
325
|
+
const { claimType, claimValue } = this.form.value || {};
|
|
326
|
+
const existingClaimIndex = this.subjectClaims.findIndex(item => item.claimType === claimType && item.claimValue === claimValue);
|
|
327
|
+
if (existingClaimIndex === -1) {
|
|
328
|
+
this.subjectClaims.push(claim);
|
|
340
329
|
}
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
expandedKeys: availableNodes.items.map(item => item.id),
|
|
351
|
-
userNodes: userNodes.map(unit => unit.id),
|
|
352
|
-
};
|
|
353
|
-
this.makeNodesReadOnly(organizationTree.availableNodes);
|
|
354
|
-
return organizationTree;
|
|
355
|
-
}));
|
|
356
|
-
}
|
|
357
|
-
makeNodesReadOnly(nodes) {
|
|
358
|
-
for (const node of nodes) {
|
|
359
|
-
node.disableCheckbox = true;
|
|
360
|
-
if (!node.isLeaf) {
|
|
361
|
-
this.makeNodesReadOnly(node.children);
|
|
362
|
-
}
|
|
330
|
+
else {
|
|
331
|
+
//Add error message
|
|
332
|
+
this.confirmationService
|
|
333
|
+
.error('AbpIdentity::ClaimAlreadyExist', 'AbpUi::Error', {
|
|
334
|
+
hideYesBtn: true,
|
|
335
|
+
cancelText: 'AbpUi::Ok',
|
|
336
|
+
})
|
|
337
|
+
.pipe(takeUntilDestroyed(this.#destroyRef))
|
|
338
|
+
.subscribe();
|
|
363
339
|
}
|
|
340
|
+
ngForm.resetForm();
|
|
341
|
+
setTimeout(() => {
|
|
342
|
+
this.form.reset();
|
|
343
|
+
}, 0);
|
|
364
344
|
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
type: Injectable
|
|
370
|
-
}] });
|
|
371
|
-
|
|
372
|
-
class UserViewDetailsComponent {
|
|
373
|
-
constructor() {
|
|
374
|
-
this.service = inject(UserViewDetailService);
|
|
375
|
-
this.isModalVisibleChange = new EventEmitter();
|
|
376
|
-
this.isModalVisible = true;
|
|
345
|
+
removeClaim(index) {
|
|
346
|
+
if (!this.subjectClaims[index])
|
|
347
|
+
return;
|
|
348
|
+
this.subjectClaims = this.subjectClaims.filter((_, i) => i !== index);
|
|
377
349
|
}
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
this.
|
|
350
|
+
save() {
|
|
351
|
+
if (this.modalBusy)
|
|
352
|
+
return;
|
|
353
|
+
this.modalBusy = true;
|
|
354
|
+
this.subscription.addOne(this.service.updateClaims(this.subject().id, this.subjectClaims).pipe(take(1), finalize(() => (this.modalBusy = false))), () => {
|
|
355
|
+
this.visible = false;
|
|
356
|
+
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
357
|
+
});
|
|
382
358
|
}
|
|
383
|
-
|
|
384
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserViewDetailsComponent, isStandalone: true, selector: "abp-user-view-detail", inputs: { user: "user" }, outputs: { isModalVisibleChange: "isModalVisibleChange" }, providers: [UserViewDetailService], ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::ViewDetails' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"viewdetails-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td>{{ 'AbpIdentity::DisplayName:UserId' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.id }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class=\"col-5\">{{ 'AbpIdentity::UserName' | abpLocalization }}</td>\r\n <td class=\"col-7\">\r\n <span class=\"fw-bold\">{{\r\n user.userName || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Name' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.name || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Surname' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.surname || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Email' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.email || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Roles' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (user.roleNames.length === 0) {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n } @else {\r\n @for (role of user.roleNames; track role; let last = $last) {\r\n {{ role }}{{ last ? '' : ', ' }}\r\n }\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PhoneNumber' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.phoneNumber || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:IsActive' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isActive ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n\r\n <li id=\"viewdetails-user-organization-units\" ngbNavItem>\r\n @if (organization$ | async; as organization) {\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n <span> ({{ organization.userNodes.length }}) </span>\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (organization.userNodes.length) {\r\n <abp-tree\r\n [checkable]=\"true\"\r\n [checkStrictly]=\"true\"\r\n [nodes]=\"organization.availableNodes\"\r\n [(checkedKeys)]=\"organization.userNodes\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n }\r\n </li>\r\n\r\n <li id=\"viewdetails-details\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::General' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td class=\"col-6\">{{ 'AbpIdentity::CreatedBy' | abpLocalization }}</td>\r\n <td class=\"col-6\">\r\n <span class=\"fw-bold\">\r\n @if (createdBy$ | async; as creator) {\r\n {{ creator.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::CreationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.creationTime | shortDateTime }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModifiedBy' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (modifiedBy$ | async; as modifier) {\r\n {{ modifier.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModificationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastModificationTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PasswordUpdateTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastPasswordChangeTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::LockoutEndTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnd | shortDateTime) || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::FailedAccessCount' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.accessFailedCount }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:LockoutEnabled' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnabled ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::IsExternal' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isExternal ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n {{ 'AbpIdentity::DisplayName:ShouldChangePasswordOnNextLogin' | abpLocalization }}\r\n </td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n {{\r\n (user.shouldChangePasswordOnNextLogin ? 'AbpUi::Yes' : 'AbpUi::No')\r\n | abpLocalization\r\n }}</span\r\n >\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary col-12\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: NgbNavModule }, { 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: "ngmodule", type: TreeModule }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "ngmodule", type: CoreModule }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i2$1.ShortDateTimePipe, name: "shortDateTime" }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
359
|
+
buildForm() {
|
|
360
|
+
this.form = this.fb.group({
|
|
361
|
+
claimType: ['', [Validators.required]],
|
|
362
|
+
claimValue: [
|
|
363
|
+
'',
|
|
364
|
+
[Validators.required, regexValidator(this.regex, this.regexDescription, this.injector)],
|
|
365
|
+
],
|
|
366
|
+
});
|
|
367
|
+
}
|
|
368
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ClaimModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
369
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ClaimModalComponent, isStandalone: true, selector: "abp-claim-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::Claims' | abpLocalization }}\r\n @if (subject().title) {\r\n - {{ subject().title }}\r\n }\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n @for (type of claimTypes; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">\r\n {{ 'AbpIdentity::ClaimValue' | abpLocalization }}\r\n </label>\r\n\r\n @if (inputType === 'Boolean') {\r\n <select\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n (keydown)=\"onKeyDown($event)\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n @if (subjectClaims && subjectClaims.length) {\r\n <div class=\"willBeHidden mt-3\">\r\n @for (claim of subjectClaims; track $index; let i = $index) {\r\n <div class=\"input-group mb-3\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n @if (subjectClaims[i].inputType === 'Boolean') {\r\n <select autofocus class=\"form-control\" [(ngModel)]=\"subjectClaims[i].claimValue\">\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n }\r\n\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\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\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.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.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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
385
370
|
}
|
|
386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type:
|
|
371
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ClaimModalComponent, decorators: [{
|
|
387
372
|
type: Component,
|
|
388
|
-
args: [{ selector: 'abp-
|
|
389
|
-
|
|
373
|
+
args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
374
|
+
FormsModule,
|
|
375
|
+
ReactiveFormsModule,
|
|
376
|
+
NgxValidateCoreModule,
|
|
377
|
+
AutofocusDirective,
|
|
378
|
+
ModalCloseDirective,
|
|
379
|
+
LocalizationPipe,
|
|
380
|
+
ModalComponent,
|
|
381
|
+
ButtonComponent,
|
|
382
|
+
], template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::Claims' | abpLocalization }}\r\n @if (subject().title) {\r\n - {{ subject().title }}\r\n }\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n @for (type of claimTypes; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">\r\n {{ 'AbpIdentity::ClaimValue' | abpLocalization }}\r\n </label>\r\n\r\n @if (inputType === 'Boolean') {\r\n <select\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n (keydown)=\"onKeyDown($event)\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n @if (subjectClaims && subjectClaims.length) {\r\n <div class=\"willBeHidden mt-3\">\r\n @for (claim of subjectClaims; track $index; let i = $index) {\r\n <div class=\"input-group mb-3\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n @if (subjectClaims[i].inputType === 'Boolean') {\r\n <select autofocus class=\"form-control\" [(ngModel)]=\"subjectClaims[i].claimValue\">\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n }\r\n\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\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\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
383
|
+
}], propDecorators: { visible: [{
|
|
390
384
|
type: Input
|
|
391
|
-
}],
|
|
385
|
+
}], visibleChange: [{
|
|
392
386
|
type: Output
|
|
393
387
|
}] } });
|
|
394
388
|
|
|
@@ -485,11 +479,11 @@ class UploadExcelFileComponent {
|
|
|
485
479
|
.subscribe();
|
|
486
480
|
}
|
|
487
481
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UploadExcelFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
488
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UploadExcelFileComponent, isStandalone: true, selector: "abp-excel-upload-file", inputs: { fileType: "fileType" }, outputs: { isModalVisibleChange: "isModalVisibleChange", isListChange: "isListChange" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Upload' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"d-grid\">\r\n <label for=\"importUserFile\" class=\"mb-3 px-1 shadow-none btn\">\r\n <i class=\"fas fa-upload me-2\"></i>\r\n @if (fileName) {\r\n <span>\r\n {{ fileName }}\r\n </span>\r\n } @else {\r\n <span>\r\n {{ 'AbpIdentity::ChooseFile' | abpLocalization }}\r\n </span>\r\n }\r\n </label>\r\n <input\r\n #fileInput\r\n (change)=\"changeFile($event)\"\r\n id=\"importUserFile\"\r\n [accept]=\"acceptFileType\"\r\n type=\"file\"\r\n class=\"d-none\"\r\n />\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"downloadSample()\">\r\n {{ 'AbpIdentity::DownloadTemplateFile' | abpLocalization }}\r\n </button>\r\n <abp-button [disabled]=\"loading\" buttonType=\"submit\" (click)=\"onSubmit()\">{{\r\n 'AbpIdentity::Upload' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "
|
|
482
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UploadExcelFileComponent, isStandalone: true, selector: "abp-excel-upload-file", inputs: { fileType: "fileType" }, outputs: { isModalVisibleChange: "isModalVisibleChange", isListChange: "isListChange" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true }], ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Upload' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"d-grid\">\r\n <label for=\"importUserFile\" class=\"mb-3 px-1 shadow-none btn\">\r\n <i class=\"fas fa-upload me-2\"></i>\r\n @if (fileName) {\r\n <span>\r\n {{ fileName }}\r\n </span>\r\n } @else {\r\n <span>\r\n {{ 'AbpIdentity::ChooseFile' | abpLocalization }}\r\n </span>\r\n }\r\n </label>\r\n <input\r\n #fileInput\r\n (change)=\"changeFile($event)\"\r\n id=\"importUserFile\"\r\n [accept]=\"acceptFileType\"\r\n type=\"file\"\r\n class=\"d-none\"\r\n />\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"downloadSample()\">\r\n {{ 'AbpIdentity::DownloadTemplateFile' | abpLocalization }}\r\n </button>\r\n <abp-button [disabled]=\"loading\" buttonType=\"submit\" (click)=\"onSubmit()\">{{\r\n 'AbpIdentity::Upload' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
489
483
|
}
|
|
490
484
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UploadExcelFileComponent, decorators: [{
|
|
491
485
|
type: Component,
|
|
492
|
-
args: [{ selector: 'abp-excel-upload-file', imports: [
|
|
486
|
+
args: [{ selector: 'abp-excel-upload-file', imports: [ModalCloseDirective, LocalizationPipe, ModalComponent, ButtonComponent], template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Upload' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"d-grid\">\r\n <label for=\"importUserFile\" class=\"mb-3 px-1 shadow-none btn\">\r\n <i class=\"fas fa-upload me-2\"></i>\r\n @if (fileName) {\r\n <span>\r\n {{ fileName }}\r\n </span>\r\n } @else {\r\n <span>\r\n {{ 'AbpIdentity::ChooseFile' | abpLocalization }}\r\n </span>\r\n }\r\n </label>\r\n <input\r\n #fileInput\r\n (change)=\"changeFile($event)\"\r\n id=\"importUserFile\"\r\n [accept]=\"acceptFileType\"\r\n type=\"file\"\r\n class=\"d-none\"\r\n />\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"downloadSample()\">\r\n {{ 'AbpIdentity::DownloadTemplateFile' | abpLocalization }}\r\n </button>\r\n <abp-button [disabled]=\"loading\" buttonType=\"submit\" (click)=\"onSubmit()\">{{\r\n 'AbpIdentity::Upload' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
493
487
|
}], propDecorators: { fileType: [{
|
|
494
488
|
type: Input
|
|
495
489
|
}], isModalVisibleChange: [{
|
|
@@ -501,6 +495,224 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
501
495
|
args: ['fileInput', { static: false }]
|
|
502
496
|
}] } });
|
|
503
497
|
|
|
498
|
+
class OrganizationUnitsStateService {
|
|
499
|
+
constructor() {
|
|
500
|
+
this.store = new InternalStore({});
|
|
501
|
+
this.state$ = this.store.sliceState(state => state);
|
|
502
|
+
}
|
|
503
|
+
getSelectedNode$() {
|
|
504
|
+
return this.store.sliceState(state => state.selectedUnit);
|
|
505
|
+
}
|
|
506
|
+
getSelectedNode() {
|
|
507
|
+
return this.store.state.selectedUnit;
|
|
508
|
+
}
|
|
509
|
+
setSelectedUnit(selectedUnit) {
|
|
510
|
+
this.store.patch({ selectedUnit });
|
|
511
|
+
}
|
|
512
|
+
refreshSelectedNode() {
|
|
513
|
+
this.setSelectedUnit({ ...this.getSelectedNode() });
|
|
514
|
+
}
|
|
515
|
+
removeSelectedNode() {
|
|
516
|
+
this.setSelectedUnit(undefined);
|
|
517
|
+
}
|
|
518
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
519
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsStateService, providedIn: 'root' }); }
|
|
520
|
+
}
|
|
521
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsStateService, decorators: [{
|
|
522
|
+
type: Injectable,
|
|
523
|
+
args: [{
|
|
524
|
+
providedIn: 'root',
|
|
525
|
+
}]
|
|
526
|
+
}] });
|
|
527
|
+
|
|
528
|
+
class DeleteOrganizationUnitService {
|
|
529
|
+
constructor() {
|
|
530
|
+
this.serviceProxy = inject(OrganizationUnitService);
|
|
531
|
+
this.#organizationUnits = signal([]);
|
|
532
|
+
this.visible = signal(false);
|
|
533
|
+
this.loading = signal(false);
|
|
534
|
+
this.selected = signal(undefined);
|
|
535
|
+
this.name = computed(() => this.selected()?.displayName || '');
|
|
536
|
+
this.otherOrganizationUnits = computed(() => {
|
|
537
|
+
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
538
|
+
return [];
|
|
539
|
+
}
|
|
540
|
+
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
541
|
+
});
|
|
542
|
+
this.count = computed(() => {
|
|
543
|
+
if (!this.selected()) {
|
|
544
|
+
return 0;
|
|
545
|
+
}
|
|
546
|
+
return this.selected().userCount || 0;
|
|
547
|
+
});
|
|
548
|
+
this.hasMemberOrRole = computed(() => this.count() > 0);
|
|
549
|
+
this.countText = computed(() => this.count().toString());
|
|
550
|
+
this.hasOtherUnits = computed(() => !!this.otherOrganizationUnits().length);
|
|
551
|
+
}
|
|
552
|
+
#organizationUnits;
|
|
553
|
+
openDeleteModal(v) {
|
|
554
|
+
this.selected.set(v);
|
|
555
|
+
this.visible.set(true);
|
|
556
|
+
this.loadOrganizationUnits();
|
|
557
|
+
}
|
|
558
|
+
closeDeleteModal() {
|
|
559
|
+
this.visible.set(false);
|
|
560
|
+
this.selected.set(undefined);
|
|
561
|
+
}
|
|
562
|
+
loadOrganizationUnits() {
|
|
563
|
+
this.loading.set(true);
|
|
564
|
+
this.serviceProxy
|
|
565
|
+
.getListAll()
|
|
566
|
+
.pipe(finalize(() => this.loading.set(false)))
|
|
567
|
+
.subscribe(x => {
|
|
568
|
+
this.#organizationUnits.set(x.items);
|
|
569
|
+
});
|
|
570
|
+
}
|
|
571
|
+
deleteTheUnit(newParentId) {
|
|
572
|
+
const id = this.selected().id;
|
|
573
|
+
const move$ = newParentId ? this.serviceProxy.moveAllUsers(id, newParentId) : of(void 0);
|
|
574
|
+
const delete$ = this.serviceProxy.delete(id);
|
|
575
|
+
return move$.pipe(switchMap$1(() => delete$));
|
|
576
|
+
}
|
|
577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
578
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitService }); }
|
|
579
|
+
}
|
|
580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitService, decorators: [{
|
|
581
|
+
type: Injectable
|
|
582
|
+
}] });
|
|
583
|
+
|
|
584
|
+
class MoveAllUsersOfUnitModalService {
|
|
585
|
+
constructor() {
|
|
586
|
+
this.organizationUnitService = inject(OrganizationUnitService);
|
|
587
|
+
this.confirmationService = inject(ConfirmationService);
|
|
588
|
+
this.#organizationUnits = signal([]);
|
|
589
|
+
this.visible = signal(false);
|
|
590
|
+
this.loading = signal(false);
|
|
591
|
+
this.selected = signal(undefined);
|
|
592
|
+
this.name = computed(() => this.selected()?.displayName || '');
|
|
593
|
+
this.otherOrganizationUnits = computed(() => {
|
|
594
|
+
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
595
|
+
return [];
|
|
596
|
+
}
|
|
597
|
+
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
598
|
+
});
|
|
599
|
+
}
|
|
600
|
+
#organizationUnits;
|
|
601
|
+
showWarning() {
|
|
602
|
+
this.confirmationService
|
|
603
|
+
.warn('AbpIdentity::ThereIsNoUsersCurrentlyInThisRole', 'AbpUi::Warning', {
|
|
604
|
+
hideCancelBtn: true,
|
|
605
|
+
yesText: 'AbpUi::Ok',
|
|
606
|
+
})
|
|
607
|
+
.pipe(take(1))
|
|
608
|
+
.subscribe();
|
|
609
|
+
}
|
|
610
|
+
openMoveModal(v) {
|
|
611
|
+
if (v.userCount === 0) {
|
|
612
|
+
this.showWarning();
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
this.selected.set(v);
|
|
616
|
+
this.visible.set(true);
|
|
617
|
+
this.loadOrganizationUnits();
|
|
618
|
+
}
|
|
619
|
+
closeMoveModal() {
|
|
620
|
+
this.visible.set(false);
|
|
621
|
+
this.selected.set(undefined);
|
|
622
|
+
}
|
|
623
|
+
loadOrganizationUnits() {
|
|
624
|
+
this.loading.set(true);
|
|
625
|
+
this.organizationUnitService
|
|
626
|
+
.getListAll()
|
|
627
|
+
.pipe(finalize(() => this.loading.set(false)))
|
|
628
|
+
.subscribe(x => {
|
|
629
|
+
this.#organizationUnits.set(x.items);
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
moveTheUnit(newParentId) {
|
|
633
|
+
this.loading.set(true);
|
|
634
|
+
const id = this.selected().id;
|
|
635
|
+
return this.organizationUnitService
|
|
636
|
+
.moveAllUsers(id, newParentId)
|
|
637
|
+
.pipe(finalize(() => this.loading.set(false)));
|
|
638
|
+
}
|
|
639
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
640
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService }); }
|
|
641
|
+
}
|
|
642
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, decorators: [{
|
|
643
|
+
type: Injectable
|
|
644
|
+
}] });
|
|
645
|
+
|
|
646
|
+
class UserViewDetailService {
|
|
647
|
+
constructor() {
|
|
648
|
+
this.identityService = inject(IdentityUserService);
|
|
649
|
+
}
|
|
650
|
+
getUserById(id) {
|
|
651
|
+
if (!id) {
|
|
652
|
+
return;
|
|
653
|
+
}
|
|
654
|
+
return this.identityService.findById(id);
|
|
655
|
+
}
|
|
656
|
+
getOrganizationUnits(id) {
|
|
657
|
+
const userUnits$ = this.identityService.getOrganizationUnits(id);
|
|
658
|
+
const availableUnits$ = this.identityService.getAvailableOrganizationUnits();
|
|
659
|
+
return combineLatest([userUnits$, availableUnits$]).pipe(map(([userNodes, availableNodes]) => {
|
|
660
|
+
const treeAdapter = new TreeAdapter(availableNodes.items);
|
|
661
|
+
const organizationTree = {
|
|
662
|
+
availableNodes: treeAdapter.getTree(),
|
|
663
|
+
expandedKeys: availableNodes.items.map(item => item.id),
|
|
664
|
+
userNodes: userNodes.map(unit => unit.id),
|
|
665
|
+
};
|
|
666
|
+
this.makeNodesReadOnly(organizationTree.availableNodes);
|
|
667
|
+
return organizationTree;
|
|
668
|
+
}));
|
|
669
|
+
}
|
|
670
|
+
makeNodesReadOnly(nodes) {
|
|
671
|
+
for (const node of nodes) {
|
|
672
|
+
node.disableCheckbox = true;
|
|
673
|
+
if (!node.isLeaf) {
|
|
674
|
+
this.makeNodesReadOnly(node.children);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserViewDetailService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
679
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserViewDetailService }); }
|
|
680
|
+
}
|
|
681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserViewDetailService, decorators: [{
|
|
682
|
+
type: Injectable
|
|
683
|
+
}] });
|
|
684
|
+
|
|
685
|
+
class UserViewDetailsComponent {
|
|
686
|
+
constructor() {
|
|
687
|
+
this.service = inject(UserViewDetailService);
|
|
688
|
+
this.isModalVisibleChange = new EventEmitter();
|
|
689
|
+
this.isModalVisible = true;
|
|
690
|
+
}
|
|
691
|
+
ngOnInit() {
|
|
692
|
+
this.modifiedBy$ = this.service.getUserById(this.user.lastModifierId);
|
|
693
|
+
this.createdBy$ = this.service.getUserById(this.user.creatorId);
|
|
694
|
+
this.organization$ = this.service.getOrganizationUnits(this.user.id);
|
|
695
|
+
}
|
|
696
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserViewDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
697
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserViewDetailsComponent, isStandalone: true, selector: "abp-user-view-detail", inputs: { user: "user" }, outputs: { isModalVisibleChange: "isModalVisibleChange" }, providers: [UserViewDetailService], ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::ViewDetails' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"viewdetails-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td>{{ 'AbpIdentity::DisplayName:UserId' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.id }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class=\"col-5\">{{ 'AbpIdentity::UserName' | abpLocalization }}</td>\r\n <td class=\"col-7\">\r\n <span class=\"fw-bold\">{{\r\n user.userName || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Name' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.name || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Surname' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.surname || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Email' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.email || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Roles' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (user.roleNames.length === 0) {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n } @else {\r\n @for (role of user.roleNames; track role; let last = $last) {\r\n {{ role }}{{ last ? '' : ', ' }}\r\n }\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PhoneNumber' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.phoneNumber || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:IsActive' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isActive ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n\r\n <li id=\"viewdetails-user-organization-units\" ngbNavItem>\r\n @if (organization$ | async; as organization) {\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n <span> ({{ organization.userNodes.length }}) </span>\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (organization.userNodes.length) {\r\n <abp-tree\r\n [checkable]=\"true\"\r\n [checkStrictly]=\"true\"\r\n [nodes]=\"organization.availableNodes\"\r\n [(checkedKeys)]=\"organization.userNodes\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n }\r\n </li>\r\n\r\n <li id=\"viewdetails-details\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::General' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td class=\"col-6\">{{ 'AbpIdentity::CreatedBy' | abpLocalization }}</td>\r\n <td class=\"col-6\">\r\n <span class=\"fw-bold\">\r\n @if (createdBy$ | async; as creator) {\r\n {{ creator.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::CreationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.creationTime | shortDateTime }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModifiedBy' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (modifiedBy$ | async; as modifier) {\r\n {{ modifier.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModificationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastModificationTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PasswordUpdateTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastPasswordChangeTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::LockoutEndTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnd | shortDateTime) || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::FailedAccessCount' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.accessFailedCount }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:LockoutEnabled' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnabled ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::IsExternal' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isExternal ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n {{ 'AbpIdentity::DisplayName:ShouldChangePasswordOnNextLogin' | abpLocalization }}\r\n </td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n {{\r\n (user.shouldChangePasswordOnNextLogin ? 'AbpUi::Yes' : 'AbpUi::No')\r\n | abpLocalization\r\n }}</span\r\n >\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary col-12\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: NgbNavModule }, { 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: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
698
|
+
}
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserViewDetailsComponent, decorators: [{
|
|
700
|
+
type: Component,
|
|
701
|
+
args: [{ selector: 'abp-user-view-detail', imports: [
|
|
702
|
+
NgbNavModule,
|
|
703
|
+
ModalCloseDirective,
|
|
704
|
+
LocalizationPipe,
|
|
705
|
+
ShortDateTimePipe,
|
|
706
|
+
AsyncPipe,
|
|
707
|
+
ModalComponent,
|
|
708
|
+
TreeComponent,
|
|
709
|
+
], providers: [UserViewDetailService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"isModalVisibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::ViewDetails' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"viewdetails-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td>{{ 'AbpIdentity::DisplayName:UserId' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.id }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class=\"col-5\">{{ 'AbpIdentity::UserName' | abpLocalization }}</td>\r\n <td class=\"col-7\">\r\n <span class=\"fw-bold\">{{\r\n user.userName || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Name' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.name || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Surname' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.surname || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Email' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.email || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::Roles' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (user.roleNames.length === 0) {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n } @else {\r\n @for (role of user.roleNames; track role; let last = $last) {\r\n {{ role }}{{ last ? '' : ', ' }}\r\n }\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PhoneNumber' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n user.phoneNumber || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:IsActive' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isActive ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n\r\n <li id=\"viewdetails-user-organization-units\" ngbNavItem>\r\n @if (organization$ | async; as organization) {\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n <span> ({{ organization.userNodes.length }}) </span>\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (organization.userNodes.length) {\r\n <abp-tree\r\n [checkable]=\"true\"\r\n [checkStrictly]=\"true\"\r\n [nodes]=\"organization.availableNodes\"\r\n [(checkedKeys)]=\"organization.userNodes\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n ></abp-tree>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n }\r\n </li>\r\n\r\n <li id=\"viewdetails-details\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::General' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <table class=\"table table-striped align-middle\">\r\n <tbody>\r\n <tr class=\"border-top\">\r\n <td class=\"col-6\">{{ 'AbpIdentity::CreatedBy' | abpLocalization }}</td>\r\n <td class=\"col-6\">\r\n <span class=\"fw-bold\">\r\n @if (createdBy$ | async; as creator) {\r\n {{ creator.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::CreationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.creationTime | shortDateTime }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModifiedBy' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n @if (modifiedBy$ | async; as modifier) {\r\n {{ modifier.userName || ('AbpIdentity::Dash' | abpLocalization) }}\r\n } @else {\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n }\r\n </span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::ModificationTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastModificationTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::PasswordUpdateTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lastPasswordChangeTime | shortDateTime) ||\r\n ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::LockoutEndTime' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnd | shortDateTime) || ('AbpIdentity::Dash' | abpLocalization)\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::FailedAccessCount' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{ user.accessFailedCount }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::DisplayName:LockoutEnabled' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.lockoutEnabled ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>{{ 'AbpIdentity::IsExternal' | abpLocalization }}</td>\r\n <td>\r\n <span class=\"fw-bold\">{{\r\n (user.isExternal ? 'AbpUi::Yes' : 'AbpUi::No') | abpLocalization\r\n }}</span>\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n {{ 'AbpIdentity::DisplayName:ShouldChangePasswordOnNextLogin' | abpLocalization }}\r\n </td>\r\n <td>\r\n <span class=\"fw-bold\">\r\n {{\r\n (user.shouldChangePasswordOnNextLogin ? 'AbpUi::Yes' : 'AbpUi::No')\r\n | abpLocalization\r\n }}</span\r\n >\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary col-12\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
710
|
+
}], propDecorators: { user: [{
|
|
711
|
+
type: Input
|
|
712
|
+
}], isModalVisibleChange: [{
|
|
713
|
+
type: Output
|
|
714
|
+
}] } });
|
|
715
|
+
|
|
504
716
|
class UserLockService {
|
|
505
717
|
constructor() {
|
|
506
718
|
this.fb = inject(FormBuilder);
|
|
@@ -550,17 +762,19 @@ class UserLockModalComponent {
|
|
|
550
762
|
});
|
|
551
763
|
}
|
|
552
764
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserLockModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
553
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UserLockModalComponent, isStandalone: true, selector: "abp-user-lock-modal", inputs: { selected: "selected" }, outputs: { visibleChange: "visibleChange" }, providers: [UserLockService], ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange.emit($event)\" [busy]=\"busy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"lockForm\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <abp-extensible-date-time-picker [prop]=\"dateTimePickerProps\"/>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n formName=\"lockForm\"\r\n buttonType=\"submit\"\r\n >{{ 'AbpUi::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type:
|
|
765
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UserLockModalComponent, isStandalone: true, selector: "abp-user-lock-modal", inputs: { selected: "selected" }, outputs: { visibleChange: "visibleChange" }, providers: [UserLockService], ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange.emit($event)\" [busy]=\"busy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"lockForm\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <abp-extensible-date-time-picker [prop]=\"dateTimePickerProps\"/>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n formName=\"lockForm\"\r\n buttonType=\"submit\"\r\n >{{ 'AbpUi::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: ExtensibleDateTimePickerComponent, selector: "abp-extensible-date-time-picker", inputs: ["prop", "meridian"], exportAs: ["abpExtensibleDateTimePicker"] }] }); }
|
|
554
766
|
}
|
|
555
767
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserLockModalComponent, decorators: [{
|
|
556
768
|
type: Component,
|
|
557
769
|
args: [{ selector: 'abp-user-lock-modal', imports: [
|
|
558
770
|
CommonModule,
|
|
559
|
-
CoreModule,
|
|
560
|
-
ThemeSharedModule,
|
|
561
|
-
ExtensibleDateTimePickerComponent,
|
|
562
|
-
LocalizationModule,
|
|
563
771
|
ReactiveFormsModule,
|
|
772
|
+
NgxValidateCoreModule,
|
|
773
|
+
ModalCloseDirective,
|
|
774
|
+
LocalizationPipe,
|
|
775
|
+
ModalComponent,
|
|
776
|
+
ButtonComponent,
|
|
777
|
+
ExtensibleDateTimePickerComponent,
|
|
564
778
|
], providers: [UserLockService], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"visibleChange.emit($event)\" [busy]=\"busy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Lock' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"lockForm\" (ngSubmit)=\"submit()\" validateOnSubmit>\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::DisplayName:LockoutEnd' | abpLocalization\r\n }}</label>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <abp-extensible-date-time-picker [prop]=\"dateTimePickerProps\"/>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n iconClass=\"fa fa-check\"\r\n formName=\"lockForm\"\r\n buttonType=\"submit\"\r\n >{{ 'AbpUi::Save' | abpLocalization }}</abp-button\r\n >\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
565
779
|
}], propDecorators: { selected: [{
|
|
566
780
|
type: Input,
|
|
@@ -569,53 +783,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
569
783
|
type: Output
|
|
570
784
|
}] } });
|
|
571
785
|
|
|
572
|
-
class SetUserPasswordComponent {
|
|
573
|
-
constructor() {
|
|
574
|
-
this.fb = inject(FormBuilder);
|
|
575
|
-
this.injector = inject(Injector);
|
|
576
|
-
this.service = inject(IdentityUserService);
|
|
577
|
-
this.toasterService = inject(ToasterService);
|
|
578
|
-
this.visibleChange = new EventEmitter();
|
|
579
|
-
this.isModalVisible = true;
|
|
580
|
-
}
|
|
581
|
-
ngOnInit() {
|
|
582
|
-
this.form = this.fb.group({
|
|
583
|
-
newPassword: [
|
|
584
|
-
'',
|
|
585
|
-
{
|
|
586
|
-
validators: [Validators.required, ...getPasswordValidators(this.injector)],
|
|
587
|
-
},
|
|
588
|
-
],
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
generatePassword() {
|
|
592
|
-
this.form.markAsDirty();
|
|
593
|
-
const generatedPassword = generatePassword(this.injector);
|
|
594
|
-
this.form.controls.newPassword.setValue(generatedPassword);
|
|
595
|
-
}
|
|
596
|
-
setPassword() {
|
|
597
|
-
if (this.form.invalid) {
|
|
598
|
-
return;
|
|
599
|
-
}
|
|
600
|
-
this.service.updatePassword(this.selected.id, this.form.value).subscribe(() => {
|
|
601
|
-
this.visibleChange.emit(false);
|
|
602
|
-
this.selected = {};
|
|
603
|
-
this.form.reset();
|
|
604
|
-
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
605
|
-
});
|
|
606
|
-
}
|
|
607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SetUserPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
608
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SetUserPasswordComponent, isStandalone: true, selector: "abp-set-user-password", inputs: { selected: "selected" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <div class=\"form-control p-0\">\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <div class=\"position-absolute top-0 end-0\">\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn text-muted\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary rounded-0 rounded-end\"\r\n ngbTooltip=\"{{ 'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization }}\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fas fa-random\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button class=\"m-0\" iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: ThemeSharedModule }, { kind: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "ngmodule", type: LocalizationModule }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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.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"] }] }); }
|
|
609
|
-
}
|
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SetUserPasswordComponent, decorators: [{
|
|
611
|
-
type: Component,
|
|
612
|
-
args: [{ selector: 'abp-set-user-password', imports: [ThemeSharedModule, LocalizationModule, ReactiveFormsModule], template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <div class=\"form-control p-0\">\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <div class=\"position-absolute top-0 end-0\">\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn text-muted\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary rounded-0 rounded-end\"\r\n ngbTooltip=\"{{ 'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization }}\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fas fa-random\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button class=\"m-0\" iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
613
|
-
}], propDecorators: { selected: [{
|
|
614
|
-
type: Input
|
|
615
|
-
}], visibleChange: [{
|
|
616
|
-
type: Output
|
|
617
|
-
}] } });
|
|
618
|
-
|
|
619
786
|
class UserSessionDetailComponent {
|
|
620
787
|
constructor() {
|
|
621
788
|
this.service = inject(IdentitySessionService);
|
|
@@ -628,11 +795,11 @@ class UserSessionDetailComponent {
|
|
|
628
795
|
this.service.get(this.sessionId()).subscribe(this.sessionInfo.set);
|
|
629
796
|
}
|
|
630
797
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
631
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserSessionDetailComponent, isStandalone: true, selector: "abp-user-session-detail", inputs: { isModalVisible: { classPropertyName: "isModalVisible", publicName: "isModalVisible", isSignal: true, isRequired: false, transformFunction: null }, sessionId: { classPropertyName: "sessionId", publicName: "sessionId", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { isModalVisible: "isModalVisibleChange" }, ngImport: i0, template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Detail' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:Device' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().device }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:DeviceInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().deviceInfo }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:UserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().userName }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:ClientId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().clientId }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:IpAddresses' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n <ul class=\"list-group list-group-flush\">\r\n <li class=\"list-group-item\">\r\n @for (ipAddress of sessionInfo().ipAddresses; track $index) {\r\n {{ ipAddress }}\r\n }\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:SignedIn' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().signedIn | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:LastAccessed' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().lastAccessed | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "
|
|
798
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserSessionDetailComponent, isStandalone: true, selector: "abp-user-session-detail", inputs: { isModalVisible: { classPropertyName: "isModalVisible", publicName: "isModalVisible", isSignal: true, isRequired: false, transformFunction: null }, sessionId: { classPropertyName: "sessionId", publicName: "sessionId", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { isModalVisible: "isModalVisibleChange" }, ngImport: i0, template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Detail' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:Device' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().device }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:DeviceInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().deviceInfo }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:UserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().userName }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:ClientId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().clientId }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:IpAddresses' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n <ul class=\"list-group list-group-flush\">\r\n <li class=\"list-group-item\">\r\n @for (ipAddress of sessionInfo().ipAddresses; track $index) {\r\n {{ ipAddress }}\r\n }\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:SignedIn' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().signedIn | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:LastAccessed' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().lastAccessed | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }] }); }
|
|
632
799
|
}
|
|
633
800
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionDetailComponent, decorators: [{
|
|
634
801
|
type: Component,
|
|
635
|
-
args: [{ selector: 'abp-user-session-detail', imports: [
|
|
802
|
+
args: [{ selector: 'abp-user-session-detail', imports: [ModalCloseDirective, LocalizationPipe, ShortDateTimePipe, ModalComponent], template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::Detail' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:Device' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().device }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:DeviceInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().deviceInfo }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:UserInfo' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().userName }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:ClientId' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().clientId }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:IpAddresses' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n <ul class=\"list-group list-group-flush\">\r\n <li class=\"list-group-item\">\r\n @for (ipAddress of sessionInfo().ipAddresses; track $index) {\r\n {{ ipAddress }}\r\n }\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:SignedIn' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().signedIn | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n <div class=\"row\">\r\n <div class=\"col-form-label col-lg-3\">\r\n <strong>{{ 'AbpIdentity::Session:LastAccessed' | abpLocalization }}</strong>\r\n </div>\r\n <div class=\"col-form-label col-lg-9\">\r\n {{ sessionInfo().lastAccessed | shortDateTime }}\r\n </div>\r\n </div>\r\n <hr class=\"my-0\" />\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
636
803
|
}] });
|
|
637
804
|
|
|
638
805
|
class UserSessionsComponent {
|
|
@@ -658,236 +825,136 @@ class UserSessionsComponent {
|
|
|
658
825
|
.subscribe(this.data.set);
|
|
659
826
|
}
|
|
660
827
|
ngOnInit() {
|
|
661
|
-
this.hookToQuery();
|
|
662
|
-
}
|
|
663
|
-
showDetail(row) {
|
|
664
|
-
this.visibleSessionDetailModal.set(true);
|
|
665
|
-
this.sessionId.set(row.id);
|
|
666
|
-
}
|
|
667
|
-
revokeSession(row) {
|
|
668
|
-
this.confirmationService
|
|
669
|
-
.warn('AbpIdentity::SessionLogoutConfirmationMessage', 'AbpUi::AreYouSure')
|
|
670
|
-
.pipe(filter(status => status === Confirmation.Status.confirm), switchMap(() => this.service.revoke(row.id).pipe(tap(() => {
|
|
671
|
-
if (row.isCurrent) {
|
|
672
|
-
return this.authService
|
|
673
|
-
.logout({ noRedirectToLogoutUrl: true })
|
|
674
|
-
.pipe(switchMap(() => this.configStateService.refreshAppState()))
|
|
675
|
-
.subscribe();
|
|
676
|
-
}
|
|
677
|
-
this.hookToQuery();
|
|
678
|
-
}))))
|
|
679
|
-
.subscribe();
|
|
680
|
-
}
|
|
681
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
682
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserSessionsComponent, isStandalone: true, selector: "abp-user-sessions", inputs: { isModalVisible: { classPropertyName: "isModalVisible", publicName: "isModalVisible", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { isModalVisible: "isModalVisibleChange" }, providers: [ListService], ngImport: i0, template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::Sessions' | abpLocalization }}\r\n @if (selected().userName) {\r\n - {{ selected().userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ngx-datatable [rows]=\"data().items\" [count]=\"data().totalCount\" [list]=\"list\" default>\r\n <ngx-datatable-column [name]=\"'AbpUi::Actions' | abpLocalization\" [sortable]=\"false\">\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 ngbDropdownToggle\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\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)=\"showDetail(row)\">\r\n {{ 'AbpIdentity::Session:Detail' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"revokeSession(row)\">\r\n {{ 'AbpIdentity::Session:Logout' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:Device' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"device\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\" let-row=\"row\">\r\n {{ value }}\r\n @if (row.isCurrent) {\r\n <i\r\n class=\"fas fa-dot-circle\"\r\n [ngbTooltip]=\"'AbpIdentity::Session:Current' | abpLocalization\"\r\n container=\"body\"\r\n placement=\"end\"\r\n ></i>\r\n }\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:DeviceInfo' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"deviceInfo\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:SignedIn' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"signedIn\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:LastAccessed' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"lastAccessed\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<!-- TODO re-configure the defer here after all migration is done -->\r\n@if (visibleSessionDetailModal()) {\r\n <abp-user-session-detail\r\n [sessionId]=\"sessionId()\"\r\n [(isModalVisible)]=\"visibleSessionDetailModal\"\r\n />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: NgbDropdownModule }, { 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: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "ngmodule", type: CoreModule }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: i2$1.ShortDateTimePipe, name: "shortDateTime" }, { kind: "ngmodule", type: ThemeSharedModule }, { kind: "component", type: i3$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: i3$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: i3$1.DataTableColumnCellDirective, selector: "[ngx-datatable-cell-template]" }, { kind: "directive", type: i4.NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: i4.NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: UserSessionDetailComponent, selector: "abp-user-session-detail", inputs: ["isModalVisible", "sessionId"], outputs: ["isModalVisibleChange"] }] }); }
|
|
683
|
-
}
|
|
684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionsComponent, decorators: [{
|
|
685
|
-
type: Component,
|
|
686
|
-
args: [{ selector: 'abp-user-sessions', imports: [
|
|
687
|
-
NgbDropdownModule,
|
|
688
|
-
NgbTooltip,
|
|
689
|
-
CoreModule,
|
|
690
|
-
ThemeSharedModule,
|
|
691
|
-
UserSessionDetailComponent,
|
|
692
|
-
], providers: [ListService], template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::Sessions' | abpLocalization }}\r\n @if (selected().userName) {\r\n - {{ selected().userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ngx-datatable [rows]=\"data().items\" [count]=\"data().totalCount\" [list]=\"list\" default>\r\n <ngx-datatable-column [name]=\"'AbpUi::Actions' | abpLocalization\" [sortable]=\"false\">\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 ngbDropdownToggle\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\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)=\"showDetail(row)\">\r\n {{ 'AbpIdentity::Session:Detail' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"revokeSession(row)\">\r\n {{ 'AbpIdentity::Session:Logout' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:Device' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"device\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\" let-row=\"row\">\r\n {{ value }}\r\n @if (row.isCurrent) {\r\n <i\r\n class=\"fas fa-dot-circle\"\r\n [ngbTooltip]=\"'AbpIdentity::Session:Current' | abpLocalization\"\r\n container=\"body\"\r\n placement=\"end\"\r\n ></i>\r\n }\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:DeviceInfo' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"deviceInfo\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:SignedIn' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"signedIn\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:LastAccessed' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"lastAccessed\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<!-- TODO re-configure the defer here after all migration is done -->\r\n@if (visibleSessionDetailModal()) {\r\n <abp-user-session-detail\r\n [sessionId]=\"sessionId()\"\r\n [(isModalVisible)]=\"visibleSessionDetailModal\"\r\n />\r\n}\r\n" }]
|
|
693
|
-
}] });
|
|
694
|
-
|
|
695
|
-
function regexValidator(regexPattern, regexDescription, injector) {
|
|
696
|
-
const localizationService = injector.get(LocalizationService);
|
|
697
|
-
return (control) => {
|
|
698
|
-
const regexObject = new RegExp(regexPattern);
|
|
699
|
-
const isPassed = regexObject.test(control.value);
|
|
700
|
-
if (!regexPattern) {
|
|
701
|
-
return null;
|
|
702
|
-
}
|
|
703
|
-
if (!isPassed && !regexDescription) {
|
|
704
|
-
return { invalid: true };
|
|
705
|
-
}
|
|
706
|
-
if (!isPassed) {
|
|
707
|
-
return {
|
|
708
|
-
customMessage: {
|
|
709
|
-
customMessage: localizationService.instant({
|
|
710
|
-
key: regexDescription,
|
|
711
|
-
defaultValue: regexDescription
|
|
712
|
-
})
|
|
713
|
-
},
|
|
714
|
-
};
|
|
715
|
-
}
|
|
716
|
-
return null;
|
|
717
|
-
};
|
|
718
|
-
}
|
|
719
|
-
|
|
720
|
-
class ClaimModalComponent {
|
|
721
|
-
constructor() {
|
|
722
|
-
this.#destroyRef = inject(DestroyRef);
|
|
723
|
-
this.roleService = inject(IdentityRoleService);
|
|
724
|
-
this.userService = inject(IdentityUserService);
|
|
725
|
-
this.subscription = inject(SubscriptionService);
|
|
726
|
-
this.injector = inject(Injector);
|
|
727
|
-
this.fb = inject(FormBuilder);
|
|
728
|
-
this.confirmationService = inject(ConfirmationService);
|
|
729
|
-
this.toasterService = inject(ToasterService);
|
|
730
|
-
this.subject = input();
|
|
731
|
-
this.visibleChange = new EventEmitter();
|
|
732
|
-
this.modalBusy = false;
|
|
733
|
-
this.inputType = 'String';
|
|
734
|
-
}
|
|
735
|
-
#destroyRef;
|
|
736
|
-
get visible() {
|
|
737
|
-
return this._visible;
|
|
738
|
-
}
|
|
739
|
-
set visible(value) {
|
|
740
|
-
if (this._visible === value) {
|
|
741
|
-
return;
|
|
742
|
-
}
|
|
743
|
-
this._visible = value;
|
|
744
|
-
this.visibleChange.emit(value);
|
|
745
|
-
}
|
|
746
|
-
ngOnChanges({ visible, subject }) {
|
|
747
|
-
if (subject && subject.currentValue) {
|
|
748
|
-
this.service = subject.currentValue.type === 'roles' ? this.roleService : this.userService;
|
|
749
|
-
}
|
|
750
|
-
if (!visible) {
|
|
751
|
-
return;
|
|
752
|
-
}
|
|
753
|
-
if (visible.currentValue) {
|
|
754
|
-
this.initModal();
|
|
755
|
-
return;
|
|
756
|
-
}
|
|
757
|
-
this.subjectClaims = null;
|
|
758
|
-
}
|
|
759
|
-
initModal() {
|
|
760
|
-
this.buildForm();
|
|
761
|
-
this.getClaimTypeNames();
|
|
762
|
-
this.getSubjectClaims(this.subject());
|
|
763
|
-
}
|
|
764
|
-
get claimType() {
|
|
765
|
-
return this.form.controls.claimType;
|
|
766
|
-
}
|
|
767
|
-
get claimValue() {
|
|
768
|
-
return this.form.controls.claimValue;
|
|
769
|
-
}
|
|
770
|
-
findClaim(claimName) {
|
|
771
|
-
return this.claimTypes?.find(claim => claimName === claim.name);
|
|
772
|
-
}
|
|
773
|
-
onKeyDown(event) {
|
|
774
|
-
if (this.inputType === 'Number' && (event.key === 'e' || event.key === 'E')) {
|
|
775
|
-
event.preventDefault();
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
resetClaimValidations() {
|
|
779
|
-
this.claimValue.clearValidators();
|
|
780
|
-
this.claimValue.addValidators([
|
|
781
|
-
Validators.required,
|
|
782
|
-
regexValidator(this.regex, this.regexDescription, this.injector),
|
|
783
|
-
]);
|
|
784
|
-
this.claimValue.updateValueAndValidity();
|
|
828
|
+
this.hookToQuery();
|
|
785
829
|
}
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
const inputType = claim.valueTypeAsString;
|
|
790
|
-
this.regex = claim.regex;
|
|
791
|
-
this.regexDescription = claim.regexDescription;
|
|
792
|
-
switch (inputType) {
|
|
793
|
-
case 'Int':
|
|
794
|
-
this.inputType = 'Number';
|
|
795
|
-
subjectInputType = 'Number';
|
|
796
|
-
break;
|
|
797
|
-
case 'Boolean':
|
|
798
|
-
this.inputType = 'Boolean';
|
|
799
|
-
subjectInputType = 'Boolean';
|
|
800
|
-
break;
|
|
801
|
-
case 'String':
|
|
802
|
-
this.inputType = 'String';
|
|
803
|
-
subjectInputType = 'String';
|
|
804
|
-
break;
|
|
805
|
-
case 'DateTime':
|
|
806
|
-
this.inputType = 'datetime-local';
|
|
807
|
-
subjectInputType = 'datetime-local';
|
|
808
|
-
break;
|
|
809
|
-
}
|
|
810
|
-
this.resetClaimValidations();
|
|
811
|
-
return subjectInputType;
|
|
830
|
+
showDetail(row) {
|
|
831
|
+
this.visibleSessionDetailModal.set(true);
|
|
832
|
+
this.sessionId.set(row.id);
|
|
812
833
|
}
|
|
813
|
-
|
|
814
|
-
this.
|
|
815
|
-
|
|
816
|
-
|
|
834
|
+
revokeSession(row) {
|
|
835
|
+
this.confirmationService
|
|
836
|
+
.warn('AbpIdentity::SessionLogoutConfirmationMessage', 'AbpUi::AreYouSure')
|
|
837
|
+
.pipe(filter(status => status === Confirmation.Status.confirm), switchMap(() => this.service.revoke(row.id).pipe(tap(() => {
|
|
838
|
+
if (row.isCurrent) {
|
|
839
|
+
return this.authService
|
|
840
|
+
.logout({ noRedirectToLogoutUrl: true })
|
|
841
|
+
.pipe(switchMap(() => this.configStateService.refreshAppState()))
|
|
842
|
+
.subscribe();
|
|
843
|
+
}
|
|
844
|
+
this.hookToQuery();
|
|
845
|
+
}))))
|
|
846
|
+
.subscribe();
|
|
817
847
|
}
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
848
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
849
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UserSessionsComponent, isStandalone: true, selector: "abp-user-sessions", inputs: { isModalVisible: { classPropertyName: "isModalVisible", publicName: "isModalVisible", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { isModalVisible: "isModalVisibleChange" }, providers: [ListService], ngImport: i0, template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::Sessions' | abpLocalization }}\r\n @if (selected().userName) {\r\n - {{ selected().userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ngx-datatable [rows]=\"data().items\" [count]=\"data().totalCount\" [list]=\"list\" default>\r\n <ngx-datatable-column [name]=\"'AbpUi::Actions' | abpLocalization\" [sortable]=\"false\">\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 ngbDropdownToggle\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\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)=\"showDetail(row)\">\r\n {{ 'AbpIdentity::Session:Detail' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"revokeSession(row)\">\r\n {{ 'AbpIdentity::Session:Logout' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:Device' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"device\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\" let-row=\"row\">\r\n {{ value }}\r\n @if (row.isCurrent) {\r\n <i\r\n class=\"fas fa-dot-circle\"\r\n [ngbTooltip]=\"'AbpIdentity::Session:Current' | abpLocalization\"\r\n container=\"body\"\r\n placement=\"end\"\r\n ></i>\r\n }\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:DeviceInfo' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"deviceInfo\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:SignedIn' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"signedIn\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:LastAccessed' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"lastAccessed\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<!-- TODO re-configure the defer here after all migration is done -->\r\n@if (visibleSessionDetailModal()) {\r\n <abp-user-session-detail\r\n [sessionId]=\"sessionId()\"\r\n [(isModalVisible)]=\"visibleSessionDetailModal\"\r\n />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: NgbDropdownModule }, { 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: "ngmodule", type: NgxDatatableModule }, { 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: NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: ["class"], exportAs: ["ngxDatatableDefault"] }, { kind: "directive", type: NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: ["list"], exportAs: ["ngxDatatableList"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }, { kind: "directive", type: NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "popperOptions", "triggers", "positionTarget", "container", "disableTooltip", "tooltipClass", "tooltipContext", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { kind: "component", type: UserSessionDetailComponent, selector: "abp-user-session-detail", inputs: ["isModalVisible", "sessionId"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }] }); }
|
|
850
|
+
}
|
|
851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserSessionsComponent, decorators: [{
|
|
852
|
+
type: Component,
|
|
853
|
+
args: [{ selector: 'abp-user-sessions', imports: [
|
|
854
|
+
NgbDropdownModule,
|
|
855
|
+
NgxDatatableModule,
|
|
856
|
+
NgxDatatableDefaultDirective,
|
|
857
|
+
NgxDatatableListDirective,
|
|
858
|
+
ModalCloseDirective,
|
|
859
|
+
LocalizationPipe,
|
|
860
|
+
ShortDateTimePipe,
|
|
861
|
+
NgbTooltip,
|
|
862
|
+
UserSessionDetailComponent,
|
|
863
|
+
ModalComponent,
|
|
864
|
+
], providers: [ListService], template: "<abp-modal [(visible)]=\"isModalVisible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::Sessions' | abpLocalization }}\r\n @if (selected().userName) {\r\n - {{ selected().userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ngx-datatable [rows]=\"data().items\" [count]=\"data().totalCount\" [list]=\"list\" default>\r\n <ngx-datatable-column [name]=\"'AbpUi::Actions' | abpLocalization\" [sortable]=\"false\">\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 ngbDropdownToggle\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n data-toggle=\"dropdown\"\r\n aria-haspopup=\"true\"\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)=\"showDetail(row)\">\r\n {{ 'AbpIdentity::Session:Detail' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"revokeSession(row)\">\r\n {{ 'AbpIdentity::Session:Logout' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:Device' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"device\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\" let-row=\"row\">\r\n {{ value }}\r\n @if (row.isCurrent) {\r\n <i\r\n class=\"fas fa-dot-circle\"\r\n [ngbTooltip]=\"'AbpIdentity::Session:Current' | abpLocalization\"\r\n container=\"body\"\r\n placement=\"end\"\r\n ></i>\r\n }\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:DeviceInfo' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"deviceInfo\"\r\n >\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:SignedIn' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"signedIn\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::Session:LastAccessed' | abpLocalization\"\r\n [sortable]=\"true\"\r\n prop=\"lastAccessed\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | shortDateTime }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-secondary\" abpClose>\r\n {{ 'AbpUi::Close' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<!-- TODO re-configure the defer here after all migration is done -->\r\n@if (visibleSessionDetailModal()) {\r\n <abp-user-session-detail\r\n [sessionId]=\"sessionId()\"\r\n [(isModalVisible)]=\"visibleSessionDetailModal\"\r\n />\r\n}\r\n" }]
|
|
865
|
+
}] });
|
|
866
|
+
|
|
867
|
+
class SetUserPasswordComponent {
|
|
868
|
+
constructor() {
|
|
869
|
+
this.fb = inject(FormBuilder);
|
|
870
|
+
this.injector = inject(Injector);
|
|
871
|
+
this.service = inject(IdentityUserService);
|
|
872
|
+
this.toasterService = inject(ToasterService);
|
|
873
|
+
this.visibleChange = new EventEmitter();
|
|
874
|
+
this.isModalVisible = true;
|
|
875
|
+
}
|
|
876
|
+
ngOnInit() {
|
|
877
|
+
this.form = this.fb.group({
|
|
878
|
+
newPassword: [
|
|
879
|
+
'',
|
|
880
|
+
{
|
|
881
|
+
validators: [Validators.required, ...getPasswordValidators(this.injector)],
|
|
882
|
+
},
|
|
883
|
+
],
|
|
824
884
|
});
|
|
825
885
|
}
|
|
826
|
-
|
|
886
|
+
generatePassword() {
|
|
887
|
+
this.form.markAsDirty();
|
|
888
|
+
const generatedPassword = generatePassword(this.injector);
|
|
889
|
+
this.form.controls.newPassword.setValue(generatedPassword);
|
|
890
|
+
}
|
|
891
|
+
setPassword() {
|
|
827
892
|
if (this.form.invalid) {
|
|
828
893
|
return;
|
|
829
894
|
}
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
...this.form.value,
|
|
834
|
-
inputType: this.inputType,
|
|
835
|
-
};
|
|
836
|
-
const { claimType, claimValue } = this.form.value || {};
|
|
837
|
-
const existingClaimIndex = this.subjectClaims.findIndex(item => item.claimType === claimType && item.claimValue === claimValue);
|
|
838
|
-
if (existingClaimIndex === -1) {
|
|
839
|
-
this.subjectClaims.push(claim);
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
//Add error message
|
|
843
|
-
this.confirmationService
|
|
844
|
-
.error('AbpIdentity::ClaimAlreadyExist', 'AbpUi::Error', {
|
|
845
|
-
hideYesBtn: true,
|
|
846
|
-
cancelText: 'AbpUi::Ok',
|
|
847
|
-
})
|
|
848
|
-
.pipe(takeUntilDestroyed(this.#destroyRef))
|
|
849
|
-
.subscribe();
|
|
850
|
-
}
|
|
851
|
-
ngForm.resetForm();
|
|
852
|
-
setTimeout(() => {
|
|
895
|
+
this.service.updatePassword(this.selected.id, this.form.value).subscribe(() => {
|
|
896
|
+
this.visibleChange.emit(false);
|
|
897
|
+
this.selected = {};
|
|
853
898
|
this.form.reset();
|
|
854
|
-
}, 0);
|
|
855
|
-
}
|
|
856
|
-
removeClaim(index) {
|
|
857
|
-
if (!this.subjectClaims[index])
|
|
858
|
-
return;
|
|
859
|
-
this.subjectClaims = this.subjectClaims.filter((_, i) => i !== index);
|
|
860
|
-
}
|
|
861
|
-
save() {
|
|
862
|
-
if (this.modalBusy)
|
|
863
|
-
return;
|
|
864
|
-
this.modalBusy = true;
|
|
865
|
-
this.subscription.addOne(this.service.updateClaims(this.subject().id, this.subjectClaims).pipe(take(1), finalize(() => (this.modalBusy = false))), () => {
|
|
866
|
-
this.visible = false;
|
|
867
899
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
868
900
|
});
|
|
869
901
|
}
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
claimType: ['', [Validators.required]],
|
|
873
|
-
claimValue: [
|
|
874
|
-
'',
|
|
875
|
-
[Validators.required, regexValidator(this.regex, this.regexDescription, this.injector)],
|
|
876
|
-
],
|
|
877
|
-
});
|
|
878
|
-
}
|
|
879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ClaimModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
880
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ClaimModalComponent, isStandalone: false, selector: "abp-claim-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: false, isRequired: false, transformFunction: null }, subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::Claims' | abpLocalization }}\r\n @if (subject().title) {\r\n - {{ subject().title }}\r\n }\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <form\r\n (ngSubmit)=\"addClaim(ngForm)\"\r\n #ngForm=\"ngForm\"\r\n [formGroup]=\"form\"\r\n validateOnSubmit\r\n [markAsDirtyWhenSubmit]=\"false\"\r\n >\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"claimTypeSelect\">{{\r\n 'AbpIdentity::Type' | abpLocalization\r\n }}</label\r\n ><select\r\n autofocus\r\n id=\"claimTypeSelect\"\r\n class=\"form-select\"\r\n formControlName=\"claimType\"\r\n (change)=\"claimTypeChange()\"\r\n >\r\n @for (type of claimTypes; track $index) {\r\n <option [ngValue]=\"type.name\">\r\n {{ type.name }}\r\n </option>\r\n }\r\n </select>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"newClaimValue\">\r\n {{ 'AbpIdentity::ClaimValue' | abpLocalization }}\r\n </label>\r\n\r\n @if (inputType === 'Boolean') {\r\n <select\r\n autofocus\r\n id=\"newClaimValueBool\"\r\n class=\"form-select form-control\"\r\n formControlName=\"claimValue\"\r\n >\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n required\r\n id=\"newClaimValue\"\r\n [type]=\"inputType\"\r\n class=\"form-control\"\r\n formControlName=\"claimValue\"\r\n (keydown)=\"onKeyDown($event)\"\r\n />\r\n }\r\n </div>\r\n </div>\r\n <div class=\"col-md-12 align-self-center d-grid\">\r\n <button class=\"btn btn-success\" type=\"submit\">\r\n <i class=\"fa fa-plus\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddClaim' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </form>\r\n\r\n @if (subjectClaims && subjectClaims.length) {\r\n <div class=\"willBeHidden mt-3\">\r\n @for (claim of subjectClaims; track $index; let i = $index) {\r\n <div class=\"input-group mb-3\">\r\n <div class=\"input-group-prepend\">\r\n <label class=\"input-group-text mw-100 h-100 fs-9\">{{ claim.claimType }}</label>\r\n </div>\r\n\r\n @if (subjectClaims[i].inputType === 'Boolean') {\r\n <select autofocus class=\"form-control\" [(ngModel)]=\"subjectClaims[i].claimValue\">\r\n <option ngValue=\"true\">{{ 'AbpIdentity::True' | abpLocalization }}</option>\r\n <option ngValue=\"false\">{{ 'AbpIdentity::False' | abpLocalization }}</option>\r\n </select>\r\n } @else {\r\n <input\r\n [type]=\"subjectClaims[i].inputType\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"subjectClaims[i].claimValue\"\r\n required\r\n />\r\n }\r\n\r\n <div class=\"input-group-append\">\r\n <button class=\"btn btn-danger deleteClaim\" (click)=\"removeClaim(i)\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n }\r\n </ng-template>\r\n <ng-template #abpFooter>\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\" (click)=\"save()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ 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.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.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.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { 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$1.AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: i2$1.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: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
902
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SetUserPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
903
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SetUserPasswordComponent, isStandalone: true, selector: "abp-set-user-password", inputs: { selected: "selected" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <div class=\"form-control p-0\">\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <div class=\"position-absolute top-0 end-0\">\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn text-muted rounded-0 rounded-start\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary rounded-0 rounded-end\"\r\n ngbTooltip=\"{{ 'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization }}\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button class=\"m-0\" iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { 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.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: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationTargetDirective, selector: "[validationTarget]", exportAs: ["validationTarget"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
881
904
|
}
|
|
882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type:
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SetUserPasswordComponent, decorators: [{
|
|
883
906
|
type: Component,
|
|
884
|
-
args: [{
|
|
885
|
-
|
|
907
|
+
args: [{ selector: 'abp-set-user-password', imports: [
|
|
908
|
+
ReactiveFormsModule,
|
|
909
|
+
NgxValidateCoreModule,
|
|
910
|
+
ModalCloseDirective,
|
|
911
|
+
AutofocusDirective,
|
|
912
|
+
LocalizationPipe,
|
|
913
|
+
ModalComponent,
|
|
914
|
+
ButtonComponent,
|
|
915
|
+
], template: "<abp-modal [visible]=\"isModalVisible\" (visibleChange)=\"visibleChange.emit($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SetPassword' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"PasswordForm\" (ngSubmit)=\"setPassword()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"new-password\">{{\r\n 'AbpIdentity::Password' | abpLocalization\r\n }}</label>\r\n <div class=\"input-group mb-3\" validationTarget>\r\n <div class=\"form-control p-0\">\r\n <input\r\n [type]=\"fieldTextType ? 'text' : 'password'\"\r\n id=\"new-password\"\r\n class=\"form-control\"\r\n aria-describedby=\"generate-random-password-button\"\r\n formControlName=\"newPassword\"\r\n autofocus\r\n />\r\n <div class=\"position-absolute top-0 end-0\">\r\n <button\r\n type=\"button\"\r\n id=\"toggle-visiblity-button\"\r\n class=\"btn text-muted rounded-0 rounded-start\"\r\n [title]=\"'AbpIdentity::HideShow' | abpLocalization\"\r\n (click)=\"fieldTextType = !fieldTextType\"\r\n >\r\n <i class=\"fa fa-eye{{ !fieldTextType ? '-slash' : '' }}\"></i>\r\n </button>\r\n <button\r\n type=\"button\"\r\n id=\"generate-random-password-button\"\r\n class=\"btn btn-secondary rounded-0 rounded-end\"\r\n ngbTooltip=\"{{ 'AbpIdentity::GenerateRandomPasswordTooltip' | abpLocalization }}\"\r\n (click)=\"generatePassword()\"\r\n >\r\n <i class=\"fa fa-refresh\" aria-hidden=\"true\"></i>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpIdentity::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button class=\"m-0\" iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"PasswordForm\">{{\r\n 'AbpIdentity::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
916
|
+
}], propDecorators: { selected: [{
|
|
886
917
|
type: Input
|
|
887
918
|
}], visibleChange: [{
|
|
888
919
|
type: Output
|
|
889
920
|
}] } });
|
|
890
921
|
|
|
922
|
+
const MODULES$1 = [FormsModule, ReactiveFormsModule, NgxValidateCoreModule];
|
|
923
|
+
const DIRECTIVES$1 = [
|
|
924
|
+
PermissionDirective,
|
|
925
|
+
DisabledDirective,
|
|
926
|
+
ReplaceableTemplateDirective,
|
|
927
|
+
ModalCloseDirective,
|
|
928
|
+
];
|
|
929
|
+
const PIPES$1 = [LocalizationPipe];
|
|
930
|
+
const COMPONENTS$1 = [
|
|
931
|
+
ClaimModalComponent,
|
|
932
|
+
ExtensibleTableComponent,
|
|
933
|
+
ExtensibleFormComponent,
|
|
934
|
+
SetUserPasswordComponent,
|
|
935
|
+
UserLockModalComponent,
|
|
936
|
+
UserViewDetailsComponent,
|
|
937
|
+
UploadExcelFileComponent,
|
|
938
|
+
UserSessionsComponent,
|
|
939
|
+
AdvancedEntityFiltersComponent,
|
|
940
|
+
AdvancedEntityFiltersFormComponent,
|
|
941
|
+
LookupSelectComponent,
|
|
942
|
+
DateRangePickerComponent,
|
|
943
|
+
PageComponent,
|
|
944
|
+
ModalComponent,
|
|
945
|
+
ButtonComponent,
|
|
946
|
+
PermissionManagementComponent,
|
|
947
|
+
TreeComponent,
|
|
948
|
+
];
|
|
949
|
+
const BOOTSTRAP$1 = [
|
|
950
|
+
NgbNav,
|
|
951
|
+
NgbNavItem,
|
|
952
|
+
NgbNavItemRole,
|
|
953
|
+
NgbNavLink,
|
|
954
|
+
NgbNavLinkBase,
|
|
955
|
+
NgbNavContent,
|
|
956
|
+
NgbNavOutlet,
|
|
957
|
+
];
|
|
891
958
|
class UsersComponent {
|
|
892
959
|
constructor() {
|
|
893
960
|
this.subscription = inject(SubscriptionService);
|
|
@@ -1122,35 +1189,35 @@ class UsersComponent {
|
|
|
1122
1189
|
this.isSetPasswordModalVisible = $event;
|
|
1123
1190
|
}
|
|
1124
1191
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1125
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UsersComponent, isStandalone:
|
|
1192
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: UsersComponent, isStandalone: true, selector: "abp-users", providers: [
|
|
1126
1193
|
ListService,
|
|
1127
1194
|
{
|
|
1128
1195
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1129
1196
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1130
1197
|
},
|
|
1131
1198
|
ExcelService,
|
|
1132
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <div class=\"mt-2 mt-sm-0\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"getRolesLookup()\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"getOrganizationUnitLookup()\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"name\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"surname\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"surname\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationTime\"\r\n endDateProp=\"maxCreationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModifitionTime\"\r\n endDateProp=\"maxModifitionTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"notActive\" class=\"form-label\">\r\n {{ 'AbpIdentity::Active' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n id=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailConfirmed' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"emailConfirmed\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Lock' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isLockedOut\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isExternal\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserID\" class=\"form-label\">\r\n {{ 'AbpIdentity::Id' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserID\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.id\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n </div>\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewUser' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" />\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (roleCount(); as roleCount) {\r\n <span>({{ roleCount }})</span>\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (roleGroup of roleGroups; track i; let i = $index) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n @if (isFromOrgUnit(roles[i].id)) {\r\n <span>({{ 'OU' | abpLocalization }})</span>\r\n }\r\n </label>\r\n </div>\r\n }\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n @if (!!organization.checkedKeys.length) {\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n }\r\n </a>\r\n\r\n <ng-template ngbNavContent>\r\n @if (organization.nodes?.length) {\r\n <abp-tree\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"userForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n", dependencies: [{ 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.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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$2.LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount", "emptyOption"] }, { kind: "component", type: i3$2.DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "directive", type: i4.DisabledDirective, selector: "[abpDisabled]", inputs: ["abpDisabled"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: i3$3.ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate"], outputs: ["tableActivate"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: i3$2.AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { 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: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i3.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: i8.PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: UserViewDetailsComponent, selector: "abp-user-view-detail", inputs: ["user"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: UploadExcelFileComponent, selector: "abp-excel-upload-file", inputs: ["fileType"], outputs: ["isModalVisibleChange", "isListChange"] }, { kind: "component", type: UserLockModalComponent, selector: "abp-user-lock-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: SetUserPasswordComponent, selector: "abp-set-user-password", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: UserSessionsComponent, selector: "abp-user-sessions", inputs: ["isModalVisible", "selected"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["visible", "subject"], outputs: ["visibleChange"] }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1199
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <div class=\"mt-2 mt-sm-0\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"getRolesLookup()\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"getOrganizationUnitLookup()\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"name\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"surname\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"surname\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationTime\"\r\n endDateProp=\"maxCreationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModifitionTime\"\r\n endDateProp=\"maxModifitionTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"notActive\" class=\"form-label\">\r\n {{ 'AbpIdentity::Active' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n id=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailConfirmed' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"emailConfirmed\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Lock' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isLockedOut\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isExternal\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserID\" class=\"form-label\">\r\n {{ 'AbpIdentity::Id' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserID\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.id\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n </div>\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewUser' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" />\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (roleCount(); as roleCount) {\r\n <span>({{ roleCount }})</span>\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (roleGroup of roleGroups; track i; let i = $index) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n @if (isFromOrgUnit(roles[i].id)) {\r\n <span>({{ 'OU' | abpLocalization }})</span>\r\n }\r\n </label>\r\n </div>\r\n }\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n @if (!!organization.checkedKeys.length) {\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n }\r\n </a>\r\n\r\n <ng-template ngbNavContent>\r\n @if (organization.nodes?.length) {\r\n <abp-tree\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"userForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.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.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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: DisabledDirective, selector: "[abpDisabled]", inputs: ["abpDisabled"] }, { kind: "directive", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["visible", "subject"], outputs: ["visibleChange"] }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: SetUserPasswordComponent, selector: "abp-set-user-password", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: UserLockModalComponent, selector: "abp-user-lock-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: UserViewDetailsComponent, selector: "abp-user-view-detail", inputs: ["user"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: UploadExcelFileComponent, selector: "abp-excel-upload-file", inputs: ["fileType"], outputs: ["isModalVisibleChange", "isListChange"] }, { kind: "component", type: UserSessionsComponent, selector: "abp-user-sessions", inputs: ["isModalVisible", "selected"], outputs: ["isModalVisibleChange"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: AdvancedEntityFiltersFormComponent, selector: "abp-advanced-entity-filters-form" }, { kind: "component", type: LookupSelectComponent, selector: "abp-lookup-select", inputs: ["maxResultCount", "emptyOption"] }, { kind: "component", type: DateRangePickerComponent, selector: "abp-date-range-picker", inputs: ["startDateProp", "endDateProp", "labelText"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }, { kind: "component", type: TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "directive", type: NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "directive", type: NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "component", type: NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }] }); }
|
|
1133
1200
|
}
|
|
1134
1201
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UsersComponent, decorators: [{
|
|
1135
1202
|
type: Component,
|
|
1136
|
-
args: [{
|
|
1203
|
+
args: [{ selector: 'abp-users', providers: [
|
|
1137
1204
|
ListService,
|
|
1138
1205
|
{
|
|
1139
1206
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1140
1207
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1141
1208
|
},
|
|
1142
1209
|
ExcelService,
|
|
1143
|
-
], template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <div class=\"mt-2 mt-sm-0\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"getRolesLookup()\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"getOrganizationUnitLookup()\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"name\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"surname\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"surname\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationTime\"\r\n endDateProp=\"maxCreationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModifitionTime\"\r\n endDateProp=\"maxModifitionTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"notActive\" class=\"form-label\">\r\n {{ 'AbpIdentity::Active' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n id=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailConfirmed' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"emailConfirmed\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Lock' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isLockedOut\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isExternal\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserID\" class=\"form-label\">\r\n {{ 'AbpIdentity::Id' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserID\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.id\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n </div>\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewUser' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" />\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (roleCount(); as roleCount) {\r\n <span>({{ roleCount }})</span>\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (roleGroup of roleGroups; track i; let i = $index) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n @if (isFromOrgUnit(roles[i].id)) {\r\n <span>({{ 'OU' | abpLocalization }})</span>\r\n }\r\n </label>\r\n </div>\r\n }\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n @if (!!organization.checkedKeys.length) {\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n }\r\n </a>\r\n\r\n <ng-template ngbNavContent>\r\n @if (organization.nodes?.length) {\r\n <abp-tree\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"userForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n" }]
|
|
1210
|
+
], imports: [...MODULES$1, ...DIRECTIVES$1, ...PIPES$1, ...COMPONENTS$1, ...BOOTSTRAP$1], template: "<abp-page [title]=\"'AbpIdentity::Users' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-users-wrapper\">\r\n <div class=\"mt-2 mt-sm-0\">\r\n <abp-advanced-entity-filters [list]=\"list\" localizationSourceName=\"AbpIdentity\">\r\n <abp-advanced-entity-filters-form>\r\n <form #filterForm (keyup.enter)=\"list.get()\">\r\n <div class=\"row\">\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"roleIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Role' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"roleIdFilter\"\r\n lookupNameProp=\"name\"\r\n [getFn]=\"getRolesLookup()\"\r\n [(ngModel)]=\"filters.roleId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::OrganizationUnit' | abpLocalization }}\r\n </label>\r\n <abp-lookup-select\r\n cid=\"organizationUnitIdFilter\"\r\n [getFn]=\"getOrganizationUnitLookup()\"\r\n [(ngModel)]=\"filters.organizationUnitId\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::UserName' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserName\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.userName\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"name\" class=\"form-label\">\r\n {{ 'AbpIdentity::Name' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"name\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.name\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"surname\" class=\"form-label\">\r\n {{ 'AbpIdentity::Surname' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"surname\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.surname\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::CreationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minCreationTime\"\r\n endDateProp=\"maxCreationTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserName\" class=\"form-label\">\r\n {{ 'AbpIdentity::ModificationDate' | abpLocalization }}\r\n </label>\r\n <abp-date-range-picker\r\n startDateProp=\"minModifitionTime\"\r\n endDateProp=\"maxModifitionTime\"\r\n [(ngModel)]=\"filters\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"PhoneNumber\" class=\"form-label\">\r\n {{ 'AbpIdentity::PhoneNumber' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"PhoneNumber\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.phoneNumber\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"EmailAddress\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailAddress' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"EmailAddress\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.emailAddress\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"notActive\" class=\"form-label\">\r\n {{ 'AbpIdentity::Active' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"notActive\"\r\n id=\"notActive\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.notActive\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::EmailConfirmed' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"emailConfirmed\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.emailConfirmed\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::Lock' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isLockedOut\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isLockedOut\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"mb-3\">\r\n <label for=\"organizationUnitIdFilter\" class=\"form-label\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </label>\r\n <select\r\n name=\"isExternal\"\r\n class=\"form-select form-control\"\r\n [(ngModel)]=\"filters.isExternal\"\r\n >\r\n <option [ngValue]=\"undefined\">\r\n {{ 'AbpIdentity::Dash' | abpLocalization }}\r\n </option>\r\n <option [ngValue]=\"true\">{{ 'AbpUi::Yes' | abpLocalization }}</option>\r\n <option [ngValue]=\"false\">{{ 'AbpUi::No' | abpLocalization }}</option>\r\n </select>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-4 col-md-3\">\r\n <div class=\"form-group mb-3\">\r\n <label for=\"UserID\" class=\"form-label\">\r\n {{ 'AbpIdentity::Id' | abpLocalization }}\r\n </label>\r\n <input\r\n type=\"text\"\r\n id=\"UserID\"\r\n class=\"form-control\"\r\n [(ngModel)]=\"filters.id\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-12 col-sm-auto align-self-end mb-3\">\r\n <div class=\"row\">\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n <div class=\"col-6 col-sm-auto d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <span>{{ 'AbpUi::Refresh' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </form>\r\n </abp-advanced-entity-filters-form>\r\n </abp-advanced-entity-filters>\r\n </div>\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\" (disappear)=\"form = null\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpIdentity::Edit' | abpLocalization }}\r\n @if (selected.userName) {\r\n - {{ selected.userName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewUser' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form [formGroup]=\"form\" id=\"userForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <ul id=\"user-nav-tabs\" ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li id=\"user-informations\" ngbNavItem>\r\n <a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"row\">\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected\" />\r\n </div>\r\n </ng-template>\r\n </li>\r\n <li id=\"user-roles\" *abpPermission=\"'AbpIdentity.Users.Update.ManageRoles'\" ngbNavItem>\r\n <a ngbNavLink\r\n >{{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (roleCount(); as roleCount) {\r\n <span>({{ roleCount }})</span>\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @for (roleGroup of roleGroups; track i; let i = $index) {\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n [attr.id]=\"'roles-' + i\"\r\n [formControl]=\"roleGroup.controls[roles[i].name]\"\r\n [abpDisabled]=\"isFromOrgUnit(roles[i].id)\"\r\n />\r\n <label class=\"form-check-label\" [attr.for]=\"'roles-' + i\">\r\n {{ roles[i].name }}\r\n @if (isFromOrgUnit(roles[i].id)) {\r\n <span>({{ 'OU' | abpLocalization }})</span>\r\n }\r\n </label>\r\n </div>\r\n }\r\n </ng-template>\r\n </li>\r\n <li\r\n id=\"user-organization-units\"\r\n *abpPermission=\"'AbpIdentity.Users.Update.ManageOU'\"\r\n ngbNavItem\r\n >\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::OrganizationUnits' | abpLocalization }}\r\n @if (!!organization.checkedKeys.length) {\r\n <span>({{ organization.checkedKeys.length }})</span>\r\n }\r\n </a>\r\n\r\n <ng-template ngbNavContent>\r\n @if (organization.nodes?.length) {\r\n <abp-tree\r\n [checkStrictly]=\"true\"\r\n [checkable]=\"true\"\r\n [nodes]=\"organization.nodes\"\r\n [changeCheckboxWithNode]=\"true\"\r\n [isNodeSelected]=\"organization.selectFn\"\r\n [(checkedKeys)]=\"organization.checkedKeys\"\r\n [(expandedKeys)]=\"organization.expandedKeys\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2 fade-in-top\"></div>\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"userForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'U' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n [hideBadges]=\"true\"\r\n providerName=\"U\"\r\n [entityDisplayName]=\"entityDisplayName\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (isSetPasswordModalVisible) {\r\n <abp-set-user-password [selected]=\"selected\" (visibleChange)=\"setPasswordModalChange($event)\" />\r\n}\r\n\r\n<abp-modal [(visible)]=\"twoFactor.isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::TwoFactor' | abpLocalization }} - {{ selected.userName }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <div class=\"mt-2 fade-in-top\">\r\n <div class=\"form-check mb-2\">\r\n <input\r\n type=\"checkbox\"\r\n class=\"form-check-input\"\r\n id=\"two-factor-enabled\"\r\n [(ngModel)]=\"twoFactor.checkboxValue\"\r\n />\r\n <label class=\"form-check-label\" for=\"two-factor-enabled\">{{\r\n 'AbpIdentity::DisplayName:TwoFactorEnabled' | abpLocalization\r\n }}</label>\r\n </div>\r\n </div>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"setTwoFactor()\" [disabled]=\"modalBusy\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n@if (isLockModalVisible) {\r\n <abp-user-lock-modal [selected]=\"selected\" (visibleChange)=\"lockModalVisibleChange($event)\" />\r\n}\r\n\r\n@if (!!selected && visibleViewDetails) {\r\n <abp-user-view-detail [user]=\"selected\" (isModalVisibleChange)=\"visibleViewDetails = $event\" />\r\n}\r\n\r\n@if (visibleUploadFile) {\r\n <abp-excel-upload-file\r\n [fileType]=\"fileType\"\r\n (isModalVisibleChange)=\"visibleUploadFile = $event\"\r\n (isListChange)=\"resetList()\"\r\n />\r\n}\r\n\r\n@if (visibleSessionsModal()) {\r\n <abp-user-sessions [selected]=\"selected\" [(isModalVisible)]=\"visibleSessionsModal\" />\r\n}\r\n" }]
|
|
1144
1211
|
}], propDecorators: { modalContent: [{
|
|
1145
1212
|
type: ViewChild,
|
|
1146
1213
|
args: ['modalContent']
|
|
1147
1214
|
}] } });
|
|
1148
1215
|
|
|
1149
1216
|
class UserDropdownMenuComponent {
|
|
1150
|
-
constructor(
|
|
1151
|
-
this.data =
|
|
1217
|
+
constructor() {
|
|
1218
|
+
this.data = inject(EXTENSIONS_ACTION_DATA);
|
|
1152
1219
|
this.isExternalModalVisible = false;
|
|
1153
|
-
this.component = data.getInjected(UsersComponent);
|
|
1220
|
+
this.component = this.data.getInjected(UsersComponent);
|
|
1154
1221
|
}
|
|
1155
1222
|
onAddExternalLogin() {
|
|
1156
1223
|
this.isExternalModalVisible = true;
|
|
@@ -1164,21 +1231,26 @@ class UserDropdownMenuComponent {
|
|
|
1164
1231
|
uploadCsvFile() {
|
|
1165
1232
|
this.component.openUploadFileModal(ImportUsersFromFileType.Csv);
|
|
1166
1233
|
}
|
|
1167
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserDropdownMenuComponent, deps: [
|
|
1168
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UserDropdownMenuComponent, isStandalone:
|
|
1234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1235
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: UserDropdownMenuComponent, isStandalone: true, selector: "abp-user-dropdown-menu", ngImport: i0, template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-outline-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Import' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <button ngbDropdownItem (click)=\"onAddExternalLogin()\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"uploadExcelFile()\">\r\n {{ 'AbpIdentity::FromExcel' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"uploadCsvFile()\">\r\n {{ 'AbpIdentity::FromCSV' | abpLocalization }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<abp-external-login\r\n [(visible)]=\"isExternalModalVisible\"\r\n (dataSave)=\"getList()\"\r\n></abp-external-login>\r\n", dependencies: [{ kind: "directive", type: NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "directive", type: NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExternalLoginComponent, selector: "abp-external-login", inputs: ["visible"], outputs: ["dataSave", "visibleChange"] }] }); }
|
|
1169
1236
|
}
|
|
1170
1237
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: UserDropdownMenuComponent, decorators: [{
|
|
1171
1238
|
type: Component,
|
|
1172
|
-
args: [{
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1239
|
+
args: [{ selector: 'abp-user-dropdown-menu', imports: [
|
|
1240
|
+
NgbDropdown,
|
|
1241
|
+
NgbDropdownToggle,
|
|
1242
|
+
NgbDropdownMenu,
|
|
1243
|
+
NgbDropdownButtonItem,
|
|
1244
|
+
NgbDropdownItem,
|
|
1245
|
+
LocalizationPipe,
|
|
1246
|
+
ExternalLoginComponent,
|
|
1247
|
+
], template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-outline-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Import' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <button ngbDropdownItem (click)=\"onAddExternalLogin()\">\r\n {{ 'AbpIdentity::ExternalUser' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"uploadExcelFile()\">\r\n {{ 'AbpIdentity::FromExcel' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"uploadCsvFile()\">\r\n {{ 'AbpIdentity::FromCSV' | abpLocalization }}\r\n </button>\r\n </div>\r\n</div>\r\n\r\n<abp-external-login\r\n [(visible)]=\"isExternalModalVisible\"\r\n (dataSave)=\"getList()\"\r\n></abp-external-login>\r\n" }]
|
|
1248
|
+
}], ctorParameters: () => [] });
|
|
1177
1249
|
|
|
1178
1250
|
class ExportDataDropdownComponent {
|
|
1179
|
-
constructor(
|
|
1180
|
-
this.data =
|
|
1181
|
-
this.component = data.getInjected(UsersComponent);
|
|
1251
|
+
constructor() {
|
|
1252
|
+
this.data = inject(EXTENSIONS_ACTION_DATA);
|
|
1253
|
+
this.component = this.data.getInjected(UsersComponent);
|
|
1182
1254
|
}
|
|
1183
1255
|
exportExcel() {
|
|
1184
1256
|
this.component.exportExcel();
|
|
@@ -1186,16 +1258,20 @@ class ExportDataDropdownComponent {
|
|
|
1186
1258
|
exportCSV() {
|
|
1187
1259
|
this.component.exportCSV();
|
|
1188
1260
|
}
|
|
1189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExportDataDropdownComponent, deps: [
|
|
1190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: ExportDataDropdownComponent, isStandalone:
|
|
1261
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExportDataDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1262
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: ExportDataDropdownComponent, isStandalone: true, selector: "abp-export-data-dropdown", ngImport: i0, template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-outline-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Export' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <button ngbDropdownItem (click)=\"exportExcel()\">\r\n {{ 'AbpIdentity::ToExcel' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"exportCSV()\">\r\n {{ 'AbpIdentity::ToCSV' | abpLocalization }}\r\n </button>\r\n </div>\r\n</div>\r\n", dependencies: [{ kind: "directive", type: NgbDropdown, selector: "[ngbDropdown]", inputs: ["autoClose", "dropdownClass", "open", "placement", "popperOptions", "container", "display"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { kind: "directive", type: NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { kind: "directive", type: NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { kind: "directive", type: NgbDropdownButtonItem, selector: "button[ngbDropdownItem]" }, { kind: "directive", type: NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1191
1263
|
}
|
|
1192
1264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ExportDataDropdownComponent, decorators: [{
|
|
1193
1265
|
type: Component,
|
|
1194
|
-
args: [{
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1266
|
+
args: [{ selector: 'abp-export-data-dropdown', imports: [
|
|
1267
|
+
NgbDropdown,
|
|
1268
|
+
NgbDropdownToggle,
|
|
1269
|
+
NgbDropdownMenu,
|
|
1270
|
+
NgbDropdownButtonItem,
|
|
1271
|
+
NgbDropdownItem,
|
|
1272
|
+
LocalizationPipe,
|
|
1273
|
+
], template: "<div ngbDropdown class=\"d-inline-block ngb-dropdown\">\r\n <button class=\"btn btn-outline-primary btn-sm\" id=\"Import\" ngbDropdownToggle>\r\n {{ 'AbpIdentity::Export' | abpLocalization }}\r\n </button>\r\n\r\n <div ngbDropdownMenu id=\"options\" aria-labelledby=\"Import\">\r\n <button ngbDropdownItem (click)=\"exportExcel()\">\r\n {{ 'AbpIdentity::ToExcel' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"exportCSV()\">\r\n {{ 'AbpIdentity::ToCSV' | abpLocalization }}\r\n </button>\r\n </div>\r\n</div>\r\n" }]
|
|
1274
|
+
}], ctorParameters: () => [] });
|
|
1199
1275
|
|
|
1200
1276
|
class ClaimsComponent {
|
|
1201
1277
|
constructor() {
|
|
@@ -1279,23 +1355,35 @@ class ClaimsComponent {
|
|
|
1279
1355
|
});
|
|
1280
1356
|
}
|
|
1281
1357
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ClaimsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1282
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ClaimsComponent, isStandalone:
|
|
1358
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: ClaimsComponent, isStandalone: true, selector: "abp-claims", providers: [
|
|
1283
1359
|
ListService,
|
|
1284
1360
|
{
|
|
1285
1361
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1286
1362
|
useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
1287
1363
|
},
|
|
1288
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters
|
|
1364
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpIdentity\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected.name) {\r\n - {{ selected.name }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewClaimType' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"claimTypeForm\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
1289
1365
|
}
|
|
1290
1366
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: ClaimsComponent, decorators: [{
|
|
1291
1367
|
type: Component,
|
|
1292
|
-
args: [{
|
|
1368
|
+
args: [{ selector: 'abp-claims', providers: [
|
|
1293
1369
|
ListService,
|
|
1294
1370
|
{
|
|
1295
1371
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1296
1372
|
useValue: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
1297
1373
|
},
|
|
1298
|
-
],
|
|
1374
|
+
], imports: [
|
|
1375
|
+
FormsModule,
|
|
1376
|
+
ReactiveFormsModule,
|
|
1377
|
+
NgxValidateCoreModule,
|
|
1378
|
+
ModalCloseDirective,
|
|
1379
|
+
LocalizationPipe,
|
|
1380
|
+
ExtensibleTableComponent,
|
|
1381
|
+
ExtensibleFormComponent,
|
|
1382
|
+
AdvancedEntityFiltersComponent,
|
|
1383
|
+
PageComponent,
|
|
1384
|
+
ModalComponent,
|
|
1385
|
+
ButtonComponent,
|
|
1386
|
+
], template: "<abp-page [title]=\"'AbpIdentity::ClaimTypes' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-claim-types-wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpIdentity\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"modalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (selected?.id) {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected.name) {\r\n - {{ selected.name }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewClaimType' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <form [formGroup]=\"form\" id=\"claimTypeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <div class=\"mt-2 fade-in-top\">\r\n <abp-extensible-form [selectedRecord]=\"selected\" />\r\n </div>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" buttonType=\"submit\" formName=\"claimTypeForm\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1299
1387
|
}], propDecorators: { modalContent: [{
|
|
1300
1388
|
type: ViewChild,
|
|
1301
1389
|
args: ['modalContent']
|
|
@@ -1368,14 +1456,11 @@ class AbstractOrganizationUnitComponent {
|
|
|
1368
1456
|
this.isModalVisible = true;
|
|
1369
1457
|
}
|
|
1370
1458
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1371
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: AbstractOrganizationUnitComponent, isStandalone:
|
|
1459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: AbstractOrganizationUnitComponent, isStandalone: true, selector: "ng-component", inputs: { selectedOrganizationUnit: "selectedOrganizationUnit" }, outputs: { onAdded: "onAdded", onDeleted: "onDeleted" }, usesOnChanges: true, ngImport: i0, template: '', isInline: true }); }
|
|
1372
1460
|
}
|
|
1373
1461
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
|
|
1374
1462
|
type: Component,
|
|
1375
|
-
args: [{
|
|
1376
|
-
standalone: false,
|
|
1377
|
-
template: '',
|
|
1378
|
-
}]
|
|
1463
|
+
args: [{ template: '' }]
|
|
1379
1464
|
}], ctorParameters: () => [], propDecorators: { selectedOrganizationUnit: [{
|
|
1380
1465
|
type: Input
|
|
1381
1466
|
}], onAdded: [{
|
|
@@ -1451,11 +1536,18 @@ class DeleteOrganizationUnitComponent {
|
|
|
1451
1536
|
this.service.closeDeleteModal();
|
|
1452
1537
|
}
|
|
1453
1538
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1454
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: DeleteOrganizationUnitComponent, isStandalone: true, selector: "abp-delete-organization-unit", outputs: { deleted: "deleted" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{\r\n 'AbpIdentity::OrganizationUnitDeletionConfirmationMessage' | abpLocalization: service.name()\r\n }}\r\n </p>\r\n\r\n <form [formGroup]=\"form\" id=\"delete-form\" (ngSubmit)=\"save()\">\r\n @if (service.hasMemberOrRole()) {\r\n <p class=\"mt-2\">\r\n {{\r\n 'AbpIdentity::ChooseAnActionForOrganizationUnit' | abpLocalization: service.countText()\r\n }}\r\n </p>\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">\r\n {{ 'AbpIdentity::UnassignOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n @if (service.hasOtherUnits()) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">\r\n {{ 'AbpIdentity::AssignUsersToOtherOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n\r\n @if (form.value.assignType) {\r\n <select\r\n class=\"form-select mt-2\"\r\n formControlName=\"organizationUnitId\"\r\n [ngClass]=\"{ 'border-danger': showAssignErrorMessage() }\"\r\n >\r\n <option [ngValue]=\"null\">\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::SelectAnRoleToAssign'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [ngValue]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n @if (showAssignErrorMessage()) {\r\n <span class=\"text-danger\">\r\n {{ 'AbpValidation::ThisFieldIsRequired.' | abpLocalization }}\r\n </span>\r\n }\r\n }\r\n }\r\n }\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-danger\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-danger\"\r\n [loading]=\"service.loading()\"\r\n formName=\"delete-form\"\r\n >\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type:
|
|
1539
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: DeleteOrganizationUnitComponent, isStandalone: true, selector: "abp-delete-organization-unit", outputs: { deleted: "deleted" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{\r\n 'AbpIdentity::OrganizationUnitDeletionConfirmationMessage' | abpLocalization: service.name()\r\n }}\r\n </p>\r\n\r\n <form [formGroup]=\"form\" id=\"delete-form\" (ngSubmit)=\"save()\">\r\n @if (service.hasMemberOrRole()) {\r\n <p class=\"mt-2\">\r\n {{\r\n 'AbpIdentity::ChooseAnActionForOrganizationUnit' | abpLocalization: service.countText()\r\n }}\r\n </p>\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">\r\n {{ 'AbpIdentity::UnassignOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n @if (service.hasOtherUnits()) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">\r\n {{ 'AbpIdentity::AssignUsersToOtherOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n\r\n @if (form.value.assignType) {\r\n <select\r\n class=\"form-select mt-2\"\r\n formControlName=\"organizationUnitId\"\r\n [ngClass]=\"{ 'border-danger': showAssignErrorMessage() }\"\r\n >\r\n <option [ngValue]=\"null\">\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::SelectAnRoleToAssign'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [ngValue]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n @if (showAssignErrorMessage()) {\r\n <span class=\"text-danger\">\r\n {{ 'AbpValidation::ThisFieldIsRequired.' | abpLocalization }}\r\n </span>\r\n }\r\n }\r\n }\r\n }\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-danger\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-danger\"\r\n [loading]=\"service.loading()\"\r\n formName=\"delete-form\"\r\n >\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.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.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1455
1540
|
}
|
|
1456
1541
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: DeleteOrganizationUnitComponent, decorators: [{
|
|
1457
1542
|
type: Component,
|
|
1458
|
-
args: [{ selector: 'abp-delete-organization-unit', imports: [
|
|
1543
|
+
args: [{ selector: 'abp-delete-organization-unit', imports: [
|
|
1544
|
+
FormsModule,
|
|
1545
|
+
ReactiveFormsModule,
|
|
1546
|
+
ModalCloseDirective,
|
|
1547
|
+
LocalizationPipe,
|
|
1548
|
+
ModalComponent,
|
|
1549
|
+
ButtonComponent,
|
|
1550
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{\r\n 'AbpIdentity::OrganizationUnitDeletionConfirmationMessage' | abpLocalization: service.name()\r\n }}\r\n </p>\r\n\r\n <form [formGroup]=\"form\" id=\"delete-form\" (ngSubmit)=\"save()\">\r\n @if (service.hasMemberOrRole()) {\r\n <p class=\"mt-2\">\r\n {{\r\n 'AbpIdentity::ChooseAnActionForOrganizationUnit' | abpLocalization: service.countText()\r\n }}\r\n </p>\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">\r\n {{ 'AbpIdentity::UnassignOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n @if (service.hasOtherUnits()) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">\r\n {{ 'AbpIdentity::AssignUsersToOtherOrganizationUnit' | abpLocalization }}\r\n </label>\r\n </div>\r\n\r\n @if (form.value.assignType) {\r\n <select\r\n class=\"form-select mt-2\"\r\n formControlName=\"organizationUnitId\"\r\n [ngClass]=\"{ 'border-danger': showAssignErrorMessage() }\"\r\n >\r\n <option [ngValue]=\"null\">\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::SelectAnRoleToAssign'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [ngValue]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n @if (showAssignErrorMessage()) {\r\n <span class=\"text-danger\">\r\n {{ 'AbpValidation::ThisFieldIsRequired.' | abpLocalization }}\r\n </span>\r\n }\r\n }\r\n }\r\n }\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-danger\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-danger\"\r\n [loading]=\"service.loading()\"\r\n formName=\"delete-form\"\r\n >\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1459
1551
|
}], propDecorators: { deleted: [{
|
|
1460
1552
|
type: Output
|
|
1461
1553
|
}] } });
|
|
@@ -1492,19 +1584,25 @@ class MoveAllUsersOfUnitComponent {
|
|
|
1492
1584
|
this.service.closeMoveModal();
|
|
1493
1585
|
}
|
|
1494
1586
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1495
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: MoveAllUsersOfUnitComponent, isStandalone: true, selector: "abp-move-all-users-of-unit", outputs: { moved: "moved" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p\r\n [innerHTML]=\"\r\n 'AbpIdentity::MoveAllUsersWithOrganizationUnitTo' | abpLocalization: service.name()\r\n \"\r\n ></p>\r\n <form [formGroup]=\"form\" id=\"move-users\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"selectedOrganizationUnit\">\r\n <option value=\"\" selected>\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::UnassignOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [value]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-primary\"\r\n [loading]=\"service.loading()\"\r\n formName=\"move-users\"\r\n >\r\n <i class=\"fa fa-check\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type:
|
|
1587
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: MoveAllUsersOfUnitComponent, isStandalone: true, selector: "abp-move-all-users-of-unit", outputs: { moved: "moved" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p\r\n [innerHTML]=\"\r\n 'AbpIdentity::MoveAllUsersWithOrganizationUnitTo' | abpLocalization: service.name()\r\n \"\r\n ></p>\r\n <form [formGroup]=\"form\" id=\"move-users\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"selectedOrganizationUnit\">\r\n <option value=\"\" selected>\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::UnassignOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [value]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-primary\"\r\n [loading]=\"service.loading()\"\r\n formName=\"move-users\"\r\n >\r\n <i class=\"fa fa-check\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\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: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
1496
1588
|
}
|
|
1497
1589
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersOfUnitComponent, decorators: [{
|
|
1498
1590
|
type: Component,
|
|
1499
|
-
args: [{ selector: 'abp-move-all-users-of-unit', imports: [
|
|
1591
|
+
args: [{ selector: 'abp-move-all-users-of-unit', imports: [
|
|
1592
|
+
ReactiveFormsModule,
|
|
1593
|
+
ModalCloseDirective,
|
|
1594
|
+
LocalizationPipe,
|
|
1595
|
+
ModalComponent,
|
|
1596
|
+
ButtonComponent,
|
|
1597
|
+
], template: "<abp-modal\r\n [visible]=\"service.visible()\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p\r\n [innerHTML]=\"\r\n 'AbpIdentity::MoveAllUsersWithOrganizationUnitTo' | abpLocalization: service.name()\r\n \"\r\n ></p>\r\n <form [formGroup]=\"form\" id=\"move-users\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"selectedOrganizationUnit\">\r\n <option value=\"\" selected>\r\n {{\r\n (service.loading()\r\n ? 'AbpUi::LoadingWithThreeDot'\r\n : 'AbpIdentity::UnassignOrganizationUnit'\r\n ) | abpLocalization\r\n }}\r\n </option>\r\n @for (item of service.otherOrganizationUnits(); track $index) {\r\n <option [value]=\"item.id\">\r\n {{ item.displayName }}\r\n </option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n\r\n <abp-button\r\n buttonType=\"submit\"\r\n buttonClass=\"btn btn-primary\"\r\n [loading]=\"service.loading()\"\r\n formName=\"move-users\"\r\n >\r\n <i class=\"fa fa-check\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1500
1598
|
}], propDecorators: { moved: [{
|
|
1501
1599
|
type: Output
|
|
1502
1600
|
}] } });
|
|
1503
1601
|
|
|
1504
1602
|
class OrganizationMembersModalBodyComponent {
|
|
1505
|
-
constructor(
|
|
1506
|
-
this.list =
|
|
1507
|
-
this.userService =
|
|
1603
|
+
constructor() {
|
|
1604
|
+
this.list = inject((ListService));
|
|
1605
|
+
this.userService = inject(IdentityUserService);
|
|
1508
1606
|
this.allUnits = { items: [] };
|
|
1509
1607
|
}
|
|
1510
1608
|
ngOnInit() {
|
|
@@ -1522,8 +1620,8 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1522
1620
|
this.checkedUnits[event.row.id] = !this.checkedUnits[event.row.id];
|
|
1523
1621
|
}
|
|
1524
1622
|
}
|
|
1525
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [
|
|
1526
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganizationMembersModalBodyComponent, isStandalone:
|
|
1623
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1624
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganizationMembersModalBodyComponent, isStandalone: true, selector: "abp-organization-members-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
|
|
1527
1625
|
<div id="data-tables-table-filter" class="data-tables-filter mb-3">
|
|
1528
1626
|
<div class="input-group">
|
|
1529
1627
|
<input
|
|
@@ -1544,7 +1642,7 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1544
1642
|
[actionsTemplate]="customAction"
|
|
1545
1643
|
[list]="list"
|
|
1546
1644
|
(tableActivate)="onTableSelect($event)"
|
|
1547
|
-
|
|
1645
|
+
/>
|
|
1548
1646
|
</div>
|
|
1549
1647
|
|
|
1550
1648
|
<ng-template #customAction let-row>
|
|
@@ -1555,12 +1653,11 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1555
1653
|
[disabled]="isCheckboxDisabled(row.id)"
|
|
1556
1654
|
/>
|
|
1557
1655
|
</ng-template>
|
|
1558
|
-
`, isInline: true, 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: "component", type:
|
|
1656
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }] }); }
|
|
1559
1657
|
}
|
|
1560
1658
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
|
|
1561
1659
|
type: Component,
|
|
1562
1660
|
args: [{
|
|
1563
|
-
standalone: false,
|
|
1564
1661
|
selector: 'abp-organization-members-modal-body',
|
|
1565
1662
|
template: `
|
|
1566
1663
|
<div id="data-tables-table-filter" class="data-tables-filter mb-3">
|
|
@@ -1583,7 +1680,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1583
1680
|
[actionsTemplate]="customAction"
|
|
1584
1681
|
[list]="list"
|
|
1585
1682
|
(tableActivate)="onTableSelect($event)"
|
|
1586
|
-
|
|
1683
|
+
/>
|
|
1587
1684
|
</div>
|
|
1588
1685
|
|
|
1589
1686
|
<ng-template #customAction let-row>
|
|
@@ -1596,24 +1693,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1596
1693
|
</ng-template>
|
|
1597
1694
|
`,
|
|
1598
1695
|
providers: [ListService],
|
|
1696
|
+
imports: [FormsModule, LocalizationPipe, ExtensibleTableComponent],
|
|
1599
1697
|
}]
|
|
1600
|
-
}],
|
|
1698
|
+
}], propDecorators: { checkedUnits: [{
|
|
1601
1699
|
type: Input
|
|
1602
1700
|
}], isCheckboxDisabled: [{
|
|
1603
1701
|
type: Input
|
|
1604
1702
|
}] } });
|
|
1605
1703
|
|
|
1606
1704
|
class SelectedOrganizationUnitComponent {
|
|
1607
|
-
constructor(
|
|
1608
|
-
this.organizationUnitsStateService =
|
|
1705
|
+
constructor() {
|
|
1706
|
+
this.organizationUnitsStateService = inject(OrganizationUnitsStateService);
|
|
1609
1707
|
}
|
|
1610
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectedOrganizationUnitComponent, deps: [
|
|
1611
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SelectedOrganizationUnitComponent, isStandalone:
|
|
1708
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectedOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1709
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: SelectedOrganizationUnitComponent, isStandalone: true, selector: "abp-selected-organization-unit", ngImport: i0, template: "@if (organizationUnitsStateService.getSelectedNode$() | async; as selectedNode) {\r\n <h5 class=\"card-title\">\r\n {{ selectedNode.displayName }}\r\n </h5>\r\n}\r\n", dependencies: [{ kind: "pipe", type: AsyncPipe, name: "async" }] }); }
|
|
1612
1710
|
}
|
|
1613
1711
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SelectedOrganizationUnitComponent, decorators: [{
|
|
1614
1712
|
type: Component,
|
|
1615
|
-
args: [{
|
|
1616
|
-
}]
|
|
1713
|
+
args: [{ selector: 'abp-selected-organization-unit', imports: [AsyncPipe], template: "@if (organizationUnitsStateService.getSelectedNode$() | async; as selectedNode) {\r\n <h5 class=\"card-title\">\r\n {{ selectedNode.displayName }}\r\n </h5>\r\n}\r\n" }]
|
|
1714
|
+
}] });
|
|
1617
1715
|
|
|
1618
1716
|
class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
1619
1717
|
constructor() {
|
|
@@ -1621,7 +1719,7 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1621
1719
|
this.modalOption = { size: 'xl' };
|
|
1622
1720
|
}
|
|
1623
1721
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1624
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationMembersComponent, isStandalone:
|
|
1722
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationMembersComponent, isStandalone: true, selector: "abp-organization-members", providers: [
|
|
1625
1723
|
ListService,
|
|
1626
1724
|
{
|
|
1627
1725
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1637,11 +1735,11 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1637
1735
|
deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
|
|
1638
1736
|
},
|
|
1639
1737
|
},
|
|
1640
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectUsers' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "
|
|
1738
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectUsers' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
1641
1739
|
}
|
|
1642
1740
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
|
|
1643
1741
|
type: Component,
|
|
1644
|
-
args: [{
|
|
1742
|
+
args: [{ selector: 'abp-organization-members', providers: [
|
|
1645
1743
|
ListService,
|
|
1646
1744
|
{
|
|
1647
1745
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1657,13 +1755,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1657
1755
|
deletionLocalizationKey: 'AbpIdentity::RemoveUserFromOuWarningMessage',
|
|
1658
1756
|
},
|
|
1659
1757
|
},
|
|
1758
|
+
], imports: [
|
|
1759
|
+
ModalCloseDirective,
|
|
1760
|
+
LocalizationPipe,
|
|
1761
|
+
SelectedOrganizationUnitComponent,
|
|
1762
|
+
ExtensibleTableComponent,
|
|
1763
|
+
OrganizationMembersModalBodyComponent,
|
|
1764
|
+
ModalComponent,
|
|
1765
|
+
ButtonComponent,
|
|
1660
1766
|
], template: "<div class=\"py-2 d-flex justify-content-between align-items-center\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddMember' | abpLocalization }}\r\n </button>\r\n</div>\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\" [options]=\"modalOption\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectUsers' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-members-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-members-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1661
1767
|
}] });
|
|
1662
1768
|
|
|
1663
1769
|
class OrganizationRolesModalBodyComponent {
|
|
1664
|
-
constructor(
|
|
1665
|
-
this.list =
|
|
1666
|
-
this.roleService =
|
|
1770
|
+
constructor() {
|
|
1771
|
+
this.list = inject((ListService));
|
|
1772
|
+
this.roleService = inject(IdentityRoleService);
|
|
1667
1773
|
this.allUnits = { items: [] };
|
|
1668
1774
|
}
|
|
1669
1775
|
ngOnInit() {
|
|
@@ -1681,8 +1787,8 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1681
1787
|
this.checkedUnits[event.row.id] = !this.checkedUnits[event.row.id];
|
|
1682
1788
|
}
|
|
1683
1789
|
}
|
|
1684
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [
|
|
1685
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganizationRolesModalBodyComponent, isStandalone:
|
|
1790
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1791
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: OrganizationRolesModalBodyComponent, isStandalone: true, selector: "abp-organization-roles-modal-body", inputs: { checkedUnits: "checkedUnits", isCheckboxDisabled: "isCheckboxDisabled" }, providers: [ListService], ngImport: i0, template: `
|
|
1686
1792
|
<div class="card">
|
|
1687
1793
|
<abp-extensible-table
|
|
1688
1794
|
actionsText=""
|
|
@@ -1692,7 +1798,7 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1692
1798
|
[actionsTemplate]="customAction"
|
|
1693
1799
|
[list]="list"
|
|
1694
1800
|
(tableActivate)="onTableSelect($event)"
|
|
1695
|
-
|
|
1801
|
+
/>
|
|
1696
1802
|
</div>
|
|
1697
1803
|
|
|
1698
1804
|
<ng-template #customAction let-row>
|
|
@@ -1703,12 +1809,11 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1703
1809
|
[disabled]="isCheckboxDisabled(row.id)"
|
|
1704
1810
|
/>
|
|
1705
1811
|
</ng-template>
|
|
1706
|
-
`, isInline: true, dependencies: [{ 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"] }
|
|
1812
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "ngmodule", type: FormsModule }, { 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"] }] }); }
|
|
1707
1813
|
}
|
|
1708
1814
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
|
|
1709
1815
|
type: Component,
|
|
1710
1816
|
args: [{
|
|
1711
|
-
standalone: false,
|
|
1712
1817
|
selector: 'abp-organization-roles-modal-body',
|
|
1713
1818
|
template: `
|
|
1714
1819
|
<div class="card">
|
|
@@ -1720,7 +1825,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1720
1825
|
[actionsTemplate]="customAction"
|
|
1721
1826
|
[list]="list"
|
|
1722
1827
|
(tableActivate)="onTableSelect($event)"
|
|
1723
|
-
|
|
1828
|
+
/>
|
|
1724
1829
|
</div>
|
|
1725
1830
|
|
|
1726
1831
|
<ng-template #customAction let-row>
|
|
@@ -1733,8 +1838,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1733
1838
|
</ng-template>
|
|
1734
1839
|
`,
|
|
1735
1840
|
providers: [ListService],
|
|
1841
|
+
imports: [ExtensibleTableComponent, FormsModule],
|
|
1736
1842
|
}]
|
|
1737
|
-
}],
|
|
1843
|
+
}], propDecorators: { checkedUnits: [{
|
|
1738
1844
|
type: Input
|
|
1739
1845
|
}], isCheckboxDisabled: [{
|
|
1740
1846
|
type: Input
|
|
@@ -1742,7 +1848,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1742
1848
|
|
|
1743
1849
|
class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
1744
1850
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1745
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationRolesComponent, isStandalone:
|
|
1851
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationRolesComponent, isStandalone: true, selector: "abp-organization-roles", providers: [
|
|
1746
1852
|
ListService,
|
|
1747
1853
|
{
|
|
1748
1854
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1758,11 +1864,11 @@ class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
|
1758
1864
|
deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
|
|
1759
1865
|
},
|
|
1760
1866
|
},
|
|
1761
|
-
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "
|
|
1867
|
+
], usesInheritance: true, ngImport: i0, template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: SelectedOrganizationUnitComponent, selector: "abp-selected-organization-unit" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
1762
1868
|
}
|
|
1763
1869
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
|
|
1764
1870
|
type: Component,
|
|
1765
|
-
args: [{
|
|
1871
|
+
args: [{ selector: 'abp-organization-roles', providers: [
|
|
1766
1872
|
ListService,
|
|
1767
1873
|
{
|
|
1768
1874
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1778,9 +1884,47 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
1778
1884
|
deletionLocalizationKey: 'AbpIdentity::RemoveRoleFromOuWarningMessage',
|
|
1779
1885
|
},
|
|
1780
1886
|
},
|
|
1887
|
+
], imports: [
|
|
1888
|
+
ModalCloseDirective,
|
|
1889
|
+
LocalizationPipe,
|
|
1890
|
+
SelectedOrganizationUnitComponent,
|
|
1891
|
+
ExtensibleTableComponent,
|
|
1892
|
+
OrganizationRolesModalBodyComponent,
|
|
1893
|
+
ModalComponent,
|
|
1894
|
+
ButtonComponent,
|
|
1781
1895
|
], template: "<div class=\"py-2 d-flex justify-content-between\">\r\n <abp-selected-organization-unit></abp-selected-organization-unit>\r\n\r\n <button class=\"btn btn-sm btn-primary mb-2\" (click)=\"openModal()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRole' | abpLocalization }}\r\n </button>\r\n</div>\r\n\r\n<abp-extensible-table\r\n [data]=\"currentOrganizationUnits.items\"\r\n [recordsTotal]=\"currentOrganizationUnits.totalCount\"\r\n [list]=\"list\"\r\n></abp-extensible-table>\r\n\r\n<abp-modal [(visible)]=\"isModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n @if (selectedOrganizationUnit.displayName) {\r\n - {{ selectedOrganizationUnit.displayName }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <abp-organization-roles-modal-body\r\n [checkedUnits]=\"checkedUnits\"\r\n [isCheckboxDisabled]=\"isCheckboxDisabled\"\r\n ></abp-organization-roles-modal-body>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"addUnits()\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}</abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1782
1896
|
}] });
|
|
1783
1897
|
|
|
1898
|
+
const MODULES = [FormsModule, ReactiveFormsModule, NgxValidateCoreModule];
|
|
1899
|
+
const DIRECTIVES = [
|
|
1900
|
+
PermissionDirective,
|
|
1901
|
+
ReplaceableTemplateDirective,
|
|
1902
|
+
AbpVisibleDirective,
|
|
1903
|
+
ModalCloseDirective,
|
|
1904
|
+
LoadingDirective,
|
|
1905
|
+
];
|
|
1906
|
+
const COMPONENTS = [
|
|
1907
|
+
ExtensibleFormComponent,
|
|
1908
|
+
OrganizationMembersComponent,
|
|
1909
|
+
OrganizationRolesComponent,
|
|
1910
|
+
DeleteOrganizationUnitComponent,
|
|
1911
|
+
MoveAllUsersOfUnitComponent,
|
|
1912
|
+
PageComponent,
|
|
1913
|
+
ModalComponent,
|
|
1914
|
+
ButtonComponent,
|
|
1915
|
+
TreeComponent,
|
|
1916
|
+
];
|
|
1917
|
+
const BOOTSTRAP = [
|
|
1918
|
+
NgbDropdownItem,
|
|
1919
|
+
NgbNav,
|
|
1920
|
+
NgbNavItem,
|
|
1921
|
+
NgbNavItemRole,
|
|
1922
|
+
NgbNavLink,
|
|
1923
|
+
NgbNavLinkBase,
|
|
1924
|
+
NgbNavContent,
|
|
1925
|
+
NgbNavOutlet,
|
|
1926
|
+
];
|
|
1927
|
+
const PIPES = [LocalizationPipe];
|
|
1784
1928
|
class OrganizationUnitsComponent {
|
|
1785
1929
|
constructor() {
|
|
1786
1930
|
this.injector = inject(Injector);
|
|
@@ -1905,25 +2049,25 @@ class OrganizationUnitsComponent {
|
|
|
1905
2049
|
this.moveAllUsersOfUnitModalService.openMoveModal(selected);
|
|
1906
2050
|
}
|
|
1907
2051
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1908
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationUnitsComponent, isStandalone:
|
|
2052
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: OrganizationUnitsComponent, isStandalone: true, selector: "abp-organization-units", providers: [
|
|
1909
2053
|
{
|
|
1910
2054
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1911
2055
|
useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
|
|
1912
2056
|
},
|
|
1913
2057
|
DeleteOrganizationUnitService,
|
|
1914
2058
|
MoveAllUsersOfUnitModalService,
|
|
1915
|
-
], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n ></abp-organization-members>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationRolesKey,\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n ></abp-organization-roles>\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (nodeId) {\r\n {{ 'AbpIdentity::EditOrganizationUnit' | abpLocalization }}\r\n @if (selectedUnit.displayName) {\r\n - {{ selectedUnit.displayName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewOrganizationUnit' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\"></abp-extensible-form>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button type=\"button\" class=\"btn btn-outline-primary\" abpClose>\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <abp-button iconClass=\"fa fa-check\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\">{{\r\n 'AbpUi::Save' | abpLocalization\r\n }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-delete-organization-unit\r\n *abpVisible=\"deleteOrganizationUnitService.visible()\"\r\n (deleted)=\"onOUDeleted()\"\r\n/>\r\n<abp-move-all-users-of-unit\r\n *abpVisible=\"moveAllUsersOfUnitModalService.visible()\"\r\n (moved)=\"onOUMoved()\"\r\n/>\r\n", styles: [".fs-15px{font-size:15px}\n"], dependencies: [{ kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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: i2$1.FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: ["debounce", "notValidateOnSubmit", "markAsDirtyWhenSubmit"], outputs: ["ngSubmit"] }, { kind: "directive", type: i2$1.PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: i2$1.ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "component", type: i3$3.ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { 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: "directive", type: i3.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i4.AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "component", type: i4.ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: i4.ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: i4.LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { kind: "directive", type: i4.ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: i1$1.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: i7.TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { kind: "directive", type: i7.ExpandedIconTemplateDirective, selector: "[abpTreeExpandedIconTemplate],[abp-tree-expanded-icon-template]" }, { kind: "component", type: i7.TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "component", type: i10.PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: DeleteOrganizationUnitComponent, selector: "abp-delete-organization-unit", outputs: ["deleted"] }, { kind: "component", type: MoveAllUsersOfUnitComponent, selector: "abp-move-all-users-of-unit", outputs: ["moved"] }, { kind: "component", type: OrganizationMembersComponent, selector: "abp-organization-members" }, { kind: "component", type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { kind: "pipe", type: i2$1.LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2059
|
+
], ngImport: i0, template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationRolesKey,\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (nodeId) {\r\n {{ 'AbpIdentity::EditOrganizationUnit' | abpLocalization }}\r\n @if (selectedUnit.displayName) {\r\n - {{ selectedUnit.displayName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewOrganizationUnit' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\"\r\n >{{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-delete-organization-unit\r\n *abpVisible=\"deleteOrganizationUnitService.visible()\"\r\n (deleted)=\"onOUDeleted()\"\r\n/>\r\n<abp-move-all-users-of-unit\r\n *abpVisible=\"moveAllUsersOfUnitModalService.visible()\"\r\n (moved)=\"onOUMoved()\"\r\n/>\r\n", styles: [".fs-15px{font-size:15px}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "directive", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "directive", type: AbpVisibleDirective, selector: "[abpVisible]", inputs: ["abpVisible"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "directive", type: LoadingDirective, selector: "[abpLoading]", inputs: ["abpLoading", "abpLoadingTargetElement", "abpLoadingDelay"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: OrganizationMembersComponent, selector: "abp-organization-members" }, { kind: "component", type: OrganizationRolesComponent, selector: "abp-organization-roles" }, { kind: "component", type: DeleteOrganizationUnitComponent, selector: "abp-delete-organization-unit", outputs: ["deleted"] }, { kind: "component", type: MoveAllUsersOfUnitComponent, selector: "abp-move-all-users-of-unit", outputs: ["moved"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "component", type: TreeComponent, selector: "abp-tree", inputs: ["noAnimation", "draggable", "checkable", "checkStrictly", "checkedKeys", "nodes", "expandedKeys", "selectedNode", "changeCheckboxWithNode", "isNodeSelected", "beforeDrop"], outputs: ["checkedKeysChange", "expandedKeysChange", "selectedNodeChange", "dropOver", "nzExpandChange"] }, { kind: "directive", type: NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: NgbNav, selector: "[ngbNav]", inputs: ["activeId", "animation", "destroyOnHide", "orientation", "roles", "keyboard"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { kind: "directive", type: NgbNavItem, selector: "[ngbNavItem]", inputs: ["destroyOnHide", "disabled", "domId", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { kind: "directive", type: NgbNavItemRole, selector: "[ngbNavItem]:not(ng-container)" }, { kind: "directive", type: NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: NgbNavLinkBase, selector: "[ngbNavLink]" }, { kind: "directive", type: NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "component", type: NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }] }); }
|
|
1916
2060
|
}
|
|
1917
2061
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
|
|
1918
2062
|
type: Component,
|
|
1919
|
-
args: [{
|
|
2063
|
+
args: [{ selector: 'abp-organization-units', providers: [
|
|
1920
2064
|
{
|
|
1921
2065
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1922
2066
|
useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
|
|
1923
2067
|
},
|
|
1924
2068
|
DeleteOrganizationUnitService,
|
|
1925
2069
|
MoveAllUsersOfUnitModalService,
|
|
1926
|
-
], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n
|
|
2070
|
+
], imports: [...MODULES, ...DIRECTIVES, ...PIPES, ...COMPONENTS, ...BOOTSTRAP], template: "<abp-page\r\n [title]=\"'AbpIdentity::OrganizationUnits' | abpLocalization\"\r\n [toolbar]=\"organizationUnits\"\r\n>\r\n <div class=\"row\">\r\n <div *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageOU'\" class=\"col-12 col-lg-6 col-xl-5\">\r\n <div class=\"card\">\r\n <div class=\"card-header d-flex justify-content-between align-items-center\">\r\n <h5 class=\"card-title\">\r\n {{ 'AbpIdentity::OrganizationTree' | abpLocalization }}\r\n </h5>\r\n <button class=\"btn btn-sm btn-primary\" (click)=\"add()\">\r\n <i class=\"fas fa-plus me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpIdentity::AddRootUnit' | abpLocalization }}\r\n </button>\r\n </div>\r\n <div class=\"card-body\" [abpLoading]=\"loading\">\r\n <abp-tree\r\n [nodes]=\"nodes\"\r\n [(expandedKeys)]=\"expandedKeys\"\r\n [selectedNode]=\"selectedUnit\"\r\n (selectedNodeChange)=\"setSelectedUnit($event)\"\r\n [draggable]=\"true\"\r\n (dropOver)=\"onDrop($event)\"\r\n >\r\n <ng-template abp-tree-expanded-icon-template let-node let-origin=\"origin\">\r\n <i\r\n class=\"far\"\r\n [class.fa-plus-square]=\"!node.isExpanded\"\r\n [class.fa-minus-square]=\"node.isExpanded\"\r\n ></i>\r\n </ng-template>\r\n\r\n <ng-template abpTreeNodeTemplate let-node>\r\n <i class=\"fas fa-folder fs-15px text-primary me-1\" aria-hidden=\"true\"></i>\r\n {{ node.title }}\r\n </ng-template>\r\n\r\n <ng-template #menu let-node>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"edit(node.origin.entity)\">\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"addSubUnit(node.origin.entity)\">\r\n {{ 'AbpIdentity::AddSubUnit' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"moveAllUsers(node.origin.entity)\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </li>\r\n <li class=\"pointer\" ngbDropdownItem (click)=\"delete(node.origin.entity)\">\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </li>\r\n </ng-template>\r\n </abp-tree>\r\n @if (!loading && !nodes?.length) {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::NoOrganizationUnits' | abpLocalization }}\r\n </p>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div\r\n *abpPermission=\"\r\n 'AbpIdentity.OrganizationUnits.ManageMembers || AbpIdentity.OrganizationUnits.ManageRoles'\r\n \"\r\n class=\"col-12 col-lg-6 col-xl-7 card\"\r\n >\r\n <div class=\"card-header\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\">\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageMembers'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Members' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.userCount }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-members\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationMembersKey,\r\n }\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeMembers' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem *abpPermission=\"'AbpIdentity.OrganizationUnits.ManageRoles'\">\r\n <a ngbNavLink>\r\n {{ 'AbpIdentity::Roles' | abpLocalization }}\r\n @if (selectedUnit) {\r\n ({{ selectedUnit.roles.length }})\r\n }\r\n </a>\r\n <ng-template ngbNavContent>\r\n @if (selectedUnit) {\r\n <abp-organization-roles\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n selectedOrganizationUnit: { value: selectedUnit },\r\n },\r\n componentKey: organizationRolesKey,\r\n }\"\r\n (onAdded)=\"get()\"\r\n (onDeleted)=\"get()\"\r\n [selectedOrganizationUnit]=\"selectedUnit\"\r\n />\r\n } @else {\r\n <p class=\"text-muted\">\r\n {{ 'AbpIdentity::SelectAnOrganizationUnitToSeeRoles' | abpLocalization }}\r\n </p>\r\n }\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"card-body pt-0\">\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-modal [(visible)]=\"isNodeModalVisible\" [busy]=\"isModalBusy\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (nodeId) {\r\n {{ 'AbpIdentity::EditOrganizationUnit' | abpLocalization }}\r\n @if (selectedUnit.displayName) {\r\n - {{ selectedUnit.displayName }}\r\n }\r\n } @else {\r\n {{ 'AbpIdentity::NewOrganizationUnit' | abpLocalization }}\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (nodeForm.get('parentId').value; as parentId) {\r\n <div class=\"mb-3\">\r\n <strong>{{\r\n 'AbpIdentity::OrganizationUnit:Parent{0}' | abpLocalization: getParentName(parentId)\r\n }}</strong>\r\n </div>\r\n }\r\n <form [formGroup]=\"nodeForm\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form [selectedRecord]=\"selectedUnit\" />\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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\" (click)=\"save()\" [disabled]=\"nodeForm?.invalid\"\r\n >{{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n\r\n<abp-delete-organization-unit\r\n *abpVisible=\"deleteOrganizationUnitService.visible()\"\r\n (deleted)=\"onOUDeleted()\"\r\n/>\r\n<abp-move-all-users-of-unit\r\n *abpVisible=\"moveAllUsersOfUnitModalService.visible()\"\r\n (moved)=\"onOUMoved()\"\r\n/>\r\n", styles: [".fs-15px{font-size:15px}\n"] }]
|
|
1927
2071
|
}] });
|
|
1928
2072
|
|
|
1929
2073
|
class MoveAllUsersComponent {
|
|
@@ -1968,11 +2112,18 @@ class MoveAllUsersComponent {
|
|
|
1968
2112
|
this.visibleChange.emit({ visible: false, refresh: true });
|
|
1969
2113
|
}
|
|
1970
2114
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1971
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: MoveAllUsersComponent, isStandalone:
|
|
2115
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: MoveAllUsersComponent, isStandalone: true, selector: "abp-move-all-users", inputs: { visible: "visible", selected: "selected" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"visible\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <p [innerHTML]=\"'AbpIdentity::MoveAllUsersWithRoleTo' | abpLocalization: name\"></p>\r\n <form [formGroup]=\"form\" id=\"role-move-users-form\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"role\">\r\n <option value=\"\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::UnassignRole')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">{{ item.name }}</option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"btn btn-primary\"\r\n [loading]=\"loading()\"\r\n [disabled]=\"form.invalid && form.touched\"\r\n form=\"role-move-users-form\"\r\n >\r\n <i class=\"fa fa-check me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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: "ngmodule", type: ReactiveFormsModule }, { 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: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }] }); }
|
|
1972
2116
|
}
|
|
1973
2117
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: MoveAllUsersComponent, decorators: [{
|
|
1974
2118
|
type: Component,
|
|
1975
|
-
args: [{
|
|
2119
|
+
args: [{ selector: 'abp-move-all-users', imports: [
|
|
2120
|
+
FormsModule,
|
|
2121
|
+
ReactiveFormsModule,
|
|
2122
|
+
NgxValidateCoreModule,
|
|
2123
|
+
ModalCloseDirective,
|
|
2124
|
+
LocalizationPipe,
|
|
2125
|
+
ModalComponent,
|
|
2126
|
+
], template: "<abp-modal\r\n [visible]=\"visible\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpIdentity::MoveAllUsers' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n <ng-template #abpBody>\r\n <p [innerHTML]=\"'AbpIdentity::MoveAllUsersWithRoleTo' | abpLocalization: name\"></p>\r\n <form [formGroup]=\"form\" id=\"role-move-users-form\" (ngSubmit)=\"save()\">\r\n <select class=\"form-select mt-2\" formControlName=\"role\">\r\n <option value=\"\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::UnassignRole')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">{{ item.name }}</option>\r\n }\r\n </select>\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-primary\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button\r\n type=\"submit\"\r\n class=\"btn btn-primary\"\r\n [loading]=\"loading()\"\r\n [disabled]=\"form.invalid && form.touched\"\r\n form=\"role-move-users-form\"\r\n >\r\n <i class=\"fa fa-check me-1\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1976
2127
|
}], propDecorators: { visible: [{
|
|
1977
2128
|
type: Input,
|
|
1978
2129
|
args: [{ required: true }]
|
|
@@ -2071,11 +2222,20 @@ class RoleDeleteComponent {
|
|
|
2071
2222
|
this.visibleChange.emit({ visible: false, refresh: true });
|
|
2072
2223
|
}
|
|
2073
2224
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RoleDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2074
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RoleDeleteComponent, isStandalone:
|
|
2225
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RoleDeleteComponent, isStandalone: true, selector: "abp-role-delete", inputs: { visible: "visible", selected: "selected" }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal\r\n [visible]=\"visible\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{ 'AbpIdentity::RoleDeletionConfirmationMessage' | abpLocalization: name }}\r\n </p>\r\n <form [formGroup]=\"form\" id=\"role-delete-form\" (ngSubmit)=\"save()\">\r\n @if (userCount > 0) {\r\n <p class=\"mt-2\">\r\n {{ 'AbpIdentity::ChooseAnActionForRole' | abpLocalization: userCount }}\r\n </p>\r\n\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">{{\r\n 'AbpIdentity::UnassignTheRoleFromTheUsers' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (roles().length > 0) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">{{\r\n 'AbpIdentity::AssignUsersToOtherRole' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (assignType$ | async) {\r\n <select\r\n class=\"form-select mt-2\"\r\n [ngClass]=\"{ 'border-danger': showAssignErrorMessage() }\"\r\n formControlName=\"role\"\r\n >\r\n <option [ngValue]=\"null\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::SelectAnRoleToAssign')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">\r\n {{ item.name }}\r\n </option>\r\n }\r\n </select>\r\n }\r\n @if (showAssignErrorMessage()) {\r\n <span class=\"text-danger\">\r\n {{ 'AbpValidation::ThisFieldIsRequired.' | abpLocalization }}\r\n </span>\r\n }\r\n }\r\n }\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-danger\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-danger\" [loading]=\"loading()\" form=\"role-delete-form\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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.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.SelectControlValueAccessor, selector: "select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]", inputs: ["compareWith"] }, { kind: "directive", type: i1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { 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: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: i2.ValidationDirective, selector: "[formControl],[formControlName]", exportAs: ["validationDirective"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }] }); }
|
|
2075
2226
|
}
|
|
2076
2227
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RoleDeleteComponent, decorators: [{
|
|
2077
2228
|
type: Component,
|
|
2078
|
-
args: [{
|
|
2229
|
+
args: [{ selector: 'abp-role-delete', imports: [
|
|
2230
|
+
FormsModule,
|
|
2231
|
+
ReactiveFormsModule,
|
|
2232
|
+
NgxValidateCoreModule,
|
|
2233
|
+
NgClass,
|
|
2234
|
+
ModalCloseDirective,
|
|
2235
|
+
AsyncPipe,
|
|
2236
|
+
LocalizationPipe,
|
|
2237
|
+
ModalComponent,
|
|
2238
|
+
], template: "<abp-modal\r\n [visible]=\"visible\"\r\n (visibleChange)=\"onVisibleChange($event)\"\r\n [suppressUnsavedChangesWarning]=\"true\"\r\n>\r\n <ng-template #abpHeader>\r\n <h5 class=\"modal-title\">\r\n {{ 'AbpUi::AreYouSure' | abpLocalization }}\r\n </h5>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <p class=\"fw-bold\">\r\n {{ 'AbpIdentity::RoleDeletionConfirmationMessage' | abpLocalization: name }}\r\n </p>\r\n <form [formGroup]=\"form\" id=\"role-delete-form\" (ngSubmit)=\"save()\">\r\n @if (userCount > 0) {\r\n <p class=\"mt-2\">\r\n {{ 'AbpIdentity::ChooseAnActionForRole' | abpLocalization: userCount }}\r\n </p>\r\n\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"unassign\"\r\n [value]=\"false\"\r\n />\r\n <label class=\"form-check-label\" for=\"unassign\">{{\r\n 'AbpIdentity::UnassignTheRoleFromTheUsers' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (roles().length > 0) {\r\n <div class=\"form-check mt-2\">\r\n <input\r\n class=\"form-check-input\"\r\n formControlName=\"assignType\"\r\n type=\"radio\"\r\n name=\"assignType\"\r\n id=\"assign\"\r\n [value]=\"true\"\r\n />\r\n <label class=\"form-check-label\" for=\"assign\">{{\r\n 'AbpIdentity::AssignUsersToOtherRole' | abpLocalization\r\n }}</label>\r\n </div>\r\n @if (assignType$ | async) {\r\n <select\r\n class=\"form-select mt-2\"\r\n [ngClass]=\"{ 'border-danger': showAssignErrorMessage() }\"\r\n formControlName=\"role\"\r\n >\r\n <option [ngValue]=\"null\" selected>\r\n {{\r\n (loading() ? 'AbpUi::LoadingWithThreeDot' : 'AbpIdentity::SelectAnRoleToAssign')\r\n | abpLocalization\r\n }}\r\n </option>\r\n @for (item of roles(); track $index) {\r\n <option [value]=\"item.id\">\r\n {{ item.name }}\r\n </option>\r\n }\r\n </select>\r\n }\r\n @if (showAssignErrorMessage()) {\r\n <span class=\"text-danger\">\r\n {{ 'AbpValidation::ThisFieldIsRequired.' | abpLocalization }}\r\n </span>\r\n }\r\n }\r\n }\r\n </form>\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\r\n <button abpClose type=\"button\" class=\"btn btn-outline-danger\">\r\n {{ 'AbpUi::Cancel' | abpLocalization }}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-danger\" [loading]=\"loading()\" form=\"role-delete-form\">\r\n <i class=\"fa fa-trash\" aria-hidden=\"true\"></i>\r\n {{ 'AbpUi::Delete' | abpLocalization }}\r\n </button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2079
2239
|
}], propDecorators: { visible: [{
|
|
2080
2240
|
type: Input,
|
|
2081
2241
|
args: [{ required: true }]
|
|
@@ -2123,11 +2283,19 @@ class RolesModalComponent {
|
|
|
2123
2283
|
});
|
|
2124
2284
|
}
|
|
2125
2285
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RolesModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2126
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RolesModalComponent, isStandalone: true, selector: "abp-roles-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"roleForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type:
|
|
2286
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RolesModalComponent, isStandalone: true, selector: "abp-roles-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"true\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"roleForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { 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: "ngmodule", type: NgxValidateCoreModule }, { kind: "directive", type: i2.ValidationGroupDirective, selector: "[formGroup],[formGroupName]", exportAs: ["validationGroup"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleFormComponent, selector: "abp-extensible-form", inputs: ["selectedRecord"], exportAs: ["abpExtensibleForm"] }, { kind: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }] }); }
|
|
2127
2287
|
}
|
|
2128
2288
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RolesModalComponent, decorators: [{
|
|
2129
2289
|
type: Component,
|
|
2130
|
-
args: [{ selector: 'abp-roles-modal', imports: [
|
|
2290
|
+
args: [{ selector: 'abp-roles-modal', imports: [
|
|
2291
|
+
ReactiveFormsModule,
|
|
2292
|
+
NgxValidateCoreModule,
|
|
2293
|
+
ModalCloseDirective,
|
|
2294
|
+
LocalizationPipe,
|
|
2295
|
+
ExtensibleFormComponent,
|
|
2296
|
+
ModalComponent,
|
|
2297
|
+
ButtonComponent,
|
|
2298
|
+
], template: "<abp-modal [visible]=\"true\" (visibleChange)=\"onVisibleChange($event)\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n @if (!selected()?.id) {\r\n {{ 'AbpIdentity::NewRole' | abpLocalization }}\r\n } @else {\r\n {{ 'AbpUi::Edit' | abpLocalization }}\r\n @if (selected().name; as roleName) {\r\n - {{ roleName }}\r\n }\r\n }\r\n </h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n @if (form) {\r\n <form id=\"roleForm\" [formGroup]=\"form\" (ngSubmit)=\"save()\" validateOnSubmit>\r\n <abp-extensible-form class=\"row gap-x2\" [selectedRecord]=\"selected()\" />\r\n </form>\r\n }\r\n </ng-template>\r\n\r\n <ng-template #abpFooter>\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=\"roleForm\">\r\n {{ 'AbpUi::Save' | abpLocalization }}\r\n </abp-button>\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
2131
2299
|
}] });
|
|
2132
2300
|
|
|
2133
2301
|
class RolesComponent {
|
|
@@ -2229,23 +2397,34 @@ class RolesComponent {
|
|
|
2229
2397
|
}, 0);
|
|
2230
2398
|
}
|
|
2231
2399
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RolesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2232
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RolesComponent, isStandalone:
|
|
2400
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.8", type: RolesComponent, isStandalone: true, selector: "abp-roles", providers: [
|
|
2233
2401
|
ListService,
|
|
2234
2402
|
{
|
|
2235
2403
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2236
2404
|
useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
2237
2405
|
},
|
|
2238
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters
|
|
2406
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpIdentity\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (visibleRoleDelete) {\r\n <abp-role-delete\r\n [visible]=\"visibleRoleDelete\"\r\n [selected]=\"selected\"\r\n (visibleChange)=\"onVisibleDeleteChange($event)\"\r\n />\r\n}\r\n\r\n@if (visibleMove) {\r\n <abp-move-all-users\r\n [visible]=\"visibleMove\"\r\n [selected]=\"selected\"\r\n (visibleChange)=\"onVisibleMoveChange($event)\"\r\n />\r\n}\r\n\r\n@if (isModalVisible) {\r\n <abp-roles-modal (visibleChange)=\"onVisibleModalChange($event)\" [selected]=\"selected\" />\r\n}\r\n", dependencies: [{ kind: "directive", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: ["abpReplaceableTemplate"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: ClaimModalComponent, selector: "abp-claim-modal", inputs: ["visible", "subject"], outputs: ["visibleChange"] }, { kind: "component", type: RoleDeleteComponent, selector: "abp-role-delete", inputs: ["visible", "selected"], outputs: ["visibleChange"] }, { kind: "component", type: MoveAllUsersComponent, selector: "abp-move-all-users", inputs: ["visible", "selected"], outputs: ["visibleChange"] }, { kind: "component", type: RolesModalComponent, selector: "abp-roles-modal", inputs: ["selected"], outputs: ["visibleChange"] }, { kind: "component", type: AdvancedEntityFiltersComponent, selector: "abp-advanced-entity-filters", inputs: ["list", "localizationSourceName", "entityFilterPlaceholder"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "component", type: PermissionManagementComponent, selector: "abp-permission-management", inputs: ["providerName", "providerKey", "hideBadges", "entityDisplayName", "visible"], outputs: ["visibleChange"], exportAs: ["abpPermissionManagement"] }] }); }
|
|
2239
2407
|
}
|
|
2240
2408
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: RolesComponent, decorators: [{
|
|
2241
2409
|
type: Component,
|
|
2242
|
-
args: [{
|
|
2410
|
+
args: [{ selector: 'abp-roles', providers: [
|
|
2243
2411
|
ListService,
|
|
2244
2412
|
{
|
|
2245
2413
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2246
2414
|
useValue: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
2247
2415
|
},
|
|
2248
|
-
],
|
|
2416
|
+
], imports: [
|
|
2417
|
+
ReplaceableTemplateDirective,
|
|
2418
|
+
LocalizationPipe,
|
|
2419
|
+
ExtensibleTableComponent,
|
|
2420
|
+
ClaimModalComponent,
|
|
2421
|
+
RoleDeleteComponent,
|
|
2422
|
+
MoveAllUsersComponent,
|
|
2423
|
+
RolesModalComponent,
|
|
2424
|
+
AdvancedEntityFiltersComponent,
|
|
2425
|
+
PageComponent,
|
|
2426
|
+
PermissionManagementComponent,
|
|
2427
|
+
], template: "<abp-page [title]=\"'AbpIdentity::Roles' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div id=\"identity-roles-wrapper\">\r\n <abp-advanced-entity-filters localizationSourceName=\"AbpIdentity\" [list]=\"list\" />\r\n\r\n <div class=\"card\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n</abp-page>\r\n\r\n<abp-permission-management\r\n *abpReplaceableTemplate=\"{\r\n inputs: {\r\n providerName: { value: 'R' },\r\n providerKey: { value: providerKey },\r\n hideBadges: { value: true },\r\n visible: { value: visiblePermissions, twoWay: true },\r\n },\r\n outputs: { visibleChange: onVisiblePermissionChange },\r\n componentKey: 'PermissionManagement.PermissionManagementComponent',\r\n }\"\r\n [(visible)]=\"visiblePermissions\"\r\n [providerKey]=\"providerKey\"\r\n providerName=\"R\"\r\n [hideBadges]=\"true\"\r\n/>\r\n\r\n@if (visibleClaims) {\r\n <abp-claim-modal [(visible)]=\"visibleClaims\" [subject]=\"claimSubject\" />\r\n}\r\n\r\n@if (visibleRoleDelete) {\r\n <abp-role-delete\r\n [visible]=\"visibleRoleDelete\"\r\n [selected]=\"selected\"\r\n (visibleChange)=\"onVisibleDeleteChange($event)\"\r\n />\r\n}\r\n\r\n@if (visibleMove) {\r\n <abp-move-all-users\r\n [visible]=\"visibleMove\"\r\n [selected]=\"selected\"\r\n (visibleChange)=\"onVisibleMoveChange($event)\"\r\n />\r\n}\r\n\r\n@if (isModalVisible) {\r\n <abp-roles-modal (visibleChange)=\"onVisibleModalChange($event)\" [selected]=\"selected\" />\r\n}\r\n" }]
|
|
2249
2428
|
}], propDecorators: { modalContent: [{
|
|
2250
2429
|
type: ViewChild,
|
|
2251
2430
|
args: ['modalContent']
|
|
@@ -2286,24 +2465,31 @@ class SecurityLogsComponent {
|
|
|
2286
2465
|
}
|
|
2287
2466
|
clearFilters() {
|
|
2288
2467
|
this.filter = {};
|
|
2468
|
+
this.list.get();
|
|
2289
2469
|
}
|
|
2290
2470
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SecurityLogsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2291
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: SecurityLogsComponent, isStandalone:
|
|
2471
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.1.8", type: SecurityLogsComponent, isStandalone: true, selector: "abp-security-logs", providers: [
|
|
2292
2472
|
ListService,
|
|
2293
2473
|
{
|
|
2294
2474
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2295
2475
|
useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
2296
2476
|
},
|
|
2297
|
-
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::StartTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::EndTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:IpAddress' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientIpAddress\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row justify-content-end gap-md-0 gap-2\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <i class=\"fa fa-search me-1\"></i>\r\n <span>{{ 'AbpUi::Search' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\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:
|
|
2477
|
+
], ngImport: i0, template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::StartTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::EndTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:IpAddress' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientIpAddress\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row justify-content-end gap-md-0 gap-2\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <i class=\"fa fa-search me-1\"></i>\r\n <span>{{ 'AbpUi::Search' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n", dependencies: [{ kind: "ngmodule", type: FormsModule }, { 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "component", type: DatetimePickerComponent, selector: "abp-datetime-picker" }, { kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected"], outputs: ["tableActivate", "selectionChange"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }] }); }
|
|
2298
2478
|
}
|
|
2299
2479
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: SecurityLogsComponent, decorators: [{
|
|
2300
2480
|
type: Component,
|
|
2301
|
-
args: [{
|
|
2481
|
+
args: [{ selector: 'abp-security-logs', providers: [
|
|
2302
2482
|
ListService,
|
|
2303
2483
|
{
|
|
2304
2484
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2305
2485
|
useValue: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
2306
2486
|
},
|
|
2487
|
+
], imports: [
|
|
2488
|
+
FormsModule,
|
|
2489
|
+
LocalizationPipe,
|
|
2490
|
+
DatetimePickerComponent,
|
|
2491
|
+
ExtensibleTableComponent,
|
|
2492
|
+
PageComponent,
|
|
2307
2493
|
], template: "<div id=\"wrapper\">\r\n <abp-page [title]=\"'AbpIdentity::SecurityLogs' | abpLocalization\" [toolbar]=\"data.items\">\r\n <div class=\"card\">\r\n <div class=\"card-body pb-lg-3\">\r\n <div class=\"row\" (keyup.enter)=\"list.get()\">\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::StartTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.startTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-12 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{ 'AbpIdentity::EndTime' | abpLocalization }}</label>\r\n <abp-datetime-picker\r\n [(ngModel)]=\"filter.endTime\"\r\n [ngModelOptions]=\"{ standalone: true }\"\r\n />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Application' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.applicationName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Identity' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.identity\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:UserName' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.userName\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Action' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.action\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:Client' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientId\" />\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:CorrelationId' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.correlationId\" />\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\">{{\r\n 'AbpIdentity::SecurityLogs:IpAddress' | abpLocalization\r\n }}</label>\r\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"filter.clientIpAddress\" />\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"row justify-content-end gap-md-0 gap-2\">\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-outline-primary\" (click)=\"clearFilters()\">\r\n <span>{{ 'AbpUi::Clear' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n <div class=\"col-md-6 col-lg-3 col-xxl-3\">\r\n <div class=\"mb-lg-0 d-grid\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"list.get()\">\r\n <i class=\"fa fa-search me-1\"></i>\r\n <span>{{ 'AbpUi::Search' | abpLocalization }}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card\">\r\n <div class=\"card-body p-0\">\r\n <abp-extensible-table [data]=\"data.items\" [recordsTotal]=\"data.totalCount\" [list]=\"list\" />\r\n </div>\r\n </div>\r\n </abp-page>\r\n</div>\r\n" }]
|
|
2308
2494
|
}] });
|
|
2309
2495
|
|
|
@@ -3301,7 +3487,7 @@ const routes = [
|
|
|
3301
3487
|
];
|
|
3302
3488
|
class IdentityRoutingModule {
|
|
3303
3489
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3304
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: IdentityRoutingModule, imports: [i1$
|
|
3490
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: IdentityRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
3305
3491
|
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: IdentityRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
3306
3492
|
}
|
|
3307
3493
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: IdentityRoutingModule, decorators: [{
|
|
@@ -3313,7 +3499,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
3313
3499
|
}] });
|
|
3314
3500
|
|
|
3315
3501
|
/* tslint:disable:max-line-length */
|
|
3316
|
-
const
|
|
3502
|
+
const exportAndImports = [
|
|
3317
3503
|
UsersComponent,
|
|
3318
3504
|
OrganizationUnitsComponent,
|
|
3319
3505
|
OrganizationMembersComponent,
|
|
@@ -3360,27 +3546,14 @@ class IdentityModule {
|
|
|
3360
3546
|
],
|
|
3361
3547
|
};
|
|
3362
3548
|
}
|
|
3549
|
+
/**
|
|
3550
|
+
* @deprecated `IdentityModule.forLazy()` is deprecated. You can use `createRoutes` **function** instead.
|
|
3551
|
+
*/
|
|
3363
3552
|
static forLazy(options = {}) {
|
|
3364
3553
|
return new LazyModuleFactory(IdentityModule.forChild(options));
|
|
3365
3554
|
}
|
|
3366
3555
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3367
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: IdentityModule,
|
|
3368
|
-
OrganizationUnitsComponent,
|
|
3369
|
-
OrganizationMembersComponent,
|
|
3370
|
-
OrganizationMembersModalBodyComponent,
|
|
3371
|
-
OrganizationRolesComponent,
|
|
3372
|
-
OrganizationRolesModalBodyComponent,
|
|
3373
|
-
AbstractOrganizationUnitComponent,
|
|
3374
|
-
SecurityLogsComponent,
|
|
3375
|
-
SelectedOrganizationUnitComponent,
|
|
3376
|
-
ExternalLoginComponent,
|
|
3377
|
-
UserDropdownMenuComponent,
|
|
3378
|
-
RolesComponent,
|
|
3379
|
-
MoveAllUsersComponent,
|
|
3380
|
-
RoleDeleteComponent,
|
|
3381
|
-
ExportDataDropdownComponent,
|
|
3382
|
-
ClaimsComponent,
|
|
3383
|
-
ClaimModalComponent], imports: [CoreModule,
|
|
3556
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.8", ngImport: i0, type: IdentityModule, imports: [CoreModule,
|
|
3384
3557
|
CommercialUiModule,
|
|
3385
3558
|
IdentityRoutingModule,
|
|
3386
3559
|
NgbNavModule,
|
|
@@ -3402,7 +3575,23 @@ class IdentityModule {
|
|
|
3402
3575
|
UserLockModalComponent,
|
|
3403
3576
|
SetUserPasswordComponent,
|
|
3404
3577
|
UserSessionsComponent,
|
|
3405
|
-
DatetimePickerComponent
|
|
3578
|
+
DatetimePickerComponent, UsersComponent,
|
|
3579
|
+
OrganizationUnitsComponent,
|
|
3580
|
+
OrganizationMembersComponent,
|
|
3581
|
+
OrganizationMembersModalBodyComponent,
|
|
3582
|
+
OrganizationRolesComponent,
|
|
3583
|
+
OrganizationRolesModalBodyComponent,
|
|
3584
|
+
AbstractOrganizationUnitComponent,
|
|
3585
|
+
SecurityLogsComponent,
|
|
3586
|
+
SelectedOrganizationUnitComponent,
|
|
3587
|
+
ExternalLoginComponent,
|
|
3588
|
+
UserDropdownMenuComponent,
|
|
3589
|
+
RolesComponent,
|
|
3590
|
+
MoveAllUsersComponent,
|
|
3591
|
+
RoleDeleteComponent,
|
|
3592
|
+
ExportDataDropdownComponent,
|
|
3593
|
+
ClaimsComponent,
|
|
3594
|
+
ClaimModalComponent], exports: [UsersComponent,
|
|
3406
3595
|
OrganizationUnitsComponent,
|
|
3407
3596
|
OrganizationMembersComponent,
|
|
3408
3597
|
OrganizationMembersModalBodyComponent,
|
|
@@ -3441,13 +3630,25 @@ class IdentityModule {
|
|
|
3441
3630
|
UserLockModalComponent,
|
|
3442
3631
|
SetUserPasswordComponent,
|
|
3443
3632
|
UserSessionsComponent,
|
|
3444
|
-
DatetimePickerComponent
|
|
3633
|
+
DatetimePickerComponent, UsersComponent,
|
|
3634
|
+
OrganizationUnitsComponent,
|
|
3635
|
+
OrganizationMembersComponent,
|
|
3636
|
+
OrganizationMembersModalBodyComponent,
|
|
3637
|
+
OrganizationRolesComponent,
|
|
3638
|
+
OrganizationRolesModalBodyComponent,
|
|
3639
|
+
SecurityLogsComponent,
|
|
3640
|
+
ExternalLoginComponent,
|
|
3641
|
+
UserDropdownMenuComponent,
|
|
3642
|
+
RolesComponent,
|
|
3643
|
+
MoveAllUsersComponent,
|
|
3644
|
+
RoleDeleteComponent,
|
|
3645
|
+
ClaimsComponent,
|
|
3646
|
+
ClaimModalComponent] }); }
|
|
3445
3647
|
}
|
|
3446
3648
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImport: i0, type: IdentityModule, decorators: [{
|
|
3447
3649
|
type: NgModule,
|
|
3448
3650
|
args: [{
|
|
3449
|
-
|
|
3450
|
-
exports: [...exportAndDeclarations],
|
|
3651
|
+
exports: [...exportAndImports],
|
|
3451
3652
|
imports: [
|
|
3452
3653
|
CoreModule,
|
|
3453
3654
|
CommercialUiModule,
|
|
@@ -3472,13 +3673,113 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.8", ngImpor
|
|
|
3472
3673
|
SetUserPasswordComponent,
|
|
3473
3674
|
UserSessionsComponent,
|
|
3474
3675
|
DatetimePickerComponent,
|
|
3676
|
+
...exportAndImports,
|
|
3475
3677
|
],
|
|
3476
3678
|
}]
|
|
3477
3679
|
}] });
|
|
3478
3680
|
|
|
3681
|
+
function createRoutes(config = {}) {
|
|
3682
|
+
return [
|
|
3683
|
+
{ path: '', redirectTo: 'roles', pathMatch: 'full' },
|
|
3684
|
+
{
|
|
3685
|
+
path: '',
|
|
3686
|
+
component: RouterOutletComponent,
|
|
3687
|
+
providers: provideIdentityContributors(config),
|
|
3688
|
+
canActivate: [authGuard, permissionGuard],
|
|
3689
|
+
resolve: [identityExtensionsResolver],
|
|
3690
|
+
children: [
|
|
3691
|
+
{
|
|
3692
|
+
path: 'roles',
|
|
3693
|
+
component: ReplaceableRouteContainerComponent,
|
|
3694
|
+
data: {
|
|
3695
|
+
requiredPolicy: 'AbpIdentity.Roles',
|
|
3696
|
+
replaceableComponent: {
|
|
3697
|
+
key: "Identity.RolesComponent" /* eIdentityComponents.Roles */,
|
|
3698
|
+
defaultComponent: RolesComponent,
|
|
3699
|
+
},
|
|
3700
|
+
},
|
|
3701
|
+
title: 'AbpIdentity::Roles',
|
|
3702
|
+
},
|
|
3703
|
+
{
|
|
3704
|
+
path: 'users',
|
|
3705
|
+
component: ReplaceableRouteContainerComponent,
|
|
3706
|
+
data: {
|
|
3707
|
+
requiredPolicy: 'AbpIdentity.Users',
|
|
3708
|
+
replaceableComponent: {
|
|
3709
|
+
key: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
3710
|
+
defaultComponent: UsersComponent,
|
|
3711
|
+
},
|
|
3712
|
+
},
|
|
3713
|
+
title: 'AbpIdentity::Users',
|
|
3714
|
+
},
|
|
3715
|
+
{
|
|
3716
|
+
path: 'claim-types',
|
|
3717
|
+
component: ReplaceableRouteContainerComponent,
|
|
3718
|
+
data: {
|
|
3719
|
+
requiredPolicy: 'AbpIdentity.ClaimTypes',
|
|
3720
|
+
replaceableComponent: {
|
|
3721
|
+
key: "Identity.ClaimsComponent" /* eIdentityComponents.Claims */,
|
|
3722
|
+
defaultComponent: ClaimsComponent,
|
|
3723
|
+
},
|
|
3724
|
+
},
|
|
3725
|
+
title: 'AbpIdentity::ClaimTypes',
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
path: 'organization-units',
|
|
3729
|
+
component: ReplaceableRouteContainerComponent,
|
|
3730
|
+
data: {
|
|
3731
|
+
requiredPolicy: 'AbpIdentity.OrganizationUnits',
|
|
3732
|
+
replaceableComponent: {
|
|
3733
|
+
key: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
|
|
3734
|
+
defaultComponent: OrganizationUnitsComponent,
|
|
3735
|
+
},
|
|
3736
|
+
},
|
|
3737
|
+
title: 'AbpIdentity::OrganizationUnits',
|
|
3738
|
+
},
|
|
3739
|
+
{
|
|
3740
|
+
path: 'security-logs',
|
|
3741
|
+
component: ReplaceableRouteContainerComponent,
|
|
3742
|
+
data: {
|
|
3743
|
+
requiredPolicy: 'AbpIdentity.SecurityLogs',
|
|
3744
|
+
replaceableComponent: {
|
|
3745
|
+
key: "Identity.SecurityLogs" /* eIdentityComponents.SecurityLogs */,
|
|
3746
|
+
defaultComponent: SecurityLogsComponent,
|
|
3747
|
+
},
|
|
3748
|
+
},
|
|
3749
|
+
title: 'AbpIdentity::SecurityLogs',
|
|
3750
|
+
},
|
|
3751
|
+
],
|
|
3752
|
+
},
|
|
3753
|
+
];
|
|
3754
|
+
}
|
|
3755
|
+
function provideIdentityContributors(options = {}) {
|
|
3756
|
+
return [
|
|
3757
|
+
{
|
|
3758
|
+
provide: IDENTITY_ENTITY_ACTION_CONTRIBUTORS,
|
|
3759
|
+
useValue: options.entityActionContributors,
|
|
3760
|
+
},
|
|
3761
|
+
{
|
|
3762
|
+
provide: IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS,
|
|
3763
|
+
useValue: options.toolbarActionContributors,
|
|
3764
|
+
},
|
|
3765
|
+
{
|
|
3766
|
+
provide: IDENTITY_ENTITY_PROP_CONTRIBUTORS,
|
|
3767
|
+
useValue: options.entityPropContributors,
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
provide: IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS,
|
|
3771
|
+
useValue: options.createFormPropContributors,
|
|
3772
|
+
},
|
|
3773
|
+
{
|
|
3774
|
+
provide: IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS,
|
|
3775
|
+
useValue: options.editFormPropContributors,
|
|
3776
|
+
},
|
|
3777
|
+
];
|
|
3778
|
+
}
|
|
3779
|
+
|
|
3479
3780
|
/**
|
|
3480
3781
|
* Generated bundle index. Do not edit.
|
|
3481
3782
|
*/
|
|
3482
3783
|
|
|
3483
|
-
export { AbstractOrganizationUnitComponent, ClaimModalComponent, ClaimsComponent, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_EDIT_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_PROPS, DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, DEFAULT_USERS_TOOLBAR_ALL, DEFAULT_USERS_TOOLBAR_COMPONENTS, DeleteOrganizationUnitComponent, DeleteOrganizationUnitService, ExportDataDropdownComponent, ExternalLoginComponent, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, IdentityExtensionsGuard, IdentityModule, MoveAllUsersComponent, MoveAllUsersOfUnitComponent, MoveAllUsersOfUnitModalService, ORGANIZATION_UNIT_CONFIG, OrganizationMembersComponent, OrganizationMembersModalBodyComponent, OrganizationRolesComponent, OrganizationRolesModalBodyComponent, OrganizationUnitDeleteValidator, OrganizationUnitsComponent, OrganizationUnitsStateService, RoleDeleteComponent, RoleDeleteValidator, RolesComponent, SecurityLogsComponent, SelectedOrganizationUnitComponent, SetUserPasswordComponent, UploadExcelFileComponent, UserDropdownMenuComponent, UserLockModalComponent, UserLockService, UserViewDetailService, UserViewDetailsComponent, UsersComponent, eIdentityTwoFactorBehaviour, identityExtensionsResolver, identityTwoFactorBehaviourOptions, regexValidator };
|
|
3784
|
+
export { AbstractOrganizationUnitComponent, ClaimModalComponent, ClaimsComponent, DEFAULT_CLAIMS_CREATE_FORM_PROPS, DEFAULT_CLAIMS_EDIT_FORM_PROPS, DEFAULT_CLAIMS_ENTITY_ACTIONS, DEFAULT_CLAIMS_ENTITY_PROPS, DEFAULT_CLAIMS_TOOLBAR_ACTIONS, DEFAULT_IDENTITY_CREATE_FORM_PROPS, DEFAULT_IDENTITY_EDIT_FORM_PROPS, DEFAULT_IDENTITY_ENTITY_ACTIONS, DEFAULT_IDENTITY_ENTITY_PROPS, DEFAULT_IDENTITY_TOOLBAR_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_MEMBERS_ENTITY_PROPS, DEFAULT_ORGANIZATION_ROLES_ENTITY_ACTIONS, DEFAULT_ORGANIZATION_ROLES_ENTITY_PROPS, DEFAULT_ORGANIZATION_UNITS_CREATE_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_EDIT_FORM_PROPS, DEFAULT_ORGANIZATION_UNITS_TOOLBAR_ACTIONS, DEFAULT_ROLES_CREATE_FORM_PROPS, DEFAULT_ROLES_EDIT_FORM_PROPS, DEFAULT_ROLES_ENTITY_ACTIONS, DEFAULT_ROLES_ENTITY_PROPS, DEFAULT_ROLES_TOOLBAR_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_ACTIONS, DEFAULT_SECURITY_LOGS_ENTITY_PROPS, DEFAULT_SECURITY_LOGS_TOOLBAR_ACTIONS, DEFAULT_USERS_CREATE_FORM_PROPS, DEFAULT_USERS_EDIT_FORM_PROPS, DEFAULT_USERS_ENTITY_ACTIONS, DEFAULT_USERS_ENTITY_PROPS, DEFAULT_USERS_TOOLBAR_ACTIONS, DEFAULT_USERS_TOOLBAR_ALL, DEFAULT_USERS_TOOLBAR_COMPONENTS, DeleteOrganizationUnitComponent, DeleteOrganizationUnitService, ExportDataDropdownComponent, ExternalLoginComponent, IDENTITY_CREATE_FORM_PROP_CONTRIBUTORS, IDENTITY_EDIT_FORM_PROP_CONTRIBUTORS, IDENTITY_ENTITY_ACTION_CONTRIBUTORS, IDENTITY_ENTITY_PROP_CONTRIBUTORS, IDENTITY_TOOLBAR_ACTION_CONTRIBUTORS, IdentityExtensionsGuard, IdentityModule, MoveAllUsersComponent, MoveAllUsersOfUnitComponent, MoveAllUsersOfUnitModalService, ORGANIZATION_UNIT_CONFIG, OrganizationMembersComponent, OrganizationMembersModalBodyComponent, OrganizationRolesComponent, OrganizationRolesModalBodyComponent, OrganizationUnitDeleteValidator, OrganizationUnitsComponent, OrganizationUnitsStateService, RoleDeleteComponent, RoleDeleteValidator, RolesComponent, SecurityLogsComponent, SelectedOrganizationUnitComponent, SetUserPasswordComponent, UploadExcelFileComponent, UserDropdownMenuComponent, UserLockModalComponent, UserLockService, UserViewDetailService, UserViewDetailsComponent, UsersComponent, createRoutes, eIdentityTwoFactorBehaviour, identityExtensionsResolver, identityTwoFactorBehaviourOptions, regexValidator };
|
|
3484
3785
|
//# sourceMappingURL=volo-abp.ng.identity.mjs.map
|