@volo/abp.ng.identity 10.2.0 → 10.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/fesm2022/volo-abp.ng.identity-config.mjs +180 -66
- package/fesm2022/volo-abp.ng.identity-config.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity-proxy.mjs +76 -29
- package/fesm2022/volo-abp.ng.identity-proxy.mjs.map +1 -1
- package/fesm2022/volo-abp.ng.identity.mjs +400 -179
- package/fesm2022/volo-abp.ng.identity.mjs.map +1 -1
- package/package.json +9 -8
- package/types/volo-abp.ng.identity-config.d.ts +34 -4
- package/types/volo-abp.ng.identity-proxy.d.ts +63 -9
- package/types/volo-abp.ng.identity.d.ts +54 -6
|
@@ -3,12 +3,12 @@ import { inject, Injector, output, model, effect, Component, Injectable, Destroy
|
|
|
3
3
|
import * as i1 from '@angular/forms';
|
|
4
4
|
import { UntypedFormBuilder, FormsModule, FormBuilder, Validators, ReactiveFormsModule, UntypedFormControl } from '@angular/forms';
|
|
5
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,
|
|
6
|
+
import { AutofocusDirective, LocalizationPipe, mapEnumToOptions, AbpWindowService, LocalizationService, SubscriptionService, InternalStore, ShortDateTimePipe, ListService, AuthService, ConfigStateService, generatePassword, EnvironmentService, PermissionDirective, ReplaceableTemplateDirective, TrackByService, escapeHtmlChars, getShortDateShortTimeFormat, ReplaceableRouteContainerComponent, authGuard, permissionGuard, RouterOutletComponent, LazyModuleFactory, CoreModule } from '@abp/ng.core';
|
|
7
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
8
|
import { ConfirmationService, ModalCloseDirective, ModalComponent, ButtonComponent, ToasterService, Confirmation, NgxDatatableDefaultDirective, NgxDatatableListDirective, getPasswordValidators, DisabledDirective, AbpVisibleDirective, LoadingDirective, ThemeSharedModule } from '@abp/ng.theme.shared';
|
|
9
9
|
import { IdentityUserService, ImportUsersFromFileType, IdentityRoleService, OrganizationUnitService, IdentitySessionService, IdentityClaimTypeService, IdentitySecurityLogService } from '@volo/abp.ng.identity/proxy';
|
|
10
10
|
import * as i1$1 from '@ng-bootstrap/ng-bootstrap';
|
|
11
|
-
import { NgbNavModule, NgbDropdownModule, NgbTooltip,
|
|
11
|
+
import { NgbNavModule, NgbDropdownModule, NgbTooltip, NgbDropdown, NgbDropdownToggle, NgbDropdownMenu, NgbDropdownItem, NgbNav, NgbNavItem, NgbNavLink, NgbNavContent, NgbNavOutlet, NgbNavItemRole, NgbNavLinkBase, NgbDropdownButtonItem, NgbTooltipModule, NgbDatepickerModule } from '@ng-bootstrap/ng-bootstrap';
|
|
12
12
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
13
|
import * as i2 from '@ngx-validate/core';
|
|
14
14
|
import { NgxValidateCoreModule } from '@ngx-validate/core';
|
|
@@ -17,7 +17,7 @@ import { PageComponent, PageModule } from '@abp/ng.components/page';
|
|
|
17
17
|
import { PermissionManagementComponent, PermissionManagementModule } from '@abp/ng.permission-management';
|
|
18
18
|
import { AdvancedEntityFiltersComponent, AdvancedEntityFiltersFormComponent, LookupSelectComponent, DateRangePickerComponent, DatetimePickerComponent, SHOW_ENTITY_HISTORY, CommercialUiModule, AdvancedEntityFiltersModule } from '@volo/abp.commercial.ng.ui';
|
|
19
19
|
import { map, switchMap, take as take$1, filter, of, finalize as finalize$1, tap, combineLatest, firstValueFrom } from 'rxjs';
|
|
20
|
-
import { AsyncPipe, formatDate } from '@angular/common';
|
|
20
|
+
import { AsyncPipe, DatePipe, formatDate } from '@angular/common';
|
|
21
21
|
import * as i2$1 from '@swimlane/ngx-datatable';
|
|
22
22
|
import { NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
23
23
|
import * as i1$2 from '@angular/router';
|
|
@@ -36,7 +36,7 @@ class ExternalLoginComponent {
|
|
|
36
36
|
hideCancelBtn: true,
|
|
37
37
|
yesText: 'Ok',
|
|
38
38
|
};
|
|
39
|
-
this.visible = model(false, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
39
|
+
this.visible = model(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
40
40
|
effect(() => {
|
|
41
41
|
if (this.visible()) {
|
|
42
42
|
this.buildForm();
|
|
@@ -74,10 +74,10 @@ class ExternalLoginComponent {
|
|
|
74
74
|
this.visible.set(false);
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
78
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
77
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExternalLoginComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ExternalLoginComponent, isStandalone: true, selector: "abp-external-login", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { dataSave: "dataSave", visible: "visibleChange" }, ngImport: i0, template: "<abp-modal [visible]=\"visible()\" (visibleChange)=\"visible.set($event)\" [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],[formArray],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]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: AutofocusDirective, selector: "[autofocus]", inputs: ["autofocus"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
79
79
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExternalLoginComponent, decorators: [{
|
|
81
81
|
type: Component,
|
|
82
82
|
args: [{ selector: 'abp-external-login', imports: [
|
|
83
83
|
FormsModule,
|
|
@@ -159,10 +159,10 @@ class ExcelService {
|
|
|
159
159
|
this.abpWindowService.downloadBlob(blob, 'InvalidUsers' + this.getFileType(fileType));
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
163
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
162
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExcelService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
163
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExcelService }); }
|
|
164
164
|
}
|
|
165
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExcelService, decorators: [{
|
|
166
166
|
type: Injectable
|
|
167
167
|
}] });
|
|
168
168
|
|
|
@@ -202,8 +202,8 @@ class ClaimModalComponent {
|
|
|
202
202
|
this.fb = inject(FormBuilder);
|
|
203
203
|
this.confirmationService = inject(ConfirmationService);
|
|
204
204
|
this.toasterService = inject(ToasterService);
|
|
205
|
-
this.visible = model(false, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
206
|
-
this.subject = input(...(ngDevMode ? [undefined, { debugName: "subject" }] : []));
|
|
205
|
+
this.visible = model(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
206
|
+
this.subject = input(...(ngDevMode ? [undefined, { debugName: "subject" }] : /* istanbul ignore next */ []));
|
|
207
207
|
this.modalBusy = false;
|
|
208
208
|
this.inputType = 'String';
|
|
209
209
|
effect(() => {
|
|
@@ -344,10 +344,10 @@ class ClaimModalComponent {
|
|
|
344
344
|
],
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
348
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
347
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClaimModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
348
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ClaimModalComponent, isStandalone: true, selector: "abp-claim-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null }, subject: { classPropertyName: "subject", publicName: "subject", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, providers: [SubscriptionService], ngImport: i0, template: "<abp-modal [visible]=\"visible()\" (visibleChange)=\"visible.set($event)\" [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()\" [disabled]=\"modalBusy\">{{\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],[formArray],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: "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: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
349
349
|
}
|
|
350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClaimModalComponent, decorators: [{
|
|
351
351
|
type: Component,
|
|
352
352
|
args: [{ selector: 'abp-claim-modal', providers: [SubscriptionService], changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
353
353
|
FormsModule,
|
|
@@ -367,10 +367,10 @@ class UploadExcelFileComponent {
|
|
|
367
367
|
this.destroyRef = inject(DestroyRef);
|
|
368
368
|
this.confirmationService = inject(ConfirmationService);
|
|
369
369
|
this.excelService = inject(ExcelService);
|
|
370
|
-
this.fileType = input(undefined, ...(ngDevMode ? [{ debugName: "fileType" }] : []));
|
|
370
|
+
this.fileType = input(undefined, ...(ngDevMode ? [{ debugName: "fileType" }] : /* istanbul ignore next */ []));
|
|
371
371
|
this.isModalVisibleChange = output();
|
|
372
372
|
this.isListChange = output();
|
|
373
|
-
this.fileInput = viewChild('fileInput', ...(ngDevMode ? [{ debugName: "fileInput" }] : []));
|
|
373
|
+
this.fileInput = viewChild('fileInput', ...(ngDevMode ? [{ debugName: "fileInput" }] : /* istanbul ignore next */ []));
|
|
374
374
|
this.isModalVisible = true;
|
|
375
375
|
this.form = this.fb.group({
|
|
376
376
|
file: [null],
|
|
@@ -455,10 +455,10 @@ class UploadExcelFileComponent {
|
|
|
455
455
|
}))
|
|
456
456
|
.subscribe();
|
|
457
457
|
}
|
|
458
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
459
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
458
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UploadExcelFileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
459
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UploadExcelFileComponent, isStandalone: true, selector: "abp-excel-upload-file", inputs: { fileType: { classPropertyName: "fileType", publicName: "fileType", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isModalVisibleChange: "isModalVisibleChange", isListChange: "isListChange" }, viewQueries: [{ propertyName: "fileInput", first: true, predicate: ["fileInput"], descendants: true, isSignal: 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: "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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
460
460
|
}
|
|
461
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
461
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UploadExcelFileComponent, decorators: [{
|
|
462
462
|
type: Component,
|
|
463
463
|
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" }]
|
|
464
464
|
}], propDecorators: { fileType: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileType", required: false }] }], isModalVisibleChange: [{ type: i0.Output, args: ["isModalVisibleChange"] }], isListChange: [{ type: i0.Output, args: ["isListChange"] }], fileInput: [{ type: i0.ViewChild, args: ['fileInput', { isSignal: true }] }] } });
|
|
@@ -483,10 +483,10 @@ class OrganizationUnitsStateService {
|
|
|
483
483
|
removeSelectedNode() {
|
|
484
484
|
this.setSelectedUnit(undefined);
|
|
485
485
|
}
|
|
486
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
487
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationUnitsStateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
487
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationUnitsStateService, providedIn: 'root' }); }
|
|
488
488
|
}
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationUnitsStateService, decorators: [{
|
|
490
490
|
type: Injectable,
|
|
491
491
|
args: [{
|
|
492
492
|
providedIn: 'root',
|
|
@@ -496,26 +496,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
496
496
|
class DeleteOrganizationUnitService {
|
|
497
497
|
constructor() {
|
|
498
498
|
this.serviceProxy = inject(OrganizationUnitService);
|
|
499
|
-
this.#organizationUnits = signal([], ...(ngDevMode ? [{ debugName: "#organizationUnits" }] : []));
|
|
500
|
-
this.visible = signal(false, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
501
|
-
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
502
|
-
this.selected = signal(undefined, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
503
|
-
this.name = computed(() => this.selected()?.displayName || '', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
499
|
+
this.#organizationUnits = signal([], ...(ngDevMode ? [{ debugName: "#organizationUnits" }] : /* istanbul ignore next */ []));
|
|
500
|
+
this.visible = signal(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
501
|
+
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
502
|
+
this.selected = signal(undefined, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
503
|
+
this.name = computed(() => this.selected()?.displayName || '', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
504
504
|
this.otherOrganizationUnits = computed(() => {
|
|
505
505
|
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
506
506
|
return [];
|
|
507
507
|
}
|
|
508
508
|
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
509
|
-
}, ...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : []));
|
|
509
|
+
}, ...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : /* istanbul ignore next */ []));
|
|
510
510
|
this.count = computed(() => {
|
|
511
511
|
if (!this.selected()) {
|
|
512
512
|
return 0;
|
|
513
513
|
}
|
|
514
514
|
return this.selected().userCount || 0;
|
|
515
|
-
}, ...(ngDevMode ? [{ debugName: "count" }] : []));
|
|
516
|
-
this.hasMemberOrRole = computed(() => this.count() > 0, ...(ngDevMode ? [{ debugName: "hasMemberOrRole" }] : []));
|
|
517
|
-
this.countText = computed(() => this.count().toString(), ...(ngDevMode ? [{ debugName: "countText" }] : []));
|
|
518
|
-
this.hasOtherUnits = computed(() => !!this.otherOrganizationUnits().length, ...(ngDevMode ? [{ debugName: "hasOtherUnits" }] : []));
|
|
515
|
+
}, ...(ngDevMode ? [{ debugName: "count" }] : /* istanbul ignore next */ []));
|
|
516
|
+
this.hasMemberOrRole = computed(() => this.count() > 0, ...(ngDevMode ? [{ debugName: "hasMemberOrRole" }] : /* istanbul ignore next */ []));
|
|
517
|
+
this.countText = computed(() => this.count().toString(), ...(ngDevMode ? [{ debugName: "countText" }] : /* istanbul ignore next */ []));
|
|
518
|
+
this.hasOtherUnits = computed(() => !!this.otherOrganizationUnits().length, ...(ngDevMode ? [{ debugName: "hasOtherUnits" }] : /* istanbul ignore next */ []));
|
|
519
519
|
}
|
|
520
520
|
#organizationUnits;
|
|
521
521
|
openDeleteModal(v) {
|
|
@@ -542,10 +542,10 @@ class DeleteOrganizationUnitService {
|
|
|
542
542
|
const delete$ = this.serviceProxy.delete(id);
|
|
543
543
|
return move$.pipe(switchMap$1(() => delete$));
|
|
544
544
|
}
|
|
545
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
546
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
545
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DeleteOrganizationUnitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
546
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DeleteOrganizationUnitService }); }
|
|
547
547
|
}
|
|
548
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DeleteOrganizationUnitService, decorators: [{
|
|
549
549
|
type: Injectable
|
|
550
550
|
}] });
|
|
551
551
|
|
|
@@ -553,17 +553,17 @@ class MoveAllUsersOfUnitModalService {
|
|
|
553
553
|
constructor() {
|
|
554
554
|
this.organizationUnitService = inject(OrganizationUnitService);
|
|
555
555
|
this.confirmationService = inject(ConfirmationService);
|
|
556
|
-
this.#organizationUnits = signal([], ...(ngDevMode ? [{ debugName: "#organizationUnits" }] : []));
|
|
557
|
-
this.visible = signal(false, ...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
558
|
-
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
559
|
-
this.selected = signal(undefined, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
560
|
-
this.name = computed(() => this.selected()?.displayName || '', ...(ngDevMode ? [{ debugName: "name" }] : []));
|
|
556
|
+
this.#organizationUnits = signal([], ...(ngDevMode ? [{ debugName: "#organizationUnits" }] : /* istanbul ignore next */ []));
|
|
557
|
+
this.visible = signal(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
558
|
+
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
559
|
+
this.selected = signal(undefined, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
560
|
+
this.name = computed(() => this.selected()?.displayName || '', ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
561
561
|
this.otherOrganizationUnits = computed(() => {
|
|
562
562
|
if (!this.selected() || !this.#organizationUnits()?.length) {
|
|
563
563
|
return [];
|
|
564
564
|
}
|
|
565
565
|
return this.#organizationUnits().filter(x => !x.code.startsWith(this.selected().code));
|
|
566
|
-
}, ...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : []));
|
|
566
|
+
}, ...(ngDevMode ? [{ debugName: "otherOrganizationUnits" }] : /* istanbul ignore next */ []));
|
|
567
567
|
}
|
|
568
568
|
#organizationUnits;
|
|
569
569
|
showWarning() {
|
|
@@ -604,10 +604,10 @@ class MoveAllUsersOfUnitModalService {
|
|
|
604
604
|
.moveAllUsers(id, newParentId)
|
|
605
605
|
.pipe(finalize(() => this.loading.set(false)));
|
|
606
606
|
}
|
|
607
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
608
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
607
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
608
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersOfUnitModalService }); }
|
|
609
609
|
}
|
|
610
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersOfUnitModalService, decorators: [{
|
|
611
611
|
type: Injectable
|
|
612
612
|
}] });
|
|
613
613
|
|
|
@@ -643,17 +643,17 @@ class UserViewDetailService {
|
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
}
|
|
646
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
647
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
646
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserViewDetailService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
647
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserViewDetailService }); }
|
|
648
648
|
}
|
|
649
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserViewDetailService, decorators: [{
|
|
650
650
|
type: Injectable
|
|
651
651
|
}] });
|
|
652
652
|
|
|
653
653
|
class UserViewDetailsComponent {
|
|
654
654
|
constructor() {
|
|
655
655
|
this.service = inject(UserViewDetailService);
|
|
656
|
-
this.user = input(undefined, ...(ngDevMode ? [{ debugName: "user" }] : []));
|
|
656
|
+
this.user = input(undefined, ...(ngDevMode ? [{ debugName: "user" }] : /* istanbul ignore next */ []));
|
|
657
657
|
this.isModalVisibleChange = output();
|
|
658
658
|
this.isModalVisible = true;
|
|
659
659
|
}
|
|
@@ -662,10 +662,10 @@ class UserViewDetailsComponent {
|
|
|
662
662
|
this.createdBy$ = this.service.getUserById(this.user().creatorId);
|
|
663
663
|
this.organization$ = this.service.getOrganizationUnits(this.user().id);
|
|
664
664
|
}
|
|
665
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
666
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.9", type: UserViewDetailsComponent, isStandalone: true, selector: "abp-user-view-detail", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null } }, 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: "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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
665
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserViewDetailsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
666
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UserViewDetailsComponent, isStandalone: true, selector: "abp-user-view-detail", inputs: { user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: false, transformFunction: null } }, 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: "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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
667
667
|
}
|
|
668
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
668
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserViewDetailsComponent, decorators: [{
|
|
669
669
|
type: Component,
|
|
670
670
|
args: [{ selector: 'abp-user-view-detail', imports: [
|
|
671
671
|
NgbNavModule,
|
|
@@ -693,10 +693,10 @@ class UserLockService {
|
|
|
693
693
|
this.busy = true;
|
|
694
694
|
return this.proxyService.lock(userId, lockoutEnd).pipe(finalize(() => (this.busy = false)));
|
|
695
695
|
}
|
|
696
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
697
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
696
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserLockService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
697
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserLockService }); }
|
|
698
698
|
}
|
|
699
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
699
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserLockService, decorators: [{
|
|
700
700
|
type: Injectable
|
|
701
701
|
}] });
|
|
702
702
|
|
|
@@ -705,7 +705,7 @@ class UserLockModalComponent {
|
|
|
705
705
|
this.service = inject(UserLockService);
|
|
706
706
|
this.toasterService = inject(ToasterService);
|
|
707
707
|
this.form = this.service.buildLockForm();
|
|
708
|
-
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
708
|
+
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
709
709
|
this.visibleChange = output();
|
|
710
710
|
this.dateTimePickerProps = FormProp.create({
|
|
711
711
|
displayName: 'AbpIdentity::DisplayName:LockoutEnd',
|
|
@@ -727,10 +727,10 @@ class UserLockModalComponent {
|
|
|
727
727
|
this.visibleChange.emit(false);
|
|
728
728
|
});
|
|
729
729
|
}
|
|
730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
731
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
730
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserLockModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
731
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: UserLockModalComponent, isStandalone: true, selector: "abp-user-lock-modal", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null } }, 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 iconClass=\"fa fa-check\" formName=\"lockForm\" buttonType=\"submit\">\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],[formArray],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: "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", "placement"], exportAs: ["abpExtensibleDateTimePicker"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
732
732
|
}
|
|
733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
733
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserLockModalComponent, decorators: [{
|
|
734
734
|
type: Component,
|
|
735
735
|
args: [{ selector: 'abp-user-lock-modal', imports: [
|
|
736
736
|
ReactiveFormsModule,
|
|
@@ -747,17 +747,17 @@ class UserSessionDetailComponent {
|
|
|
747
747
|
constructor() {
|
|
748
748
|
this.service = inject(IdentitySessionService);
|
|
749
749
|
this.modalOptions = { size: 'lg' };
|
|
750
|
-
this.isModalVisible = model(false, ...(ngDevMode ? [{ debugName: "isModalVisible" }] : []));
|
|
751
|
-
this.sessionId = input.required(...(ngDevMode ? [{ debugName: "sessionId" }] : []));
|
|
752
|
-
this.sessionInfo = signal({}, ...(ngDevMode ? [{ debugName: "sessionInfo" }] : []));
|
|
750
|
+
this.isModalVisible = model(false, ...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
751
|
+
this.sessionId = input.required(...(ngDevMode ? [{ debugName: "sessionId" }] : /* istanbul ignore next */ []));
|
|
752
|
+
this.sessionInfo = signal({}, ...(ngDevMode ? [{ debugName: "sessionInfo" }] : /* istanbul ignore next */ []));
|
|
753
753
|
}
|
|
754
754
|
ngOnInit() {
|
|
755
755
|
this.service.get(this.sessionId()).subscribe(this.sessionInfo.set);
|
|
756
756
|
}
|
|
757
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
758
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
757
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserSessionDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
758
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }] }); }
|
|
759
759
|
}
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
760
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserSessionDetailComponent, decorators: [{
|
|
761
761
|
type: Component,
|
|
762
762
|
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" }]
|
|
763
763
|
}], propDecorators: { isModalVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "isModalVisible", required: false }] }, { type: i0.Output, args: ["isModalVisibleChange"] }], sessionId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sessionId", required: true }] }] } });
|
|
@@ -770,11 +770,11 @@ class UserSessionsComponent {
|
|
|
770
770
|
this.authService = inject(AuthService);
|
|
771
771
|
this.configStateService = inject(ConfigStateService);
|
|
772
772
|
this.modalOptions = { size: 'xl' };
|
|
773
|
-
this.isModalVisible = model(false, ...(ngDevMode ? [{ debugName: "isModalVisible" }] : []));
|
|
774
|
-
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
775
|
-
this.data = signal({ items: [], totalCount: 0 }, ...(ngDevMode ? [{ debugName: "data" }] : []));
|
|
776
|
-
this.sessionId = signal('', ...(ngDevMode ? [{ debugName: "sessionId" }] : []));
|
|
777
|
-
this.visibleSessionDetailModal = signal(false, ...(ngDevMode ? [{ debugName: "visibleSessionDetailModal" }] : []));
|
|
773
|
+
this.isModalVisible = model(false, ...(ngDevMode ? [{ debugName: "isModalVisible" }] : /* istanbul ignore next */ []));
|
|
774
|
+
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
775
|
+
this.data = signal({ items: [], totalCount: 0 }, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
|
|
776
|
+
this.sessionId = signal('', ...(ngDevMode ? [{ debugName: "sessionId" }] : /* istanbul ignore next */ []));
|
|
777
|
+
this.visibleSessionDetailModal = signal(false, ...(ngDevMode ? [{ debugName: "visibleSessionDetailModal" }] : /* istanbul ignore next */ []));
|
|
778
778
|
}
|
|
779
779
|
hookToQuery() {
|
|
780
780
|
this.list
|
|
@@ -805,10 +805,10 @@ class UserSessionsComponent {
|
|
|
805
805
|
}))))
|
|
806
806
|
.subscribe();
|
|
807
807
|
}
|
|
808
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
809
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
808
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserSessionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
809
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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", "scrollbarVDynamic", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "ghostLoadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "disableRowCheck", "rowDraggable", "enableClearingSortState", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction", "rowDragEvents"] }, { kind: "directive", type: i2$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "bindAsUnsafeHtml", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate", "ghostCellTemplate"] }, { 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: "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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }, { kind: "pipe", type: ShortDateTimePipe, name: "shortDateTime" }] }); }
|
|
810
810
|
}
|
|
811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
811
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserSessionsComponent, decorators: [{
|
|
812
812
|
type: Component,
|
|
813
813
|
args: [{ selector: 'abp-user-sessions', imports: [
|
|
814
814
|
NgbDropdownModule,
|
|
@@ -830,7 +830,7 @@ class SetUserPasswordComponent {
|
|
|
830
830
|
this.injector = inject(Injector);
|
|
831
831
|
this.service = inject(IdentityUserService);
|
|
832
832
|
this.toasterService = inject(ToasterService);
|
|
833
|
-
this.selected = model({}, ...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
833
|
+
this.selected = model({}, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
834
834
|
this.visibleChange = output();
|
|
835
835
|
this.isModalVisible = true;
|
|
836
836
|
}
|
|
@@ -860,10 +860,10 @@ class SetUserPasswordComponent {
|
|
|
860
860
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
861
861
|
});
|
|
862
862
|
}
|
|
863
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
864
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
863
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SetUserPasswordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
864
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: SetUserPasswordComponent, isStandalone: true, selector: "abp-set-user-password", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selectedChange", 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],[formArray],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: "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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
865
865
|
}
|
|
866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
866
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SetUserPasswordComponent, decorators: [{
|
|
867
867
|
type: Component,
|
|
868
868
|
args: [{ selector: 'abp-set-user-password', imports: [
|
|
869
869
|
ReactiveFormsModule,
|
|
@@ -876,6 +876,160 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
876
876
|
], 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" }]
|
|
877
877
|
}], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }, { type: i0.Output, args: ["selectedChange"] }], visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
|
|
878
878
|
|
|
879
|
+
class InviteUsersModalComponent {
|
|
880
|
+
constructor() {
|
|
881
|
+
this.userService = inject(IdentityUserService);
|
|
882
|
+
this.toasterService = inject(ToasterService);
|
|
883
|
+
this.confirmationService = inject(ConfirmationService);
|
|
884
|
+
this.environmentService = inject(EnvironmentService);
|
|
885
|
+
this.list = inject((ListService));
|
|
886
|
+
this.destroyRef = inject(DestroyRef);
|
|
887
|
+
this.appName = computed(() => {
|
|
888
|
+
const { oAuthConfig: { responseType } } = this.environmentService.getEnvironment() || {};
|
|
889
|
+
return responseType === 'code' ? 'MVC' : 'Angular';
|
|
890
|
+
}, ...(ngDevMode ? [{ debugName: "appName" }] : /* istanbul ignore next */ []));
|
|
891
|
+
this.visible = model(false, ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
892
|
+
this.saved = output();
|
|
893
|
+
this.activeTab = 'invite';
|
|
894
|
+
this.busy = false;
|
|
895
|
+
// Invite tab
|
|
896
|
+
this.emailText = '';
|
|
897
|
+
this.roles = [];
|
|
898
|
+
this.selectedRoleName = null;
|
|
899
|
+
// Pending invitations tab
|
|
900
|
+
this.invitationData = { items: [], totalCount: 0 };
|
|
901
|
+
this.pendingHooked = false;
|
|
902
|
+
this.modalOptions = { size: 'lg' };
|
|
903
|
+
}
|
|
904
|
+
ngOnInit() {
|
|
905
|
+
this.loadRoles();
|
|
906
|
+
}
|
|
907
|
+
onTabChange(tabId) {
|
|
908
|
+
this.activeTab = tabId;
|
|
909
|
+
if (tabId === 'pending' && !this.pendingHooked) {
|
|
910
|
+
this.hookPendingInvitations();
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
// ─── Invite Tab ───
|
|
914
|
+
loadRoles() {
|
|
915
|
+
this.userService
|
|
916
|
+
.getAssignableRoles()
|
|
917
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
918
|
+
.subscribe(({ items }) => {
|
|
919
|
+
this.roles = items || [];
|
|
920
|
+
this.selectedRoleName = null;
|
|
921
|
+
});
|
|
922
|
+
}
|
|
923
|
+
sendInvitation() {
|
|
924
|
+
const emails = this.parseEmails(this.emailText);
|
|
925
|
+
if (!emails.length)
|
|
926
|
+
return;
|
|
927
|
+
const assignedRoles = this.selectedRoleName ? [this.selectedRoleName] : [];
|
|
928
|
+
this.busy = true;
|
|
929
|
+
this.userService
|
|
930
|
+
.inviteUsers({ appName: this.appName(), emailAddress: emails, assignedRoles })
|
|
931
|
+
.pipe(finalize$1(() => (this.busy = false)), takeUntilDestroyed(this.destroyRef))
|
|
932
|
+
.subscribe(result => {
|
|
933
|
+
if (result.newInvitations > 0) {
|
|
934
|
+
this.toasterService.success('AbpIdentity::InvitationSentSuccessfullyToUsers', '', {
|
|
935
|
+
messageLocalizationParams: [String(result.newInvitations)],
|
|
936
|
+
});
|
|
937
|
+
}
|
|
938
|
+
if (result.resentInvitations > 0) {
|
|
939
|
+
this.toasterService.success('AbpIdentity::InvitationResentSuccessfullyToUsers', '', {
|
|
940
|
+
messageLocalizationParams: [String(result.resentInvitations)],
|
|
941
|
+
});
|
|
942
|
+
}
|
|
943
|
+
this.emailText = '';
|
|
944
|
+
this.saved.emit();
|
|
945
|
+
if (this.pendingHooked)
|
|
946
|
+
this.list.get();
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
parseEmails(text) {
|
|
950
|
+
return text
|
|
951
|
+
.split(/[,;\n]+/)
|
|
952
|
+
.map(email => email.trim())
|
|
953
|
+
.filter(email => email.length > 0);
|
|
954
|
+
}
|
|
955
|
+
// ─── Pending Invitations Tab ───
|
|
956
|
+
hookPendingInvitations() {
|
|
957
|
+
this.pendingHooked = true;
|
|
958
|
+
this.list
|
|
959
|
+
.hookToQuery(query => this.userService.getPendingInvitations({ ...query }))
|
|
960
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
961
|
+
.subscribe(res => (this.invitationData = res));
|
|
962
|
+
}
|
|
963
|
+
resend(row) {
|
|
964
|
+
this.busy = true;
|
|
965
|
+
this.userService
|
|
966
|
+
.resendInvitation({ id: row.id, appName: this.appName() })
|
|
967
|
+
.pipe(finalize$1(() => (this.busy = false)), takeUntilDestroyed(this.destroyRef))
|
|
968
|
+
.subscribe(() => {
|
|
969
|
+
this.toasterService.success('AbpIdentity::InvitationResent');
|
|
970
|
+
this.list.get();
|
|
971
|
+
this.saved.emit();
|
|
972
|
+
});
|
|
973
|
+
}
|
|
974
|
+
cancelInvitation(row) {
|
|
975
|
+
this.confirmationService
|
|
976
|
+
.warn('AbpIdentity::CancelInvitation', 'AbpUi::AreYouSure', {
|
|
977
|
+
messageLocalizationParams: [row.inviteeEmail],
|
|
978
|
+
})
|
|
979
|
+
.pipe(filter(status => status === Confirmation.Status.confirm), switchMap(() => {
|
|
980
|
+
this.busy = true;
|
|
981
|
+
return this.userService
|
|
982
|
+
.cancelInvitation(row.id)
|
|
983
|
+
.pipe(finalize$1(() => (this.busy = false)));
|
|
984
|
+
}), takeUntilDestroyed(this.destroyRef))
|
|
985
|
+
.subscribe(() => {
|
|
986
|
+
this.toasterService.success('AbpIdentity::InvitationCancelled');
|
|
987
|
+
this.list.get();
|
|
988
|
+
this.saved.emit();
|
|
989
|
+
});
|
|
990
|
+
}
|
|
991
|
+
cancelAll() {
|
|
992
|
+
this.confirmationService
|
|
993
|
+
.warn('AbpIdentity::AreYouSureToCancelAllPendingInvitations', 'AbpUi::AreYouSure')
|
|
994
|
+
.pipe(filter(status => status === Confirmation.Status.confirm), switchMap(() => {
|
|
995
|
+
this.busy = true;
|
|
996
|
+
return this.userService
|
|
997
|
+
.cancelAllPendingInvitations()
|
|
998
|
+
.pipe(finalize$1(() => (this.busy = false)));
|
|
999
|
+
}), takeUntilDestroyed(this.destroyRef))
|
|
1000
|
+
.subscribe(() => {
|
|
1001
|
+
this.toasterService.success('AbpIdentity::AllPendingInvitationsHaveBeenCancelled');
|
|
1002
|
+
this.list.get();
|
|
1003
|
+
this.saved.emit();
|
|
1004
|
+
});
|
|
1005
|
+
}
|
|
1006
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: InviteUsersModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1007
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: InviteUsersModalComponent, isStandalone: true, selector: "abp-invite-users-modal", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange", saved: "saved" }, providers: [ListService], ngImport: i0, template: "<abp-modal [(visible)]=\"visible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::InviteUser' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\" [(activeId)]=\"activeTab\" (activeIdChange)=\"onTabChange($event)\">\r\n <li [ngbNavItem]=\"'invite'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::InviteUser' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"mt-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"invite-emails\">\r\n {{ 'AbpIdentity::InviteEmailAddress' | abpLocalization }}\r\n </label>\r\n <textarea\r\n id=\"invite-emails\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [(ngModel)]=\"emailText\"\r\n [placeholder]=\"'AbpIdentity::OneEmailPerLines' | abpLocalization\"\r\n ></textarea>\r\n </div>\r\n\r\n @if (roles.length) {\r\n <div class=\"mb-3\">\r\n <label class=\"form-label d-block\">\r\n {{ 'AbpIdentity::PreassignRolesForInvitees' | abpLocalization }}\r\n </label>\r\n <div ngbDropdown placement=\"bottom-start\" container=\"body\">\r\n <button\r\n type=\"button\"\r\n class=\"form-control text-start d-flex align-items-center justify-content-between\"\r\n ngbDropdownToggle\r\n >\r\n <span>\r\n @if (selectedRoleName) {\r\n {{ selectedRoleName }}\r\n } @else {\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n }\r\n </span>\r\n </button>\r\n <div\r\n ngbDropdownMenu\r\n style=\"min-width: 300px; max-height: 240px; overflow-y: auto;\"\r\n >\r\n @for (role of roles; track role.name) {\r\n <button\r\n type=\"button\"\r\n ngbDropdownItem\r\n (click)=\"selectedRoleName = role.name\"\r\n >\r\n {{ role.name }}\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n </li>\r\n\r\n <li [ngbNavItem]=\"'pending'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::PendingInvitation' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"mt-3\">\r\n @if (invitationData.totalCount > 0) {\r\n <div class=\"d-flex justify-content-end\">\r\n <abp-button\r\n iconClass=\"fa fa-times\"\r\n buttonClass=\"btn btn-danger btn-sm mb-2\"\r\n (click)=\"cancelAll()\"\r\n [disabled]=\"busy\"\r\n >\r\n {{ 'AbpIdentity::CancelAllPendingIvitations' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n }\r\n\r\n <ngx-datatable\r\n default\r\n [list]=\"list\"\r\n [columnMode]=\"'flex'\"\r\n [scrollbarH]=\"false\"\r\n [rows]=\"invitationData.items\"\r\n [count]=\"invitationData.totalCount\"\r\n >\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [sortable]=\"false\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"1\"\r\n [minWidth]=\"140\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div class=\"dropdown\" ngbDropdown container=\"body\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n ngbDropdownToggle\r\n >\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"resend(row)\" [disabled]=\"busy\">\r\n {{ 'AbpIdentity::ResendInvitation' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"cancelInvitation(row)\" [disabled]=\"busy\">\r\n {{ 'AbpIdentity::CancelInvitation' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::InviteeEmail' | abpLocalization\"\r\n prop=\"inviteeEmail\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"3\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::InvitationDate' | abpLocalization\"\r\n prop=\"invitationDate\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"1\"\r\n [minWidth]=\"140\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | date: 'dd/MM/yyyy' }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2\"></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 @if (activeTab === 'invite') {\r\n <abp-button\r\n iconClass=\"fa fa-paper-plane\"\r\n (click)=\"sendInvitation()\"\r\n [disabled]=\"busy || !emailText.trim()\"\r\n >\r\n {{ 'AbpIdentity::InviteUser' | abpLocalization }}\r\n </abp-button>\r\n }\r\n </ng-template>\r\n</abp-modal>\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: "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: 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: NgbNavLink, selector: "a[ngbNavLink]" }, { kind: "directive", type: NgbNavContent, selector: "ng-template[ngbNavContent]" }, { kind: "component", type: NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { kind: "ngmodule", type: NgxDatatableModule }, { kind: "component", type: i2$1.DatatableComponent, selector: "ngx-datatable", inputs: ["targetMarkerTemplate", "rows", "groupRowsBy", "groupedRows", "columns", "selected", "scrollbarV", "scrollbarVDynamic", "scrollbarH", "rowHeight", "columnMode", "headerHeight", "footerHeight", "externalPaging", "externalSorting", "limit", "count", "offset", "loadingIndicator", "ghostLoadingIndicator", "selectionType", "reorderable", "swapColumns", "sortType", "sorts", "cssClasses", "messages", "rowClass", "selectCheck", "displayCheck", "groupExpansionDefault", "trackByProp", "selectAllRowsOnPage", "virtualization", "treeFromRelation", "treeToRelation", "summaryRow", "summaryHeight", "summaryPosition", "disableRowCheck", "rowDraggable", "enableClearingSortState", "rowIdentity"], outputs: ["scroll", "activate", "select", "sort", "page", "reorder", "resize", "tableContextmenu", "treeAction", "rowDragEvents"] }, { kind: "directive", type: i2$1.DataTableColumnDirective, selector: "ngx-datatable-column", inputs: ["name", "prop", "bindAsUnsafeHtml", "frozenLeft", "frozenRight", "flexGrow", "resizeable", "comparator", "pipe", "sortable", "draggable", "canAutoResize", "minWidth", "width", "maxWidth", "checkboxable", "headerCheckboxable", "headerClass", "cellClass", "isTreeColumn", "treeLevelIndent", "summaryFunc", "summaryTemplate", "cellTemplate", "headerTemplate", "treeToggleTemplate", "ghostCellTemplate"] }, { 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: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "directive", type: ModalCloseDirective, selector: "[abpClose]" }, { kind: "component", type: ButtonComponent, selector: "abp-button", inputs: ["buttonId", "buttonClass", "buttonType", "formName", "iconClass", "loading", "disabled", "attributes"], outputs: ["click", "focus", "blur", "abpClick", "abpFocus", "abpBlur"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1008
|
+
}
|
|
1009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: InviteUsersModalComponent, decorators: [{
|
|
1010
|
+
type: Component,
|
|
1011
|
+
args: [{ selector: 'abp-invite-users-modal', providers: [ListService], imports: [
|
|
1012
|
+
DatePipe,
|
|
1013
|
+
FormsModule,
|
|
1014
|
+
NgbDropdown,
|
|
1015
|
+
NgbDropdownToggle,
|
|
1016
|
+
NgbDropdownMenu,
|
|
1017
|
+
NgbDropdownItem,
|
|
1018
|
+
NgbNav,
|
|
1019
|
+
NgbNavItem,
|
|
1020
|
+
NgbNavLink,
|
|
1021
|
+
NgbNavContent,
|
|
1022
|
+
NgbNavOutlet,
|
|
1023
|
+
NgxDatatableModule,
|
|
1024
|
+
NgxDatatableDefaultDirective,
|
|
1025
|
+
NgxDatatableListDirective,
|
|
1026
|
+
ModalComponent,
|
|
1027
|
+
ModalCloseDirective,
|
|
1028
|
+
ButtonComponent,
|
|
1029
|
+
LocalizationPipe,
|
|
1030
|
+
], template: "<abp-modal [(visible)]=\"visible\" [options]=\"modalOptions\">\r\n <ng-template #abpHeader>\r\n <h3>{{ 'AbpIdentity::InviteUser' | abpLocalization }}</h3>\r\n </ng-template>\r\n\r\n <ng-template #abpBody>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-tabs\" [(activeId)]=\"activeTab\" (activeIdChange)=\"onTabChange($event)\">\r\n <li [ngbNavItem]=\"'invite'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::InviteUser' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"mt-3\">\r\n <div class=\"mb-3\">\r\n <label class=\"form-label\" for=\"invite-emails\">\r\n {{ 'AbpIdentity::InviteEmailAddress' | abpLocalization }}\r\n </label>\r\n <textarea\r\n id=\"invite-emails\"\r\n class=\"form-control\"\r\n rows=\"4\"\r\n [(ngModel)]=\"emailText\"\r\n [placeholder]=\"'AbpIdentity::OneEmailPerLines' | abpLocalization\"\r\n ></textarea>\r\n </div>\r\n\r\n @if (roles.length) {\r\n <div class=\"mb-3\">\r\n <label class=\"form-label d-block\">\r\n {{ 'AbpIdentity::PreassignRolesForInvitees' | abpLocalization }}\r\n </label>\r\n <div ngbDropdown placement=\"bottom-start\" container=\"body\">\r\n <button\r\n type=\"button\"\r\n class=\"form-control text-start d-flex align-items-center justify-content-between\"\r\n ngbDropdownToggle\r\n >\r\n <span>\r\n @if (selectedRoleName) {\r\n {{ selectedRoleName }}\r\n } @else {\r\n {{ 'AbpIdentity::SelectRoles' | abpLocalization }}\r\n }\r\n </span>\r\n </button>\r\n <div\r\n ngbDropdownMenu\r\n style=\"min-width: 300px; max-height: 240px; overflow-y: auto;\"\r\n >\r\n @for (role of roles; track role.name) {\r\n <button\r\n type=\"button\"\r\n ngbDropdownItem\r\n (click)=\"selectedRoleName = role.name\"\r\n >\r\n {{ role.name }}\r\n </button>\r\n }\r\n </div>\r\n </div>\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n </li>\r\n\r\n <li [ngbNavItem]=\"'pending'\">\r\n <a ngbNavLink>{{ 'AbpIdentity::PendingInvitation' | abpLocalization }}</a>\r\n <ng-template ngbNavContent>\r\n <div class=\"mt-3\">\r\n @if (invitationData.totalCount > 0) {\r\n <div class=\"d-flex justify-content-end\">\r\n <abp-button\r\n iconClass=\"fa fa-times\"\r\n buttonClass=\"btn btn-danger btn-sm mb-2\"\r\n (click)=\"cancelAll()\"\r\n [disabled]=\"busy\"\r\n >\r\n {{ 'AbpIdentity::CancelAllPendingIvitations' | abpLocalization }}\r\n </abp-button>\r\n </div>\r\n }\r\n\r\n <ngx-datatable\r\n default\r\n [list]=\"list\"\r\n [columnMode]=\"'flex'\"\r\n [scrollbarH]=\"false\"\r\n [rows]=\"invitationData.items\"\r\n [count]=\"invitationData.totalCount\"\r\n >\r\n <ngx-datatable-column\r\n [name]=\"'AbpUi::Actions' | abpLocalization\"\r\n [sortable]=\"false\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"1\"\r\n [minWidth]=\"140\"\r\n >\r\n <ng-template let-row=\"row\" ngx-datatable-cell-template>\r\n <div class=\"dropdown\" ngbDropdown container=\"body\">\r\n <button\r\n class=\"btn btn-primary btn-sm dropdown-toggle\"\r\n ngbDropdownToggle\r\n >\r\n {{ 'AbpUi::Actions' | abpLocalization }}\r\n </button>\r\n <div ngbDropdownMenu>\r\n <button ngbDropdownItem (click)=\"resend(row)\" [disabled]=\"busy\">\r\n {{ 'AbpIdentity::ResendInvitation' | abpLocalization }}\r\n </button>\r\n <button ngbDropdownItem (click)=\"cancelInvitation(row)\" [disabled]=\"busy\">\r\n {{ 'AbpIdentity::CancelInvitation' | abpLocalization }}\r\n </button>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::InviteeEmail' | abpLocalization\"\r\n prop=\"inviteeEmail\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"3\"\r\n >\r\n </ngx-datatable-column>\r\n\r\n <ngx-datatable-column\r\n [name]=\"'AbpIdentity::InvitationDate' | abpLocalization\"\r\n prop=\"invitationDate\"\r\n [resizeable]=\"false\"\r\n [flexGrow]=\"1\"\r\n [minWidth]=\"140\"\r\n >\r\n <ng-template ngx-datatable-cell-template let-value=\"value\">\r\n {{ value | date: 'dd/MM/yyyy' }}\r\n </ng-template>\r\n </ngx-datatable-column>\r\n </ngx-datatable>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n <div [ngbNavOutlet]=\"nav\" class=\"mt-2\"></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 @if (activeTab === 'invite') {\r\n <abp-button\r\n iconClass=\"fa fa-paper-plane\"\r\n (click)=\"sendInvitation()\"\r\n [disabled]=\"busy || !emailText.trim()\"\r\n >\r\n {{ 'AbpIdentity::InviteUser' | abpLocalization }}\r\n </abp-button>\r\n }\r\n </ng-template>\r\n</abp-modal>\r\n" }]
|
|
1031
|
+
}], propDecorators: { visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
|
|
1032
|
+
|
|
879
1033
|
const MODULES$1 = [FormsModule, ReactiveFormsModule, NgxValidateCoreModule];
|
|
880
1034
|
const DIRECTIVES$1 = [
|
|
881
1035
|
PermissionDirective,
|
|
@@ -893,6 +1047,7 @@ const COMPONENTS$1 = [
|
|
|
893
1047
|
UserViewDetailsComponent,
|
|
894
1048
|
UploadExcelFileComponent,
|
|
895
1049
|
UserSessionsComponent,
|
|
1050
|
+
InviteUsersModalComponent,
|
|
896
1051
|
AdvancedEntityFiltersComponent,
|
|
897
1052
|
AdvancedEntityFiltersFormComponent,
|
|
898
1053
|
LookupSelectComponent,
|
|
@@ -926,15 +1081,15 @@ class UsersComponent {
|
|
|
926
1081
|
this.destroyRef = inject(DestroyRef);
|
|
927
1082
|
this.list = inject((ListService));
|
|
928
1083
|
this.service = inject(IdentityUserService);
|
|
929
|
-
this.#roleCount = signal(0, ...(ngDevMode ? [{ debugName: "#roleCount" }] : []));
|
|
930
|
-
this.roleCount = computed(() => this.#roleCount(), ...(ngDevMode ? [{ debugName: "roleCount" }] : []));
|
|
1084
|
+
this.#roleCount = signal(0, ...(ngDevMode ? [{ debugName: "#roleCount" }] : /* istanbul ignore next */ []));
|
|
1085
|
+
this.roleCount = computed(() => this.#roleCount(), ...(ngDevMode ? [{ debugName: "roleCount" }] : /* istanbul ignore next */ []));
|
|
931
1086
|
this.data = { items: [], totalCount: 0 };
|
|
932
|
-
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : []));
|
|
1087
|
+
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
933
1088
|
this.visiblePermissions = false;
|
|
934
1089
|
this.modalBusy = false;
|
|
935
1090
|
this.visibleViewDetails = false;
|
|
936
1091
|
this.visibleUploadFile = false;
|
|
937
|
-
this.visibleSessionsModal = signal(false, ...(ngDevMode ? [{ debugName: "visibleSessionsModal" }] : []));
|
|
1092
|
+
this.visibleSessionsModal = signal(false, ...(ngDevMode ? [{ debugName: "visibleSessionsModal" }] : /* istanbul ignore next */ []));
|
|
938
1093
|
this.visibleClaims = false;
|
|
939
1094
|
this.claimSubject = {};
|
|
940
1095
|
this.filters = { notActive: false };
|
|
@@ -945,6 +1100,7 @@ class UsersComponent {
|
|
|
945
1100
|
expandedKeys: [],
|
|
946
1101
|
selectFn: () => false,
|
|
947
1102
|
};
|
|
1103
|
+
this.isInviteModalVisible = false;
|
|
948
1104
|
this.twoFactor = {
|
|
949
1105
|
isModalVisible: false,
|
|
950
1106
|
checkboxValue: false,
|
|
@@ -1022,6 +1178,9 @@ class UsersComponent {
|
|
|
1022
1178
|
this.selectedOrganizationUnits = [];
|
|
1023
1179
|
this.openModal();
|
|
1024
1180
|
}
|
|
1181
|
+
openInviteModal() {
|
|
1182
|
+
this.isInviteModalVisible = true;
|
|
1183
|
+
}
|
|
1025
1184
|
onEdit(id) {
|
|
1026
1185
|
this.service
|
|
1027
1186
|
.get(id)
|
|
@@ -1146,17 +1305,17 @@ class UsersComponent {
|
|
|
1146
1305
|
setPasswordModalChange($event) {
|
|
1147
1306
|
this.isSetPasswordModalVisible = $event;
|
|
1148
1307
|
}
|
|
1149
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1150
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1308
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1309
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: UsersComponent, isStandalone: true, selector: "abp-users", providers: [
|
|
1151
1310
|
ListService,
|
|
1152
1311
|
{
|
|
1153
1312
|
provide: EXTENSIONS_IDENTIFIER,
|
|
1154
1313
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1155
1314
|
},
|
|
1156
1315
|
ExcelService,
|
|
1157
|
-
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: 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],[formArray],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]):not([formArray]),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: "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", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], 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: ["selectedChange", "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"], outputs: ["maxResultCountChange"] }, { 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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1316
|
+
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: 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\r\n@if (isInviteModalVisible) {\r\n <abp-invite-users-modal\r\n [(visible)]=\"isInviteModalVisible\"\r\n (saved)=\"list.get()\">\r\n </abp-invite-users-modal>\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],[formArray],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]):not([formArray]),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: "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", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], 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: ["selectedChange", "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: InviteUsersModalComponent, selector: "abp-invite-users-modal", inputs: ["visible"], outputs: ["visibleChange", "saved"] }, { 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"], outputs: ["maxResultCountChange"] }, { 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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1158
1317
|
}
|
|
1159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UsersComponent, decorators: [{
|
|
1160
1319
|
type: Component,
|
|
1161
1320
|
args: [{ selector: 'abp-users', providers: [
|
|
1162
1321
|
ListService,
|
|
@@ -1165,7 +1324,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1165
1324
|
useValue: "Identity.UsersComponent" /* eIdentityComponents.Users */,
|
|
1166
1325
|
},
|
|
1167
1326
|
ExcelService,
|
|
1168
|
-
], 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" }]
|
|
1327
|
+
], 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\r\n@if (isInviteModalVisible) {\r\n <abp-invite-users-modal\r\n [(visible)]=\"isInviteModalVisible\"\r\n (saved)=\"list.get()\">\r\n </abp-invite-users-modal>\r\n}\r\n" }]
|
|
1169
1328
|
}], propDecorators: { modalContent: [{ type: i0.ViewChild, args: ['modalContent', { isSignal: true }] }] } });
|
|
1170
1329
|
|
|
1171
1330
|
class UserDropdownMenuComponent {
|
|
@@ -1186,10 +1345,10 @@ class UserDropdownMenuComponent {
|
|
|
1186
1345
|
uploadCsvFile() {
|
|
1187
1346
|
this.component.openUploadFileModal(ImportUsersFromFileType.Csv);
|
|
1188
1347
|
}
|
|
1189
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1190
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1348
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1349
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.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: "component", type: ExternalLoginComponent, selector: "abp-external-login", inputs: ["visible"], outputs: ["dataSave", "visibleChange"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1191
1350
|
}
|
|
1192
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1351
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: UserDropdownMenuComponent, decorators: [{
|
|
1193
1352
|
type: Component,
|
|
1194
1353
|
args: [{ selector: 'abp-user-dropdown-menu', imports: [
|
|
1195
1354
|
NgbDropdown,
|
|
@@ -1213,10 +1372,10 @@ class ExportDataDropdownComponent {
|
|
|
1213
1372
|
exportCSV() {
|
|
1214
1373
|
this.component.exportCSV();
|
|
1215
1374
|
}
|
|
1216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1217
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
1375
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExportDataDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1376
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.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" }] }); }
|
|
1218
1377
|
}
|
|
1219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ExportDataDropdownComponent, decorators: [{
|
|
1220
1379
|
type: Component,
|
|
1221
1380
|
args: [{ selector: 'abp-export-data-dropdown', imports: [
|
|
1222
1381
|
NgbDropdown,
|
|
@@ -1236,7 +1395,7 @@ class ClaimsComponent {
|
|
|
1236
1395
|
this.injector = inject(Injector);
|
|
1237
1396
|
this.toasterService = inject(ToasterService);
|
|
1238
1397
|
this.data = { items: [], totalCount: 0 };
|
|
1239
|
-
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : []));
|
|
1398
|
+
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
1240
1399
|
this.modalBusy = false;
|
|
1241
1400
|
this.trackByFn = (index, item) => Object.keys(item)[0] || index;
|
|
1242
1401
|
}
|
|
@@ -1310,8 +1469,8 @@ class ClaimsComponent {
|
|
|
1310
1469
|
}
|
|
1311
1470
|
});
|
|
1312
1471
|
}
|
|
1313
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1314
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1472
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClaimsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1473
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: ClaimsComponent, isStandalone: true, selector: "abp-claims", providers: [
|
|
1315
1474
|
ListService,
|
|
1316
1475
|
{
|
|
1317
1476
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1319,7 +1478,7 @@ class ClaimsComponent {
|
|
|
1319
1478
|
},
|
|
1320
1479
|
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: 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],[formArray],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: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], 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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1321
1480
|
}
|
|
1322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: ClaimsComponent, decorators: [{
|
|
1323
1482
|
type: Component,
|
|
1324
1483
|
args: [{ selector: 'abp-claims', providers: [
|
|
1325
1484
|
ListService,
|
|
@@ -1353,7 +1512,7 @@ class AbstractOrganizationUnitComponent {
|
|
|
1353
1512
|
this.list = inject(ListService);
|
|
1354
1513
|
this.toasterService = inject(ToasterService);
|
|
1355
1514
|
this.#destroyRef = inject(DestroyRef);
|
|
1356
|
-
this.selectedOrganizationUnit = input(undefined, ...(ngDevMode ? [{ debugName: "selectedOrganizationUnit" }] : []));
|
|
1515
|
+
this.selectedOrganizationUnit = input(undefined, ...(ngDevMode ? [{ debugName: "selectedOrganizationUnit" }] : /* istanbul ignore next */ []));
|
|
1357
1516
|
this.hasHookedQuery = false;
|
|
1358
1517
|
this.currentOrganizationUnits = { items: [] };
|
|
1359
1518
|
this.checkedUnits = {};
|
|
@@ -1415,10 +1574,10 @@ class AbstractOrganizationUnitComponent {
|
|
|
1415
1574
|
this.list.get();
|
|
1416
1575
|
this.isModalVisible = true;
|
|
1417
1576
|
}
|
|
1418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1419
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
1577
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: AbstractOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1578
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: AbstractOrganizationUnitComponent, isStandalone: true, selector: "ng-component", inputs: { selectedOrganizationUnit: { classPropertyName: "selectedOrganizationUnit", publicName: "selectedOrganizationUnit", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onAdded: "onAdded", onDeleted: "onDeleted" }, ngImport: i0, template: '', isInline: true }); }
|
|
1420
1579
|
}
|
|
1421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1580
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: AbstractOrganizationUnitComponent, decorators: [{
|
|
1422
1581
|
type: Component,
|
|
1423
1582
|
args: [{ template: '' }]
|
|
1424
1583
|
}], ctorParameters: () => [], propDecorators: { selectedOrganizationUnit: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedOrganizationUnit", required: false }] }], onAdded: [{ type: i0.Output, args: ["onAdded"] }], onDeleted: [{ type: i0.Output, args: ["onDeleted"] }] } });
|
|
@@ -1450,8 +1609,8 @@ class DeleteOrganizationUnitComponent {
|
|
|
1450
1609
|
organizationUnitId: [null],
|
|
1451
1610
|
}, { validators: [OrganizationUnitDeleteValidator()] });
|
|
1452
1611
|
this.deleted = output();
|
|
1453
|
-
this.#isSubmitted = signal(false, ...(ngDevMode ? [{ debugName: "#isSubmitted" }] : []));
|
|
1454
|
-
this.deleteLoading = signal(false, ...(ngDevMode ? [{ debugName: "deleteLoading" }] : []));
|
|
1612
|
+
this.#isSubmitted = signal(false, ...(ngDevMode ? [{ debugName: "#isSubmitted" }] : /* istanbul ignore next */ []));
|
|
1613
|
+
this.deleteLoading = signal(false, ...(ngDevMode ? [{ debugName: "deleteLoading" }] : /* istanbul ignore next */ []));
|
|
1455
1614
|
}
|
|
1456
1615
|
#fb;
|
|
1457
1616
|
#trackByService;
|
|
@@ -1494,10 +1653,10 @@ class DeleteOrganizationUnitComponent {
|
|
|
1494
1653
|
this.deleted.emit(undefined);
|
|
1495
1654
|
this.service.closeDeleteModal();
|
|
1496
1655
|
}
|
|
1497
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1498
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1656
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DeleteOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1657
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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 [class.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() || deleteLoading()\"\r\n [disabled]=\"service.loading() || deleteLoading()\"\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],[formArray],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: "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: "pipe", type: LocalizationPipe, name: "abpLocalization" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1499
1658
|
}
|
|
1500
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: DeleteOrganizationUnitComponent, decorators: [{
|
|
1501
1660
|
type: Component,
|
|
1502
1661
|
args: [{ selector: 'abp-delete-organization-unit', imports: [
|
|
1503
1662
|
FormsModule,
|
|
@@ -1540,10 +1699,10 @@ class MoveAllUsersOfUnitComponent {
|
|
|
1540
1699
|
this.moved.emit();
|
|
1541
1700
|
this.service.closeMoveModal();
|
|
1542
1701
|
}
|
|
1543
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1544
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1702
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersOfUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1703
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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],[formArray],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: "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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1545
1704
|
}
|
|
1546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1705
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersOfUnitComponent, decorators: [{
|
|
1547
1706
|
type: Component,
|
|
1548
1707
|
args: [{ selector: 'abp-move-all-users-of-unit', imports: [
|
|
1549
1708
|
ReactiveFormsModule,
|
|
@@ -1558,8 +1717,8 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1558
1717
|
constructor() {
|
|
1559
1718
|
this.list = inject((ListService));
|
|
1560
1719
|
this.userService = inject(IdentityUserService);
|
|
1561
|
-
this.checkedUnits = model({}, ...(ngDevMode ? [{ debugName: "checkedUnits" }] : []));
|
|
1562
|
-
this.isCheckboxDisabled = input(undefined, ...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : []));
|
|
1720
|
+
this.checkedUnits = model({}, ...(ngDevMode ? [{ debugName: "checkedUnits" }] : /* istanbul ignore next */ []));
|
|
1721
|
+
this.isCheckboxDisabled = input(undefined, ...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : /* istanbul ignore next */ []));
|
|
1563
1722
|
this.allUnits = { items: [] };
|
|
1564
1723
|
}
|
|
1565
1724
|
ngOnInit() {
|
|
@@ -1582,8 +1741,8 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1582
1741
|
onUnitCheckChange(id, value) {
|
|
1583
1742
|
this.checkedUnits.set({ ...this.checkedUnits(), [id]: value });
|
|
1584
1743
|
}
|
|
1585
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1586
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
1744
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1745
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: OrganizationMembersModalBodyComponent, isStandalone: true, selector: "abp-organization-members-modal-body", inputs: { checkedUnits: { classPropertyName: "checkedUnits", publicName: "checkedUnits", isSignal: true, isRequired: false, transformFunction: null }, isCheckboxDisabled: { classPropertyName: "isCheckboxDisabled", publicName: "isCheckboxDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedUnits: "checkedUnitsChange" }, providers: [ListService], ngImport: i0, template: `
|
|
1587
1746
|
<div id="data-tables-table-filter" class="data-tables-filter mb-3">
|
|
1588
1747
|
<div class="input-group">
|
|
1589
1748
|
<input
|
|
@@ -1618,7 +1777,7 @@ class OrganizationMembersModalBodyComponent {
|
|
|
1618
1777
|
</ng-template>
|
|
1619
1778
|
`, 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: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1620
1779
|
}
|
|
1621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1780
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationMembersModalBodyComponent, decorators: [{
|
|
1622
1781
|
type: Component,
|
|
1623
1782
|
args: [{
|
|
1624
1783
|
selector: 'abp-organization-members-modal-body',
|
|
@@ -1665,17 +1824,17 @@ class SelectedOrganizationUnitComponent {
|
|
|
1665
1824
|
constructor() {
|
|
1666
1825
|
this.organizationUnitsStateService = inject(OrganizationUnitsStateService);
|
|
1667
1826
|
}
|
|
1668
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1669
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1827
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SelectedOrganizationUnitComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1828
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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" }] }); }
|
|
1670
1829
|
}
|
|
1671
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1830
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SelectedOrganizationUnitComponent, decorators: [{
|
|
1672
1831
|
type: Component,
|
|
1673
1832
|
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" }]
|
|
1674
1833
|
}] });
|
|
1675
1834
|
|
|
1676
1835
|
class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
1677
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1678
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1836
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationMembersComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1837
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: OrganizationMembersComponent, isStandalone: true, selector: "abp-organization-members", providers: [
|
|
1679
1838
|
ListService,
|
|
1680
1839
|
{
|
|
1681
1840
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1693,7 +1852,7 @@ class OrganizationMembersComponent extends AbstractOrganizationUnitComponent {
|
|
|
1693
1852
|
},
|
|
1694
1853
|
], 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\">\r\n <ng-template #abpHeader>\r\n <h3>\r\n {{ 'AbpIdentity::SelectMembers' | 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: "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", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: OrganizationMembersModalBodyComponent, selector: "abp-organization-members-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"], outputs: ["checkedUnitsChange"] }, { 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1695
1854
|
}
|
|
1696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationMembersComponent, decorators: [{
|
|
1697
1856
|
type: Component,
|
|
1698
1857
|
args: [{ selector: 'abp-organization-members', providers: [
|
|
1699
1858
|
ListService,
|
|
@@ -1726,8 +1885,8 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1726
1885
|
constructor() {
|
|
1727
1886
|
this.list = inject((ListService));
|
|
1728
1887
|
this.roleService = inject(IdentityRoleService);
|
|
1729
|
-
this.checkedUnits = model({}, ...(ngDevMode ? [{ debugName: "checkedUnits" }] : []));
|
|
1730
|
-
this.isCheckboxDisabled = input(undefined, ...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : []));
|
|
1888
|
+
this.checkedUnits = model({}, ...(ngDevMode ? [{ debugName: "checkedUnits" }] : /* istanbul ignore next */ []));
|
|
1889
|
+
this.isCheckboxDisabled = input(undefined, ...(ngDevMode ? [{ debugName: "isCheckboxDisabled" }] : /* istanbul ignore next */ []));
|
|
1731
1890
|
this.allUnits = { items: [] };
|
|
1732
1891
|
}
|
|
1733
1892
|
ngOnInit() {
|
|
@@ -1750,8 +1909,8 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1750
1909
|
onUnitCheckChange(id, value) {
|
|
1751
1910
|
this.checkedUnits.set({ ...this.checkedUnits(), [id]: value });
|
|
1752
1911
|
}
|
|
1753
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1754
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.
|
|
1912
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1913
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.8", type: OrganizationRolesModalBodyComponent, isStandalone: true, selector: "abp-organization-roles-modal-body", inputs: { checkedUnits: { classPropertyName: "checkedUnits", publicName: "checkedUnits", isSignal: true, isRequired: false, transformFunction: null }, isCheckboxDisabled: { classPropertyName: "isCheckboxDisabled", publicName: "isCheckboxDisabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checkedUnits: "checkedUnitsChange" }, providers: [ListService], ngImport: i0, template: `
|
|
1755
1914
|
<div class="card">
|
|
1756
1915
|
<abp-extensible-table
|
|
1757
1916
|
actionsText=""
|
|
@@ -1775,7 +1934,7 @@ class OrganizationRolesModalBodyComponent {
|
|
|
1775
1934
|
</ng-template>
|
|
1776
1935
|
`, isInline: true, dependencies: [{ kind: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], 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"] }] }); }
|
|
1777
1936
|
}
|
|
1778
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationRolesModalBodyComponent, decorators: [{
|
|
1779
1938
|
type: Component,
|
|
1780
1939
|
args: [{
|
|
1781
1940
|
selector: 'abp-organization-roles-modal-body',
|
|
@@ -1808,8 +1967,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
1808
1967
|
}], propDecorators: { checkedUnits: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkedUnits", required: false }] }, { type: i0.Output, args: ["checkedUnitsChange"] }], isCheckboxDisabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "isCheckboxDisabled", required: false }] }] } });
|
|
1809
1968
|
|
|
1810
1969
|
class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
1811
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
1812
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
1970
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationRolesComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
1971
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: OrganizationRolesComponent, isStandalone: true, selector: "abp-organization-roles", providers: [
|
|
1813
1972
|
ListService,
|
|
1814
1973
|
{
|
|
1815
1974
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -1827,7 +1986,7 @@ class OrganizationRolesComponent extends AbstractOrganizationUnitComponent {
|
|
|
1827
1986
|
},
|
|
1828
1987
|
], 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: "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", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: OrganizationRolesModalBodyComponent, selector: "abp-organization-roles-modal-body", inputs: ["checkedUnits", "isCheckboxDisabled"], outputs: ["checkedUnitsChange"] }, { 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: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
1829
1988
|
}
|
|
1830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
1989
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationRolesComponent, decorators: [{
|
|
1831
1990
|
type: Component,
|
|
1832
1991
|
args: [{ selector: 'abp-organization-roles', providers: [
|
|
1833
1992
|
ListService,
|
|
@@ -2011,8 +2170,8 @@ class OrganizationUnitsComponent {
|
|
|
2011
2170
|
moveAllUsers(selected) {
|
|
2012
2171
|
this.moveAllUsersOfUnitModalService.openMoveModal(selected);
|
|
2013
2172
|
}
|
|
2014
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2015
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationUnitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2174
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: OrganizationUnitsComponent, isStandalone: true, selector: "abp-organization-units", providers: [
|
|
2016
2175
|
{
|
|
2017
2176
|
provide: EXTENSIONS_IDENTIFIER,
|
|
2018
2177
|
useValue: "Identity.OrganizationUnitsComponent" /* eIdentityComponents.OrganizationUnits */,
|
|
@@ -2021,7 +2180,7 @@ class OrganizationUnitsComponent {
|
|
|
2021
2180
|
MoveAllUsersOfUnitModalService,
|
|
2022
2181
|
], 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],[formArray],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: ExpandedIconTemplateDirective, selector: "[abpTreeExpandedIconTemplate],[abp-tree-expanded-icon-template]" }, { kind: "directive", type: TreeNodeTemplateDirective, selector: "[abpTreeNodeTemplate],[abp-tree-node-template]" }, { 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: "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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2023
2182
|
}
|
|
2024
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: OrganizationUnitsComponent, decorators: [{
|
|
2025
2184
|
type: Component,
|
|
2026
2185
|
args: [{ selector: 'abp-organization-units', providers: [
|
|
2027
2186
|
{
|
|
@@ -2035,15 +2194,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
2035
2194
|
|
|
2036
2195
|
class MoveAllUsersComponent {
|
|
2037
2196
|
constructor() {
|
|
2038
|
-
this.visible = input.required(...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2039
|
-
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
2197
|
+
this.visible = input.required(...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2198
|
+
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2040
2199
|
this.visibleChange = output();
|
|
2041
|
-
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
2042
|
-
this.#roles = signal([], ...(ngDevMode ? [{ debugName: "#roles" }] : []));
|
|
2200
|
+
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2201
|
+
this.#roles = signal([], ...(ngDevMode ? [{ debugName: "#roles" }] : /* istanbul ignore next */ []));
|
|
2043
2202
|
this.roles = computed(() => this.#roles().filter(e => {
|
|
2044
2203
|
const selected = this.selected();
|
|
2045
2204
|
return !selected || e.id !== selected?.id;
|
|
2046
|
-
}), ...(ngDevMode ? [{ debugName: "roles" }] : []));
|
|
2205
|
+
}), ...(ngDevMode ? [{ debugName: "roles" }] : /* istanbul ignore next */ []));
|
|
2047
2206
|
this.trackByService = inject(TrackByService);
|
|
2048
2207
|
this.trackByFn = this.trackByService.by('id');
|
|
2049
2208
|
this.service = inject(IdentityRoleService);
|
|
@@ -2086,10 +2245,10 @@ class MoveAllUsersComponent {
|
|
|
2086
2245
|
this.loading.set(false);
|
|
2087
2246
|
}
|
|
2088
2247
|
}
|
|
2089
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2090
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2248
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2249
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: MoveAllUsersComponent, isStandalone: true, selector: "abp-move-all-users", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal\n [visible]=\"visible()\"\n [busy]=\"loading()\"\n (visibleChange)=\"onVisibleChange($event)\"\n [suppressUnsavedChangesWarning]=\"true\"\n>\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\n type=\"submit\"\n class=\"btn btn-primary\"\n [loading]=\"loading()\"\n [disabled]=\"loading() || (form.invalid && form.touched)\"\n form=\"role-move-users-form\"\n >\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],[formArray],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: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2091
2250
|
}
|
|
2092
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2251
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: MoveAllUsersComponent, decorators: [{
|
|
2093
2252
|
type: Component,
|
|
2094
2253
|
args: [{ selector: 'abp-move-all-users', imports: [
|
|
2095
2254
|
FormsModule,
|
|
@@ -2117,16 +2276,16 @@ function RoleDeleteValidator() {
|
|
|
2117
2276
|
|
|
2118
2277
|
class RoleDeleteComponent {
|
|
2119
2278
|
constructor() {
|
|
2120
|
-
this.visible = input.required(...(ngDevMode ? [{ debugName: "visible" }] : []));
|
|
2121
|
-
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : []));
|
|
2279
|
+
this.visible = input.required(...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
2280
|
+
this.selected = input.required(...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2122
2281
|
this.visibleChange = output();
|
|
2123
|
-
this.#isSubmitted = signal(false, ...(ngDevMode ? [{ debugName: "#isSubmitted" }] : []));
|
|
2124
|
-
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : []));
|
|
2125
|
-
this.#roles = signal([], ...(ngDevMode ? [{ debugName: "#roles" }] : []));
|
|
2282
|
+
this.#isSubmitted = signal(false, ...(ngDevMode ? [{ debugName: "#isSubmitted" }] : /* istanbul ignore next */ []));
|
|
2283
|
+
this.loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
2284
|
+
this.#roles = signal([], ...(ngDevMode ? [{ debugName: "#roles" }] : /* istanbul ignore next */ []));
|
|
2126
2285
|
this.roles = computed(() => this.#roles().filter(e => {
|
|
2127
2286
|
const selected = this.selected();
|
|
2128
2287
|
return !selected || e.id !== selected?.id;
|
|
2129
|
-
}), ...(ngDevMode ? [{ debugName: "roles" }] : []));
|
|
2288
|
+
}), ...(ngDevMode ? [{ debugName: "roles" }] : /* istanbul ignore next */ []));
|
|
2130
2289
|
this.trackByService = inject(TrackByService);
|
|
2131
2290
|
this.trackByFn = this.trackByService.by('id');
|
|
2132
2291
|
this.service = inject(IdentityRoleService);
|
|
@@ -2200,10 +2359,10 @@ class RoleDeleteComponent {
|
|
|
2200
2359
|
this.loading.set(false);
|
|
2201
2360
|
}
|
|
2202
2361
|
}
|
|
2203
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2204
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RoleDeleteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2363
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: RoleDeleteComponent, isStandalone: true, selector: "abp-role-delete", inputs: { visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: true, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { visibleChange: "visibleChange" }, ngImport: i0, template: "<abp-modal\n [visible]=\"visible()\"\n [busy]=\"loading()\"\n (visibleChange)=\"onVisibleChange($event)\"\n [suppressUnsavedChangesWarning]=\"true\"\n>\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 [class.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\r\n type=\"submit\"\r\n class=\"btn btn-danger\"\r\n [loading]=\"loading()\"\r\n [disabled]=\"loading()\"\r\n form=\"role-delete-form\"\r\n >\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],[formArray],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: "component", type: ModalComponent, selector: "abp-modal", inputs: ["visible", "busy", "options", "suppressUnsavedChangesWarning"], outputs: ["visibleChange", "init", "appear", "disappear"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2205
2364
|
}
|
|
2206
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RoleDeleteComponent, decorators: [{
|
|
2207
2366
|
type: Component,
|
|
2208
2367
|
args: [{ selector: 'abp-role-delete', imports: [
|
|
2209
2368
|
FormsModule,
|
|
@@ -2222,7 +2381,7 @@ class RolesModalComponent {
|
|
|
2222
2381
|
this.toasterService = inject(ToasterService);
|
|
2223
2382
|
this.injector = inject(Injector);
|
|
2224
2383
|
this.modalBusy = false;
|
|
2225
|
-
this.selected = input(...(ngDevMode ? [undefined, { debugName: "selected" }] : []));
|
|
2384
|
+
this.selected = input(...(ngDevMode ? [undefined, { debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
2226
2385
|
this.visibleChange = output();
|
|
2227
2386
|
}
|
|
2228
2387
|
buildForm() {
|
|
@@ -2256,10 +2415,10 @@ class RolesModalComponent {
|
|
|
2256
2415
|
this.toasterService.success('AbpUi::SavedSuccessfully');
|
|
2257
2416
|
});
|
|
2258
2417
|
}
|
|
2259
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2260
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RolesModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2419
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.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\" [busy]=\"modalBusy\" (visibleChange)=\"onVisibleChange($event)\">\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\n iconClass=\"fa fa-check\"\n buttonType=\"submit\"\n formName=\"roleForm\"\n [disabled]=\"modalBusy\"\n >\n {{ 'AbpUi::Save' | abpLocalization }}\n </abp-button>\n </ng-template>\n</abp-modal>\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],[formArray],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: "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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2261
2420
|
}
|
|
2262
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RolesModalComponent, decorators: [{
|
|
2263
2422
|
type: Component,
|
|
2264
2423
|
args: [{ selector: 'abp-roles-modal', imports: [
|
|
2265
2424
|
ReactiveFormsModule,
|
|
@@ -2287,7 +2446,7 @@ class RolesComponent {
|
|
|
2287
2446
|
this.modalBusy = false;
|
|
2288
2447
|
this.visibleClaims = false;
|
|
2289
2448
|
this.claimSubject = {};
|
|
2290
|
-
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : []));
|
|
2449
|
+
this.modalContent = viewChild('modalContent', ...(ngDevMode ? [{ debugName: "modalContent" }] : /* istanbul ignore next */ []));
|
|
2291
2450
|
this.onVisiblePermissionChange = (value) => {
|
|
2292
2451
|
this.visiblePermissions = value;
|
|
2293
2452
|
};
|
|
@@ -2371,8 +2530,8 @@ class RolesComponent {
|
|
|
2371
2530
|
this.visiblePermissions = true;
|
|
2372
2531
|
}, 0);
|
|
2373
2532
|
}
|
|
2374
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2375
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.
|
|
2533
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RolesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2534
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: RolesComponent, isStandalone: true, selector: "abp-roles", providers: [
|
|
2376
2535
|
ListService,
|
|
2377
2536
|
{
|
|
2378
2537
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -2380,7 +2539,7 @@ class RolesComponent {
|
|
|
2380
2539
|
},
|
|
2381
2540
|
], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true, isSignal: 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: "component", type: ExtensibleTableComponent, selector: "abp-extensible-table", inputs: ["actionsText", "data", "list", "recordsTotal", "actionsColumnWidth", "actionsTemplate", "selectable", "selectionType", "selected", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], 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"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2382
2541
|
}
|
|
2383
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2542
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: RolesComponent, decorators: [{
|
|
2384
2543
|
type: Component,
|
|
2385
2544
|
args: [{ selector: 'abp-roles', providers: [
|
|
2386
2545
|
ListService,
|
|
@@ -2439,8 +2598,8 @@ class SecurityLogsComponent {
|
|
|
2439
2598
|
this.filter = {};
|
|
2440
2599
|
this.list.get();
|
|
2441
2600
|
}
|
|
2442
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
2443
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.
|
|
2601
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SecurityLogsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2602
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: SecurityLogsComponent, isStandalone: true, selector: "abp-security-logs", providers: [
|
|
2444
2603
|
ListService,
|
|
2445
2604
|
{
|
|
2446
2605
|
provide: EXTENSIONS_IDENTIFIER,
|
|
@@ -2448,7 +2607,7 @@ class SecurityLogsComponent {
|
|
|
2448
2607
|
},
|
|
2449
2608
|
], 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: "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", "infiniteScroll", "isLoading", "scrollThreshold", "tableHeight", "rowDetailTemplate", "rowDetailHeight"], outputs: ["tableActivate", "selectionChange", "loadMore", "rowDetailToggle"], exportAs: ["abpExtensibleTable"] }, { kind: "component", type: PageComponent, selector: "abp-page", inputs: ["title", "toolbar", "breadcrumb"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2450
2609
|
}
|
|
2451
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
2610
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: SecurityLogsComponent, decorators: [{
|
|
2452
2611
|
type: Component,
|
|
2453
2612
|
args: [{ selector: 'abp-security-logs', providers: [
|
|
2454
2613
|
ListService,
|
|
@@ -2465,6 +2624,76 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.9", ngImpor
|
|
|
2465
2624
|
], 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" }]
|
|
2466
2625
|
}] });
|
|
2467
2626
|
|
|
2627
|
+
class CreateUserDropdownComponent {
|
|
2628
|
+
constructor() {
|
|
2629
|
+
this.data = inject(EXTENSIONS_ACTION_DATA);
|
|
2630
|
+
this.component = this.data.getInjected(UsersComponent);
|
|
2631
|
+
}
|
|
2632
|
+
onAdd() {
|
|
2633
|
+
this.component.onAdd();
|
|
2634
|
+
}
|
|
2635
|
+
openInviteModal() {
|
|
2636
|
+
this.component.openInviteModal();
|
|
2637
|
+
}
|
|
2638
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CreateUserDropdownComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2639
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.8", type: CreateUserDropdownComponent, isStandalone: true, selector: "abp-create-user-dropdown", ngImport: i0, template: `
|
|
2640
|
+
<ng-container *abpPermission="'AbpIdentity.Users.Create'">
|
|
2641
|
+
<div ngbDropdown class="btn-group d-inline-block">
|
|
2642
|
+
<button type="button" class="btn btn-primary btn-sm" (click)="onAdd()">
|
|
2643
|
+
<i class="fa fa-plus me-1"></i>
|
|
2644
|
+
<span>{{ 'AbpIdentity::NewUser' | abpLocalization }}</span>
|
|
2645
|
+
</button>
|
|
2646
|
+
<button
|
|
2647
|
+
type="button"
|
|
2648
|
+
class="btn btn-primary btn-sm dropdown-toggle dropdown-toggle-split"
|
|
2649
|
+
ngbDropdownToggle
|
|
2650
|
+
></button>
|
|
2651
|
+
<div ngbDropdownMenu>
|
|
2652
|
+
<button ngbDropdownItem (click)="openInviteModal()">
|
|
2653
|
+
<i class="bi bi-plus-lg me-1"></i>
|
|
2654
|
+
{{ 'AbpIdentity::InviteUser' | abpLocalization }}
|
|
2655
|
+
</button>
|
|
2656
|
+
</div>
|
|
2657
|
+
</div>
|
|
2658
|
+
</ng-container>
|
|
2659
|
+
`, isInline: true, 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: NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["tabindex", "disabled"] }, { kind: "directive", type: PermissionDirective, selector: "[abpPermission]", inputs: ["abpPermission", "abpPermissionRunChangeDetection"] }, { kind: "pipe", type: LocalizationPipe, name: "abpLocalization" }] }); }
|
|
2660
|
+
}
|
|
2661
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: CreateUserDropdownComponent, decorators: [{
|
|
2662
|
+
type: Component,
|
|
2663
|
+
args: [{
|
|
2664
|
+
selector: 'abp-create-user-dropdown',
|
|
2665
|
+
imports: [
|
|
2666
|
+
NgbDropdown,
|
|
2667
|
+
NgbDropdownToggle,
|
|
2668
|
+
NgbDropdownMenu,
|
|
2669
|
+
NgbDropdownItem,
|
|
2670
|
+
LocalizationPipe,
|
|
2671
|
+
PermissionDirective,
|
|
2672
|
+
],
|
|
2673
|
+
template: `
|
|
2674
|
+
<ng-container *abpPermission="'AbpIdentity.Users.Create'">
|
|
2675
|
+
<div ngbDropdown class="btn-group d-inline-block">
|
|
2676
|
+
<button type="button" class="btn btn-primary btn-sm" (click)="onAdd()">
|
|
2677
|
+
<i class="fa fa-plus me-1"></i>
|
|
2678
|
+
<span>{{ 'AbpIdentity::NewUser' | abpLocalization }}</span>
|
|
2679
|
+
</button>
|
|
2680
|
+
<button
|
|
2681
|
+
type="button"
|
|
2682
|
+
class="btn btn-primary btn-sm dropdown-toggle dropdown-toggle-split"
|
|
2683
|
+
ngbDropdownToggle
|
|
2684
|
+
></button>
|
|
2685
|
+
<div ngbDropdownMenu>
|
|
2686
|
+
<button ngbDropdownItem (click)="openInviteModal()">
|
|
2687
|
+
<i class="bi bi-plus-lg me-1"></i>
|
|
2688
|
+
{{ 'AbpIdentity::InviteUser' | abpLocalization }}
|
|
2689
|
+
</button>
|
|
2690
|
+
</div>
|
|
2691
|
+
</div>
|
|
2692
|
+
</ng-container>
|
|
2693
|
+
`,
|
|
2694
|
+
}]
|
|
2695
|
+
}], ctorParameters: () => [] });
|
|
2696
|
+
|
|
2468
2697
|
const DEFAULT_CLAIMS_ENTITY_ACTIONS = EntityAction.createMany([
|
|
2469
2698
|
{
|
|
2470
2699
|
text: 'AbpUi::Edit',
|
|
@@ -3170,21 +3399,13 @@ const DEFAULT_USERS_TOOLBAR_COMPONENTS = ToolbarComponent.createMany([
|
|
|
3170
3399
|
permission: 'AbpIdentity.Users.Export',
|
|
3171
3400
|
component: ExportDataDropdownComponent,
|
|
3172
3401
|
},
|
|
3173
|
-
]);
|
|
3174
|
-
const DEFAULT_USERS_TOOLBAR_ACTIONS = ToolbarAction.createMany([
|
|
3175
3402
|
{
|
|
3176
|
-
text: 'AbpIdentity::NewUser',
|
|
3177
|
-
action: data => {
|
|
3178
|
-
const component = data.getInjected(UsersComponent);
|
|
3179
|
-
component.onAdd();
|
|
3180
|
-
},
|
|
3181
3403
|
permission: 'AbpIdentity.Users.Create',
|
|
3182
|
-
|
|
3404
|
+
component: CreateUserDropdownComponent,
|
|
3183
3405
|
},
|
|
3184
3406
|
]);
|
|
3185
3407
|
const DEFAULT_USERS_TOOLBAR_ALL = [
|
|
3186
3408
|
...DEFAULT_USERS_TOOLBAR_COMPONENTS,
|
|
3187
|
-
...DEFAULT_USERS_TOOLBAR_ACTIONS,
|
|
3188
3409
|
];
|
|
3189
3410
|
|
|
3190
3411
|
const DEFAULT_USERS_CREATE_FORM_PROPS = FormProp.createMany([
|
|
@@ -3355,10 +3576,10 @@ class IdentityExtensionsGuard {
|
|
|
3355
3576
|
mergeWithDefaultProps(extensions.editFormProps, DEFAULT_IDENTITY_EDIT_FORM_PROPS, objectExtensionContributors.editForm, editFormContributors);
|
|
3356
3577
|
}), map$1(() => true));
|
|
3357
3578
|
}
|
|
3358
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3359
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.
|
|
3579
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityExtensionsGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3580
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityExtensionsGuard }); }
|
|
3360
3581
|
}
|
|
3361
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityExtensionsGuard, decorators: [{
|
|
3362
3583
|
type: Injectable
|
|
3363
3584
|
}] });
|
|
3364
3585
|
|
|
@@ -3456,11 +3677,11 @@ const routes = [
|
|
|
3456
3677
|
},
|
|
3457
3678
|
];
|
|
3458
3679
|
class IdentityRoutingModule {
|
|
3459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3460
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
3461
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
3680
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityRoutingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3681
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.8", ngImport: i0, type: IdentityRoutingModule, imports: [i1$2.RouterModule], exports: [RouterModule] }); }
|
|
3682
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityRoutingModule, imports: [RouterModule.forChild(routes), RouterModule] }); }
|
|
3462
3683
|
}
|
|
3463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3684
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityRoutingModule, decorators: [{
|
|
3464
3685
|
type: NgModule,
|
|
3465
3686
|
args: [{
|
|
3466
3687
|
imports: [RouterModule.forChild(routes)],
|
|
@@ -3522,8 +3743,8 @@ class IdentityModule {
|
|
|
3522
3743
|
static forLazy(options = {}) {
|
|
3523
3744
|
return new LazyModuleFactory(IdentityModule.forChild(options));
|
|
3524
3745
|
}
|
|
3525
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.
|
|
3526
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.
|
|
3746
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3747
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.8", ngImport: i0, type: IdentityModule, imports: [CoreModule,
|
|
3527
3748
|
CommercialUiModule,
|
|
3528
3749
|
IdentityRoutingModule,
|
|
3529
3750
|
NgbNavModule,
|
|
@@ -3578,7 +3799,7 @@ class IdentityModule {
|
|
|
3578
3799
|
ExportDataDropdownComponent,
|
|
3579
3800
|
ClaimsComponent,
|
|
3580
3801
|
ClaimModalComponent] }); }
|
|
3581
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.
|
|
3802
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityModule, imports: [CoreModule,
|
|
3582
3803
|
CommercialUiModule,
|
|
3583
3804
|
IdentityRoutingModule,
|
|
3584
3805
|
NgbNavModule,
|
|
@@ -3615,7 +3836,7 @@ class IdentityModule {
|
|
|
3615
3836
|
ClaimsComponent,
|
|
3616
3837
|
ClaimModalComponent] }); }
|
|
3617
3838
|
}
|
|
3618
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.
|
|
3839
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: IdentityModule, decorators: [{
|
|
3619
3840
|
type: NgModule,
|
|
3620
3841
|
args: [{
|
|
3621
3842
|
exports: [...exportAndImports],
|
|
@@ -3751,5 +3972,5 @@ function provideIdentityContributors(options = {}) {
|
|
|
3751
3972
|
* Generated bundle index. Do not edit.
|
|
3752
3973
|
*/
|
|
3753
3974
|
|
|
3754
|
-
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,
|
|
3975
|
+
export { AbstractOrganizationUnitComponent, ClaimModalComponent, ClaimsComponent, CreateUserDropdownComponent, 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_ALL, DEFAULT_USERS_TOOLBAR_COMPONENTS, DeleteOrganizationUnitComponent, DeleteOrganizationUnitService, ExcelService, 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, InviteUsersModalComponent, MoveAllUsersComponent, MoveAllUsersOfUnitComponent, MoveAllUsersOfUnitModalService, ORGANIZATION_UNIT_CONFIG, OrganizationMembersComponent, OrganizationMembersModalBodyComponent, OrganizationRolesComponent, OrganizationRolesModalBodyComponent, OrganizationUnitDeleteValidator, OrganizationUnitsComponent, OrganizationUnitsStateService, RoleDeleteComponent, RoleDeleteValidator, RolesComponent, RolesModalComponent, SecurityLogsComponent, SelectedOrganizationUnitComponent, SetUserPasswordComponent, UploadExcelFileComponent, UserDropdownMenuComponent, UserLockModalComponent, UserLockService, UserSessionDetailComponent, UserSessionsComponent, UserViewDetailService, UserViewDetailsComponent, UsersComponent, createRoutes, eIdentityTwoFactorBehaviour, identityExtensionsResolver, identityTwoFactorBehaviourOptions, regexValidator };
|
|
3755
3976
|
//# sourceMappingURL=volo-abp.ng.identity.mjs.map
|